A pole-mounted circuit breaker installation position offset detection method

By obtaining the vertical vanishing point and calculating pixel weights in the circuit breaker image, the centroid and attitude axis of the circuit breaker can be accurately obtained, solving the problem of installation offset detection under the influence of perspective distortion and improving detection accuracy and safety.

CN120894348BActive Publication Date: 2025-12-12REITER ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511375268.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-25
Publication Date
2025-12-12
Estimated Expiration
2045-09-25

Smart Images

  • Figure CN120894348B_ABST
    Figure CN120894348B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image data processing, and more particularly, to a pole-mounted circuit breaker installation position offset detection method, which comprises the following steps: extracting two edge straight lines of a telegraph pole in a circuit breaker image to obtain a vertical vanishing point; calculating the weight of each pixel point in a circuit breaker pixel point set; performing weighted processing on each pixel point in the circuit breaker pixel point set to obtain a weighted pixel point set, so as to obtain the centroid and the covariance matrix of the circuit breaker; performing principal component analysis on the covariance matrix to obtain a direction vector of a posture principal axis; the centroid and the direction vector of the posture principal axis jointly constitute a posture principal axis straight line; a reference vertical line is obtained by connecting the centroid and the vertical vanishing point; an offset angle is obtained according to the included angle between the posture principal axis straight line and the reference vertical line; and in response to the offset angle being greater than a set threshold, it is determined that the installation position of the circuit breaker is offset, thereby effectively improving the accuracy of the offset detection result.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of image data processing. More particularly, the present application relates to a pole-mounted circuit breaker installation position offset detection method. BACKGROUND

[0002] The pole-mounted circuit breaker is a key protection device in the power distribution network, and its installation quality is directly related to the safe and stable operation of the power grid. In the installation process, a slight tilt or position deviation may be amplified due to wind vibration, natural disasters and other external forces in long-term operation, resulting in abnormal mechanical stress and possibly causing equipment failure, which poses a serious threat to power supply reliability. Therefore, in the engineering acceptance standard, it is required that the circuit breaker must maintain a strict vertical posture on the electric pole compared to the ground.

[0003] Currently, the industry generally uses a detection method of taking images by unmanned aerial vehicles or handheld devices, and then analyzing and detecting by computer vision algorithms.

[0004] However, in actual operation scenarios, in order to completely capture the circuit breaker at a high place into the frame, the photographer usually needs to shoot upward, resulting in perspective distortion in the captured image, so that the electric pole and the circuit breaker on it, which are originally perpendicular to the ground in three-dimensional space, appear in an inclined form in the two-dimensional image. The existing detection method is difficult to effectively distinguish the visual offset caused by the shooting angle and the real physical installation offset of the circuit breaker itself, and may misjudge the installation qualified circuit breaker as an inclined state, which has limitations, resulting in low accuracy of the detection result and failing to meet the demand of accurate acceptance on site.

[0005] Therefore, how to use a single two-dimensional image taken at an arbitrary angle to eliminate the influence of perspective distortion and accurately obtain the real installation posture detection result of the pole-mounted circuit breaker is a problem that needs to be solved at present. SUMMARY

[0006] To solve the above technical problem of how to use a single two-dimensional image taken at an arbitrary angle to eliminate the influence of perspective distortion and accurately obtain the real installation posture of the pole-mounted circuit breaker, the present application proposes a pole-mounted circuit breaker installation position offset detection method, which comprises the following steps:

[0007] An image of a circuit breaker installed on a telegraph pole is acquired, two edge straight lines of the telegraph pole in the circuit breaker image are extracted, and the intersection of the edge straight lines is determined as a vertical vanishing point; a set of circuit breaker pixel points in the circuit breaker image is acquired, the weight of each pixel point is calculated, the weight is positively correlated with the distance of each pixel point to the vertical vanishing point, is positively correlated with the gray scale standard deviation of the local neighborhood where each pixel point is located, and is negatively correlated with the difference between the brightness value of each pixel point and a set brightness ideal value; each pixel point in the set of circuit breaker pixel points is subjected to weighted processing to obtain a set of weighted pixel points, so as to obtain the centroid and the covariance matrix of the circuit breaker; principal component analysis is performed on the covariance matrix to obtain a direction vector of the posture principal axis; the centroid and the direction vector of the posture principal axis jointly constitute a posture principal axis straight line; a reference vertical line is obtained by connecting the centroid and the vertical vanishing point; an offset angle is obtained according to the included angle between the posture principal axis straight line and the reference vertical line; and in response to the offset angle being greater than a set threshold value, it is determined that the installation position of the circuit breaker is offset.

[0008] By eliminating the perspective distortion influence in the circuit breaker image, the installation position offset detection result of the circuit breaker can be accurately obtained. In the process of acquiring the detection result, by introducing the vertical vanishing point as an absolute vertical reference in the image and acquiring the posture principal axis straight line of the circuit breaker, the offset degree of the circuit breaker and the telegraph pole in the three-dimensional reality can be accurately obtained according to the included angle between the two, so that the installation position offset detection result of the circuit breaker can be accurately obtained. In acquiring the posture principal axis straight line of the circuit breaker, by giving higher weight to the pixel points with less distortion and illumination influence and richer information, the influence of such pixel points on the centroid position can be reduced, so that the measurement error caused by the perspective distortion can be reduced, the actual installation offset of the circuit breaker can be accurately detected at any upward shooting angle, and the accuracy of the detection result is improved.

[0009] According to the column circuit breaker installation position offset detection method provided by the application, the circuit breaker image installed on the telegraph pole is acquired, and two edge straight lines of the telegraph pole in the circuit breaker image are extracted, including: taking a photo containing the telegraph pole and the circuit breaker installed on the telegraph pole and preprocessing to obtain the circuit breaker image; extracting the telegraph pole mask graph in the circuit breaker image through semantic segmentation, using Suzuki algorithm to detect the contour of the telegraph pole mask graph to obtain a contour point set, and performing straight line fitting on the contour point set to obtain two edge straight lines of the telegraph pole in the circuit breaker image.

[0010] The application considers that there may be other clutter lines in the circuit breaker image, which affect the accuracy of the extraction of the edge straight lines of the telegraph pole, therefore, the application processes the image through steps such as semantic segmentation, Suzuki algorithm and straight line fitting, so that the extracted edge straight lines belong to the telegraph pole, and preparation is made for accurately determining the vertical vanishing point subsequently.

[0011] The application provides a method for detecting installation position offset of a pole-mounted circuit breaker, which extracts a pixel set of the circuit breaker in a circuit breaker image through a pre-trained YOLACT network model.

[0012] The application can accurately and quickly extract the pixel set of the circuit breaker from the circuit breaker image through the pre-trained YOLACT network model, and ensure the accuracy and integrity of the pixel set of the circuit breaker.

[0013] The application provides a method for detecting installation position offset of a pole-mounted circuit breaker, which calculates the weight of each pixel, including:

[0014] ;

[0015] The weight of the i-th pixel is, The distance of the i-th pixel to the vertical vanishing point is, The gray standard deviation of the local neighborhood where the i-th pixel is located is, The absolute value of the difference between the brightness value of the i-th pixel and the set brightness ideal value is, 、 、 The distortion weight coefficient, the edge intensity weight coefficient and the brightness uniformity weight coefficient are respectively, The zero prevention coefficient is.

[0016] The application provides a method for detecting installation position offset of a pole-mounted circuit breaker, and the method for obtaining the centroid of the circuit breaker includes: obtaining the weighted horizontal coordinate sum value of the horizontal coordinates of all pixels in the weighted pixel set and the weight, and recording the ratio of the weighted horizontal coordinate sum value to the weight sum value of all pixels as the horizontal coordinate of the centroid of the circuit breaker; obtaining the weighted vertical coordinate sum value of the vertical coordinates of all pixels in the weighted pixel set and the weight, and recording the ratio of the weighted vertical coordinate sum value to the weight sum value of all pixels as the vertical coordinate of the centroid of the circuit breaker.

[0017] The application provides an accurate method for calculating the centroid of the circuit breaker, which weights the coordinates of each pixel through the weight of each pixel, so that the finally obtained centroid can accurately reflect the center position of the high-weight pixel, and lay a foundation for subsequent determination of the posture main shaft straight line and the reference vertical line.

[0018] The application provides a method for detecting installation position offset of a pole-mounted circuit breaker, and the method for performing principal component analysis on the covariance matrix to obtain the direction vector of the posture main shaft includes: determining the eigenvector corresponding to the maximum eigenvalue as the direction vector of the posture main shaft.

[0019] A pole-mounted circuit breaker installation position offset detection method provided by the application, the direction vectors of the center of mass and the attitude principal axis jointly constitute an attitude principal axis straight line, comprising:

[0020] ;

[0021] the attitude principal axis straight line of the circuit breaker, the coordinates of the center of mass of the circuit breaker, an arbitrary real number, the direction vector of the attitude principal axis.

[0022] A pole-mounted circuit breaker installation position offset detection method provided by the application, a reference vertical line acquisition method of the circuit breaker image, comprising:

[0023] ;

[0024] the reference vertical line of the circuit breaker image, the coordinates of the center of mass of the circuit breaker, an arbitrary real number, the vertical vanishing point.

[0025] A pole-mounted circuit breaker installation position offset detection method provided by the application, in response to the offset angle being not greater than a set threshold, determining that the installation position of the circuit breaker is qualified.

[0026] A pole-mounted circuit breaker installation position offset detection method provided by the application, the installation position of the circuit breaker is determined to exist offset, and then further comprising: after associating the circuit breaker image existing offset with the offset angle, externally issuing an abnormal prompt.

[0027] The application can timely issue an abnormal prompt to the outside after recognizing the circuit breaker existing offset, can timely remind the staff to process, and effectively avoids the safety hidden danger caused by improper installation.

[0028] The application has the following beneficial effects:

[0029] Based on the technical scheme, the method for detecting the installation position offset of the pole-mounted circuit breaker can obtain the installation position offset detection result of the circuit breaker accurately by eliminating the perspective distortion in the circuit breaker image. In the process of obtaining the detection result, the vertical vanishing point is introduced as the absolute vertical reference in the image, and the posture main shaft line of the circuit breaker is obtained. The offset degree of the circuit breaker and the pole in the three-dimensional reality can be obtained accurately according to the included angle between the two, so that the installation position offset detection result of the circuit breaker can be obtained accurately. In the process of obtaining the posture main shaft line of the circuit breaker, the pixel points with less distortion and illumination influence and more information are given higher weights, so that the influence of the pixel points on the center of mass position can be reduced, the measurement error caused by the perspective distortion can be reduced, the actual installation offset of the circuit breaker can be detected accurately at any upward shooting angle, and the accuracy of the detection result is improved. BRIEF DESCRIPTION OF DRAWINGS

[0030] Figure 1 is a step flow chart of the method for detecting the installation position offset of the pole-mounted circuit breaker according to the embodiment of the present application. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments of the present application.

[0032] The perspective distortion existing in the circuit breaker image installed on the pole may identify the normally installed circuit breaker as the physically installed offset.

[0033] Based on this, the embodiment of the present application provides a method for detecting the installation position offset of the pole-mounted circuit breaker. The method obtains the actual offset angle between the true vertical line in the circuit breaker image and the circuit breaker based on the characteristics that the pole and the installation direction of the circuit breaker are parallel in reality, and the pole and the installation direction of the circuit breaker are both perpendicular to the ground, analyzes the possibility of the offset, and effectively improves the accuracy of the installation position offset detection of the circuit breaker.

[0034] Please refer to Figure 1 , Figure 1 is a step flow chart of the method for detecting the installation position offset of the pole-mounted circuit breaker according to the embodiment of the present application, which specifically includes the following steps:

[0035] S1: Obtain the circuit breaker image installed on the pole, extract two edge straight lines of the pole in the circuit breaker image, and determine the intersection point of the edge straight lines as the vertical vanishing point.

[0036] For example, in the embodiment of the present application, the image of the circuit breaker installed on the telegraph pole is acquired, and two edge straight lines of the telegraph pole in the circuit breaker image are extracted, including: taking a photo containing the telegraph pole and the circuit breaker installed on the telegraph pole and performing preprocessing to obtain the circuit breaker image; extracting the telegraph pole mask graph in the circuit breaker image through semantic segmentation, using Suzuki algorithm to detect the contour of the telegraph pole mask graph to obtain a contour point set, and performing straight line fitting on the contour point set to obtain two edge straight lines of the telegraph pole in the circuit breaker image.

[0037] Specifically, after taking a photo containing the telegraph pole and the circuit breaker installed on the telegraph pole, the photo can be subjected to grayscale processing, noise reduction and other preprocessing operations to reduce the interference of irrelevant details.

[0038] It can be understood that there are many messy wires on the telegraph pole, and the complete edge straight line of the telegraph pole is divided into a plurality of small line segments, so when the edge straight line of the telegraph pole in the circuit breaker image is directly extracted, other straight lines may be misjudged as the edge straight line of the telegraph pole.

[0039] Therefore, the two edge straight lines of the telegraph pole in the circuit breaker image are obtained by semantic segmentation, Suzuki algorithm detection and straight line fitting, which can accurately extract the two edge straight lines of the telegraph pole in the circuit breaker image.

[0040] It should be noted that the edge straight line of the telegraph pole is two completely parallel straight lines, which can be used as a reference for the installation position of the circuit breaker. However, due to the perspective distortion of the taken circuit breaker image, the two edge straight lines will become intersecting lines, and there will be an intersection point between the two edge straight lines, which is the vertical vanishing point. The vertical vanishing point can eliminate the problem of dislocation between the two-dimensional image and the three-dimensional physical space caused by perspective distortion, and represents the only three-dimensional physical world absolute vertical base point in the two-dimensional image. The pixel points in different positions in the circuit breaker pixel point set are affected by the perspective distortion to different degrees.

[0041] Based on this, the embodiment of the present application takes the vertical vanishing point as the base point, weights each pixel point according to the distance between each pixel point in the circuit breaker pixel point set and the base point and the gray scale distribution, and determines the main axis direction of the circuit breaker according to the weighted pixel point set, which can effectively reduce the influence of perspective distortion on the determination of the main axis direction of the circuit breaker, that is, the following steps are performed.

[0042] S2: Acquire the circuit breaker pixel point set in the circuit breaker image, and calculate the weight of each pixel point.

[0043] The weight is positively correlated with the distance of each pixel point to the vertical vanishing point, positively correlated with the gray scale standard deviation of the local neighborhood where each pixel point is located, and negatively correlated with the difference between the brightness value of each pixel point and the set brightness ideal value.

[0044] It should be noted that, since the background in the obtained circuit breaker image is relatively messy, there may be sky, branches and wires, etc., therefore, when analyzing the posture of the circuit breaker, the circuit breaker pixel point set can be extracted from the circuit breaker image first, and the pixel points are weighted according to the distance between the pixel points and the vertical vanishing point and the gray scale distribution around the pixel points, and finally the subsequent analysis is carried out based on the weighted circuit breaker pixel point set.

[0045] For example, in the embodiment of the application, the circuit breaker pixel point set in the circuit breaker image is extracted through the pre-trained YOLACT network model.

[0046] Specifically, when the YOLACT network model is pre-trained, a plurality of circuit breaker images can be collected as samples to obtain a circuit breaker image set, and the circuit breaker pixel points on each sample in the circuit breaker image set are manually labeled to obtain a labeled circuit breaker image set; the labeled circuit breaker image set is input into the YOLACT network model for training to obtain the YOLACT network model which can be used to extract the circuit breaker pixel point set in the circuit breaker image.

[0047] The circuit breaker image to be extracted is input into the pre-trained YOLACT network model, and the model outputs a pixel mask, in which the pixel value belonging to the circuit breaker body is 1 and the pixel value of the background part is 0; by traversing the mask, the coordinates of the pixel points with a value of 1 are extracted to obtain the circuit breaker pixel point set in the circuit breaker image.

[0048] After obtaining the circuit breaker pixel point set according to the above steps, the weight of each pixel point in the circuit breaker pixel point set can be calculated according to the following steps.

[0049] It can be understood that the more close to the vertical vanishing point, the more serious the distortion of the pixel point, and in addition, since there may be overexposure or underexposure in the circuit breaker image taken in bad weather, the extraction of the circuit breaker centroid is affected. Therefore, the embodiment of the application can comprehensively obtain the final weight by analyzing the pixel point distortion weight, the edge intensity weight and the brightness uniformity weight.

[0050] For example, in the embodiment of the application, the weight of each pixel point in the circuit breaker pixel point set is calculated, including:

[0051] ;

[0052] the weight of the i-th pixel point, the distance of the i-th pixel point to the vertical vanishing point, the gray scale standard deviation of the local neighborhood where the i-th pixel point is located, the absolute value of the difference between the brightness value of the i-th pixel point and the set brightness ideal value, the distortion weight coefficient, is an edge intensity weight coefficient, is a brightness uniformity weight coefficient, is a zero prevention coefficient, may be set to 1.

[0053] wherein when the local neighborhood in which the current pixel point is located is obtained, a 5x5 size rectangular region can be constructed with the current pixel point as the center, and the size of the local neighborhood can be set according to actual needs, without too many limitations here. The set brightness ideal value can be set to half of the maximum brightness value, i.e. 128, which can be set according to actual needs.

[0054] For example, when the weight coefficients are set, a larger distortion weight coefficient can be set for the distortion weight of the pixel point, and the edge intensity weight coefficient and the brightness uniformity weight coefficient can be set according to the edge and texture definition in the circuit breaker image.

[0055] As an example, the distortion weight coefficient is set to 1.5, and the edge intensity weight coefficient and the brightness uniformity weight coefficient are both set to 0.8; which can be set according to actual needs.

[0056] In the above calculation formula, represents the distortion weight, the farther the distance from the i-th pixel point to the vertical vanishing point, the smaller the distortion degree of the pixel point, the greater the corresponding distortion weight, the higher the reliability of the pixel point, and the greater the corresponding weight.

[0057] represents the edge intensity weight, the greater the gray scale standard deviation of the local neighborhood in which the i-th pixel point is located, the richer the edge or texture around the current pixel point, the higher the reliability of the pixel point as a feature point, and the greater the corresponding weight.

[0058] represents the brightness uniformity weight, the greater the difference between the brightness value of the i-th pixel point and the set brightness ideal value, the more serious the influence of light on the current pixel point, the more difficult it is to reflect the real position of the circuit breaker, and therefore the smaller the corresponding weight needs to be, so as to reduce the influence of the pixel point.

[0059] In summary, the greater the distance from the pixel point to the vertical vanishing point and the gray scale standard deviation of the local neighborhood in which the pixel point is located, and the smaller the difference between the brightness value of the pixel point and the set brightness ideal value, the greater the weight of the pixel point.

[0060] According to the above steps, the weight of each pixel point in the circuit breaker pixel point set can be obtained, and the centroid and the direction of the attitude principal axis of the circuit breaker can be accurately obtained by weighting the pixel points according to the weight, so as to accurately obtain the attitude principal axis line of the circuit breaker, i.e. the following steps are continued.

[0061] S3: performing weighted processing on each pixel point in the circuit breaker pixel point set to obtain a weighted pixel point set, so as to obtain a centroid and a covariance matrix of the circuit breaker; performing principal component analysis on the covariance matrix to obtain a direction vector of the posture principal axis; and the centroid and the direction vector of the posture principal axis jointly constitute a posture principal axis straight line.

[0062] It should be noted that in the image without perspective distortion, the role of each pixel point in the circuit breaker pixel point set in determining the centroid of the circuit breaker is consistent, but if there is perspective distortion, some pixel points may be severely deformed, and therefore the pixel points need to be weighted according to the weight obtained in the above steps to determine the true centroid and covariance matrix of the circuit breaker, and the posture principal axis straight line of the circuit breaker is obtained based on this. The posture principal axis straight line of the circuit breaker quantizes the installation orientation of the circuit breaker into a straight line, and if the installation position of the circuit breaker is correct, the posture principal axis straight line is the vertical direction with the widest pixel point distribution; otherwise, if the installation position of the circuit breaker is inclined, the direction with the widest pixel point distribution will also be inclined.

[0063] Based on this, the embodiment of the present application can obtain the centroid and the direction vector of the posture principal axis of the circuit breaker according to the weighted pixel points, so as to construct the posture principal axis direction of the circuit breaker.

[0064] For example, in the embodiment of the present application, the centroid of the circuit breaker is obtained in the following manner: obtaining a weighted horizontal coordinate sum value of all pixel points in the weighted pixel point set, and recording the ratio of the weighted horizontal coordinate sum value to the weight sum value of all pixel points as the horizontal coordinate of the centroid of the circuit breaker; and obtaining a weighted vertical coordinate sum value of all pixel points in the weighted pixel point set, and recording the ratio of the weighted vertical coordinate sum value to the weight sum value of all pixel points as the vertical coordinate of the centroid of the circuit breaker.

[0065] It can be understood that the greater the weight of the pixel point, the higher the influence degree on the position of the centroid.

[0066] In the centroid obtaining manner, the weight sum value of all pixel points is the total credibility of all pixel points in the weighted pixel point set, which is used for normalized weighted average of the position coordinates.

[0067] The centroid obtained according to the above steps can construct a 2x2 covariance matrix, which contains all directional information of the circuit breaker weighted pixel point set, and can reflect the dispersion degree and inclination degree of the weighted pixel point set.

[0068] Specifically, the covariance matrix is wherein, is the variance of the circuit breaker weighted pixel point set in the X direction with the centroid as the reference point, is the variance of the circuit breaker weighted pixel point set in the Y direction with the centroid as the reference point, a weighted covariance between the horizontal coordinate and the vertical coordinate of each pixel point in the circuit breaker weighted pixel point set.

[0069] wherein, a distribution width of the circuit breaker weighted pixel point set around the centroid in the X direction, the greater the value, the longer the circuit breaker weighted pixel point set in the X direction.

[0070] a distribution width of the circuit breaker weighted pixel point set around the centroid in the Y direction, the greater the value, the longer the circuit breaker weighted pixel point set in the Y direction.

[0071] and for representing the dispersion degree of the circuit breaker weighted pixel point set, for representing the inclination degree of the circuit breaker weighted pixel point set, if , it indicates that the principal direction vector of the circuit breaker weighted pixel point set is not parallel to the coordinate axis.

[0072] For example, in the embodiment of the present application, principal component analysis is performed on the covariance matrix to obtain the direction vector of the posture principal axis, including: determining the eigenvector corresponding to the maximum eigenvalue as the direction vector of the posture principal axis.

[0073] wherein, the eigenvector corresponding to the maximum eigenvalue is the direction with the largest variance, which corresponds to the long axis of the circuit breaker in physics.

[0074] For example, in the embodiment of the present application, the centroid and the direction vector of the posture principal axis jointly constitute the posture principal axis straight line, including:

[0075] ;

[0076] the posture principal axis straight line of the circuit breaker, the coordinates of the centroid of the circuit breaker, any real number, the direction vector of the posture principal axis.

[0077] In the above calculation formula, the centroid provides a starting point for the posture principal axis straight line, that is, the finally obtained posture principal axis straight line will pass through the real geometric centroid of the weighted pixel point set, and the direction vector of the posture principal axis is used to provide the extension direction of the posture principal axis straight line. By combining the centroid and the direction vector of the posture principal axis, a posture principal axis straight line starting from the centroid and extending along the direction vector of the principal axis can be obtained, which is used to reflect the installation angle of the pole-mounted circuit breaker.

[0078] S4: obtaining a reference vertical line by connecting the centroid and the vertical vanishing point; obtaining an offset angle according to an included angle between the attitude main shaft straight line and the reference vertical line; in response to the offset angle being greater than a set threshold, determining that the installation position of the circuit breaker is offset.

[0079] It should be noted that the vertical vanishing point indirectly marks the vertical direction in reality, and the direction of the reference vertical line obtained by connecting the centroid and the vertical vanishing point, that is, the reference vertical line is a straight line extending along the direction of the vertical pole in reality, so the reference vertical line is taken as a reference for the complete verticality in the circuit breaker image, and the offset degree of the circuit breaker from the vertical direction in reality can be accurately obtained by obtaining the included angle between the reference vertical line and the attitude main shaft straight line.

[0080] For example, in the embodiment of the present application, the method for obtaining the reference vertical line of the circuit breaker image comprises:

[0081] ;

[0082] For the reference vertical line of the circuit breaker image, For the coordinates of the centroid of the circuit breaker, For any real number, For the vertical vanishing point.

[0083] For the direction vector of the reference vertical line, the direction from the centroid of the circuit breaker to the vertical vanishing point.

[0084] It can be understood that the reference vertical line in the circuit breaker image and the attitude main shaft straight line of the circuit breaker can be obtained respectively according to the above steps, and by obtaining the included angle between the two, the influence of perspective distortion can be eliminated, so that the obtained included angle is also the offset angle between the circuit breaker and the real vertical direction in the three-dimensional reality.

[0085] Among them, the included angle between the two straight lines can be obtained by means of direction vector dot product, Hough transform, straight line slope, etc., and the embodiment of the present application does not make too many limitations here.

[0086] According to the above steps, the included angle between the attitude main shaft straight line and the reference vertical line can be accurately obtained, and the included angle is the offset angle.

[0087] For example, in the embodiment of the present application, in response to the offset angle being greater than a set threshold, it is determined that the installation position of the circuit breaker is offset; in response to the offset angle not being greater than the set threshold, it is determined that the installation position of the circuit breaker is qualified.

[0088] Among them, the set threshold can be any angle in 1° to 5°, and can be set according to actual needs, and the embodiment of the present application does not make too many limitations here.

[0089] For example, in the embodiment of the present application, after determining that the installation position of the circuit breaker exists deviation, the method further comprises: after associating the circuit breaker image with the deviation angle, issuing an abnormality prompt to the outside.

[0090] The abnormality prompt mode can be highlight annotation by a mark box, generation of a separate abnormality image library, etc., and can be set according to actual needs.

[0091] As can be seen, in the embodiment of the present application, when obtaining the installation position deviation detection result of the pole-mounted circuit breaker, the circuit breaker image installed on the electric pole is obtained, two edge straight lines of the electric pole in the circuit breaker image are extracted, and the intersection of the edge straight lines is determined as the vertical vanishing point; the pixel point set of the circuit breaker in the circuit breaker image is obtained, the weight of each pixel point is calculated, the weight is positively correlated with the distance of each pixel point to the vertical vanishing point, positively correlated with the gray standard deviation of the local neighborhood where each pixel point is located, and negatively correlated with the difference between the brightness value of each pixel point and the set brightness ideal value; each pixel point in the pixel point set of the circuit breaker is weighted to obtain a weighted pixel point set, so as to obtain the centroid and the covariance matrix of the circuit breaker; the covariance matrix is subjected to principal component analysis to obtain the direction vector of the posture principal axis; the centroid and the direction vector of the posture principal axis jointly constitute the posture principal axis straight line; the reference vertical line is obtained by connecting the centroid and the vertical vanishing point; the deviation angle is obtained according to the included angle between the posture principal axis straight line and the reference vertical line; and in response to the deviation angle being greater than a set threshold, it is determined that the installation position of the circuit breaker exists deviation, which can reduce the influence of perspective distortion in the image and effectively improve the accuracy of the deviation detection result.

[0092] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A pole-mounted circuit breaker installation position offset detection method characterized by, The method comprises the following steps: An image of a circuit breaker installed on a telegraph pole is acquired, two edge straight lines of the telegraph pole in the circuit breaker image are extracted, and a vertical vanishing point is determined as the intersection of the two edge straight lines; A set of circuit breaker pixel points in the circuit breaker image is acquired, the weight of each pixel point is calculated, the weight is positively correlated with the distance of each pixel point to the vertical vanishing point, positively correlated with the gray standard deviation of the local neighborhood where each pixel point is located, and negatively correlated with the difference between the brightness value of each pixel point and a set brightness ideal value; Each pixel point in the set of circuit breaker pixel points is subjected to weighted processing to obtain a set of weighted pixel points, so as to obtain the centroid and the covariance matrix of the circuit breaker; principal component analysis is performed on the covariance matrix to obtain a direction vector of the posture principal axis; the centroid and the direction vector of the posture principal axis jointly constitute a posture principal axis straight line; A reference vertical line is obtained by connecting the centroid and the vertical vanishing point; an offset angle is obtained according to the included angle between the posture principal axis straight line and the reference vertical line; in response to the offset angle being greater than a set threshold, it is determined that the installation position of the circuit breaker is offset.

2. The pole-mounted circuit breaker installation position offset detection method of claim 1, wherein, The method comprises the following steps: A photo containing a telegraph pole and a circuit breaker installed on the telegraph pole is taken and preprocessed to obtain a circuit breaker image; A telegraph pole mask graph in the circuit breaker image is extracted through semantic segmentation, a contour point set is obtained by using the Suzuki algorithm to detect the contour of the telegraph pole mask graph, and two edge straight lines of the telegraph pole in the circuit breaker image are obtained by performing straight line fitting on the contour point set.

3. The method of claim 1, wherein, A set of circuit breaker pixel points in the circuit breaker image is extracted through a pre-trained YOLACT network model.

4. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, The method comprises the following steps: ; Wi is the weight of the i-th pixel point, Di is the distance from the i-th pixel point to the vertical vanishing point, Si is the gray scale standard deviation of the local neighborhood of the i-th pixel point, Vi is the absolute value of the difference between the i-th pixel point and the set ideal value of the luminance, , , respectively are the distortion weight coefficient, the edge intensity weight coefficient, and the luminance uniformity weight coefficient, is the prevention of zero coefficient.

5. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, The method for obtaining the centroid of the circuit breaker comprises the following steps: A weighted horizontal coordinate sum value of all pixel points in the set of weighted pixel points is obtained, and the ratio of the weighted horizontal coordinate sum value to the weight sum value of all pixel points is recorded as the horizontal coordinate of the centroid of the circuit breaker; A weighted vertical coordinate sum value of all pixel points in the set of weighted pixel points is obtained, and the ratio of the weighted vertical coordinate sum value to the weight sum value of all pixel points is recorded as the vertical coordinate of the centroid of the circuit breaker.

6. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, The method comprises the following steps: The eigenvector corresponding to the maximum eigenvalue is determined as the direction vector of the posture principal axis.

7. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, The centroid and the direction vector of the posture principal axis jointly constitute a posture principal axis straight line. ; is the position of the center of mass of the circuit breaker, is the position of the center of mass of the circuit breaker, is an arbitrary real number, is the direction vector of the attitude principal axis.

8. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, The method for obtaining the reference vertical line of the circuit breaker image comprises the following steps: ; is a reference vertical line for the circuit breaker image, is a coordinate of the centroid of the circuit breaker, is an arbitrary real number, is a vertical vanishing point.

9. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, In response to the offset angle being not greater than the set threshold, it is determined that the installation position of the circuit breaker is qualified.

10. The method of pole-mounted circuit breaker installation position offset detection of claim 1, wherein, The method further comprises the following steps after determining that the installation position of the circuit breaker is offset: After associating the circuit breaker image with the offset angle, an abnormal prompt is sent out.

Citation Information

Patent Citations

  • Vision-based traditional Chinese medicinal material defect detection method

    CN120374870A

  • Intelligent pallet fork correction method based on visual inspection

    CN120599329A