Ask Your Question
0

No symbols loaded for opencv_contrib2410.dll

asked 2015-10-19 04:38:39 -0600

Mehdi.Am gravatar image

updated 2015-10-20 02:20:42 -0600

I am trying just a basic face recognition program with OpenCV2.4 with the following code:

#include "stdafx.h"
#include <iostream>
#include <string>

//include opencv core
#include "opencv2\core\core.hpp"
#include "opencv2\contrib\contrib.hpp"
#include "opencv2\highgui\highgui.hpp"
#include "opencv2\objdetect\objdetect.hpp"
#include "opencv2\opencv.hpp"

//file handling
#include <fstream>
#include <sstream>

using namespace std;
using namespace cv;

static void dbread(const string& filename, vector<Mat>& images, vector<int>& labels, char separator = ';'){
    std::ifstream file(filename.c_str(), ifstream::in);

    if (!file){
        string error = "no valid input file";
        CV_Error(CV_StsBadArg, error);
    }

    string line, path, label;
    while (getline(file, line))
    {
        stringstream liness(line);
        getline(liness, path, separator);
        getline(liness, label);
        if (!path.empty() && !label.empty()){
            images.push_back(imread(path, 0));
            labels.push_back(atoi(label.c_str()));
        }
    }
}



void fisherFaceTrainer(){
    /*in this two vector we put the images and labes for training*/
    vector<Mat> images;
    vector<int> labels;

    try{        
        string filename = "mycsv.txt";
        dbread(filename, images, labels);

        cout << "size of the images is " << images.size() << endl;
        cout << "size of the labes is " << labels.size() << endl;
        cout << "Training begins...." << endl;
    }
    catch (cv::Exception& e){
        cerr << " Error opening the file " << e.msg << endl;
        exit(1);
    }


    Ptr<FaceRecognizer> model = createFisherFaceRecognizer();

    model->train(images, labels);

    int height = images[0].rows;

    model->save("fisherface.yml");

    cout << "Training finished...." << endl;
}


int _tmain(int argc, _TCHAR* argv[])
{
    fisherFaceTrainer();
    //int value = FaceRecognition();
    return 0;
}

When I run this, I get this error(no-symbols-loaded-for-opencv_contrib2410): no-symbols-loaded-for-opencv_contrib2410

*Right click on image>>open image in new tab>>to check the bigger size

Thanks for helping

edit retag flag offensive close merge delete

Comments

1

OpenCV 2.4 is 2.4.11... is it that the problem? search for the dll, is it on your computer? then search in the linking part, have you linked it correctly?

Other thing: do you find win 10 (in the actual beta mode) better then the 7? Shall I switch to it? :p

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-10-19 06:30:51 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-10-20 02:29:22 -0600

berak gravatar image
  • if you want to debug the opncv library code, you need to rebuild opencv from src, the pdb files nessecary are not supplied with the binary packs

  • it looks like you're trying to debug a release version ?

edit flag offensive delete link more

Comments

Just like @berak said, debug symbols are not included in the standard OpenCV downloads because they clog up the package. If you really want debugging options, then you need to rebuilt the library yourself.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-20 04:27:20 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-19 04:38:39 -0600

Seen: 1,902 times

Last updated: Oct 20 '15