错误:Visual Studio中没有为opencv_world310.dll加载符号
Error: No symbols loaded for opencv_world310.dll in Visual Studio
我正在Visual Studio 2015中使用OpenCV-3.1.0编写程序。大多数操作都很好,但是,我遇到了访问违规错误。我调试了这个项目,在执行faceClassifier.load("haarcascade_foronalface_alt.xml")后,Locals窗口显示"Information not available,no symbol loaded for opencv_world310.dll"
#include "opencv2/objdetect.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include <iostream>
#include <stdio.h>
using namespace std;
using namespace cv;
void detectAndDisplay(Mat);
int main()
{
Mat img = imread("faces.jpg");
detectAndDisplay(img);
return 0;
}
void detectAndDisplay(Mat img)
{
CascadeClassifier faceClassifier;
faceClassifier.load("haarcascade_frontalface_alt.xml");
vector<Rect> faces;
Mat gray;
cvtColor(img, gray, CV_BGR2GRAY);
faceClassifier.detectMultiScale(gray, faces,1.1,3,0);
for (int i = 0; i < faces.size(); i++)
{
Point center(faces[i].x + faces[i].width*0.5, faces[i].y + faces[i].height*0.5);
ellipse(img, center, Size(faces[i].width*0.5, faces[i].height*0.5), 0, 0, 360, Scalar(255, 0, 255), 4, 8, 0);
}
namedWindow("Faces", 1);
while (true)
{
imshow("Faces", img);
if (waitKey(30) >= 0) break;
}
}
您没有使用OpenCV调试库。普通库不包含调试信息。
调试库在.dll
或.lib
之前有一个d
尝试
opencv_world310d.dll
相关文章:
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 尝试导入pybind-opencv模块时出现libgtk错误
- 在编译C++代码(具有dlib和opencv)到WASM时面临问题
- 如何使用OpenCV将RBG图像转换为HSV,并将H、S和V值保存为C++中的3个独立图像
- OpenCV EqualizeHist()从彩色图像创建黑白图像
- 将OpenCV C++重写为EmguCV C#-如何使用指针
- OpenCV C++.快速计算混淆矩阵
- 在C++代码中包含opencv时,使用ctypes创建.so文件
- 哪些库可以通过Opencv调整曝光率
- 安装opencv失败-粘贴CMakeError.log的内容
- C++中的openCV Mat访问冲突
- OpenCV Android C++ imwrite not found
- 未定义的引用 .. 使用 OpenCV 编译 C++ 代码时,从命令行
- 将 OpenCV 与 CMAKE 中的项目一起构建为第三方库的正确方法
- CV_OCL_RUN宏如何在OpenCV(版本3.4.5)的goodFeaturesToTrack实现中工作?
- OpenCV 4.1.2 - 从网络摄像头获取帧并将其拆分
- C++ OpenCV 卡尔曼滤波器构造函数错误
- 使用OpenCV和覆盆子上的多个网络摄像头拍摄延时摄影,出现多个V4L错误
- 如何使用OpenCV-C++编写*.mp4视频?
- Mingw-64 在构建和安装后不会编译 openCV 代码