import cv2 works but import cv2.cv as cv not working

后端 未结 1 2140
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 00:09

I think the sys path is correct, cv.pyd and cv.pyd reside in c:\\OpenCV2.3\\build\\Python\\2.7\\Lib\\site-packages.

>>> import sys
>>> sys.path         


        
相关标签:
1条回答
  • 2021-02-15 00:37

    I had the same issue.This was an issue with OpenCV Engine.Download OpenCV engine from https://github.com/thumbor/opencv-engine/releases/tag/1.0.1 and save it as engine.py in \Python27\Lib\site-packages.use cv2.cv instead of cv2.cv as cv.

    0 讨论(0)
提交回复
热议问题