Photovoltaic power station string and assembly dual-light image segmentation method and system

Through median filtering, HSV color model, Otsu method threshold segmentation and dual-light image registration technology, the problem of inaccuracy in image segmentation caused by the complexity of the photovoltaic power station environment is solved, and accurate identification and positioning of photovoltaic modules and strings are achieved. The power generation efficiency and stability of the power station are improved.

CN118537358APending Publication Date: 2024-08-23HUANENG DONGGUAN GAS TURBINE THERMAL POWER CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410600076.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The environment of photovoltaic power plants is complex, and traditional image segmentation algorithms are difficult to handle complex scenes. Spectral information fusion is insufficient, target feature extraction is difficult, and model generalization capabilities are poor, resulting in inaccurate segmentation results and low stability.

Method used

Median filtering, HSV color model, Otsu method threshold segmentation and dual-light image registration technology are used to identify photovoltaic module strings through drone aerial photography, extract corresponding feature points of infrared and visible light images for registration, and realize photovoltaic modules and groups. Accurate identification and location of strings.

Benefits of technology

It improves the identification accuracy and stability of photovoltaic power plant strings and components, overcomes the problems of insufficient complex scene processing and insufficient spectral information fusion, realizes automated image processing, reduces labor costs and operation and maintenance costs, and improves power generation efficiency. and equipment reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537358A
    Figure CN118537358A
Patent Text Reader

Abstract

The invention belongs to the technical field of image segmentation, and discloses a photovoltaic power station string and assembly dual-light image segmentation method and system, and the method comprises the steps: carrying out the segmentation of a photovoltaic assembly string, and recognizing all assembly strings from a photovoltaic image obtained through the aerial photographing of an unmanned plane; photovoltaic module segmentation: carrying out threshold segmentation on the photovoltaic modules in each module string based on an Otsu method, and identifying the contour and position of each module; and dual-light image registration: performing corresponding transformation by extracting the corresponding feature points of the infrared and visible light dual-light images to realize the registration of the dual-light images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image segmentation, and in particular relates to a method and system for segmenting dual-light images of photovoltaic power station strings and components. Background Art

[0002] PV power station strings refer to connecting multiple PV modules in series to form a circuit unit with specific electrical characteristics. In a PV power station, the number and configuration of strings have an important impact on the power generation efficiency and stability of the entire power station. Therefore, accurate identification and positioning of PV power station strings is the key to ensuring the normal operation and optimization of the power station.

[0003] Dual-light images are images that contain both visible light and infrared light spectrum information. This type of image can provide richer scene information and help identify and segment targets more accurately. In photovoltaic power plants, dual-light images can be used to obtain information such as surface temperature, cracks, and stains on components and strings, and then evaluate the operating status and performance of the power plant.

[0004] Image segmentation is a technique that divides an image into several non-intersecting regions, each with similar characteristics or attributes. In the dual-light image segmentation of photovoltaic power station strings and components, the goal is to accurately separate the components and strings from the background for subsequent analysis and processing.

[0005] Through the above analysis, the problems and defects of the prior art are as follows:

[0006] 1. Inadequate processing of complex scenes: The environment of photovoltaic power stations is complex, with interference factors such as shadows, reflections, and stains. Traditional image segmentation algorithms may not be able to effectively handle these complex situations, resulting in inaccurate segmentation results.

[0007] 2. Insufficient fusion of spectral information: Although bi-optical images provide visible and infrared spectral information, existing technologies may fail to fully utilize this information for effective fusion to improve the accuracy and stability of segmentation.

[0008] 3. Difficulty in extracting target features: PV panels and strings may have various shapes, sizes, and appearance features in images, and existing technologies may fail to effectively extract these features to distinguish targets from backgrounds.

[0009] 4. Poor model generalization ability: The segmentation model developed for a specific PV power station scenario may have poor generalization ability in other scenarios and need to be retrained or fine-tuned, which limits its versatility and applicability in practical applications. Summary of the invention

[0010] In view of the problems existing in the prior art, the present invention provides a method and system for segmenting dual-light images of photovoltaic power station strings and components.

[0011] The present invention is implemented as follows: a method for segmenting dual-light images of photovoltaic power station strings and components, comprising:

[0012] Step 1: PV module string segmentation: identifying all module strings from the PV image obtained by drone aerial photography;

[0013] Step 2: PV module segmentation: threshold segmentation of PV modules in each module string is performed based on the Otsu method to identify the outline and position of each module.

[0014] Step three, bi-optical image registration, is to achieve bi-optical image registration by extracting corresponding feature points of infrared and visible light bi-optical images and performing corresponding transformation.

[0015] Furthermore, the detailed steps of step 1, photovoltaic module string identification are as follows:

[0016] (1) Median filtering

[0017] First, sort the pixel values ​​in the neighborhood, then obtain the median of the pixel sequence, and finally use the obtained median to replace the pixel value of the currently processed pixel to achieve the purpose of denoising the image;

[0018] (2) Image segmentation

[0019] The photovoltaic image after median filtering is converted into an HSV image, and binary image segmentation is performed according to the value range of blue in the HSV color model to obtain a binary image of the photovoltaic component string;

[0020] (3) Morphological closing operation

[0021] Perform morphological closing operation on the image after image segmentation, that is, dilation first and then erosion, to eliminate black holes and smooth boundaries in the white area;

[0022] (4) Contour extraction

[0023] After the morphological closing operation, a binary image with clear contours is obtained, and then the contour information of the photovoltaic module string is extracted using the eight-neighborhood traversal algorithm;

[0024] Further, the contour extraction algorithm includes:

[0025] (1) Define the conditions that the contour should meet: if the point is a white pixel and there are more than one black pixel in its eight-neighborhood, then the point is considered a contour point; otherwise, it is not a contour point;

[0026] (2) Use the eight-neighborhood to traverse all pixel points in the binary image, find all contour points that meet the conditions, and record the specific location information of the point;

[0027] (3) Obtain a set of position information of all contour points, and display the contour set on the original image to obtain the final recognition result of the photovoltaic module string.

[0028] Further, the step 2 includes:

[0029] (1) Capturing the image of a photovoltaic module string

[0030] The identification of photovoltaic component strings can locate the outline positions of all photovoltaic component strings in an image, and then capture the image of each photovoltaic component string position, and finally obtain the captured individual component string image for subsequent component identification;

[0031] (2) Bilateral filtering

[0032] The bilateral filtering algorithm is used to consider both spatial information and grayscale similarity features, thereby achieving image denoising and edge preservation effects.

[0033] (3) Image grayscale

[0034] Use weighted average method to grayscale the image;

[0035] (4) Otsu threshold segmentation and morphological processing

[0036] The Otsu method is used to perform threshold segmentation on the grayscale image of photovoltaic module strings to obtain a binary photovoltaic image. The morphological closing operation is used to make the image edge contour clearer, which is convenient for subsequent contour extraction.

[0037] (5) Contour extraction, screening and numbering

[0038] After obtaining the photovoltaic image in binary form, contour extraction and optimization operations are performed. First, the eight-neighborhood traversal algorithm is used to obtain all contours, and then the minimum bounding rectangle of all contours is calculated. Then, all the minimum bounding rectangles are screened using the component area and component aspect ratio. Finally, the minimum bounding rectangle of the component is obtained and the component is numbered.

[0039] Furthermore, in step three, based on the idea of ​​point feature correspondence, the registration of the dual-light image is realized by extracting the corresponding feature points of the dual-light image and performing corresponding transformation. The coordinate acquisition algorithm of the four corners of the string based on the contour fitting algorithm is used to obtain the coordinates of the four corners of the infrared and visible light dual-light image string. The coordinates of the four corners are converted into the original image coordinates through the inverse perspective transformation matrix. When the coordinates of the four corners of the photovoltaic string are extracted inaccurately, the inaccurate points are discarded, and the accurate points are retained and transformed to the original image. All the coordinate points transformed to the original image are sorted, and the bottom, top, leftmost and rightmost coordinates are selected, so that the coordinates of four groups of corresponding pixel points on the infrared and visible light photovoltaic images can be obtained; the four groups of corresponding point coordinates are perspectively transformed to obtain the correspondence matrix between the pixels of the infrared and visible light images.

[0040] Furthermore, the Otsu method is used to perform threshold segmentation on the grayscale image of the photovoltaic component string, and the pixel grayscale of the photovoltaic component string image is segmented using the threshold T, and is divided into two categories: target and background. Let N be the total number of pixels in the component string image, N1 be the number of target pixels in the component string image, N2 be the number of background pixels in the component string image, W1 be the ratio of the number of target pixels to the entire component string image, u1 be the average grayscale of the number of target pixels, W2 be the ratio of the number of background pixels to the entire component string image, u2 be the average grayscale of the number of background pixels, and the average grayscale value u of the entire image is:

[0041]

[0042] The maximum inter-class variance g of the entire image:

[0043] g=ω 1 (μ 1 -μ) 2 +ω 2 (μ 2 -μ) 2

[0044] According to the OTSU calculation formula, the grayscale image of the photovoltaic component string is traversed to find a threshold T that makes the maximum inter-class variance of the entire image take the maximum value. Then the threshold T is the optimal threshold in the image. The calculated threshold T is used to perform threshold segmentation on the grayscale photovoltaic image to obtain a binary photovoltaic image.

[0045] Another object of the present invention is to provide a photovoltaic power station string and component dual-light image segmentation system, the photovoltaic power station string and component dual-light image segmentation system comprising:

[0046] An input module for acquiring photovoltaic images;

[0047] A component string segmentation module is used to identify all component strings;

[0048] A component segmentation module is used to extract each component in the component string;

[0049] The registration module is used to realize infrared and visible light dual-light image registration.

[0050] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for segmenting dual-light images of photovoltaic power station strings and components.

[0051] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the method for segmenting dual-light images of photovoltaic power station strings and components.

[0052] Another object of the present invention is to provide an information data processing terminal, which is used to implement the photovoltaic power station string and component dual-light image segmentation system.

[0053] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0054] First, in view of the technical problems existing in the above-mentioned prior art, some creative technical effects are brought about after solving the problems. The specific description is as follows:

[0055] 1. The present invention proposes a method for identifying photovoltaic component strings. By performing median filtering on the photovoltaic images obtained by drone aerial photography, noise can be effectively removed, image quality can be improved, and the impact of complex scenes can be reduced through morphological closing operations.

[0056] 2. In order to make full use of the information of the dual-light image, the present invention proposes a dual-light image registration method. By extracting the corresponding feature points of the infrared and visible light dual-light images and performing corresponding transformations, the dual-light image registration can be achieved, thereby obtaining more accurate photovoltaic module information.

[0057] 3. Since the color of photovoltaic panels is generally blue, the processed image is converted into an HSV image, and binary image segmentation is performed according to the value range of blue in the HSV color model to improve the recognition rate of the position and contour of the photovoltaic component string and address the difficulty of target feature extraction faced by traditional solutions.

[0058] 4. For the identification of photovoltaic modules, the present invention uses the Otsu method to perform threshold segmentation on the photovoltaic modules in each module string. This method can determine the optimal segmentation threshold according to the grayscale value of the pixels in the image, thereby more accurately identifying the position and contour of the photovoltaic modules and solving the problem of poor generalization ability of the model.

[0059] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:

[0060] 1. Accuracy and stability: By adopting technical means such as median filtering, HSV color model, Otsu threshold segmentation and dual-light image registration, the present invention can realize accurate identification and positioning of photovoltaic power station strings and components. These methods can overcome the problems of insufficient complex scene processing and insufficient spectral information fusion in traditional image processing methods, thereby improving the accuracy and stability of segmentation results.

[0061] 2. High efficiency: The present invention adopts a series of effective image processing algorithms and techniques, such as median filtering, HSV color model conversion, Otsu threshold segmentation, etc. These methods can quickly and accurately process and segment photovoltaic power station images, greatly improving the processing efficiency.

[0062] 3. Intelligence: The present invention adopts an automated image processing method, which can automatically identify and locate components and strings in photovoltaic power stations without manual intervention, thus reducing labor costs and operational complexity.

[0063] Third, the expected benefits and commercial value of the technical solution of the present invention after transformation are:

[0064] A. Improve the efficiency and stability of photovoltaic power plants: By accurately identifying and locating the strings and components in photovoltaic power plants, it can help optimize the layout and configuration of photovoltaic power plants and improve the power generation efficiency and stability of photovoltaic power plants. This will directly bring economic benefits to power plant operations and increase the power generation and profits of photovoltaic power plants.

[0065] B. Reduce operation and maintenance costs: The technical solution of the present invention can realize automatic monitoring and intelligent management of photovoltaic power stations, reduce manual intervention and operation and maintenance costs. By timely discovering problems and performing preventive maintenance, the operation and maintenance costs of power stations can be reduced, the service life of equipment can be extended, and the reliability and stability of equipment can be improved.

[0066] C. Product and service marketing: The technical solution of the present invention can be marketed as a product or service to provide technical support and solutions for the construction, operation and maintenance of photovoltaic power plants. Software platforms, intelligent monitoring equipment or data analysis services based on the technology of the present invention can be developed to meet the needs of the photovoltaic power plant industry, expand market share and obtain commercial benefits.

[0067] D. Technology transfer and licensing income: The technical solution of the present invention is unique and innovative, and may become an important technical standard or patent technology in the field of photovoltaic power stations. The technical solution can be brought to the market through technology transfer, licensing or cooperative development, and the income such as technology transfer fees and patent licensing fees can be obtained.

[0068] E. Enhance enterprise competitiveness: If an enterprise can successfully apply the technology of the present invention to actual photovoltaic power station projects and achieve good economic and social benefits, it will help enhance the competitiveness and position of the enterprise in the photovoltaic power station industry, thereby bringing long-term commercial value and sustained revenue growth.

[0069] The technical solution of the present invention overcomes technical bias: In the field of photovoltaic power station image processing, traditional image processing methods have some technical biases, such as relying only on single spectral information for image segmentation, or only using specific image processing algorithms and ignoring other possible technical means. These technical biases may lead to limitations in image processing problems, making it impossible to effectively cope with image processing challenges in complex scenes. The technical solution of the present invention fully considers the diversity and complexity of photovoltaic power station image processing by comprehensively utilizing multiple technical means such as dual-light images, median filtering, HSV color model conversion, and Otsu threshold segmentation, thereby overcoming the technical bias of traditional methods. Through intelligent analysis of dual-light images, the present invention can obtain richer image information, improve the accuracy and stability of image processing, and enable components and strings of photovoltaic power stations to be more accurately identified and located.

[0070] Fourth, the present invention solves the problems of low image segmentation accuracy and insufficient efficiency in the existing photovoltaic power station component detection. Traditional methods usually rely on manual operations and simple image processing techniques, which are difficult to cope with complex photovoltaic power station environments and large amounts of image data, resulting in a time-consuming and labor-intensive detection process with low accuracy. By introducing drone aerial photography technology, step one can automatically identify all component strings from photovoltaic images, greatly improving the efficiency and accuracy of photovoltaic power station component string segmentation.

[0071] In step 2, the present invention uses the Otsu method to perform threshold segmentation on the photovoltaic components in each component string, and accurately identify the outline and position of each component. As an automatic threshold selection method, the Otsu method can automatically determine the optimal threshold according to the grayscale histogram of the image, effectively segment the photovoltaic components, avoid the subjectivity and instability of manual threshold adjustment, and improve the accuracy and reliability of segmentation.

[0072] In step 3, accurate registration of the dual-light images is achieved by extracting corresponding feature points of the infrared and visible light dual-light images and performing corresponding transformations. This process uses advanced image registration technology to accurately align infrared images and visible light images, facilitating subsequent analysis and fault detection. Compared with traditional single-light image analysis methods, dual-light image registration provides a richer source of information and improves the accuracy and comprehensiveness of fault detection.

[0073] In summary, the present invention provides an efficient and accurate image processing method in the segmentation of dual-light images of photovoltaic power station strings and components. Through the automatic identification of component strings by drone aerial photography, the accurate segmentation of photovoltaic components by the Otsu method, and dual-light image registration, the problems of low image segmentation accuracy and insufficient efficiency in the prior art are solved, and the efficiency and accuracy of photovoltaic power station component detection are significantly improved, which has important practical application value and technological progress. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 This is a flow chart of a dual-light image segmentation method for photovoltaic power station strings and components provided by an embodiment of the present invention;

[0075] Figure 2 is a flow chart of photovoltaic module string identification provided by an embodiment of the present invention;

[0076] Figure 3 is a comparison diagram before and after median filtering provided by an embodiment of the present invention;

[0077] Figure 4 The present invention provides a schematic diagram of HSV image segmentation;

[0078] Figure 5 is a schematic diagram of a morphological closing operation provided by an embodiment of the present invention;

[0079] Figure 6 is the identification result of the photovoltaic component string provided by the embodiment of the present invention;

[0080] Figure 7 is a flow chart of a photovoltaic module segmentation method provided by an embodiment of the present invention;

[0081] Figure 8 is a schematic diagram of a photovoltaic module string provided by an embodiment of the present invention;

[0082] Fig. 9 is a comparison diagram before and after bilateral filtering provided by an embodiment of the present invention;

[0083] Fig.10 is the image grayscale result provided by the embodiment of the present invention;

[0084] Fig.11 is a binarized image provided by an embodiment of the present invention;

[0085] Fig.12 is the morphological processing result provided by the embodiment of the present invention;

[0086] Fig.13 is a contour screening and numbering result diagram provided by an embodiment of the present invention;

[0087] Fig.14 is a flow chart of bi-optical image matching provided by an embodiment of the present invention;

[0088] Fig.15 It is a module diagram of a dual-light image segmentation system for photovoltaic power station strings and components provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0089] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0090] like Figure 1 As shown, the method for segmenting dual-light images of photovoltaic power station strings and components provided by the embodiment of the present invention includes the following steps:

[0091] S101, PV module string segmentation, identifying all module strings from the PV image obtained by drone aerial photography;

[0092] S102, photovoltaic component segmentation, threshold segmentation of photovoltaic components in each component string is performed based on the Otsu method to identify the outline and position of each component;

[0093] S103, bi-optical image registration, extracting corresponding feature points of the infrared and visible light bi-optical images and performing corresponding transformation to achieve bi-optical image registration.

[0094] The following is a detailed description of the working principle of the dual-light image segmentation method for photovoltaic power station strings and components:

[0095] In the daily maintenance and management of photovoltaic power stations, drone aerial photography technology provides great convenience for the monitoring of power stations. Drones can take panoramic images of photovoltaic power stations from high altitudes, and then perform subsequent analysis through specific image processing algorithms. In the step of photovoltaic component string segmentation, we first identify all component strings from the photovoltaic images obtained by drone aerial photography. This step mainly relies on image recognition technology and algorithms to distinguish photovoltaic component strings from complex backgrounds by identifying specific features of the photovoltaic component strings in the image, such as color, shape, and arrangement rules.

[0096] After successfully identifying all the component strings, we need to further segment the PV components in each component string in more detail. This step uses Otsu's method, which is an adaptive threshold determination method that can automatically calculate an optimal threshold based on the grayscale histogram of the image to segment the image into foreground and background. In the segmentation of PV components, we use Otsu's method to calculate the appropriate threshold and perform binarization on the component string image to identify the outline and position of each PV component.

[0097] In order to have a more comprehensive understanding of the working status of photovoltaic modules, we usually acquire two types of images, infrared and visible light, at the same time. Infrared images can reflect the temperature distribution of the modules, while visible light images can show the appearance and morphology of the modules. However, due to factors such as shooting conditions, shooting angles, and camera parameters, there is often a certain misalignment and distortion between the two images. Therefore, before analyzing the dual-light images, we need to align them, that is, align the same target area in the two images. This step mainly relies on feature point matching and image transformation technology. By extracting the corresponding feature points of the infrared and visible light dual-light images and calculating the transformation relationship between them, the two images can be accurately aligned.

[0098] This dual-light image segmentation method for photovoltaic power station strings and components combines multiple technologies such as image recognition, Otsu threshold segmentation and image registration, which can achieve accurate monitoring and analysis of photovoltaic power stations. Through the photovoltaic images obtained by drone aerial photography, we can quickly identify all component strings and photovoltaic components and obtain their contours and position information. At the same time, through the registration of dual-light images, we can fuse the information of infrared and visible light images together to more comprehensively understand the working status of photovoltaic components. This method provides strong technical support for the daily maintenance and management of photovoltaic power stations.

[0099] A plurality of photovoltaic modules are connected in series to form a photovoltaic module string. In step 1 provided in an embodiment of the present invention, an image without blur or blurred restoration is obtained after image processing, and then image processing algorithms such as image filtering, image segmentation, contour extraction, and morphological operations are used to realize the recognition of photovoltaic module strings and modules.

[0100] like Figure 2 As shown, the detailed steps for PV module string identification are as follows:

[0101] (1) Median filtering

[0102] During the image acquisition and transmission process, the jitter of drone shooting and the rotation of the gimbal will cause some noise information in the image. These noises will not only affect the recognition of photovoltaic component strings, but also affect subsequent component extraction and foreign body detection operations. Therefore, it is necessary to filter the image to reduce noise interference and retain the real information of the image. Common image filtering algorithms include linear filtering algorithms such as mean filtering and Gaussian filtering, as well as nonlinear filtering algorithms such as median filtering and bilateral filtering. Among them, median filtering uses the median of the grayscale value of the pixel neighborhood to replace the original pixel grayscale value, which can effectively suppress pulse noise and salt and pepper noise, thereby achieving the purpose of smoothing photovoltaic images.

[0103] The basic method of median filtering is to sort the pixel values ​​in the neighborhood first, then obtain the median of the pixel sequence, and finally use the obtained median to replace the pixel value of the currently processed pixel. Figure 3 shown.

[0104] (2) Image segmentation

[0105] The blue color of photovoltaic module strings is used to identify them. Common color description models include RGB, YUV and HSV. Among them, the HSV model has the characteristics of obvious color and high differentiation, and it is easier to distinguish the hue difference between different colors. Therefore, this project uses the HSV color model to segment photovoltaic module strings from the module string background. HSV parameters include hue, saturation and brightness. Each color in the color space has a certain range of values. The photovoltaic module string can be identified based on the range of blue values ​​in the HSV color model.

[0106] like Figure 4 As shown, the photovoltaic image after median filtering is converted into an HSV image, and a binary image segmentation is performed to obtain a binary image of the photovoltaic component string.

[0107] (3) Morphological closing operation

[0108] like Figure 5 As shown in the figure, there are many black dots in the white area of ​​the image, which affects the subsequent extraction of the image contour. Morphological closing operation can be performed on the image after image segmentation, that is, expansion first and then erosion, to eliminate the black holes in the white area.

[0109] (4) Contour extraction

[0110] After the morphological closing operation, a binary image with clear contours is obtained, and then the contour information of the photovoltaic module string is extracted using the eight-neighborhood traversal algorithm. The idea of ​​the contour extraction algorithm is as follows:

[0111] First, define the conditions that the contour should meet: if the point is a white pixel and there are more than one black pixel in its eight neighborhoods, then the point is considered a contour point, otherwise it is not a contour point;

[0112] Then, the eight-neighborhood is used to traverse all the pixels in the binary image, find all the contour points that meet the conditions, and record the specific location information of the point;

[0113] Finally, the collection of all contour point position information is obtained, and the contour collection is displayed on the original image to obtain the final recognition result of the photovoltaic component string, such as Figure 6 shown.

[0114] Photovoltaic modules are composed of silver frames and blue photovoltaic panels. Multiple photovoltaic modules are closely connected to form a photovoltaic module string. Therefore, the grayscale difference between the frame and the panel of the photovoltaic module can be used to distinguish and identify them. Threshold segmentation is a method of segmenting an image into background and object based on the grayscale difference of the image. The core of threshold segmentation lies in the selection of thresholds. Generally, the selection methods include manually selecting fixed thresholds, histogram threshold method, iteration method, and Otsu method. Step 2 provided by the present invention is as follows: Figure 7 shown.

[0115] (1) Capturing the image of a photovoltaic module string

[0116] The identification of photovoltaic component strings can locate the outline positions of all photovoltaic component strings in an image, and then perform image capture of the position of each photovoltaic component string, and finally obtain a separate component string image after capture for subsequent component recognition. The capture of a single component string is shown in the following figure. Figure 8 shown.

[0117] (2) Bilateral filtering

[0118] In order to achieve photovoltaic image noise reduction while maintaining the edge information of photovoltaic modules, a bilateral filtering algorithm is used. Bilateral filtering is a nonlinear filtering algorithm that considers both spatial information and grayscale similarity features to achieve image denoising and edge preservation, and has the advantages of being simple and non-iterative. The reason why bilateral filtering can achieve edge preservation is that it essentially uses a combination of two Gaussian filters, one is responsible for calculating the weight of spatial proximity, which is equivalent to the commonly used Gaussian filter, and mainly acts on the flat area of ​​the image to achieve the filtering effect, while the other is responsible for calculating the weight of pixel value similarity, and mainly acts on the edge area of ​​the image to preserve edge information.

[0119] In the flat area of ​​the photovoltaic module image, the pixel value changes very little, and the corresponding pixel range domain weight is close to 1. At this time, the spatial domain weight plays a major role; in the edge area of ​​the photovoltaic module image, the pixel value changes greatly, and the pixel range domain weight becomes larger, thereby maintaining the edge information. The processing process is as follows Fig. 9 shown.

[0120] (3) Image grayscale

[0121] Before image binarization, the filtered photovoltaic image needs to be grayed. Image graying usually includes the maximum value method, average value method and weighted average method. This project uses the weighted average method. The result of image graying is as follows: Fig.10 shown.

[0122] (4) Otsu threshold segmentation and morphological processing

[0123] Since photovoltaic modules are affected by sunlight, there will be uneven brightness in photovoltaic images. If a fixed threshold is used, it is easy to cause poor threshold segmentation effect and segmentation failure in some areas. Therefore, an adaptive threshold segmentation algorithm is used to reduce the impact of uneven lighting. Among them, the Otsu method (OTSU) is a widely used adaptive threshold segmentation algorithm with the advantages of simple calculation and not being affected by image contrast and brightness.

[0124] The following uses the Otsu method to perform threshold segmentation on the grayscale image of photovoltaic module strings:

[0125] The pixel grayscale of the PV module string image is segmented using the threshold T and divided into two categories: target and background. Let N be the total number of pixels in the module string image, N1 be the number of target pixels in the module string image, N2 be the number of background pixels in the module string image, W1 be the ratio of the target pixels to the entire module string image, u1 be the average grayscale of the target pixels, W2 be the ratio of the background pixels to the entire module string image, and u2 be the average grayscale of the background pixels.

[0126] The average gray value u of the entire image:

[0127]

[0128] The maximum inter-class variance g of the entire image:

[0129] g=ω 1 (μ 1 -μ) 2 +ω 2 (μ 2 -μ) 2

[0130] According to the calculation formula of the Otsu method, the grayscale image of the photovoltaic component string is traversed to find a threshold T that makes the maximum inter-class variance of the entire image take the maximum value. Then the threshold T is the optimal threshold in the image. Using the calculated threshold T, the grayscale photovoltaic image is threshold segmented to obtain a binary photovoltaic image, such as Fig.11 As shown in the figure, it can be seen from the binary image that there are some irregular holes in the image boundary, so the morphological closing operation is used to make the image edge contour clearer, which is convenient for subsequent contour extraction. The morphological processing results are shown in the figure. Fig.12 shown.

[0131] (5) Contour extraction, screening and numbering

[0132] After obtaining the binary photovoltaic image, contour extraction and optimization operations are performed. First, the eight-neighborhood traversal algorithm is used to obtain all contours, and then the minimum bounding rectangle of all contours is calculated. Then, all the minimum bounding rectangles are screened using the component area and component aspect ratio. Finally, the minimum bounding rectangle of the component is obtained and the component number is assigned. The processing results are shown in the figure. Fig.13 As shown in the figure. Through the analysis of the results of photovoltaic module recognition, the photovoltaic module recognition algorithm based on Otsu threshold segmentation can effectively identify most photovoltaic modules.

[0133] Due to the huge difference in features of heterogeneous images, the image registration method based on image feature points is difficult, and the visible light image and infrared image are different in resolution and field of view, so it is necessary to select the features of the image to perform registration between the images. According to the photovoltaic string image segmentation process, the photovoltaic string image of infrared and visible light images is obtained, and the template matching of infrared and visible light dual-light images is realized based on the string segmentation image, which can achieve the mapping of the dual-light image pixel area, thereby helping to achieve the coordination of infrared defect diagnosis and visible light defect diagnosis.

[0134] Due to the huge difference in point features of bi-optical images, based on the idea of ​​point feature correspondence, the registration of bi-optical images can be achieved by extracting the corresponding feature points of the bi-optical images and performing corresponding transformations.

[0135] like Fig.14As shown in the figure, the coordinates of the four corners of the string obtained from the string image need to fit the string contour accurately. The coordinates of the four corners of the string based on the contour fitting processing algorithm can be obtained by the coordinate acquisition algorithm of the four corners of the infrared and visible light dual-light image string. For the extraction of the coordinates of the four corners of the infrared and visible light strings, since this process is based on the intercepted photovoltaic strings, the coordinates of the four corners need to be converted into the original image coordinates through the inverse perspective transformation matrix. When the coordinates of the four corners of the photovoltaic string are extracted inaccurately, the inaccurate points are discarded, and the accurate points are retained and transformed to the original image. Since there are generally multiple strings in the image, the four points required for perspective transformation can be guaranteed. All the coordinate points transformed to the original image are sorted, and the bottom, top, leftmost, and rightmost four coordinates are selected, so that the coordinates of the four groups of corresponding pixel points on the infrared and visible light photovoltaic images can be obtained. The four groups of corresponding point coordinates are perspective transformed to obtain the corresponding relationship matrix between the pixels of the infrared and visible light images. The weighted image of the visible light image area and the infrared image area after the perspective matrix transformation is shown in the figure below.

[0136] The weighted images of the infrared image and the corresponding area of ​​the visible light can show that the image registration method works well and can achieve the correspondence between the pixels of the dual-light image. By calculating and counting the dual-light photovoltaic image, the method can achieve a registration success rate of 98.37%.

[0137] like Fig.15 As shown, the photovoltaic power station string and component dual-light image segmentation system provided by the embodiment of the present invention includes:

[0138] An input module for acquiring photovoltaic images;

[0139] A component string segmentation module is used to identify all component strings;

[0140] A component segmentation module is used to extract each component in the component string;

[0141] The registration module is used to realize infrared and visible light dual-light image registration.

[0142] The method for segmenting dual-light images of photovoltaic power station strings and components provided by the application embodiment of the present invention is applied to a computer device, wherein the computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for segmenting dual-light images of photovoltaic power station strings and components.

[0143] The photovoltaic power station string and component dual-light image segmentation method provided by the application embodiment of the present invention is applied to an information data processing terminal, and the information data processing terminal is used to implement the photovoltaic power station string and component dual-light image segmentation system.

[0144] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0145] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A method for segmenting dual-light images of photovoltaic power station strings and components. It is characterized in that include: Step 1: PV module string segmentation: identifying all module strings from the PV image obtained by drone aerial photography; Step 2: PV module segmentation: threshold segmentation of PV modules in each module string is performed based on the Otsu method to identify the outline and position of each module. Step three, bi-optical image registration, is to achieve bi-optical image registration by extracting corresponding feature points of infrared and visible light bi-optical images and performing corresponding transformation.

2. The method for segmenting dual-light images of photovoltaic power station strings and components according to claim 1, It is characterized in that The detailed steps of step 1, photovoltaic module string identification are as follows: (1) Median filtering First, sort the pixel values ​​in the neighborhood, then get the median of the pixel sequence, and finally use the obtained median to replace the pixel value of the currently processed pixel; (2) Image segmentation The photovoltaic image after median filtering is converted into an HSV image, and binary image segmentation is performed according to the value range of blue in the HSV color model to obtain a binary image of the photovoltaic component string; (3) Morphological closing operation Perform morphological closing operation on the image after image segmentation, that is, dilation first and then erosion, to eliminate the black holes in the white area; (4) Contour extraction After the morphological closing operation, a binary image with clear contours is obtained, and then the contour information of the photovoltaic module string is extracted using the eight-neighborhood traversal algorithm.

3. The method for segmenting dual-light images of photovoltaic power station strings and components according to claim 1, It is characterized in that The contour extraction algorithm includes: (1) Define the conditions that a contour should meet: if the point is a white pixel and there are more than one black pixel in its eight-neighborhood, then the point is considered a contour point; otherwise, it is not a contour point. (2) Use the eight-neighborhood to traverse all pixel points in the binary image, find all contour points that meet the conditions, and record the specific location information of the point; (3) Obtain the set of position information of all contour points and display the contour set on the original image to obtain the final recognition result of the photovoltaic module string.

4. The method for segmenting dual-light images of photovoltaic power station strings and components according to claim 1, It is characterized in that The second step includes: (1) Capturing images of photovoltaic module strings The identification of photovoltaic component strings can locate the outline positions of all photovoltaic component strings in an image, and then capture the image of each photovoltaic component string position, and finally obtain the captured individual component string image for subsequent component identification; (2) Bilateral filtering The bilateral filtering algorithm is used to consider both spatial information and grayscale similarity features, thereby achieving image denoising and edge preservation effects. (3) Image grayscale Use weighted average method to grayscale the image; (4) Otsu threshold segmentation and morphological processing The Otsu method is used to perform threshold segmentation on the grayscale image of photovoltaic module strings to obtain a binary photovoltaic image. The morphological closing operation is used to make the image edge contour clearer, which is convenient for subsequent contour extraction. (5) Contour extraction, screening and numbering After obtaining the photovoltaic image in binary form, contour extraction and optimization operations are performed. First, the eight-neighborhood traversal algorithm is used to obtain all contours, and then the minimum bounding rectangle of all contours is calculated. Then, all the minimum bounding rectangles are screened using the component area and component aspect ratio. Finally, the minimum bounding rectangle of the component is obtained and the component is numbered.

5. The method for segmenting dual-light images of photovoltaic power station strings and components according to claim 1, It is characterized in that The step three, based on the idea of ​​point feature correspondence, realizes the registration of the dual-light image by extracting the corresponding feature points of the dual-light image and performing corresponding transformation. The four corner coordinates of the string are obtained based on the contour fitting algorithm. The coordinates of the four corners of the infrared and visible light dual-light image string are obtained. The coordinates of the four corners are converted into the original image coordinates through the inverse perspective transformation matrix. When the coordinates of the four corners of the photovoltaic string are extracted inaccurately, the inaccurate points are discarded, and the accurate points are retained and transformed to the original image. All the coordinate points transformed to the original image are sorted, and the bottom, top, leftmost and rightmost coordinates are selected, so that the coordinates of four groups of corresponding pixel points on the infrared and visible light photovoltaic images can be obtained; the four groups of corresponding point coordinates are perspective transformed to obtain the correspondence relationship matrix between the pixels of the infrared and visible light images.

6. The method for segmenting dual-light images of photovoltaic power station strings and components according to claim 1, It is characterized in that The Otsu method is used to perform threshold segmentation on the grayscale image of the photovoltaic component string. The pixel grayscale of the photovoltaic component string image is segmented using the threshold T and divided into two categories: target and background. Let N be the total number of pixels in the component string image, N1 be the number of target pixels in the component string image, N2 be the number of background pixels in the component string image, W1 be the ratio of the number of target pixels to the entire component string image, u1 be the average grayscale of the number of target pixels, W2 be the ratio of the number of background pixels to the entire component string image, u2 be the average grayscale of the number of background pixels, and the average grayscale value u of the entire image is: ; The maximum inter-class variance g of the entire image: ; According to the OTSU calculation formula, the grayscale image of the photovoltaic component string is traversed to find a threshold T that makes the maximum inter-class variance of the entire image take the maximum value. Then the threshold T is the optimal threshold in the image. The calculated threshold T is used to perform threshold segmentation on the grayscale photovoltaic image to obtain a binary photovoltaic image.

7. A photovoltaic power station string and component dual-light image segmentation system according to any one of claims 1 to 6, It is characterized in that The photovoltaic power station string and component dual-light image segmentation system includes: An input module for acquiring photovoltaic images; A component string segmentation module is used to identify all component strings; A component segmentation module is used to extract each component in the component string; The registration module is used to realize infrared and visible light dual-light image registration.

8. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for segmenting dual-light images of photovoltaic power station strings and components as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the method for segmenting dual-light images of photovoltaic power station strings and components according to any one of claims 1 to 6.

10. An information data processing terminal, It is characterized in that The information data processing terminal is used to implement the photovoltaic power station string and component dual-light image segmentation system as described in claim 7.

Citation Information

Cited By

  • Bag placement detection system and method based on machine vision and storage medium

    CN119540248A

  • Photovoltaic station construction progress identification method and device based on unmanned aerial vehicle inspection

    CN122023845A