简体   繁体   English

错误:在Visual Studio中没有为opencv_world310.dll加载任何符号

[英]Error: No symbols loaded for opencv_world310.dll in Visual Studio

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. 我正在Visual Studio 2015中使用OpenCV-3.1.0编写程序。大多数操作都可以正常工作,但是,出现访问冲突错误。 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". 我调试了项目,在执行faceClassifier.load(“haarcascade_frontalface_alt.xml”)之后,Locals窗口显示“信息不可用,没有为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;
    }
}

You are not using the OpenCV debug libraries. 您没有使用OpenCV调试库。 The normal libraries do not contain debug information. 普通库不包含调试信息。

The debug libraries have a d before .dll or .lib 调试库在.dll.lib之前有一个d

Try 尝试

opencv_world310d.dll opencv_world310d.dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C ++ OpenCV“无法找到或打开PDB文件”和“ Project2.exe中的(opencv_world310.dll):访问冲突读取位置 - C++ OpenCV “Cannot find or open PDB file” and "(opencv_world310.dll) in Project2.exe: Access violation reading location SFML中的Visual Studio错误: <Information not available, no symbols loaded for sfml-audio-d-2.dll> - Visual Studio error in SFML: <Information not available, no symbols loaded for sfml-audio-d-2.dll> Visual Studio没有加载符号 - Visual Studio No symbols loaded Visual Studio 调试器正在卸载 DLL 的符号 - Visual Studio Debugger is Unloading Symbols for DLL Visual Studio 尚未为此文档加载任何符号 - Visual Studio No Symbols have been loaded for this document Visual Studio 2017 &#39;C:\\OpenCV-3.3.0\\opencv\\build\\x64\\vc14\\bin\\opencv_world330d.dll&#39;。 无法找到或打开 PDB 文件 - Visual Studio 2017 'C:\OpenCV-3.3.0\opencv\build\x64\vc14\bin\opencv_world330d.dll'. Cannot find or open the PDB file 使用 opencv、dll、visual studio 和 labview 进行编程 - Programming with opencv, dll, visual studio and labview OpenCV Visual Studio ntdll.dll - OpenCV Visual Studio ntdll.dll 在没有视觉工作室的计算机上运行opencv dll - running opencv dll on a computer with no visual studio 链接DLL错误Visual Studio - Linking DLL error visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM