组合机床与自动化加工技术
組閤機床與自動化加工技術
조합궤상여자동화가공기술
Modular Machine Tool & Automatic Manufacturing Technique
2015年
11期
83-87
,共5页
异物检测%背光板%机器视觉%OpenCV%图像卷积%掩码模板
異物檢測%揹光闆%機器視覺%OpenCV%圖像捲積%掩碼模闆
이물검측%배광판%궤기시각%OpenCV%도상권적%엄마모판
foreign detection%backlight plate%machine vision%OpenCV%image convolution%mask tem-plate
在平板电脑组装过程中,重要零部件背光板表面往往沾有微型异物,如灰尘,这些异物不易依靠人眼检测,且对最终产品质量有很大影响. 对此,文章提出了一个基于OpenCV与机器视觉的背光板表面异物检测算法. 首先,对待检测零部件图像进行最大类间阈值分割处理与形态学处理,得到包含背光板待检部分的区域;随后利用OpenCV轮廓查找函数cvStartFindContours,定位背光板待检部分的最大外接矩形区域,并联合OpenCV的cvFloodFill函数对背光板轮廓数组内进行置白,生成掩码模板,进行图像按位相与运算处理,从而提取出不规则的待检测区域. 再将提取出的ROI复制一份给RGB图像,且对ROI图像进行开运算处理,对两幅图像进行线性相减,使异物处明显化. 最后,基于图像卷积处理,进一步突出异物,完成异物检测. 实验测试结果表明:与当前图像异物检测算法相比,文章机制具有更好的检测定位效果,准确识别出背光板异物.
在平闆電腦組裝過程中,重要零部件揹光闆錶麵往往霑有微型異物,如灰塵,這些異物不易依靠人眼檢測,且對最終產品質量有很大影響. 對此,文章提齣瞭一箇基于OpenCV與機器視覺的揹光闆錶麵異物檢測算法. 首先,對待檢測零部件圖像進行最大類間閾值分割處理與形態學處理,得到包含揹光闆待檢部分的區域;隨後利用OpenCV輪廓查找函數cvStartFindContours,定位揹光闆待檢部分的最大外接矩形區域,併聯閤OpenCV的cvFloodFill函數對揹光闆輪廓數組內進行置白,生成掩碼模闆,進行圖像按位相與運算處理,從而提取齣不規則的待檢測區域. 再將提取齣的ROI複製一份給RGB圖像,且對ROI圖像進行開運算處理,對兩幅圖像進行線性相減,使異物處明顯化. 最後,基于圖像捲積處理,進一步突齣異物,完成異物檢測. 實驗測試結果錶明:與噹前圖像異物檢測算法相比,文章機製具有更好的檢測定位效果,準確識彆齣揹光闆異物.
재평판전뇌조장과정중,중요령부건배광판표면왕왕첨유미형이물,여회진,저사이물불역의고인안검측,차대최종산품질량유흔대영향. 대차,문장제출료일개기우OpenCV여궤기시각적배광판표면이물검측산법. 수선,대대검측령부건도상진행최대류간역치분할처리여형태학처리,득도포함배광판대검부분적구역;수후이용OpenCV륜곽사조함수cvStartFindContours,정위배광판대검부분적최대외접구형구역,병연합OpenCV적cvFloodFill함수대배광판륜곽수조내진행치백,생성엄마모판,진행도상안위상여운산처리,종이제취출불규칙적대검측구역. 재장제취출적ROI복제일빈급RGB도상,차대ROI도상진행개운산처리,대량폭도상진행선성상감,사이물처명현화. 최후,기우도상권적처리,진일보돌출이물,완성이물검측. 실험측시결과표명:여당전도상이물검측산법상비,문장궤제구유경호적검측정위효과,준학식별출배광판이물.
Assembled in flat computer process, important parts of the backlight board surface often stained with micro foreign bodies, such as dust, these foreign bodies are not easy to rely on eye detection, and has a great influence on the quality of the final product. Therefore, this paper proposes a backlight plate surface based on foreign recognition mechanism and defect detection of OpenCV. First of all, treat the detected im-age maximum between class threshold segmentation and morphological processing, including the backlight board inspected region. Then, the largest outer OpenCV contour search function of cvStartFindContours po-sitioning to be detected based on the backlight board part of the rectangle region, cvFloodFill function of OpenCV on the backlight plate profile in an array of the white based, generated mask template, image and processing, to extract the irregular tested area. Finally, the extracted ROI copy of a RGB image, and then the ROI image to open operation treatment, two images are linear subtraction, so that the foreign matters at the obvious. Then image convolution based processing, further highlight the foreign body, and in the origi-nal image with a red circle labeling, to display the detection result. The final test performance, the foreign body recognition results show that:compared with the current image recognition algorithm in this paper, for-eign body, mechanism has better recognition effect, accurately identify the backlight board foreign body.