hi, i use opencv 231 and c++ whith visual studio 2010. i use http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html tutotial. but cascadeClassifier face_cascade; and cascadeClassifier eyes_cascade; have a error and shown a red line below cascadeClassifier. after compile I get this error:
1>------ Build started: Project: faceRecognition, Configuration: Debug Win32 ------ 1>Build started 04/04/2013 09:03:57 ق.ظ. 1>InitializeBuildStatus: 1> Touching "Debug\faceRecognition.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11): error C2146: syntax error : missing ';' before identifier 'face_cascade' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C2146: syntax error : missing ';' before identifier 'eyes_cascade' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C2086: 'int cascadeClassifier' : redefinition 1> d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(11) : see declaration of 'cascadeClassifier' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(18): error C2065: 'Cvcapture' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(18): error C2065: 'capture' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(21): error C2228: left of '.load' must have class/struct/union 1> type is 'int' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(22): error C2228: left of '.load' must have class/struct/union 1> type is 'int' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(25): error C2065: 'capture' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(26): error C2065: 'capture' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(30): error C2065: 'capture' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(52): error C3861: 'equaliseHist': identifier not found 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(54): error C2228: left of '.detectMultiScale' must have class/struct/union 1> type is 'int' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(55): warning C4018: '<' : signed/unsigned mismatch 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(57): error C2065: 'point' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(57): error C2146: syntax error : missing ';' before identifier 'center' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(57): error C3861: 'center': identifier not found 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(58): error C2065: 'center' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(58): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(58): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(62): error C2228: left of '.detectMultiScale' must have class/struct/union 1> type is 'int' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(63): warning C4018: '<' : signed/unsigned mismatch 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(65): error C2065: 'point' : undeclared identifier 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(65): error C2146: syntax error : missing ';' before identifier 'center' 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(65): error C3861: 'center': identifier not found 1>d:\visual studio 2010\projects\facerecognition\facerecognition\main.cpp(67): error C2065: 'center' : undeclared identifier 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:04.78 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
i have this problem with Cvcapture* capture; and equaliseHist(frame_gray,frame_gray); and point center (faces[i].x+faces[i].width0.5,faces[i].y+faces[i].height0.5);
how may i resolve these issue? thank you very much