机器视觉颜色检测技术及应用研究Word文件下载.docx
《机器视觉颜色检测技术及应用研究Word文件下载.docx》由会员分享,可在线阅读,更多相关《机器视觉颜色检测技术及应用研究Word文件下载.docx(56页珍藏版)》请在冰豆网上搜索。
舢Y…洲9Ⅲ4洲6舢2㈣5
ADissertationSubmittedtoGuangdongUniversityofTechnologyfortheDegreeofMasterofEngineering一一
Science
Machinevisiondetectingtechnologyresearch
andapplicationofColorMasterCandidate:
ZhangLeiSupervisor:
Prof.WangRenhuang
May2011
FacultyofAutomationGuangdongUniversityofTechnologyGuangzhou,Guangdong,P.R.China,510090
r≥l。
,
摘要
人类所获得的外界信息的75%以上是来自眼睛摄取的图像。
视觉图象是人类获取信息最主要的来源,其直观性和易理解性是显而易见的,是其它信息所无可比肩的。
将图像技术和计算机技术结合在一起,形成了数字图像处理分析技术。
数字图像处理分析技术在不同领域的应用,产生了不同的应用学科。
目前已发展了多门相关的应用学科:
计算机视觉,机器人视觉,模式识别与人工智能等。
近年来,数字图像处理技术发展迅速,基于机器视觉的各种检测技术逐步从研究领域走向实用化阶段。
颜色检测用图像处理与识别技术测量颜色之间的差别,可以显著提高对颜色检测的工业生产的自动化程度。
颜色检测技术通过图像采集设备采集待测物体表面颜色图像,利用参考颜色标准,使用计算机对颜色图像进行算法计算,准确区别颜色之间的差别。
通过查阅国内外相关资料,发现颜色检测技术研究大部分集中于颜色差别比较大的色彩方面。
色差的检测一直是颜色检测的难点。
由于颜色空间的均匀程度不同,与人眼对同一色度观测结果的差异也不同。
因此,如何准确的对色差进行检测,正确的区分缺陷颜色的边界,以及提高表面颜色测试的精确度和与人眼的吻合度就显得尤其重要。
并且具有相当高的研究意义和现实意义。
本文针对以上问题做了以下研究工作:
1.彩色图像颜色边界的划分
边缘检测算法是图像测量技术的研究重点。
目前,国内外研究者提出了多种边缘检测算法,并得到具体的应用。
但这些研究对于彩色图像的处理技术在质量检测中不能达到很好精度。
本课题提出一种利用在均匀颜色空间CIEL*a*b*空间内利用图像与图像主色之间的色差为参数的彩色图像边缘检测方法。
并用水平集方法、颜色空间转换后中心聚类法等多种方法对多种典型彩色图像进行了分割。
2.在试验获得的最优灯光亮度和角度下,对色差进行检测
本文在分析灯光位置和亮度对颜色的影响,提出的灯光视场角度最优方案的基础之上,采用目前最均匀的色差公式CIEDE2000对色差的检测进行了研究。
实验结果表明,CIEDE2000色差公式可以对色差进行比较好的检测。
3.研究颜色测量系统的干扰因素,提高颜色测试的重复稳定性和准确性
广东工业大学硕士学住论文
在研究试验的过程中,分析颜色测试的多种干扰因素,提出解决方法提高颜色测试的重复稳定性和准确性。
4.分析人眼对色彩质量评价的标准,提高机器视觉表面颜色测试和人眼视觉的吻合度
本文通过Matlab和VC++6.0软件实现了上述算法和方法,最后对颜色检测实验进行验证,取得良好的效果。
关键词:
机器视觉;
颜色检测;
色差;
彩色分割;
颜色算法;
水平集Ⅱ
Abstract
Thatmanacquiresoutsideinformationfrommorethan75%oftheintakeoftheimageiseyes.Thevisualimageisthemainsourceofinformation.Imagetechnologyandcomputertechnologycombiningtogether,formtheanalysistechnologyofdigitalimageprocessing.Digitalimageprocessingandanalysistechnologyindifferentfieldsofapplication,resultinginadifferentapplicationdisciplines.
Wehaveseveralrelatedsubjects:
theapplicationofcomputervisionandpattem
recognition,therobotofartificialintelligenceandere.
Inrecentyears,therapiddevelopmentofdigitalimageprocessingtechnology,basedonmachinevisiondetectingtechnologygraduallyfromthevariousresearchtowardspracticalphase.Colortestusingimageprocessingandrecognitiontechnologymeasurethedifferencebetweencolourofcolor,cansignificantlyimprovethedetectionofindustrialproductionautomation.Colortesttechnologythroughimageacquisitionequipmentacquisitionsystems,usingobjectsurfacecolorimagecolorstandardreference,usethecomputertocolorimagedifferencearithmetic,accuratecolordifference.
Throughthedomesticandforeignrelevantmaterial,foundthecolortesttechnologyresearchfocusedoncolordifferenceofbigcolorrespect.Thedetectionofchromatismisalwaysdifficult.Duetothedifferentlevelsofuniformcolorspace,andeyeonthesamechromaticityobservationsofthedifferencesaredifferent.Therefore,howtoaccurately,tosmallcolorcorrectlydistinguishtheboundaries,colorsanddefectstoimprovetheprecisionandsurfacecolortestwiththeinosculationappearsespeciallyimportant.Andthehighresearchmeaningandrealisticsignificance.
Basedontheaboveresearchworkbelow:
1.Colorimageofdefectsdivided
Imageedgedetectionalgorithmisfocusedonthemeasuringtechnique.Atpresent,researchersofedgedetectionalgorithmproposed,andspecificapplication.Butthese
forcolorimageprocessingtechnologyinthequalityinspectionofgoodprecisionIIIthestudies
cannotachieve.ThistopicisproposedbyusingtheuniformcolorSpacesinbetweenthe
methods・imageandimageoftheparametersforcolorimageedgedetection
2.IntheexperimentofoptimallampbrightnessandAngleofchromatism.Basedontheanalysisofcolorandbrightnesslightingposition,theinfluenceofthe
onlightfieldofviewoftheoptimalschemebasedthemostCIEDE2000formulaforthe
thatCIEDEuIlifomcolorchromatismdetectionwasstudied.Experimentalresultsshow
chromatismformulaCancomparetochromatismgood.
test3.Colormeasurementsystemofstudy,improvethecolor
repeatedaccuracyinterferencefactorsofandstability.
Intheprocessofresearch,analysisofthetestofcolor,andputsforwardsolutionstointerferencefactorstoimprovecolorofrepeatedaccuracyandstabilitytesting.
4.Analysisofthehumantheeyetocolorqualityevaluationstandard,improvesurfacecolortestmachinevision
Inthisandthehumanvisionremains.oftheabove,paper,MATLABandVC++6.0softwarealgorithmsandmethodsthefinalvalidationofthecolordetectionexperiments,andachievedgoodresults.Keywords:
Machinevision;
colordetection;
chromatism;
colormeasurementsystem;
coloralgorithmIV
目录
摘要………………………………………………….IAbstract.....................................................III目录………………………………………………….VContents....................................................VIII
第一章绪论……………………………………………1
1.1本课题研究背景及应用领域…………………………..1
1.1.1研究背景…………………………………..1
1.1.2应用领域…………………………………..2
1.2国内外研究发展现状……………………………….41.3本课题的研究目标、研究内容和解决的关键技术………….5
1.3.1研究目标…………………………………..5
1.3.2研究内容和解决的关键技术…………………….5
1.4本文的结构………………………………………5
第二章论文使用到的相关理论知识………………………….7
2.1彩色图像原理……………………………………..72.2水平集方法介绍……………………………………7
2.2.1水平集方法概述……………………………..7
2.2.2水平集方法理论………………………………8
2.3物体色的测量条件………………………………..1O
2.3.1标准照明体和标准光源……………………….10
2.3.2标准照明和观测条件’…………………………11
2.4彩色空间和彩色距离……………………………….12
2.4.1理论简介………………………………….12
2.4.2均匀颜色空间和色差公式……………………..13
2.5彩色图像分割综述…………………………………14
第三章彩色图像颜色边界的划分…………………………..16
3.1彩色图像边缘检测综述….……………....…………16V
、
广东3-业大学硕士学位论文
3.2基于水平集的图像分割…………………………….16
3.2.1水平集方法简介……………………………..163.2.2基于Mumford-Shah模型的水平集图像分割…………183.3基于Lab颜色空间的彩色聚类图像分割………………..25
3.3.1色差和颜色空间……………………………..253.3.2算法阐述以及分割效果………………………..263.4基于HSI颜色空间的欧式中心聚类法图像分割…………..33
3.4.1HSI颜色空间……………………………….333.4.2算法阐述以及分割效果………………………..34
第四章基于ClE颜色系统的色差检测技术……………………38
4.1颜色空间的发展…………………………………..384.2成像时色差的形成原因与色差的发展…………………..384.3颜色质量的评价…………………………………..404.4算法介绍………………………………………..414.5羽毛片的色差检测…………………………………434.6两种不同光源的羽毛片色差检测………………………44
4.6.1采用同轴光源检测……………………………444.6.2采用环形LED光源检测………………………..454.7小结……………………………………………46
第五章颜色重复测试稳定性与准确性的提高………………….47
5.1三基色白光LED光源……………………………….475.2摄像头的选择……………………………………495.3对于毛片进行稳定性测试…………………………..50
5.3.1测试方案…………………………………..505.3.2测试算法介绍……………………………….515.3.3测试结果…………………………………..525.4对于羽毛片进行角度偏转测试……………………….54
第六章论文总结………………………………………..58参考文献………………………………………………59攻读学位期间发表论文和获奖………………………………63VI
独创性及版权使用授权声明………………………………..64致谢…………………………………………………65VH
Contents
Abstract(Chinese)…………………………………………………………………………・IAbstract(English)………………………………………………………………………・IIIContents(Chinese)……………………………………………………………………….・VContents(English)……………………………………………………………………..VIIIChapter1Introduction.............................................................................1
1.1ResearchPurposeandSignificanceofSubject…………………………・1
1.1.1ResearchPurpose……………………………………………………….1
1.1.2ApplicationField……………………………………………………….21.2DomesticandInternaionalResearchSituation………………………….41.3CofigurationofContents.............................・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・5
1.3.1ResearchObjectives..................................・..・・・・・・・・・・・・・・-・・・・・t・・51.3.2TheResearchandTheKeyTechnology……………………………51.4PaperStructure…………………………………………………………………5Chapter2ThesistoTheRelevantTheoreticalKnowledge........................7
2.1ColorImagePrinciple………………………………………………………..72.2TheLevelSetMethodisIntroduced………………………………………7
2.2.1TheLevelSetMethodOverview…………………………………….72.2.2TheLevelSetMethodTheory……………………………………….82.3TermsofMeasuringtheColor..…......…..…....…………...…….……..10
2.3.1StandardIlluminantsandStandardLightSource...................102.3.2StandardLightingandViewingConditions………………………112.4ColorSpaceandColorDistance…………………………………………..12
2.4.1TheoryIntroduction...........................................................122.4.2UniformColorSpaceandColorDifferenceFormula………….132.5SummaryofColorImageSegmentation.......................................14Chapter3BorderColorImagesbyColor.........................................・・・・・・16Ⅷ
Conterlts
1i——__皇薯皇置鲁——__———皇置墨舞皇量—l_——墨|皇量暑舅鲁量_———_鲁曼墨鼍宣——_——鲁曼皇皇鼍墨量——_鼍_詈置皇田墨_I一
3.ISummaryofColorEdgeDetection…..…….……………………………..163.2ImageSegmentationBasedonLevelSets……………………………….16
3.2.1IntroductiontoLevelSetMethod…...….....….....…..........…..16
3.2.2Mumford-ShahModelLevelSetImageSegmentation………..18
3.3LabColorSpaceBasedonColorClusteringImageSegmentation…25
3.3.1ColorandColorSpace……………………………………………….25
3.3.2AlgorithmisDescribedandTheSegmentationResults……….26
3.4HSIcolorspacebasedclusteringmethodtoimagesegmentation....33
3.4.1HSIColorSpace……………………………………………………….33
3.4.2AlgorithmisDescribedandTheSegmentationResults……….34
Chapter4CIEColorSystemBasedonDetectionofSmallColor..............38
4.1TheDevelopmentofColorSpace………………………………………….384.2CausesTheFormationofColorImagingandColorDevelopment....38zI.3EvaluationofColorQuality.........................................................404.4AlgorithmIntroduced…………………………………………………………414.5ColorDetectionofSmallCeramicTiles….....…............…....….......434.6Twodifferentpiecesofsmallcolorfeatherlightdetection………………….44
4.6.1UsingCoaxialIlluminantDetection………………………………44
4.6.2UsingAnnularLEDLightSourceDetection…………………….45
4.7Summary…………………………………………………………………………46Chapter5ExperimentalResultsandDataAnalysis....….............…...…...….47
5.1TricolorWhiteLEDLightSource................................................475.2TheChoiceofCamera……………………………………………….:
………495.3StabilityTestingofTheFeatherPieces…………………………………..50
5.3.1TestSolutions………………………………………………………….50
5.3.2TestAlgorithmdescription………………………………………….51
5.3.3TestResults…………………………………………………………….52
5.4DeflectionAngleforTheFeatherstoTheTestPiece………………….54Chapter6Conclusion……………………………………………………………………58References…………………………………………………………………………………59IX
PublicationandAwardsDuringMaster’sStudy…………………………………..63OriginalityandCopyrightUseAuthorizedStatement.....................64Thanks...................................................................................................65X
第一章绪论
1.1本课题研究背景及应用领域
1。
1.1研究背景
机器视觉系统是指通过机器视觉产品(即图像摄取装置,分CMOS和CCD两种)把图像抓取到,然后将该图像传送至处理单元,通过数字化处理,根据像素分布和亮度、颜色等信息,来进行尺寸、形状、颜色等的判别。
进而根据判别的结果来控制现场的设备动作。
一个典型的工业机器视觉应用系统,包括数字图像处理技术、机械工程技术、控制技术、光源照明技术、光学成像技术、传感器技术、模拟与数字视频技术、计算机软硬件技术、人机接口技