Opencv 2.3 cvtColor函数
我正在使用 OpenCV 2.3 和 Visual Studio 2010 Ultimate OpenCV 与我配合良好,但是当我调用 cvtColor 函数时,我无法运行该项目 并出现此错误对话框
“应用程序无法正确启动(0xc000007b)。单击“确定” 关闭应用程序。”
I'm using OpenCV 2.3 with visual studio 2010 ultimate
the OpenCV works well with me, but when I call cvtColor function , I can't run the project
and this error dialogue appear
"The application was unable to start correctly (0xc000007b). click OK
to close the application."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了在 Windows 7 64 位中安装 OpenCV 2.3 Visual Studio 2010 的正确方法“在 Windows 7 64 位的 Microsoft Visual Studio 2010 中开始使用 OpenCV 2.3"。
I found the right way to install the OpenCV 2.3 Visual Studio 2010 in Windows 7 64 bit at "Getting Started with OpenCV 2.3 in Microsoft Visual Studio 2010 in Windows 7 64-bit".
这听起来很可能是缺少 DLL 的问题。
cvtColor
函数包含在opencv_imgproc231.dll
库中。您需要将此 DLL 放置在与可执行文件相同的目录中,或者将 OpenCV DLL 路径(例如%OPENCV_ROOT%\install\bin
)附加到Path
变量。另请注意,如果您在 Visual Studio 打开时更改了Path
变量,则需要重新启动 Visual Studio 才能看到更改。如果上述方法失败,并且您使用了二进制发行版,请考虑从源代码重建 OpenCV。如果二进制发行版是为 VS2008 构建的,则它将不适用于 VS2010,反之亦然。 这里是有关如何构建 OpenCV 的教程来自 Windows 上的源代码。
This sounds like it is likely a missing DLL problem. The
cvtColor
function is contained in theopencv_imgproc231.dll
library. You'll either need to place this DLL in the same directory as the executable, or append the OpenCV DLL path (e.g.,%OPENCV_ROOT%\install\bin
) to thePath
variable. Also note, if you changed yourPath
variable while Visual Studio was open, you will need to restart Visual Studio for it to see the change.If the above fails, and you used the binary distribution, consider rebuilding OpenCV from source. If a binary distribution was built for VS2008, it will not work with VS2010 and vice versa. Here is a tutorial on how to build OpenCV from source on Windows.