PrefaceforChineseTranslationSinceth在writingofbook,OpenCVisnowactivelysupportedbyWillowGarage().aroboticsresearchinstitutelocatedinMenloPark,California.DuringthetimewhenOpenCVhadlesssupport,ShiqiYuhelpedoutbyproducingaChin在setranslationofOpenCVdocumentatìon.ItisthereforfíttingthatShiqihascontinuedontoproducetheChinese主ranslationofthisbook.TheChinesetranslationtimingisalsonicelyalignedwiththenewrele在se2.0ofOpenCVínSept非mb衍2009.YoucanfíndlinkstocurrentinformationonOpenCVatthemainwikipageatht伊:Ilopencv.willowgαrage.comwhichlinkstothedetailedpageatht伊:/Iopencv.willowgarage.comlwikiIFullOpenCVWiki.ThenewOpenCVreleasesaredetailedin得Announcements.Applicationsforcomputervisionandmachineperceptionaregrowingrapidly.Forexample,manypeoplearefamiliarwith'facedetectionnowavailableonconsumercameras.ManyofthosefacedetectiontechniquesareadaptedfromthefacedetectionalgorithmsdevelopedinOpenCV.B时,manypeoplearenotawareofjusthowimportantcomput在rvisionalreadyisformanufacturing.Almostnothingismanufacturedthes号dayswithoutmakinguseofvideoinspectionequipment,camer剖nowmonitorfruitsandvegetablesforblemishes,makesurethatthelabelsonproductsareputonintherightplac号,飞存在tchtomakesureclothhasnoflaws,orthateachpixelworksonanLCDscreenandmuchmore.Manyofthes缸applicationsmakeus在ofOpenCVroutines,manysuchsystemsar在deployedinChina.Computervision在lsohasgrowingusesinmonitoringandsafety.Somepeople在reawareofsecuritycamerasinairportsandtrainstations,butfewerpeopleknowth以camerasarealsoincreasinglyusedtomonitormineequipment,prev告ntdrowningsinswimmingpoolsandwatchtrafficflowandaccidentsonfreeways.OpenCV,wìthitsBSD\icen白,encouragescommercialuseandsoisdeployedonmanyofthesemonitorìngsystems.Whenyousearchth在web,manyof住在imageprocessíngroutinesrunbyGooglemake泣seofOpenCV.Theseusesr在ngefromhelpingstitchsatelliteandairplaneìmagestogetherinGoogleEarthandGoogleMaps,butalsotl{…stitchstreetscenestogetherandaligntheimagerywithlasersc拍sinGoogleStreetView.Computervisionhasmanyusesonth牵Web,suchasintheVideoSummaryproducedbyVideoSur叹)orforimageretrievalby在11them我jorsearch,.,..engines.Thereisapositivefeedbackherebecausethemoreimagesthereareontheweb,themoretrainingdatabecomesavai1ablesuchasLabelMe(ht伊://labelme.csail.mit.edu/datαbases)orTinyImages(ht伊从伊eople.csail.mÌ!.edu/torralba/tinyimages/collection).Additional1y,moreandmoreresearchersareusingAmazon'sMechanicalTurkservice(}tolabelimagesdatabasesforpenniesperimage在ndtoolsareappearingtomakesuchlabelingtaskseasiertorun(http:牛r.wi/lowgarage.com/wiki/ROS/mturk).Thetrainingdatafromthesedatabasesandserviceshelpsimprovecomputervisionalgorithms.Bycoincidence,bothauthorsoftheOpenCVbooknowworkinroboticswheresensorperceptionÎsthemainobstacletoenablewidedeploymentofrobotics.RobotswilIbeusefulforelder1ycare,foragriculture,forservicesandformanufacturing.Robotsha可sbeendoingwellatnavigationandmapping(ht伊://ww¥毛人youtube.com/watch?v=qRrMHa06NpE)buttherealkeytounleashingamobileroboticsin出stryisperceptionformanipulation.RobotsneedtobeabletoseeobjectsreIiablyinordertomanipulateandbuildthings.ThereisstilImuchworktodotomakeperceptionreIiabl缸,andthatisoneofthereasonswhyOpenCVisopen-tocol1ectthebestworkofthetoppeopleinordertoenablese告ingmachines.R在centlytherehavebeenmanyadvancesinmobilemanipulation(ht伊://Wli几1人youtube.com/watch?v口OS2dc…B-6Kg)butmuchmoreworkremainstobedone.Fortunately,OpenCViskeepingupandnowdoesamajorreleaseevery6monthswithdai1yimprovementsavailablefromthesourcecoderepository(=svn.是group_id口22870).1thankShíqiYuandRuizhenLiufortheirtranslationofthisbook.Peoplewhoworkinopensourcedotheirworkforallofhumanityandnotforanyspecificco边往try,companyorgroup.OpenCVwasdesignedto在cceleratehumanknowledgeandcapabiIitybymakingadvancesinknowledge在vailabletoeveryon号.Thisisanoptimistic¥iewofhumanitybutitdependsoncontributionsback.WeencouragetopscientistsanddeγelopersinChinatole在rnOpenCVandtocontributetheiradvancesbacktotheeffort.GaryBradskiSeniorScientist,WillowGarageConsultingProfessor,StanfordUniversity,CSDept.g在rybradski也gmail.comSeptember2009阳trJ号学习OpenCV(中文版)GaryBradskiAdrianKaehler著于仕琪刘瑞棋译。要REILLY@Be扩ing.Cambridge.Farnham•IGδln.Sebastopol.Ta专7ei.To妙。。,ReillyMedia,Inc.授权清华大学出版社出版清华大学出版社北京.,.....,;,-~国内容简介计算机视觉是在图像处理的基黯上发展起来的新兴学科.OpenCV是…个开源的计算机挠觉是英特尔公司资爵的两大器像处理科器之…。它为自像处理、a模式识别、三维重建、物体跟踪、机器学习和线性代数提供了各种各样的算法。本书画OpenCV发起人所写,站在二t钱开发人员的角度琦混俗易锚的语言解释了OpenCV的缘起和计算辑视觉3基础结构,演示了如何蹲OpenCV和现有的自由代码为各种各样的机缔造好编程,这些都有助于读者迅速入门并渐入佳境,兴趣盎然地深入探索计算机提党领域。本书可作为借息处理、计算挠、机器人、人工智能、遥感器像处理、认知神经科学等有关专业的高年级学生或研究生韵教学用书,也可供招关领域的研究工作者参考。Copyright@2008G被yBradskiandAdri在nKaehler.AI1rightsreserv时,Authorized.SimplifiedChinesetranslationeditio珑,by0'这.eillyMedia与Inc.,.ispublishedbyTsi吨huaUniversity如ωs,2009.AuthorizedtranslationoftheoriginalEnglishedition,2008O'Rei11yM创ia,Inc.,theownerofallrightstop泣blishandsellthesame.Allrightsreservedinch品dingtherightsofreproductioninwholeorinpartinanyform.本书之英文原版自O'ReillyMedia,lnc.于200