Relay contact overtravel measurement method based on target point feature capture and tracking

Through the method based on target point feature capture and tracking, high-speed image collector and image processing technology, the contact over-range of the relay is accurately measured, which solves the problem of inaccurate measurement in the prior art, and realizes efficient and accurate dynamic parameter measurement .

CN114485439BActive Publication Date: 2024-11-08HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210079139.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-11-08
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The prior art cannot accurately measure the contact over-range parameters of relays, especially in terms of dynamic parameter measurement, resulting in inaccurate and efficient measurement.

Method used

Using the relay contact over-range measurement method based on target point feature capture and tracking, the relay is absorbed and released by the high-speed image collector, and the location of the dynamic and static contact is recognized through the image processing, and the normalization conversion between the pixel distance and the actual distance is used. The formula calculates the contact over-travel.

Benefits of technology

Accurate tracking of dynamic and static contacts during the entire movement process is achieved, which reduces the adverse effects of manual measurements, and the measurement results are accurate and have little volatility, filling the gap in the measurement of over-range parameters of the contacts, and saving processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114485439B_ABST
    Figure CN114485439B_ABST
Patent Text Reader

Abstract

The present invention relates to a relay contact overtravel measurement method based on target point feature capture and tracking, comprising the following steps: obtaining a normalized conversion formula of pixel distance and actual distance through a preliminary experiment; photographing the process of the measured relay being attracted and released through a high-speed image acquisition device to obtain a sequence of initial images; performing image processing on the initial images to identify the area of ​​the moving and static contacts; in the area of ​​the moving and static contacts, obtaining images and data of the position coordinates of the moving and static contacts changing with time according to the identification and tracking results; processing the position coordinates of the moving and static contacts according to the normalized conversion formula of pixel distance and actual distance to obtain the measurement result of the relay contact overtravel. The present invention can realize accurate tracking of the moving and static contacts in the entire motion process, and finally obtain the value of the contact overtravel by processing the parameters obtained by tracking, thus filling the gap in the parameter measurement method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for testing mechanical parameters of a relay, and in particular to a method for measuring relay contact overtravel based on target point feature capture and tracking. Background Art

[0002] At present, my country has a wide variety of industries, and the application of relays in various industrial fields is very flexible and extensive. The types and models of relays developed and manufactured for different application fields are innumerable. During the operation of the relay, various parameters change over time, such as mechanical parameters, electrical parameters, time parameters, etc., and changes in various performance parameters of the relay may have an important impact on its life degradation and functional failure.

[0003] At present, the measurement methods for mechanical parameters are basically manual measurement methods, but manual measurement methods have limitations for the measurement of dynamic parameters. For example, the contact overtravel parameter of a relay cannot be accurately measured by the existing manual measurement method. Therefore, machine vision technology is needed to accurately and efficiently measure such dynamic parameters. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the deficiencies in the prior art and provide a relay contact overtravel measurement method based on target point feature capture and tracking, which can achieve accurate tracking of dynamic and static contacts throughout the entire movement process, and ultimately obtain the value of the contact overtravel by processing the parameters obtained by tracking, thus filling the gap in the parameter measurement method.

[0005] The present invention is achieved through the following technical solutions:

[0006] A relay contact overtravel measurement method based on target point feature capture and tracking includes the following steps: S1. obtaining a normalized conversion formula between pixel distance and actual distance through preliminary experiments; S2. photographing the process of the measured relay being attracted and released through a high-speed image acquisition device to obtain a sequence of initial images; S3. performing image processing on the initial images to identify the area of ​​moving and static contacts; S4. obtaining images and data of the position coordinates of the moving and static contacts changing with time in the area of ​​the moving and static contacts according to the identification and tracking results; S5. processing the position coordinates of the moving and static contacts according to the normalized conversion formula between the pixel distance and actual distance to obtain the measurement result of the relay contact overtravel.

[0007] According to the above technical solution, preferably, step S1 includes: selecting a 10 mm marker in a preliminary experiment and placing it at a shooting position; installing a macro lens on the front side of the high-speed image collector so that the macro lens, the high-speed image collector and the marker are in the same horizontal plane; turning on the illumination light source and adjusting the parameters of the macro lens to make the photographed marker clearly imaged; processing the image data obtained in the preliminary experiment to obtain a conversion formula between pixel distance and actual distance:

[0008] According to the above technical solution, preferably, step S2 includes: placing the relay under test at the shooting position; turning on the illumination light source, adjusting the macro lens and the high-speed image collector so that the moving and static contacts are illuminated and can be clearly imaged; turning on the relay under test, and obtaining and saving an initial image of an action cycle of the relay under test through the high-speed image collector.

[0009] According to the above technical solution, preferably, step S3 includes: the image processing includes image preprocessing and template matching; selecting the area of ​​dynamic and static contacts as the initial template for template matching, and setting the similarity; in the initial image, finding the target template with the highest similarity to the initial template from the first frame image as the recognition target until the last frame.

[0010] According to the above technical solution, preferably, in step S5, the contact overtravel when the relay is energized = the position coordinates of the upper contact in the stable state with power - the position coordinates of the upper contact in the stable state without power, and the contact overtravel when the relay is released = the position coordinates of the lower contact in the stable state with power - the position coordinates of the lower contact in the stable state without power.

[0011] The beneficial effects of the present invention are:

[0012] First, the present invention applies image processing technology, which can quickly process images and obtain accurate data. The non-contact measurement method can reduce the adverse effects caused by the contact between manual tools and relays during the measurement process, eliminate the influence of human subjectivity, and the measurement results are accurate with small fluctuations; second, the present invention can achieve accurate tracking of dynamic and static contacts in the entire movement process, and finally obtain the value of contact overtravel by processing the parameters obtained by tracking, filling the gap in the parameter measurement method; third, the present invention obtains the conversion formula between pixel distance and actual distance through preliminary experiments. When actually shooting the relay, it is no longer necessary to stick markers on the relay, and there is no need to process the markers in each frame, which greatly saves the processing speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a schematic diagram of the position of the contact group during the pull-in process of the present invention.

[0014] Figure 2 It is a schematic diagram of the position of the contact group during the release process of the present invention.

[0015] Figure 3 It is a marker used in the preliminary experiments of the present invention.

[0016] Figure 4 The curve showing the position change of the moving contact and the two stationary contacts over time during the whole tracking process. DETAILED DESCRIPTION

[0017] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and the best embodiment. Based on the embodiments in the invention, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the invention.

[0018] In the description of the invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside" and "outside" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the invention.

[0019] As shown in the figure, the present invention includes the following steps: S1. Obtain the normalized conversion formula of pixel distance and actual distance through preliminary experiments; S2. Use a high-speed image acquisition device to shoot the process of the measured relay being attracted and released, and obtain a sequence of initial images; S3. Perform image processing on the initial image to identify the area of ​​the moving and static contacts; S4. In the area of ​​the moving and static contacts, obtain images and data of the position coordinates of the moving and static contacts changing with time according to the identification and tracking results; S5. According to the normalized conversion formula of the pixel distance and the actual distance, process the position coordinates of the moving and static contacts to obtain the measurement result of the relay contact overtravel. The present invention shoots a relay action cycle, identifies the moving and static contacts of the relay based on the target point feature capture and tracking technology, obtains the position coordinates of the moving and static contacts, and uses the conversion formula of the pixel distance and the actual distance obtained in the preliminary experiment to obtain the result of the relay contact overtravel through calculation.

[0020] According to the above embodiment, preferably, step S1 includes:

[0021] S11. In the preliminary experiment, a 10 mm marker was selected and placed at the shooting position. The markers were two cross marks, and the distance between the center points of the two markers was 10 mm, which provided a standard for the subsequent conversion between pixels and actual distances.

[0022] S12. A macro lens is installed on the front side of the high-speed image collector so that the macro lens, the high-speed image collector and the marker are on the same horizontal plane;

[0023] S13. Turn on the illumination light source and adjust the parameters of the macro lens so that the photographed marker is clearly imaged;

[0024] S14. Process the image data obtained in the preliminary experiment to obtain the conversion formula between pixel distance and actual distance: This formula can be used to obtain the position data of the actual distance represented by the moving and static contacts in the image after template matching, and to plot the law of the change of the actual position coordinates over time.

[0025] According to the above embodiment, preferably, step S2 includes:

[0026] S21. The relay under test is placed in the shooting position;

[0027] S22. Turn on the illumination source, adjust the macro lens and high-speed image acquisition device so that the moving and static contacts are illuminated and can be clearly imaged, and can form a strong contrast with the black background of the contact group, which is convenient for subsequent image processing;

[0028] S23. Turn on the relay under test, obtain the initial image of an action cycle of the relay under test through the high-speed image collector and save it. Specifically, turn on the power supply connected to the relay experimental base device, adjust the time relay so that an action cycle is 3s, set the high-speed image collector to a shooting frequency of 1500 frames / second, and give a relay action signal after the high-speed image collector starts shooting, and shoot the entire movement process of the relay completely;

[0029] S24. When the relay is released and becomes stable again, the shooting process ends and the image is saved.

[0030] According to the above embodiment, preferably, step S3 includes:

[0031] S31. The image processing includes image preprocessing and template matching, wherein preprocessing refers to the process of graying, binarization, Gaussian filtering, etc. on the image, which effectively increases the subsequent target recognition accuracy and tracking speed, and greatly reduces the amount of calculation to obtain more accurate results;

[0032] S32. Select the region of the moving and static contacts as the initial template for template matching and set the similarity;

[0033] S33. In the initial image, find the target template with the highest similarity to the initial template from the first frame image and use it as the recognition target until the last frame.

[0034] Specifically, the process principle of rapid positioning and tracking of targets in sequence images is as follows: the target point position of the first frame image is manually input as the initial template, and the processing of subsequent frames is to use the initial template of the target position in the first frame image to accurately align the moving target point in the previous and next frames, and obtain the accurate position of the moving target in the next frame image, thereby realizing automatic tracking and positioning of the moving target point in the image. This method has a fast processing speed and high accuracy. In the relay contact system motion sequence image obtained by the high-speed image acquisition device, the position of the tracking target only changes within a very small neighborhood range. Therefore, a window block registration algorithm based on the grayscale difference of corresponding pixels between two consecutive frames can be used to calculate the absolute error. The calculation formula is as follows:

[0035]

[0036] The size of the target template in the reference frame is MxM, (m,n) is the coordinate of the pixel point in the search area, Xi(g+m,l+n) is the pixel gray value of the search template in the current frame, and X i-1 (g, l) is the grayscale value of the target template, i.e., the reference template, in the previous frame. The TM_CCOEFF_NORMED template matching algorithm is used, and the match is considered successful when MAD(m, n) is the minimum value.

[0037] According to the above embodiment, preferably, in step S5, since a small range of identification fluctuations may occur during identification, in order to reduce the error caused by this phenomenon, the position coordinates at the stable moment are averaged when selecting the position coordinates at the stable moment to minimize the error. Among them, the contact overtravel when the relay is energized = the position coordinates of the upper contact when the power is stable - the position coordinates of the upper contact when the power is not stable, and the contact overtravel when the relay is released = the position coordinates of the lower contact when the power is stable - the position coordinates of the lower contact when the power is not stable.

[0038] Figure 1 The left figure shows the state of the contact group when it is not powered. Figure 4 As shown in the figure, the average value of the position coordinates of the contacts on the relay during this period is 23.165mm; the right figure shows the state of the energized stable contact group, such as Figure 4 As shown in the figure, the average value of the position coordinates of the contacts on the relay during this period is 24.871. Therefore, the contact overtravel when the relay is closed is: 24.871-23.165=1.706mm.

[0039] Figure 2 The left figure shows the state of the contact group when it is energized. Figure 4 As shown in the figure, the average value of the position coordinates of the lower contact of the relay during this period is 16.242mm; the right figure shows the state of the unpowered stable contact group, such as Figure 4 As shown in the figure, the average value of the position coordinates of the lower contact of the relay during this period is 14.663mm. Therefore, the contact overtravel when the relay is released is: 16.242-14.663=1.579mm.

[0040] Through the above technical scheme, the present invention has the following beneficial effects: first, the present invention applies image processing technology, which can quickly process images and obtain accurate data. The non-contact measurement method can reduce the adverse effects caused by the contact between manual tools and relays during the measurement process, eliminate the influence of human subjectivity, and the measurement results are accurate with small fluctuations; second, the present invention can achieve accurate tracking of dynamic and static contacts throughout the entire movement process, and finally obtain the value of the contact overtravel by processing the parameters obtained by tracking, filling the gap in the parameter measurement method; third, the present invention obtains the conversion formula between pixel distance and actual distance through preliminary experiments. When actually shooting the relay, it is no longer necessary to stick markers on the relay, and there is no need to process the markers in each frame, which greatly saves the processing speed.

[0041] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A relay contact overtravel measurement method based on target point feature capture and tracking, characterized in that: The method comprises the following steps: S1. obtaining a normalized conversion formula of pixel distance and actual distance through a preliminary experiment; S2. photographing the process of the measured relay being attracted and released through a high-speed image acquisition device to obtain a sequence of initial images; S3. performing image processing on the initial images, including preprocessing and template matching; selecting the region of the moving and static contacts as the initial template for template matching, and setting the similarity; in the initial image, finding the target template with the highest similarity to the initial template from the first frame image, and using it as the recognition target until the last frame, and identifying the region of the moving and static contacts; S4. obtaining images and data of the position coordinates of the moving and static contacts changing with time in the region of the moving and static contacts according to the recognition and tracking results; S5. processing the position coordinates of the moving and static contacts according to the normalized conversion formula of the pixel distance and the actual distance to obtain the measurement result of the relay contact overtravel.

2. A relay contact overtravel measurement method based on target point feature capture and tracking according to claim 1, characterized in that: Step S1 includes: selecting a 10 mm marker in the preliminary experiment and placing it at the shooting position; installing a macro lens on the front side of the high-speed image collector so that the macro lens, the high-speed image collector and the marker are on the same horizontal plane; turning on the illumination light source and adjusting the parameters of the macro lens to make the photographed marker clearly imaged; processing the image data obtained in the preliminary experiment to obtain the conversion formula between pixel distance and actual distance: 。 3. According to claim 2, a relay contact overtravel measurement method based on target point feature capture and tracking is characterized in that Step S2 includes: placing the relay under test at the shooting position; turning on the illumination light source, adjusting the macro lens and the high-speed image collector so that the moving and static contacts are illuminated and can be clearly imaged; turning on the relay under test, and obtaining and saving the initial image of an action cycle of the relay under test through the high-speed image collector.

4. The relay contact overtravel measurement method based on target point feature capture and tracking according to any one of claims 1 to 3, characterized in that: In step S5, the contact overtravel when the relay is energized = the position coordinate of the upper contact in the stable state with power minus the position coordinate of the upper contact in the stable state without power, and the contact overtravel when the relay is released = the position coordinate of the lower contact in the stable state with power minus the position coordinate of the lower contact in the stable state without power.