Image processing-based contact point parameter detection device and method for close contact inspection device
Through the image processing-based contact point parameter detection device of the sealing checker, the motion status of the moving contacts of the sealing checker is monitored and analyzed in real time, which solves the problem of low manual inspection efficiency in the existing technology and realizes the real-time monitoring of the sealing checker. Monitoring and early warning ensure safe railway operations.
Patent Information
- Application Number
- CN202210342480.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-02
AI Technical Summary
The existing tightness checker requires manual inspection, has low monitoring efficiency and slow speed, and cannot provide early warning and real-time monitoring of the switch tightness status, which affects the safe operation of the railway.
Adopt a contact point parameter detection device based on image processing to capture and analyze the motion status of the moving contacts of the sealing checker in real time through the camera and processor, and detect the contact point parameters, including contact group pressure and moving ring depth, to achieve real-time monitoring and alarm function.
It improves the monitoring efficiency of the sealing checker, realizes real-time monitoring and early warning functions, reduces maintenance costs, ensures safe railway operation, detects potential problems in a timely manner, and reduces equipment failures.
Smart Images

Figure CN114666550B
Abstract
Description
Technical Field
[0001] The invention relates to the field of parameter detection of a turnout close contact checker, and in particular to a device and method for detecting contact point parameters of a close contact checker based on image processing. Background Art
[0002] The close fit checker is used to check the close fit of the point rail and the heart rail, and can also be used to indicate the cut-off when the switch is squeezed. The most popular close fit checker on the market is the JM-A type close fit checker, which is suitable for turnouts with a straight-through train speed of more than 120km / h. It is used to detect whether the gap between two traction points is greater than 5mm. However, it can only check the close fit of one point rail, so two close fit checkers are required for each set of two point rails of the turnout, installed on both sides of the line.
[0003] As the close-fitting checker is widely used across the country, some problems have been exposed with the product itself. For example, the close-fitting checker can only check the close-fitting and repulsion status through manual on-site inspections. The monitoring efficiency is low, the speed is slow, the monitoring process is cumbersome, and it is impossible to provide early warning. Summary of the invention
[0004] The purpose of the present invention is to provide a contact point parameter detection device and method for a close fit inspector based on image processing, which has a simple structure, is easy to install and has high protection performance. Machine vision is used instead of manual inspection to realize real-time monitoring and alarm functions of the close fit inspector, and the working status of the close fit inspector can be intuitively seen.
[0005] The technical solution to achieve the purpose of the present invention is: a contact point parameter detection device for a close contact checker based on image processing, comprising a first camera, a second camera, a first fill light, a second fill light, a communication line, a power supply, a processor, and a display, wherein:
[0006] The first camera and the second camera are fixed above the moving contact and moving ring of the close contact inspector, and are used to capture the moving process images of the moving contact and moving ring of the close contact inspector;
[0007] The first fill light and the second fill light are arranged between the first camera and the second camera, and are used to fill light for the moving contact and moving ring of the close-fitting inspector during shooting;
[0008] The communication line and the power supply are arranged on the side of the close contact inspector, the power supply is used to supply power to the first camera, the second camera, the first fill light, and the second fill light, and the communication line is used to transmit the image information captured by the first camera and the second camera;
[0009] The processor receives the image information captured by the first camera and the second camera, selects a processing area on the image, filters the interfering pixel points in the detection area, and obtains an edge image containing the contour of the moving contact point of the close-fitting inspector; fits and locates the pixel points on the edge image to obtain a moving contact point position image; and detects the contact point parameters by feature comparison;
[0010] The display is used to display the detection results of the contact point parameters.
[0011] A method for detecting contact point parameters of a close contact inspection device based on image processing, characterized in that the steps are as follows:
[0012] Step 1: The first camera and the second camera are arranged inside the close contact inspection box, and the contact points of the close contact inspection box are detected by a non-contact method;
[0013] Step 2: observe the internal situation of the close contact inspection box through the first camera and the second camera, shoot the motion state of the moving contact of the close contact inspection device, and store the initial and final state images;
[0014] Step 3, the processor collects the initial and final state images of the close contact inspector to be processed, splices the images and selects the area to be processed on the close contact inspector image;
[0015] Step 4, filtering the interfering pixels in the area to be processed to obtain an edge image containing the contour of the moving contact of the close-fitting inspector;
[0016] Step 5: Fit, locate and correct the distortion of the pixel points on the edge image to obtain a moving joint position image;
[0017] Step 6. Process the acquired moving contact position image of the close fit inspector, extract the features of the moving contact, locate the center coordinates and diameter of the moving contact ring, and obtain the contact point parameters of the close fit inspector, including the contact group pressure of the close fit inspector, the depth of the moving ring of the close fit inspector connected to the static contact piece, and the displacement distance of the moving ring of the close fit inspector at the beginning and end of operation.
[0018] Compared with the prior art, the present invention has the following significant advantages: (1) The structure of the whole machine is simple and clear: the hardware part only includes power supply, communication line, camera and fill light; (2) By detecting the contact point of the close contact checker, pictures of the initial and final states of the moving contact of the close contact checker, the penetration depth of the moving contact ring and the pressure of the static contact piece at the moving contact are obtained, and the detection accuracy is high, which can realize the real-time monitoring, pre-alarm and alarm functions of the close contact checker; (3) Machine vision is used instead of manual labor. This contactless detection method has high detection efficiency, low maintenance cost after one-time investment cost, and is not affected by environmental and time factors. The working status of the close contact checker can be intuitively seen, and timely detection is convenient for predicting risks to ensure safe operation of the railway; (4) The close contact checker can be monitored in real time, which improves the monitoring efficiency and visualizes the processing results. At the same time, the monitoring data can be recorded to timely discover possible problems of the close contact checker, and early detection and maintenance can be carried out to ensure that high-speed EMUs can pass through the switch safely and smoothly. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 Flowchart of a method for detecting contact point parameters of a close contact checker based on image processing provided by an embodiment of the present invention
[0020] Figure 2 A schematic structural diagram of a contact point detection device for a close contact checker based on image processing provided in an embodiment of the present invention.
[0021] Figure 3 This is a software interface diagram of the contact point parameter detection device of the close contact checker of the present invention.
[0022] Figure 4 It is a working flow chart of the contact point parameter detection device of the close contact checker in the present invention. DETAILED DESCRIPTION
[0023] The present invention discloses a contact point parameter detection device for a close contact inspection device based on image processing, characterized in that it comprises a first camera 1, a second camera 2, a first fill light 3, a second fill light 4, a communication line 5, a power supply 6, a processor 7, and a display 8, wherein:
[0024] The first camera 1 and the second camera 2 are fixed above the moving contact and moving ring of the close contact inspector, and are used to capture the moving process images of the moving contact and moving ring of the close contact inspector;
[0025] The first fill light 3 and the second fill light 4 are arranged between the first camera 1 and the second camera 2, and are used to fill light for the moving contact and moving ring of the close-fitting inspector during the shooting process;
[0026] The communication line 5 and the power supply 6 are arranged on the side of the close contact inspector, the power supply 6 is used to supply power to the first camera 1, the second camera 2, the first fill light 3, and the second fill light 4, and the communication line 5 is used to transmit the image information captured by the first camera 1 and the second camera 2;
[0027] The processor 7 receives the image information captured by the first camera 1 and the second camera 2, selects a processing area on the image, filters the interfering pixels in the detection area, and obtains an edge image containing the contour of the moving contact of the close-fitting inspector; fits and locates the pixels on the edge image to obtain a moving contact position image; and detects the contact point parameters by feature comparison;
[0028] The display 8 is used to display the detection results of the contact point parameters.
[0029] Furthermore, the processor 7 selects a processing area on the image, filters the interfering pixels in the detection area, and obtains an edge image containing the contour of the moving contact of the close-fitting inspector, as follows:
[0030] Convert the area to be processed on the close contact checker image into a grayscale image in RGB format, and use the Canny operator to perform edge detection on the grayscale image to obtain a first edge image containing the contact points of the close contact checker; the area to be processed is the area where the contact point group ring exists;
[0031] A connected domain search is performed on the edges of the first edge image, and a connected domain with a number of pixels less than a set value is deleted to obtain a second edge image.
[0032] Furthermore, the processor 7 fits and locates the pixel points on the edge image to obtain the moving joint position image, including using Zhang Zhengyou's plane calibration method to calibrate the camera. During the camera calibration stage, a printed template is attached to a plane, and then multiple template images are taken from different angles. The feature points in the template image are detected and the distortion of the camera model is considered. The optimization algorithm is used to solve and obtain accurate internal and external parameters and distortion coefficients of the camera.
[0033] Furthermore, the processor 7 detects the contact point parameters by feature comparison, as follows:
[0034] First, calculate the gradient of each pixel in the image, then traverse the non-zero pixels in the image after edge detection, draw a straight line along the gradient of the non-zero pixels, and accumulate the points passed by the straight line. The larger the point in the accumulator, the more likely it is to be the center of the circle. The points in the accumulator that are greater than the given threshold and greater than all of their neighbors are retained as candidate points, and then these candidate points are sorted in descending order according to the accumulated value to ensure that the point most likely to be the center of the circle appears first; after selecting the candidate point of the center of the circle, consider all non-zero pixels for each center and make a radius for the possible center of the circle;
[0035] By setting relevant parameters of Hough circle detection, the edge of the circular ring of the moving contact of the close fitting inspector is located in the image; by extracting the center radius of the circle, the center position of the moving contact and the diameter of the moving ring are located; by detecting the diameter of the moving ring, the opening distance of the static joint is obtained, and the functional relationship between the opening distance and the force is brought into play to obtain the pressure of the contact group of the close fitting inspector; by comparing the position of the center of the moving ring of the close fitting inspector in the initial and final states, the pixel distance of the moving ring movement is obtained, and by camera calibration, the actual distance of the moving ring movement and the penetration depth of the moving ring are obtained; the detection of the close fitting inspector is transformed from artificial abstract observation to digital calibration.
[0036] Furthermore, the display 8 is used to display the detection results output by the processor 7, including images of the initial and final states of the moving contact movement, the driving depth of the moving contact ring, and the pressure of the static contact piece driven into the moving contact.
[0037] The present invention provides a method for detecting contact point parameters of a close contact inspection device based on image processing, and the steps are as follows:
[0038] Step 1, setting the first camera 1 and the second camera 2 inside the close contact inspection box, and adopting a non-contact method to detect the contact points of the close contact inspection;
[0039] Step 2, observe the internal situation of the close contact inspection box through the first camera 1 and the second camera 2, shoot the motion state of the moving contact of the close contact inspection, and store the initial and final state images;
[0040] Step 3, the processor 7 collects the initial and final state images of the close contact inspection device to be processed, splices the images and selects the area to be processed on the close contact inspection device image;
[0041] Step 4, filtering the interfering pixels in the area to be processed to obtain an edge image containing the contour of the moving contact of the close-fitting inspector;
[0042] Step 5: Fit, locate and correct the distortion of the pixel points on the edge image to obtain a moving joint position image;
[0043] Step 6. Process the acquired moving contact position image of the close fit inspector, extract the features of the moving contact, locate the center coordinates and diameter of the moving contact ring, and obtain the contact point parameters of the close fit inspector, including the contact group pressure of the close fit inspector, the depth of the moving ring of the close fit inspector connected to the static contact piece, and the displacement distance of the moving ring of the close fit inspector at the beginning and end of operation.
[0044] Furthermore, in step 4, the interfering pixels of the area to be processed are filtered to obtain an edge image containing the contour of the moving contact of the close-fitting inspector, as follows:
[0045] Convert the area to be processed on the close contact checker image into a grayscale image in RGB format, and use the Canny operator to perform edge detection on the grayscale image to obtain a first edge image containing the contact points of the close contact checker; the area to be processed is the area where the contact point group ring exists;
[0046] A connected domain search is performed on the edges of the first edge image, and a connected domain with a number of pixels less than a set value is deleted to obtain a second edge image.
[0047] Furthermore, step 5 describes fitting, positioning and distortion correction of pixel points on the edge image to obtain a moving joint position image, including calibrating the camera using Zhang Zhengyou's plane calibration method. During the camera calibration stage, a printed template is attached to a plane, and then multiple template images are taken from different angles. Feature points in the template image are detected and the distortion of the camera model is considered. The optimization algorithm is used to solve and obtain accurate internal and external parameters and distortion coefficients of the camera.
[0048] Furthermore, the moving contact position image of the close contact checker obtained by the processing in step 6 is extracted by extracting the features of the moving contact, locating the center coordinates and diameter of the moving ring of the moving contact, and obtaining the contact point parameters of the close contact checker, which are as follows:
[0049] First, calculate the gradient of each pixel in the image, then traverse the non-zero pixels in the image after edge detection, draw a straight line along the gradient of the non-zero pixels, and accumulate the points passed by the straight line. The larger the point in the accumulator, the more likely it is to be the center of the circle. The points in the accumulator that are greater than the given threshold and greater than all of their neighbors are retained as candidate points, and then these candidate points are sorted in descending order according to the accumulated value to ensure that the point most likely to be the center of the circle appears first; after selecting the candidate point of the center of the circle, consider all non-zero pixels for each center and make a radius for the possible center of the circle;
[0050] By setting relevant parameters of Hough circle detection, the edge of the circular ring of the moving contact of the close fitting inspector is located in the image; by extracting the center radius of the circle, the center position of the moving contact and the diameter of the moving ring are located; by detecting the diameter of the moving ring, the opening distance of the static joint is obtained, and the functional relationship between the opening distance and the force is brought into play to obtain the pressure of the contact group of the close fitting inspector; by comparing the position of the center of the moving ring of the close fitting inspector in the initial and final states, the pixel distance of the moving ring movement is obtained, and by camera calibration, the actual distance of the moving ring movement and the penetration depth of the moving ring are obtained; the detection of the close fitting inspector is transformed from artificial abstract observation to digital calibration.
[0051] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0052] Example
[0053] Combination Figure 1 This embodiment provides a method for detecting contact point parameters of a close contact checker based on image processing, comprising the following steps:
[0054] Step 1: collect the image of the close fitting detector to be processed, and select the area to be processed on the close fitting detector image;
[0055] There are many ways to collect images, such as conventional collection devices such as video cameras and cameras. After taking the bottle cap image through the collection device, it is uploaded to the processor for further processing.
[0056] Step 2: Filter the interfering pixels in the area to be processed to obtain an edge image containing the contour of the moving contact of the close-fitting inspector, specifically including:
[0057] The area to be processed on the close contact checker image is converted into a grayscale image in RGB format, and the Canny operator is used to perform edge detection on the grayscale image to obtain a first edge image containing the close contact checker contact points.
[0058] The area that needs to be processed is the area with dense pixels and the area where the contact group ring exists. The Canny operator is a method widely used in edge detection. Using the Canny operator to perform edge detection on the grayscale image can obtain a more accurate bottle cap edge image.
[0059] A connected domain search is performed on the edges of the first edge image, and a connected domain with a number of pixels less than a set value is deleted to obtain a second edge image.
[0060] Step 3: Fitting, locating and correcting the pixel points on the edge image to obtain a close contact point image of the inspector, including calibrating the camera using Zhang Zhengyou's plane calibration method, and the specific steps include:
[0061] During the camera calibration stage of the system, a template with high printing accuracy is attached to a plane, and then several template images are taken from different angles. The feature points in the image are detected and the distortion of the camera model is taken into account. The optimization algorithm is used to refine the accurate internal and external parameters and distortion coefficients of the camera.
[0062] The camera is calibrated using Zhang Zhengyou's plane calibration method. The basic principle is as follows:
[0063]
[0064] Assume that the template plane is on the plane of the world coordinate system Z = 0, where K is the intrinsic parameter matrix of the camera and M = [X, Y, 1] T is the homogeneous coordinates of the point on the template plane, m = [u, v, 1] Tis the homogeneous coordinates of the corresponding point projected from the template plane to the image plane, [r1, r2, r3] and t are the rotation matrix and translation vector of the camera coordinate system relative to the world coordinate system;
[0065]
[0066] According to the properties of the rotation matrix, With ||r1||=||r2||=1, each image can obtain the following two basic constraints on the internal parameter matrix:
[0067]
[0068] Since the camera has 5 unknown intrinsic parameters, when the number of images captured is greater than or equal to 3, K can be solved linearly and uniquely;
[0069] During the camera calibration stage of the system, a template with high printing accuracy is attached to a plane, and then several template images are taken from different angles. The feature points in the image are detected and the distortion of the camera model is taken into account. The optimization algorithm is used to refine the accurate internal and external parameters and distortion coefficients of the camera.
[0070] Step 4: Detect the contact point parameters of the close contact detector by feature extraction, including:
[0071] Convert the image into Hough transform space, convert the points in the rectangular coordinate system into the polar coordinate system. By deriving mathematical relationships, converting the straight line detection problem in the image space into the Hough space becomes a problem of detecting the convergence points of the curve. The Hough gradient method is selected to solve the detection of the contact circle.
[0072] First, calculate the gradient of each pixel in the image, then traverse the non-zero pixels in the image after edge detection, draw a straight line along the gradient of the point, and accumulate the points passed by the straight line. The larger the point in the accumulator, the more likely it is the center of the circle. Keep the points in the accumulator that are greater than the given threshold and greater than all its neighbors, and then sort these points in descending order according to the accumulated value to ensure that the point most likely to be the center of the circle appears first. After selecting the candidate center point, consider all non-zero pixels for each center and make a radius for a possible center of the circle.
[0073] By setting the relevant parameters of the Hough circle detection, the edge of the ring of the dynamic ring of the close contact checker is located in the picture. By extracting the center radius of the circle, the center position of the dynamic contact ring and the diameter of the dynamic ring are located. By detecting the diameter of the dynamic ring, the opening distance of the static joint is obtained, and the functional relationship between the opening distance and the force is brought into the close contact checker contact group pressure; the pixel distance of the dynamic ring movement is obtained by the position of the center of the dynamic ring of the close contact checker at the initial and final states, and the actual distance of the dynamic ring movement and the dynamic ring penetration depth are obtained through camera calibration.
[0074] It should be noted that the thresholds and other related parameters set in the present invention vary in size according to different accuracy requirements and can be flexibly set according to actual needs.
[0075] This embodiment also provides a contact point parameter detection device for a close contact checker based on image processing, such as Figure 2 As shown, it includes a first camera 1, a second camera 2, a first fill light 3, a second fill light 4, a communication line 5, a power supply 6, a processor 7, and a display 8, wherein:
[0076] The first camera 1 and the second camera 2 are fixed above the moving contact and moving ring of the close contact inspector, and are used to capture the moving process images of the moving contact and moving ring of the close contact inspector;
[0077] The first fill light 3 and the second fill light 4 are arranged between the first camera 1 and the second camera 2, and are used to fill light for the moving contact and moving ring of the close-fitting inspector during the shooting process;
[0078] The communication line 5 and the power supply 6 are arranged on the side of the close contact inspector, the power supply 6 is used to supply power to the first camera 1, the second camera 2, the first fill light 3, and the second fill light 4, and the communication line 5 is used to transmit the image information captured by the first camera 1 and the second camera 2;
[0079] The processor 7 receives the image information captured by the first camera 1 and the second camera 2, selects a processing area on the image, filters the interfering pixels in the detection area, and obtains an edge image containing the contour of the moving contact of the close-fitting inspector; fits and locates the pixels on the edge image to obtain a moving contact position image; and detects the contact point parameters by feature comparison;
[0080] The display 8 is used to display the detection results of the contact point parameters.
[0081] As a specific example, the camera and fill light are fixed above the contact point of the close-fitting inspector, and the side of the close-fitting inspector box completes the packaging circuit part and the collection and transmission unit.
[0082] As a specific example, the camera is fixedly connected to the fixture, the strip fill light is fixed between the cameras, and the power supply is provided by a mobile power supply on the side.
[0083] As a specific example, the internal circuit elements are connected by connecting pieces and welding.
[0084] As a specific example, the opening distance of the static joint is obtained by detecting the diameter of the moving ring, and the functional relationship between the opening distance and the force is brought into play to obtain the pressure of the contact group of the close fitting inspector; the pixel distance of the moving ring movement is obtained by comparing the position of the center of the moving ring of the close fitting inspector in the initial and final states, and the actual distance of the moving ring movement and the penetration depth of the moving ring are obtained through conversion between the world coordinate system, the camera coordinate system, the image coordinate system and the pixel coordinate system.
[0085] As a specific example, it also includes PLC, acquisition card, and power supply, wherein: the PLC control system unit runs in coordination with the equipment; the acquisition card transmits the collected data to the host computer for real-time viewing of the detection results; and the mobile power supply supplies power to the entire device.
[0086] Combination Figure 3-4 The working process of the contact point parameter detection device of the close contact checker based on image processing in this embodiment is as follows:
[0087] S1. Insert the USB interface of the communication cable into the host computer and turn on the power switch;
[0088] S2. Acquire images through software control. Two industrial cameras are set on the upper part of the dynamic ring of the close fit inspector to be inspected. The effective focal length of the camera is 2.96±0.03mm. When the photo button is clicked on the software interface, the camera is triggered to collect the image of the close fit inspector. Each camera takes half of the image of the close fit inspector.
[0089] S3. After the forward and reverse direction shooting is completed, click to end the shooting, perform image transmission processing, analyze the close contact inspection device through the functional algorithm, and analyze the coordinates and diameter parameters of the moving contact ring;
[0090] S4. Click Display Results to display pictures of the initial and final states of the moving contact movement after processing, the penetration depth of the moving contact ring, and the pressure of the static contact piece at the moving contact on the interface. The test results can be observed in real time, and an alert will be issued if any abnormal situation occurs.
[0091] S5. Click Save Record to record the test result.
[0092] In summary, the overall structure of the present invention is simple and clear: the hardware part only has power supply, communication line, camera, and fill light; by detecting the contact point of the close fit checker, pictures of the initial and final states of the moving contact of the close fit checker, the penetration depth of the moving contact ring, and the pressure of the static contact piece at the moving contact are obtained, and the detection accuracy is high, which can realize the real-time monitoring, pre-alarm, alarm and other functions of the close fit checker. In addition, the present invention also uses machine vision to replace manual labor. This contactless detection method has fast detection efficiency, low maintenance cost after a one-time investment cost, and the detection is not affected by environmental and time factors. The working status of the close fit checker can be intuitively seen, and timely detection is convenient for predicting risks to ensure the safe operation of the railway. In short, the present invention can monitor the close fit checker in real time, improve the monitoring efficiency, and visualize the processing results. At the same time, it can record the monitoring data, timely discover possible problems with the close fit checker, and repair them early to ensure that the high-speed EMU can pass the switch safely and smoothly.
Claims
1. A contact point parameter detection device for a close contact inspection device based on image processing, characterized in that: The device comprises a first camera (1), a second camera (2), a first fill light (3), a second fill light (4), a communication line (5), a power supply (6), a processor (7), and a display (8), wherein: The first camera (1) and the second camera (2) are fixed above the moving contact and moving ring of the close contact inspection device, and are used to capture images of the movement process of the moving contact and moving ring of the close contact inspection device; The first fill light (3) and the second fill light (4) are arranged between the first camera (1) and the second camera (2) and are used to fill light for the moving contact and moving ring of the close-fitting inspection device during the shooting process; The communication line (5) and the power supply (6) are arranged on the side of the close contact inspector, the power supply (6) is used to supply power to the first camera (1), the second camera (2), the first fill light (3), and the second fill light (4), and the communication line (5) is used to transmit image information captured by the first camera (1) and the second camera (2); The processor (7) receives image information captured by the first camera (1) and the second camera (2), selects a processing area on the image, filters interfering pixel points in the detection area, and obtains an edge image containing the contour of the moving contact point of the close-fitting inspector; fits and locates the pixel points on the edge image to obtain a moving contact point position image; and detects the contact point parameters by feature comparison, as follows: First, calculate the gradient of each pixel in the image, then traverse the non-zero pixels in the image after edge detection, draw a straight line along the gradient of the non-zero pixels, and accumulate the points passed by the straight line. The larger the point in the accumulator, the more likely it is to be the center of the circle. The points in the accumulator that are greater than the given threshold and greater than all of their neighbors are retained as candidate points, and then these candidate points are sorted in descending order according to the accumulated value to ensure that the point most likely to be the center of the circle appears first; after selecting the candidate point of the center of the circle, consider all non-zero pixels for each center and make a radius for the possible center of the circle; By setting the relevant parameters of Hough circle detection, the circular edge of the moving contact and moving ring of the close contact inspector is located in the image; by extracting the center radius of the circle, the center position and the diameter of the moving contact and moving ring are located; by detecting the moving ring diameter, the opening distance of the static joint is obtained, and the functional relationship between the opening distance and the force magnitude is introduced to obtain the pressure of the close contact inspector contact group; by the position of the center of the moving ring of the close contact inspector at the initial and final states, the pixel distance of the moving ring movement is obtained, and by camera calibration, the actual distance of the moving ring movement and the driving depth of the moving ring are obtained; the detection of the close contact inspector is converted from artificial abstract observation to digital calibration; The display (8) is used to display the detection results of the contact point parameters.
2. The contact point parameter detection device of the close contact inspection device based on image processing according to claim 1, characterized in that: The processor (7) selects a processing area on the image, filters the interfering pixels in the detection area, and obtains an edge image containing the contour of the moving contact of the close-fitting inspector, as follows: Convert the area to be processed on the close contact checker image into a grayscale image in RGB format, and use the Canny operator to perform edge detection on the grayscale image to obtain a first edge image containing the contact points of the close contact checker; the area to be processed is the area where the contact point group ring exists; A connected domain search is performed on the edges of the first edge image, and a connected domain with a number of pixels less than a set value is deleted to obtain a second edge image.
3. The contact point parameter detection device of the close contact inspection device based on image processing according to claim 1, characterized in that: The processor (7) fits and locates the pixel points on the edge image to obtain a moving joint position image, including using Zhang Zhengyou's plane calibration method to calibrate the camera. During the camera calibration stage, a printed template is attached to a plane, and then multiple template images are taken from different angles. Feature points in the template image are detected and the distortion of the camera model is considered. The optimization algorithm is used to solve and obtain accurate camera internal and external parameters and distortion coefficients.
4. The contact point parameter detection device for a close contact checker based on image processing according to claim 1, characterized in that: The display (8) is used to display the detection results output by the processor (7), including images of the initial and final states of the moving contact movement, the driving depth of the moving contact ring, and the pressure of the static contact piece driven into the moving contact.
5. A method for detecting contact point parameters of a close contact inspection device based on image processing, characterized in that: Here are the steps: Step 1: placing a first camera (1) and a second camera (2) inside a close contact inspection box, and using a non-contact method to detect contact points of the close contact inspection box; Step 2: Observe the internal situation of the close contact inspection device through the first camera (1) and the second camera (2), photograph the motion state of the moving contact of the close contact inspection device, and store the initial and final state images; Step 3, the processor (7) collects the initial and final state images of the close contact inspection device to be processed, stitches the images and selects the area to be processed on the close contact inspection device image; Step 4, filtering the interfering pixels in the area to be processed to obtain an edge image containing the contour of the moving contact of the close-fitting inspector; Step 5: Fit, locate and correct the distortion of the pixel points on the edge image to obtain a moving joint position image; Step 6: Process the acquired moving contact position image of the close contact inspector, extract the features of the moving contact, locate the center coordinates and diameter of the moving contact ring, and obtain the contact point parameters of the close contact inspector, including the contact group pressure of the close contact inspector, the depth of the moving ring of the close contact inspector connected to the static contact piece, and the displacement distance of the moving ring of the close contact inspector at the beginning and end of operation, as follows: First, calculate the gradient of each pixel in the image, then traverse the non-zero pixels in the image after edge detection, draw a straight line along the gradient of the non-zero pixels, and accumulate the points passed by the straight line. The larger the point in the accumulator, the more likely it is to be the center of the circle. The points in the accumulator that are greater than the given threshold and greater than all of their neighbors are retained as candidate points, and then these candidate points are sorted in descending order according to the accumulated value to ensure that the point most likely to be the center of the circle appears first; after selecting the candidate point of the center of the circle, consider all non-zero pixels for each center and make a radius for the possible center of the circle; By setting relevant parameters of Hough circle detection, the edge of the circular ring of the moving contact of the close fitting inspector is located in the image; by extracting the center radius of the circle, the center position of the moving contact and the diameter of the moving ring are located; by detecting the diameter of the moving ring, the opening distance of the static joint is obtained, and the functional relationship between the opening distance and the force is brought into play to obtain the pressure of the contact group of the close fitting inspector; by comparing the position of the center of the moving ring of the close fitting inspector in the initial and final states, the pixel distance of the moving ring movement is obtained, and by camera calibration, the actual distance of the moving ring movement and the penetration depth of the moving ring are obtained; the detection of the close fitting inspector is transformed from artificial abstract observation to digital calibration.
6. The method for detecting contact point parameters of a close contact inspection device based on image processing according to claim 5, characterized in that: Step 4 filters the interfering pixels in the area to be processed to obtain an edge image containing the contour of the moving contact of the close-fitting inspector, as follows: Convert the area to be processed on the close contact checker image into a grayscale image in RGB format, and use the Canny operator to perform edge detection on the grayscale image to obtain a first edge image containing the contact points of the close contact checker; the area to be processed is the area where the contact point group ring exists; A connected domain search is performed on the edges of the first edge image, and a connected domain with a number of pixels less than a set value is deleted to obtain a second edge image.
7. The method for detecting contact point parameters of a close contact inspection device based on image processing according to claim 5, characterized in that: As described in step 5, the pixel points on the edge image are fitted, located and corrected for distortion to obtain a moving joint position image, including using Zhang Zhengyou's plane calibration method to calibrate the camera. During the camera calibration stage, a printed template is attached to a plane, and then multiple template images are taken from different angles. The feature points in the template image are detected and the distortion of the camera model is considered. The optimization algorithm is used to solve and obtain accurate camera internal and external parameters and distortion coefficients.
