OpenCV DLL问题 [英] Opencv dll issues

查看:87
本文介绍了OpenCV DLL问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循使用opencv进行对象检测的教程,我一步一步地做到了,但是当我运行它时,出现了此错误-

I was following a tutorial for object detection using opencv, I did it step by step but when I run it, I got this error -

The program can't start because opencv_244d.dll is missing from your computer.
Try reinstalling the program to fix this problem.

我不知道问题出在哪里,因为我可以在opencv库中看到此dll,所以我在输入依赖项中添加了以下内容:

I don't know what is the problem because I can see this dll in opencv libraries, I have added the following to the input dependencies:

opencv_core244d.lib
opencv_imgproc244d.lib
opencv_highgui244d.lib
opencv_ml244d.lib
opencv_video244d.lib
opencv_features2d244d.lib
opencv_calib3d244d.lib
opencv_objdetect244d.lib
opencv_contrib244d.lib
opencv_legacy244d.lib
opencv_flann244d.lib

这仍然无法正常工作,我该怎么办?

This is still not working, what can I do?

推荐答案

您可以在 bin 文件夹(位于 lib 文件夹旁边的文件夹中)中找到所需的dll文件.找到 .lib 文件),您有两个选择:

You can find the required dll files into the bin folder (that is next to lib folder where the .lib files are located), and you have two options:

1)将所需的dll与您的应用程序复制到同一文件夹中////这样会好一些,因为它可以在您需要将应用程序部署到未安装opencv的系统上时为您做准备(对于那么不要忘记构建应用程序的 release 版本)

1) copy the required dlls into the same folder with your application //this is a little better because it kind of prepares you for when you'll need to deploy your application on systems that don't have opencv installed (for then don't forget to build the release version of your application)

或 2)将 bin 文件夹的路径添加到环境变量 Path 中(请注意,其中的路径由;分隔)

or 2) add to the Path in the Environment Variables your path to that bin folder (be carefull that the path in there are separated by ; )

这篇关于OpenCV DLL问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆