Moving direction adjusting method of photovoltaic module inspection equipment, electronic equipment and storage medium
Computer vision technology is used to automatically adjust the moving direction of the photovoltaic module inspection equipment, solving the problems of difficult manual control and unstable driving trajectories, and realizing the automatic straight-line driving of the equipment and maximizing the inspection area.
Patent Information
- Application Number
- CN202411062435.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-08-05
AI Technical Summary
The existing photovoltaic module inspection equipment requires manual remote control of the movement direction, which is difficult to operate and the driving trajectory is unstable. It cannot realize automatic straight driving and limits the inspection area.
Using computer vision technology, the image acquisition device collects images of photovoltaic modules, extracts texture information, determines the angle between the actual reference line and the baseline reference line, automatically adjusts the moving direction of the equipment, and realizes automatic straight-line driving.
There is no need to manually control the movement direction, which saves labor costs, expands the inspection area, and improves the automation level of the equipment.
Smart Images

Figure CN118567367A
Abstract
Description
Technical Field
[0001] The present application relates to the field of visual technology, and in particular to a method for adjusting the moving direction of photovoltaic component inspection equipment, an electronic device, and a storage medium. Background Art
[0002] The photovoltaic module inspection equipment collects images of the photovoltaic modules while traveling in the area of the photovoltaic modules. In daily inspections, the existing photovoltaic module inspection equipment usually controls the direction of movement through manual remote control. However, manual control of the photovoltaic module inspection equipment is not only labor-intensive, but also difficult to operate. It is impossible to ensure that the driving trajectory of the photovoltaic module inspection equipment is stable, resulting in a limited inspection area.
[0003] Therefore, how to automatically adjust the moving direction of the photovoltaic module inspection equipment so that the photovoltaic module inspection equipment can automatically cruise and drive in a straight line has become an urgent problem to be solved in this field. Summary of the invention
[0004] In response to the above-mentioned technical problems, the present application provides a method for adjusting the moving direction of photovoltaic module inspection equipment and an electronic device, which analyzes the surrounding environment of the equipment based on computer vision, so that the photovoltaic module inspection equipment can automatically move in a straight line based on the texture of the photovoltaic module. There is no need for manual control of the moving direction, which saves labor costs and is conducive to maximizing the inspection area.
[0005] In order to solve the above technical problems, the present application provides a method for adjusting the moving direction of a photovoltaic module inspection device, wherein the photovoltaic module inspection device is provided with an image acquisition device, and the image acquisition device is used to acquire an image in front of the photovoltaic module inspection device. The method comprises the following steps: During the movement of the photovoltaic module inspection device, acquiring the image captured by the image acquisition device; Acquiring texture information of the photovoltaic module in the image; Determining at least one actual reference line in a preset direction in the image according to the texture information; Determining an angle between the at least one actual reference line and at least one reference reference line corresponding to the image, wherein the at least one reference reference line is determined according to installation parameters of the image acquisition device; The moving direction of the photovoltaic component inspection device is adjusted according to the angle.
[0006] In some embodiments, the obtaining of texture information of the photovoltaic module in the image includes: Convert the image into an HSV image; Generate a mask image according to the HSV image; The edge sharpness information of the mask image is extracted to obtain the texture information of the photovoltaic module in the image.
[0007] In some embodiments, determining at least one actual reference line in a preset direction in the image according to the texture information includes: Extracting a plurality of straight lines corresponding to the image according to the texture information, wherein the plurality of straight lines include straight lines in a preset direction and straight lines perpendicular to the preset direction; The plurality of straight lines are screened, and at least one straight line in a preset direction is determined among the plurality of straight lines as the at least one actual reference line.
[0008] In some embodiments, screening the plurality of straight lines to determine at least one straight line in a preset direction among the plurality of straight lines as the at least one actual reference line includes: Selecting a plurality of straight lines in a preset direction from among the plurality of straight lines; Screening out, from among the plurality of straight lines in the preset direction, straight lines whose length is greater than a preset length threshold and whose lower endpoints are located in the region of the image; The at least one actual reference line is determined according to the screened straight lines.
[0009] In some embodiments, determining the at least one actual reference line according to the screened straight lines includes: If the number of the screened straight lines is greater than one, the adjacent straight lines are merged and averaged to obtain the at least one actual reference line; If the number of the screened straight lines is equal to one, the screened straight line is used as the at least one actual reference line.
[0010] In some embodiments, determining the angle between the at least one actual reference line and the at least one baseline reference line corresponding to the image includes: According to the coordinates of the lower endpoints of the at least one actual reference line, matching the reference reference lines corresponding to the actual reference lines one by one to form at least one group of combinations of the actual reference lines and the reference reference lines; The angle between the actual reference line and the reference reference line in each group of actual reference lines and reference reference lines is calculated.
[0011] In some embodiments, adjusting the moving direction of the photovoltaic assembly inspection device according to the angle includes: According to the angles corresponding to each group of actual reference lines and the baseline reference line, the coordinates of the lower endpoint of the at least one actual reference line and the midpoint of the image, a weighted calculation is performed on the angles to determine the offset angle of the photovoltaic component inspection device; The moving direction of the photovoltaic component inspection equipment is adjusted according to the offset angle.
[0012] The present application also provides a photovoltaic component inspection device, characterized in that it includes an image acquisition device and a controller, the image acquisition device is used to acquire images in front of the photovoltaic component inspection device, and the controller is configured to execute the steps of the method described above.
[0013] The present application provides an electronic device, including a storage medium and a controller, wherein a computer program is stored on the storage medium, and when the computer program is executed by the controller, the steps of the method described above are implemented.
[0014] The present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method described above are implemented.
[0015] The present application discloses a method for adjusting the moving direction of a photovoltaic component inspection device and an electronic device, the method comprising: obtaining an image captured by an image acquisition device during the movement of the photovoltaic component inspection device; obtaining grain information of the photovoltaic component in the image; determining at least one actual reference line in a preset direction in the image based on the grain information; determining the angle between at least one actual reference line and at least one reference reference line corresponding to the image, wherein the at least one reference reference line is determined based on the installation parameters of the image acquisition device; and adjusting the moving direction of the photovoltaic component inspection device based on the angle. The present application analyzes the surrounding environment of the equipment based on computer vision, so that the photovoltaic component inspection equipment can automatically drive in a straight line based on the grain of the photovoltaic component, without the need for manual control of the moving direction, thus saving labor costs and facilitating maximization of the inspection area. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of a method for adjusting the moving direction of photovoltaic component inspection equipment according to an embodiment.
[0017] Figure 2 It is a schematic diagram of a working scenario of a photovoltaic component inspection device according to an embodiment.
[0018] Figure 3 is a schematic diagram showing the relationship between an actual reference line and a baseline reference line according to an embodiment.
[0019] Figure 4 The figure is a schematic diagram of the structure of a photovoltaic module inspection device according to an embodiment. DETAILED DESCRIPTION
[0020] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present application are given in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thoroughly and comprehensively understood.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more related listed items. In this application, "each" includes one and more than two quantities.
[0022] Figure 1 FIG. 1 is a flow chart showing a method for adjusting the moving direction of a photovoltaic module inspection device according to an embodiment. Figure 1 As shown, the method for adjusting the moving direction of the photovoltaic module inspection equipment of the present application comprises the following steps: S1, obtaining an image captured by an image acquisition device during movement of the photovoltaic module inspection device; S2, obtaining texture information of the photovoltaic module in the image; S3, determining at least one actual reference line in a preset direction in the image according to the texture information; S4, determining an angle between at least one actual reference line and at least one reference reference line corresponding to the image, wherein the at least one reference reference line is determined according to installation parameters of the image acquisition device; S5, adjusting the moving direction of the photovoltaic module inspection equipment according to the angle.
[0023] Among them, please refer to Figure 2 The photovoltaic module inspection device 300 is provided with an image acquisition device 301, and the image acquisition device 301 is used to acquire the image in front of the photovoltaic module inspection device 300. The image acquisition device 301 is arranged in the front of the photovoltaic module inspection device 300, so as to acquire the environmental image in front of the photovoltaic module inspection device 300, and the environmental image will include a part of the photovoltaic module area, such as area 200.
[0024] At least one reference line is determined according to the installation parameters of the image acquisition device 301. The installation parameters include the height and elevation angle at which the image acquisition device 301 is installed on the photovoltaic module inspection device 300. Since the installation parameters are fixed, the reference line after the straight line in the image is distorted can be obtained according to the installation parameters, such as Figure 3The center line 41 is shown. The number and position of the baseline reference lines in the image can be set according to the size of the photovoltaic module. It can be understood that the baseline reference line is a virtual reference line, and its direction and position relative to the image do not change with the movement direction of the photovoltaic module inspection device.
[0025] The photovoltaic module includes a plurality of battery panels arranged in sequence, and the battery panel includes a plurality of battery cells arranged in sequence. The edges of the battery panels and battery cells are connected to form a continuous straight line, including horizontal lines and vertical lines. The grain information of the photovoltaic module is the straight line connected between the edges of the battery panels and battery cells in the image. Therefore, after determining the actual reference line according to the grain information, such as Figure 3 The middle line 42 indicates that by calculating the angle between it and the baseline reference line, the moving direction of the photovoltaic module inspection equipment can be adjusted so that the photovoltaic module inspection equipment can move along the grain of the photovoltaic module (i.e. the straight line formed by the edge) as much as possible, thereby eliminating the need for manual control to control the moving direction of the equipment.
[0026] In some embodiments, step S2, obtaining texture information of the photovoltaic module in the image, includes: Convert the image to HSV image; Generate a mask image based on the HSV image; The sharp edge information of the mask image is extracted to obtain the texture information of the photovoltaic module in the image.
[0027] The collected RGB image is converted into an HSV image, and the hue value data, saturation value data and brightness value data in the HSV image are extracted. According to the hue value data, saturation value data and brightness value data, the threshold range of the white area in the RGB image is determined, and then the mask image is generated according to the determined threshold range and combined with the HSV image. Then, according to the mask image, the Canny edge detection algorithm is used to extract the edge sharpness information of the mask image and generate a texture image, that is, the texture information of the photovoltaic module in the image is obtained.
[0028] In some embodiments, step S3, determining at least one actual reference line in a preset direction in the image according to the texture information, includes: Extracting a plurality of straight lines corresponding to the image according to the texture information, wherein the plurality of straight lines include straight lines in a preset direction and straight lines perpendicular to the preset direction; The plurality of straight lines are screened, and at least one straight line in a preset direction is determined as at least one actual reference line among the plurality of straight lines.
[0029] Among them, according to the texture image, the Hoffman line detection algorithm is used to extract all the straight lines in the texture image, which reflect the edges of the photovoltaic module. Among these straight lines, there are straight lines in the preset direction and straight lines perpendicular to the preset direction. In some embodiments, the preset direction refers to a direction parallel to the moving direction of the device, for example, a straight line extending along the moving direction of the device in an actual environment (which may be called a vertical line), and a straight line perpendicular to the preset direction refers to a horizontal line perpendicular to the vertical line (or called a horizontal line). When the straight line in the preset direction selects a vertical line, the baseline reference line selects a vertical line.
[0030] In some embodiments, screening a plurality of straight lines to determine at least one straight line in a preset direction among the plurality of straight lines as at least one actual reference line includes: Among multiple straight lines, multiple straight lines in a preset direction are selected; Among the multiple straight lines in the preset direction, a straight line whose length is greater than a preset length threshold and whose lower end point is located in the area of the image is selected; At least one actual reference line is determined based on the screened straight lines.
[0031] Among them, according to all the straight lines in the texture image, the slopes of the straight lines are standardized, and all the horizontal lines and all the vertical lines in the texture image are distinguished. According to all the vertical lines in the texture image, the vertical lines with too short lengths are preliminarily screened out, and then all the remaining vertical lines are extended downward to the position of the lower edge line of the image to obtain the lower endpoint coordinates of each vertical line. According to the lower endpoint coordinates of all the vertical lines, the vertical lines that exceed the image area are screened out. The vertical lines left at this time are the screened lines.
[0032] In some embodiments, determining at least one actual reference line according to the screened straight lines includes: If the number of screened straight lines is greater than one, the adjacent straight lines are merged and averaged to obtain at least one actual reference line; If the number of the screened straight lines is equal to one, the screened straight line is used as at least one actual reference line.
[0033] Among them, according to the number of screened straight lines, if the number of screened straight lines is greater than one, the adjacent vertical lines can be merged and averaged to obtain all the actual reference lines in the texture image, thereby improving the accuracy of the actual reference lines. If the number of screened straight lines is equal to one, the screened straight line is directly used as the actual reference line.
[0034] By processing the above-mentioned straight lines, a straight line suitable for the next step of analysis can be selected and processed in the texture image as a reference line. For example, a straight line located in the middle area of the image and with a more accurate slope can be selected to improve the accuracy of the angle calculation, thereby more accurately adjusting the movement direction of the device.
[0035] In some embodiments, step S4, determining an angle between at least one actual reference line and at least one baseline reference line corresponding to the image, comprises: According to the coordinates of the lower endpoint of at least one actual reference line, matching the reference reference lines corresponding to each actual reference line one by one to form at least one set of a combination of the actual reference line and the reference reference line; The angle between the actual reference line and the reference reference line in each group of actual reference lines and reference reference lines is calculated.
[0036] Among them, according to the coordinates of the lower endpoints of all actual reference lines in the texture image, the baseline reference lines corresponding to them are matched to form a combination of multiple groups of actual reference lines and baseline reference lines. Then, according to all groups of actual reference lines and baseline reference lines, the angle formed by each group of actual reference lines and the corresponding baseline reference line is calculated, and the angle range is 0 degrees to 45 degrees.
[0037] In some embodiments, step S5, adjusting the moving direction of the photovoltaic module inspection device according to the angle, includes: According to the angles corresponding to each group of actual reference lines and the baseline reference line, the coordinates of the lower endpoint of at least one actual reference line and the midpoint of the image, a weighted calculation is performed on the angles to determine the offset angle of the photovoltaic module inspection equipment; Adjust the moving direction of the PV panel inspection equipment according to the offset angle.
[0038] Among them, the angle is weighted to determine the offset angle of the photovoltaic module inspection equipment. , the following formula can be used:
[0039] in, is the number of actual reference lines, It is The coordinates of the lower endpoint of the actual reference line, are the coordinates of the point in the image, It is Actual Article The line and the corresponding benchmark The angle between the lines.
[0040] Due to the influence of image distortion, the offset angle of the photovoltaic module inspection equipment is determined by weighted calculation, which can improve the accuracy of the calculation results and thus improve the accuracy of the direction adjustment.
[0041] After calculating the offset angle, if the offset angle exceeds the preset angle range, the moving direction of the photovoltaic module inspection device can be adjusted to reduce the offset angle to within the preset angle range to ensure that the photovoltaic module inspection device moves in a straight line.
[0042] The method for adjusting the moving direction of the photovoltaic module inspection equipment of the present application analyzes the surrounding environment of the equipment based on computer vision, so that the photovoltaic module inspection equipment can automatically move in a straight line based on the texture of the photovoltaic module without manual control of the moving direction, thus saving labor costs and facilitating the maximization of the inspection area. Figure 4 FIG. 1 is a schematic diagram showing the structure of a photovoltaic module inspection device according to an embodiment. Figure 4 As shown, a photovoltaic component inspection device includes an image acquisition device 301 and a controller 530. The image acquisition device 301 is connected to the controller 530 and is used to acquire images in front of the photovoltaic component inspection device.
[0043] The controller 530 is configured to execute the steps of the method described in the above embodiment, which will not be described in detail here. The present application provides an electronic device, including a storage medium and a controller, wherein a computer program is stored on the storage medium, and when the computer program is executed by the controller, the steps of the method described above are implemented.
[0044] The present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method described above are implemented.
[0045] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for adjusting the moving direction of a photovoltaic module inspection device. It is characterized in that The photovoltaic component inspection device is provided with an image acquisition device, and the image acquisition device is used to acquire an image in front of the photovoltaic component inspection device. The method comprises the following steps: During the movement of the photovoltaic module inspection device, acquiring the image captured by the image acquisition device; Acquiring texture information of the photovoltaic module in the image; Determining at least one actual reference line in a preset direction in the image according to the texture information; Determining an angle between the at least one actual reference line and at least one reference reference line corresponding to the image, wherein the at least one reference reference line is determined according to installation parameters of the image acquisition device; The moving direction of the photovoltaic component inspection device is adjusted according to the angle.
2. The method according to claim 1, It is characterized in that The obtaining of texture information of the photovoltaic module in the image includes: Convert the image into an HSV image; Generate a mask image according to the HSV image; The edge sharpness information of the mask image is extracted to obtain the texture information of the photovoltaic module in the image.
3. The method according to claim 1, It is characterized in that The step of determining at least one actual reference line in a preset direction in the image according to the texture information includes: Extracting a plurality of straight lines corresponding to the image according to the texture information, wherein the plurality of straight lines include straight lines in a preset direction and straight lines perpendicular to the preset direction; The plurality of straight lines are screened, and at least one straight line in a preset direction is determined among the plurality of straight lines as the at least one actual reference line.
4. The method according to claim 3, It is characterized in that The screening of the plurality of straight lines to determine at least one straight line in a preset direction among the plurality of straight lines as the at least one actual reference line includes: Selecting a plurality of straight lines in a preset direction from among the plurality of straight lines; Screening out, from among the plurality of straight lines in the preset direction, straight lines whose length is greater than a preset length threshold and whose lower endpoints are located in the region of the image; The at least one actual reference line is determined according to the screened straight lines.
5. The method according to claim 4, It is characterized in that The step of determining the at least one actual reference line according to the screened straight lines includes: If the number of the screened straight lines is greater than one, the adjacent straight lines are merged and averaged to obtain the at least one actual reference line; If the number of the screened straight lines is equal to one, the screened straight line is used as the at least one actual reference line.
6. The method according to any one of claims 1 to 5, It is characterized in that The determining of the angle between the at least one actual reference line and the at least one reference line corresponding to the image comprises: According to the coordinates of the lower endpoints of the at least one actual reference line, matching the reference reference lines corresponding to the actual reference lines one by one to form at least one group of combinations of the actual reference lines and the reference reference lines; The angle between the actual reference line and the reference reference line in each group of actual reference lines and reference reference lines is calculated.
7. The method according to claim 6, It is characterized in that The adjusting the moving direction of the photovoltaic assembly inspection device according to the angle includes: According to the angles corresponding to each group of actual reference lines and the baseline reference line, the coordinates of the lower endpoint of the at least one actual reference line and the midpoint of the image, a weighted calculation is performed on the angles to determine the offset angle of the photovoltaic module inspection device; The moving direction of the photovoltaic component inspection equipment is adjusted according to the offset angle.
8. A photovoltaic module inspection device, It is characterized in that It comprises an image acquisition device and a controller, wherein the image acquisition device is used to acquire images in front of the photovoltaic component inspection equipment, and the controller is configured to execute the steps of the method as claimed in any one of claims 1 to 7.
9. An electronic device comprising a storage medium and a controller, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by the controller, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A storage medium, It is characterized in that The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Edge obstacle avoiding path selection method based on navigation path, chip and robot
CN113110497A
Intelligent unmanned inspection system and intelligent inspection terminal for photovoltaic power station
CN113673418A
Equipment position image recognition system
CN113756815A
Photovoltaic string inspection method, flight equipment, inspection device and storage medium
CN114140420A
Photovoltaic module monitoring method and device, computer equipment and storage medium
CN116404983A
