Home > Back-end >  VS2013 Opencv opencv_contrib - 3.1.0 compile error error MSB6006: "CMD. Exe" have quit, co
VS2013 Opencv opencv_contrib - 3.1.0 compile error error MSB6006: "CMD. Exe" have quit, co

Time:10-05

1. Error 99 error MSB6006: "CMD. Exe has quit," code for - 1073741571, C: \ Program Files \ (x86) MSBuild \ Microsoft Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets of 170 5 opencv_bioinspired

2. Error 376 error LNK1104: unable to open file ".. \.. \ lib \ Debug \ opencv_bioinspired310d lib "E: \ install package \ opencv - 3.1.0 \ myBuildx64 \ modules \ bioinspired \ LINK opencv_perf_bioinspired

3. Error 440 error LNK1104: unable to open file ".. \.. \ lib \ Debug \ opencv_bioinspired310d lib "E: \ install package \ opencv - 3.1.0 \ myBuildx64 \ modules \ bioinspired \ LINK opencv_test_bioinspired

4, ignore the part of the problem with compilation. Lib. DLL continue to configure project, to run the program times the following error
OpenCV Error: Bad argument (Wrong shapes for given matrices. The Was size (SRC)=12 (1309), the size (W)=(10304389).) in CV: : LDA: : subspaceProject, file E: \ installation package, OpenCV - 3.1.0, OpenCV, sources \ modules \ core \ SRC \ LDA CPP, line 182

Procedures for
 # include & lt; Iostream> 
#include
#include
#include
#include
#include
#include

#include
#include
#include
#include
#include

Using the namespace CV;
Using the namespace dlib;
using namespace std;
Using the namespace CV: : face;




Int main (int arg c, char * * argv)
{

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * read the pictures and deal with * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
//two containers to store image data and the corresponding tag
STD: : vector Images;
STD: : vector Labels.
String input_path;
String output_path;
Mat img.
Int each_folder_nums=10;
Int floder_nus=10;
For (int j=1; J & lt; Floder_nus; J++)
{
for (int i=1; i <=each_folder_nums; I++)
{

Input_path=format ("./orl_faces/s % d % d ", j, I);
Int jpg_order=(j - 1) * 10 + I;
Output_path=format ("./orl_faces/JPG/% d ", jpg_order);
Img=imread (input_path + ". The PGM ");
Images. The push_back (img);
Labels. The push_back (j - 1);
//imwrite (output_path + ". JPG ", img);
//imwrite (input_path + ". JPG ", img);
//cout & lt; <"Transformed format:" + input_path & lt; }
}
//get the height of the first picture, below image deformation from their original size need
Int height=images [0]. Rows;
//the following code from the data set only remove the last picture, is used to do the test, need according to his need to change
Mat testSample=images [images. The size () - 1);
Int testLabel=labels [labels. The size () - 1);

Images. Pop_back ();//delete the last picture
Labels. Pop_back ();//delete the last tag

//create a face model [5] is used for face recognition
Ptr The model=createEigenFaceRecognizer ();
The model - & gt; "Train" (images, labels);
//[6] forecast test image, the predictedLabel forecasting results tag is
Int predictedLabel=model - & gt; Predict (the testSample);
cout <"PredictedLabel=" & lt; cout <"TestLabel=" & lt; System (" Pause ");
return 0;
}

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

Floor, have you solved the problem?
  • Related