You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got the following message when trying to use the provided tool combin_A_and_B.py for preparing a new dataset:
Traceback (most recent call last):
File "combine_A_and_B.py", line 46, in
im_A = cv2.imread(path_A, cv2.CV_LOAD_IMAGE_COLOR)
AttributeError: 'module' object has no attribute 'CV_LOAD_IMAGE_COLOR'
It turned out that my system has OpenCV3 installed which has some differences from OpenCV2. I changed the offending line to the following and the problem went away:
im_A = cv2.imread(path_A, cv2.IMREAD_COLOR)
Hope this helps somebody.
The text was updated successfully, but these errors were encountered:
Got the following message when trying to use the provided tool combin_A_and_B.py for preparing a new dataset:
Traceback (most recent call last):
File "combine_A_and_B.py", line 46, in
im_A = cv2.imread(path_A, cv2.CV_LOAD_IMAGE_COLOR)
AttributeError: 'module' object has no attribute 'CV_LOAD_IMAGE_COLOR'
It turned out that my system has OpenCV3 installed which has some differences from OpenCV2. I changed the offending line to the following and the problem went away:
Hope this helps somebody.
The text was updated successfully, but these errors were encountered: