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

后端 未结 1 1874
小鲜肉
小鲜肉 2021-02-15 00:04

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:31

    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)
提交回复
热议问题