Sensor pin detection method, device, intelligent terminal and storage medium

Through the contactless detection method, the detection equipment is used to collect and analyze the image information of sensor pins, and the problem of high risk of pin detection in the prior art is solved, and safe and accurate pin detection is achieved.

CN118816718BActive Publication Date: 2025-02-14ZHEJIANG QIAOSHI INTELLIGENT IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411305312.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-02-14
Estimated Expiration
2044-09-19

AI Technical Summary

Technical Problem

In the prior art, the use of tools such as vernier calipers and micrometers to detect the distance and position of the sensor pins is likely to cause the pins to be bumped and increase the detection risk.

Method used

A sensor pin detection method is adopted. By obtaining the start trigger information of the detection device, the control device collects the image information of the pin, analyzes the image information to determine the detection data, and determines whether the data meets the reference parameters. If it meets, it is prompted to pass. If it does not meet, it is The prompt is unqualified and contactless detection is achieved.

Benefits of technology

Reduces the risk of pin detection, avoids the possibility of tool hitting crooked pins, and maintains the original characteristics of pins.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118816718B_ABST
    Figure CN118816718B_ABST
Patent Text Reader

Abstract

The present application relates to a sensor pin detection method, device, intelligent terminal and storage medium, and relates to the field of sensor detection technology, which includes obtaining startup trigger information of the detection device; obtaining debugging data information of the detection device based on the startup trigger information; controlling the detection device to obtain pin image information according to the debugging data information; determining pin detection data information according to the pin image information; determining the benchmark detection data information according to the debugging data information and the benchmark parameter relationship information; judging whether the pin detection data information meets the requirements of the benchmark detection data information; if it meets, prompting according to the qualified trigger information, and continuing to obtain the pin image information of the next sensor pin for cyclic detection; if it does not meet, prompting according to the unqualified trigger information, and continuing to obtain the pin image information of the next sensor pin for cyclic detection. The present application has the effect of reducing the risk of pin detection and maintaining the original characteristics of the pin.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of sensor detection technology, and in particular to a sensor pin detection method, device, intelligent terminal and storage medium. Background Art

[0002] The pins of a sensor usually refer to the interface that connects the sensor to an external circuit or microcontroller. These pins are used to transmit signals, power, and data. Different sensors may have different pin definitions and functions.

[0003] In the related art, an oil level sensor is usually installed in the oil tank of a car to detect the oil level. The oil level sensor is energized through two pins and outputs detection data. In order to ensure the normal operation of the oil level sensor, tools such as vernier calipers and micrometers are usually used to detect the distance between the two pins and the distance between the pins and the inner wall to determine whether the pins are skewed.

[0004] Regarding the above-mentioned related technologies, using tools such as vernier calipers and micrometers to detect the distance between two pins and the distance between a pin and the inner wall can easily cause the tools to knock the pins crooked, resulting in a greater risk of pin detection, and there is still room for improvement. Summary of the invention

[0005] In order to reduce the risk of pin detection and maintain the original characteristics of the pin, the present application provides a sensor pin detection method, device, intelligent terminal and storage medium.

[0006] In a first aspect, the present application provides a sensor pin detection method, which adopts the following technical solution:

[0007] A sensor pin detection method, comprising:

[0008] Obtaining the startup trigger information of the preset detection device;

[0009] Acquire debugging data information of the detection device based on the startup trigger information;

[0010] Control the detection device to obtain the pin image information of the sensor pin according to the debugging data information;

[0011] Analyze the stitch image information to determine stitch detection data information;

[0012] Determine the benchmark test data information according to the debugging data information and the preset benchmark parameter relationship information;

[0013] Determine whether the pin detection data information meets the requirements of the benchmark detection data information;

[0014] If it meets the requirements, a prompt will be given according to the preset qualified trigger information, and the pin image information of the next sensor pin will be acquired to perform cyclic detection;

[0015] If it does not meet the requirements, a prompt will be given according to the preset unqualified trigger information, and the pin image information of the next sensor pin will be obtained to perform cyclic detection.

[0016] By adopting the above technical scheme, the control detection equipment collects the pin image information of the sensor pin according to the debugging data information, and determines the pin detection data information according to the pin image information. When it is determined that the pin detection data information meets the requirements of the benchmark detection data information, it indicates that the pin is qualified, and thus a prompt is given according to the qualified trigger information; when it does not meet the requirements, it indicates that the pin is unqualified, and thus a prompt is given according to the unqualified trigger information. The pin is detected by a non-contact detection method to avoid the pin being knocked crooked when using tools to detect the pin, thereby reducing the risk of pin detection and maintaining the original characteristics of the pin.

[0017] Optionally, the step of controlling the detection device to obtain the pin image information of the sensor pin according to the debugging data information includes:

[0018] Analyze the debugging data information to determine the image acquisition position information;

[0019] Get the placement trigger information of the sensor pin;

[0020] Obtaining pressure distribution information of sensor pins based on placement trigger information;

[0021] Determine whether the pressure distribution information meets the requirements of the preset uniform distribution trigger information;

[0022] If it does not meet the requirements, the preset pressure component is controlled to place the sensor pins evenly, and the pressure distribution information of the sensor pins is continuously obtained for cyclic judgment;

[0023] If it is in accordance with the conditions, the preset image acquisition component is controlled to move to the position corresponding to the image acquisition position information to acquire the stitch image information.

[0024] By adopting the above technical solution, after the sensor pins are placed, the pressure distribution information of the sensor pins is detected. When the pressure distribution information does not meet the requirements of the uniformly distributed trigger information, it indicates that the sensor pins are not placed flat, which may easily cause the pin features in the subsequently acquired pin image to appear skewed in the image due to the placement. Therefore, the pressure component is controlled to place the sensor pins evenly before collecting the pin image information, thereby improving the quality of the pin image information.

[0025] Optionally, the image acquisition position information includes skew acquisition position information and length acquisition position information, and the step of controlling a preset image acquisition component to move to a position corresponding to the image acquisition position information to acquire stitch image information includes:

[0026] Control the image acquisition component to move to a position corresponding to the length acquisition position information to acquire stitch length image information, and obtain acquisition completion trigger information;

[0027] According to the acquisition completion trigger information, the image acquisition component is controlled to move to the position corresponding to the skew acquisition position information to acquire the stitch distribution image information;

[0028] The stitch length image information and the stitch distribution image information are correlated to determine the stitch image information.

[0029] By adopting the above technical solution, the image acquisition component is first controlled to move to the length acquisition position information to acquire the stitch length image information, and then the image acquisition component is controlled to move to the skew acquisition position information to acquire the stitch distribution image information, thereby avoiding repeated movement of the image acquisition component and improving the convenience of the image acquisition component in acquiring stitch image information.

[0030] Optionally, the step of controlling a preset image acquisition component to move to a position corresponding to the image acquisition position information to acquire stitch image information further includes:

[0031] Obtaining mobile position information of the image acquisition component;

[0032] Determine whether the moving position information is a position corresponding to the length collection position information or a position corresponding to the skew collection position information;

[0033] If it is the position corresponding to the length acquisition position information, the preset lighting component is controlled to illuminate the sensor pin according to the preset front and rear lighting trigger information to assist the image acquisition component in acquiring the pin length image information;

[0034] If it is a position corresponding to the skewed acquisition position information, the preset lighting component is controlled to illuminate the sensor pin according to the preset direct lighting trigger information to assist the image acquisition component in acquiring the pin distribution image information.

[0035] By adopting the above technical solution, when the image acquisition component acquires the length image of the pin, the lighting component is controlled to illuminate the sensor pin according to the front and rear lighting trigger information, thereby preventing the shadow from causing unclear pin features; when the image acquisition component acquires the distribution image of the pin, the lighting component is controlled to illuminate the sensor pin according to the direct lighting trigger information, thereby preventing the shadow from causing unclear pin features, thereby improving the quality of the pin image information.

[0036] Optionally, the steps of controlling the preset pressure component to evenly arrange the sensor pins include:

[0037] Analyze the pressure distribution information and the uniform distribution trigger information to determine the pressure loss direction information;

[0038] Determine pressure position information according to pressure missing direction information and preset direction position relationship information;

[0039] Get the sensor height information of the sensor pin;

[0040] Analyze the sensor height information and the preset overall height information to determine the downward pressure distance information;

[0041] The pressure component is controlled to press down the sensor pins according to the pressure position information and the pressing distance information so that the sensor pins are evenly arranged.

[0042] By adopting the above technical solution, the pressure position information is determined according to the pressure missing direction information and the direction position relationship information, so as to control the pressure component to evenly place the unevenly placed parts of the sensor pins after the pressure position information moves a distance corresponding to the downward pressure distance information, thereby improving the accuracy of the sensor pin adjustment.

[0043] Optionally, the step of analyzing the stitch image information to determine the stitch detection data information includes:

[0044] Performing image processing on the stitch image information according to a preset image processing method to determine processed image information;

[0045] Determine whether the processed image information is an image corresponding to preset distribution image trigger information or an image corresponding to preset length image trigger information;

[0046] If it is an image corresponding to the distributed image trigger information, analyzing the processed image information to determine the pin feature information and the sensor profile feature information;

[0047] Analyze the pin feature information and the sensor profile feature information to determine the number of distributed pixels;

[0048] If it is an image corresponding to the length image trigger information, then the stitch feature information is determined by analyzing the processed image information;

[0049] Analyze the stitch feature information to determine the length pixel quantity information;

[0050] The distribution pixel number information and the length pixel number information are associated to determine the stitch detection data information.

[0051] By adopting the above technical solution, when processing image information as distribution image trigger information, the number of pixels related to the stitch feature information and the sensor contour feature information in the image is identified, thereby obtaining the distribution pixel number information; when processing image information as length image trigger information, the number of pixels of the stitch feature information in the image is identified, thereby obtaining the length pixel number information, and after associating the two, the stitch detection data information is obtained, thereby improving the accuracy of the stitch detection data information.

[0052] Optionally, the stitch image information includes distribution detection image information and length detection image information, and the step of performing image processing on the stitch image information according to a preset image processing method to determine the processed image information includes:

[0053] Directly processing the distribution detection image information according to the preset noise reduction processing trigger information to determine the processing distribution image information;

[0054] Analyze the length detection image information to determine stitch cutting feature information;

[0055] Cutting the length detection image information according to the stitch cutting feature information to determine the cutting length image information;

[0056] Processing the trimmed length image information according to the noise reduction processing trigger information to determine the processed length image information;

[0057] The processed distribution image information and the processed length image information are associated to determine the processed image information.

[0058] By adopting the above technical scheme, the distribution detection image information is processed according to the noise reduction processing trigger information to determine the processed distribution image information, thereby improving the quality of the processed image information; and for the length detection image information, the length detection image information is trimmed according to the stitch trimming feature information and then the noise reduction processing is performed, thereby improving the efficiency of the image noise reduction processing.

[0059] In a second aspect, the present application provides a sensor pin detection device, which adopts the following technical solution:

[0060] A sensor pin detection device, comprising:

[0061] A control cabinet, wherein a detection cavity for detecting sensor pins is provided on the control cabinet;

[0062] A fixing component, which is arranged in the detection cavity of the control cabinet and is used to fix the sensor pins;

[0063] An image acquisition component, which is arranged in the detection cavity of the control cabinet and is used to acquire images of sensor pins;

[0064] The processing terminal is arranged in the control cabinet, and is used to control the image acquisition component and analyze and process the image of the sensor pins to determine the detection result.

[0065] By adopting the above technical solution, the sensor pins are placed in the detection cavity of the control cabinet, and the fixing component fixes the sensor pins at a set position, so that the processing terminal controls the image acquisition component to acquire the image of the sensor pins, and then the processing terminal analyzes and identifies the image to obtain the quality inspection result of the pins. Through the contactless detection method, the risk of pin detection is reduced and the original characteristics of the pins are maintained.

[0066] In a third aspect, the present application provides a smart terminal, which adopts the following technical solution:

[0067] An intelligent terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes a sensor pin detection method as described in any one of the above items.

[0068] By adopting the above technical solution and operating the intelligent terminal, the processor is made to load and execute a computer program of a sensor pin detection method stored in the memory, so that the image acquisition component acquires the image of the sensor pin, and then the processing terminal analyzes and identifies the image to obtain the quality detection result of the pin. By using the contactless detection method, the risk of pin detection is reduced and the original characteristics of the pin are maintained.

[0069] In a fourth aspect, the present application provides a computer storage medium capable of storing corresponding programs, which is convenient for reducing the risk of pin detection and maintaining the original characteristics of the pin, and adopts the following technical solutions:

[0070] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned sensor pin detection methods.

[0071] By adopting the above technical solution, a computer program of a sensor pin detection method is stored in a computer-readable storage medium, so that the processor loads and executes the computer program stored in the storage medium, so that the image acquisition component acquires the image of the sensor pin, and then the processing terminal analyzes and identifies the image to obtain the quality inspection result of the pin. Through the contactless detection method, the risk of pin detection is reduced and the original characteristics of the pin are maintained.

[0072] In summary, the present application includes at least one of the following beneficial technical effects:

[0073] The pin image information of the sensor pin is collected according to the debugging data information by controlling the detection device, and the pin detection data information is determined according to the pin image information. When it is determined that the pin detection data information meets the requirements of the benchmark detection data information, it indicates that the pin is qualified, so a prompt is given according to the qualified trigger information; if it does not meet the requirements, it indicates that the pin is unqualified, so a prompt is given according to the unqualified trigger information. The pin is detected by a non-contact detection method to avoid the pin being knocked crooked when using a tool to detect the pin, thereby reducing the risk of pin detection and maintaining the original characteristics of the pin;

[0074] After the sensor pins are placed, the pressure distribution information of the sensor pins is detected. When the pressure distribution information does not meet the requirement of uniform distribution trigger information, it indicates that the sensor pins are not placed flat, which may easily cause the pin features in the subsequently acquired pin image to appear skewed in the image due to the placement reason. Therefore, the pressure component is controlled to place the sensor pins evenly before collecting the pin image information, thereby improving the quality of the pin image information.

[0075] By placing the sensor pins into the detection cavity of the control cabinet, the fixing component fixes the sensor pins at a set position, so that the processing terminal controls the image acquisition component to collect images of the sensor pins, and then the processing terminal analyzes and identifies the image to obtain the quality inspection results of the pins. Through the non-contact detection method, the risk of pin detection is reduced and the original characteristics of the pins are maintained. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is a flow chart of a sensor pin detection method in an embodiment of the present application.

[0077] Figure 2 It is a flowchart of the steps of controlling the detection device to obtain the pin image information of the sensor pin according to the debugging data information in the embodiment of the present application.

[0078] Figure 3 The process of controlling the preset image acquisition component to move to the position corresponding to the image acquisition position information to acquire the stitch image information in the embodiment of the present application Figure 1 .

[0079] Figure 4 The process of controlling the preset image acquisition component to move to the position corresponding to the image acquisition position information to acquire the stitch image information in the embodiment of the present application Figure 2 .

[0080] Figure 5 It is a flow chart of the steps of controlling a preset pressure component to evenly place the sensor pins in an embodiment of the present application.

[0081] Figure 6It is a flowchart of the steps of analyzing stitch image information to determine stitch detection data information in an embodiment of the present application.

[0082] Figure 7 It is a flowchart of the steps of performing image processing on stitch image information according to a preset image processing method in an embodiment of the present application to determine the steps of processing image information.

[0083] Figure 8 It is a structural schematic diagram of the sensor pin detection device in the embodiment of the present application.

[0084] Fig. 9 It is a schematic diagram of the structure of the sensor pins in the embodiment of the present application.

[0085] Explanation of the accompanying drawings: 1. Control cabinet; 11. Detection chamber; 2. Fixing component; 3. Image acquisition component; 4. Processing terminal; 5. Debug button; 6. Start button; 7. Screen; 8. Sensor pin. DETAILED DESCRIPTION

[0086] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 9 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0087] The embodiment of the present application discloses a contactless detection method for sensor pins 8, specifically a processing terminal 4 and a detection device. The processing terminal 4 is connected to the detection device through a data wire to realize data interaction and control. After the processing terminal 4 receives the start trigger information of the detection device, the processing terminal 4 obtains the debugging data information in response to the start trigger information, thereby controlling the detection device to collect the pin image information of the sensor pin 8 according to the debugging data. The processing terminal 4 then performs image analysis and recognition based on the pin image information to obtain the pin detection data information. When it is determined that the pin detection data information meets the requirements of the benchmark detection data information, a prompt is given according to the qualified trigger information; when it does not meet the requirements of the benchmark detection data information, a prompt is given according to the unqualified trigger information, thereby detecting the quality of the sensor pin 8 by a contactless method, reducing the risk of pin detection and maintaining the original characteristics of the pin.

[0088] Reference Figure 1 , the embodiment of the present application discloses a sensor pin detection method, comprising the following steps:

[0089] Step S100: obtaining startup trigger information of a preset detection device.

[0090] The detection device refers to a device for collecting images of the sensor pin 8, referring to Figure 8, which is consistent with a sensor pin 8 detection device in the embodiment of the present application, and will not be described in detail here. The start trigger information refers to the trigger data for starting the detection device. When the operator presses the start button 6, the start button 6 sends an electrical signal representing the start trigger information to the processing terminal 4.

[0091] Step S101: Acquire debugging data information of a detection device based on the startup trigger information.

[0092] After receiving the start trigger information, the processing terminal 4 responds to the start trigger information, thereby identifying the debugging data information of the detection device, and providing data support for the subsequent acquisition of the image of the sensor pin 8.

[0093] The debugging data information refers to the specific position of the collected sensor pin 8. Different sensor pins 8 may correspond to different positions. Due to different sizes, the positions of the pins are different when the sensor pins 8 are placed on the fixed component 2. The operator inputs the debugging data information into the processing terminal 4 through the debugging button 5.

[0094] Step S102: controlling the detection device to obtain the pin image information of the sensor pin 8 according to the debugging data information.

[0095] After the processing terminal 4 obtains the debugging data information, the processing terminal 4 controls the detection device to detect the pin image information of the sensor pin 8 according to the position data corresponding to the debugging data information. The specific detection method is referred to Figure 2 steps.

[0096] Sensor pin 8 is the pin for the sensor to be electrically connected to the outside world for data exchange. Fig. 9 In the present embodiment of the present application, the pins of the oil level sensor installed on the oil pot are taken as an example. Fig. 9 The oil pot is placed in Figure 8 The stitch image information refers to the image collected from the stitch, including distribution detection image information and length detection image information. The length detection image information refers to the length image collected from the side for identifying the stitch length, and the distribution detection image information refers to the distribution image collected from the front for identifying whether the stitch is skewed. For specific collection methods, refer to Figure 2 steps.

[0097] Step S103: analyzing the stitch image information to determine stitch detection data information.

[0098] Among them, the stitch detection data information refers to the detection data used to represent the stitch quality, including the number of length pixels representing the stitch length and the number of distribution pixels representing the stitch skewness, the number of length pixels includes the number of pixels of two stitches, the number of distribution pixels includes the number of pixels in the horizontal and vertical directions between a stitch and the inner wall of the shell and the number of pixels between two stitches, and the processing terminal 4 performs image recognition and analysis based on the stitch image information. The specific analysis method is referred to Figure 6 steps.

[0099] Step S104: determining benchmark detection data information according to the debugging data information and preset benchmark parameter relationship information.

[0100] Among them, the benchmark parameter relationship information refers to a database that stores the corresponding relationship between debugging data and benchmark detection data. Different debugging data represent different sensor pins 8, so there are corresponding benchmark detection data. The operator will match the two one by one according to the actual situation and store them in the database.

[0101] The benchmark detection data information refers to the standard length pixel number and distribution pixel number of the sensor pin 8. The processing terminal 4 inputs the debugging data corresponding to the debugging data information into the database corresponding to the benchmark parameter relationship information for matching and output.

[0102] Step S105: determining whether the stitch detection data information meets the requirements of the reference detection data information.

[0103] The requirement of the reference detection data information refers to the consistency of the number of length pixels and the number of distribution pixels corresponding to the reference detection data information. The processing terminal 4 determines whether the number of length pixels and the number of distribution pixels corresponding to the pin detection data information are consistent with the number of length pixels and the number of distribution pixels corresponding to the reference detection data information, thereby determining whether the detected sensor pin 8 is skewed or has different lengths.

[0104] Step S1051: If it meets the requirements, a prompt is given according to the preset qualified trigger information, and the pin image information of the next sensor pin 8 is continuously obtained for cyclic detection.

[0105] Among them, if the processing terminal 4 determines that the number of length pixels and the number of distribution pixels corresponding to the stitch detection data information are consistent with the number of length pixels and the number of distribution pixels corresponding to the benchmark detection data information, it indicates that the sensor stitch 8 is not skewed or has different lengths. Therefore, a prompt is given according to the qualified trigger information, and the stitch image information of the next sensor stitch 8 is continued to be collected for continuous detection.

[0106] The qualified trigger information refers to prompt information indicating that the sensor pin 8 is qualified, which is stored in the processing terminal 4 by the operator. When it is determined that the sensor pin 8 is qualified, the processing terminal 4 outputs the prompt information on the screen 7.

[0107] Step S1052: If not, a prompt is given according to the preset unqualified trigger information, and the pin image information of the next sensor pin 8 is continuously acquired for cyclic detection.

[0108] Among them, if the processing terminal 4 determines that the number of length pixels and the number of distribution pixels corresponding to the stitch detection data information are inconsistent with the number of length pixels and the number of distribution pixels corresponding to the benchmark detection data information, it indicates that the sensor stitch 8 is skewed or has different lengths. Therefore, a prompt is given according to the unqualified trigger information, and the stitch image information of the next sensor stitch 8 is continued to be collected for continuous detection.

[0109] The unqualified trigger information refers to the prompt information indicating that the sensor pin 8 is unqualified, which is stored in the processing terminal 4 by the operator. When it is determined that the sensor pin 8 is unqualified, the processing terminal 4 outputs the prompt information on the screen 7.

[0110] Reference Figure 2 The step of controlling the detection device to obtain the pin image information of the sensor pin 8 according to the debugging data information includes:

[0111] Step S200: Analyze the debugging data information to determine the image acquisition position information.

[0112] Among them, the image acquisition position information refers to the specific position where the stitch image is collected, including the skew acquisition position information and the length acquisition position information. The skew acquisition position information refers to the position where the skew image of the stitch is collected, which is the position for front acquisition; the length acquisition position information refers to the position where the stitch length image is collected, which is the position for side acquisition. Both are determined by the processing terminal 4 after analyzing the debugging data information.

[0113] Step S201: Acquire placement trigger information of sensor pin 8.

[0114] The placement trigger information refers to the trigger data of the sensor pin 8 being placed on the detection device, which is detected by the force-sensitive sensor on the detection device and sent to the processing terminal 4 .

[0115] Step S202: Obtaining pressure distribution information of the sensor pin 8 based on the placement trigger information.

[0116] After the processing terminal 4 obtains the placement trigger information, the processing terminal 4 responds to the placement trigger information to detect the pressure distribution information of the sensor pin 8 to provide data support for subsequent image acquisition.

[0117] Pressure distribution information refers to the pressure distribution of the detection device when the sensor pin 8 is placed on the detection device. It is determined by the detection results of force-sensitive sensors installed at different positions on the detection device. If the output result of the force-sensitive sensor at this position is determined, then this position is determined to be part of the pressure distribution.

[0118] Step S203: determining whether the pressure distribution information meets the requirement of preset uniform distribution trigger information.

[0119] The evenly distributed trigger information refers to trigger data representing all directions, and the requirement of evenly distributed trigger information refers to the consistency of all directions corresponding to the evenly distributed trigger information, which are stored by the operator in the processing terminal 4. The processing terminal 4 determines whether the distribution direction corresponding to the pressure distribution information is consistent with all directions corresponding to the evenly distributed trigger information, thereby determining whether the sensor pin 8 is skewed when placed.

[0120] Step S2031: If not, control the preset pressure component to place the sensor pins 8 evenly, and continue to obtain the pressure distribution information of the sensor pins 8 for cyclic judgment.

[0121] If the processing terminal 4 determines that the distribution direction corresponding to the pressure distribution information is inconsistent with all the directions corresponding to the uniform distribution trigger information, it means that the sensor pin 8 is skewed when placed, which may cause the pin to appear skewed in the image due to the placement during image acquisition. Therefore, the pressure component is controlled to place the sensor pin 8 evenly. For the specific control method, refer to Figure 5 steps to eliminate the influence caused by the placement reason, and continue to detect the pressure distribution information of the sensor pin 8 to determine whether the adjustment is completed.

[0122] The pressure component refers to a device for adjusting the placement of the sensor pin 8, and a robotic arm may be used.

[0123] Step S2032: If it is in compliance, the preset image acquisition component 3 is controlled to move to the position corresponding to the image acquisition position information to acquire stitch image information.

[0124] If the processing terminal 4 determines that the distribution position corresponding to the pressure distribution information is consistent with all the positions corresponding to the uniform distribution trigger information, it indicates that the sensor pin 8 is placed normally, so there is no situation that the pin appears skewed in the image due to placement during image acquisition, so the image acquisition component 3 is controlled to move to the position corresponding to the image acquisition position information to shoot the sensor pin 8 to obtain the pin image information. The specific method is referred to Figure 3 steps.

[0125] The image acquisition component 3 refers to a device for acquiring an image of the sensor pin 8, referring to Figure 8 The image acquisition component 3 includes a camera and a linear module. The camera is installed on a slider of the linear module, so that the position of the camera is adjusted by the linear module.

[0126] Reference Figure 3 The image acquisition position information includes skew acquisition position information and length acquisition position information, and the steps of controlling the preset image acquisition component 3 to move to the position corresponding to the image acquisition position information to acquire the stitch image information include:

[0127] Step S300: Control the image acquisition component 3 to move to a position corresponding to the length acquisition position information to acquire stitch length image information, and obtain acquisition completion trigger information.

[0128] Among them, the stitch length image information refers to an image used to identify the stitch length, which is obtained by controlling the image acquisition component 3 to move to the side position corresponding to the length acquisition position information by the processing terminal 4, and controlling the camera to take pictures of two complete stitches in the side direction. The acquisition completion trigger information refers to the trigger data for the completion of the acquisition of the stitch length image information, which is obtained by activating the acquisition completion trigger information when the processing terminal 4 obtains the stitch length image information.

[0129] Step S301: according to the acquisition completion trigger information, the image acquisition component 3 is controlled to move to the position corresponding to the skew acquisition position information to acquire the stitch distribution image information.

[0130] Among them, the stitch distribution image information refers to an image used to identify the skew of the stitches. After the processing terminal 4 receives the acquisition completion trigger information, the processing terminal 4 continues to control the camera to move forward, so that when the position of the camera is the same as the front position corresponding to the skew acquisition position information, the processing terminal 4 controls the camera to capture all the stitches and the shell contour to obtain the stitch distribution image information.

[0131] Step S302: Correlate the stitch length image information and the stitch distribution image information to determine the stitch image information.

[0132] After obtaining the stitch length image information and the stitch distribution image information, the processing terminal 4 stores the two in a data packet, thereby obtaining stitch image information for identifying the stitch length and the stitch skew state.

[0133] Reference Figure 4 The step of controlling the preset image acquisition component 3 to move to the position corresponding to the image acquisition position information to acquire the stitch image information also includes:

[0134] Step S400: Acquire the moving position information of the image acquisition component 3.

[0135] The mobile position information refers to the real-time position of the camera in the image acquisition component 3 , and the absolute encoder in the image acquisition component 3 directly reads the current position and sends it to the processing terminal 4 .

[0136] Step S401: determining whether the moving position information is a position corresponding to the length acquisition position information or a position corresponding to the skew acquisition position information.

[0137] The processing terminal 4 determines whether the position corresponding to the moving position information is the position corresponding to the length acquisition position information or the position corresponding to the skew acquisition position information, thereby determining whether the camera in the image acquisition component 3 moves to the position for acquiring the image.

[0138] Step S4011: If it is the position corresponding to the length acquisition position information, the preset lighting component is controlled to illuminate the sensor pin 8 according to the preset front and rear lighting trigger information to assist the image acquisition component 3 in acquiring the pin length image information.

[0139] Among them, if the processing terminal 4 determines that the position corresponding to the moving position information is the position corresponding to the length collection position information, it means that the camera in the image acquisition component 3 moves to the position for collecting the stitch length image information, so the camera is at the side position of the stitch, thereby controlling the lighting component to illuminate the sensor stitch 8 according to the front and rear lighting trigger information, thereby improving the brightness while preventing shadows, thereby assisting the image acquisition component 3 to collect high-quality stitch length image information.

[0140] The front and rear lighting trigger information refers to the trigger data for irradiating the sensor pin 8 in both the front and rear directions at the same time, which increases the brightness and reduces the shadow area by irradiating in both the front and rear directions at the same time, and is stored by the operator in the processing terminal 4. The lighting component refers to the device for irradiating the sensor pin 8, and an LED lamp can be used.

[0141] Step S4012: If it is the position corresponding to the skewed acquisition position information, the preset lighting component is controlled to illuminate the sensor pin 8 according to the preset direct lighting trigger information to assist the image acquisition component 3 in acquiring the pin distribution image information.

[0142] Among them, if the processing terminal 4 determines that the position corresponding to the moving position information is the position corresponding to the skewed collection position information, it means that the camera in the image acquisition component 3 moves to the position for collecting the pin distribution image information, so the camera is in the front position of the pin, thereby controlling the lighting component to illuminate the sensor pin 8 according to the direct lighting trigger information, thereby increasing the brightness and assisting the image acquisition component 3 to collect high-quality pin distribution image information.

[0143] Direct lighting trigger information refers to trigger data for frontal illumination of sensor pin 8, which can improve brightness and minimize shadow area through frontal illumination, and is stored by the operator in processing terminal 4. The lighting component in this step is the same as the lighting component in step S4011, and will not be described in detail here.

[0144] Reference Figure 5 The steps of controlling the preset pressure component to evenly place the sensor pins 8 include:

[0145] Step S500: Analyze the pressure distribution information and the uniform distribution trigger information to determine the pressure loss direction information.

[0146] Among them, the pressure missing direction information refers to the direction in which no pressure is caused to the detection device when the sensor pin 8 is placed on the detection device. The processing terminal 4 selects the direction inconsistent with the pressure distribution information in the uniformly distributed trigger information and determines it as the pressure missing direction information. For example, the uniformly distributed trigger information includes the front and the rear, and the pressure distribution information is the front, then the rear is the pressure missing direction information.

[0147] Step S501: determining pressure position information according to pressure missing direction information and preset direction position relationship information.

[0148] The direction position relationship information refers to a database storing the corresponding relationship between direction and position. Different directions correspond to different pressure positions. The operator stores the two in a one-to-one correspondence in the database according to the actual situation. The pressure position information refers to the specific position of the sensor pin 8, which is obtained by inputting the direction corresponding to the pressure missing direction information into the database corresponding to the direction position relationship information by the processing terminal 4 and matching the output.

[0149] Step S502: Obtain sensor height information of sensor pin 8.

[0150] The sensor height information refers to the overall height of the sensor pin 8 , including the height of the oil pot, and is input into the processing terminal 4 by an operator.

[0151] Step S503: Analyze the sensor height information and the preset overall height information to determine the pressing distance information.

[0152] The overall height information refers to the height of the space where the sensor pin 8 is placed on the detection device, and is stored in the processing terminal 4 by the operator according to the actual height. The downward pressing distance information refers to the distance of the sensor pin 8 adjusted by downward pressing from the top of the space, and is obtained by the processing terminal 4 by calculating the difference between the distance corresponding to the overall height information and the distance corresponding to the sensor height information.

[0153] Step S504: Control the pressure component to press down the sensor pins 8 according to the pressure position information and the pressing distance information so that the sensor pins 8 are evenly arranged.

[0154] Among them, after the processing terminal 4 determines the pressure position information and the downward pressure distance information, the processing terminal 4 controls the pressure component to move to the position corresponding to the pressure position information, and then controls the pressure component to move downward at the position corresponding to the pressure position information by a distance corresponding to the downward pressure distance information, so that the pressure component can evenly apply the pressure of the sensor pin 8 to the detection device, so that the sensor pin 8 is placed flat on the detection device to prevent skewed placement from causing errors in the detection results.

[0155] Reference Figure 6 The steps of analyzing the stitch image information to determine the stitch detection data information include:

[0156] Step S600: performing image processing on the stitch image information according to a preset image processing method to determine processed image information.

[0157] The image processing method refers to a method for processing the image corresponding to the stitch image information to make the image more suitable for analysis and recognition. For specific methods, refer to Figure 7 The processed image information refers to an image suitable for analysis and recognition after the image corresponding to the stitch image information is processed, and is determined by the processing terminal 4 after processing the image corresponding to the stitch image information according to the image processing method. The specific method is referred to Figure 7 steps.

[0158] Step S601: determining whether the processed image information is an image corresponding to preset distribution image trigger information or an image corresponding to preset length image trigger information.

[0159] The distribution image trigger information refers to trigger data representing the stitch distribution image, and the length image trigger information refers to trigger data representing the stitch length image, both of which are stored in the processing terminal 4 by the operator.

[0160] The processing terminal 4 determines whether the image corresponding to the processed image information is the image corresponding to the distribution image trigger information or the image corresponding to the length image trigger information, thereby determining how to analyze and identify the image corresponding to the processed image information.

[0161] Step S6011: If it is an image corresponding to the distributed image trigger information, analysis is performed based on the processed image information to determine the stitch feature information and the sensor profile feature information.

[0162] Among them, if the processing terminal 4 determines that the image corresponding to the processed image information is the image corresponding to the distributed image trigger information, it indicates that the image being processed is a distributed image, which is used to determine whether the stitch is crooked. Therefore, the stitch feature information and sensor contour feature information are determined according to the image corresponding to the processed image information, providing data support for the subsequent determination of the stitch detection data information.

[0163] The pin feature information refers to the two pin features in the processed image information, and the sensor contour feature information refers to the inner wall features of the pin shell in the processed image, which are obtained by the processing terminal 4 through analysis and identification based on the image corresponding to the processed image information.

[0164] Step S60111: Analyze the pin feature information and the sensor profile feature information to determine the number of distributed pixels.

[0165] Among them, the distributed pixel quantity information refers to the number of pixels used to determine whether the stitches are skewed, including the number of straight pixel points between two stitches corresponding to the stitch feature information, which is used to determine whether the stitches are skewed; the number of pixels in the horizontal and vertical directions between the stitch feature information corresponding to the stitch and the contour corresponding to the sensor contour feature information, which is used to determine whether the stitches are skewed with the shell, and is obtained by identifying the number of pixels between the stitch feature information and the number of pixels between the stitch feature information and the sensor contour feature information by the processing terminal 4.

[0166] Step S6012: If the image corresponds to the length image trigger information, then analysis is performed based on the processed image information to determine stitch feature information.

[0167] Among them, if the processing terminal 4 determines that the image corresponding to the processed image information is the image corresponding to the length image trigger information, it indicates that the image being processed is a length image, which is used to determine the length of the stitch. Therefore, the stitch feature information is determined based on the processed image information to provide data support for the subsequent determination of the stitch detection data information.

[0168] The stitch feature information in this step is the stitch feature in the length image, which is obtained by the processing terminal 4 based on image recognition corresponding to the processed image information.

[0169] Step S60121: Analyze the stitch feature information to determine the length pixel quantity information.

[0170] The length pixel number information is the number of pixels of the needle foot feature, including the number of pixels of two stitches, and is obtained by the processing terminal 4 identifying the number of pixels of the feature corresponding to the stitch feature information.

[0171] Step S602: Correlate the distribution pixel quantity information and the length pixel quantity information to determine the stitch detection data information.

[0172] After obtaining the distribution pixel quantity information and the length pixel quantity information, the processing terminal 4 stores the two in one data packet, thereby forming stitch detection data information for detecting the stitch skew state and stitch length.

[0173] Reference Figure 7 The stitch image information includes distribution detection image information and length detection image information. The steps of performing image processing on the stitch image information according to a preset image processing method to determine the processed image information include:

[0174] Step S700: directly processing the distribution detection image information according to the preset noise reduction processing trigger information to determine the processed distribution image information.

[0175] The noise reduction processing trigger information refers to the trigger data for starting the image processing software to start graying, binarization and median filtering the image, which is stored by the operator in the processing terminal 4. The processed distribution image information refers to the image after the distribution detection image information is subjected to image noise reduction processing, which is obtained by the processing terminal 4 starting the image processing software according to the noise reduction processing trigger information to perform graying, binarization and median filtering on the distribution detection image information.

[0176] Step S701: analyzing the length detection image information to determine stitch cutting feature information.

[0177] Among them, the stitch trimming feature information refers to the stitch features in the length detection image information. Since the length detection image information is only used to identify the number of pixels of the stitch length, only the stitch features need to be retained. The processing terminal 4 then identifies the stitch features in the image corresponding to the length detection image information as trimming features to provide data support for subsequent image processing.

[0178] Step S702: trimming the length detection image information according to the stitch trimming feature information to determine the trimming length image information.

[0179] The trimmed length image information refers to a length image that retains only the stitch features to the greatest extent, and is obtained by the processing terminal 4 trimming the features corresponding to the stitch trimming feature information in the image corresponding to the length detection image information.

[0180] Step S703: Process the trimmed length image information according to the noise reduction processing trigger information to determine the processed length image information.

[0181] Among them, the processed length image information refers to the image after the cropped length image information has been subjected to noise reduction processing. After the processing terminal 4 obtains the cropped length image information, it starts the image processing software according to the noise reduction processing trigger information to grayscale, binarize and median filter the cropped length image information to obtain the image.

[0182] Step S704: Associating the processed distribution image information and the processed length image information to determine the processed image information.

[0183] After obtaining the processed distribution image information and the processed length image information, the processing terminal 4 stores the two in the same data packet, thereby forming processed image information that has undergone noise reduction processing and image culling, which is convenient for pixel point recognition.

[0184] Reference Figure 8 Based on the same inventive concept, an embodiment of the present invention provides a sensor pin detection device, including: a control cabinet 1, a fixing component 2, an image acquisition component 3 and a processing terminal 4. The control cabinet 1 is used as the frame of the entire detection device, and a detection cavity 11 for the sensor pin 8 to be placed in the control cabinet 1 is provided. The fixing component 2 is installed at the bottom of the detection cavity 11, and the fixing component 2 is used to fix the placed sensor pin 8. The fixing component 2 includes a fixing block and a fixing column, and the fixing block and the fixing column are respectively provided with a fixing groove for the sensor pin 8 to be inserted. The image acquisition component 3 is installed on the side of the control cabinet 1 close to the fixing component 2, and the image acquisition component 3 is located in the detection cavity 11. The image acquisition component 3 is used to capture the image of the sensor pin 8. The image acquisition component 3 includes a linear module and a camera, and the linear module controls the camera to move to shoot the sensor pin 8. The processing terminal 4 is installed inside the control cabinet 1, and a microprocessor can be used. The processing terminal 4 is connected to the image acquisition component 3 with a data wire, and is used to control the image acquisition component 3 to capture images and analyze and identify the images to determine the detection results.

[0185] The control cabinet 1 is provided with a start button 6, which is connected to the data wire of the processing terminal 4. When the start button 6 is pressed, the start button 6 sends an electrical signal indicating start to the processing terminal 4, and the processing terminal 4 controls the entire device to start. The control cabinet 1 is provided with a debug button 5, which is connected to the data wire of the processing terminal 4, so that personnel can input the detected position light data into the processing terminal 4 through the debug button 5. The control cabinet 1 is provided with a screen 7, which is connected to the data wire of the processing terminal 4, so that the processing terminal 4 can output the detection results on the screen 7, so that personnel can view the detection results.

[0186] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0187] An embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute a sensor pin detection method.

[0188] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0189] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute a sensor pin detection method.

[0190] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0191] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A sensor pin detection method, characterized in that: include: Obtaining the startup trigger information of the preset detection device; Acquire debugging data information of the detection device based on the startup trigger information; Control the detection device to obtain the pin image information of the sensor pin according to the debugging data information; Analyze the stitch image information to determine stitch detection data information; Determine the benchmark test data information according to the debugging data information and the preset benchmark parameter relationship information; Determine whether the pin detection data information meets the requirements of the benchmark detection data information; If it meets the requirements, a prompt will be given according to the preset qualified trigger information, and the pin image information of the next sensor pin will be acquired to perform cyclic detection; If it does not meet the requirements, a prompt will be given according to the preset unqualified trigger information, and the pin image information of the next sensor pin will be obtained to perform cyclic detection; The steps of controlling the detection device to obtain the pin image information of the sensor pin according to the debugging data information include: Analyze the debugging data information to determine the image acquisition position information; Get the placement trigger information of the sensor pin; Obtaining pressure distribution information of sensor pins based on placement trigger information; Determine whether the pressure distribution information meets the requirements of the preset uniform distribution trigger information; If it does not meet the requirements, the preset pressure component is controlled to place the sensor pins evenly, and the pressure distribution information of the sensor pins is continuously obtained for cyclic judgment; If it is in compliance, the preset image acquisition component is controlled to move to the position corresponding to the image acquisition position information to acquire the stitch image information; The image acquisition position information includes skew acquisition position information and length acquisition position information, and the steps of controlling the preset image acquisition component to move to the position corresponding to the image acquisition position information to acquire stitch image information include: Control the image acquisition component to move to a position corresponding to the length acquisition position information to acquire stitch length image information, and obtain acquisition completion trigger information; According to the acquisition completion trigger information, the image acquisition component is controlled to move to the position corresponding to the skew acquisition position information to acquire the stitch distribution image information; associating the stitch length image information with the stitch distribution image information to determine the stitch image information; The step of controlling the preset image acquisition component to move to a position corresponding to the image acquisition position information to acquire stitch image information also includes: Obtaining mobile position information of the image acquisition component; Determine whether the moving position information is a position corresponding to the length collection position information or a position corresponding to the skew collection position information; If it is the position corresponding to the length acquisition position information, the preset lighting component is controlled to illuminate the sensor pin according to the preset front and rear lighting trigger information to assist the image acquisition component in acquiring the pin length image information; If it is a position corresponding to the skewed acquisition position information, the preset lighting component is controlled to illuminate the sensor pin according to the preset direct lighting trigger information to assist the image acquisition component in acquiring the pin distribution image information.

2. A sensor pin detection method according to claim 1, characterized in that: The steps to control the preset pressure assembly to evenly place the sensor pins include: Analyze the pressure distribution information and the uniform distribution trigger information to determine the pressure loss direction information; Determine pressure position information according to pressure missing direction information and preset direction position relationship information; Get the sensor height information of the sensor pin; Analyze the sensor height information and the preset overall height information to determine the downward pressure distance information; The pressure component is controlled to press down the sensor pins according to the pressure position information and the pressing distance information so that the sensor pins are evenly arranged.

3. A sensor pin detection method according to claim 1, characterized in that: The steps of analyzing the stitch image information to determine the stitch detection data information include: Performing image processing on the stitch image information according to a preset image processing method to determine processed image information; Determine whether the processed image information is an image corresponding to preset distribution image trigger information or an image corresponding to preset length image trigger information; If it is an image corresponding to the distributed image trigger information, analyzing the processed image information to determine the pin feature information and the sensor profile feature information; Analyze the pin feature information and the sensor profile feature information to determine the number of distributed pixels; If it is an image corresponding to the length image trigger information, then the stitch feature information is determined by analyzing the processed image information; Analyze the stitch feature information to determine the length pixel quantity information; The distribution pixel number information and the length pixel number information are associated to determine the stitch detection data information.

4. A sensor pin detection method according to claim 3, characterized in that: The stitch image information includes distribution detection image information and length detection image information. The steps of performing image processing on the stitch image information according to a preset image processing method to determine the processed image information include: Directly processing the distribution detection image information according to the preset noise reduction processing trigger information to determine the processing distribution image information; Analyze the length detection image information to determine stitch cutting feature information; Cutting the length detection image information according to the stitch cutting feature information to determine the cutting length image information; Processing the trimmed length image information according to the noise reduction processing trigger information to determine the processed length image information; The processed distribution image information and the processed length image information are associated to determine the processed image information.

5. A sensor pin detection device, which performs a sensor pin detection method according to any one of claims 1 to 4, characterized in that: include: A control cabinet, wherein a detection cavity for detecting sensor pins is provided on the control cabinet; A fixing component, which is arranged in the detection cavity of the control cabinet and is used to fix the sensor pins; An image acquisition component, which is arranged in the detection cavity of the control cabinet and is used to acquire images of sensor pins; The processing terminal is arranged in the control cabinet, and is used to control the image acquisition component and analyze and process the image of the sensor pins to determine the detection result.

6. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes a sensor pin detection method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and executes a sensor pin detection method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Integrated intelligent sound-light alarm system of breeding chicken incubator

    CN116311849A

  • Radian detection method and system, intelligent terminal and storage medium

    CN117781930A