Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error when running combin_A_and_B.py #13

Closed
kaihuchen opened this issue Nov 25, 2016 · 1 comment
Closed

Got error when running combin_A_and_B.py #13

kaihuchen opened this issue Nov 25, 2016 · 1 comment

Comments

@kaihuchen
Copy link

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.

@htoyryla
Copy link

I had the same problem, just replaced both constants with the value 1 (which I looked up somewhere).

@junyanz junyanz closed this as completed Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants