Method, device, storage medium and electronic equipment for image processing
By acquiring target images of photovoltaic power plants and using transformer locations to search for main path links, the automatic movement of power generation units solves the problem of low efficiency in manual map splitting during photovoltaic power plant design changes, and achieves efficient automated splitting of the overall map.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HEFEI SUNGROW RENEWABLE ENERGY SCI & TECH CO LTD
- Filing Date
- 2022-11-16
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, changes to the design of photovoltaic power plants require multiple tedious manual drawing splits, resulting in low efficiency.
By acquiring target images of photovoltaic power plants, the main path links of power generation units are searched using transformer locations, and power generation units are automatically moved based on target equipment information and main path links, thus achieving automated image segmentation.
It enables efficient and automated splitting of the master plan during photovoltaic power plant design changes, avoiding the tedious manual splitting process and improving splitting efficiency.
Smart Images

Figure CN115909385B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of photovoltaic imaging, and more specifically, to an image processing method, apparatus, storage medium, and electronic device. Background Technology
[0002] With the widespread use of photovoltaic (PV) power plants, site planning and layout are crucial components of PV power plant design. A site plan is included in the detailed design deliverables of a PV power plant. This site plan contains detailed information about the entire power plant design, including the zoning of power generation units, PV strings and their combinations, and the laying paths for both low-voltage and high-voltage cables within the PV field. The locations of all PV strings and equipment are geographically accurate.
[0003] The site plan presents complete information and covers various types of data, but it does not differentiate between specialties. For example, the low-voltage cable laying specialty only focuses on the low-voltage cable line information of a single power generation unit, without considering the relative positional relationships of the power generation units.
[0004] In related technologies, the main method for splitting the general layout plan relies on designers manually selecting power generation unit information based on the results of the general layout plan. However, the manual selection process is quite complex. When the design of a photovoltaic power station changes, the changes are generally made on the general layout plan. If it is necessary to split the plan, manual splitting must be performed again.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This application provides an image processing method, apparatus, storage medium, and electronic device to at least solve the technical problem of needing to perform multiple tedious manual image splitting when splitting images due to changes in the design of photovoltaic power plants.
[0007] According to one aspect of the embodiments of this application, an image processing method is provided, comprising: acquiring a target image corresponding to a photovoltaic power station, wherein the target image is used to indicate complete design information of the photovoltaic power station, the target image includes multiple power generation units, wherein the power generation unit includes at least a transformer; searching for the main path link corresponding to each power generation unit according to the location of the transformer; determining the target equipment information included in the envelope of each power generation unit, and moving each power generation unit according to the target equipment information, the transformer and the main path link to obtain a segmented image of the target image.
[0008] Optionally, the movement of each power generation unit is performed based on the target equipment information, transformer, and main path link, including: determining the label corresponding to each power generation unit in the target image; sorting each power generation unit according to the label to obtain the sorting result; determining the target equipment information, transformer, and main path link as the target set; and moving each sorted power generation unit according to the target set.
[0009] Optionally, moving the sorted power generation units according to the target set includes: obtaining the coordinate points corresponding to each element in the target set, wherein each element includes: target equipment information, transformer and main path link; determining the minimum coordinate point and the maximum coordinate point among the coordinate points, constructing a rectangle corresponding to each power generation unit based on the minimum coordinate point and the maximum coordinate point; and moving the sorted power generation units based on the rectangles.
[0010] Optionally, moving the sorted power generation units based on rectangles includes: determining the first rectangle to be moved in the sorting result as the target rectangle, selecting any vertex from the target rectangle as a moving reference point, and determining the first position of the moving reference point in the target image; determining the second position of the sub-image, wherein the second position is used to indicate the starting position in the sub-image; and moving each power generation unit according to the first position and the second position.
[0011] Optionally, moving each power generation unit according to the first position and the second position includes: determining the target movement vector value of the target rectangle based on the first position and the second position; and moving each power generation unit based on the target movement vector value.
[0012] Optionally, moving each power generation unit based on the target movement vector value includes: determining the power generation unit corresponding to the target rectangle as the target power generation unit, moving each element in the target power generation unit based on the target movement vector value; determining the next power generation unit corresponding to the target power generation unit indicated in the sorting result; extending the length of the target rectangle in the X direction with the second position as a reference point; obtaining a new movement vector value at a preset distance; moving all elements in the next power generation unit based on the new movement vector value; determining the movement vector values corresponding to all remaining power generation units in sequence according to the sorting result, and moving all elements in all remaining power generation units based on the movement vector values corresponding to all remaining power generation units.
[0013] Optionally, the main path link corresponding to each power generation unit is searched based on the location of the transformer, including: acquiring all transformers in the target image and sorting them according to a predetermined rule; acquiring the coordinates of the first transformer in the target image from the sorting result and adding the coordinates of the first transformer to the first-level link coordinate set; acquiring all line segments within a preset range of the first-level link coordinate values in the target image, judging each line segment, and selecting from all line segments in the first-level link that any line whose endpoint is equal to the coordinates of the inverter point of the first-level link is part of the main path link; acquiring all line segments within a predetermined range of the N-1 level link coordinate values in the target image, judging each line segment, and selecting from all line segments in the N-level link that any line whose endpoint is equal to the coordinates of the endpoint of the N-1 level link is part of the main path link, until there are no endpoint coordinates of the N-level link.
[0014] Optionally, the target equipment information may include at least the photovoltaic strings of the power generation unit.
[0015] According to another aspect of the embodiments of this application, an image processing apparatus is also provided, comprising: an acquisition module, configured to acquire a target image corresponding to a photovoltaic power station, wherein the target image is used to indicate complete design information of the photovoltaic power station, and the target image includes multiple power generation units, wherein the power generation unit includes at least a transformer; a search module, configured to search for the main path link corresponding to each power generation unit based on the location of the transformer; and a determination module, configured to determine the target equipment information included within the envelope of each power generation unit, and move each power generation unit according to the target equipment information, the transformer, and the main path link to obtain a segmented image of the target image.
[0016] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, comprising: the storage medium including a stored program, wherein, when the program is running, it controls the device where the storage medium is located to execute any image processing method.
[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement any image processing method.
[0018] In this embodiment, the method involves searching for target equipment information of each power generation unit that needs to be split, and moving the unit based on the searched target equipment information, transformer, and main path link. By acquiring the target image corresponding to the photovoltaic power station, the label corresponding to each power generation unit is determined; the main path link corresponding to each power generation unit is searched based on the location of the transformer; the target equipment information included in the envelope of each power generation unit is determined, and each power generation unit is moved based on the target equipment information, transformer, and main path link to obtain the split image of the target image. This achieves the purpose of automatically splitting the overall image, thereby achieving a high-efficiency technical effect without manual splitting, and solving the problem of needing multiple tedious manual splitting techniques when splitting images due to changes in the design of the photovoltaic power station. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0020] Figure 1 This is a schematic flowchart of an image processing method according to an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of a split overall view according to an embodiment of this application;
[0022] Figure 3 This is a schematic diagram of a target low-voltage main path link according to an embodiment of this application;
[0023] Figure 4 This is a schematic flowchart of another image processing method according to an embodiment of this application;
[0024] Figure 5 This is a schematic diagram illustrating the determination of the start and end points of a line segment according to an embodiment of this application;
[0025] Figure 6 This is a schematic diagram of an overall view according to an embodiment of this application;
[0026] Figure 7 This is a schematic diagram of the interior of a power generation unit according to an embodiment of this application;
[0027] Figure 8 This is a schematic diagram of the apparatus structure of an image processing method according to an embodiment of this application;
[0028] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement embodiments of this application is shown. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] According to an embodiment of this application, an image processing method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0032] Figure 1 This is an image processing method according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:
[0033] Step S102: Obtain the target image corresponding to the photovoltaic power station. The target image is used to indicate the complete design information of the photovoltaic power station. The target image includes multiple power generation units, and the power generation unit includes at least one transformer.
[0034] It should be noted that the above-mentioned power generation unit mainly includes photovoltaic strings, combiner boxes and / or inverters, transformers and other equipment.
[0035] Step S104: Search for the main path link corresponding to each power generation unit based on the location of the transformer;
[0036] Step S106: Determine the target equipment information included in the envelope of each power generation unit, and move each power generation unit according to the target equipment information, transformer and main path link to obtain the sub-image of the target image.
[0037] It should be noted that the target equipment information mentioned above includes at least the photovoltaic strings of the power generation unit. The envelope of the power generation unit includes all the photovoltaic strings inside the power generation unit, but does not include the transformer and some low-voltage main path lines. The target image mentioned above is the overall diagram.
[0038] In this embodiment, the method involves searching for target equipment information of each power generation unit that needs to be split, and moving the unit based on the searched target equipment information, transformer, and main path link. By acquiring the target image corresponding to the photovoltaic power station, the label corresponding to each power generation unit is determined; the main path link corresponding to each power generation unit is searched based on the location of the transformer; the target equipment information included in the envelope of each power generation unit is determined, and each power generation unit is moved based on the target equipment information, transformer, and main path link to obtain the split image of the target image. This achieves the purpose of automatically splitting the overall image, thereby achieving a high-efficiency technical effect without manual splitting, and solving the problem of needing multiple tedious manual splitting techniques when splitting images due to changes in the design of the photovoltaic power station.
[0039] In an exemplary embodiment of this application, moving each power generation unit according to target equipment information, transformer, and main path link includes: determining the label corresponding to each power generation unit in the target image; sorting each power generation unit according to the label to obtain a sorting result; determining the target equipment information, transformer, and main path link as a target set; and moving each sorted power generation unit according to the target set.
[0040] It should be noted that the label corresponding to each power generation unit is the number corresponding to each power generation unit. The sorting results are obtained by sorting according to the number of each power generation unit.
[0041] Optionally, moving the sorted power generation units according to the target set includes: obtaining the coordinate points corresponding to each element in the target set, wherein each element includes: target equipment information, transformer and main path link; determining the minimum coordinate point and the maximum coordinate point among the coordinate points, constructing a rectangle corresponding to each power generation unit based on the minimum coordinate point and the maximum coordinate point; and moving the sorted power generation units based on the rectangles.
[0042] It should be noted that the coordinates of each element in the target set are obtained. Specifically, for a device, the coordinates of the device placement point are obtained; for a line segment, the coordinates of the two endpoints of the line segment are obtained; and for text, the coordinates of the center of the text are obtained.
[0043] Understandably, determining the minimum and maximum coordinate points within the coordinate system involves obtaining the minimum X-coordinate, minimum Y-coordinate, maximum X-coordinate, and maximum Y-coordinate after acquiring all coordinates. A rectangle is then constructed using these four coordinate points, and this rectangle can be expanded outwards by different multiples to ultimately form the area occupied by the power generation unit.
[0044] In some optional embodiments of this application, moving the sorted power generation units based on rectangles includes: determining the first rectangle to be moved in the sorting result as the target rectangle; selecting any vertex from the target rectangle as a moving reference point; determining the first position of the moving reference point in the target image; determining the second position of the sub-image; and moving each power generation unit according to the first and second positions. It should be noted that the second position is used to indicate the starting position in the sub-image, and the aforementioned sub-image is the final planar display image showing the division of each power generation unit.
[0045] Optionally, moving each power generation unit according to the first position and the second position includes: determining the target movement vector value of the target rectangle based on the first position and the second position; and moving each power generation unit based on the target movement vector value.
[0046] Understandably, in the overall image, any vertex of the target rectangle is selected as the reference point for movement. The first position in the target image is the selected reference point, and the position obtained after image segmentation is the second position. The target movement vector value is determined based on the first and second positions, and the target rectangle is moved according to the target movement vector value. For example, the lower left corner of the target rectangle can be used as the reference point for movement, and the target movement vector value is determined based on the difference between the coordinates of the lower left corner and the second position.
[0047] Figure 2 This is a schematic diagram of a split overall view according to an embodiment of this application, such as... Figure 2 As shown, there are two separable power generation units in the overall diagram. Power generation unit #1 corresponds to the No. 1 square matrix. Any vertex in the rectangle corresponding to the No. 1 square matrix is selected as the moving reference point. The position A of the moving reference point in the target image is the second position in the image obtained after splitting the image. The second position can be position B. Position A and position B determine the target moving vector value of the No. 1 square matrix. Power generation unit #1 is moved according to the target moving vector value.
[0048] The power generation unit #2 selects the second position of power generation unit #1 as the reference point, that is, position B is the reference position of power generation unit #2. It extends in the X direction, and the extension distance is the sum of the length of the first square and the preset distance. In this way, the movement vector value of power generation unit #2 is obtained, and power generation unit #2 is moved according to the movement vector value.
[0049] As an optional implementation, moving each power generation unit based on the target movement vector value includes: determining the power generation unit corresponding to the target rectangle as the target power generation unit; moving each element in the target power generation unit based on the target movement vector value; determining the next power generation unit corresponding to the target power generation unit indicated in the sorting result; extending the length of the target rectangle in the X direction with the second position as a reference point; obtaining a new movement vector value at a preset distance; moving all elements in the next power generation unit based on the new movement vector value; determining the movement vector values corresponding to all remaining power generation units in sequence according to the sorting result; and moving all elements in all remaining power generation units based on the movement vector values corresponding to all remaining power generation units.
[0050] Understandably, the next power generation unit selects the second position of the previous power generation unit as a reference point and extends it in the X direction. The extension distance is the sum of the length of the previous target rectangle and the preset distance. This gives the movement vector value of the power generation unit, and it moves according to the movement vector value.
[0051] In an exemplary embodiment of this application, searching for the main path link corresponding to each power generation unit based on the location of the transformer includes: acquiring all transformers in the target image and sorting the transformers according to a predetermined rule; acquiring the coordinates of the first transformer in the target image from the sorting result and adding the coordinates of the first transformer to the first-level link coordinate set; acquiring all line segments within a preset range of the first-level link coordinate values in the target image; judging each line segment and selecting any line whose endpoint is equal to the box inverter point coordinate of the first-level link from all line segments in the first-level link as part of the main path link; for all line segments in the acquired second-level link, judging each line and selecting any line whose endpoint is equal to the box inverter point coordinate of the second-level link as part of the main path link from all line segments in the second-level link; for all line segments in the acquired third-level link, judging each line and selecting any line whose endpoint is equal to the box inverter point coordinate of the third-level link as part of the main path link from all line segments in the third-level link.
[0052] Similarly, obtain all line segments within a predetermined range of the coordinates of the (N-1)th level link in the target image; for each line segment, determine which line, whose endpoint is equal to the endpoint coordinate of the (N-1)th level link, is part of the main path link, until no endpoint coordinate of the Nth level link exists, where N≥2. Understandably, the complete main path link can be obtained through the above search and traversal process.
[0053] It should be noted that the transformers are sorted according to a predetermined rule, which can be a sorting of numbers from smallest to largest; all line segments within a preset range of the first-level link coordinate values in the target image are obtained, where the preset range can be, but is not limited to, a range of 1 meter; all line segments within a predetermined range of the (N-1)th-level link coordinate values in the target image are obtained, where the predetermined range can be the same as the preset range, and can be, but is not limited to, a range of 1 meter.
[0054] Figure 3 This is a schematic diagram of a target low-voltage main path link according to an embodiment of this application, as shown below. Figure 3 As shown, the search rule is to obtain all line segments within a predetermined range of the coordinate values of the (N-1)th level link in the target image; for each line segment, determine whether any one of the obtained line segments in the corresponding Nth level link is equal to the endpoint coordinate of the (N-1)th level link, until there is no endpoint coordinate of the Nth level link. At this point, the target low-voltage main path link can be obtained.
[0055] To facilitate a better understanding of the technical solutions of this application by those skilled in the art, a specific embodiment will now be described.
[0056] Figure 4 This is a schematic flowchart of another image processing method according to an embodiment of this application, such as... Figure 4 As shown, the process mainly includes the following steps:
[0057] (1) Each power generation unit has a transformer and a power generation unit envelope. A unique label with the power generation unit number is added to the transformer and the power generation unit envelope.
[0058] (2) Based on the location of the transformer, search for the low-voltage main path link from the drawings;
[0059] (3) Using the envelope of the power generation unit as the area dividing zone, obtain the photovoltaic strings, combiner boxes and / or inverters and their numbers within the power generation unit;
[0060] (4) Integrate the photovoltaic strings, combiner boxes and / or inverters and their numbers, transformer locations, and low-voltage main path link data within the power generation unit into a set, sort them by power generation unit labels, and divide the objects into maps according to established rules.
[0061] It is noteworthy that the method proposed in this application is an automated general layout splitting method. After modifying the general layout, manual splitting is no longer required, improving the efficiency of general layout splitting; the method of this application can include all elements of each power generation unit. Using the method of this application for splitting, elements not within the envelope of the power generation unit can be displayed in the splitting result. Among them, transformers and low-voltage main paths are not within the envelope of the power generation unit, but they can all be displayed using the method of this application; the method of this application uses graphic vector movement rules for movement, and technicians can customize the display order of the splitting.
[0062] Figure 5 This is a schematic diagram illustrating the determination of the start and end points of a line segment according to an embodiment of this application, such as... Figure 5 As shown, the transformer's coordinates can be the first-level link coordinates. Within the preset range of the first-level link coordinates, there is only one line segment that can be contacted, and one endpoint of this line segment is equal to the inverter point coordinate of the first-level link. Then, the position of the cross intersection is the second-level link coordinate. Figure 6 This is a schematic diagram of an overall view according to an embodiment of this application, such as... Figure 6 As shown, the line enclosing the outside of the power generation unit is the power generation unit envelope. The power generation unit envelope includes all the photovoltaic strings inside the power generation unit, but does not include the transformer and part of the low-voltage main path line.
[0063] Figure 7 This is a schematic diagram of the interior of a power generation unit according to an embodiment of this application, as shown below. Figure 7 As shown, #1 is a power generation unit in the overall diagram, where #1 represents the label of the power generation unit.
[0064] Figure 8 This is a schematic diagram of the apparatus structure of an image processing method according to an embodiment of this application, such as... Figure 8 As shown, the device includes:
[0065] The acquisition module 80 is used to acquire a target image corresponding to a photovoltaic power station. The target image is used to indicate the complete design information of the photovoltaic power station. The target image includes multiple power generation units, wherein the power generation unit includes at least a transformer.
[0066] Search module 82 is used to search for the main path link corresponding to each power generation unit based on the location of the transformer.
[0067] The determination module 84 is used to determine the target equipment information included in the envelope of each power generation unit, and to move each power generation unit according to the target equipment information, transformer and main path link to obtain the sub-image of the target image.
[0068] In this device, the acquisition module 80 is used to acquire the target image corresponding to the photovoltaic power station. The target image is used to indicate the complete design information of the photovoltaic power station and includes multiple power generation units. The search module 82 is used to search for the main path link corresponding to each power generation unit based on the location of the transformer. The determination module 84 is used to determine the target equipment information included in the envelope of each power generation unit, and move each power generation unit according to the target equipment information, transformer and main path link to obtain the sub-image of the target image. This achieves the purpose of automatically splitting the overall picture, thereby achieving the technical effect of high efficiency and no need for manual sub-picture, and thus solving the technical problem of needing multiple tedious manual sub-pictures when the design of the photovoltaic power station changes.
[0069] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, comprising: the storage medium including a stored program, wherein, when the program is running, it controls the device where the storage medium is located to execute any image processing method.
[0070] Specifically, the aforementioned storage medium is used to store program instructions for the following functions, thereby implementing the following functions:
[0071] Obtain the target image corresponding to the photovoltaic power station. The target image is used to indicate the complete design information of the photovoltaic power station. The target image includes multiple power generation units, and the power generation unit includes at least a transformer. Search for the main path link corresponding to each power generation unit based on the location of the transformer. Determine the target equipment information included in the envelope of each power generation unit, and move each power generation unit according to the target equipment information, transformer and main path link to obtain the sub-image of the target image.
[0072] Optionally, in this embodiment, the storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of the storage medium include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0073] In an exemplary embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements any of the above-described image processing methods.
[0074] Optionally, when executed by a processor, the computer program may perform the following steps:
[0075] Obtain the target image corresponding to the photovoltaic power station. The target image is used to indicate the complete design information of the photovoltaic power station. The target image includes multiple power generation units, and the power generation unit includes at least a transformer. Search for the main path link corresponding to each power generation unit based on the location of the transformer. Determine the target equipment information included in the envelope of each power generation unit, and move each power generation unit according to the target equipment information, transformer and main path link to obtain the sub-image of the target image.
[0076] An electronic device is provided according to an embodiment of this application, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any of the above-described image processing methods.
[0077] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0078] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0079] like Figure 9 As shown, device 900 includes a computing unit 901, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 902 or a computer program loaded from storage unit 908 into random access memory (RAM) 903. RAM 903 may also store various programs and data required for the operation of device 900. The computing unit 901, ROM 902, and RAM 903 are interconnected via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.
[0080] Multiple components in device 900 are connected to I / O interface 905, including: input unit 906, such as keyboard, mouse, etc.; output unit 907, such as various types of monitors, speakers, etc.; storage unit 908, such as disk, optical disk, etc.; and communication unit 909, such as network card, modem, wireless transceiver, etc. Communication unit 909 allows device 900 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0081] The computing unit 901 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as image processing methods. For example, in some embodiments, the image processing method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on device 900 via ROM 902 and / or communication unit 909. When the computer program is loaded into RAM 903 and executed by the computing unit 901, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform image processing methods by any other suitable means (e.g., by means of firmware).
[0082] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0084] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0086] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0087] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0088] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0089] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0090] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the movement of a unit can be a logical functional movement, and in actual implementation, there may be other movement methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection can be through some interfaces; the indirect coupling or communication connection of units or modules can be electrical or other forms.
[0091] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0092] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0093] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0094] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. An image processing method, characterized in that, include: Obtain a target image corresponding to a photovoltaic power station, wherein the target image is used to indicate the complete design information of the photovoltaic power station, and the target image includes multiple power generation units, wherein the power generation unit includes at least: a transformer; The search for the main path link corresponding to each power generation unit based on the location of the transformer includes: acquiring all transformers in the target image and sorting them according to a predetermined rule; acquiring the coordinates of the first transformer in the target image from the sorting result and adding the coordinates of the first transformer to the first-level link coordinate set; acquiring all line segments within a preset range of the first-level link coordinate values in the target image, judging each line segment, and selecting any line whose endpoint is equal to the inverter point coordinate of the first-level link as part of the main path link from all line segments in the first-level link; acquiring all line segments within a predetermined range of the (N-1)th-level link coordinate values in the target image, judging each line segment, and selecting any line whose endpoint is equal to the endpoint coordinate of the (N-1)th-level link as part of the main path link from all line segments in the Nth-level link, until there are no endpoint coordinates of the Nth-level link, where N≥2; determining the target equipment information included in the envelope of each power generation unit, and moving each power generation unit according to the target equipment information, the transformer, and the main path link to obtain a segmented image of the target image; Moving each power generation unit according to the target equipment information, the transformer, and the main path link includes: determining the label corresponding to each power generation unit in the target image; sorting each power generation unit according to the label to obtain a sorting result; determining the target equipment information, the transformer, and the main path link as a target set; and moving each sorted power generation unit according to the target set.
2. The method according to claim 1, characterized in that, Moving the sorted power generation units according to the target set includes: Obtain the coordinates of each element within the target set, wherein each element includes: the target device information, the transformer, and the main path link; Determine the minimum and maximum coordinate points among the coordinate points, and construct a rectangle corresponding to each power generation unit based on the minimum and maximum coordinate points; The sorted power generation units are moved based on the rectangle.
3. The method according to claim 2, characterized in that, Moving the sorted power generation units based on the rectangle includes: The first rectangle to be moved in the sorting result is determined as the target rectangle. Any vertex of the target rectangle is selected as a moving reference point, and the first position of the moving reference point in the target image is determined. A second position is determined in the sub-image, wherein the second position is used to indicate the starting position in the sub-image; the respective power generation units are moved according to the first position and the second position.
4. The method according to claim 3, characterized in that, Moving each power generation unit according to the first position and the second position includes: The target movement vector value of the target rectangle is determined based on the first position and the second position; The individual power generation units are moved based on the target movement vector value.
5. The method according to claim 4, characterized in that, Moving each power generation unit based on the target movement vector value includes: The target rectangle is identified as the corresponding power generation unit, and each element in the target power generation unit is moved based on the target movement vector value. Determine the next power generation unit corresponding to the target power generation unit indicated in the sorting result; Using the second position as a reference point, extend the length of the target rectangle in the X direction; and obtain new movement vector values at preset distances; Move all elements within the next power generation unit based on the new movement vector value; Based on the sorting results, determine the movement vector values corresponding to all remaining power generation units in sequence, and move all elements in all remaining power generation units based on the movement vector values corresponding to all remaining power generation units.
6. The method according to any one of claims 1 to 5, characterized in that, The target equipment information includes at least the photovoltaic string of the power generation unit.
7. An image processing apparatus, characterized in that, include: An acquisition module is used to acquire a target image corresponding to a photovoltaic power station, wherein the target image is used to indicate the complete design information of the photovoltaic power station, and the target image includes multiple power generation units, wherein the power generation unit includes at least: a transformer; The search module is used to search for the main path links corresponding to each power generation unit based on the location of the transformer, including: acquiring all transformers in the target image and sorting the transformers according to a predetermined rule; acquiring the coordinates of the first transformer in the target image from the sorting result and adding the coordinates of the first transformer to the first-level link coordinate set; acquiring all line segments in the target image that are within a preset range of the first-level link coordinate values, judging each line segment, and selecting any line whose endpoint is equal to the inverter point coordinate of the first-level link from all line segments in the first-level link as part of the main path link; acquiring all line segments in the target image that are within a predetermined range of the (N-1)th level link coordinate values, judging each line segment, and selecting any line whose endpoint is equal to the endpoint coordinate of the (N-1)th level link from all line segments in the Nth level link as part of the main path link, until there are no endpoint coordinates of the Nth level link, where N≥2; The determination module is used to determine the target equipment information included in the envelope of each power generation unit, and move each power generation unit according to the target equipment information, the transformer and the main path link to obtain a segmented image of the target image; The determining module is further configured to perform the following steps: determining the label corresponding to each power generation unit in the target image; sorting the power generation units according to the label to obtain a sorting result; determining the target equipment information, the transformer, and the main path link as a target set; and moving the sorted power generation units according to the target set.
8. A non-volatile storage medium, characterized in that, The storage medium includes a stored program, wherein, when the program is executed, it controls the device where the storage medium is located to perform the image processing method according to any one of claims 1 to 6.
9. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the image processing method as described in any one of claims 1 to 6.