Ask Your Question

Revision history [back]

error before and when compile

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

error before and when compile

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 the following codes:

`Cvcapture* capture;`

 equaliseHist(frame_gray,frame_gray); and  point center (faces[i].x+faces[i].width0.5,faces[i].y+faces[i].height0.5); 

(faces[i].x+faces[i].width*0.5,faces[i].y+faces[i].height*0.5);

how may i resolve these issue? thank you very much

error before and when compile

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 the following codes:

`Cvcapture* capture;`

 equaliseHist(frame_gray,frame_gray);  

 point center (faces[i].x+faces[i].width*0.5,faces[i].y+faces[i].height*0.5);

how may i resolve these issue? thank you very much


this is complete error message after compiling 'faceRecognition.exe': Loaded 'D:\Visual Studio 2010\Projects\faceRecognition\Debug\faceRecognition.exe', Symbols loaded. 'faceRecognition.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_core231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_highgui231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16385_none_ebf82fc36c758ad5\comctl32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_imgproc231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\common\tbb\ia32\vc10\tbb.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_objdetect231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_features2d231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_flann231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_calib3d231.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded. 'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded. 'faceRecognition.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file 'faceRecognition.exe': Loaded 'C:\Program Files\SweetIM\Messenger\mgAdaptersProxy.dll', Binary was not built with debug information. 'faceRecognition.exe': Loaded 'C:\Program Files\SweetIM\Messenger\msvcr71.dll', Cannot find or open the PDB file First-chance exception at 0x75379617 in faceRecognition.exe: Microsoft C++ exception: cv::Exception at memory location 0x0015f1d4.. Unhandled exception at 0x75379617 in faceRecognition.exe: Microsoft C++ exception: cv::Exception at memory location 0x0015f1d4..

error before and when compile

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 the following codes:

`Cvcapture* capture;`

 equaliseHist(frame_gray,frame_gray);  

 point center (faces[i].x+faces[i].width*0.5,faces[i].y+faces[i].height*0.5);

how may i resolve these issue? thank you very much


this This is complete error message after compiling compiling and adapting the first problems:

'faceRecognition.exe': Loaded 'D:\Visual Studio 2010\Projects\faceRecognition\Debug\faceRecognition.exe', Symbols loaded.
'faceRecognition.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_core231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_highgui231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16385_none_ebf82fc36c758ad5\comctl32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_imgproc231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\common\tbb\ia32\vc10\tbb.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_objdetect231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_features2d231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_flann231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_calib3d231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'faceRecognition.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Program Files\SweetIM\Messenger\mgAdaptersProxy.dll', Binary was not built with debug information.
'faceRecognition.exe': Loaded 'C:\Program Files\SweetIM\Messenger\msvcr71.dll', Cannot find or open the PDB file
First-chance exception at 0x75379617 in faceRecognition.exe: Microsoft C++ exception: cv::Exception at memory location 0x0015f1d4..
Unhandled exception at 0x75379617 in faceRecognition.exe: Microsoft C++ exception: cv::Exception at memory location 0x0015f1d4..

0x0015f1d4..

error before and when compile

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 the following codes:

`Cvcapture* capture;`

 equaliseHist(frame_gray,frame_gray);  

 point center (faces[i].x+faces[i].width*0.5,faces[i].y+faces[i].height*0.5);

how may i resolve these issue? thank you very much


This is complete error message after compiling and adapting the first problems:

Removed the pdb warnings, these are no errors - Steven Puttemans

'faceRecognition.exe': Loaded 'D:\Visual Studio 2010\Projects\faceRecognition\Debug\faceRecognition.exe', Symbols loaded.
'faceRecognition.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_core231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_highgui231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16385_none_ebf82fc36c758ad5\comctl32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_imgproc231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\common\tbb\ia32\vc10\tbb.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_objdetect231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_features2d231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_flann231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Opencv2.3\opencv\build\x86\vc9\bin\opencv_calib3d231.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'faceRecognition.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'faceRecognition.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'faceRecognition.exe': Loaded 'C:\Program Files\SweetIM\Messenger\mgAdaptersProxy.dll', Binary was not built with debug information.
'faceRecognition.exe': Loaded 'C:\Program Files\SweetIM\Messenger\msvcr71.dll', Cannot find or open the PDB file
First-chance exception at 0x75379617 in faceRecognition.exe: Microsoft C++ exception: cv::Exception at memory location 0x0015f1d4..
Unhandled exception at 0x75379617 in faceRecognition.exe: Microsoft C++ exception: cv::Exception at memory location 0x0015f1d4..