No module named cv

前端 未结 4 1433
忘了有多久
忘了有多久 2020-12-11 04:45

I\'m trying to run this script:

https://github.com/openalpr/train-detector/blob/master/crop_plates.py

I\'ve never dealt with python before. First of all I ha

4条回答
  •  囚心锁ツ
    2020-12-11 04:59

    cv2.cv doesn't exists in OpenCV 3.0. Use simply cv2

    Also, the attribute is no more CV_HOUGH_GRADIENT but HOUGH_GRADIENT

    So what you looking for is probably:

    cv2.HOUGH_GRADIENT
    

提交回复
热议问题