Global Name CV2 is not defined - OpenCV Q&A Forum
answers.opencv.org › question › 169861Jul 28, 2017 · Output of windows powershell: Traceback (most recent call last): File "opencv.py", line 20, in <module>. whatever () File "opencv.py", line 17, in whatever. img = cv2.imread ('ImagePath') NameError: global name 'cv2' is not defined. I am wondering if I have the cv2 module not installed properly, but my coding skills are not good enough for me ...