[go: up one dir, main page]

CN118097092A - A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors - Google Patents

A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors Download PDF

Info

Publication number
CN118097092A
CN118097092A CN202410524732.4A CN202410524732A CN118097092A CN 118097092 A CN118097092 A CN 118097092A CN 202410524732 A CN202410524732 A CN 202410524732A CN 118097092 A CN118097092 A CN 118097092A
Authority
CN
China
Prior art keywords
inspection
wire core
pin
length
exposed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410524732.4A
Other languages
Chinese (zh)
Other versions
CN118097092B (en
Inventor
耿俊浩
王云涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN202410524732.4A priority Critical patent/CN118097092B/en
Publication of CN118097092A publication Critical patent/CN118097092A/en
Application granted granted Critical
Publication of CN118097092B publication Critical patent/CN118097092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/774Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/20Scenes; Scene-specific elements in augmented reality scenes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/70Labelling scene content, e.g. deriving syntactic or semantic representations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Manufacturing Of Electrical Connectors (AREA)

Abstract

The invention relates to the technical field of information, and discloses an intelligent checking method, device and system for the press-connection quality of a miniature contact pin of an electric connector, wherein the device comprises the following components: the box body, the box cover and the camera device; the method comprises the following steps: s1, off-line modeling, namely detecting and positioning key parts of the contact pin in real time by using a high-quality and precisely marked image data set through a deep learning training model; s2, checking the press-connection quality of the pin, and checking the state of the in-pin pressure and the conformity of the exposed length of the wire core; s3, displaying an inspection result AR, and constructing and superposing a virtual inspection area and a result by extracting model output and real-time parameters to realize visual real-time contact pin position and state display; s4, feedback of operators: the operator evaluates the quality of the pin according to the AR checking result and takes necessary measures; the system comprises a hardware layer, a data layer, a functional layer and an application layer.

Description

一种电连接器微型插针压接质量智能检查方法、装置与系统A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors

技术领域Technical Field

本发明涉及信息技术领域,特别是涉及一种电连接器微型插针压接质量智能检查方法、装置与系统。The present invention relates to the field of information technology, and in particular to a method, device and system for intelligently inspecting the crimping quality of a miniature pin of an electrical connector.

背景技术Background technique

电连接器是电气线路互联系统的核心组件,其作用是简化飞机、船舶、高铁等高端装备的电气线路连接,增加系统连通性,为连接提供便捷性,实现连接组件解耦。插针是实现电连接器互联的核心组件,其压接质量直接关系到电线电缆的通电质量和运行稳定性,因此在插针生产和电连接器插接过程中对插针压接质量进行检查,确保其质量符合要求极为重要。Electrical connectors are core components of electrical circuit interconnection systems. Their function is to simplify electrical circuit connections of high-end equipment such as aircraft, ships, and high-speed railways, increase system connectivity, provide convenience for connections, and achieve decoupling of connection components. Pins are core components for interconnecting electrical connectors. The quality of their crimping is directly related to the power quality and operational stability of wires and cables. Therefore, it is extremely important to inspect the crimping quality of pins during pin production and electrical connector insertion to ensure that their quality meets the requirements.

大部分插针都是微型零件,其直径最小仅为0.5mm左右,其待检区域或处于微型孔洞中,或处于尺寸小于1mm的狭长边缘,且每个电连接器所需插针数量较多,最多可达128个,这给其质量检查带来了极大挑战。Most of the pins are miniature parts, with a minimum diameter of only about 0.5mm. The area to be inspected is either in a miniature hole or on a narrow edge with a size less than 1mm. Each electrical connector requires a large number of pins, up to 128, which poses a great challenge to its quality inspection.

针内压线状态和线芯裸露长度符合性是插针压接质量检查的两个关键检查点。针内压线状态检查是检查线缆线芯是否全部插入针内,需在特定位置、直径一般小于2mm的插针观察孔区域进行检查;线芯裸露长度符合性检查是检查线芯裸露长度是否在规定长度内(一般小于1mm),在插针尾部区域进行检查。目前这两个检查点都高度依赖人工使用放大镜进行检查,操作非常不方便,大批量插针检查的效率很低,且易造成作业人员视觉疲劳,极其容易发生错检漏检等问题。The wire pressing status inside the pin and the exposed length of the wire core are two key inspection points for the quality inspection of pin crimping. The wire pressing status inspection inside the pin is to check whether the cable core is fully inserted into the pin. It needs to be checked at a specific location and in the pin observation hole area with a diameter generally less than 2mm. The exposed length of the wire core conformity inspection is to check whether the exposed length of the wire core is within the specified length (generally less than 1mm). It is checked at the tail area of the pin. At present, both of these inspection points are highly dependent on manual inspection using a magnifying glass, which is very inconvenient to operate. The efficiency of large-scale pin inspection is very low, and it is easy to cause visual fatigue to the operators, and it is extremely easy to have problems such as wrong inspection and missed inspection.

当前,深度学习、计算机视觉、增强现实等技术快速发展,其在制造质量检查中的应用越来越广泛,具有良好的应用前景,但是由于微型插针尺度小、质量检查难度高,目前尚缺少针对电连接器微型插针压接质量的智能化检查方法、装置与系统,仍依赖人工使用放大镜的方式对插针压接质量进行检查,迫切需要实时、自动化、智能化的辅助检查方法与工具。At present, technologies such as deep learning, computer vision, and augmented reality are developing rapidly, and their applications in manufacturing quality inspection are becoming more and more extensive, with good application prospects. However, due to the small size of micro pins and the high difficulty of quality inspection, there is still a lack of intelligent inspection methods, devices, and systems for the crimping quality of micro pins of electrical connectors. The quality of pin crimping is still manually inspected using a magnifying glass, and real-time, automated, and intelligent auxiliary inspection methods and tools are urgently needed.

目前插针压接质量检查主要采用人工使用放大镜的方式,操作非常不方便,检查效率很低,大批量检查时易造成作业人员视觉疲劳,错检漏检等问题频繁发生。At present, the quality inspection of pin crimping mainly adopts the method of manual use of magnifying glasses, which is very inconvenient to operate and has a very low inspection efficiency. Large-scale inspection is easy to cause visual fatigue of operators, and problems such as wrong inspection and missed inspection occur frequently.

发明内容Summary of the invention

因此本发明提出一种电连接器微型插针压接质量智能检查方法、装置与系统,能够通过深度学习、计算机视觉、增强现实等方法,辅助检查人员对微型插针针内压线状态、线芯裸露长度符合性等压接质量点进行实时、智能、高精度检查,解决人工使用放大镜进行检查而导致的操作不便、效率较低、容易视觉疲劳、容易错检漏检等问题。Therefore, the present invention proposes an intelligent inspection method, device and system for the crimping quality of micro-pins of electrical connectors, which can assist inspectors in performing real-time, intelligent and high-precision inspections of crimping quality points such as the wire pressing status inside the micro-pins and the compliance of the exposed length of the wire cores through methods such as deep learning, computer vision and augmented reality, thereby solving the problems of inconvenient operation, low efficiency, easy visual fatigue, easy misdetection and missed detection caused by manual inspection with a magnifying glass.

为了实现上述目的,本发明提供了一种电连接器微型插针压接质量智能检查装置,所述装置包括:盒体、盒盖和摄像装置,所述盒体与所述盒盖可拆卸连接,所述盒盖靠近所述盒体一侧固定连接有环形光源,所述摄像装置包括摄像头和摄像头模组保护壳,所述摄像装置数量设置有至少一个;In order to achieve the above-mentioned object, the present invention provides an intelligent inspection device for the crimping quality of a micro pin of an electrical connector, the device comprising: a box body, a box cover and a camera device, the box body and the box cover are detachably connected, the box cover is fixedly connected to a ring light source on one side close to the box body, the camera device comprises a camera and a camera module protective shell, and the number of the camera device is at least one;

当所述摄像装置只存在一个时,所述盒体一侧设置有可供插针通过的通孔,所述盒盖远离所述盒体的一侧设置有所述摄像装置,所述盒盖中心设置有可供所述摄像头通过的通道,所述通道周围设置有固定槽,所述摄像头模组保护壳靠近所述摄像头一侧设置有固定块,所述摄像头模组保护壳通过所述固定块与所述盒盖可拆卸连接;When there is only one camera device, a through hole for the pin to pass through is provided on one side of the box body, the camera device is provided on the side of the box cover away from the box body, a channel for the camera to pass through is provided at the center of the box cover, a fixing groove is provided around the channel, a fixing block is provided on the side of the camera module protective shell close to the camera, and the camera module protective shell is detachably connected to the box cover through the fixing block;

当所述摄像装置存在多个时,所述盒盖上设置有可供插针通过的通孔,所述盒盖设置有两个,且两个盒盖设置于所述盒体相对的两个面上,所述盒体除了所述盒盖可拆卸连接的表面外的其他表面均设置有可供所述摄像头通过的通道,所述通道周围设置有固定槽,所述摄像头模组保护壳靠近所述摄像头一侧设置有固定块,所述摄像头模组保护壳通过所述固定块与所述盒体可拆卸连接。When there are multiple camera devices, the box cover is provided with a through hole for the pin to pass through, the box cover is provided with two, and the two box covers are arranged on two opposite surfaces of the box body, and the other surfaces of the box body except the surface to which the box cover is detachably connected are provided with channels for the camera to pass through, and fixing grooves are provided around the channels, and the camera module protective shell is provided with a fixing block on the side close to the camera, and the camera module protective shell is detachably connected to the box body through the fixing block.

进一步的,本发明还包括一种电连接器微型插针压接质量智能检查方法,应用于上述的电连接器微型插针压接质量智能检查装置中,所述方法包括:Furthermore, the present invention also includes a method for intelligently inspecting the crimping quality of a micro-pin of an electrical connector, which is applied to the above-mentioned intelligent inspection device for the crimping quality of a micro-pin of an electrical connector, and the method includes:

S1.离线建模:通过深度学习训练模型,使用高质量、精确标注的图像数据集来实时检测和定位插针的关键部位;S1. Offline modeling: The model is trained through deep learning, using high-quality, accurately annotated image datasets to detect and locate key parts of the pin in real time;

S2.插针压接质量检查:进行针内压线状态检查和线芯裸露长度符合性检查;S2. Pin crimping quality inspection: Check the crimping status inside the pin and the exposed length of the wire core;

S3.检查结果AR展示:通过提取模型输出和实时参数,构建并叠加虚拟检查区域和结果,实现直观的实时插针位置和状态展示;S3. AR display of inspection results: By extracting model output and real-time parameters, constructing and superimposing virtual inspection areas and results, an intuitive real-time display of pin position and status is achieved;

S4.反馈:根据AR检查结果评估插针的质量,并采取措施。S4. Feedback: Evaluate the quality of the pins based on the AR inspection results and take action.

优选的,步骤S1具体包括:Preferably, step S1 specifically includes:

1)准备数据集:准备若干高质量图像数据,构建数据集;1) Prepare the data set: prepare some high-quality image data and build the data set;

2)图像分区:对所述高质量图像数据中的高分辨率插针图像进行分区,用方形区域截取观察孔和尾部图像;2) Image partitioning: partitioning the high-resolution pin image in the high-quality image data, and using square areas to intercept the observation hole and tail images;

3)图像标注:对每张图片中的目标进行精确标注,形成训练数据集;3) Image annotation: Accurately annotate the objects in each image to form a training data set;

4)训练建模:通过深度学习目标检测框架对标注数据集进行训练,得到目标检测分类器,用于实时识别插针观察孔和尾部位置。4) Training and modeling: The labeled data set is trained through the deep learning target detection framework to obtain the target detection classifier, which is used to identify the pin observation hole and tail position in real time.

优选的,步骤S2具体包括针内压线状态检查和线芯裸露长度符合性检查;Preferably, step S2 specifically includes checking the needle inner wire pressing state and checking the wire core exposed length compliance;

所述针内压线状态检查具体包括:The needle inner pressure line state inspection specifically includes:

观察孔分割步骤:将样本图像分割成多个区域,并利用目标检测分类器识别出插针观察孔的位置,通过确定所述位置,可以提取与插针观察孔相对应的ROI区域,从而实现观察孔的分割,Observation hole segmentation step: the sample image is segmented into multiple regions, and the position of the pin observation hole is identified by using the target detection classifier. By determining the position, the ROI region corresponding to the pin observation hole can be extracted, thereby realizing the segmentation of the observation hole.

二值化处理过程:进一步对所提取的ROI区域执行二值化处理和形态学操作,用于区分线芯与观察孔内壁,在二值化处理后,线芯表现为白色,而观察孔内壁表现为黑色;Binarization process: Binarization and morphological operations are further performed on the extracted ROI area to distinguish the wire core from the inner wall of the observation hole. After the binarization process, the wire core appears white, while the inner wall of the observation hole appears black.

边界拟合方法:采用最小二乘法对观察孔的边界进行椭圆拟合,通过最小化残差平方和,获得最佳的拟合结果,以确保了后续分析基于精确的孔边界进行;Boundary fitting method: The least square method is used to fit the boundary of the observation hole to an ellipse. The best fitting result is obtained by minimizing the residual square sum, ensuring that subsequent analysis is based on the precise hole boundary.

参数判断机制:在确定的孔边界内,计算线芯面积的占比,并设定一个阈值,若线芯面积的占比小于阈值,则判定线缆线芯未完全插入压接孔内,即压线不到位;若线芯面积的占比大于阈值,则判定线缆线芯已完全插入压接孔内,即压线到位;Parameter judgment mechanism: within the determined hole boundary, the proportion of the wire core area is calculated and a threshold is set. If the proportion of the wire core area is less than the threshold, it is determined that the cable core is not fully inserted into the crimping hole, that is, the crimping is not in place; if the proportion of the wire core area is greater than the threshold, it is determined that the cable core is fully inserted into the crimping hole, that is, the crimping is in place;

所述线芯裸露长度符合性检查包括:The wire core exposed length compliance check includes:

尾部分割步骤:对样本图像进行图像分区,以便通过目标检测分类器识别插针尾部的位置,通过确定所述位置,提取与插针尾部相对应的ROI区域,从而实现对插针尾部的分割;Tail segmentation step: performing image partitioning on the sample image so as to identify the position of the tail of the pin through the object detection classifier, and extracting the ROI area corresponding to the tail of the pin by determining the position, thereby realizing the segmentation of the tail of the pin;

二值化处理过程:进一步对所提取的ROI区域执行二值化处理和形态学操作,以去除干扰信息,提高后续分析的准确性;Binarization process: further perform binarization and morphological operations on the extracted ROI area to remove interference information and improve the accuracy of subsequent analysis;

轮廓提取技术:通过Canny边缘检测技术提取包括裸露线芯的尾部轮廓;Contour extraction technology: The tail contour including the exposed wire core is extracted through Canny edge detection technology;

线芯区域确定方法:通过测算轮廓宽度的变化和角度的变化,以确定裸露线芯的具体区域;Method for determining the wire core area: The specific area of the exposed wire core is determined by measuring the change in profile width and angle;

参数判断机制:通过标定将裸露线芯长度的像素距离转化为实际距离,若裸露线芯的实际长度大于预定的长度阈值,则判定为不合格;若裸露线芯的实际长度小于或等于预定的长度阈值,则判定为合格。Parameter judgment mechanism: The pixel distance of the exposed wire core length is converted into the actual distance through calibration. If the actual length of the exposed wire core is greater than the preset length threshold, it is judged as unqualified; if the actual length of the exposed wire core is less than or equal to the preset length threshold, it is judged as qualified.

优选的,步骤S3具体包括:Preferably, step S3 specifically includes:

位置信息提取方法:从深度学习模型的输出中提取实时位置信息,以精确定位插针观察孔和尾部在图像中的坐标;Position information extraction method: extract real-time position information from the output of the deep learning model to accurately locate the coordinates of the pin observation hole and tail in the image;

参数信息获取步骤:获取检查过程的实时参数信息,所述实时参数信息包括与针内压线状态和线芯裸露长度检查结果数据;Parameter information acquisition step: acquiring real-time parameter information of the inspection process, wherein the real-time parameter information includes inspection result data related to the needle inner wire pressing state and the exposed length of the wire core;

检查区域框选技术:根据实时位置信息,在实际插针图像上构建虚拟的检查区域框,以精确标示插针观察孔和尾部的位置;Inspection area frame selection technology: Based on the real-time position information, a virtual inspection area frame is constructed on the actual pin image to accurately mark the position of the pin observation hole and tail;

检查结果呈现机制:通过虚拟图形、颜色或标记的方式,根据实时参数信息呈现检查结果,以区分合格和不合格的状态;Inspection result presentation mechanism: Present inspection results based on real-time parameter information by means of virtual graphics, colors or marks to distinguish between qualified and unqualified status;

虚拟信息叠加方法:将检查区域框和检查结果以虚拟的方式叠加在实时图像上,使虚拟信息与实际插针图像融为一体,从而提供更直观的检查结果展示。Virtual information overlay method: The inspection area frame and the inspection results are virtually overlaid on the real-time image, so that the virtual information is integrated with the actual pin image, thereby providing a more intuitive display of the inspection results.

优选的,所述针内压线状态检查的参数判断包括:Preferably, the parameter determination of the needle inner pressure line state inspection includes:

计算机通过所述线芯面积的占比确定压线状况;The computer determines the wire pressing condition according to the proportion of the wire core area;

所述线芯面积的占比为T0,预设第一线芯面积的占比T1、第二线芯面积的占比T2、第三线芯面积的占比T3、第四线芯面积的占比T4与第五线芯面积的占比T5,且T1<T2<T3<T4<T5;预设一级压线状况V1、二级压线状况V2、三级压线状况V3、四级压线状况V4与五级压线状况V5,且V1<V2<V3<V4<V5;The proportion of the wire core area is T0, the proportion of the first wire core area is T1, the proportion of the second wire core area is T2, the proportion of the third wire core area is T3, the proportion of the fourth wire core area is T4 and the proportion of the fifth wire core area is T5, and T1<T2<T3<T4<T5; the first-level wire pressing condition V1, the second-level wire pressing condition V2, the third-level wire pressing condition V3, the fourth-level wire pressing condition V4 and the fifth-level wire pressing condition V5 are preset, and V1<V2<V3<V4<V5;

根据所述线芯面积的占比T0与各预设线芯面积的占比的大小关系,确定压线状况;Determine the wire pressing condition according to the relationship between the proportion T0 of the wire core area and the proportions of each preset wire core area;

当T0≤T1时,确定所述压线状况为一级压线状况V1;When T0≤T1, the pressing line condition is determined to be the first-level pressing line condition V1;

当T1<T0≤T2时,确定所述压线状况为二级压线状况V2;When T1<T0≤T2, the line pressing state is determined to be the secondary line pressing state V2;

当T2<T0≤T3时,确定所述压线状况为三级压线状况V3;When T2<T0≤T3, the pressing line condition is determined to be the third-level pressing line condition V3;

当T3<T0≤T4时,确定所述压线状况为四级压线状况V4;When T3<T0≤T4, the pressing line condition is determined to be the fourth-level pressing line condition V4;

当T4<T0≤T5时,确定所述压线状况为五级压线状况V5;When T4<T0≤T5, the pressing line condition is determined to be the fifth-level pressing line condition V5;

当所述压线状况为V3、V4或V5时,则判断压接不符合技术要求,判断压接不符合技术要求的插针,将其从电连接器中取出,检查电线电缆的状态,然后重新进行压接,在重新压接之前,应确保电线电缆的导体部分没有损伤,且压接工具和模具符合要求;When the crimping condition is V3, V4 or V5, it is determined that the crimping does not meet the technical requirements. The pins that are determined to be crimped do not meet the technical requirements are removed from the electrical connector, the condition of the wires and cables is checked, and then crimped again. Before re-crimping, it should be ensured that the conductor part of the wires and cables is not damaged, and the crimping tools and dies meet the requirements;

当所述压线状况为V1或V2时,判断压接牢固,符合技术要求。When the crimping condition is V1 or V2, it is determined that the crimping is firm and meets the technical requirements.

优选的,所述线芯裸露长度符合性检查的参数判断包括:Preferably, the parameter judgment of the wire core exposed length compliance check includes:

计算机通过所述裸露线芯长度的像素距离确定实际长度;The computer determines the actual length through the pixel distance of the exposed wire core length;

所述裸露线芯长度的像素距离为X0,预设第一裸露线芯长度的像素距离X1、第二裸露线芯长度的像素距离X2、第三裸露线芯长度的像素距离X3、第四裸露线芯长度的像素距离X4与第五裸露线芯长度的像素距离X5,且X1<X2<X3<X4<X5;预设一级实际长度N1、二级实际长度N2、三级实际长度N3、四级实际长度N4与五级实际长度N5,且N1<N2<N3<N4<N5;The pixel distance of the exposed core length is X0, and the pixel distance X1 of the first exposed core length, the pixel distance X2 of the second exposed core length, the pixel distance X3 of the third exposed core length, the pixel distance X4 of the fourth exposed core length, and the pixel distance X5 of the fifth exposed core length are preset, and X1<X2<X3<X4<X5; the first-level actual length N1, the second-level actual length N2, the third-level actual length N3, the fourth-level actual length N4, and the fifth-level actual length N5 are preset, and N1<N2<N3<N4<N5;

根据所述裸露线芯长度的像素距离X0与各预设裸露线芯长度的像素距离的大小关系,确定实际长度;Determine the actual length according to the size relationship between the pixel distance X0 of the exposed wire core length and the pixel distances of each preset exposed wire core length;

当X0≤X1时,确定所述实际长度为一级实际长度N1;When X0≤X1, the actual length is determined to be the first-level actual length N1;

当X1<X0≤X2时,确定所述实际长度为二级实际长度N2;When X1<X0≤X2, the actual length is determined to be the secondary actual length N2;

当X2<X0≤X3时,确定所述实际长度为三级实际长度N3;When X2<X0≤X3, the actual length is determined to be the third-level actual length N3;

当X3<X0≤X4时,确定所述实际长度为四级实际长度N4;When X3<X0≤X4, the actual length is determined to be the fourth-level actual length N4;

当X4<X0≤X5时,确定所述实际长度为五级实际长度N5;When X4<X0≤X5, the actual length is determined to be the fifth-level actual length N5;

当实际长度为N2、N3、N4或N5时,判断线芯裸露部分过长,使用切割工具将其修剪到规定的长度,修剪线芯后,需要重新对其进行压接,以确保良好的电气连接和机械强度;When the actual length is N2, N3, N4 or N5, it is judged that the exposed part of the wire core is too long, and it needs to be trimmed to the specified length with a cutting tool. After trimming the wire core, it needs to be crimped again to ensure good electrical connection and mechanical strength;

当实际长度为V1时,判断线芯裸露部分不长,不需对所述线芯进行修剪。When the actual length is V1, it is determined that the exposed portion of the wire core is not long, and there is no need to trim the wire core.

进一步的,本发明还包括一种电连接器微型插针压接质量智能检查系统,所述系统包括硬件层、数据层、功能层和应用层;Furthermore, the present invention also includes an intelligent inspection system for the crimping quality of a micro-pin of an electrical connector, the system comprising a hardware layer, a data layer, a function layer and an application layer;

所述硬件层包括计算设备、图像采集设备、光源控制设备及显示设备,所述计算设备为计算机,用于执行检查算法,所述图像采集设备为插针检查盒,所述插针检查盒集成高分辨率短焦摄像头和60度环形光源,用于实际插针的图像采集,光源控制设备为光源控制器,用于调节光源亮度,以确保插针能获得充分的照明,显示设备为触控显示屏,用于显示实时图像和插针检查结果;The hardware layer includes a computing device, an image acquisition device, a light source control device and a display device. The computing device is a computer for executing the inspection algorithm. The image acquisition device is a pin inspection box, which integrates a high-resolution short-focus camera and a 60-degree ring light source for image acquisition of actual pins. The light source control device is a light source controller for adjusting the brightness of the light source to ensure that the pins can obtain sufficient illumination. The display device is a touch screen for displaying real-time images and pin inspection results.

所述数据层包括系统中所有的数据,包括先验信息、实时位置、参数信息与检查结果信息;先验信息分为检查工艺信息、观察孔和尾部图像、深度学习信息,实时位置和参数信息是指检查区域实时二维位置及区域内检查参数数据;检查结果信息是指检查项是否合格;The data layer includes all the data in the system, including prior information, real-time position, parameter information and inspection result information; the prior information is divided into inspection process information, observation hole and tail image, and deep learning information; the real-time position and parameter information refer to the real-time two-dimensional position of the inspection area and the inspection parameter data within the area; the inspection result information refers to whether the inspection item is qualified;

所述功能层是实现插针压接质量智能检查的部分,包括检查要求设计模块、针内压线状态检查模块、线芯裸露长度符合性检查模块和检查结果AR展示模块,所述检查要求设计模块被配置为为后续功能提供先验信息;所述针内压线状态检查模块和所述线芯裸露长度符合性检查模块中,首先利用深度学习信息识别到目标检查区域,再得到实时位置信息和参数信息,最后结合检查工艺信息和参数信息得到检查结果信息;The functional layer is a part that realizes intelligent inspection of pin crimping quality, including an inspection requirement design module, a pin inner crimping state inspection module, a wire core exposed length compliance inspection module and an inspection result AR display module. The inspection requirement design module is configured to provide prior information for subsequent functions; in the pin inner crimping state inspection module and the wire core exposed length compliance inspection module, deep learning information is first used to identify the target inspection area, and then real-time position information and parameter information are obtained, and finally the inspection result information is obtained by combining the inspection process information and parameter information;

所述应用层表示系统工作流程步骤如下:The application layer represents the system workflow steps as follows:

S1.离线建模:通过深度学习训练模型,使用图像数据集来实时检测和定位插针的关键部位;S1. Offline modeling: The model is trained through deep learning and image datasets are used to detect and locate the key parts of the pins in real time;

S2.插针压接质量检查:进行针内压线状态检查和线芯裸露长度符合性检查;S2. Pin crimping quality inspection: Check the crimping status of the pin and the exposed length of the wire core;

S3.检查结果AR展示:通过提取模型输出和实时参数,构建并叠加虚拟检查区域和结果,实现直观的实时插针位置和状态展示;S3. AR display of inspection results: By extracting model output and real-time parameters, constructing and superimposing virtual inspection areas and results, an intuitive real-time display of pin position and status is achieved;

S4.操作人员反馈:操作人员根据AR检查结果评估插针的质量,并采取必要的措施。S4. Operator feedback: The operator evaluates the quality of the pin based on the AR inspection results and takes necessary measures.

本发明实施例提供的一种电连接器微型插针压接质量智能检查方法、装置与系统与现有技术相比,其有益效果在于:Compared with the prior art, the method, device and system for intelligent inspection of the crimping quality of micro pins of an electrical connector provided by the embodiment of the present invention have the following beneficial effects:

(1)提出了一种基于深度学习和视觉融合的针内压线状态检查方法。该方法在深度学习分割结果的基础上,采用最小二乘法进行椭圆拟合,成功还原观察孔的边界,形成准确的分析区域。从而在孔边界内进行面积占比计算,实现了对观察孔内压线状态的可靠判断。这一方法有效解决了孔边界划分的难题,为针内压线状态检查提供了新思路。(1) A method for checking the pressure line status of the needle based on deep learning and visual fusion was proposed. Based on the deep learning segmentation results, the method used the least squares method to perform ellipse fitting, successfully restored the boundary of the observation hole, and formed an accurate analysis area. The area ratio was calculated within the hole boundary, and a reliable judgment of the pressure line status of the observation hole was achieved. This method effectively solved the problem of hole boundary division and provided a new idea for checking the pressure line status of the needle.

(2)提出了一种基于深度学习和视觉融合的线芯裸露长度符合性检查方法。该方法在深度学习分割结果的基础上,通过测算轮廓宽度的变化及角度的变化,确定裸露线芯的精准位置。再结合标定和阈值判断,实现了对插针尾部线芯裸露长度的精准检查。这一方法有效解决了对线芯具体位置判断的难题,为线芯裸露长度的精准测量提供了新思路。(2) A method for checking the exposed length of wire cores based on deep learning and visual fusion is proposed. Based on the deep learning segmentation results, this method determines the precise position of the exposed wire core by measuring the change in contour width and angle. Combined with calibration and threshold judgment, accurate inspection of the exposed length of the wire core at the end of the pin is achieved. This method effectively solves the problem of judging the specific position of the wire core and provides a new idea for the accurate measurement of the exposed length of the wire core.

(3)设计了一种插针智能检查装置。该装置有两种不同类型,分别是单相机插针检查盒和四相机插针检查盒。通过集成多个硬件组件,包括高分辨率短焦摄像头、环形光源等,以及合理的盒体结构设计,实现了对插针的高效检查。这一装置不仅考虑了成本和效率的平衡,还充分考虑了操作便捷性和检查准确性,为插针压接质量检查领域带来了一种全新的硬件集成方案。(3) An intelligent pin inspection device was designed. The device has two different types: a single-camera pin inspection box and a four-camera pin inspection box. By integrating multiple hardware components, including a high-resolution short-focus camera, a ring light source, and a reasonable box structure design, efficient inspection of the pins is achieved. This device not only takes into account the balance between cost and efficiency, but also fully considers the ease of operation and inspection accuracy, bringing a new hardware integration solution to the field of pin crimping quality inspection.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

图1是本发明实施例提供的一种电连接器微型插针压接质量智能检查方法流程图;FIG1 is a flow chart of an intelligent inspection method for crimping quality of a micro-pin of an electrical connector provided by an embodiment of the present invention;

图2是本发明实施例提供的一种电连接器微型插针压接质量智能检查方法的针内压线状态检查流程图;2 is a flowchart of checking the internal pressure line state of a pin of an electrical connector micro pin crimping quality intelligent inspection method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种电连接器微型插针压接质量智能检查方法的线芯裸露长度符合性检查流程图;3 is a flow chart of compliance inspection of exposed length of wire cores of an intelligent inspection method for crimping quality of micro pins of an electrical connector provided by an embodiment of the present invention;

图4是本发明实施例提供的一种电连接器微型插针压接质量智能检查方法的检查结果AR展示流程图;4 is an AR display flow chart of the inspection results of an intelligent inspection method for crimping quality of micro pins of an electrical connector provided by an embodiment of the present invention;

图5是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的单相机插针检查盒结构图;5 is a structural diagram of a single-camera pin inspection box of an electrical connector micro pin crimping quality intelligent inspection device provided by an embodiment of the present invention;

图6是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的单相机插针检查盒体结构图;6 is a structural diagram of a single-camera pin inspection box of an electrical connector micro pin crimping quality intelligent inspection device provided by an embodiment of the present invention;

图7是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的单相机插针检查盒盖结构图;7 is a structural diagram of a single-camera pin inspection box cover of an electrical connector micro pin crimping quality intelligent inspection device provided by an embodiment of the present invention;

图8是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的四相机插针检查盒结构图;8 is a structural diagram of a four-camera pin inspection box of an electrical connector micro pin crimping quality intelligent inspection device provided by an embodiment of the present invention;

图9是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的四相机插针检查盒体结构图;9 is a structural diagram of a four-camera pin inspection box of an electrical connector micro pin crimping quality intelligent inspection device provided by an embodiment of the present invention;

图10是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的四相机插针检查盒盖结构图;10 is a structural diagram of a four-camera pin inspection box cover of an electrical connector micro pin crimping quality intelligent inspection device provided by an embodiment of the present invention;

图11是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的60度环形光源结构图;11 is a structural diagram of a 60-degree annular light source of an intelligent inspection device for crimping quality of a micro-pin of an electrical connector provided by an embodiment of the present invention;

图12是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的高分辨率短焦摄像头模组结构图;12 is a structural diagram of a high-resolution short-focus camera module of an intelligent inspection device for crimping quality of micro pins of an electrical connector provided by an embodiment of the present invention;

图13是本发明实施例提供的一种电连接器微型插针压接质量智能检查装置的摄像头模组保护壳结构图;13 is a structural diagram of a camera module protective shell of an intelligent inspection device for crimping quality of micro pins of an electrical connector provided by an embodiment of the present invention;

图14是本发明实施例提供的一种电连接器微型插针压接质量智能检查系统硬件环境图;14 is a hardware environment diagram of an intelligent inspection system for crimping quality of micro-pins of electrical connectors provided in an embodiment of the present invention;

图15是本发明实施例提供的一种电连接器微型插针压接质量智能检查系统总体结构框架图。FIG. 15 is a general structural framework diagram of an intelligent inspection system for the crimping quality of micro-pins of electrical connectors provided in an embodiment of the present invention.

图中,1、盒体;2、盒盖;3、摄像头模组保护壳;4、摄像头;5、环形光源;6、计算设备;7、显示设备;8、光源控制器;9、插针检查盒。In the figure, 1. box body; 2. box cover; 3. camera module protective shell; 4. camera; 5. ring light source; 6. computing device; 7. display device; 8. light source controller; 9. pin inspection box.

具体实施方式Detailed ways

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

在本申请的描述中,需要理解的是,术语“中心”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

如图1-4所示,本发明实施例优选实施例的一种电连接器微型插针压接质量智能检查方法,所述方法包括:As shown in FIGS. 1-4 , a preferred embodiment of an embodiment of the present invention provides an intelligent inspection method for the crimping quality of a micro-pin of an electrical connector, the method comprising:

S1.离线建模:通过深度学习训练模型,使用高质量、精确标注的图像数据集来实时检测和定位插针的关键部位;S1. Offline modeling: The model is trained through deep learning, using high-quality, accurately annotated image datasets to detect and locate key parts of the pin in real time;

S2.插针压接质量检查:进行针内压线状态检查和线芯裸露长度符合性检查;S2. Pin crimping quality inspection: Check the crimping status of the pin and the exposed length of the wire core;

S3.检查结果AR展示:通过提取模型输出和实时参数,构建并叠加虚拟检查区域和结果,实现直观的实时插针位置和状态展示;S3. AR display of inspection results: By extracting model output and real-time parameters, constructing and superimposing virtual inspection areas and results, an intuitive real-time display of pin position and status is achieved;

S4.反馈:根据AR检查结果评估插针的质量,并采取措施。S4. Feedback: Evaluate the quality of the pins based on the AR inspection results and take action.

可以理解的是,本发明采用高分辨率短焦摄像头采集图像,利用深度学习进一步对目标区域进行划分,分别提出了对针内压线状态和线芯裸露长度符合性这两类插针压接质量点通用的检查方法,并利用AR技术展示检查结果。根据输入图像数量的不同,算法可进行灵活调整,既能够适应成本相对较低的单相机检查盒,也能够满足对更高效率检查需求的四相机检查盒。检查方法分为三部分:离线建模、插针压接质量检查、检查结果AR展示。It is understandable that the present invention uses a high-resolution short-focus camera to capture images, uses deep learning to further divide the target area, and proposes universal inspection methods for two types of pin crimping quality points: the pin inner wire pressure state and the wire core exposed length compliance, and uses AR technology to display the inspection results. Depending on the number of input images, the algorithm can be flexibly adjusted to adapt to both relatively low-cost single-camera inspection boxes and four-camera inspection boxes that meet the needs of more efficient inspections. The inspection method is divided into three parts: offline modeling, pin crimping quality inspection, and AR display of inspection results.

在此优选实施例中,步骤S1具体包括:In this preferred embodiment, step S1 specifically includes:

1)准备数据集:准备若干高质量图像数据,构建数据集;1) Prepare the data set: prepare some high-quality image data and build the data set;

2)图像分区:对高质量图像数据中的高分辨率插针图像进行分区,用方形区域截取观察孔和尾部图像;2) Image partitioning: partition the high-resolution pin image in the high-quality image data, and use square areas to capture the observation hole and tail images;

3)图像标注:对每张图片中的目标进行精确标注,形成训练数据集;3) Image annotation: Accurately annotate the objects in each image to form a training data set;

4)训练建模:通过深度学习目标检查框架对标注数据集进行训练,得到目标检测分类器,用于实时识别插针观察孔和尾部位置。4) Training and modeling: The labeled dataset is trained through the deep learning target inspection framework to obtain the target detection classifier, which is used to identify the pin observation hole and tail position in real time.

在此优选实施例中,步骤S2具体包括针内压线状态检查和线芯裸露长度符合性检查;In this preferred embodiment, step S2 specifically includes checking the needle inner wire pressing state and checking the wire core exposed length compliance;

所述针内压线状态检查具体包括:The needle inner pressure line state inspection specifically includes:

图像处理方法:将样本图像分割成多个区域,并利用目标检测分类器识别出插针观察孔的位置,通过确定所述位置,可以提取与插针观察孔相对应的ROI区域,从而实现观察孔的分割,Image processing method: Segment the sample image into multiple regions, and use the target detection classifier to identify the position of the pin observation hole. By determining the position, the ROI region corresponding to the pin observation hole can be extracted, thereby realizing the segmentation of the observation hole.

二值化处理步骤:进一步对所提取的ROI区域执行二值化处理和形态学操作,用于区分线芯与观察孔内壁,在二值化处理后,线芯表现为白色,而观察孔内壁表现为黑色;Binarization processing step: further performing binarization processing and morphological operations on the extracted ROI area to distinguish the wire core from the inner wall of the observation hole. After the binarization processing, the wire core appears white, and the inner wall of the observation hole appears black;

边界拟合过程:采用最小二乘法对观察孔的边界进行椭圆拟合,通过最小化残差平方和,获得最佳的拟合结果,以确保了后续分析基于精确的孔边界进行;Boundary fitting process: The least square method is used to fit the boundary of the observation hole to an ellipse, and the best fitting result is obtained by minimizing the residual square sum, so as to ensure that the subsequent analysis is based on the precise hole boundary;

参数判断机制:在确定的孔边界内,计算线芯面积的占比,并设定一个阈值,若线芯面积的占比小于阈值,则判定线缆线芯未完全插入压接孔内,即压线不到位;若线芯面积的占比大于阈值,则判定线缆线芯已完全插入压接孔内,即压线到位;Parameter judgment mechanism: within the determined hole boundary, the proportion of the wire core area is calculated and a threshold is set. If the proportion of the wire core area is less than the threshold, it is determined that the cable core is not fully inserted into the crimping hole, that is, the crimping is not in place; if the proportion of the wire core area is greater than the threshold, it is determined that the cable core is fully inserted into the crimping hole, that is, the crimping is in place;

所述线芯裸露长度符合性检查包括:The wire core exposed length compliance check includes:

尾部分割步骤:对样本图像进行图像分区,以便通过目标检测分类器识别插针尾部的位置,通过确定所述位置,提取与插针尾部相对应的ROI区域,从而实现对插针尾部的分割;Tail segmentation step: performing image partitioning on the sample image so as to identify the position of the tail of the pin through the object detection classifier, and extracting the ROI area corresponding to the tail of the pin by determining the position, thereby realizing the segmentation of the tail of the pin;

二值化处理过程:进一步对所提取的ROI区域执行二值化处理和形态学操作,以去除干扰信息,提高后续分析的准确性;Binarization process: further perform binarization and morphological operations on the extracted ROI area to remove interference information and improve the accuracy of subsequent analysis;

轮廓提取技术:通过Canny边缘检测技术提取包括裸露线芯的尾部轮廓;Contour extraction technology: The tail contour including the exposed wire core is extracted through Canny edge detection technology;

线芯区域确定方法:通过测算轮廓宽度的变化和角度的变化,以确定裸露线芯的具体区域;Method for determining the wire core area: The specific area of the exposed wire core is determined by measuring the change in outline width and angle;

参数判断机制:通过标定将裸露线芯长度的像素距离转化为实际距离,若裸露线芯的实际长度大于预定的长度阈值,则判定为不合格;若裸露线芯的实际长度小于或等于预定的长度阈值,则判定为合格。Parameter judgment mechanism: The pixel distance of the exposed wire core length is converted into the actual distance through calibration. If the actual length of the exposed wire core is greater than the preset length threshold, it is judged as unqualified; if the actual length of the exposed wire core is less than or equal to the preset length threshold, it is judged as qualified.

在此优选实施例中,步骤S3具体包括:In this preferred embodiment, step S3 specifically includes:

位置信息提取方法:从深度学习模型的输出中提取实时位置信息,以精确定位插针观察孔和尾部在图像中的坐标;Position information extraction method: extract real-time position information from the output of the deep learning model to accurately locate the coordinates of the pin observation hole and tail in the image;

参数信息获取步骤:获取检查过程的实时参数信息,所述实时参数信息包括与针内压线状态和线芯裸露长度检查结果数据;Parameter information acquisition step: acquiring real-time parameter information of the inspection process, wherein the real-time parameter information includes inspection result data related to the needle inner wire pressing state and the exposed length of the wire core;

检查区域框选技术:根据实时位置信息,在实际插针图像上构建虚拟的检查区域框,以精确标示插针观察孔和尾部的位置;Inspection area frame selection technology: Based on the real-time position information, a virtual inspection area frame is constructed on the actual pin image to accurately mark the position of the pin observation hole and tail;

检查结果呈现机制:通过虚拟图形、颜色或标记的方式,根据实时参数信息呈现检查结果,以区分合格和不合格的状态;Inspection result presentation mechanism: Present inspection results based on real-time parameter information by means of virtual graphics, colors or marks to distinguish between qualified and unqualified status;

虚拟信息叠加方法:将检查区域框和检查结果以虚拟的方式叠加在实时图像上,使虚拟信息与实际插针图像融为一体,从而提供更直观的检查结果展示。Virtual information overlay method: The inspection area frame and the inspection results are virtually overlaid on the real-time image, so that the virtual information is integrated with the actual pin image, thereby providing a more intuitive display of the inspection results.

在此优选实施例中,所述针内压线状态检查的参数判断包括:In this preferred embodiment, the parameter determination of the needle inner pressure line state inspection includes:

计算机通过所述线芯面积的占比确定压线状况;The computer determines the wire pressing condition according to the proportion of the wire core area;

所述线芯面积的占比为T0,预设第一线芯面积的占比T1、第二线芯面积的占比T2、第三线芯面积的占比T3、第四线芯面积的占比T4与第五线芯面积的占比T5,且T1<T2<T3<T4<T5;预设一级压线状况V1、二级压线状况V2、三级压线状况V3、四级压线状况V4与五级压线状况V5,且V1<V2<V3<V4<V5;The proportion of the wire core area is T0, the proportion of the first wire core area is T1, the proportion of the second wire core area is T2, the proportion of the third wire core area is T3, the proportion of the fourth wire core area is T4 and the proportion of the fifth wire core area is T5, and T1<T2<T3<T4<T5; the first-level wire pressing condition V1, the second-level wire pressing condition V2, the third-level wire pressing condition V3, the fourth-level wire pressing condition V4 and the fifth-level wire pressing condition V5 are preset, and V1<V2<V3<V4<V5;

根据所述线芯面积的占比T0与各预设线芯面积的占比的大小关系,确定压线状况;Determine the wire pressing condition according to the relationship between the proportion T0 of the wire core area and the proportions of each preset wire core area;

当T0≤T1时,确定所述压线状况为一级压线状况V1;When T0≤T1, the pressing line condition is determined to be the first-level pressing line condition V1;

当T1<T0≤T2时,确定所述压线状况为二级压线状况V2;When T1<T0≤T2, the line pressing state is determined to be the secondary line pressing state V2;

当T2<T0≤T3时,确定所述压线状况为三级压线状况V3;When T2<T0≤T3, the pressing line condition is determined to be the third-level pressing line condition V3;

当T3<T0≤T4时,确定所述压线状况为四级压线状况V4;When T3<T0≤T4, the pressing line condition is determined to be the fourth-level pressing line condition V4;

当T4<T0≤T5时,确定所述压线状况为五级压线状况V5;When T4<T0≤T5, the pressing line condition is determined to be the fifth-level pressing line condition V5;

当所述压线状况为V3、V4或V5时,则判断压接不符合技术要求,判断压接不符合技术要求的插针,将其从电连接器中取出,检查电线电缆的状态,然后重新进行压接,在重新压接之前,应确保电线电缆的导体部分没有损伤,且压接工具和模具符合要求;When the crimping condition is V3, V4 or V5, it is determined that the crimping does not meet the technical requirements. The pins that are determined to be crimped do not meet the technical requirements are removed from the electrical connector, the condition of the wires and cables is checked, and then crimped again. Before re-crimping, it should be ensured that the conductor part of the wires and cables is not damaged, and the crimping tools and dies meet the requirements;

当所述压线状况为V1或V2时,判断压接牢固,符合技术要求。When the crimping condition is V1 or V2, it is determined that the crimping is firm and meets the technical requirements.

在此优选实施例中,所述线芯裸露长度符合性检查的参数判断包括:In this preferred embodiment, the parameter judgment of the wire core exposed length compliance check includes:

计算机通过所述裸露线芯长度的像素距离确定实际长度;The computer determines the actual length through the pixel distance of the exposed wire core length;

所述裸露线芯长度的像素距离为X0,预设第一裸露线芯长度的像素距离X1、第二裸露线芯长度的像素距离X2、第三裸露线芯长度的像素距离X3、第四裸露线芯长度的像素距离X4与第五裸露线芯长度的像素距离X5,且X1<X2<X3<X4<X5;预设一级实际长度N1、二级实际长度N2、三级实际长度N3、四级实际长度N4与五级实际长度N5,且N1<N2<N3<N4<N5;The pixel distance of the exposed core length is X0, and the pixel distance X1 of the first exposed core length, the pixel distance X2 of the second exposed core length, the pixel distance X3 of the third exposed core length, the pixel distance X4 of the fourth exposed core length, and the pixel distance X5 of the fifth exposed core length are preset, and X1<X2<X3<X4<X5; the first-level actual length N1, the second-level actual length N2, the third-level actual length N3, the fourth-level actual length N4, and the fifth-level actual length N5 are preset, and N1<N2<N3<N4<N5;

根据所述裸露线芯长度的像素距离X0与各预设裸露线芯长度的像素距离的大小关系,确定实际长度;Determine the actual length according to the size relationship between the pixel distance X0 of the exposed wire core length and the pixel distances of each preset exposed wire core length;

当X0≤X1时,确定所述实际长度为一级实际长度N1;When X0≤X1, the actual length is determined to be the first-level actual length N1;

当X1<X0≤X2时,确定所述实际长度为二级实际长度N2;When X1<X0≤X2, the actual length is determined to be the secondary actual length N2;

当X2<X0≤X3时,确定所述实际长度为三级实际长度N3;When X2<X0≤X3, the actual length is determined to be the third-level actual length N3;

当X3<X0≤X4时,确定所述实际长度为四级实际长度N4;When X3<X0≤X4, the actual length is determined to be the fourth-level actual length N4;

当X4<X0≤X5时,确定所述实际长度为五级实际长度N5;When X4<X0≤X5, the actual length is determined to be the fifth-level actual length N5;

当实际长度为N2、N3、N4或N5时,判断线芯裸露部分过长,使用切割工具将其修剪到规定的长度,修剪线芯后,需要重新对其进行压接,以确保良好的电气连接和机械强度;When the actual length is N2, N3, N4 or N5, it is judged that the exposed part of the wire core is too long, and it needs to be trimmed to the specified length with a cutting tool. After trimming the wire core, it needs to be crimped again to ensure good electrical connection and mechanical strength;

当实际长度为V1时,判断线芯裸露部分不长,不需对所述线芯进行修剪。When the actual length is V1, it is determined that the exposed portion of the wire core is not long, and there is no need to trim the wire core.

本发明为配合上述检查算法,设计了集成多个硬件的检查盒。检查盒分为两种类型,一种是单相机插针检查盒9,另一种是四相机插针检查盒9,两种类型各有其特点,以满足不同的需求。单相机插针检查盒9由于只需要使用一个相机,在成本方面具有一定的优势,但单相机无法同时采集到插针每一个面,操作人员在进行检查时需要手动调整插针的方向,会对效率有轻微影响。四相机插针检查盒9则实现了完全自动化,四个相机可以从四个方向采集插针图像,不需要操作人员手动调整插针方向,检查效率更高,相对来讲成本有所增加。企业可以根据自身特点和需求选择合适的检查盒。In order to cooperate with the above-mentioned inspection algorithm, the present invention designs an inspection box that integrates multiple hardware. The inspection boxes are divided into two types, one is a single-camera pin inspection box 9, and the other is a four-camera pin inspection box 9. The two types have their own characteristics to meet different needs. The single-camera pin inspection box 9 has certain advantages in terms of cost because only one camera is needed, but the single camera cannot capture every side of the pin at the same time. The operator needs to manually adjust the direction of the pin during the inspection, which will have a slight impact on efficiency. The four-camera pin inspection box 9 is fully automated. The four cameras can capture pin images from four directions. The operator does not need to manually adjust the direction of the pin. The inspection efficiency is higher, and the cost is relatively increased. Enterprises can choose a suitable inspection box according to their own characteristics and needs.

插针检查盒9具体设计方案如下:The specific design of the pin inspection box 9 is as follows:

1.盒体结构设计:为了保证稳定性和易于制造和安装,选择方形结构设计。1. Box structure design: In order to ensure stability and easy manufacturing and installation, a square structure design is selected.

2.插孔设计:在检查盒两对侧设计插孔,以便插入导线进行检查。对于单相机检查盒,在盒体两侧壁中心开孔;对于四相机检查盒,在两盒盖中心开孔。为了限制插针的插入方向,通过在插孔两侧之间设置一根玻璃管,确保插针只能在规定的方向插入,避免由于带插针导线弯曲而导致误检查。2. Socket design: Sockets are designed on the two opposite sides of the inspection box to facilitate the insertion of wires for inspection. For a single-phase inspection box, holes are opened in the center of the two side walls of the box body; for a four-phase inspection box, holes are opened in the center of the two box covers. In order to limit the insertion direction of the pin, a glass tube is set between the two sides of the jack to ensure that the pin can only be inserted in the specified direction to avoid mis-inspection due to bending of the wire with the pin.

3.光源选用:光源的选择对于插针的检查至关重要,因为均匀的光照可以减少阴影,提高图像的质量。为了提高图像的清晰度和质量,采用了60度环形光源,以确保整个插孔区域有均匀的照明。对于单相机检查盒,在盒盖内侧安装60度环形光源;而对于四相机检查盒,在盒体设有插孔的两侧安装两个60度环形光源。3. Light source selection: The selection of light source is crucial for pin inspection, because uniform lighting can reduce shadows and improve image quality. In order to improve the clarity and quality of the image, a 60-degree ring light source is used to ensure uniform lighting of the entire socket area. For a single-camera inspection box, a 60-degree ring light source is installed on the inside of the box cover; and for a four-camera inspection box, two 60-degree ring light sources are installed on both sides of the box body where the socket is located.

4.摄像头选用:插针尺寸微小,普通摄像头难以采集到清晰准确的插针图像,选择合适的摄像头至关重要。为保证摄像头能在较近的距离下采集到高质量图像,采用了高分辨率短焦摄像头。对于单相机检查盒,在盒盖上集成了一个摄像头模组;对于四相机检查盒,在没有插孔的四个面分别集成了四个摄像头模组。4. Camera selection: The pin size is small, and ordinary cameras are difficult to capture clear and accurate pin images. Choosing a suitable camera is crucial. To ensure that the camera can capture high-quality images at a close distance, a high-resolution short-focus camera is used. For a single-camera inspection box, a camera module is integrated on the box cover; for a four-camera inspection box, four camera modules are integrated on the four sides without jacks.

总体而言,插针检查盒9的设计综合考虑了成本、操作便捷性以及检查准确性等多个方面。通过合理的硬件集成和结构设计,确保了插针检查的高效性和可靠性。方形结构的选用确保了盒体的稳定性。插孔设计通过设置玻璃管限制插针插入方向,减少误检查的可能性。环形光源和高分辨率短焦摄像头的采用提高了图像的清晰度和质量,确保了插针检查的准确性。这样的设计方案在满足不同需求的同时,保证了插针检查的高效性和可靠性。In general, the design of the pin inspection box 9 takes into account multiple aspects such as cost, ease of operation, and inspection accuracy. Through reasonable hardware integration and structural design, the efficiency and reliability of pin inspection are ensured. The selection of the square structure ensures the stability of the box body. The jack design limits the insertion direction of the pin by setting a glass tube to reduce the possibility of mis-inspection. The use of a ring light source and a high-resolution short-focus camera improves the clarity and quality of the image and ensures the accuracy of the pin inspection. Such a design scheme ensures the efficiency and reliability of the pin inspection while meeting different needs.

下面请参考图5-图13对所属插针检查盒9的结构进行详细说明:Please refer to Figures 5 to 13 below to describe in detail the structure of the pin inspection box 9:

一种电连接器微型插针压接质量智能检查装置,所述装置包括:盒体1、盒盖2和摄像装置,所述盒体1与所述盒盖2可拆卸连接,所述盒盖2靠近所述盒体1一侧固定连接有环形光源5,所述摄像装置包括摄像头4和摄像头模组保护壳3,所述摄像装置数量设置有至少一个;An intelligent inspection device for the crimping quality of a micro pin of an electrical connector, the device comprising: a box body 1, a box cover 2 and a camera device, the box body 1 and the box cover 2 are detachably connected, a ring light source 5 is fixedly connected to the box cover 2 on a side close to the box body 1, the camera device comprises a camera 4 and a camera module protective shell 3, and the number of the camera device is at least one;

当所述摄像装置只存在一个时,所述盒体1一侧设置有可供插针通过的通孔,所述盒盖2远离所述盒体1的一侧设置有所述摄像装置,所述盒盖2中心设置有可供所述摄像头4通过的通道,所述通道周围设置有固定槽,所述摄像头模组保护壳3靠近所述摄像头4一侧设置有固定块,所述摄像头模组保护壳3通过所述固定块与所述盒盖2可拆卸连接;When there is only one camera device, a through hole for the pin to pass through is provided on one side of the box body 1, the camera device is provided on the side of the box cover 2 away from the box body 1, a channel for the camera 4 to pass through is provided in the center of the box cover 2, a fixing groove is provided around the channel, a fixing block is provided on the side of the camera module protective shell 3 close to the camera 4, and the camera module protective shell 3 is detachably connected to the box cover 2 through the fixing block;

当所述摄像装置存在多个时,所述盒盖2上设置有可供插针通过的通孔,所述盒盖2设置有两个,且两个盒盖2设置于所述盒体1相对的两个面上,所述盒体1除了所述盒盖2可拆卸连接的表面外的其他表面均设置有可供所述摄像头4通过的通道,所述通道周围设置有固定槽,所述摄像头模组保护壳3靠近所述摄像头4一侧设置有固定块,所述摄像头模组保护壳3通过所述固定块与所述盒体1可拆卸连接。When there are multiple camera devices, the box cover 2 is provided with a through hole for the pin to pass through, and two box covers 2 are provided, and the two box covers 2 are arranged on two opposite surfaces of the box body 1, and the other surfaces of the box body 1 except the surface to which the box cover 2 is detachably connected are provided with channels for the camera 4 to pass through, and fixing grooves are provided around the channels. The camera module protective shell 3 is provided with a fixing block on the side close to the camera 4, and the camera module protective shell 3 is detachably connected to the box body 1 through the fixing block.

基于上述的检查方法和检查装置,本发明研制了一种电连接器微型插针压接质量智能检查系统,如图14和图15所示,所述系统包括硬件层、数据层、功能层和应用层;Based on the above inspection method and inspection device, the present invention has developed an intelligent inspection system for the crimping quality of electrical connector micro pins, as shown in FIGS. 14 and 15 , wherein the system includes a hardware layer, a data layer, a function layer and an application layer;

所述硬件层包括计算设备6、图像采集设备、光源控制设备及显示设备7,所述计算设备6为计算机,用于执行检查算法,所述图像采集设备为插针检查盒9,所述插针检查盒9集成高分辨率短焦摄像头和60度环形光源,用于实际插针的图像采集,光源控制设备为光源控制器8,用于调节光源亮度,以确保插针能获得充分的照明,显示设备7为触控显示屏,用于显示实时图像和插针检查结果;The hardware layer includes a computing device 6, an image acquisition device, a light source control device and a display device 7. The computing device 6 is a computer for executing an inspection algorithm. The image acquisition device is a pin inspection box 9. The pin inspection box 9 integrates a high-resolution short-focus camera and a 60-degree ring light source for image acquisition of actual pins. The light source control device is a light source controller 8 for adjusting the brightness of the light source to ensure that the pins can obtain sufficient illumination. The display device 7 is a touch screen for displaying real-time images and pin inspection results.

所述数据层包括系统中所有的数据,包括先验信息、实时位置、参数信息与检查结果信息;先验信息分为检查工艺信息、观察孔和尾部图像、深度学习信息,实时位置和参数信息是指检查区域实时二维位置及区域内检查参数数据;检查结果信息是指检查项是否合格;The data layer includes all the data in the system, including prior information, real-time position, parameter information and inspection result information; the prior information is divided into inspection process information, observation hole and tail image, and deep learning information; the real-time position and parameter information refer to the real-time two-dimensional position of the inspection area and the inspection parameter data within the area; the inspection result information refers to whether the inspection item is qualified;

所述功能层是实现插针压接质量智能检查的部分,包括检查要求设计模块、针内压线状态检查模块、线芯裸露长度符合性检查模块和检查结果AR展示模块,所述检查要求设计模块被配置为为后续功能提供先验信息;所述针内压线状态检查模块和所述线芯裸露长度符合性检查模块中,首先利用深度学习信息识别到目标检查区域,再得到实时位置信息和参数信息,最后结合检查工艺信息和参数信息得到检查结果信息;The functional layer is a part that realizes intelligent inspection of pin crimping quality, including an inspection requirement design module, a pin inner crimping state inspection module, a wire core exposed length compliance inspection module and an inspection result AR display module. The inspection requirement design module is configured to provide prior information for subsequent functions; in the pin inner crimping state inspection module and the wire core exposed length compliance inspection module, deep learning information is first used to identify the target inspection area, and then real-time position information and parameter information are obtained, and finally the inspection result information is obtained by combining the inspection process information and parameter information;

所述应用层表示系统工作流程步骤如下:The application layer represents the system workflow steps as follows:

S1.离线建模:通过深度学习训练模型,使用图像数据集来实时检测和定位插针的关键部位;S1. Offline modeling: The model is trained through deep learning and image datasets are used to detect and locate the key parts of the pins in real time;

S2.插针压接质量检查:进行针内压线状态检查和线芯裸露长度符合性检查;S2. Pin crimping quality inspection: Check the crimping status of the pin and the exposed length of the wire core;

S3.检查结果AR展示:通过提取模型输出和实时参数,构建并叠加虚拟检查区域和结果,实现直观的实时插针位置和状态展示;S3. AR display of inspection results: By extracting model output and real-time parameters, constructing and superimposing virtual inspection areas and results, an intuitive real-time display of pin position and status is achieved;

S4.操作人员反馈:操作人员根据AR检查结果评估插针的质量,并采取必要的措施。S4. Operator feedback: The operator evaluates the quality of the pin based on the AR inspection results and takes necessary measures.

综上,本发明实施例提供一种电连接器微型插针压接质量智能检查方法、装置与系统与现有技术相比,其提出了一种基于深度学习和视觉融合的针内压线状态检查方法。该方法在深度学习分割结果的基础上,采用最小二乘法进行椭圆拟合,成功还原观察孔的边界,形成准确的分析区域。从而在孔边界内进行面积占比计算,实现了对观察孔内压线状态的可靠判断。这一方法有效解决了孔边界划分的难题,为针内压线状态检查提供了新思路。还提出了一种基于深度学习和视觉融合的线芯裸露长度符合性检查方法。该方法在深度学习分割结果的基础上,通过测算轮廓宽度的变化及角度的变化,确定裸露线芯的精准位置。再结合标定和阈值判断,实现了对插针尾部线芯裸露长度的精准检查。这一方法有效解决了对线芯具体位置判断的难题,为线芯裸露长度的精准测量提供了新思路。还设计了一种插针智能检查装置。该装置有两种不同类型,分别是单相机插针检查盒9和四相机插针检查盒9。通过集成多个硬件组件,包括高分辨率短焦摄像头、环形光源等,以及合理的盒体结构设计,实现了对插针的高效检查。这一装置不仅考虑了成本和效率的平衡,还充分考虑了操作便捷性和检查准确性,为插针压接质量检查领域带来了一种全新的硬件集成方案。In summary, the embodiment of the present invention provides an intelligent inspection method, device and system for the crimping quality of a micro-pin of an electrical connector. Compared with the prior art, it proposes a method for inspecting the inner pressure line state of a pin based on deep learning and visual fusion. Based on the deep learning segmentation results, the method adopts the least squares method to perform ellipse fitting, successfully restores the boundary of the observation hole, and forms an accurate analysis area. Thus, the area ratio is calculated within the hole boundary, and a reliable judgment of the inner pressure line state of the observation hole is realized. This method effectively solves the problem of hole boundary division and provides a new idea for the inspection of the inner pressure line state of the pin. A method for inspecting the exposed length of a wire core based on deep learning and visual fusion is also proposed. Based on the deep learning segmentation results, the method determines the precise position of the exposed wire core by measuring the change in the contour width and the change in the angle. Combined with calibration and threshold judgment, the exposed length of the wire core at the tail of the pin is accurately inspected. This method effectively solves the problem of judging the specific position of the wire core and provides a new idea for the accurate measurement of the exposed length of the wire core. A pin intelligent inspection device is also designed. The device has two different types, namely a single-phase pin inspection box 9 and a four-phase pin inspection box 9. By integrating multiple hardware components, including a high-resolution short-focus camera, a ring light source, and a reasonable box structure design, efficient inspection of the pins is achieved. This device not only takes into account the balance between cost and efficiency, but also fully considers the ease of operation and inspection accuracy, bringing a new hardware integration solution to the field of pin crimping quality inspection.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序商品。因此,本申请可采用完全硬件实施例、完全软件实施例,或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序商品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

本申请是参照根据本申请实施例的方法、设备(系统)和计算机程序商品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框,以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者等同替换,而未脱离本发明精神和范围的任何修改或者等同替换,其均应涵盖在本发明的权利要求保护范围之内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims (8)

1. An intelligent inspection device for the press-fit quality of a miniature pin of an electric connector, which is characterized by comprising: the camera comprises a camera and a camera module protective shell, wherein at least one camera is arranged in the camera module protective shell;
when only one camera device exists, a through hole for a pin to pass through is formed in one side of the box body, the camera device is arranged on one side of the box cover, which is far away from the box body, a channel for a camera to pass through is formed in the center of the box cover, a fixing groove is formed in the periphery of the channel, a fixing block is arranged on one side, which is close to the camera, of the camera module protection shell, and the camera module protection shell is detachably connected with the box cover through the fixing block;
When the camera device has a plurality of camera devices, through holes through which the contact pins can pass are formed in the box cover, two box covers are arranged on two opposite surfaces of the box body, channels through which the camera can pass are formed in other surfaces of the box body except the surfaces of the box cover which are detachably connected, fixing grooves are formed in the periphery of the channels, a fixing block is arranged on one side of the camera module protective shell, which is close to the camera, of the camera module protective shell, and the camera module protective shell is detachably connected with the box body through the fixing block.
2. An intelligent inspection method for the press-connection quality of a micro-pin of an electric connector, which is characterized in that the method is applied to the intelligent inspection device for the press-connection quality of the micro-pin of the electric connector in claim 1, and comprises the following steps:
s1, offline modeling: detecting and positioning key parts of the contact pin in real time by using an image dataset through a deep learning training model;
S2, checking the press-connection quality of the pins: performing in-needle pressure line state inspection and wire core exposed length compliance inspection;
S3, displaying an inspection result AR: by extracting model output and real-time parameters, a virtual inspection area and a result are constructed and overlapped, and visual real-time contact pin position and state display is realized;
s4, feedback: and evaluating the quality of the pin according to the AR checking result, and taking measures.
3. The intelligent inspection method for the press-fit quality of the micro pin of the electrical connector according to claim 2, wherein the step S1 specifically comprises:
1) Preparing a data set: preparing a plurality of high-quality image data and constructing a data set;
2) Image partitioning: partitioning a high-resolution pin image in the high-quality image data, and intercepting an observation hole and a tail image by using a square area;
3) Image marking: accurately labeling targets in each picture to form a training data set;
4) Training and modeling: training the marked data set through a deep learning target detection framework to obtain a target detection classifier for identifying the positions of the contact pin observation holes and the tail parts in real time.
4. The intelligent inspection method for the compression quality of the micro-pin of the electric connector according to claim 2, wherein the step S2 specifically comprises an in-pin compression state inspection and a wire core exposed length compliance inspection;
the in-needle pressure state check specifically includes:
The image processing method comprises the following steps: dividing a sample image into a plurality of areas, identifying the positions of the contact pin observation holes by using a target detection classifier, and extracting the ROI areas corresponding to the contact pin observation holes by determining the positions so as to realize the division of the observation holes;
Binarization processing step: further performing binarization processing and morphological operation on the extracted ROI region to distinguish the wire core from the inner wall of the observation hole, wherein the wire core is white and the inner wall of the observation hole is black after the binarization processing;
Boundary fitting process: elliptical fitting is carried out on the boundary of the observation hole by adopting a least square method, and the best fitting result is obtained by minimizing the sum of squares of residual errors, so that the follow-up analysis is ensured to be carried out based on the accurate hole boundary;
parameter judgment mechanism: in the determined hole boundary, calculating the ratio of the area of the wire core, setting a threshold value, and if the ratio of the area of the wire core is smaller than the threshold value, judging that the wire core of the cable is not completely inserted into the crimping hole, namely the wire pressing is not in place; if the area ratio of the wire core is larger than the threshold value, judging that the cable wire core is completely inserted into the crimping hole, namely, pressing the wire into place;
the core bare length compliance check includes:
Tail segmentation: carrying out image partitioning on the sample image, identifying the position of the tail of the pin through a target detection classifier, and extracting the ROI area corresponding to the tail of the pin through determining the position so as to realize the segmentation of the tail of the pin;
binarization processing process: further performing binarization processing and morphological operation on the extracted ROI area to remove interference information;
contour extraction technology: extracting tail contours comprising bare wire cores by a Canny edge detection technology;
The wire core area determining method comprises the following steps: determining a specific area of the exposed wire core by measuring and calculating the change of the width and the change of the angle of the profile;
Parameter judgment mechanism: the pixel distance of the length of the exposed wire core is converted into the actual distance through calibration, and if the actual length of the exposed wire core is larger than a preset length threshold value, the exposed wire core is judged to be unqualified; and if the actual length of the exposed wire core is smaller than or equal to the preset length threshold value, judging that the wire core is qualified.
5. The intelligent inspection method for the press-fit quality of the micro pin of the electrical connector according to claim 2, wherein the step S3 specifically comprises:
the position information extraction method comprises the following steps: extracting real-time position information from the output of the deep learning model to accurately position coordinates of the pin observation hole and the tail in the image;
parameter information acquisition: acquiring real-time parameter information of an inspection process, wherein the real-time parameter information comprises inspection result data of an in-needle line pressing state and a wire core exposed length;
Inspection area framing technique: constructing a virtual checking area frame on the actual contact pin image according to the real-time position information so as to accurately mark the positions of the contact pin observation hole and the tail part;
Inspection result presentation mechanism: presenting the checking result according to the real-time parameter information in a virtual graph, color or mark mode so as to distinguish the qualified state and the unqualified state;
The virtual information superposition method comprises the following steps: and superposing the inspection area frame and the inspection result on the real-time image in a virtual mode, so that virtual information and an actual contact pin image are integrated, and more visual inspection result display is provided.
6. The intelligent inspection method for the press-fit quality of a micro-pin of an electrical connector according to claim 4, wherein the parameter judgment for the in-pin press-fit state inspection comprises:
The computer determines the line pressing condition through the ratio of the area of the line core;
The ratio of the wire core areas is T0, the ratio T1 of the first wire core area, the ratio T2 of the second wire core area, the ratio T3 of the third wire core area, the ratio T4 of the fourth wire core area and the ratio T5 of the fifth wire core area are preset, and T1 is more than T2 and less than T3 and less than T5; presetting a primary line pressing condition V1, a secondary line pressing condition V2, a tertiary line pressing condition V3, a quaternary line pressing condition V4 and a fifth line pressing condition V5, wherein V1 is more than V2 and less than V3 and less than V4 and less than V5;
determining a wire pressing condition according to the relation between the occupied ratio T0 of the wire core area and the occupied ratio of each preset wire core area;
when T0 is less than or equal to T1, determining the line pressing condition as a primary line pressing condition V1;
When T1 is more than or equal to T0 and less than or equal to T2, determining the line pressing condition as a secondary line pressing condition V2;
When T2 is more than or equal to T0 and less than or equal to T3, determining the line pressing condition as a three-level line pressing condition V3;
when T3 is more than or equal to T0 and less than or equal to T4, determining the line pressing condition as a four-stage line pressing condition V4;
When T4 is more than or equal to T0 and less than or equal to T5, determining the line pressing condition as a five-stage line pressing condition V5;
When the line pressing condition is V3, V4 or V5, judging that the crimping is not in accordance with the technical requirement, judging that the crimping is not in accordance with the contact pin of the technical requirement, taking out the contact pin from the electric connector, checking the state of the electric wire and the electric cable, and then re-crimping, wherein before re-crimping, the conductor part of the electric wire and the electric cable is ensured to be free from damage, and the crimping tool and the die are in accordance with the requirement;
and when the line pressing condition is V1 or V2, the crimping is judged to be firm, and the technical requirement is met.
7. The intelligent inspection method for the compression quality of a micro-pin of an electrical connector according to claim 4, wherein the parameter judgment for the compliance inspection of the exposed length of the wire core comprises:
the computer determines the actual length through the pixel distance of the length of the exposed wire core;
The pixel distance of the length of the exposed wire core is X0, the pixel distance X1 of the length of the first exposed wire core, the pixel distance X2 of the length of the second exposed wire core, the pixel distance X3 of the length of the third exposed wire core, the pixel distance X4 of the length of the fourth exposed wire core and the pixel distance X5 of the length of the fifth exposed wire core are preset, and X1 is more than X2 and less than X3 and less than X5; presetting a primary actual length N1, a secondary actual length N2, a tertiary actual length N3, a quaternary actual length N4 and a penta actual length N5, wherein N1 is more than N2 and less than N3 and less than N4 and less than N5;
Determining the actual length according to the relation between the pixel distance X0 of the length of the exposed wire core and the pixel distance of each preset length of the exposed wire core;
When X0 is less than or equal to X1, determining the actual length as a first-stage actual length N1;
When X1 is more than X0 and less than or equal to X2, determining the actual length as a secondary actual length N2;
when X2 is more than X0 and less than or equal to X3, determining the actual length as three-stage actual length N3;
When X3 is more than X0 and less than or equal to X4, determining the actual length as a four-stage actual length N4;
when X4 is more than X0 and less than or equal to X5, determining the actual length to be five-stage actual length N5;
when the actual length is N2, N3, N4 or N5, judging that the exposed part of the wire core is too long, trimming the wire core to a specified length by using a cutting tool, and after trimming the wire core, crimping the wire core again to ensure good electrical connection and mechanical strength;
when the actual length is V1, judging that the exposed part of the wire core is not long, and trimming the wire core is not needed.
8. An intelligent checking system for the press-connection quality of a miniature contact pin of an electric connector is characterized by comprising a hardware layer, a data layer, a functional layer and an application layer;
The hardware layer comprises a computing device, an image acquisition device, a light source control device and a display device, wherein the computing device is a computer and is used for executing an inspection algorithm, the image acquisition device is a pin inspection box, the pin inspection box is integrated with a high-resolution short-focus camera and a 60-degree annular light source and is used for image acquisition of an actual pin, the light source control device is a light source controller and is used for adjusting the brightness of the light source so as to ensure that the pin can obtain sufficient illumination, and the display device is a touch display screen and is used for displaying a real-time image and a pin inspection result;
The data layer comprises all data in the system, including prior information, real-time position, parameter information and inspection result information; the prior information is divided into inspection process information, observation holes, tail images and deep learning information, and the real-time position and parameter information refer to real-time two-dimensional position of an inspection area and inspection parameter data in the area; the checking result information refers to whether the checking item is qualified or not;
the functional layer is a part for realizing intelligent inspection of the pin press-connection quality and comprises an inspection requirement design module, an in-needle pressure line state inspection module, a wire core exposed length compliance inspection module and an inspection result AR display module, wherein the inspection requirement design module is configured to provide prior information for subsequent functions; in the in-needle pressure linear state checking module and the wire core exposure length compliance checking module, firstly, a target checking area is identified by using deep learning information, then real-time position information and parameter information are obtained, and finally checking process information and parameter information are combined to obtain checking result information;
The application layer representation system workflow steps are as follows:
s1, offline modeling: detecting and positioning key parts of the contact pin in real time by using an image dataset through a deep learning training model;
S2, checking the press-connection quality of the pins: performing in-needle pressure line state inspection and wire core exposed length compliance inspection;
S3, displaying an inspection result AR: by extracting model output and real-time parameters, a virtual inspection area and a result are constructed and overlapped, and visual real-time contact pin position and state display is realized;
s4, feedback of operators: the operator evaluates the quality of the pin according to the AR inspection result and takes necessary measures.
CN202410524732.4A 2024-04-29 2024-04-29 A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors Active CN118097092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410524732.4A CN118097092B (en) 2024-04-29 2024-04-29 A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410524732.4A CN118097092B (en) 2024-04-29 2024-04-29 A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors

Publications (2)

Publication Number Publication Date
CN118097092A true CN118097092A (en) 2024-05-28
CN118097092B CN118097092B (en) 2024-07-30

Family

ID=91149420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410524732.4A Active CN118097092B (en) 2024-04-29 2024-04-29 A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors

Country Status (1)

Country Link
CN (1) CN118097092B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483331A (en) * 2014-12-03 2015-04-01 东莞市神州视觉科技有限公司 A three-dimensional detection method, device and system for connector pins
CN109447979A (en) * 2018-11-09 2019-03-08 哈尔滨工业大学 Object detection method based on deep learning and image processing algorithm
CN110443898A (en) * 2019-08-12 2019-11-12 北京枭龙科技有限公司 A kind of AR intelligent terminal target identification system and method based on deep learning
CN113128576A (en) * 2021-04-02 2021-07-16 中国农业大学 Crop row detection method and device based on deep learning image segmentation
CN113592822A (en) * 2021-08-02 2021-11-02 郑州大学 Insulator defect positioning method for power inspection image
CN114119489A (en) * 2021-10-29 2022-03-01 北京宇航系统工程研究所 Automatic detection method for excess of electric connector and needle retracting and needle reversing defects
CN217878964U (en) * 2022-07-29 2022-11-22 上海飞机制造有限公司 Detection device for detecting pin defect of electric connector
US20230129522A1 (en) * 2021-10-27 2023-04-27 Kyungrimtech Co., Ltd. Artificial intelligence vision inspection system for wiring harness
CN116152147A (en) * 2022-10-21 2023-05-23 成都理工大学 Connector pin position deviation detection method
US20230281975A1 (en) * 2022-03-02 2023-09-07 Verizon Patent And Licensing Inc. Systems and methods for generating three-dimensional annotations for training a machine learning model

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483331A (en) * 2014-12-03 2015-04-01 东莞市神州视觉科技有限公司 A three-dimensional detection method, device and system for connector pins
CN109447979A (en) * 2018-11-09 2019-03-08 哈尔滨工业大学 Object detection method based on deep learning and image processing algorithm
CN110443898A (en) * 2019-08-12 2019-11-12 北京枭龙科技有限公司 A kind of AR intelligent terminal target identification system and method based on deep learning
CN113128576A (en) * 2021-04-02 2021-07-16 中国农业大学 Crop row detection method and device based on deep learning image segmentation
CN113592822A (en) * 2021-08-02 2021-11-02 郑州大学 Insulator defect positioning method for power inspection image
US20230129522A1 (en) * 2021-10-27 2023-04-27 Kyungrimtech Co., Ltd. Artificial intelligence vision inspection system for wiring harness
CN114119489A (en) * 2021-10-29 2022-03-01 北京宇航系统工程研究所 Automatic detection method for excess of electric connector and needle retracting and needle reversing defects
US20230281975A1 (en) * 2022-03-02 2023-09-07 Verizon Patent And Licensing Inc. Systems and methods for generating three-dimensional annotations for training a machine learning model
CN217878964U (en) * 2022-07-29 2022-11-22 上海飞机制造有限公司 Detection device for detecting pin defect of electric connector
CN116152147A (en) * 2022-10-21 2023-05-23 成都理工大学 Connector pin position deviation detection method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴伟浩;李青;: "基于改进Yolo v3的电连接器缺陷检测", 传感技术学报, no. 02, 15 February 2020 (2020-02-15) *
杨静: "基于深度学习的绞线式弹性毫微型插针表面缺陷检测关键技术研究", 《博士学位论文全文库》, 30 April 2021 (2021-04-30) *

Also Published As

Publication number Publication date
CN118097092B (en) 2024-07-30

Similar Documents

Publication Publication Date Title
CN109816049B (en) A deep learning-based assembly monitoring method, device and readable storage medium
US11836967B2 (en) Method and device for small sample defect classification and computing equipment
US7133551B2 (en) Semi-automatic reconstruction method of 3-D building models using building outline segments
KR102378186B1 (en) Artificial intelligence vision inspection system for wiring harness
CN112734945A (en) Assembly guiding method, system and application based on augmented reality
CN105627939A (en) A micro-gap detection device, method and system based on industrial equipment
CN110032279A (en) A kind of the aviation wire plug assembly method and system of computer vision and augmented reality glasses auxiliary
CN118071733B (en) PCB bare board defect detection method based on improved YOLOv neural network
CN114494203A (en) An Improved Faster-RCNN Polar Component Detection Method Based on Rotation Frame Positioning
CN118097092B (en) A method, device and system for intelligent inspection of the crimping quality of micro pins of electrical connectors
CN104655041B (en) A kind of industrial part contour line multi-feature extraction method of additional constraint condition
CN111553176A (en) Wireless transmission checking method and system suitable for wiring of transformer substation cubicle
CN107239355B (en) A foolproof Kanban interaction system and interaction method for plugging and unplugging electrical connectors of spacecraft
CN118762022A (en) Circuit board production inspection method, system, equipment and medium based on machine vision
CN113592789A (en) Dim light image identification method, device, equipment and storage medium
CN113866182A (en) Detection method and system for detecting defects of display module
CN111339729A (en) A balanced layout method, device and readable storage medium for automatically positioning screw hole positions
CN117994244A (en) Crimping AI detection method and system
CN117870555A (en) A device and method for measuring the thickness of cable conductor insulation layer based on image segmentation
CN117830509A (en) Three-dimensional modeling method, system and electronic equipment based on two-dimensional data of power distribution station
CN117058113A (en) Abnormality detection method and device for metering equipment, storage medium and computer equipment
CN112529902A (en) Hole checking method of PCB (printed circuit board)
CN115908391A (en) Motor circuit board detection method and device, storage medium and electronic equipment
KR20140135513A (en) Apparatus and method for inspecting structure
CN103824143A (en) Component assembly indicating system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant