错误:在Visual Studio中没有为opencv_world310.dll加载任何符号 [英] Error: No symbols loaded for opencv_world310.dll in Visual Studio

查看:1294
本文介绍了错误:在Visual Studio中没有为opencv_world310.dll加载任何符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2015中使用OpenCV-3.1.0编写程序.大多数操作都可以正常工作,但是,出现访问冲突错误.我已经调试了项目,在执行faceClassifier.load("haarcascade_frontalface_alt.xml")之后,本地"窗口显示信息不可用,没有为opencv_world310.dll加载任何符号".这是代码:

I'm writing program using OpenCV-3.1.0 in Visual Studio 2015. Most of the operations work fine, however, I get an Access Violation error. I have debugged the project, after faceClassifier.load("haarcascade_frontalface_alt.xml") is executed, the Locals windows displays "Information not available, no symbols loaded for opencv_world310.dll". Here's the code:

#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调试库.普通库不包含调试信息.

You are not using the OpenCV debug libraries. The normal libraries do not contain debug information.

调试库在.dll.lib

尝试

opencv_world310d.dll

opencv_world310d.dll

这篇关于错误:在Visual Studio中没有为opencv_world310.dll加载任何符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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