Disconnector knife switch motion state analysis method and system based on image processing
Through image processing technology, cross-correlation formulas and feature point detection are used to reduce the complexity of the motion state analysis of the substation isolating switch blade, improve the identification efficiency, and solve the problems of low efficiency and high risk of misoperation in the existing technology.
Patent Information
- Application Number
- CN202411044690.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-08-01
AI Technical Summary
The motion state analysis and recognition efficiency of the isolating switch blades in the substation is low and is greatly affected by lighting, background weather and viewing angles, resulting in a high risk of misoperation, which may lead to accidents.
A method based on image processing is used to obtain the motion video of the isolating switch knife. After grayscale transformation, the cross-correlation formula is used to process, detect feature points, set interception thresholds to construct a transformation matrix, calculate the proportional inverse matrix, and then determine the direction and state of movement. Reduce computational complexity and improve recognition efficiency.
It effectively reduces the computational complexity of the motion state analysis of the isolating switch knife gate, improves the identification efficiency, improves the analysis effect, and reduces the risk of misoperation.
Smart Images

Figure CN118570707B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of circuit protection, and in particular relates to an image processing-based method and system for analyzing the motion state of an isolating switch. Background Art
[0002] The switching operation of the isolating switch is one of the most important operation and maintenance contents in the daily operation of the substation. The success of the switching operation is directly related to the safe operation of the power grid. However, the traditional switching operation of the substation is not intelligent enough and the risk of misoperation is high. The existing intelligent equipment in the substation is difficult to meet the requirements for the success rate of the isolating switch status recognition. Therefore, many intelligent substations with automatic control systems and sequential control modules cannot fully realize unmanned operation.
[0003] In the prior art, traditional image algorithms are mainly used to analyze and identify the motion state of the isolating switch in the substation, as shown in the attached manual. Figure 1 As shown, it includes the following steps: (1) obtaining the monitoring video in the substation video monitoring system: extracting the isolating switch knife switch movement monitoring video clip for analysis from the substation video monitoring system; (2) extracting a certain frame in the video as the analysis object: in the obtained video, select a certain frame as the object for further analysis; (3) converting the image format and cropping the interference edge of the image: in order to facilitate processing, it is necessary to convert the image format and crop the interference edge part in the image; (4) converting the image to a grayscale image: converting the image from color mode to grayscale mode, which can reduce color interference and focus on changes in brightness and contrast; (5) local gradient value smoothing preprocessing: smoothing the local gradient value of the image can eliminate noise and some unimportant details, making the image clearer; (6) Image binarization: The image is divided into two levels, black and white, through binarization, which is usually achieved by using the threshold method; (7) Line segment fitting: Try to find the line segments in the image and perform fitting processing; for each fitted line segment, judge and screen its slope, length, etc.; (8) Obtain valid line segments: After the above series of operations, valid line segments are obtained; (9) Form a combination of valid line segments: These valid line segments are merged or combined together to form a more complete line segment set; (10) Valid line segment projection: The formed valid line segment set is projected; (11) Calculate the projection duty cycle: Calculate the ratio of the projection area to the entire image area, that is, the duty cycle; (12) Determine the open and closed state of the disconnector: Determine the state of the disconnector based on the duty cycle and other relevant data.
[0004] However, the overall shape of the isolating switch at the substation site is complex, and the video intelligent judgment algorithm is greatly affected by lighting, background weather and viewing angle. The elements that need to be eliminated, corrected and extracted are numerous and complex, and the method steps are complicated. As a result, the efficiency of the motion state analysis and identification of the isolating switch is low at this stage, which directly affects the analysis effect of the isolating switch, and may lead to substation accidents. Summary of the invention
[0005] The purpose of the present invention is to provide an isolating switch knife switch motion state analysis method and system based on image processing, after obtaining the isolating switch knife switch motion video and performing grayscale transformation, the grayscale image is processed using the cross-correlation formula to obtain an intermediate quantity matrix, the interception threshold is set to intercept the intermediate quantity matrix to construct a transformation matrix, and the proportional inverse matrix of the transformation matrix is calculated; at the same time, the feature points of the grayscale image are detected to obtain a feature point matrix; finally, the isolating switch knife switch motion direction is obtained according to the feature point matrix and the proportional inverse matrix, and then the isolating switch knife switch motion state is determined. The present invention sets a judgment condition in the step of detecting the feature points of the grayscale image, which can reduce the computational complexity of the isolating switch knife switch motion state analysis; and the feature point response value is used to improve the isolating switch knife switch motion state recognition efficiency.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: a method for analyzing the motion state of a disconnector knife switch based on image processing, comprising the following steps:
[0007] S1: obtaining a motion video of the isolating switch, and converting each frame of the motion video of the isolating switch into a grayscale image;
[0008] S2: Process the grayscale image using a cross-correlation formula to obtain a first intermediate quantity matrix Ia-m, a second intermediate quantity matrix Ib-m, and a third intermediate quantity matrix Ic-m;
[0009] S3: Detect the feature points of the grayscale image to obtain a feature point matrix C1;
[0010] S4: setting a truncation threshold t, performing matrix truncation on the above three intermediate quantity matrices, and obtaining truncation matrices I1, I2 and I3;
[0011] S5: construct a transformation matrix A=[I1 I2] based on the truncated matrices I1 and I2, and further calculate the proportional inverse matrix INA of the transformation matrix A based on the truncated matrix I3;
[0012] S6: Using the characteristic point matrix C1 in step S3 and the proportional inverse matrix INA in step S5, the movement direction of the isolating switch is obtained and the movement state of the isolating switch is determined.
[0013] Furthermore, in step S2, the grayscale image is processed using a cross-correlation formula to obtain a first intermediate quantity matrix Ia-m, a second intermediate quantity matrix Ib-m, and a third intermediate quantity matrix Ic-m, which are specifically:
[0014] ;
[0015] Where G(i, j) is the matrix point of the grayscale image obtained in step S1, i and j represent the coordinates of the matrix point, w(u, v) represents the window matrix of u rows and v columns, ONE(u, v) represents the matrix of all 1s in u rows and v columns, and w T (u, v) represents the transpose of the window matrix w(u, v), and k represents a constant.
[0016] Furthermore, the feature points of the grayscale image are detected in step S3, specifically:
[0017] ;
[0018] Among them, E(u, v) represents the energy function of the grayscale image, u and v represent the horizontal component and vertical component of the energy function of the grayscale image respectively, n(x, y) represents the weight function, I(x, y) represents the grayscale image pixel before displacement, I(x+u, y+v) represents the grayscale image pixel after displacement, M represents the autocorrelation matrix, f(w) is the filter function, R1 and R2 are the first feature point response value and the second feature point response value respectively, |Ix| and |Iy| represent the horizontal and vertical coordinate change rates of the grayscale image pixel obtained when R1 meets the first judgment condition respectively, Kp represents the proportional coefficient, a, b, c are all intermediate variables; the feature points of the above grayscale image are determined based on the size of the second feature point response value R2.
[0019] Furthermore, the first determination condition is that R1 is greater than a first threshold.
[0020] Furthermore, the determining of the feature point of the grayscale image based on the magnitude of the second feature point response value R2 is specifically that when the second feature point response value R2 is greater than the second threshold, the pixel point of the grayscale image is the feature point.
[0021] Further, in step S4, I1=Ia_m(it:i+t, jt:j+t); I2=Ib_m(it:i+t, jt:j+t); I3=Ic_m(it:i+t, jt:j+t), where t is the interception threshold.
[0022] Furthermore, in step S5, the proportional inverse matrix INA=A×(-I3)=[I1 I2]×(-I3).
[0023] Furthermore, in step S6, the characteristic point matrix C1 in step S3 and the proportional inverse matrix INA in step S5 are used to obtain the movement direction of the isolating switch. Specifically, the movement vector of the isolating switch is drawn with the column elements of the characteristic point matrix C1 as the starting point, the column elements of the proportional inverse matrix INA as the end point, and the unit length as the modulus, and the movement direction of the isolating switch is determined according to the direction of the vector arrow.
[0024] The present invention also provides an isolating switch knife switch motion state analysis system based on image processing, comprising a video acquisition unit and a motion state analysis unit, wherein the video acquisition unit is connected to the motion state analysis unit, and the isolating switch knife switch motion state analysis system is used to execute any of the above-mentioned isolating switch knife switch motion state analysis methods based on image processing. The motion state analysis unit is implemented by FPGA, DSP or MCU.
[0025] The beneficial technical effect of the present invention compared with the prior art is that setting judgment conditions in the step of detecting feature points of grayscale images can reduce the computational complexity of the motion state analysis of the isolating switch knife switch; in addition, the feature point response value is used to improve the efficiency of identifying the motion state of the isolating switch knife switch. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0027] Figure 1 It is a flow chart of the existing isolating switch knife switch motion state analysis method;
[0028] Figure 2 It is a flow chart of the isolating switch knife switch motion state analysis method based on image processing of the present invention;
[0029] Figure 3 A schematic structural diagram of the isolating switch knife switch motion state analysis system based on image processing of the present invention;
[0030] Figure 4 The present invention is a result of applying the isolating switch knife switch motion state analysis method of the present invention to the motion analysis of a robot. DETAILED DESCRIPTION
[0031] 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.
[0032] The following first describes the concepts involved in the present application in conjunction with the accompanying drawings. It should be noted that the following description of each concept is only to make the content of the present application easier to understand, and does not limit the scope of protection of the present application; at the same time, the embodiments and features in the embodiments of the present application can be combined with each other in the absence of conflict. The present application will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.
[0033] Combination Figure 2 The present invention proposes a method for analyzing the motion state of an isolating switch based on image processing, which comprises the following steps:
[0034] Step S1: acquiring a motion video of the isolating switch from a video monitoring system of the substation, and converting each video frame of the motion video of the isolating switch into a grayscale image;
[0035] Step S2: Process the grayscale image using the cross-correlation formula to obtain the first intermediate quantity matrix Ia-m, the second intermediate quantity matrix Ib-m, and the third intermediate quantity matrix Ic-m; specifically as follows:
[0036] ;
[0037] Where G(i, j) is the matrix coordinate point of the grayscale image obtained in step S1, i and j represent the coordinates of the matrix coordinate point, w(u, v) represents the window matrix of u rows and v columns, ONE(u, v) represents the matrix of all 1s of u rows and v columns, and w T (u, v) represents the transpose of the window matrix w(u, v), and k represents a constant.
[0038] Step S3: Detect the feature points of the grayscale image and obtain a feature point matrix C1; wherein the feature points of the grayscale image are detected using the following formula:
[0039] ;
[0040] Among them, E(u, v) represents the energy function of the grayscale image, u and v represent the horizontal component and vertical component of the energy function of the grayscale image, respectively, n(x, y) represents the weight function, I(x, y) represents the grayscale image pixel before displacement, I(x+u, y+v) represents the grayscale image pixel after displacement, M represents the autocorrelation matrix, f(w) is the filter function, and Gaussian filter function is preferably used, R1 and R2 are the first feature point response value and the second feature point response value, respectively, |Ix| and |Iy| represent the horizontal and vertical coordinate change rates of the grayscale image pixel obtained when R1 meets the first judgment condition, Kp represents the proportional coefficient, a, b, c are all intermediate variables; the feature point of the above grayscale image is determined based on the size of the second feature point response value R2. It should be noted here that the conventional feature point response value in the prior art is related to the variable k1×(ac-b 2 ) and k2×(a+c) 2 Therefore, in the motion state analysis method of the isolating switch knife switch of the present invention, by setting the first characteristic point response value R1 equal to kp×(ac-b 2 ) and ignore k2×(a+c) 2 Variables can simplify the calculation process of the response value of the first feature point and reduce the computational complexity of the analysis of the motion state of the isolating switch knife switch; in addition, the inventors of the present invention have found through a large number of experiments that points with larger horizontal and vertical coordinate change rates of grayscale image pixels often belong to the feature points of the grayscale image to be detected by the analysis method of the present invention. Therefore, the horizontal and vertical coordinate change rates of the grayscale image pixels are used in the present invention to construct a characteristic point response value R2 calculation formula, and the horizontal and vertical coordinate change rates of the grayscale image are multiplied, thereby highlighting this change rate, which can effectively identify the above-mentioned feature points, thereby improving the efficiency of identifying the motion state of the isolating switch knife switch.
[0041] The horizontal coordinate change rate |Ix| of the above pixel is the ratio of the horizontal coordinate change amplitude to the time elapsed for the change; the vertical coordinate change rate |Iy| of the above pixel is the ratio of the vertical coordinate change amplitude to the time elapsed for the change.
[0042] The first judgment condition is that R1 is greater than the first threshold value, and the determination of the feature point of the grayscale image based on the size of the second feature point response value R2 is specifically that when the second feature point response value R2 is greater than the second threshold value, the grayscale image pixel point is the feature point; that is, the grayscale image pixel points whose R1 is greater than the first threshold value are screened out as alternatives, and then the R2 of the alternative grayscale image pixel points is calculated, and the grayscale image pixel points whose R2 is greater than the second threshold value are used as feature points. The first threshold value and the second threshold value can be flexibly set according to the actual use environment of the isolating switch knife switch.
[0043] Step S4: Set the interception threshold t, perform matrix interception on the above three intermediate quantity matrices, and obtain the intercepted matrices I1, I2 and I3. The purpose of setting the threshold here is to reduce the amount of calculation. When the computing power is sufficient, the interception threshold can be changed to obtain a matrix of larger dimension. When the computing power is limited, the interception threshold can be set to obtain a matrix of smaller dimension. The intercepted matrix I1 is specifically I1=Ia_m(it:i+t, jt:j+t); the intercepted matrix I2 is specifically I2=Ib_m(it:i+t, jt:j+t); the intercepted matrix I3 is specifically I3=Ic_m(it:i+t, jt:j+t), where t is the interception threshold.
[0044] Step S5: construct a transformation matrix A=[I1 I2] based on the intercepted matrices I1 and I2, and calculate the proportional inverse matrix INA of the transformation matrix A according to I3;
[0045] Step S6: Using the characteristic point matrix C1 in step S3 and the proportional inverse matrix INA in step S5, the movement direction of the isolating switch is obtained and the movement state of the isolating switch is determined. The proportional inverse matrix is specifically calculated using the following formula: INA=A×(-I3)=[I1 I2]×(-I3).
[0046] In the above step S6, the characteristic point matrix C1 and the proportional inverse matrix INA are used to obtain the movement direction of the isolating switch blade. Specifically, the isolating switch blade movement vector is drawn with the column element of the characteristic point matrix C1 as the starting point, the column element of the proportional inverse matrix INA as the end point, and the unit length as the modulus, and the movement direction of the isolating switch blade is determined according to the direction of the vector arrow. The direction of the arrow is the movement direction of the isolating switch blade obtained by the isolating switch blade movement state analysis method based on image processing of the present invention. By analyzing a plurality of continuous motion video frames of the above isolating switch blades, it is possible to determine whether the isolating switch blade is in the process of opening or closing.
[0047] Combination Figure 3 The present invention also provides an isolating switch knife gate motion state analysis system based on image processing, including a video acquisition unit and a motion state analysis unit, the video acquisition unit is used to acquire the isolating switch knife gate motion video in the substation video monitoring system, the video acquisition unit is connected to the motion state analysis unit, and the isolating switch knife gate motion video is input into the motion state analysis unit, the isolating switch knife gate motion state analysis system is used to execute any of the above-mentioned isolating switch knife gate motion state analysis methods based on image processing, and the motion state analysis unit is implemented by FPGA or DSP or MCU.
[0048] Since the isolating switch and the arms and legs of the small robot are both linear metal structures and have similar motion properties, in order to verify the effectiveness of the motion state analysis method of the present invention, the inventor applied the motion state analysis method of the present invention to the motion analysis of the small robot. Figure 4 , attached Figure 4 (a) is the first video frame of the small robot moving. Figure 4 (b) is the 100th video frame of the small robot motion. Figure 4 (c) is the 101st video frame of the small robot motion. Figure 4 (d) is the result of analyzing the 100th and 101st video frames of the small robot. Although the movement trajectory of the small robot in the 100th and 101st video frames cannot be identified by the naked eye, the attached Figure 4 As can be seen from (d), the motion state analysis method of the present invention clearly analyzes the swing direction and motion trajectory of the robot's arms and legs between consecutive video frames. Figure 4 The results shown in (d) also indirectly prove the effectiveness and reliability of the motion state analysis method of the present invention.
[0049] The embodiments and / or implementation methods described above are only used to illustrate the preferred embodiments and / or implementation methods for realizing the technology of the present invention, and are not intended to limit the implementation methods of the technology of the present invention in any form. Any technical personnel in this field may make slight changes or modifications to other equivalent embodiments without departing from the scope of the technical means disclosed in the content of the present invention, but they should still be regarded as technologies or embodiments that are essentially the same as the present invention.
[0050] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the concept and technical solution of the invention to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. A method for analyzing the motion state of a disconnector knife switch based on image processing, characterized in that: The steps include: S1: obtaining a motion video of the isolating switch, and converting each frame of the motion video of the isolating switch into a grayscale image; S2: Process the grayscale image using a cross-correlation formula to obtain a first intermediate quantity matrix Ia-m, a second intermediate quantity matrix Ib-m, and a third intermediate quantity matrix Ic-m; S3: Detect the feature points of the grayscale image to obtain a feature point matrix C1; S4: setting a truncation threshold t, performing matrix truncation on the first intermediate quantity matrix, the second intermediate quantity matrix and the third intermediate quantity matrix, and obtaining truncation matrices I1, I2 and I3; S5: construct a transformation matrix A=[I1 I2] based on the truncated matrices I1 and I2, and further calculate the proportional inverse matrix INA of the transformation matrix A based on the truncated matrix I3; the proportional inverse matrix INA=A×(-I3)=[I1 I2]×(-I3); S6: Use the characteristic point matrix C1 in step S3 and the proportional inverse matrix INA in step S5 to obtain the movement direction of the isolating switch and determine the movement state of the isolating switch. Specifically, use the characteristic point matrix C1 in step S3 and the proportional inverse matrix INA in step S5 to obtain the movement direction of the isolating switch. Specifically, use the column elements of the characteristic point matrix C1 as the starting point, the column elements of the proportional inverse matrix INA as the end point, and the unit length as the modulus to draw the movement vector of the isolating switch. Determine the movement direction of the isolating switch according to the direction of the vector arrow.
2. The method for analyzing the motion state of the isolating switch blade based on image processing according to claim 1, characterized in that: In step S2, the grayscale image is processed using the cross-correlation formula to obtain the first intermediate quantity matrix Ia-m, the second intermediate quantity matrix Ib-m, and the third intermediate quantity matrix Ic-m, which are specifically: ; Where G(i, j) is the matrix point of the grayscale image obtained in step S1, i and j represent the coordinates of the matrix point, w(u, v) represents the window matrix of u rows and v columns, ONE(u, v) represents the matrix of all 1s in u rows and v columns, and w T (u, v) represents the transpose of the window matrix w(u, v), and k represents a constant.
3. The method for analyzing the motion state of the isolating switch blade based on image processing according to claim 1, characterized in that: In step S3, the feature points of the grayscale image are detected, specifically: ; Wherein, E(u, v) represents the energy function of the grayscale image, u and v represent the horizontal component and vertical component of the energy function of the grayscale image, respectively, n(x, y) represents the weight function, I(x, y) represents the grayscale image pixel before displacement, I(x+u, y+v) represents the grayscale image pixel after displacement, M represents the autocorrelation matrix, f(w) is the filter function, R1 and R2 are the first feature point response value and the second feature point response value, respectively, |Ix| and |Iy| represent the horizontal and vertical coordinate change rates of the grayscale image pixel obtained when R1 meets the first judgment condition, respectively, Kp represents the proportional coefficient, and a, b, and c are all intermediate variables; The feature point of the grayscale image is determined based on the magnitude of the second feature point response value R2.
4. The method for analyzing the motion state of the isolating switch based on image processing according to claim 3 is characterized in that: The first determination condition is that R1 is greater than a first threshold.
5. The method for analyzing the motion state of the isolating switch based on image processing according to claim 3 is characterized in that: The determining of the feature point of the grayscale image based on the magnitude of the second feature point response value R2 specifically includes that the pixel point of the grayscale image when the second feature point response value R2 is greater than the second threshold value is the feature point.
6. The method for analyzing the motion state of the isolating switch based on image processing according to claim 1, characterized in that: In step S4, I1=Ia_m(it:i+t, jt:j+t); I2=Ib_m(it:i+t, jt:j+t); I3=Ic_m(it:i+t, jt:j+t), where t is the interception threshold.
7. The isolating switch knife switch motion state analysis system based on image processing is characterized by: It includes a video acquisition unit and a motion state analysis unit, the video acquisition unit is connected to the motion state analysis unit, and the isolating switch knife switch motion state analysis system is used to execute the isolating switch knife switch motion state analysis method based on image processing as described in any one of claims 1-6.
8. The isolating switch knife switch motion state analysis system based on image processing according to claim 7, characterized in that: The motion state analysis unit is implemented by FPGA or DSP or MCU.
