[英]OpenCV cv::Mat , imshow() , cv::VideoCapture is not working at runtime
Something strange is happen.奇怪的事情发生了。 I tried all the best way I can but not able to get the correct solution for it.
我尽我所能,但无法获得正确的解决方案。 Rectenly I am working on one project in which dlib and open cv lib is used for face detection.
最近,我正在开发一个项目,其中 dlib 和 open cv lib 用于人脸检测。 The thing is I am able to achieved that but after window update I am not able to use Open Cv any function.
问题是我能够做到这一点,但是在 window 更新之后,我无法使用任何 function 的 Open Cv。 Meanwhile dlib is working fine for me.
同时 dlib 对我来说工作正常。 I am getting now compile time error as well.
我现在也收到编译时错误。 But when ever I try to use even single line "cv::Mat image;"
但是,当我尝试使用单行“cv::Mat image;”时I am getting error "dll not found".
我收到错误“找不到dll”。 I tried to rebuild it (64 bit).
我试图重建它(64位)。 I tried to install Window Media Features also.
我也尝试安装 Window 媒体功能。 I don't know whats gone wrong here.
我不知道这里出了什么问题。 If anyone is aware of such issue please suggest.
如果有人知道这样的问题,请提出建议。
Try this one maybe it can work for your.试试这个,也许它对你有用。
first uninstall opencv.首先卸载 opencv。
pip uninstall opencv-python pip 卸载 opencv-python
and the reinstall opencv并重新安装 opencv
pip install opencv-python pip 安装 opencv-python
Can you check path environments for opencv?您可以检查 opencv 的路径环境吗? Did you add
OpenCVx.x\bin
?你添加了
OpenCVx.x\bin
吗? Maybe after update, binary and library paths are changed.也许更新后,二进制和库路径发生了变化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.