rykov8/ssd_keras

AttributeError: 'module' object has no attribute 'cv'

freshn opened this issue · 4 comments

error
@rykov8 hello, i need your help. As you can see in the picture, my computer's version is the same with what you were supposed.It says it has no module named cv . but I do have it.
I check this question by Google and StackOverflow, some says it is because the cv2.so is not in dist-packages of python. But actually my cv2.so is in it. Others say in Opencv3 the cv module is deprecated. So, in line 24 I should initialize the font like following cv2.CV_CAP_PROP_FRAME_WIDTH. i tried it but get another error like the following picture.
error2
I don't know how to fix it and beg for your help.

you should use :
cv2.CAP_PROP_FRAME_WIDTH

@bitxinyu thanks,it works...it's my fault. Thanks.

@bitxinyu it really works,thank u

@bitxinyu it really works,thank u