Unable To Use Flags In Opencv Python?
I'm unable to use flags in OpenCV. For example: import cv2 image = cv2.imread('k.jpg',cv2.CV_LOAD_IMAGE_GRAYSCALE) cv2.namedWindow('Pic',cv2.CV_WINDOW_NORMAL) cv2.imshow('Pic',
Solution 1:
Just a short update:
Since OpenCV 3.0, these are cv2.IMREAD_GRAYSCALE and cv2.WINDOW_NORMAL (use help(cv2) for the whole list).
Post a Comment for "Unable To Use Flags In Opencv Python?"