2012.04OpenCVVisualC++*,,(,434023):OpenCV;VisualC++;Adaboost;*:(No.0928):2012-03-06:2012-04-06:(1990-),,,OpenCV,VisualC++,OpenCV,。“”,VisualC++OpenCV。:1OpenCVOpenCV(OpenSourceComputerVisionLibrary)Intel。,CC++,MatLab,,。OpenCV,。WindowsLinux。2OpenCVOpenCV,1。OpenCVCV。MLL,。HighGUI/。CXCoreOpenCV。1OpenCV:CvAux,,。1OpenCV3OpenCVOpenCVAdaboost。,,,。(),,,,,Adaboost,。,,,。。,。Ad-aboost, !#$%&’()’*+,趪趭2012.04。2Ad-aboost。2Adaboost、4OpenCV4.1OpenCVOpenCV,,:(1)OpenCV1.0,VisualC++2005。,,:C:\ProgramFiles\OpenCV\lib。IncludeFiles:…\cxcore\in-clude,…\cv\include,…\cvaux\include…\ml\include,…\otherlibs\highgui,…\otherlibs\cvcam\include,C:\ProgramFiles\MicrosoftPlatformSDK\Include。sourcefiles::…\cv\src,…\cxcore\src,…\cvaux\src,…\otherlibs。(2)VisualC++2005,“Win32”,“…\OpenCV\data\haarcascades”haarcascade_frontalface_alt.xml。haarcascade_frontalface_alt.xm。(3)libProject→Properties→ConfigurationProper-ties→Linker→Inputadditionaldependenciescxcore.lib、cv.lib、ml.lib、cvaux.lib、highgui.lib。4.2(1)OpenCV:、。3。3OpenCV“haarcascade_frontalface_alt.xml”,cvLoad,。OpenCVcvHaarDetectObjects,,。。OpenCV。(2)①VisualC++Win32,“Test”。。②CvSeq*cvHaarDetectObjects(constCvArr*image,CvHaarClassifierCascade*cascade,CvMemStorage*storage,doublescale_factor=1.1,intmin_neighbors=3,intflags=0,CvSizemin_size=cvSize(0,0))。scale_factor;,,,。min_neighbor,,。(3)3,。CvArr*image,(ROI),。, 趪趮2012.04VisualC++DigitalImageProcessingMethodBasedonOpenCVTENGJun,WANGDi-lin,WENHan-yun(CollegeofComputerScience,YangtzeUniversity,Jingzhou434023)Keywords:OpenCV;VisualC++;AdaboostAlgorithm;ImageProcessingOpenCVisamachinevisionlibrarywithopensourcecode,intheapplicationoftheVisualC++programdevelopmentprocess,youcandirectlycallstospecificfunctionsintheOpenCVvisionlibrarytodevelopyourownimageprocessingprogram.ShowsthecombinationofVisualC++andOpenCVindigitalimageprocessingbytakingfacerecognitionasansample.Abstract:ROI。cascadecvLoad()Haar。storage。cvCreateMenStorage(),cvClearMenStorage()。,OpenCV,,“Test.exe”。,,4。45OpenCV,,,,。VisualC++OpenCV,。[1],.OpenCV()[M].,.:,2009[2].OpenCV—()[M].,.:,2007[3]VC2005ExpressOpenCV1.0.[4],,.OpenCV[J].,2007(4)[5],.OpenCV[J].,2010趪趯