rykov8 / ssd_keras

Port of Single Shot MultiBox Detector to Keras
MIT License
1.1k stars 553 forks source link

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

Open freshn opened 7 years ago

freshn commented 7 years ago

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.

bitxinyu commented 6 years ago

you should use : cv2.CAP_PROP_FRAME_WIDTH

freshn commented 6 years ago

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

gontthias commented 6 years ago

@bitxinyu it really works,thank u

bit1002lst commented 6 years ago

@bitxinyu it really works,thank u