State recognition method and system for driving mechanism of high-voltage switchgear

Through image recognition technology, a camera is used to obtain image data of the driving mechanism of the high-voltage switchgear, and the angular velocity is calculated, which solves the problem of complex sensor installation and high cost in the existing technology, and realizes low-cost, universal status recognition and real-time monitoring functions.

CN118587485APending Publication Date: 2024-09-03SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410652702.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing condition monitoring method of the driving mechanism of high-voltage switchgear requires the installation of a variety of sensors, resulting in a complex structure and high cost. The sensor fixing bracket needs to be redesigned for different types of products, which lacks versatility.

Method used

By acquiring the image data of the driving mechanism in real time, identifying and determining the labels in the outline, calculating the direction vector and angular velocity, and judging the status of the driving mechanism, one camera can be used to realize the functions of multiple sensors, reducing costs and improving versatility.

Benefits of technology

It realizes low-cost drive mechanism status identification, simplifies the structural design, is suitable for various types of high-voltage switchgear, and can transmit image data in real time to facilitate users to view movement conditions and gear wear.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587485A
    Figure CN118587485A
Patent Text Reader

Abstract

The invention provides a state identification method and system for a driving mechanism of high-voltage switchgear, and the method comprises the steps: obtaining image data of the driving mechanism in real time, carrying out the identification of the image data, determining the contour of the driving mechanism, and positioning a corresponding label at the contour of the driving mechanism, the center label is used for calibrating the center structure of the driving mechanism, and the edge label is used for calibrating the edge structure of the driving mechanism; determining a direction vector from the center label to the edge label, and determining a difference value between a direction vector of a previous frame and a direction vector of a current frame according to two continuous frames of image data to obtain a difference value vector; determining the rotating angle between the two frames according to the difference vector, calculating the corresponding angular velocity, and judging the corresponding state of the driving mechanism according to the angular velocity. According to the invention, state quantities such as speed, acceleration, rotation direction and the like which can be calculated by a plurality of sensors can be realized only by the camera, and the material cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of state recognition of a driving mechanism, and in particular to a state recognition method and system for a driving mechanism of a high-voltage switchgear. Background Art

[0002] With the development of power electronics technology, we have put forward new requirements for high-voltage switchgear, requiring that the operating status be observable, measurable and controllable. As the most important part of the high-voltage switch, the operating status (speed, torque, acceleration, etc.) of the GIS switch drive mechanism is an important indicator of the health status of the high-voltage switch. At present, the high-voltage switch drive mechanism includes a spring mechanism, a hydraulic mechanism, and an intelligent motor drive mechanism that has appeared in recent years. The current monitoring method is to add a series of sensors such as encoders, vibration sensors, and acceleration sensors to the transmission mechanism to obtain the corresponding state quantity. This method requires the installation of a fixed bracket for the sensor in the high-voltage switch drive mechanism box, which will make the structure of the already compact mechanism box more complicated. Secondly, for different types of high-voltage switches, the structures and installation positions of the various parts in the drive mechanism box are different, so the installation of sensors needs to be redesigned for each different model of product. Summary of the invention

[0003] The purpose of the present invention is to provide a method and system for identifying the state of a drive mechanism of a high-voltage switchgear, so as to solve the technical problem of how to realize low-cost state identification of the drive mechanism.

[0004] On the one hand, a method for identifying a state of a driving mechanism of a high-voltage switchgear is provided, comprising:

[0005] Acquire image data of the driving mechanism in real time, identify the image data, determine the outline of the driving mechanism and position corresponding labels thereon, wherein the labels at least include a center label and an edge label, wherein the center label is used to mark the center structure of the driving mechanism, and the edge label is used to mark the edge structure of the driving mechanism;

[0006] Determine the direction vector from the center label to the edge label according to the position of the label within the outline of the driving mechanism, and determine the difference between the direction vector of the previous frame and the direction vector of the current frame according to two consecutive frames of image data to obtain a difference vector;

[0007] The angle rotated between the two frames is determined according to the difference vector and the corresponding angular velocity is calculated, and the corresponding state of the driving mechanism is determined according to the angular velocity.

[0008] Preferably, the identifying of the image data comprises:

[0009] The image data is converted into a preset image format, and the color information of the image data is identified; the color information at least includes hue, saturation and brightness.

[0010] Preferably, the identifying of the image data further comprises:

[0011] Traverse each pixel color of the image. When the pixel color is within the preset threshold, set the pixel value of the corresponding position to the first preset parameter, and set the pixel values ​​corresponding to other colors to the second preset parameter to obtain the corresponding binary image.

[0012] Preferably, determining the direction vector from the center label to the edge label includes:

[0013] The coordinate value of the center label and the coordinate value of the edge label are determined, and the difference between the coordinate value of the edge label and the coordinate value of the center label is used as the corresponding direction vector.

[0014] Preferably, the angle between two frames is determined according to the following formula:

[0015]

[0016] Among them, θ is the angle between the two frames. is the direction vector of the previous frame, is the current frame direction vector, is the difference vector.

[0017] Preferably, the corresponding angular velocity is calculated according to the following formula:

[0018]

[0019] Among them, ω is the angular velocity, and Δt is the time interval between two frames of pictures.

[0020] Preferably, judging the state of the driving mechanism according to the angular velocity includes:

[0021] When the angular velocity meets the preset judgment standard, it is determined that the driving mechanism is in a normal state;

[0022] When the angular velocity does not meet the preset judgment standard, it is determined that the driving mechanism state is abnormal.

[0023] On the other hand, a state recognition system for a driving mechanism of a high-voltage switchgear is also provided to implement the method described, comprising:

[0024] An image recognition module, used to acquire image data of the driving mechanism in real time, recognize the image data, determine the outline of the driving mechanism and locate corresponding labels thereon, wherein the labels at least include a center label and an edge label, wherein the center label is used to mark the center structure of the driving mechanism, and the edge label is used to mark the edge structure of the driving mechanism;

[0025] A vector calculation module, used to determine the direction vector from the center label to the edge label according to the position of the label within the outline of the driving mechanism, and determine the difference between the direction vector of the previous frame and the direction vector of the current frame according to two consecutive frames of image data to obtain a difference vector;

[0026] The state judgment module is used to determine the angle rotated between two frames according to the difference vector and calculate the corresponding angular velocity, and judge the corresponding state of the driving mechanism according to the angular velocity.

[0027] In summary, the implementation of the embodiments of the present invention has the following beneficial effects:

[0028] The state recognition method and system for the driving mechanism of the high-voltage switchgear provided by the present invention have a simple structure and only require one camera to realize the state quantities such as speed, acceleration, and rotation direction that can only be calculated by multiple sensors, greatly reducing the material cost. In addition, the structure of the present invention is highly versatile and does not require a sensor fixing bracket to be specially designed for various types of driving mechanisms. It is only necessary to attach a positioning label to the transmission gear and fix the camera. Finally, the present invention can also transmit images to the software client in real time, making it convenient for users to view the movement of the mechanism, the wear of the gears, and whether the movement is smooth. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] 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, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.

[0030] Figure 1 The main flow chart of a method for identifying the state of a driving mechanism of a high-voltage switchgear according to an embodiment of the present invention is shown.

[0031] Figure 2 Schematic diagram of a driving mechanism in an embodiment of the present invention.

[0032] Figure 3 Schematic diagram of a label in an embodiment of the present invention.

[0033] Figure 4Schematic diagram of a motion process in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0035] like Figure 1 FIG. 1 is a schematic diagram of an embodiment of a method for identifying the state of a driving mechanism of a high-voltage switchgear provided by the present invention. In this embodiment, the method comprises the following steps:

[0036] Step S1, real-time acquisition of image data of the driving mechanism, and recognition of the image data, determining the contour of the driving mechanism and locating corresponding labels thereon, wherein the labels at least include a center label and an edge label, wherein the center label is used to mark the center structure of the driving mechanism, and the edge label is used to mark the edge structure of the driving mechanism; it can be understood that, Figure 2 As shown in the figure, the hardware structure mainly includes the drive mechanism positioning mark and the industrial camera sensor. The transmission gear refers to the gear component that is closely connected to the output shaft in the drive mechanism (regardless of spring mechanism, hydraulic mechanism, or motor drive mechanism). In the following text, the transmission gear replaces the drive mechanism. The positioning mark is attached to the transmission gear and is used for camera identification and positioning. It can be distinguished by color or shape, or a combination of the two features, such as Figure 3 As shown, label 1 refers to the label at the center, and label 2 refers to the label at the edge. The selection of industrial camera sensors also has certain parameter requirements. First, the camera frame rate must be more than twice the gear speed, otherwise undersampling will occur. The transmission gear speed of the high-voltage switch drive mechanism is generally not high, and industrial cameras can basically meet this requirement. Secondly, the size of the industrial camera should be as small as possible to facilitate installation in the drive mechanism box. Finally, the exposure time of the industrial camera should be as short as possible to prevent smearing when shooting moving objects. Currently, industrial cameras can basically support dynamic shooting. Connect the camera device and the camera takes a frame of picture.

[0037] In one embodiment, the identifying of image data includes converting the image data into a preset image format and identifying color information of the image data; the color information includes at least hue, saturation and brightness. Specifically, the identifying of image data also includes traversing each pixel color of the image, and when the pixel color is within a preset threshold, the pixel value of the corresponding position is set to a first preset parameter, and the pixel values ​​corresponding to other colors are set to a second preset parameter to obtain a corresponding binary image. It is understandable that the reason for converting the original image from RGB format to HSV format and converting to HSV (Hue, Saturation, Value) color space instead of using RGB color space when performing color recognition is mainly because HSV provides a way to represent color that is more in line with human visual perception.

[0038] H (hue) represents the type of color, which is the angle value of the color, such as red, blue or yellow.

[0039] S (saturation) represents the purity of the color. The higher the value, the brighter the color.

[0040] V (brightness) represents the brightness of the color.

[0041] In HSV space, color information is only contained in the H channel, which reduces the impact of changes in lighting conditions on color recognition. Changes in brightness mainly affect the V channel, so even if lighting conditions change, different colors can be distinguished more accurately. Convert the original image from RGB format to HSV format.

[0042] In order to distinguish the red and blue labels from other colors, assuming that label 1 and label 2 in the image are blue and red respectively, we need to set color thresholds and masks for the red and blue labels respectively. Here we take label 1 as an example, and the specific principle is as follows. Label 1 is blue. In order to separate the blue pixels from the image, we must first set the blue discrimination standard, that is, the blue threshold. Here we use the range of HSV[100,43,46] to HSV[124,255,255] as the discrimination standard. All colors within this range are considered blue.

[0043] The mask is a blank image of the same size as the original image. In the process of generating the mask, the program traverses each pixel color of the HSV image. When the pixel color is within the blue threshold, the pixel value of the corresponding position of the mask is set to 255 (white), and the pixel values ​​corresponding to all other colors are set to 0 (black). In this way, a black and white image containing only the shape corresponding to the blue label is obtained. The mask images corresponding to label 1 (blue) and label 2 (red) are as follows. The mask images obtained at this time are all black and white images, that is, the so-called binary images ("binary" means that the pixel values ​​are only 0 and 255, that is, there are only two colors, black and white).

[0044] An embodiment, in actual situations, the pictures we obtain must contain some noise, which may come from surface reflection, uneven gear surface, and unreasonable color threshold setting when constructing the mask, resulting in some other colors being mistakenly identified as blue. These noises are reflected in the mask picture as white noise points and rough edges of the graphic contour. These will reduce the accuracy of subsequent identification of label contours, so it is necessary to denoise the mask picture before the next step of identifying the contour, and erosion and dilation are the two most commonly used methods in image processing.

[0045] Here is a brief description of the principle of erosion and expansion. As the name suggests, erosion is to erode the edge of an object. The specific operation method is to take a rectangle with a width of m and a height of n as a template, and do the following processing for each pixel x in the image: pixel x is at the center of the template, and according to the size of the template, all other pixels covered by the template are traversed, and the value of pixel x is modified to the minimum value of all pixels. The result of this operation is that the protruding points on the periphery of the image will be eroded.

[0046] The dilation operation is the opposite of the erosion operation, which is to expand the outline of the image. The operation method is similar to the erosion operation, which is to take a rectangular template and traverse each pixel of the image. The difference is that the value of the modified pixel is not the smallest value among all pixels, but the largest value. The result of this operation will connect the protruding points on the periphery of the image and extend them outward. In summary: dilation is used to deal with defects; erosion is used to deal with burrs. It can be seen that the erosion and dilation operation can significantly reduce noise interference.

[0047] Step S2, according to the position of the label in the contour of the driving mechanism, the direction vector from the center label to the edge label is determined, and the difference between the direction vector of the previous frame and the direction vector of the current frame is determined according to two consecutive frames of image data to obtain a difference vector; it is understandable that after obtaining the mask images of label 1 and label 2, it is also necessary to obtain their contours, so as to calculate the centroid positions of label 1 and label 2. In this invention, the contour detection uses the opencv built-in findcounter function, which is based on the canny edge detection algorithm. By detecting the pixel points with drastic changes in light and dark (i.e., large gradient changes) in the digital image, i.e., edge pixels. Opencv uses continuous polygons to fit the contour of the graphic, so the obtained contour is a collection of a series of straight lines. The centroid is calculated by the method of the minimum circumscribed circle, with the contour of the graphic obtained in the previous step as the boundary. In theory, the contour is a circle, and its minimum circumscribed circle coincides with the contour, and the center of the circumscribed circle is the centroid of the graphic. Considering the influence of noise, the contour may not be a standard circle, so there is a certain error between the center of the circumscribed circle and the centroid of the graphic. This error is acceptable for the calculation process of the present invention, so the center of the circumscribed circle is still used as the centroid. The centroid coordinates of label 1 and label 2 are saved for subsequent calculations.

[0048] In one embodiment, the determining of the direction vector from the center tag to the edge tag includes determining the coordinate value of the center tag and the coordinate value of the edge tag, and taking the difference between the coordinate value of the edge tag and the coordinate value of the center tag as the corresponding direction vector. Through the above image processing, we get the coordinate values ​​of the centroids of label 1 and label 2 in the current frame as n1 and n2 respectively. Then the vector The calculated vector The result is saved, and when the next round of the program runs to this step, this vector becomes the vector of the previous frame. The newly calculated vector becomes the current frame vector

[0049] Step S3, determining the angle rotated between the two frames according to the difference vector and calculating the corresponding angular velocity, and judging the corresponding state of the driving mechanism according to the angular velocity.

[0050] One embodiment, vector Now vector Vector Vector It forms a triangle, such as Figure 4As shown. Given the three sides of a triangle, the angle θ can be calculated using the law of cosines. (Why not use the properties of an isosceles triangle? Considering the errors in the image recognition process, the resulting triangle is likely not a standard isosceles triangle, so using the law of cosines is more accurate.) Law of cosines: For any triangle, the square of any side is equal to the sum of the squares of the other two sides minus twice the product of the cosine of the two sides and the angle between them.

[0051] The angle between two frames is determined according to the following formula:

[0052]

[0053] Among them, θ is the angle between the two frames. is the direction vector of the previous frame, is the current frame direction vector, is the difference vector.

[0054] Now we know the time interval Δt (a fixed parameter of the camera) between the two frames of pictures and the angle θ turned during this time, and we can calculate the angular velocity ω of the gear rotation based on this. At this point, the data processing has completed a cycle, and the real-time value of the angular velocity of the gear rotation can be obtained by continuously running the program in a loop.

[0055] The corresponding angular velocity is calculated according to the following formula:

[0056]

[0057] Among them, ω is the angular velocity, and Δt is the time interval between two frames of pictures.

[0058] Determining the state of the driving mechanism according to the angular velocity includes: determining that the state of the driving mechanism is normal when the angular velocity meets a preset judgment standard; and determining that the state of the driving mechanism is abnormal when the angular velocity does not meet the preset judgment standard.

[0059] The embodiment of the present invention further provides a state recognition system for a driving mechanism of a high-voltage switchgear, which is used to implement the state recognition method for a driving mechanism of a high-voltage switchgear, comprising:

[0060] An image recognition module, used to acquire image data of the driving mechanism in real time, recognize the image data, determine the outline of the driving mechanism and locate corresponding labels thereon, wherein the labels at least include a center label and an edge label, wherein the center label is used to mark the center structure of the driving mechanism, and the edge label is used to mark the edge structure of the driving mechanism;

[0061] A vector calculation module, used to determine the direction vector from the center label to the edge label according to the position of the label within the outline of the driving mechanism, and determine the difference between the direction vector of the previous frame and the direction vector of the current frame according to two consecutive frames of image data to obtain a difference vector;

[0062] A state judgment module is used to determine the angle between the two frames according to the difference vector and calculate the corresponding angular velocity, and judge the corresponding state of the driving mechanism according to the angular velocity,

[0063] In summary, the implementation of the embodiments of the present invention has the following beneficial effects:

[0064] The state recognition method and system for the driving mechanism of the high-voltage switchgear provided by the present invention have a simple structure and only require one camera to realize the state quantities such as speed, acceleration, and rotation direction that can only be calculated by multiple sensors, greatly reducing the material cost. In addition, the structure of the present invention is highly versatile and does not require a sensor fixing bracket to be specially designed for various types of driving mechanisms. It is only necessary to attach a positioning label to the transmission gear and fix the camera. Finally, the present invention can also transmit images to the software client in real time, making it convenient for users to view the movement of the mechanism, the wear of the gears, and whether the movement is smooth.

[0065] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for identifying the state of a driving mechanism of a high-voltage switchgear, characterized in that: include: Acquire image data of the driving mechanism in real time, identify the image data, determine the outline of the driving mechanism and position corresponding labels thereon, wherein the labels at least include a center label and an edge label, wherein the center label is used to mark the center structure of the driving mechanism, and the edge label is used to mark the edge structure of the driving mechanism; Determine the direction vector from the center label to the edge label according to the position of the label within the outline of the driving mechanism, and determine the difference between the direction vector of the previous frame and the direction vector of the current frame according to two consecutive frames of image data to obtain a difference vector; The angle rotated between the two frames is determined according to the difference vector and the corresponding angular velocity is calculated, and the corresponding state of the driving mechanism is determined according to the angular velocity.

2. The method according to claim 1, characterized in that The identifying of the image data comprises: The image data is converted into a preset image format, and the color information of the image data is identified; the color information at least includes hue, saturation and brightness.

3. The method according to claim 2, characterized in that The identifying of the image data further comprises: Traverse each pixel color of the image. When the pixel color is within the preset threshold, set the pixel value of the corresponding position to the first preset parameter, and set the pixel values ​​corresponding to other colors to the second preset parameter to obtain the corresponding binary image.

4. The method according to claim 1, characterized in that Determining the direction vector from the center label to the edge label includes: The coordinate value of the center label and the coordinate value of the edge label are determined, and the difference between the coordinate value of the edge label and the coordinate value of the center label is used as the corresponding direction vector.

5. The method according to claim 1, characterized in that The angle between two frames is determined according to the following formula: Among them, θ is the angle between the two frames. is the direction vector of the previous frame, is the current frame direction vector, is the difference vector.

6. The method according to claim 1, characterized in that The corresponding angular velocity is calculated according to the following formula: Among them, ω is the angular velocity, and Δt is the time interval between two frames of pictures.

7. The method according to claim 1, characterized in that The determining of the state of the driving mechanism according to the angular velocity includes: When the angular velocity meets the preset judgment standard, it is determined that the driving mechanism is in a normal state; When the angular velocity does not meet the preset judgment standard, it is determined that the driving mechanism state is abnormal.

8. A state recognition system for a driving mechanism of a high-voltage switchgear, used to implement the method according to any one of claims 1 to 7, characterized in that: include, An image recognition module, used to acquire image data of the driving mechanism in real time, recognize the image data, determine the outline of the driving mechanism and locate corresponding labels thereon, wherein the labels at least include a center label and an edge label, wherein the center label is used to mark the center structure of the driving mechanism, and the edge label is used to mark the edge structure of the driving mechanism; A vector calculation module, used to determine the direction vector from the center label to the edge label according to the position of the label within the outline of the driving mechanism, and determine the difference between the direction vector of the previous frame and the direction vector of the current frame according to two consecutive frames of image data to obtain a difference vector; The state judgment module is used to determine the angle rotated between two frames according to the difference vector and calculate the corresponding angular velocity, and judge the corresponding state of the driving mechanism according to the angular velocity.