Photovoltaic power equipment fault monitoring method using machine vision
Through high-definition aerial photography and multi-resolution feature extraction technology, combined with support vector machines, the problem of texture feature identification of photovoltaic solar panels has been solved, high-precision identification of damage to photovoltaic solar panels has been achieved, and safety has been ensured.
Patent Information
- Application Number
- CN202410144225.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-01-31
AI Technical Summary
It is difficult for existing technology to effectively identify the texture characteristics and different spatial scales of photovoltaic solar panels, resulting in the inability to accurately identify damage to solar panels under complex backgrounds, posing safety risks.
The photovoltaic solar panel surface image is obtained through high-definition aerial photography, E-LBP is used to extract edge features, combined with N-LBP to suppress noise, and the multi-resolution central symmetric local binary pattern SCS-LBP is integrated, and support vector machine SVM is used for feature recognition.
It achieves clear capture and accurate identification of surface details of photovoltaic solar panels, enhances the ability to identify shapes and structures, suppresses noise, improves the completeness and accuracy of feature description, and can accurately identify broken patterns of solar panels in complex backgrounds. .
Smart Images

Figure CN117975269B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of image processing, and in particular to a method for monitoring photovoltaic power equipment faults through machine vision. Background Art
[0002] Since photovoltaic solar panels are exposed to harsh outdoor environments for a long time, accidental falling objects or wind and rain will inevitably cause aging and damage to the solar panels. It is this aging and damage state that will produce abnormal short circuits or overloads, and output large currents and voltages, which will cause safety risks to the surrounding environment, workers and the overall equipment. The traditional centrally symmetric graphic binary description method can obtain feature sampling of abnormal images, but the features are relatively heavy and no further research has been conducted on the texture of image features and different spatial scales. This urgently requires technical personnel in this field to solve the corresponding technical problems. Summary of the invention
[0003] The present invention aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a method for photovoltaic power equipment fault supervision through machine vision.
[0004] In order to achieve the above-mentioned object of the present invention, the present invention provides a method for monitoring photovoltaic power equipment faults by machine vision, comprising the following steps:
[0005] S1, obtaining the surface image of the photovoltaic solar panel through high-definition aerial photography, thereby establishing an aerial image library and locating the central area of each solar panel in the aerial image collected in real time;
[0006] S2, uses E-LBP to extract edge features of each solar panel surface image and suppresses noise through N-LBP;
[0007] S3, after fusing the multi-resolution centrosymmetric local binary pattern SCS-LBP, a texture operator is constructed and the support vector machine SVM is used for feature recognition.
[0008] Preferably, the above technical solution is that S1 comprises:
[0009] S1-1, obtaining each photovoltaic solar panel image in the aerial image, obtaining the center position of the diagonal by setting the basic length and width parameters of the photovoltaic solar panel image, and obtaining a corrected image of each photovoltaic solar panel image according to the center position;
[0010] S1-2, based on the correction image, the radius R is 1, the neighborhood point N is 4, and the correction image is sampled by scanning at intervals to form a sampled image sequence. The threshold parameter of the image sequence is set to T, and the absolute value of the difference between the pixel values of the correction image through the neighborhood points is less than T.
[0011] In the above technical solution, preferably, S2 comprises:
[0012] S2-1, encode the image by comparing the grayscale values of the central pixel (x, y) and the neighboring pixels.
[0013] The specific E-LBP code is:
[0014]
[0015] m i =min{|m x |+|m y |,255}, where m i Represents the gradient magnitude of all pixels N at the coordinates (x, y) of the center pixel of the photovoltaic solar panel image scale i, m x is the pixel gradient amplitude of the X coordinate, m y is the pixel gradient amplitude of the Y coordinate; μ is the adjustment coefficient of the neighborhood point on the gradient amplitude; it is usually a constant used to adjust the influence of the pixel gradient amplitude on E-LBP. Represents the radius R with the center pixel coordinate (x, y) The gradient magnitude of the pixel;
[0016]
[0017] In the above technical solution, preferably, S2 comprises:
[0018] S2-2, the specific N-LBP code is:
[0019]
[0020] Among them, m′ i is the noise gray value extracted from all pixels of a corrected image, m′ j To traverse all pixels of a corrected image and extract the grayscale value of the noise at each pixel, is the noise grayscale mean extracted from all pixels of a corrected image, and λ is the adjustment coefficient of the sampling pixel to the interval point;
[0021]
[0022] In the above technical solution, preferably, S2 comprises:
[0023] S2-3, CS-LBP operator calculates the difference of grayscale values of two pixels in the center symmetry in four gradient directions to encode the image.
[0024]
[0025]
[0026] When using CS-LBP (centrosymmetric local binary pattern operator) for feature extraction, the main goal is to locate the textured areas in the image. This process excludes flat areas because they do not provide valuable information for identifying specific features or patterns.
[0027] Preferably, the above technical solution, S2 further includes:
[0028] S2-4, calculate the gradient direction histogram vectors d1, d2, and the texture histogram vectors d3 and d4;
[0029]
[0030]
[0031]
[0032] According to the gray value of the central pixel and its relationship with the gradient amplitude, the corrected image is vector-encoded;
[0033] Definition of texture histogram g is the LBP encoding value, W is the width pixel value of the photovoltaic solar panel correction image area, H is the height pixel value of the photovoltaic solar panel correction image area,
[0034] Concatenate the histogram vectors to form D SCS-LBP =[d1, d2, d3, d4], as the SCS-LBP operator content of the corrected image area.
[0035] In the above technical solution, preferably, S3 includes:
[0036] Extract feature points from images using SVM classifier
[0037]
[0038] Through multiple cross-validation, the optimal kernel parameter is obtained, and the limiting condition σ is the kernel parameter. x and y are the coordinates of the central pixel point obtained.
[0039] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0040] The images acquired through high-definition aerial photography clearly capture the surface details of the solar panels. The positioning of the central area of each solar panel in the real-time aerial images helps to improve the accuracy of subsequent feature extraction and recognition; the edge features of each solar panel surface image are extracted by using E-LBP (edge local binary pattern) to enhance the recognition ability of shapes and structures in the image. This helps to identify key information such as the contour, arrangement and direction of the solar panel, and then suppress noise through N-LBP (noise local binary pattern) to remove interference factors in the image, reduce the dimension of the corrected image by CS-LBP encoding, and then perform the fusion of multi-resolution central symmetric local binary pattern SCS-LBP, which comprehensively utilizes feature information at different resolutions to improve the completeness and accuracy of feature description. This helps to accurately identify the broken pattern of solar panels under complex backgrounds. Support vector machine SVM is used for feature recognition to achieve high-precision classification and recognition. The whole process combines a variety of image processing and machine learning technologies to achieve efficient feature extraction and recognition. This helps to quickly process a large number of aerial images in practical applications and provide accurate recognition results of broken patterns of solar panels.
[0041] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0043] Figure 1 It is a schematic diagram of the overall process of the present invention;
[0044] Figure 2 It is the aerial photography feature collection and extraction diagram of the present invention;
[0045] Figure 3 It is the aerial photography feature collection and extraction diagram of the present invention;
[0046] Figure 4 It is the grayscale change diagram of the aerial photography feature of the present invention;
[0047] Figure 5 It is the grayscale change diagram of the aerial photography feature of the present invention;
[0048] Figure 6 It is the grayscale change diagram of the aerial photography feature of the present invention. DETAILED DESCRIPTION
[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0050] like Figures 1 to 4 As shown, the present invention discloses a method for monitoring photovoltaic power equipment faults by machine vision, comprising the following steps:
[0051] S1, obtaining the surface image of the photovoltaic solar panel through high-definition aerial photography, thereby establishing an aerial image library and locating the central area of each solar panel in the aerial image collected in real time;
[0052] S2, uses E-LBP to extract edge features of each solar panel surface image and suppresses noise through N-LBP;
[0053] S3, after fusing the multi-resolution centrosymmetric local binary pattern SCS-LBP, a texture operator is constructed and the support vector machine SVM is used for feature recognition.
[0054] Since E-LBP considers the edge information of the solar panel image on the basis of the original LBP and adds edge judgment when calculating the LBP value, it can better describe the texture characteristics of the photovoltaic solar panel image. Then, the noisy photovoltaic solar panel image is processed according to N-LBP to suppress the noise, so as to improve the robustness of the LBP operator to noise.
[0055] By using E-LBP to extract the edge features of the image to enhance the sensitivity to the edge structure of the image, and then using N-LBP to suppress noise and reduce the impact of noise on texture description, and then combining SCS-LBP to capture texture features and direction information at different scales, providing a richer texture description. In this way, it is possible to extract whether the surface texture of the photovoltaic solar panel is broken or abnormal.
[0056] By fusing these three LBP variants together, the accuracy and robustness of photovoltaic solar panel recognition are improved.
[0057] Preferably, the above technical solution is that S1 comprises:
[0058] S1-1, obtaining each photovoltaic solar panel image in the aerial image, obtaining the center position of the diagonal by setting the basic length and width parameters of the photovoltaic solar panel image, and obtaining a corrected image of each photovoltaic solar panel image according to the center position;
[0059] S1-2, according to the correction image, the radius R is 1, the neighborhood point N is 4, and the correction image is sampled by scanning at alternate points to form a sampled image sequence, and the threshold parameter of the image sequence is set to T. The absolute value of the difference between the pixel values of the correction image at the neighborhood points is less than T.
[0060] In the above technical solution, preferably, S2 comprises:
[0061] S2-1, encode the image by comparing the grayscale values of the central pixel (x, y) and the neighboring pixels.
[0062] The specific E-LBP code is:
[0063]
[0064] m i =min{|m x |+|m y |,255}, where m i Represents the gradient magnitude of all pixels N at the coordinates (x, y) of the center pixel of the photovoltaic solar panel image scale i, m x is the pixel gradient amplitude of the X coordinate, m y is the pixel gradient amplitude of the Y coordinate; μ is the adjustment coefficient of the neighborhood point on the gradient amplitude; it is usually a constant used to adjust the influence of the pixel gradient amplitude on E-LBP. Represents the radius R with the center pixel coordinate (x, y) The gradient magnitude of the pixel;
[0065]
[0066] S2-2, the specific N-LBP code is:
[0067]
[0068] Among them, m′ i is the noise gray value extracted from all pixels of a corrected image, m′ j To traverse all pixels of a corrected image and extract the grayscale value of the noise at each pixel, is the noise grayscale mean extracted from all pixels of a corrected image, and λ is the adjustment coefficient of the sampling pixel to the interval point;
[0069]
[0070] E-LBP (Edge Local Binary Pattern) and N-LBP (Noise Local Binary Pattern) also provide additional dimensions for image processing. E-LBP pays special attention to edge information in the image, because edges usually carry important clues about the shape and structure of objects. By capturing this information, E-LBP can enhance the sensitivity of the recognition algorithm to the shape and structure in the image. N-LBP is designed to process noisy images. By suppressing noise, N-LBP can improve the algorithm's robustness to noise, making feature extraction more accurate.
[0071] For each corrected image region extracted by E-LBP and N-LBP coding, we calculate the distribution histogram of the central symmetric binary pattern of the corrected image. For each distribution probability value of this histogram, we use it as a component of the feature vector. In this way, each corrected image region will generate a feature vector consisting of 4 components, which are sorted according to the encoding size of the central symmetric local binary pattern of the corrected image.
[0072] Next, we arrange the feature vectors of the central point symmetric local binary pattern of each sub-region according to the coding order of the divided corrected image region. In this way, we obtain a local feature operator of the image.
[0073] In order to ensure that our feature operator is rotation invariant, we use E-LBP and N-LBP to divide the corrected image region. The divided region not only contains edge information, but also can better handle noisy images. After division, we calculate the feature vector of the symmetric local binary pattern of each corrected image region. Then, we arrange these feature vectors in the order of sub-region numbering to generate a new feature vector, which is the local feature operator of the feature region. Since the order of division and numbering remains basically rotation invariant, the generated local feature descriptor of the corrected image region also has good rotation invariance.
[0074] In summary, through the above steps, we can obtain a local feature operator with rotation invariance, which can accurately describe the local texture features of the corrected image.
[0075] S2-3, CS-LBP operator calculates the difference of grayscale values of two pixels in the center symmetry in four gradient directions to encode the image.
[0076]
[0077]
[0078] When using CS-LBP (centrosymmetric local binary pattern operator) for feature extraction, the main goal is to locate the texture area in the image. This process excludes flat areas because they do not provide valuable information for identifying specific features or patterns. The working principle of CS-LBP is to determine the importance of pixels through specific encoding rules. Specifically, it compares the symmetry of neighboring pixels relative to the center pixel. If the difference is greater than or equal to the threshold T, the pixel is considered important (value 1), otherwise it is considered unimportant (value 0). These binary values are concatenated together to form a unique code for each pixel, which represents the role of the pixel in the texture pattern. The texture characteristics of the area are calculated by the CS-LBP operator, which greatly reduces the amount of calculation, so there is a significant improvement in the calculation speed.
[0079] S2-4, calculate the gradient direction histogram vectors d1, d2, and the texture histogram vectors d3 and d4;
[0080]
[0081]
[0082]
[0083] According to the gray value of the central pixel and its relationship with the gradient amplitude, the corrected image is vector-encoded;
[0084] Definition of texture histogram g is the LBP encoding value, W is the width pixel value of the photovoltaic solar panel correction image area, H is the height pixel value of the photovoltaic solar panel correction image area,
[0085] Concatenate the histogram vectors to form D SCS-LBP = [d1, d2, d3, d4], as the SCS-LBP operator content of the corrected image area. SCS-LBP coding is widely used in the fields of computer vision and image processing. In the present invention, the corrected image of photovoltaic solar panels can effectively describe the local texture features in the image, and has the advantages of rotation invariance and grayscale invariance.
[0086] A 32*32 neighborhood value is delineated with the feature point of the photovoltaic solar panel correction image as the center, and the gradient value and direction of the edge local binary pattern in the neighborhood are defined; the edge local binary pattern encoding histogram of each pixel point is rotated to the main axis direction; for the constructed SCS-LBP operator, due to the combination of edge coding and noise coding from the feature point of the photovoltaic solar panel correction image, it increases the autonomous description of the feature neighborhood and the robustness of feature extraction.
[0087] In the above technical solution, preferably, S3 includes:
[0088] Extract feature points from images using SVM classifier
[0089]
[0090] Through multiple cross-validation, the optimal kernel parameter is obtained, and the limiting condition σ is the kernel parameter. x and y are the coordinates of the central pixel point obtained.
[0091] By taking massive photos of photovoltaic solar panels in aerial images, after obtaining the corrected image area, operators at different scales are used to perform local descriptions of feature areas.
[0092] The images acquired through high-definition aerial photography clearly capture the surface details of the solar panels. The positioning of the central area of each solar panel in the real-time aerial images helps to improve the accuracy of subsequent feature extraction and recognition; the edge features of each solar panel surface image are extracted by using E-LBP (edge local binary pattern) to enhance the recognition ability of shapes and structures in the image. This helps to identify key information such as the contour, arrangement and direction of the solar panel, and then suppress noise through N-LBP (noise local binary pattern) to remove interference factors in the image, reduce the dimension of the corrected image by CS-LBP encoding, and then perform the fusion of multi-resolution central symmetric local binary pattern SCS-LBP, which comprehensively utilizes feature information at different resolutions to improve the completeness and accuracy of feature description. This helps to accurately identify the broken pattern of solar panels under complex backgrounds. Support vector machine SVM is used for feature recognition to achieve high-precision classification and recognition. The whole process combines a variety of image processing and machine learning technologies to achieve efficient feature extraction and recognition. This helps to quickly process a large number of aerial images in practical applications and provide accurate recognition results of broken patterns of solar panels.
[0093] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for monitoring photovoltaic power equipment faults by machine vision, characterized in that: The steps include: S1, obtaining the surface image of the photovoltaic solar panel through high-definition aerial photography, thereby establishing an aerial image library and locating the central area of each solar panel in the aerial image collected in real time; S1-1, obtaining each photovoltaic solar panel image in the aerial image, obtaining the center position of the diagonal by setting the basic length and width parameters of the photovoltaic solar panel image, and obtaining a corrected image of each photovoltaic solar panel image according to the center position; S1-2, according to the correction image, the radius R is 1, the neighborhood point N is 4, the correction image is sampled by scanning at alternate points, so as to form a sampled image sequence, and the threshold parameter of the image sequence is set to T, and the absolute value of the difference between the pixel values of the correction image through the neighborhood points is less than T; S2, uses E-LBP to extract edge features of each solar panel surface image and suppresses noise through N-LBP; S2-1, compare the grayscale values of the central pixel (x, y) and the neighboring pixels to encode the image. The specific E-LBP code is: m i =min{|m x |+|m y |,255}, where m i Represents the gradient magnitude of all pixels N at the coordinates (x, y) of the center pixel of the photovoltaic solar panel image scale i, m x is the pixel gradient amplitude of the X coordinate, m y is the pixel gradient amplitude of the Y coordinate; μ is the adjustment coefficient of the neighborhood point to the gradient amplitude; It is usually a constant used to adjust the effect of pixel gradient amplitude on E-LBP. Represents the gradient amplitude of 2N pixels with the center pixel coordinate (x, y) as radius R; S2-2, the specific N-LBP code is: Among them, m′ i is the noise gray value extracted from all pixels of a corrected image, m′ j To traverse all pixels of a corrected image and extract the grayscale value of the noise at each pixel, is the noise grayscale mean extracted from all pixels of a corrected image, and λ is the adjustment coefficient of the sampling pixel to the interval point; S2-3, CS-LBP operator calculates the difference in grayscale values of two pixels that are centrally symmetric in four gradient directions to encode the image. The specific encoding method is: When using CS-LBP for feature extraction, the main goal is to locate texture areas in the image; this process excludes flat areas because they do not provide valuable information for identifying specific features or patterns; S3, after fusing the multi-resolution centrosymmetric local binary pattern SCS-LBP, a texture operator is constructed and the support vector machine SVM is used for feature recognition.
2. The photovoltaic power equipment fault monitoring method using machine vision according to claim 1 is characterized in that: The S2 further includes: S2-4, calculate the gradient direction histogram vectors d1, d2, and the texture histogram vectors d3 and d4; According to the gray value of the central pixel and its relationship with the gradient amplitude, the corrected image is vector-encoded; Definition of texture histogram g is the LBP encoding value, W is the width pixel value of the photovoltaic solar panel correction image area, H is the height pixel value of the photovoltaic solar panel correction image area, Concatenate the histogram vectors to form D SCS-LBP =[d1, d2, d3, d4], as the SCS-LBP operator content of the corrected image area.
3. The photovoltaic power equipment fault monitoring method using machine vision according to claim 1 is characterized in that: The S3 includes: Extract feature points from images using SVM classifier Through multiple cross-validations, the optimal kernel parameters are obtained. The limiting condition is that σ is the kernel parameter, and x and y are the coordinates of the obtained central pixel point.
Citation Information
Patent Citations
Low-altitude aerial infrared image based pedestrian detection method
CN105574488A
Parking stall identification method based on local binary pattern and support vector machine
CN110135360A
