A connector detection method, device and system
By comparing and judging the connector port images, the existing connector detection methods have solved the problems of high labor costs, low detection efficiency and low accuracy, and efficient and accurate connector detection are achieved, reducing production costs.
Patent Information
- Application Number
- CN202111404819.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The existing connector detection methods have high labor costs, low detection efficiency and low accuracy, and the detection devices on the market are costly and generally have problems with insecure connections.
By acquiring the connector image, including the connector port image, and comparing it with the preset standard connector port image, if the difference is within the preset range, it is determined that the connector is qualified. The method includes preliminary calibration of the connector port image, measuring and comparing the position and spacing of the shrapnel and hooks, and judging the qualified nature of the connector.
It improves the efficiency and accuracy of connector detection, reduces production costs, and improves the degree of automation of the production process.
Smart Images

Figure CN114324383B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of connector testing, and particularly to a connector detection method, device and system. Background Art
[0002] With the continuous development of electronic technology, as a medium product for transmitting signals, connectors are more and more widely used. Whether it is equipment for industrial production or mobile phones, computers, MP3s, etc. that people often use, connectors are an important medium element and are indispensable. Therefore, the detection of connector quality is also crucial.
[0003] In the field of optoelectronic modules, connector defects are mainly caused by abnormal connector ports. The quality of connectors is generally judged by visual inspection. Since the inner spring pieces of connectors are very small, only manual inspection will consume a large amount of human resources, have low detection efficiency and high misjudgment rate. And the connector port detection devices on the market are generally customized. In addition to the high cost, since different parts are produced by different manufacturers, there are generally the following problems. When the port is abnormal, the connection between the connector and the connecting piece will be loose, resulting in poor contact and affecting the quality of the product.
[0004] Therefore, it is necessary to provide a connector detection method to improve the detection efficiency and accuracy. Summary of the Invention
[0005] The technical problem to be solved by the present invention is: to provide a connector detection method to solve the problems of high labor cost, low detection efficiency and low accuracy in the existing visual inspection of connectors.
[0006] To solve the above technical problem, the technical solution adopted by the present invention is: in the first aspect, a connector detection method is provided, and the method includes the following steps:
[0007] Obtain a connector image, where the connector image includes a connector port image;
[0008] Compare and judge the connector port image with a preset standard connector port image;
[0009] If the comparison difference between the connector port image and the preset standard connector port image is within a preset range, it is determined that the connector is qualified and output.
[0010] Further, the obtaining of the connector image specifically includes the following steps:
[0011] Vertically align the shooting component with the connector port for shooting;
[0012] Receive the connector port image through the controller and send the connector port image to a display for display.
[0013] Further, before comparing and judging the connector port image with a preset standard connector port image, the following steps are also included:
[0014] Divide a detection area in the connector port image, where the detection area includes a wireframe formed by enclosing an upper side line, side lines, and a lower side line;
[0015] Compare the detection area with preset reference lines, where the preset reference lines include an upper reference line and a lower reference line;
[0016] If the upper side line coincides with the upper reference line and the lower side line coincides with the lower reference line, the preliminary calibration of the connector port image is completed.
[0017] Further, when comparing the detection area with the preset reference lines, the following steps are also included:
[0018] If the detection area is inconsistent with the preset reference lines, adjust the position of the connector port image;
[0019] Compare the adjusted connector port image with the preset reference lines again;
[0020] If the connector port image is still inconsistent with the preset reference lines, determine that the connector is unqualified.
[0021] Further, the comparison and judgment of the connector port image with a preset standard connector port image specifically includes the following steps:
[0022] Compare the left elastic piece and the right elastic piece in the connector port image with the preset reference lines respectively, where the preset reference lines include a middle reference line, and the distances between the middle reference line and the upper reference line and the lower reference line are the same;
[0023] Judge whether the connector port is qualified according to whether the central axes of the left elastic piece and the right elastic piece are consistent with the middle reference line.
[0024] Further, the connector port image includes a first elastic piece assembly image and a second elastic piece assembly image. The comparison and judgment of the connector port image with a preset standard connector port image specifically further includes the following steps:
[0025] According to the connector port image, measure the distance between the first elastic piece assembly and the upper reference line to obtain a first height value;
[0026] Based on the connector port image, measure the distance between the second elastic piece assembly and the lower reference line to obtain a second height value;
[0027] Based on the connector port image, measure the distances between the first elastic piece assembly and the second elastic piece assembly and the middle reference line respectively to obtain a third height value;
[0028] Compare the first height value, the second height value, and the third height value with a preset standard image threshold range, and determine whether the connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector.
[0029] Further, the connector port image includes a first hook assembly image and a second hook assembly image. The specific steps of comparing the connector port image with a preset standard connector port image and making a judgment further include the following steps:
[0030] Based on the connector port image, measure the distance between adjacent hooks in the first hook assembly to obtain a first distance value;
[0031] Based on the connector port image, measure the distance between adjacent hooks in the second hook assembly to obtain a second distance value;
[0032] Compare the first distance value and the second distance value with a preset standard image threshold range, and determine whether the connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector.
[0033] Further, the specific steps of determining whether the connector port is qualified and outputting the detection result of the connector further include the following steps:
[0034] If any one of the first distance value and the second distance value is not within the threshold range, it is obtained that the connector is unqualified.
[0035] A second aspect of the present invention provides a detection device for a connector, including the above-mentioned connector detection system, and further including a base and an image processing mechanism, a light source adjustment mechanism, and a connector fixing mechanism sequentially arranged on the base; the light source adjustment mechanism includes a first mounting seat and a light source assembly arranged on the side of the first mounting seat away from the image processing mechanism, the first mounting seat includes a first slider and a third support frame, a first through hole is provided on the side wall of the third support frame, a second through hole communicating with the first through hole is provided in the middle of the light source assembly, the first mounting seat is slidably assembled on the base, the bottom wall of the connector fixing mechanism is slidably assembled on the base, and the shooting center of the image processing mechanism, the light emitting center of the light source assembly, and the detection port of the connector fixing mechanism are on the same central axis.
[0036] The second aspect of the present invention provides a detection system for a connector, which is applied to the above-mentioned connector detection method. The detection system for the connector includes:
[0037] An acquisition module, configured to acquire a connector image, where the connector image includes a connector port image;
[0038] A comparison module, configured to compare and determine the connector port image with a preset standard connector port image;
[0039] An output module, configured to obtain that the connector is qualified and output if the comparison difference between the connector port image and the preset standard connector port image is within a preset range.
[0040] The beneficial effects of the present invention are as follows: By acquiring a connector image, where the connector image includes a connector port image; comparing and determining the connector port image with a preset standard connector port image; if the comparison difference between the connector port image and the preset standard connector port image is within a preset range, it is obtained that the connector is qualified and output. The connector port image acquired in real time is compared with the preset standard connector image, and the preset standard image is used as a reference to quickly obtain the test result, effectively improving the automation degree and production efficiency of the production process and reducing the production cost. Description of the Drawings
[0041] Figure 1 It is a flowchart of the connector detection method of the present invention;
[0042] Figure 2 It is a schematic diagram of the connector image of the present invention;
[0043] Figure 3 It is a first structural schematic diagram of the connector detection device of the present invention;
[0044] Figure 4 It is a second structural schematic diagram of the connector detection device of the present invention;
[0045] Figure 5 It is a flowchart of the connector detection system of the present invention.
[0046] The reference numerals are as follows:
[0047] 10 - Base; 20 - Image Processing Mechanism; 21 - Shooting Component; 211 - First Interface; 212 - Second Interface; 23 - Extension Ring; 24 - Lens; 30 - Light Source Adjustment Mechanism; 32 - Light Source Component; 33 - Third Support Frame; 331 - First Through - hole; 40 - Connector Fixing Mechanism; 41 - Connector Port; 441 - Upper Edge Line; 442 - First Elastic Sheet Assembly; 443 - Right Elastic Sheet; 444 - Second Elastic Sheet Assembly; 445 - Lower Edge Line; 446 - Left Elastic Sheet; 50 - Light Shielding Component; 51 - Upper Baffle; 52 - Side Baffle; 53 - Front Baffle; 54 - Rear Baffle. Detailed Embodiment
[0048] To describe in detail the technical content, structural features, achieved objectives and effects of the present invention, the following will be described in detail in conjunction with the embodiments and with reference to the drawings.
[0049] The following describes in detail the embodiments of the present invention. The examples of the embodiments are shown in the drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
[0050] In the field of optoelectronic modules, poor connectors are mainly caused by abnormal elastic sheets inside the connectors. The quality of connectors is generally judged by visual inspection. Since the elastic sheets inside the connectors are very small, only through manual detection, there will be problems such as large consumption of human resources, low detection efficiency, and high misjudgment rate. And the elastic sheet detection devices for connectors on the market are generally customized. In addition to the high cost, since different parts are produced by different manufacturers, the following problems generally exist. When the elastic sheet is abnormal, the connection between the connector and the connecting piece will be loose, resulting in poor contact and affecting the quality of the product.
[0051] The first aspect of this application provides a connector detection method. Please refer to Figure 1 , Figure 1 , which is a flowchart of the connector detection method of the present invention. Figure 2 This is a schematic diagram of the connector image of the present invention. The above - mentioned method includes the following steps:
[0052] Step S01: Obtain a connector image, where the above - mentioned connector image includes a connector port image;
[0053] In an alternative embodiment, the specific steps for obtaining the connector image need to be considered. Specifically, the shooting component is vertically aligned with the above-mentioned connector port for shooting; the controller receives the image of the connector port and sends the image of the connector port to the display for display. In this embodiment, the shooting component can be a camera; it also includes an extension ring and a lens for processing the image, the extension ring is connected to one end of the shooting component, and the lens is connected to the extension ring.
[0054] In an alternative embodiment, after obtaining the connector image, the following steps are further included:
[0055] Divide the above-mentioned connector port image into a region to be detected, and the region to be detected includes a wireframe formed by enclosing an upper side line 441, side lines, and a lower side line 445;
[0056] Specifically, before detecting the connector port, it is necessary to first divide the region to be detected. The division of the detection region is determined by the shape of the connector. Draw a wireframe along the inner frame edge of the connector on the image of the connector to obtain the region to be detected of the connector image.
[0057] Compare the above-mentioned region to be detected with a preset reference line, and the preset reference line includes an upper reference line and a lower reference line;
[0058] If the above-mentioned upper side line 441 coincides with the upper reference line and the above-mentioned lower side line 445 coincides with the above-mentioned lower reference line, the preliminary calibration of the above-mentioned connector port image is completed;
[0059] Specifically, in this embodiment, when setting the detection region, in order to ensure the accuracy of the region to be detected, it needs to be divided according to a certain reference. Among them, the upper side line 441 is set with the upper reference line as the standard, and the lower side line 445 is set with the lower reference line as the standard.
[0060] In an alternative embodiment, when comparing the region to be detected with the preset reference line, the following steps are further included:
[0061] If the above-mentioned region to be detected is inconsistent with the preset reference line, adjust the position of the above-mentioned connector port image;
[0062] Compare the adjusted above-mentioned connector port image with the preset reference line again;
[0063] If the above-mentioned connector port image is still inconsistent with the preset reference line, it is determined that the above-mentioned connector is unqualified.
[0064] Specifically, in this embodiment, the inconsistency between the area to be detected and the preset reference line is caused by the placement of the connector. In this case, there are two situations. The first situation is that only by rotating the connector image so that the adjusted image is consistent with the preset reference line, the preliminary calibration of the above connector port image is completed; the other situation is that even if the connector image is rotated, the adjusted image still cannot be consistent with the preset reference line. In this case, it can be directly obtained that the connector is unqualified.
[0065] After completing the preliminary calibration of the connector image, it is necessary to consider the impact of the inner elastic piece in the connector on the entire connector. Generally, there are 24 PIN feet inside the connector head, and there are differences among the PIN feet inside the connector head. When the height of the inner elastic piece or the difference in the hook spacing is too large, the connector is not firmly plugged in and is prone to looseness, resulting in poor contact and affecting the user experience and product quality. And the existing discrimination methods generally only roughly detect the height of the inner elastic piece to judge whether the connector meets the requirements, with low accuracy. Therefore, it is necessary to improve the above problems.
[0066] Step S02: Compare and judge the above connector port image with the preset standard connector port image. The specific steps include:
[0067] Compare the left elastic piece 446 and the right elastic piece 443 in the above connector port image with the preset reference line respectively. The above preset reference line includes a middle reference line, and the distances between the middle reference line and the upper reference line and the lower reference line are the same;
[0068] Judge whether the above connector port is qualified according to whether the central axes of the above left elastic piece 446 and right elastic piece 443 are consistent with the above middle reference line;
[0069] Specifically, in this embodiment, comparing the left elastic piece 446 and the right elastic piece 443 in the connector port image with the preset reference line respectively mainly considers three aspects. The first aspect is the abnormal width of the left and right elastic pieces, that is, there are situations of being too wide, too narrow or both; the second aspect is the abnormal position of the left and right elastic pieces, that is, there are situations of being too high, too low or both; the third aspect is the abnormal length of the left and right elastic pieces, that is, there are situations of being too long, too short or both. Therefore, if the left elastic piece 446 or the right elastic piece 443 has any one of the above three problems, it can be obtained that the connector is unqualified.
[0070] In an alternative embodiment, comparing and judging the connector port image with the preset standard connector port image specifically further includes the following steps:
[0071] The above connector port image includes a first elastic piece component image and a second elastic piece component image. Comparing the above connector port image with a preset standard connector port image for judgment specifically further includes the following steps:
[0072] According to the above connector port image, measure the distance between the first elastic piece component 442 and the upper reference line to obtain a first height value;
[0073] According to the above connector port image, measure the distance between the second elastic piece component 444 and the lower reference line to obtain a second height value;
[0074] According to the above connector port image, measure the distances between the first elastic piece component 442 and the second elastic piece component 444 and the middle reference line respectively to obtain a third height value;
[0075] Compare the above first height value, second height value and third height value with the preset standard image threshold range, and judge whether the above connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector.
[0076] Specifically, in this embodiment, the first elastic piece component 442 includes a plurality of upper elastic pieces, and the first height value is obtained by measuring the height of the upper elastic piece from the upper reference line. The second elastic piece component 444 includes a plurality of lower elastic pieces, and the second height value is obtained by measuring the height of the lower elastic piece from the lower reference line; measure the distances between the heights of the plurality of upper elastic pieces and the plurality of lower elastic pieces and the middle reference line respectively to obtain a third height value; when the first height value, second height value and third height value are all within the threshold range, it can be obtained that the connector is a qualified connector. Among them, the threshold range can be 0 to 0.3 mm.
[0077] In an alternative embodiment, comparing the connector port image with a preset standard connector port image for judgment specifically further includes the following steps:
[0078] The connector port image includes a first hook component image and a second hook component image;
[0079] According to the above connector port image, measure the distance between adjacent hooks in the first hook component to obtain a first distance value;
[0080] According to the above connector port image, measure the distance between adjacent hooks in the second hook component to obtain a second distance value;
[0081] Compare the above first distance value and second distance value with the preset standard image threshold range, and judge whether the above connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector.
[0082] Specifically, in this embodiment, the first hook assembly includes a plurality of upper row inner elastic sheet hooks, and the first spacing value is obtained by measuring the spacing between adjacent hooks of the upper row inner elastic sheets; the second hook assembly includes a plurality of lower row inner elastic sheet hooks, and the second spacing value is obtained by measuring the spacing between adjacent hooks of the lower row elastic sheets; the first spacing value and the second spacing value are compared with a preset standard image threshold range. When both the first spacing value and the second spacing value are within the preset standard image threshold range, it can be obtained that the connector is a qualified connector.
[0083] To determine whether the connector port is qualified and output the detection result of the connector, the specific steps are as follows:
[0084] If any one of the above first spacing value and second spacing value is not within the above threshold range, it is obtained that the above connector is unqualified.
[0085] Specifically, in this embodiment, if any one of the first height value, the second height value, the third height value, the first spacing value and the second spacing value does not meet the above threshold range, it can be obtained that the connector is unqualified, where the threshold range can be 0 to 0.3 mm.
[0086] Step S03: If the comparison difference between the above connector port image and the preset standard connector port image is within the preset range, it is obtained that the above connector is qualified and output.
[0087] A second aspect of the present application provides a connector detection device. Please refer to Figure 3-4 , Figure 3 which is the first structural schematic diagram of the connector detection device of the present invention; Figure 4 which is the second structural schematic diagram of the connector detection device of the present invention.
[0088] The connector detection device includes the above connector detection method, and further includes a base 10 and an image processing mechanism 20, a light source adjustment mechanism 30, and a connector fixing mechanism 40 sequentially arranged on the base 10; the light source adjustment mechanism 30 includes a first mounting seat and a light source assembly 32 arranged on the side of the first mounting seat away from the image processing mechanism 20. A first through hole 331 is provided on the side wall of the first mounting seat, and a second through hole communicating with the first through hole 331 is provided in the middle of the light source assembly 32. The first mounting seat is slidably assembled on the base 10, the bottom wall of the connector fixing mechanism 40 is slidably assembled on the base 10, and the shooting center of the image processing mechanism 20, the light emitting center of the light source assembly 32, and the detection port of the connector fixing mechanism 40 are on the same central axis.
[0089] Specifically, in this embodiment, a base 10, an image processing mechanism 20, a light source adjustment mechanism 30, and a connector fixing mechanism 40 are provided on the base 10. Among them, the light source adjustment mechanism 30 includes a first mounting base and a light emitting source assembly 32 provided on the side wall of the first mounting base. The shooting center of the image processing mechanism 20 continuously takes pictures of the detection port of the connector fixing mechanism 40 through a first through hole 331 on the first mounting base. Among them, a second through hole communicating with the first through hole 331 is provided in the middle of the light emitting source assembly 32 for adjusting the intensity of the light of the detection port of the connector fixing mechanism 40. The image processing mechanism 20 includes a shooting assembly 21. A first interface 211 and a second interface 212 are respectively provided on the shooting assembly 21. By connecting the first interface 211 to a display and the second interface 212 to a host, the image information obtained by the shooting assembly 21 taking real-time pictures of the connector port 41 is sent to the display for display through a controller, and the quality of the connector port 41 is judged. By implementing the device of this embodiment, the detection efficiency can be improved.
[0090] Currently, the image processing mechanism 20 generally takes pictures of the detection port in the connector fixing mechanism 40 under sufficient light sources. Therefore, the intensity and uniformity of the external ambient light will have a certain interference on the shooting of the detection port in the connector fixing mechanism 40, thereby affecting the accuracy of the detection results. Therefore, it is necessary to improve the above problems.
[0091] In this embodiment, a light shielding component is provided to reduce the influence of external light on the shooting effect. Among them, the light shielding component 50 is provided on the base 10. The light shielding component 50 has a receiving chamber with openings at both ends, and the light source adjustment mechanism 30 is provided in the receiving chamber; the bottom wall of the light shielding component 50 is fixed to the first groove of the base 10.
[0092] Specifically, the light shielding component 50 includes an upper baffle 51, side baffles 52, a front baffle 53, and a rear baffle 54. The rear baffle 54 is fixed to the first groove of the base 10. The upper baffle 51 connects two relatively arranged side baffles 52, and the front baffle 53 is connected to the side wall of the side baffle 52. In this embodiment, by providing the light shielding component 50, the light shielding component 50 is provided as a chamber with openings at both ends outside the light source adjustment mechanism 30, so that the light emitting source assembly 32 is in a dark room, and the light emitted by the light emitting source assembly 32 is more concentrated on the connector fixing mechanism 40, thereby improving the shooting effect of the image processing mechanism 20 and the detection result of the detection port in the connector fixing mechanism 40.
[0093] The third aspect of this application provides a connector detection system. Please refer to Figure 5 , Figure 5 which is a schematic flow chart of the connector detection system of the present invention.
[0094] Applied to the above connector detection method, the detection system of the above connector includes:
[0095] An acquisition module 101, configured to acquire a connector image, where the connector image includes a connector port image;
[0096] A comparison module 102, configured to compare and determine the above connector port image with a preset standard connector port image;
[0097] An output module 103, configured to obtain that the above connector is qualified and output if the comparison difference between the above connector port image and the preset standard connector port image is within a preset range.
[0098] Specifically, the control system mainly consists of a camera for acquiring a connector image, a controller, and a display. Among them, the camera is used to capture the port image of the connector, the controller is used to receive the connector port image captured by the camera, transmit the connector port image to the display, and process the connector port image to determine whether the connector meets the requirements. If a qualified connector image is obtained, it can be output.
Claims
1. A connector detection method, characterized in that, The method includes the following steps: Obtain a connector image, where the connector image includes a connector port image; Divide a region to be detected in the connector port image, where the region to be detected includes a wire frame formed by enclosing an upper side line, side lines, and a lower side line; If the region to be detected is inconsistent with a preset reference line, adjust the position of the connector port image; where the preset reference line includes an upper reference line and a lower reference line; Compare the adjusted connector port image with the preset reference line again. If the connector port image is still inconsistent with the preset reference line, determine that the connector is unqualified; If the upper side line coincides with the upper reference line and the lower side line coincides with the lower reference line, complete the preliminary calibration of the connector port image; Compare the left elastic piece and the right elastic piece in the connector port image with the preset reference line respectively; where the connector port image includes a first elastic piece component image and a second elastic piece component image, and the preset reference line includes a middle reference line, and the distances between the middle reference line and the upper reference line and the lower reference line are the same; According to the connector port image, measure the distance between the first elastic piece component and the upper reference line to obtain a first height value; According to the connector port image, measure the distance between the second elastic piece component and the lower reference line to obtain a second height value; According to the connector port image, measure the distances between the first elastic piece component and the second elastic piece component and the middle reference line respectively to obtain a third height value; Compare the first height value, the second height value, and the third height value with a preset standard image threshold range, and determine whether the connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector; If the comparison difference between the connector port image and the preset standard connector port image is within the preset range, it is obtained that the connector is qualified and output.
2. The connector detection method according to claim 1, wherein, The obtaining of the connector image specifically includes the following steps: Vertically align the shooting component with the connector port for shooting; Receive the connector port image through the controller and send the connector port image to the display for display.
3. The connector detection method according to claim 1, characterized in that, The connector port image includes a first hook component image and a second hook component image. The comparison and judgment of the connector port image with the preset standard connector port image specifically further includes the following steps: According to the connector port image, measure the distance between adjacent hooks in the first hook component to obtain a first distance value; According to the connector port image, measure the distance between adjacent hooks in the second hook component to obtain a second distance value; Compare the first distance value and the second distance value with a preset standard image threshold range, and determine whether the connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector.
4. The connector detection method according to claim 3, wherein The judgment of whether the connector port is qualified and the output of the detection result of the connector specifically further includes the following steps: If any one of the first distance value and the second distance value is not within the threshold range, it is obtained that the connector is unqualified.
5. A connector detection device, characterized in that, It includes the connector detection method according to any one of claims 1-4, and further includes a base, an image processing mechanism, a light source adjustment mechanism, and a connector fixing mechanism sequentially arranged on the base; the light source adjustment mechanism includes a first mounting seat and a light source component arranged on the side of the first mounting seat away from the image processing mechanism, the first mounting seat includes a first slider and a third support frame, a first through hole is provided on the side wall of the third support frame, a second through hole communicating with the first through hole is provided in the middle of the light source component, the first mounting seat is slidably assembled on the base, the bottom wall of the connector fixing mechanism is slidably assembled on the base, and the shooting center of the image processing mechanism, the light emitting center of the light source component, and the detection port of the connector fixing mechanism are on the same central axis.
6. A detection system for a connector, characterized in that, Applied to the connector detection method according to any one of claims 1 to 4, the detection system of the connector includes: An acquisition module, configured to acquire a connector image, where the connector image includes a connector port image; A comparison module, configured to divide a to-be-detected area for the connector port image, where the to-be-detected area includes a wire frame formed by enclosing an upper side line, a side line, and a lower side line; if the to-be-detected area is inconsistent with a preset reference line, adjust the position of the connector port image; where the preset reference line includes an upper reference line and a lower reference line; compare the adjusted connector port image with the preset reference line again, if the connector port image is still inconsistent with the preset reference line, then determine that the connector is unqualified; if the upper side line coincides with the upper reference line and the lower side line coincides with the lower reference line, then complete the preliminary calibration of the connector port image; compare the left elastic piece and the right elastic piece in the connector port image with the preset reference line respectively; where the connector port image includes a first elastic piece component image and a second elastic piece component image, the preset reference line includes a middle reference line, and the distances between the middle reference line and the upper reference line and the lower reference line are the same; according to the connector port image, measure the distance between the first elastic piece component and the upper reference line to obtain a first height value; according to the connector port image, measure the distance between the second elastic piece component and the lower reference line to obtain a second height value; according to the connector port image, measure the distances between the first elastic piece component and the second elastic piece component and the middle reference line respectively to obtain a third height value; compare the first height value, the second height value, and the third height value with a preset standard image threshold range, and judge whether the connector port is qualified according to whether it is within a certain threshold range, and output the detection result of the connector; An output module, configured to obtain that the connector is qualified and output it if the comparison difference between the connector port image and a preset standard connector port image is within a preset range.
Citation Information
Patent Citations
Position degree detection method and detection device
CN110940270A
Workpiece detection method and device, computer equipment and storage medium
CN111156923A