Python cv2.imshow() not working: cannot connect to X server – CentOS
situation: Running a CentOS terminal in a docker container on a windows host. cv2 installed, working perfectly. script: import sys import cv2 def main(argv): inputfile = '' for arg in argv: img = cv2.imread(arg) cv2.imshow('Image', img) cv2.waitkey(0) if __name__ ==…