A method for detecting the opening and closing angle of a split knife switch with non-parallel upper and lower boundaries

Through the detection method based on the midline model, the problem of difficulty in accurately detecting the opening and closing state of the knife switch in the prior art is solved, and the rapid and accurate detection of the opening and closing angle is achieved, reducing the risk of arc and equipment damage.

CN110689529BActive Publication Date: 2024-11-05HENAN JINXING ELECTRIC EQUIP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910895606.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-21
Publication Date
2024-11-05
Estimated Expiration
2039-09-21

AI Technical Summary

Technical Problem

The prior art is difficult to quickly and accurately detect whether the folio blade switch with the upper and lower boundaries of the knife switch arm is opened and closed in place, resulting in the risk of arc generation and equipment damage.

Method used

Using the detection method based on the midline model, the boundary line model is established by collecting template images, the midpoint and midline of the knife gate arm are calculated, and these models are applied in the target image to separate and match the edge lines, and the angle between the knife gate arm is calculated. to determine the opening and closing status.

Benefits of technology

It improves the detection accuracy of the opening and closing angle, reduces the dependence of manual observation, enhances the accuracy of the opening and closing state, and reduces the risk of arc and equipment damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110689529B_ABST
    Figure CN110689529B_ABST
Patent Text Reader

Abstract

The present invention proposes a method for detecting the opening and closing angle of a split knife gate with non-parallel upper and lower boundaries, comprising: collecting a template image and establishing a boundary line model of a knife gate arm according to the template image and saving it as a model file, calculating the left midpoint, right midpoint, midpoint and midline of the knife gate arm; collecting a target image and performing edge detection, obtaining an updated edge line set according to the distance from the left midpoint and the right midpoint of the knife gate arm of the target image to each edge line; using the midline to distinguish the updated edge line set, obtaining the left and right knife gate arm edge line sets and using the non-parallel characteristics of the knife gate arm to obtain the upper edge line set and the lower edge line set of the left and right knife gate arms and perform symmetrical pairing, respectively determining the final upper edge line and lower edge line of the left and right knife gate arms; calculating the angle between the left knife gate arm and the right knife gate arm according to the midline of the left and right knife gate arms. The present invention solves the problem that it is difficult to quickly and accurately detect whether a split knife gate with non-parallel upper and lower boundaries is opened and closed in place, and improves the detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image recognition, and in particular to a method for detecting the opening and closing angles of a split knife gate with non-parallel upper and lower boundaries of a knife gate arm based on a midline model. Background Art

[0002] The knife switch is a frequently used electrical appliance in high-voltage switchgear, and plays an isolating role in the circuit. In actual applications, due to the long-term operation of the knife switch, the knife switch may not open or close properly, which will cause an arc between the left and right knife switch arms of the knife switch. The arc is a gas discharge phenomenon. The instantaneous spark generated by the current passing through certain insulating media may cause a fire or threaten personal safety. In addition, the arc temperature is extremely high, which can easily burn the insulating material, causing leakage events or damage to the knife switch equipment. Therefore, the closed state of the knife switch needs to be accurately detected.

[0003] In practice, detection of whether a double-opening knife gate with non-parallel upper and lower boundaries is in place mainly relies on manual observation; it is impossible to accurately calculate the degree of opening and closing of the knife gate based on the angle between the left and right knife gate arms, and in the method based on digital image processing, the background is complex and affected by the shooting environment, which affects the detection effect and cannot quickly and accurately detect the degree of opening and closing of this type of knife gate. Summary of the invention

[0004] In order to solve the problem in the prior art that it is difficult to quickly and accurately detect whether a split knife gate with non-parallel upper and lower boundaries of the knife gate arm is fully opened or closed, the present invention proposes a method for detecting the opening and closing angle of a split knife gate with non-parallel upper and lower boundaries of the knife gate arm based on a midline model.

[0005] The technical solution of the present invention is achieved in this way:

[0006] A method for detecting the opening and closing angles of a split knife switch with non-parallel upper and lower boundaries, comprising:

[0007] Collecting a template image of a split knife switch with non-parallel upper and lower boundaries, establishing a boundary line model of the knife switch of this type according to the template image and saving it as a model file, and calculating the left midpoint, right midpoint, midpoint and midline of the knife switch arm according to the model file;

[0008] At the same location, use the same device to collect the target image of the same knife switch, perform edge detection on the target image, and obtain the edge line set;

[0009] The left middle point, right middle point and center line of the knife gate calculated according to the model file are matched to the target image to obtain the left middle point, right middle point and center line of the knife gate arm of the target image, and the distance from the left middle point and right middle point of the knife gate arm of the target image to each edge line in the edge line set is calculated, and the edge lines corresponding to the distances that are not within the threshold range are eliminated to obtain the updated edge line set;

[0010] Using the center line to distinguish the updated edge line set from left to right, respectively obtaining the edge line set of the left knife gate arm and the edge line set of the right knife gate arm, and using the non-parallel characteristics of the upper and lower edge lines of the knife gate arm to respectively obtain the upper edge line set and the lower edge line set of the left and right knife gate arms, and symmetrically pairing the upper and lower edge line sets of the left and right knife gate arms to respectively determine the upper edge line and the lower edge line of the left and right knife gate arms;

[0011] The middle line of the left knife gate arm and the middle line of the right knife gate arm are obtained according to the upper edge lines and the lower edge lines of the left and right knife gate arms respectively. The angle between the middle lines of the left and right knife gate arms is the angle between the left knife gate arm and the right knife gate arm.

[0012] Preferably, the method of "establishing a boundary line model of the knife switch of this model according to the template image and saving it as a model file" is: setting a program on a computer, using the program to open the template image, drawing upper and lower boundary lines according to the top and bottom ends of the knife switch arm of the template image, drawing the left insulator center line and the right insulator center line, and saving the line segment endpoint coordinates corresponding to the upper and lower boundary lines and the line segment endpoint coordinates corresponding to the left and right insulator center lines as a model file; if the knife switch in the template image is in a closed state, draw the upper and lower boundary lines according to the top and bottom ends of the overall knife switch arm; if the knife switch in the template image is in a virtually closed or open state, draw the upper and lower boundary lines according to the actual left and right knife switch arms.

[0013] Preferably, the method of "calculating the left midpoint, right midpoint and midpoint of the knife gate arm according to the model file" is:

[0014] In the closed state, the two intersection points of the upper and lower boundary line extension lines of the top and bottom ends of the overall knife switch arm and the left insulator center line extension line are obtained according to the model file, and recorded as the two left end points; the two intersection points of the upper and lower boundary line extension lines of the top and bottom ends of the overall knife switch arm and the right insulator center line extension line are obtained, and recorded as the two right end points; the left midpoint and the right midpoint are obtained according to the two left end points and the two right end points; the midpoint of the line segment between the left midpoint and the right midpoint is the knife switch arm midpoint or the midpoint of the closed frame formed by the two left end points and the two right end points is the knife switch arm midpoint;

[0015] In the virtual closed or open state, the two intersection points of the upper and lower boundary line extension lines of the left switch arm and the left insulator center line extension line are obtained according to the model file, and recorded as the two left end points; the two intersection points of the upper and lower boundary line extension lines of the right switch arm and the right insulator center line extension line are obtained, and recorded as the two right end points; the left midpoint and the right midpoint are obtained according to the two left end points and the two right end points; the midpoint of the line segment between the left midpoint and the right midpoint is the midpoint of the switch arm, or the midpoint of the closed frame formed by the two left end points and the two right end points is the midpoint of the switch arm.

[0016] Preferably, the method of "calculating the center line of the knife gate arm according to the model file" is:

[0017] When the knife gate is in the closed state, obtain the distortion coefficient of the camera that collects the template image, and calculate the camera matrix camera_matrix = [focal_length, 0, center.x; 0, focal_length, center.y; 0, 0, 1] according to the template image size, where focal_length is the template image width, center.x and center.y are the x-coordinate and y-coordinate of the midpoint of the template image respectively; obtain the coordinate position of the device relative to the knife gate during acquisition according to the four endpoints of the model file, the projection direction of the Z axis of the device on the template image is the centerline direction of the knife gate arm, and the centerline of the knife gate arm is determined in combination with the midpoint of the knife gate arm;

[0018] When the knife gate is in a virtual closed or open state, the left center line is obtained according to the average slope of the left midpoint and the upper and lower boundary lines of the left knife gate arm, and the right center line is obtained according to the average slope of the right midpoint and the upper and lower boundary lines of the right knife gate arm. The left center line and the right center line are extended to form an intersection; the line passing through the intersection and the midpoint is the center line of the knife gate arm.

[0019] Preferably, the method of "calculating the distance from the left midpoint and the right midpoint of the knife gate arm of the target image to each edge line in the edge line set, eliminating the edge lines corresponding to the distances that are not within the threshold range, and obtaining the updated edge line set" is: correspond the left midpoint and the right midpoint of the knife gate arm in the model file to the target image, obtain the left midpoint and the right midpoint of the target image, calculate the distance from the left midpoint of the target image to each edge line, and calculate the distance from the right midpoint to each edge line; given a left distance threshold and a right distance threshold, obtain the edge lines whose distance to the left midpoint is within the left distance threshold, obtain the edge lines whose distance to the right midpoint is within the right distance threshold, and the edge lines within the left distance threshold and the right distance threshold are the updated edge line set.

[0020] Preferably, the specific method of "using the center line to distinguish the updated edge line set from the left and right to obtain the left knife gate arm edge line set and the right knife gate arm edge line set respectively" is:

[0021] Calculate the unit direction vector perpendicular to the midline and pointing to the right or left on the target image with the midpoint as the starting point

[0022] Traverse and update the edge lines in the edge line set, record the two endpoints of any edge line as T1 and T2, and record the vector between T1 and the midpoint as The vector between T2 and the midpoint is denoted as calculate and For a unit direction vector pointing to the right like Then T1 is on the right side of the midline, otherwise it is on the left side of the midline. Then T2 is on the right side of the midline, otherwise on the left side of the midline; for a unit direction vector pointing to the left like If T1 is on the left side of the midline, otherwise it is on the right side of the midline. Then T2 is on the left side of the center line, otherwise it is on the right side of the center line; if T1 and T2 are both on the left side of the center line, then the edge line is the edge line of the left knife gate arm, if T1 and T2 are both on the right side of the center line, then the edge line is the edge line of the right knife gate arm, if T1 and T2 are respectively on both sides of the center line, calculate the length of the left and right line segments of the edge line with the center line as the dividing line, and the edge line is the edge line on the longer side of the left and right side segments; in this way, the left knife gate arm edge line set and the right knife gate arm edge line set are obtained.

[0023] Preferably, the method of "obtaining the upper edge line set and the lower edge line set of the left and right knife gate arms respectively by utilizing the non-parallel characteristics of the upper and lower edge lines of the knife gate arms, and symmetrically pairing the upper and lower edge line sets of the left and right knife gate arms to respectively determine the final upper edge line and lower edge line of the left and right knife gate arms" is:

[0024] The angle of the edge line relative to the horizontal position is set to range from -90 degrees to 90 degrees. Given an angle threshold, the angle of any edge line in the left knife gate arm edge line set relative to the horizontal position is recorded as M h , h represents different left knife gate arm edge lines. Any two left knife gate arm edge lines whose angle difference is within the angle threshold and whose angle direction is the same are divided into the same group. The left knife gate arm edge lines in the same group are sorted from long to short. For any edge line in the right knife gate arm edge line set, the angle relative to the horizontal position is recorded as N m , m represents different edge lines of the right knife gate arm, any two edge lines of the right knife gate arm whose angle difference is within the angle threshold and whose angle direction is the same are divided into the same group, and the edge lines of the right knife gate arm in the same group are sorted from long to short;

[0025] Traverse all the same groups of the left knife gate arm edge line set, calculate the average angle of each group, record all groups with average angles less than 0 as the same group of the left knife gate arm upper edge line, obtain the left knife gate arm upper edge line set, record all groups with average angles greater than or equal to 0 as the same group of the left knife gate arm lower edge line, and obtain the left knife gate arm lower edge line set; traverse all the same groups of the right knife gate arm edge line set, calculate the average angle of each group, record all groups with average angles greater than 0 as the same group of the right knife gate arm upper edge line, obtain the right knife gate arm upper edge line set, record all groups with average angles less than or equal to 0 as the same group of the right knife gate arm lower edge line, and obtain the right knife gate arm lower edge line set;

[0026] Traverse all the same groups of the left gate arm upper edge line set and the right gate arm upper edge line set and pair them one by one, calculate the corrected gate arm edge lines and pairing scores of any two groups, the corrected upper left gate arm edge line and the corrected upper right gate arm edge line corresponding to the combination with the highest score are the final upper edge line of the left gate arm and the final upper edge line of the right gate arm; traverse all the same groups of the left gate arm lower edge line set and the right gate arm lower edge line set and pair them one by one, calculate the corrected gate arm edge lines and pairing scores of any two groups, the corrected lower left gate arm edge line and the corrected lower right gate arm edge line corresponding to the combination with the highest score are the final lower edge line of the left gate arm and the final lower edge line of the right gate arm.

[0027] Preferably, the method of "traversing all the same groups of the left knife gate arm upper edge line set and the right knife gate arm upper edge line set and performing one-to-one pairing, and calculating the corrected knife gate arm edge lines and pairing scores of any two groups" is:

[0028] Traverse all the same groups of the upper edge line set of the left knife gate arm and the upper edge line set of the right knife gate arm, calculate the average angle of each group, combine the average angle of each group of the upper edge line set of the left knife gate arm with the left midpoint to obtain the corrected upper left edge line of each group of the upper edge line set of the left knife gate arm, and the intersection of the corrected upper left edge line and the midline is recorded as point A1; the average angle of each group of the upper edge line set of the right knife gate arm is combined with the right midpoint to obtain the corrected upper right edge line of each group of the upper edge line set of the right knife gate arm, and the intersection of the corrected upper right edge line and the midline is recorded as point B1, and the distance d between point A1 and point B1 is calculated A1B1 ,

[0029] The distance between the left and right midpoints of the knife gate arm is d0, d A1B1 The smaller / d0 is, the greater the probability that the paired corrected left upper edge line and corrected right upper edge line are the actual left knife gate arm upper edge line and the actual right knife gate arm upper edge line. A1B1 / d0>0.5, the same group as point A1 and the same group as point B1 are eliminated;

[0030] For all the same groups of the upper edge line sets of the left and right knife gate arms, the calculation formula for the pairing score of any two groups is The coefficient S L_top S represents the sum of the squares of the lengths of any edge line in the same group on the left knife gate arm. R_top Represents the sum of the squares of the lengths of any edge lines in the same group of the upper edge line set of the right knife gate arm; the corrected left upper edge line where point A1 and the corrected right upper edge line where point B1 correspond to the highest pairing score S_top are the final upper edge lines of the left knife gate arm and the final upper edge lines of the right knife gate arm.

[0031] Preferably, the method of "traversing all the same groups of the left knife gate arm lower edge line set and the right knife gate arm lower edge line set and performing one-to-one pairing, and calculating the corrected knife gate arm edge lines and pairing scores of any two groups" is:

[0032] Traverse all the same groups of the left knife gate arm lower edge line set and the right knife gate arm lower edge line set, calculate the average angle of each group, the average angle of each group of the left knife gate arm lower edge line set is combined with the left midpoint to obtain the corrected left lower edge line of each group of the left knife gate arm lower edge line set, and the intersection of the corrected left lower edge line and the midline is recorded as point A2; the average angle of each group of the right knife gate arm lower edge line set is combined with the right midpoint to obtain the corrected right lower edge line of each group of the right knife gate arm lower edge line set, and the intersection of the corrected right lower edge line and the midline is recorded as point B2, and the distance d between point A2 and point B2 is calculated A2B2 , d A2B2 The smaller / d0 is, the greater the probability that the paired corrected left lower edge line and corrected right lower edge line are the actual left knife gate arm lower edge line and the actual right knife gate arm lower edge line. A2B2 / d0>0.5, the same group as point A2 and the same group as point B2 are eliminated;

[0033] For all the same groups of the lower edge line sets of the left and right knife gate arms, the calculation formula for the pairing score of any two groups is The coefficient S L_bottom S represents the sum of the squares of the lengths of any edge line in the same group of the left knife gate arm lower edge line set. R_bottom Represents the sum of the squares of the lengths of any edge lines in the same group of the lower edge line set of the right knife gate arm; the corrected left lower edge line of point A2 and the corrected right lower edge line of point B2 corresponding to the highest pairing score S_bottom are the final lower edge lines of the left knife gate arm and the final lower edge lines of the right knife gate arm.

[0034] Preferably, the specific method of "obtaining the middle line of the left knife gate arm and the middle line of the right knife gate arm respectively according to the upper edge lines and the lower edge lines of the left and right knife gate arms, and the angle between the middle lines of the left and right knife gate arms is the angle between the left knife gate arm and the right knife gate arm" is:

[0035] The straight line passing through the left midpoint and having an angle equal to the average angle of the final upper edge line and lower edge line of the left knife gate arm is the left knife gate arm middle line, and the straight line passing through the right midpoint and having an angle equal to the average angle of the final upper edge line and lower edge line of the right knife gate arm is the right knife gate arm middle line; the angle of the left knife gate arm middle line relative to the straight line where the knife gate arm in the closed state is located is α1, the angle of the right knife gate arm middle line relative to the straight line where the knife gate arm in the closed state is located is α2, and the final angle between the left and right knife gate arms is θ=|α2-α1|.

[0036] The beneficial effects of the present invention are as follows: the method for detecting the opening and closing angles of a double-opening knife gate with non-parallel upper and lower boundaries of the present invention first captures a template image, establishes a boundary line model of the knife gate of this model in the template image and saves it as a model file, and calculates the left midpoint, right midpoint, midpoint and centerline of the knife gate of this model according to the model file, and captures the target image to be detected at the same position using the same device. The target image and the template image have the same image size and position relative to the acquisition device. Therefore, the left midpoint, right midpoint, midpoint and centerline of the knife gate arm in the model file are mapped to the target image as a reference.

[0037] For a split knife gate with non-parallel upper and lower boundaries, the present invention first distinguishes and pairs the upper and lower edge lines of the left and right knife gate arms according to the non-parallel characteristics of the knife gate arm boundary lines, obtains the upper edge line set and the lower edge line set of the left and right knife gate arms, and when performing symmetrical pairing, uses the knife gate arm center line, fully considers the relationship between the pairing score and the number of edge lines in the same group, the edge line length, and the distance between the intersection of the upper and lower edge lines and the center line, and proposes a pairing score calculation formula that conforms to reality to improve the pairing accuracy. After obtaining the upper and lower edge lines of the left and right knife gate arms, the upper and lower edge lines of the left and right knife gate arms are used to calculate the middle lines of the left and right knife gate arms respectively, and the final angle between the knife gate arms is obtained according to the middle lines of the left and right knife gate arms to improve the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0039] Figure 1 is the template image of the present invention;

[0040] Figure 2 Schematic diagram of calculating the angle between the left and right knife gate arms on the target image.

[0041] In the figure:

[0042] 1. Left knife gate arm; 2. Right knife gate arm; 3. Left midpoint; 4. Right midpoint; 6. Center line of left knife gate arm; 7. Center line of right knife gate arm. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] Embodiment 1: A method for detecting the opening and closing angles of a split knife switch with non-parallel upper and lower boundaries, comprising: Figure 1 As shown, a template image of a split knife gate with non-parallel upper and lower boundaries is collected, a boundary line model of the knife gate of this model is established according to the template image and saved as a model file, and the left midpoint, right midpoint, midpoint and center line of the knife gate arm are calculated according to the model file; a target image of the same knife gate is collected at the same position using the same equipment, and edge detection is performed on the target image to obtain an edge line set; the left midpoint, right midpoint and center line of the knife gate arm calculated according to the model file are mapped to the target image to obtain the left midpoint, right midpoint and center line of the knife gate arm of the target image, the distance from the left midpoint and right midpoint of the knife gate arm of the target image to each edge line in the edge line set is calculated, and the edge lines corresponding to the distances that are not within the threshold range are eliminated to obtain an updated edge line set; the updated edge line set is distinguished between left and right using the center line, respectively. Obtain a left gate arm edge line set and a right gate arm edge line set, and use the non-parallel characteristics of the upper and lower edge lines of the gate arms to respectively obtain the upper edge line set and the lower edge line set of the left and right gate arms, and symmetrically pair the upper and lower edge line sets of the left and right gate arms to respectively determine the final upper edge line and lower edge line of the left and right gate arms; obtain the left gate arm middle line 6 and the right gate arm middle line 7 according to the final upper edge line and lower edge line of the left and right gate arms, and the angle between the left gate arm middle line 6 and the right gate arm middle line 7 is the angle between the left gate arm 1 and the right gate arm 2; the left midpoint 3 is the center point of the two intersections of the left insulator centerline extension line and the left gate arm upper and lower boundary line extension lines, and the right midpoint 4 is the center point of the two intersections of the right insulator centerline extension line and the right gate arm upper and lower boundary line extension lines.

[0045] In Example 1, the method of "establishing the boundary line model of the knife switch of this model according to the template image and saving it as a model file" is as follows: set up a program on the computer, use the program to open the template image, draw upper and lower boundary lines according to the top and bottom of the knife switch arm of the template image, draw the left insulator center line and the right insulator center line, and save the line segment endpoint coordinates corresponding to the upper and lower boundary lines and the line segment endpoint coordinates corresponding to the left and right insulator center lines as a model file; if the knife switch in the template image is in a closed state, draw the upper and lower boundary lines according to the top and bottom of the overall knife switch arm; if the knife switch in the template image is in a virtual closed or open state, draw the upper and lower boundary lines according to the actual left and right knife switch arms. The knife switch arm is included between the upper and lower boundary lines. When establishing the model file, the closed state of the knife switch refers to that the left and right knife switch arms are in the same straight line, the virtual closed state refers to that there is contact between the left and right knife switch arms but they are not in the same straight line, and the open state refers to that there is no contact between the left and right knife switch arms. The knife switch state here is general, which is different from the knife switch state obtained according to the angle between the knife switch arms. The knife switch state obtained according to the angle between the knife switch arms is the final state of the knife switch in the target image. The state of the knife switch in the template image is manually identified.

[0046] The above-mentioned method of "calculating the left midpoint, right midpoint and midpoint of the knife switch arm according to the model file" is: in the closed state, obtain the two intersection points of the upper and lower boundary line extension lines of the top and bottom ends of the overall knife switch arm and the left insulator center line extension line according to the model file, record them as the two left end points, obtain the two intersection points of the upper and lower boundary line extension lines of the top and bottom ends of the overall knife switch arm and the right insulator center line extension line, record them as the two right end points; obtain the left midpoint and the right midpoint according to the two left end points and the two right end points; the midpoint of the line segment between the left midpoint and the right midpoint is the knife switch arm midpoint or the two left end points and the two right end points. The midpoint of the closed frame formed by the right endpoints is the midpoint of the switch arm; in the virtual closed or open state, the two intersection points of the upper and lower boundary line extension lines of the left switch arm and the left insulator center line extension line are obtained according to the model file, and recorded as the two left endpoints, and the two intersection points of the upper and lower boundary line extension lines of the right switch arm and the right insulator center line extension line are obtained, and recorded as the two right endpoints; the left midpoint and the right midpoint are obtained according to the two left endpoints and the two right endpoints; the midpoint of the line segment between the left midpoint and the right midpoint is the midpoint of the switch arm or the midpoint of the closed frame formed by the two left endpoints and the two right endpoints is the midpoint of the switch arm.

[0047] The left midpoint, right midpoint and midpoint of the knife gate arm are fixed and unchanged, and the left midpoint, right midpoint and midpoint of the knife gate arm calculated according to the model file directly correspond to the target image.

[0048] The above-mentioned method of "calculating the center line of the knife gate arm according to the model file" is: when the knife gate is in a closed state, the distortion coefficient of the camera that captures the template image is obtained, and the camera matrix camera_matrix = [focal_length, 0, center.x; 0, focal_length, center.y; 0, 0, 1] is calculated according to the template image size, where focal_length is the template image width, center.x and center.y are the x-coordinate and y-coordinate of the midpoint of the template image respectively; the coordinate position of the device relative to the knife gate during acquisition is obtained according to the four endpoints of the model file, the projection direction of the Z axis of the device on the template image is the center line direction of the knife gate arm, and the center line of the knife gate arm is determined in combination with the midpoint of the knife gate arm; when the knife gate is not in a closed state, the left center line is obtained according to the average slope of the left midpoint and the upper and lower boundary lines of the left knife gate arm, and the right center line is obtained according to the average slope of the right midpoint and the upper and lower boundary lines of the right knife gate arm, and the left center line and the right center line are extended to form an intersection; the line passing through the intersection and the midpoint is the center line of the knife gate arm.

[0049] For the image of the same knife switch collected at the same position using the same equipment, the center line of the knife switch is fixed, and the center line of the knife switch arm calculated based on the template image directly corresponds to the target image.

[0050] The method of "performing edge detection on the target image and obtaining an edge line set" is: performing edge detection on the target image. The edge detection method used here is LSD edge detection. By inputting the target image of the double-leaf knife gate to be detected, all the edge lines of the target image can be obtained. At the same time, any method that can help detect the edge of the knife gate arm can be used, such as EDLines, Hough transform straight line detection, etc., to obtain an edge line set.

[0051] The above-mentioned method of "calculating the distance from the left midpoint and the right midpoint of the knife gate arm of the target image to each edge line in the edge line set, eliminating the edge lines corresponding to the distance not within the threshold range, and obtaining the updated edge line set" is as follows: correspond the left midpoint and the right midpoint of the knife gate arm calculated according to the model file to the target image, obtain the left midpoint and the right midpoint of the target image, and calculate the distance from the right midpoint of the target image to each edge line; given the left distance threshold and the right distance threshold, obtain the edge line whose distance to the left midpoint is within the left distance threshold, obtain the edge line whose distance to the right midpoint is within the right distance threshold, and the edge line within the left distance threshold and the right distance threshold is the updated edge line set. The left distance threshold can be set as 0.6 times the width of the side of the left knife gate arm, and the right distance threshold can be set as 0.6 times the width of the side of the right knife gate arm. The left distance threshold and the right distance threshold can be set according to actual conditions.

[0052] The specific method of "using the center line to distinguish the updated edge line set from the left to the right, and obtaining the edge line set of the left knife gate arm and the edge line set of the right knife gate arm respectively" is: correspond the center line on the template image to the target image, and calculate the unit direction vector perpendicular to the center line and pointing to the right or left on the target image with the midpoint as the starting point.

[0053] Traverse and update the edge lines in the edge line set, record the two endpoints of any edge line as T1 and T2, and record the vector between T1 and the midpoint as The vector between T2 and the midpoint is denoted as calculate and For a unit direction vector pointing to the right like Then T1 is on the right side of the midline, otherwise it is on the left side of the midline. Then T2 is on the right side of the midline, otherwise on the left side of the midline; for a unit direction vector pointing to the left like If T1 is on the left side of the midline, otherwise it is on the right side of the midline. Then T2 is on the left side of the center line, otherwise it is on the right side of the center line; if T1 and T2 are both on the left side of the center line, then the edge line is the edge line of the left knife gate arm, if T1 and T2 are both on the right side of the center line, then the edge line is the edge line of the right knife gate arm, if T1 and T2 are respectively on both sides of the center line, calculate the length of the left and right line segments of the edge line with the center line as the dividing line, and the edge line is the edge line on the longer side of the left and right side segments; in this way, the left knife gate arm edge line set and the right knife gate arm edge line set are obtained.

[0054] Unit direction vector The specific calculation method is: set the midline of the knife gate arm on the target image to y = kx + b, and the midpoint coordinates to (C x ,C y ), set the equation of the vertical line perpendicular to the midline and passing through the midpoint to y = cx + d, c = -1 / k, C y =-1 / k*C x +d,d=C y +1 / k*C x ; Calculate the unit direction vector with the midpoint as the starting point and the direction to the right or left according to the straight line equation of the perpendicular line Assume the end point coordinates of the unit direction vector are (n x ,n y ), then (n y -C y ) / (n x -C x )=-1 / k,(n y -C y ) 2 +(nx -C x ) 2 =1, find n x and n y , the unit direction vector

[0055] The method of "using the non-parallel characteristics of the upper and lower edge lines of the knife gate arm to obtain the upper edge line set and the lower edge line set of the left and right knife gate arms respectively, and symmetrically pairing the upper and lower edge line sets of the left and right knife gate arms to determine the final upper edge line and lower edge line of the left and right knife gate arms respectively" is:

[0056] The angle of the edge line relative to the horizontal position is set to range from -90 degrees to 90 degrees. Given an angle threshold, the angle of any edge line in the left knife gate arm edge line set relative to the horizontal position is recorded as M h , h represents different left knife gate arm edge lines. Any two left knife gate arm edge lines whose angle difference is within the angle threshold and whose angle direction is the same are divided into the same group. The left knife gate arm edge lines in the same group are sorted from long to short. For any edge line in the right knife gate arm edge line set, the angle relative to the horizontal position is recorded as N m , m represents different edge lines of the right knife gate arm, any two edge lines of the right knife gate arm whose angle difference is within the angle threshold and whose angle direction is the same are divided into the same group, and the edge lines of the right knife gate arm in the same group are sorted from long to short;

[0057] Traverse all the same groups of the left knife gate arm edge line set, calculate the average angle of each group, record all groups with an average angle less than 0 as the left knife gate arm upper edge line group, obtain the left knife gate arm upper edge line set, record all groups with an average angle greater than or equal to 0 as the left knife gate arm lower edge line group, and obtain the left knife gate arm lower edge line set; traverse all the same groups of the right knife gate arm edge line set, calculate the average angle of each group, record all groups with an average angle greater than 0 as the right knife gate arm upper edge line group, obtain the right knife gate arm upper edge line set, record all groups with an average angle less than or equal to 0 as the right knife gate arm lower edge line group, and obtain the right knife gate arm lower edge line set; traverse the left knife gate arm All the same groups of the upper edge line set and the upper edge line set of the right knife gate arm are paired one by one, and the corrected knife gate arm edge lines and pairing scores of any two groups are calculated. The corrected upper left knife gate arm edge line and the corrected upper right knife gate arm edge line corresponding to the combination with the highest score are the final upper edge line of the left knife gate arm and the final upper edge line of the right knife gate arm; all the same groups of the lower edge line set of the left knife gate arm and the lower edge line set of the right knife gate arm are traversed and paired one by one, and the corrected knife gate arm edge lines and pairing scores of any two groups are calculated. The corrected lower left knife gate arm edge line and the corrected lower right knife gate arm edge line corresponding to the combination with the highest score are the final lower edge line of the left knife gate arm and the final lower edge line of the right knife gate arm.

[0058] The method of "traversing all the same groups of the left knife gate arm upper edge line set and the right knife gate arm upper edge line set and pairing them one by one, and calculating the corrected knife gate arm edge lines and pairing scores of any two groups" is:

[0059] Traverse all the same groups of the upper edge line set of the left knife gate arm and the upper edge line set of the right knife gate arm, calculate the average angle of each group, combine the average angle of each group of the upper edge line set of the left knife gate arm with the left midpoint to obtain the corrected upper left edge line of each group of the upper edge line set of the left knife gate arm, and the intersection of the corrected upper left edge line and the midline is recorded as point A1; the average angle of each group of the upper edge line set of the right knife gate arm is combined with the right midpoint to obtain the corrected upper right edge line of each group of the upper edge line set of the right knife gate arm, and the intersection of the corrected upper right edge line and the midline is recorded as point B1, and the distance d between point A1 and point B1 is calculated A1B1 ,

[0060] The distance between the left and right midpoints of the knife gate arm is d0, d A1B1 The smaller / d0 is, the greater the probability that the paired corrected left upper edge line and corrected right upper edge line are the actual left knife gate arm upper edge line and the actual right knife gate arm upper edge line. A1B1 / d0>0.5, the same group as point A1 and the same group as point B1 are eliminated;

[0061] For all the same groups of the upper edge line sets of the left and right knife gate arms, the calculation formula for the pairing scores of any two groups is The coefficient S L_top S represents the sum of the squares of the lengths of any edge line in the same group on the left knife gate arm. R_top Represents the sum of the squares of the lengths of any edge lines in the same group of the upper edge line set of the right knife gate arm; the corrected left upper edge line where point A1 and the corrected right upper edge line where point B1 correspond to the highest pairing score S_top are the final upper edge lines of the left knife gate arm and the final upper edge lines of the right knife gate arm.

[0062] The method of "traversing all the same groups of the left knife gate arm lower edge line set and the right knife gate arm lower edge line set and pairing them one by one, and calculating the corrected knife gate arm edge lines and pairing scores of any two groups" is:

[0063] Traverse all the same groups of the left knife gate arm lower edge line set and the right knife gate arm lower edge line set, calculate the average angle of each group, the average angle of each group of the left knife gate arm lower edge line set is combined with the left midpoint to obtain the corrected left lower edge line of each group of the left knife gate arm lower edge line set, and the intersection of the corrected left lower edge line and the midline is recorded as point A2; the average angle of each group of the right knife gate arm lower edge line set is combined with the right midpoint to obtain the corrected right lower edge line of each group of the right knife gate arm lower edge line set, and the intersection of the corrected right lower edge line and the midline is recorded as point B2, and the distance d between point A2 and point B2 is calculated A2B2 , d A2B2The smaller / d0 is, the greater the probability that the paired corrected left lower edge line and corrected right lower edge line are the actual left knife gate arm lower edge line and the actual right knife gate arm lower edge line. A2B2 / d0>0.5, the same group as point A2 and the same group as point B2 are eliminated;

[0064] For all the same groups of the lower edge line sets of the left and right knife gate arms, the calculation formula for the pairing score of any two groups is The coefficient S L_bottom S represents the sum of the squares of the lengths of any edge line in the same group of the left knife gate arm lower edge line set. R_bottom Represents the sum of the squares of the lengths of any edge lines in the same group of the lower edge line set of the right knife gate arm; the corrected left lower edge line of point A2 and the corrected right lower edge line of point B2 corresponding to the highest pairing score S_bottom are the final lower edge lines of the left knife gate arm and the final lower edge lines of the right knife gate arm.

[0065] β is an adjustable sensitivity parameter. In actual use, different scores can be obtained by taking different β values. The pairing results are determined according to different scores. The β value corresponding to the best pairing result is selected as the final β value. Different users can also determine it according to actual conditions.

[0066] Assume that the number of edge lines in any group of the edge line set on the left knife gate arm is K, and each edge line can be expressed as L i , calculate the length of the edge line according to its starting and ending coordinates as LLength i , where i=0,1,...,K, then S L_top =LLength0 2 +LLength1 2 ...+LLength K 2 ; Assume that the number of edge lines in any group of the edge line set on the right edge arm is Q, and each edge line can be expressed as R j , calculate the length of the edge line according to its starting and ending coordinates as RLength j , where j = 0, 1, ..., Q,

[0067] Then S R_top =RLength0 2 +RLength1 2 ...+RLength Q 2 ; S R_bottom and S R_top The calculation method is the same as S L_bottom and S L_top is calculated in the same way.

[0068] The specific method of "obtaining the middle line of the left knife gate arm and the middle line of the right knife gate arm respectively according to the upper edge lines and lower edge lines of the left and right knife gate arms, and the angle between the middle lines of the left and right knife gate arms is the angle between the left knife gate arm and the right knife gate arm" is: the straight line passing through the left midpoint and with an angle equal to the average angle of the final upper edge line and lower edge line of the left knife gate arm is the middle line of the left knife gate arm, and the straight line passing through the right midpoint and with an angle equal to the average angle of the final upper edge line and lower edge line of the right knife gate arm is the middle line of the right knife gate arm; the angle of the middle line of the left knife gate arm relative to the straight line where the knife gate arm is in the closed state is α1, the angle of the middle line of the right knife gate arm relative to the straight line where the knife gate arm is in the closed state is α2, and the final angle between the left and right knife gate arms is θ=|α2-α1|.

[0069] A split-type knife switch in which the upper and lower boundary lines of the knife switch arm are not parallel refers to a double-column center-break type disconnector. The double columns refer to the vertical insulators on the left and right sides, and the center break refers to the contact position of the left and right knife switch arms when they are in a virtual or closed state. During the opening and closing process of this type of disconnector, the left and right knife switch arms use the upper end point of the insulator as the rotation point, and the left and right knife switch arms open and close synchronously and symmetrically; the upper and lower boundary lines of the knife switch arms are not parallel means that the upper and lower boundaries of the left and right knife switch arms are not parallel.

[0070] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting the opening and closing angles of a split knife switch with non-parallel upper and lower boundaries, characterized in that: include: Collecting a template image of a split knife switch with non-parallel upper and lower boundaries, establishing a boundary line model of the knife switch of this type according to the template image and saving it as a model file, and calculating the left midpoint, right midpoint, midpoint and midline of the knife switch arm according to the model file; At the same location, use the same device to collect the target image of the same knife switch, perform edge detection on the target image, and obtain the edge line set; The left middle point, right middle point and center line of the knife gate calculated according to the model file are matched to the target image to obtain the left middle point, right middle point and center line of the knife gate arm of the target image, and the distance from the left middle point and right middle point of the knife gate arm of the target image to each edge line in the edge line set is calculated, and the edge lines corresponding to the distances that are not within the threshold range are eliminated to obtain the updated edge line set; Using the center line to divide the updated edge line set into left and right parts, respectively obtaining the edge line set of the left knife gate arm and the edge line set of the right knife gate arm, and using the non-parallel characteristics of the upper and lower edge lines of the knife gate arm to respectively obtain the upper edge line set and the lower edge line set of the left and right knife gate arms, and symmetrically pairing the upper and lower edge line sets of the left and right knife gate arms to respectively determine the final upper edge line and lower edge line of the left and right knife gate arms; According to the final upper edge lines and lower edge lines of the left and right knife gate arms, the middle line of the left knife gate arm and the middle line of the right knife gate arm are obtained respectively, and the angle between the middle lines of the left and right knife gate arms is the angle between the left knife gate arm and the right knife gate arm; The method of "calculating the left midpoint, right midpoint and midpoint of the knife switch arm according to the model file" is: in the closed state, obtain the two intersection points of the upper and lower boundary line extension lines of the top and bottom ends of the whole knife switch arm and the left insulator center line extension line according to the model file, record them as two left end points, obtain the two intersection points of the upper and lower boundary line extension lines of the top and bottom ends of the whole knife switch arm and the right insulator center line extension line, record them as two right end points; obtain the left midpoint and the right midpoint according to the two left end points and the two right end points; the midpoint of the line segment between the left midpoint and the right midpoint is the knife switch arm midpoint or the midpoint of the closed frame formed by the two left end points and the two right end points is the knife switch arm midpoint; In the virtual closing or opening state, the two intersection points of the upper and lower boundary line extension lines of the left knife switch arm and the left insulator center line extension line are obtained according to the model file, which are recorded as the two left end points, and the two intersection points of the upper and lower boundary line extension lines of the right knife switch arm and the right insulator center line extension line are obtained, which are recorded as the two right end points; the left midpoint and the right midpoint are obtained according to the two left end points and the two right end points; the midpoint of the line segment between the left midpoint and the right midpoint is the midpoint of the knife switch arm, or the midpoint of the closed frame formed by the two left end points and the two right end points is the midpoint of the knife switch arm; The method of "calculating the center line of the knife gate arm according to the model file" is: when the knife gate is in the closed state, obtain the distortion coefficient of the camera that collects the template image, and calculate the center line of the knife gate arm according to the template image. Image size calculation camera matrix camera_matrix=[focal_length, 0, center.x; 0,focal_length,center.y; 0, 0, 1], where focal_length is the template image width, center.x and center.y are the x-coordinate and y-coordinate of the midpoint of the template image respectively; the coordinate position of the device relative to the knife gate during acquisition is obtained according to the four endpoints of the model file, the projection direction of the Z axis of the device on the template image is the centerline direction of the knife gate arm, and the centerline of the knife gate arm is determined in combination with the midpoint of the knife gate arm; When the knife gate is in a virtual closing or opening state, the left center line is obtained according to the average slope of the left midpoint and the upper and lower boundary lines of the left knife gate arm, and the right center line is obtained according to the average slope of the right midpoint and the upper and lower boundary lines of the right knife gate arm. The left center line and the right center line are extended to form an intersection; the line passing through the intersection and the midpoint is the center line of the knife gate arm; The specific method of "using the center line to distinguish the updated edge line set from the left and right, and obtaining the edge line set of the left knife gate arm and the edge line set of the right knife gate arm respectively" is: calculate the unit direction vector perpendicular to the center line and pointing to the right or left with the midpoint as the starting point on the target image. ; Traverse and update the edge lines in the edge line set, record the two endpoints of any edge line as T1 and T2, and record the vector between T1 and the midpoint as , let the vector between T2 and the midpoint be ,calculate and ; For a unit direction vector pointing to the right ,like , then T1 is on the right side of the midline, otherwise it is on the left side of the midline. , then T2 is on the right side of the midline, otherwise on the left side of the midline; for a unit direction vector pointing to the left ,like , then T1 is on the left side of the midline, otherwise it is on the right side of the midline. , then T2 is on the left side of the center line, otherwise on the right side of the center line; if T1 and T2 are both on the left side of the center line, then the edge line is the edge line of the left knife gate arm, if T1 and T2 are both on the right side of the center line, then the edge line is the edge line of the right knife gate arm, if T1 and T2 are on both sides of the center line respectively, calculate the length of the left and right line segments of the edge line with the center line as the dividing line, and the edge line is the edge line on the side with the longer left and right line segments; in this way, the left knife gate arm edge line set and the right knife gate arm edge line set are obtained; The method of "using the non-parallel characteristics of the upper and lower edge lines of the knife gate arm to obtain the upper edge line set and the lower edge line set of the left and right knife gate arms respectively, and symmetrically pairing the upper and lower edge line sets of the left and right knife gate arms to determine the final upper edge line and lower edge line of the left and right knife gate arms respectively" is: The angle of the edge line relative to the horizontal position is set to range from -90 degrees to 90 degrees. Given an angle threshold, the angle of any edge line in the left knife gate arm edge line set relative to the horizontal position is recorded as , Representing different left knife gate arm edge lines, any two left knife gate arm edge lines whose angle difference is within the angle threshold and whose angle direction is the same are divided into the same group, and the left knife gate arm edge lines in the same group are sorted from long to short; the angle of any edge line in the right knife gate arm edge line set relative to the horizontal position is recorded as , Representing different right knife gate arm edge lines, any two right knife gate arm edge lines whose angle difference is within the angle threshold and whose angle direction is the same are divided into the same group, and the right knife gate arm edge lines in the same group are sorted from long to short; Traverse all the same groups of the left knife gate arm edge line set, calculate the average angle of each group, record all groups with average angles less than 0 as the same group of the left knife gate arm upper edge line, obtain the left knife gate arm upper edge line set, record all groups with average angles greater than or equal to 0 as the same group of the left knife gate arm lower edge line, and obtain the left knife gate arm lower edge line set; traverse all the same groups of the right knife gate arm edge line set, calculate the average angle of each group, record all groups with average angles greater than 0 as the same group of the right knife gate arm upper edge line, obtain the right knife gate arm upper edge line set, record all groups with average angles less than or equal to 0 as the same group of the right knife gate arm lower edge line, and obtain the right knife gate arm lower edge line set; traverse all the same groups of the left knife gate arm upper edge line set and the right knife gate arm upper edge line set and perform one-to-one pairing, calculate the corrected knife gate arm edge lines and pairing scores of any two groups, and the corrected left upper knife gate arm edge line and the corrected right upper knife gate arm edge line corresponding to the combination with the highest score are the final upper edge line of the left knife gate arm and the final upper edge line of the right knife gate arm; Traverse all the same groups of the left knife gate arm lower edge line set and the right knife gate arm lower edge line set and perform one-to-one pairing, calculate the corrected knife gate arm edge lines and pairing scores of any two groups, and the corrected left lower knife gate arm edge line and the corrected right lower knife gate arm edge line corresponding to the combination with the highest score are the final lower edge line of the left knife gate arm and the final lower edge line of the right knife gate arm; The method of "traversing all the same groups of the left knife gate arm upper edge line set and the right knife gate arm upper edge line set and pairing them one by one, and calculating the corrected knife gate arm edge lines and pairing scores of any two groups" is: Traverse all the same groups of the left knife gate arm upper edge line set and the right knife gate arm upper edge line set, calculate the average angle of each group, the average angle of each group of the left knife gate arm upper edge line set is combined with the left midpoint to obtain the corrected left upper edge line of each group of the left knife gate arm upper edge line set, and the intersection of the corrected left upper edge line and the midline is recorded as point A1; the average angle of each group of the right knife gate arm upper edge line set is combined with the right midpoint to obtain the corrected right upper edge line of each group of the right knife gate arm upper edge line set, and the intersection of the corrected right upper edge line and the midline is recorded as point B1, and the distance between point A1 and point B1 is calculated , the distance between the left and right midpoints of the knife gate arm is , The smaller the value, the greater the probability that the paired corrected left upper edge line and corrected right upper edge line are the actual left knife gate arm upper edge line and the actual right knife gate arm upper edge line. Then the group where point A1 is located and the group where point B1 is located are eliminated; for all the groups of the upper edge line set of the left knife gate arm and the right knife gate arm, the calculation formula for the pairing score of any two groups is , where the coefficient It represents the sum of the squares of the lengths of any edge line in the same group on the left knife gate arm. Represents the sum of the squares of the lengths of any edge line in the same group on the right knife gate arm; the highest matching score The corresponding corrected left upper edge line where point A1 is located and the corrected right upper edge line where point B1 is located are the final upper edge line of the left knife gate arm and the final upper edge line of the right knife gate arm; The method of "traversing all the same groups of the left gate arm lower edge line set and the right gate arm lower edge line set and pairing them one by one, and calculating the corrected gate arm edge lines and pairing scores of any two groups" is as follows: traverse all the same groups of the left gate arm lower edge line set and the right gate arm lower edge line set, calculate the average angle of each group, combine the average angle of each group of the left gate arm lower edge line set with the left midpoint to obtain the corrected left lower edge line of each group of the left gate arm lower edge line set, and record the intersection of the corrected left lower edge line and the midline as point A2; combine the average angle of each group of the right gate arm lower edge line set with the right midpoint to obtain the corrected right lower edge line of each group of the right gate arm lower edge line set, and record the intersection of the corrected right lower edge line and the midline as point B2, and calculate the distance between point A2 and point B2 , The smaller the value, the greater the probability that the paired corrected left lower edge line and corrected right lower edge line are the actual left knife gate arm lower edge line and the actual right knife gate arm lower edge line. Then the group where point A2 is located and the group where point B2 is located are eliminated; For all the same groups of the lower edge line sets of the left and right knife gate arms, the calculation formula for the pairing score of any two groups is , where the coefficient It represents the sum of the squares of the lengths of any edge line in the same group of the lower edge line set of the left knife gate arm. The sum of the squares of the lengths of any edge line in the same group of the right knife gate arm lower edge line set; the highest matching score The corresponding corrected left lower edge line where point A2 is located and the corrected right lower edge line where point B2 is located are the final lower edge line of the left knife gate arm and the final lower edge line of the right knife gate arm.

2. The method for detecting the opening and closing angles of a split knife switch with non-parallel upper and lower boundaries according to claim 1 is characterized in that: The method of "establishing the boundary line model of the knife switch of this model according to the template image and saving it as a model file" is as follows: set up a program on the computer, use the program to open the template image, draw upper and lower boundary lines according to the top and bottom of the knife switch arm of the template image, draw the left insulator center line and the right insulator center line, and save the line segment endpoint coordinates corresponding to the upper and lower boundary lines and the line segment endpoint coordinates corresponding to the left and right insulator center lines as a model file; if the knife switch in the template image is in a closed state, draw the upper and lower boundary lines according to the top and bottom of the overall knife switch arm; if the knife switch in the template image is in a virtual closed or open state, draw the upper and lower boundary lines according to the actual left and right knife switch arms.

3. The method for detecting the opening and closing angles of a split knife gate with non-parallel upper and lower boundaries according to claim 1, characterized in that: The method of "calculating the distance from the left midpoint and the right midpoint of the knife gate arm of the target image to each edge line in the edge line set, eliminating the edge lines corresponding to the distances that are not within the threshold range, and obtaining the updated edge line set" is as follows: correspond the left midpoint and the right midpoint of the knife gate arm calculated according to the model file to the target image, obtain the left midpoint and the right midpoint of the target image, calculate the distance from the left midpoint of the target image to each edge line, and calculate the distance from the right midpoint to each edge line; given a left distance threshold and a right distance threshold, obtain the edge lines whose distances to the left midpoint are within the left distance threshold, obtain the edge lines whose distances to the right midpoint are within the right distance threshold, and the edge lines within the left distance threshold and the right distance threshold are the updated edge line set.

4. The method for detecting the opening and closing angles of a split knife switch with non-parallel upper and lower boundaries according to claim 1, characterized in that: The specific method of "obtaining the middle line of the left knife gate arm and the middle line of the right knife gate arm respectively according to the final upper edge line and lower edge line of the left and right knife gate arms, and the angle between the middle lines of the left and right knife gate arms is the angle between the left knife gate arm and the right knife gate arm" is: The straight line passing through the left midpoint and the angle of which is the average angle of the final upper edge line and lower edge line of the left knife gate arm is the middle line of the left knife gate arm. The straight line passing through the right midpoint and the angle of which is the average angle of the final upper edge line and lower edge line of the right knife gate arm is the middle line of the right knife gate arm. The angle of the middle line of the left knife gate arm relative to the straight line where the knife gate arm in the closed state is The angle between the middle line of the right knife gate arm and the straight line where the knife gate arm is in the closed state is , the final angle between the left and right knife gate arms is .

Citation Information

Patent Citations

  • Machine vision-based method for judging the closing operation of disconnector

    CN109063764A

  • Method and device for determining opening-closing state of knife switch

    CN110163833A

  • Method for extracting straight line segment in electric knife switch image

    CN110189344A

  • Knife gate valve with skewed gate seat interface

    US20090236554A1