基于自适应K-means++的线序特征值提取方法研究
2021-06-28惠婉玉吴玉秀张文忠
惠婉玉 吴玉秀 张文忠



摘 要:自适应K-means++被用于提取线束连接器的主色特征值。首先对相机采集的图像进行去噪和增强对比度的操作;然后进行图像灰度化处理,通过大津阈值法分离线束主体与背景;再根据Canny算子提取每根导线的轮廓,由轮廓位置获取增强图像对应的图像块;最后通过线宽选取聚类区域并利用自适应K-means++提取主色特征值。实验通过中位切分法、K-means及自适应K-means++分别提取特征值,并与人眼视觉观测的特征值进行色差对比。实验表明自适应K-means++方法提取的特征值较准确。
关键词:线束连接器;主色特征值;自适应K-means++;色差
中图分类号:TP391.41 文献标识码:A 文章编号:2096-4706(2021)01-0071-06
Research on Line Order Eigenvalue Extraction Method Based on Adaptive K-means++
HUI Wanyu,WU Yuxiu,ZHANG Wenzhong
(School of Electrical and Information Engineering,Anhui University of Techology,Maanshan 243032,China)
Abstract:Adaptive K-means++ is used to extract the dominant color eigenvalue of the harness connector. First,denoise and enhance the contrast of the image collected by the camera;then the image is grayed,and the main body and background are separated by Otsu threshold method;then,the contour of each wire is extracted according to Canny operator,and the image block corresponding to the enhanced image is obtained from the contour position;finally,the clustering region is selected by linewidth and the dominant color eigenvalue is extracted by adaptive K-means++. The experiment uses median segmentation,K-means and adaptive K-means++ to extract eigenvalue,and compare them with the eigenvalue observed by human vision. Experiments show that the eigenvalue extracted by the adaptive K-means++ method are more accurate.
Keywords:harness connector;dominant color eigenvalue;adaptive K-means++;chromatic aberration
0 引 言
线束连接器是电子电路设备中不可或缺的一种重要器件,结构上包含两个部分,上部分是用于装线的胶壳,下部分是连接线。它的作用是在两个或者多个孤立不流通的电子电路之间搭设连通的桥梁,使电流流通,实现电子元器件的各项功能[1]。随着电子制造业的快速发展以及连接器需求量地不断增加,涉及的领域有汽车、电信与数据通信、航空航天、医疗设施以及军事领域等。由于全球连接器生产能力不断向中国偏移以及更多的国际连接器企业把生产基地转移到中国,中国市场成为全球连接器订单量增长最快的市场,因此对连接器品质的要求越来越严格[2]。线束连接器是由各种不同颜色的导线按照一定的顺序插入到对应的孔位,因此颜色特征是其最显著的特征。……
