OpenCVSharp and Visual Studio 2012

本文关键字:2012 Studio Visual and OpenCVSharp | 更新日期: 2023-09-27 18:10:49

我试图在Visual Studio 2012中使用opencvsharp v2.4 64x构建一个项目。该项目是使用。net 4.5和x64目标构建的。我已经安装了VS08+VS10 sp1先决条件。我已经在我的项目中包含了所有的opencv dll(版本2.4.0 64x),以复制到可执行目录,包括TBB.dll(并检查它们实际上最终在正确的文件夹中)。

然而,在运行软件时,我得到错误:由于p/Invoke发生了异常。请查看以下…系统。无法加载DLL 'opencv_core204'…等

你知道为什么会这样吗?也许VS2012不支持构建openvsharp 2.4?

OpenCVSharp and Visual Studio 2012

似乎我仍然错过了一些code204所依赖的本地dll。以下是所需的完整列表。它现在可以在64位的visual studio 2012和。net 4.5中运行,但是一些例子不能在4.5中运行(delaunay),但只能在3.5中运行。不知道为什么…

OpenCvSharpExtern.dll
OpenCvSharpExternGpu.dll
opencv_calib3d240.dll
opencv_calib3d240d.dll
opencv_contrib240.dll
opencv_contrib240d.dll
opencv_core240.dll
opencv_core240d.dll
opencv_features2d240.dll
opencv_features2d240d.dll
opencv_ffmpeg240.dll
opencv_ffmpeg240_64.dll
opencv_flann240.dll
opencv_flann240d.dll
opencv_gpu240.dll
opencv_gpu240d.dll
opencv_highgui240.dll
opencv_highgui240d.dll
opencv_imgproc240.dll
opencv_imgproc240d.dll
opencv_legacy240.dll
opencv_legacy240d.dll
opencv_ml240.dll
opencv_ml240d.dll
opencv_nonfree240.dll
opencv_nonfree240d.dll
opencv_objdetect240.dll
opencv_objdetect240d.dll
opencv_photo240.dll
opencv_photo240d.dll
opencv_stitching240.dll
opencv_stitching240d.dll
opencv_ts240.dll
opencv_ts240d.dll
opencv_video240.dll
opencv_video240d.dll
opencv_videostab240.dll
opencv_videostab240d.dll
QtCore4.dll
QtGui4.dll
tbb.dll
tbbmalloc.dll
tbbmalloc_debug.dll
tbbmalloc_proxy.dll
tbbmalloc_proxy_debug.dll
tbb_debug.dll
tbb_preview.dll
tbb_preview_debug.dll