[go: up one dir, main page]

CN117037042A - Automatic numbering method and related device for photovoltaic strings based on visual recognition model - Google Patents

Automatic numbering method and related device for photovoltaic strings based on visual recognition model Download PDF

Info

Publication number
CN117037042A
CN117037042A CN202311076176.0A CN202311076176A CN117037042A CN 117037042 A CN117037042 A CN 117037042A CN 202311076176 A CN202311076176 A CN 202311076176A CN 117037042 A CN117037042 A CN 117037042A
Authority
CN
China
Prior art keywords
photovoltaic
image
recognition model
numbered
visual recognition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311076176.0A
Other languages
Chinese (zh)
Inventor
戴恩哲
王勇
舒茂龙
胡玉
梁志明
贾世凯
吴亚刚
占磊
齐力文
李小飞
邵书成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Snegrid Electric Technology Co ltd
Guoneng Ningdong New Energy Co ltd
Original Assignee
Snegrid Electric Technology Co ltd
Guoneng Ningdong New Energy Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Snegrid Electric Technology Co ltd, Guoneng Ningdong New Energy Co ltd filed Critical Snegrid Electric Technology Co ltd
Priority to CN202311076176.0A priority Critical patent/CN117037042A/en
Publication of CN117037042A publication Critical patent/CN117037042A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a photovoltaic string automatic numbering method based on a visual identification model and a related device, wherein the method comprises the following steps: acquiring an image to be numbered, wherein the image to be numbered comprises at least one photovoltaic group string; partitioning the images to be numbered to obtain at least one partitioned image; performing background separation on each partition image to obtain a background contour of the partition and a photovoltaic group string contour; inputting the outline of each photovoltaic group string to a photovoltaic group string vision recognition model to obtain a segmentation result of each photovoltaic plate; and numbering the photovoltaic panels in the image to be numbered based on the segmentation result of each photovoltaic panel. According to the method, the image to be numbered is partitioned and separated from the background, and the outline of the photovoltaic string is input into the visual identification model to automatically number the photovoltaic string, so that the coding efficiency and accuracy of the photovoltaic module are improved.

Description

基于视觉识别模型的光伏组串自动编号方法及相关装置Photovoltaic string automatic numbering method and related devices based on visual recognition model

技术领域Technical field

本发明涉及光伏板技术领域,具体涉及一种基于视觉识别模型的光伏组串自动编号方法及相关装置。The invention relates to the technical field of photovoltaic panels, and specifically relates to an automatic numbering method for photovoltaic strings based on a visual recognition model and related devices.

背景技术Background technique

光伏是太阳能光伏发电系统的简称,光伏板是一种利用半导体材料的光伏效应,将太阳能辐射能直接转换为电能的一种新型发电装置。在光伏发电系统中,将若干个光伏组件串联后,形成具有一定直流输出的电路单元,简称光伏组件串或光伏组串。目前光伏场站光伏组串编号主要是利用无人机拍摄的现场图片,通过传统OpenCV进行图像编号,或者根据CAD图纸一一对应组串。由于光伏场站通常较大,采用OpenCV得到的图像分割存在编号效率低且难度大等问题,并且人工编码所耗费的时间较长,导致检测和维护的效率较低。Photovoltaic is the abbreviation of solar photovoltaic power generation system. Photovoltaic panel is a new type of power generation device that uses the photovoltaic effect of semiconductor materials to directly convert solar radiation energy into electrical energy. In a photovoltaic power generation system, several photovoltaic modules are connected in series to form a circuit unit with a certain DC output, which is referred to as a photovoltaic module string or photovoltaic group string. At present, the numbering of photovoltaic strings in photovoltaic sites mainly uses on-site pictures taken by drones, and the images are numbered through traditional OpenCV, or the strings are corresponding one-to-one according to CAD drawings. Since photovoltaic sites are usually large, image segmentation obtained using OpenCV has problems such as low numbering efficiency and difficulty, and manual coding takes a long time, resulting in low detection and maintenance efficiency.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述光伏组串编码效率较低问题的基于视觉识别模型的光伏组串自动编号方法及装置、计算设备及计算机存储介质。In view of the above problems, the present invention is proposed to provide an automatic photovoltaic string numbering method and device, computing equipment and computer storage medium based on a visual recognition model that overcomes the above problem of low photovoltaic string coding efficiency.

根据本发明的一个方面,提供了一种基于视觉识别模型的光伏组串自动编号方法,包括:According to one aspect of the present invention, an automatic numbering method for photovoltaic strings based on a visual recognition model is provided, including:

步骤S1,获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;Step S1, obtain an image to be numbered, wherein the image to be numbered includes at least one photovoltaic string;

步骤S2,对所述待编号图像进行分区,得到至少一个分区图像;Step S2, partition the image to be numbered to obtain at least one partitioned image;

步骤S3,将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;Step S3, perform background separation on each partition image to obtain the background outline of the partition and the photovoltaic string outline;

步骤S4,将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;Step S4: Input the outline of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel;

步骤S5,基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。在一种可选的方式中,所述第一用户对所述待评比3D物品设计模型的操作包括以下多者中的至少一者:模型部件拆解、模型爆炸图缩放、基于部件的旋转显示、线架图隐藏线显示开关、渲染开关以及各视角平面图展示。Step S5: Number the photovoltaic panels in the image to be numbered based on the segmentation results of each photovoltaic panel. In an optional manner, the first user's operation on the 3D item design model to be evaluated includes at least one of the following: model component disassembly, model explosion view scaling, and component-based rotation display. , wire frame diagram hidden line display switch, rendering switch and plan view display from each perspective.

在一种可选的方式中,所述将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果进一步包括:In an optional manner, inputting the contours of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel further includes:

预先构建光伏组串视觉识别模型,将光伏组串轮廓图像及对应的已标注切片喂入所述光伏组串视觉识别模型进行训练,其中,所述光伏组串轮廓图像包括光伏组串的排布遮挡图;A photovoltaic string visual recognition model is constructed in advance, and the photovoltaic string outline image and the corresponding labeled slices are fed into the photovoltaic string visual recognition model for training, where the photovoltaic string outline image includes the arrangement of the photovoltaic strings. occlusion map;

将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果。Input the outline image of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel.

在一种可选的方式中,所述光伏组串视觉识别模型为多模态图像分割网络,其包括一个编码模块和一个解码模块;In an optional way, the photovoltaic string visual recognition model is a multi-modal image segmentation network, which includes an encoding module and a decoding module;

所述编码模块和所述解码模块均包括至少一个残差模块,所述残差模块包括依次连接的卷积层、BN层和LeakyReLU层;The encoding module and the decoding module each include at least one residual module, and the residual module includes a convolution layer, a BN layer and a LeakyReLU layer connected in sequence;

所述编码模块的残差模块和所述解码模块的残差模块之间设置有注意力模块,所述注意力模块包括通道注意力CA模块和空间注意力SA模块。An attention module is provided between the residual module of the encoding module and the residual module of the decoding module. The attention module includes a channel attention CA module and a spatial attention SA module.

在一种可选的方式中,所述对所述待编号图像进行分区,得到至少一个分区图像进一步包括:In an optional manner, partitioning the image to be numbered to obtain at least one partitioned image further includes:

步骤S1,针对所述待编号图像的任一像素点,确定与其周围四个邻近像素点的像素坐标和RGB颜色均值;Step S1: For any pixel of the image to be numbered, determine the pixel coordinates and RGB color mean of four adjacent pixels around it;

步骤S2,针对任一邻近像素点,将其RGB颜色均值小于第一预设阈值的像素点确定为弱边缘像素点,将其RGB颜色均值大于第二预设阈值的像素点确定为强边缘像素点;Step S2: For any adjacent pixel, determine the pixel whose RGB color mean is less than the first preset threshold as a weak edge pixel, and determine the pixel whose RGB color mean is greater than the second preset threshold as a strong edge pixel. point;

步骤S3,将该强边缘像素点连接成边缘,当连接到边缘的端点时,在该强边缘像素点的邻域像素点中重新确定弱边缘像素点作为新边缘点,并继续检测和连接该新边缘点直至轮廓闭合,得到一个分区图像;Step S3, connect the strong edge pixel points into edges. When connected to the endpoint of the edge, re-determine the weak edge pixel points as new edge points in the neighborhood pixel points of the strong edge pixel point, and continue to detect and connect the weak edge pixel points. New edge points until the contour is closed to obtain a partitioned image;

步骤S4,针对所述待编号图像于所述分区图像之外的任一像素点,重复步骤S1依次得到多个分区图像。Step S4: For any pixel of the image to be numbered outside the partition image, repeat step S1 to obtain multiple partition images in sequence.

在一种可选的方式中,所述将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓进一步包括:In an optional manner, said background separation of each of the partition images to obtain the background outline of the partition and the photovoltaic string outline further includes:

步骤S1,去除所述分区图像的彩色信息,得到灰度图像并进行归一化;Step S1, remove the color information of the partition image, obtain a grayscale image and normalize it;

步骤S2,利用最大类间方差法计算所述灰度图像的二值化分割阈值;Step S2: Calculate the binary segmentation threshold of the grayscale image using the maximum inter-class variance method;

步骤S3,将所述灰度图像中像素值小于预设分割阈值的区域设置为0,用黑色分割出所述分区的光伏组串轮廓;将像素值大于预设分割阈值的区域设置为1,用白色分割出所述分区的背景轮廓。Step S3: Set the area in the grayscale image where the pixel value is less than the preset segmentation threshold to 0, and use black to segment the photovoltaic string outline of the partition; set the area where the pixel value is greater than the preset segmentation threshold to 1, Use white to outline the background of the partition.

在一种可选的方式中,所述将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果之前,所述方法还包括:In an optional manner, before inputting each of the photovoltaic string outline images to the photovoltaic string visual recognition model and obtaining the segmentation results of each photovoltaic panel, the method further includes:

将所述光伏组串轮廓图像转换为HSV颜色模型,并使用加权平均的方法对其进行灰度处理;Convert the photovoltaic string outline image into an HSV color model, and perform grayscale processing on it using a weighted average method;

获取所述光伏组串轮廓图像中各个轮廓的坐标,利用DBSCAN聚类算法对所述各个轮廓的坐标进行聚类分析,得到各个轮廓的Dunn指数;Obtain the coordinates of each contour in the photovoltaic string contour image, use the DBSCAN clustering algorithm to perform cluster analysis on the coordinates of each contour, and obtain the Dunn index of each contour;

将小于预设阈值的Dunn指数所对应的轮廓的区域设置为1。Set the area of the contour corresponding to the Dunn index smaller than the preset threshold to 1.

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

采用模版匹配方法识别所述待编号图像得到光伏组串;Use a template matching method to identify the image to be numbered to obtain the photovoltaic string;

将所述光伏组串按照预设顺序进行矩阵排列,将全部所述光伏组串排列至同一行或同一列,形成待填充行或待填充列;Arrange the photovoltaic strings in a matrix according to a preset order, and arrange all the photovoltaic strings in the same row or column to form rows or columns to be filled;

对所述待填充行或待填充列进行所述光伏组串的填充,形成完整组件行或完整组件列;Fill the rows or columns to be filled with the photovoltaic strings to form complete rows or columns of components;

将所述完整组件行映射到所述光伏组串的全部行,或将所述完整组件列映射到所述光伏组串的全部列。The complete rows of components are mapped to all rows of the photovoltaic strings, or the complete columns of components are mapped to all columns of the photovoltaic strings.

根据本发明的另一方面,提供了一种基于视觉识别模型的光伏组串自动编号装置,包括:According to another aspect of the present invention, an automatic numbering device for photovoltaic strings based on a visual recognition model is provided, including:

图像获取模块,用于获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;An image acquisition module, configured to acquire an image to be numbered, wherein the image to be numbered includes at least one photovoltaic string;

分区模块,用于对所述待编号图像进行分区,得到至少一个分区图像;A partitioning module, used to partition the image to be numbered to obtain at least one partitioned image;

背景分离模块,用于将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;A background separation module, used to separate the background of each partition image to obtain the background outline of the partition and the photovoltaic string outline;

分割模块,用于将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;A segmentation module, used to input the outline of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel;

编码模块,用于基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。An encoding module, configured to number the photovoltaic panels in the image to be numbered based on the segmentation results of each photovoltaic panel.

根据本发明的又一方面,提供了一种计算设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;According to another aspect of the present invention, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface complete mutual communication through the communication bus. communication;

所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行上述基于视觉识别模型的光伏组串自动编号方法对应的操作。The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the above-mentioned automatic numbering method of photovoltaic strings based on the visual recognition model.

根据本发明的再一方面,提供了一种计算机存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行如上述基于视觉识别模型的光伏组串自动编号方法对应的操作。According to yet another aspect of the present invention, a computer storage medium is provided. At least one executable instruction is stored in the storage medium. The executable instruction causes the processor to perform the automatic numbering of photovoltaic strings based on the visual recognition model as described above. The operation corresponding to the method.

根据本发明提供的方案,获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;对所述待编号图像进行分区,得到至少一个分区图像;将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。本发明对待编号图像进行分区和背景分离,并将光伏组串轮廓输入至视觉识别模型对光伏组串自动编号,提高了光伏组件编码的效率和准确度。According to the solution provided by the present invention, an image to be numbered is obtained, wherein the image to be numbered includes at least one photovoltaic string; the image to be numbered is partitioned to obtain at least one partition image; and each of the partition images is background separated , obtain the background outline of the partition and the photovoltaic string outline; input each photovoltaic string outline into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel; treat the numbers based on the segmentation results of each photovoltaic panel The photovoltaic panels in the image are numbered. The present invention partitions and separates the background of the image to be numbered, and inputs the photovoltaic string outline into the visual recognition model to automatically number the photovoltaic strings, thereby improving the efficiency and accuracy of photovoltaic component coding.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to have a clearer understanding of the technical means of the present invention, it can be implemented according to the content of the description, and in order to make the above and other objects, features and advantages of the present invention more obvious and understandable. , the specific embodiments of the present invention are listed below.

附图说明Description of the drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be construed as limiting the invention. Also throughout the drawings, the same reference characters are used to designate the same components. In the attached picture:

图1示出了本发明实施例的基于视觉识别模型的光伏组串自动编号方法的流程示意图;Figure 1 shows a schematic flow chart of the automatic numbering method of photovoltaic strings based on the visual recognition model according to the embodiment of the present invention;

图2示出了本发明实施例的对待编号图像进行分区的流程示意图;Figure 2 shows a schematic flow chart of partitioning images to be numbered according to an embodiment of the present invention;

图3示出了本发明实施例的使用模版匹配方法识别待编号图像的流程示意图;Figure 3 shows a schematic flow chart of using a template matching method to identify images to be numbered according to an embodiment of the present invention;

图4示出了本发明实施例的光伏组串视觉识别模型的示意图一;Figure 4 shows a schematic diagram 1 of the photovoltaic string visual recognition model according to the embodiment of the present invention;

图5示出了本发明实施例的光伏组串视觉识别模型的示意图二;Figure 5 shows a schematic diagram two of the photovoltaic string visual recognition model according to the embodiment of the present invention;

图6示出了本发明实施例的光伏组串被遮光伏板的示意图;Figure 6 shows a schematic diagram of a photovoltaic string being shielded by a photovoltaic panel according to an embodiment of the present invention;

图7示出了本发明实施例的光伏组串识别示意图;Figure 7 shows a schematic diagram of photovoltaic string identification according to an embodiment of the present invention;

图8示出了本发明实施例的基于视觉识别模型的光伏组串自动编号装置的结构示意图;Figure 8 shows a schematic structural diagram of a photovoltaic string automatic numbering device based on a visual recognition model according to an embodiment of the present invention;

图9示出了本发明实施例的计算设备的结构示意图。Figure 9 shows a schematic structural diagram of a computing device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a thorough understanding of the invention, and to fully convey the scope of the invention to those skilled in the art.

图1示出了本发明实施例的基于视觉识别模型的光伏组串自动编号方法的流程示意图。本方法对待编号图像进行分区和背景分离,并将光伏组串轮廓输入至视觉识别模型对光伏组串自动编号。具体地,包括以下步骤:Figure 1 shows a schematic flow chart of the automatic numbering method of photovoltaic strings based on the visual recognition model according to an embodiment of the present invention. This method partitions and separates the background of the image to be numbered, and inputs the photovoltaic string outline into the visual recognition model to automatically number the photovoltaic strings. Specifically, it includes the following steps:

步骤S101,获取待编号图像,其中,所述待编号图像包括至少一个光伏组串。Step S101: Obtain an image to be numbered, where the image to be numbered includes at least one photovoltaic string.

在光伏发电系统中,将若干个光伏组件串联后,形成具有一定直流输出的电路单元,简称组件串或组串。可采用无人机按照预设方向对样本光伏板进行拍摄得到待编号图像,预设方向为使样本光伏板在图像中不倾斜的方向。例如,可以令无人机按照如下设置对样本光伏板进行拍摄:In a photovoltaic power generation system, several photovoltaic modules are connected in series to form a circuit unit with a certain DC output, referred to as a module string or group string. A drone can be used to photograph the sample photovoltaic panels in a preset direction to obtain an image to be numbered. The preset direction is a direction in which the sample photovoltaic panels do not tilt in the image. For example, the drone can be used to photograph sample photovoltaic panels with the following settings:

200m≤飞行高度≤300m。200m≤flight height≤300m.

飞行方式:平行或垂直光伏板,按点位顺序飞行。Flight mode: parallel or vertical photovoltaic panels, flying in point order.

飞行点位分布:按照覆盖全部光伏板原则,允许光伏板重复拍摄。Flight point distribution: According to the principle of covering all photovoltaic panels, repeated shooting of photovoltaic panels is allowed.

视频拍摄角度:垂直于地面拍摄。Video shooting angle: vertical to the ground.

视频分辨率:1920×1080或更高,以清晰为原则。Video resolution: 1920×1080 or higher, with clarity as the principle.

可选地,在对样本光伏板进行拍摄的同时,获取拍摄点位经纬度等信息,进而在拍摄完成后,将拍摄得到的图片和拍摄点位经纬度等信息导入预设软件进行自动重建模型,从而根据经纬度坐标等信息构建出包含全部光伏板的全貌区域图,该全貌区域图即为待编号图像(如图7所示的a图像)。对于如图6所示的被遮光伏板图像(图像中有倾斜的方向),本实施例也可以进行识别。Optionally, while photographing the sample photovoltaic panels, obtain the longitude and latitude of the shooting point and other information, and then after the shooting is completed, import the photographed picture and the longitude and latitude of the shooting point and other information into the preset software to automatically reconstruct the model, so as to Based on the longitude and latitude coordinates and other information, a full-view area map containing all photovoltaic panels is constructed, and the full-view area map is the image to be numbered (image a as shown in Figure 7). This embodiment can also identify the shielded photovoltaic panel image as shown in Figure 6 (there is a tilted direction in the image).

步骤S102,对所述待编号图像进行分区,得到至少一个分区图像。Step S102, partition the image to be numbered to obtain at least one partitioned image.

待编号图像可能包括多个片区或分区(不连贯的区域),需要预先识别每个分区。The image to be numbered may include multiple patches or partitions (incoherent areas), and each partition needs to be identified in advance.

在一种可选的方式中,所述对所述待编号图像进行分区,得到至少一个分区图像进一步包括:In an optional manner, partitioning the image to be numbered to obtain at least one partitioned image further includes:

步骤S1,针对所述待编号图像的任一像素点,确定与其周围四个邻近像素点的像素坐标和RGB颜色均值;Step S1: For any pixel of the image to be numbered, determine the pixel coordinates and RGB color mean of four adjacent pixels around it;

步骤S2,针对任一邻近像素点,将其RGB颜色均值小于第一预设阈值的像素点确定为弱边缘像素点,将其RGB颜色均值大于第二预设阈值的像素点确定为强边缘像素点;Step S2: For any adjacent pixel, determine the pixel whose RGB color mean is less than the first preset threshold as a weak edge pixel, and determine the pixel whose RGB color mean is greater than the second preset threshold as a strong edge pixel. point;

步骤S3,将该强边缘像素点连接成边缘,当连接到边缘的端点时,在该强边缘像素点的邻域像素点中重新确定弱边缘像素点作为新边缘点,并继续检测和连接该新边缘点直至轮廓闭合,得到一个分区图像;Step S3, connect the strong edge pixel points into edges. When connected to the endpoint of the edge, re-determine the weak edge pixel points as new edge points in the neighborhood pixel points of the strong edge pixel point, and continue to detect and connect the weak edge pixel points. New edge points until the contour is closed to obtain a partitioned image;

步骤S4,针对所述待编号图像于所述分区图像之外的任一像素点,重复步骤S1依次得到多个分区图像。Step S4: For any pixel of the image to be numbered outside the partition image, repeat step S1 to obtain multiple partition images in sequence.

步骤S103,将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓。Step S103: perform background separation on each partition image to obtain the background outline and photovoltaic string outline of the partition.

本实施例中,对所述待编号图像进行分区的主要原理在于识别出图像中颜色变化或者亮度变化明显的像素点,这些像素点的显著性变化往往代表图像的这部分属性发生了重要变化,其中包括了深度上的不连续、方向上的不连续及亮度上的不连续等。对所述待编号图像进行检测时,先检测区域轮廓的像素点,针对任一邻近像素点,将其RGB颜色均值小于第一预设阈值的像素点确定为弱边缘像素点,将其RGB颜色均值大于第二预设阈值的像素点确定为强边缘像素点。将该强边缘像素点连接成边缘,当连接到边缘的端点时,在该强边缘像素点的邻域像素点中重新确定弱边缘像素点作为新边缘点,并继续检测和连接该新边缘点直至轮廓闭合,输出该轮廓的坐标。也可以通过例如Roberts算子、Sobel算子、二阶Laplacian算子等图像边缘检测方法检测待所述待编号图像区域的边界,本文对此不加以限定。In this embodiment, the main principle of partitioning the image to be numbered is to identify pixels with obvious changes in color or brightness in the image. The significant changes in these pixels often represent important changes in the attributes of this part of the image. These include discontinuities in depth, discontinuity in direction, discontinuity in brightness, etc. When detecting the image to be numbered, first detect the pixels of the area contour, and for any adjacent pixel, determine the pixel whose RGB color mean is less than the first preset threshold as a weak edge pixel, and determine its RGB color Pixels whose mean value is greater than the second preset threshold are determined as strong edge pixels. Connect the strong edge pixel point into an edge. When connected to the endpoint of the edge, re-determine the weak edge pixel point as a new edge point in the neighborhood pixel points of the strong edge pixel point, and continue to detect and connect the new edge point. Until the contour is closed, the coordinates of the contour are output. The boundary of the image area to be numbered can also be detected through image edge detection methods such as Roberts operator, Sobel operator, and second-order Laplacian operator, which is not limited in this article.

在一种可选的方式中,所述将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓进一步包括:In an optional manner, said background separation of each of the partition images to obtain the background outline of the partition and the photovoltaic string outline further includes:

步骤S1,去除所述分区图像的彩色信息,得到灰度图像并进行归一化。Step S1: Remove the color information of the partition image to obtain a grayscale image and normalize it.

步骤S2,利用最大类间方差法计算所述灰度图像的二值化分割阈值。最大类间方差法(OTSU算法,又名大津法)是一种对图像进行二值化的高效算法,利用阈值将原图像分成前景,背景两个图象,是按图像的灰度特性,将图像分成背景和目标两个部分,背景和目标之间的类间方差越大,说明构成图像的两部分的差别越大,当部分目标错分为背景或部分背景错分为目标都会导致两部分差别变小。因此,使类间方差最大的分割意味着错分概率最小。Step S2: Calculate the binary segmentation threshold of the grayscale image using the maximum inter-class variance method. The maximum inter-class variance method (OTSU algorithm, also known as Otsu method) is an efficient algorithm for binarizing images. It uses thresholds to divide the original image into foreground and background images. According to the grayscale characteristics of the image, the original image is divided into two images: foreground and background. The image is divided into two parts, the background and the target. The greater the inter-class variance between the background and the target, the greater the difference between the two parts that make up the image. When part of the target is mistakenly divided into the background or part of the background is mistakenly divided into the target, it will result in two parts. The difference becomes smaller. Therefore, the segmentation that maximizes the between-class variance means the smallest probability of misclassification.

步骤S3,将所述灰度图像中像素值小于预设分割阈值的区域设置为0,用黑色分割出所述分区的光伏组串轮廓;将像素值大于预设分割阈值的区域设置为1,用白色分割出所述分区的背景轮廓。例如,根据大量实验统计,取二值化分割阈值为0.9对灰度图像进行二值化,把灰度图像中像素值小于0.9的区域设置为0,用黑色表示分割出的前景轮廓区域;而像素值大于0.9的区域设置为1,用白色表示分割出的背景区域。Step S3: Set the area in the grayscale image where the pixel value is less than the preset segmentation threshold to 0, and use black to segment the photovoltaic string outline of the partition; set the area where the pixel value is greater than the preset segmentation threshold to 1, Use white to outline the background of the partition. For example, according to a large number of experimental statistics, the binary segmentation threshold is set to 0.9 to binarize the grayscale image, set the area with a pixel value less than 0.9 in the grayscale image to 0, and use black to represent the segmented foreground contour area; and Areas with pixel values greater than 0.9 are set to 1, and white represents the segmented background area.

步骤S104,将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果。Step S104: Input the outline of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel.

预先构建光伏组串视觉识别模型,将光伏组串轮廓图像及对应的已标注切片喂入(输入至)所述光伏组串视觉识别模型进行训练,其中,所述光伏组串轮廓图像包括光伏组串的排布遮挡图(如图6所示)。将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果。A photovoltaic string visual recognition model is constructed in advance, and the photovoltaic string outline image and the corresponding labeled slices are fed (inputted) to the photovoltaic string visual recognition model for training, wherein the photovoltaic string outline image includes the photovoltaic group The arrangement and occlusion diagram of strings (shown in Figure 6). Input the outline image of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel.

在一种可选的方式中,如图4所示,所述光伏组串视觉识别模型为多模态图像分割网络,其包括一个编码模块和一个解码模块;In an optional way, as shown in Figure 4, the photovoltaic string visual recognition model is a multi-modal image segmentation network, which includes an encoding module and a decoding module;

所述编码模块和所述解码模块均包括至少一个残差模块,所述残差模块包括依次连接的卷积层、BN层和LeakyReLU层;The encoding module and the decoding module each include at least one residual module, and the residual module includes a convolution layer, a BN layer and a LeakyReLU layer connected in sequence;

所述编码模块的残差模块和所述解码模块的残差模块之间设置有注意力模块,所述注意力模块包括通道注意力CA模块和空间注意力SA模块。An attention module is provided between the residual module of the encoding module and the residual module of the decoding module. The attention module includes a channel attention CA module and a spatial attention SA module.

现有多模态图像分割网络(MultiResUNet网络)存在感受野太小等问题,本实施例中,所述编码模块和所述解码模块均包括至少一个残差模块,所述残差模块包括依次连接的卷积层、BN层和LeakyReLU层,能够扩大感受野以对目标图像进行分割,有助于分割不同大小的目标。The existing multi-modal image segmentation network (MultiResUNet network) has problems such as too small receptive fields. In this embodiment, the encoding module and the decoding module each include at least one residual module, and the residual module includes sequential connections. The convolution layer, BN layer and LeakyReLU layer can expand the receptive field to segment the target image, helping to segment targets of different sizes.

为了进一步解决现有的多模态图像分割网络存在的通道、空间关系表现不明显的问题,本发明实施例在网络中增加了具有双注意力机制的注意力模块,以重新整合通道、空间特征权重。In order to further solve the problem of unclear channel and spatial relationships existing in existing multi-modal image segmentation networks, embodiments of the present invention add an attention module with a dual attention mechanism to the network to reintegrate channel and spatial features. Weights.

所述注意力模块包括通道注意力CA模块和空间注意力SA模块,所述通道注意力CA模块和所述通道注意力SA模块的输出进行相加操作。可选地,所述通道注意力CA模块包括两个具有相同结构的CA单元,每个所述CA单元包括依次连接的自适应全局平均池化层和卷积层。两个所述CA单元的输出进行相加操作后经过Softmax激活函数得到通道权重,将输入数据中来自编码模块的低级特征与所述通道权重相乘后再与输入数据中来自解码模块的高级特征相加得到输出特征,记作CA模块的输出。The attention module includes a channel attention CA module and a spatial attention SA module, and the outputs of the channel attention CA module and the channel attention SA module are added together. Optionally, the channel attention CA module includes two CA units with the same structure, and each of the CA units includes an adaptive global average pooling layer and a convolution layer connected in sequence. After adding the outputs of the two CA units, the channel weight is obtained through the Softmax activation function. The low-level features from the encoding module in the input data are multiplied by the channel weight and then combined with the high-level features from the decoding module in the input data. The addition results in output features, which are recorded as the output of the CA module.

如图5所示,编码模块从网络浅层到网络深层包括五个残差模块,编号为1、2、3、4、5,每两个残差模块之间用最大池化层进行降采样;解码模块从网络浅层到网络深层包括四个残差模块,编号为6、7、8、9,每两个残差模块之间包括一个上采样层,编码模块的输出通过一个上采样层输入解码模块;编号5、6、7、8的残差模块的输出特征先进行2倍上采样操作,之后分别和来自编号4、3、2、1的残差模块的输出特征经过注意力模块重新分配权重后的特征通过Concat连接操作进行融合;其中,来自编号4、3、2、1的残差模块的输出特征在经过注意力模块之前还需要分别经过残差模块(1、2、3、4)。As shown in Figure 5, the encoding module includes five residual modules from the shallow layer of the network to the deep layer of the network, numbered 1, 2, 3, 4, and 5. A maximum pooling layer is used between each two residual modules for downsampling. ;The decoding module includes four residual modules from the shallow layer of the network to the deep layer of the network, numbered 6, 7, 8, and 9. There is an upsampling layer between each two residual modules, and the output of the encoding module passes through an upsampling layer. Input decoding module; the output features of the residual modules numbered 5, 6, 7, and 8 are first subjected to a 2 times upsampling operation, and then passed through the attention module with the output features from the residual modules numbered 4, 3, 2, and 1 respectively. The re-weighted features are fused through the Concat connection operation; among them, the output features from the residual modules numbered 4, 3, 2, and 1 need to pass through the residual modules (1, 2, 3 respectively) before passing through the attention module. ,4).

所述将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果之前,所述方法还包括:Before inputting the contour image of each photovoltaic string into the photovoltaic string visual recognition model and obtaining the segmentation results of each photovoltaic panel, the method further includes:

将所述光伏组串轮廓图像转换为HSV颜色模型(获得HSV模型的色度图H、饱和度图S和亮度图V),即提取H分量的直方图作为颜色特征向量以表征图像颜色特性。色调包含图像的彩色信息,是区分不同颜色物料的显著特征,以HSV模型中的H分量为目标特征,利用直方图统计方法提取H分量的分布特性作为颜色特征,具有不局限于底层特征数量的特点以及不依赖具体特征类型的特征分辨能力。使用加权平均的方法对其进行灰度处理将其归一化后得到一个256维的特征向量。The photovoltaic string profile image is converted into an HSV color model (the chromaticity map H, saturation map S and brightness map V of the HSV model are obtained), that is, the histogram of the H component is extracted as a color feature vector to characterize the color characteristics of the image. Hue contains the color information of the image, which is a significant feature for distinguishing materials of different colors. Taking the H component in the HSV model as the target feature, the histogram statistical method is used to extract the distribution characteristics of the H component as the color feature, which is not limited to the number of underlying features. characteristics and the ability to distinguish features independent of specific feature types. Use the weighted average method to perform grayscale processing and normalize it to obtain a 256-dimensional feature vector.

获取所述光伏组串轮廓图像中各个轮廓的坐标,利用DBSCAN聚类算法对所述各个轮廓的坐标进行聚类分析,得到各个轮廓的Dunn指数。其中,DBSCAN聚类算法是基于密度聚类(DBSCAN)的无监督机器学习算法,如果数据点的相互距离小于或等于指定的epsilon,那么为同一类,在一个邻域的半径内minPts数的邻域被认为是一个簇。DBSCAN可确定两个点是否相似以及属于同一类的距离。Dunn指数是指任意两个簇之间最近的距离的最小值,除以任意一个簇内距离最远的两个点的距离的最大值。如果任意两个簇之间最近的距离的最小值越大(即簇间样本距离相互都很远),则Dunn指数越大;如果任意一个簇内距离最远的两个点的距离的最大值越小(即簇内样本距离都很近),则Dunn指数越大。The coordinates of each contour in the photovoltaic string contour image are obtained, and the DBSCAN clustering algorithm is used to perform cluster analysis on the coordinates of each contour to obtain the Dunn index of each contour. Among them, the DBSCAN clustering algorithm is an unsupervised machine learning algorithm based on density clustering (DBSCAN). If the mutual distance of data points is less than or equal to the specified epsilon, then it is the same class and has minPts number of neighbors within the radius of a neighborhood. A domain is considered a cluster. DBSCAN determines the distance between two points if they are similar and belong to the same class. Dunn's index refers to the minimum value of the nearest distance between any two clusters, divided by the maximum value of the distance between the two furthest points in any cluster. If the minimum value of the nearest distance between any two clusters is larger (that is, the samples between clusters are far away from each other), the Dunn index will be larger; if the maximum value of the distance between the two furthest points in any cluster is The smaller it is (that is, the samples in the cluster are very close), the larger the Dunn index is.

将小于预设阈值的Dunn指数所对应的轮廓的区域设置为1,用白色表示分割出的背景区域,可以排除假轮廓和噪声干扰(如排除汇流箱)。Set the area of the contour corresponding to the Dunn index smaller than the preset threshold to 1, and use white to represent the segmented background area, which can eliminate false contours and noise interference (such as eliminating combiner boxes).

步骤S105,基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。Step S105: Number the photovoltaic panels in the image to be numbered based on the segmentation results of each photovoltaic panel.

例如,如果是多个逆变器,先给逆变器编号,光伏组串按照逆变器编号,逆变器的输入端有多组输入端,按顺序对光伏组串编号,比如2-3-8,2代表2号逆变器,3代表2号逆变器中的第三串,8代表第三串光伏组中的第8块光伏板,以此类推,这样编号容易记忆,容易查找。For example, if there are multiple inverters, number the inverters first, and the photovoltaic strings are numbered according to the inverters. The input terminals of the inverters have multiple sets of input terminals, and the photovoltaic strings are numbered in order, such as 2-3 -8, 2 represents the No. 2 inverter, 3 represents the third string in the No. 2 inverter, 8 represents the 8th photovoltaic panel in the third string photovoltaic group, and so on. This number is easy to remember and easy to find. .

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

采用模版匹配方法识别所述待编号图像得到光伏组串,模板匹配方法是选定一个光伏组串的图片,通过进行对比分析,划分光伏组件。A template matching method is used to identify the image to be numbered to obtain a photovoltaic string. The template matching method is to select a picture of a photovoltaic string and perform comparative analysis to divide the photovoltaic modules.

将所述光伏组串按照预设顺序进行矩阵排列,将全部所述光伏组串排列至同一行或同一列,形成待填充行或待填充列。The photovoltaic strings are arranged in a matrix according to a preset order, and all the photovoltaic strings are arranged in the same row or column to form rows or columns to be filled.

对所述待填充行或待填充列进行所述光伏组串的填充,形成完整组件行或完整组件列。The rows or columns to be filled are filled with the photovoltaic strings to form complete rows or columns of components.

将光伏组串上识别出的全部光伏组件根据组串的长度或宽度,排列在同一行或同一列,形成待填充行或待填充列,以完成对组件的逻辑填充。将所有行的光伏组件都排到同一行,例如,可以使光伏组串边框左上点的横坐标不变,纵坐标统一,即可排到同一行。同一行内的组件可以根据光伏组串的宽度进行填充。同样地,也可以选择将光伏组串都排列在同一列,例如,可以是光伏组串边框左上点的纵坐标不变,横坐标统一,即可排到同一列。将完整光伏组串行映射到光伏组串的全部行,或将光伏组串列映射到光伏组串的全部列。Arrange all the photovoltaic modules identified on the photovoltaic string in the same row or column according to the length or width of the photovoltaic string to form rows or columns to be filled to complete the logical filling of the components. Arrange the photovoltaic modules in all rows in the same row. For example, you can keep the abscissa of the upper left point of the photovoltaic string frame unchanged and the ordinate of the photovoltaic modules unified, so that they can be arranged in the same row. Modules within the same row can be filled according to the width of the PV string. Similarly, you can also choose to arrange the photovoltaic strings in the same column. For example, the vertical coordinate of the upper left point of the photovoltaic string frame can be unchanged and the horizontal coordinate can be unified, so that the photovoltaic strings can be arranged in the same column. Map complete PV strings to all rows of PV strings, or map columns of PV strings to all columns of PV strings.

将识别出的全部光伏组串排到同一行,形成待填充行,这样可减少逻辑填充的数量,提升整体光伏组串的切割精确率。Arrange all the identified photovoltaic strings in the same row to form a row to be filled. This can reduce the number of logical fillings and improve the cutting accuracy of the overall photovoltaic strings.

根据本发明提供的方案,获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;对所述待编号图像进行分区,得到至少一个分区图像;将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。本发明对待编号图像进行分区和背景分离,并将光伏组串轮廓输入至视觉识别模型对光伏组串自动编号,提高了光伏组件编码的效率和准确度。According to the solution provided by the present invention, an image to be numbered is obtained, wherein the image to be numbered includes at least one photovoltaic string; the image to be numbered is partitioned to obtain at least one partition image; and each of the partition images is background separated , obtain the background outline of the partition and the photovoltaic string outline; input each photovoltaic string outline into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel; treat the numbers based on the segmentation results of each photovoltaic panel The photovoltaic panels in the image are numbered. The present invention partitions and separates the background of the image to be numbered, and inputs the photovoltaic string outline into the visual recognition model to automatically number the photovoltaic strings, thereby improving the efficiency and accuracy of photovoltaic component coding.

图8示出了本发明实施例的基于视觉识别模型的光伏组串自动编号装置的结构示意图。基于视觉识别模型的光伏组串自动编号装置800包括:图像获取模块810、分区模块820、背景分离模块830、分割模块840和编码模块850。Figure 8 shows a schematic structural diagram of an automatic numbering device for photovoltaic strings based on a visual recognition model according to an embodiment of the present invention. The photovoltaic string automatic numbering device 800 based on the visual recognition model includes: an image acquisition module 810, a partition module 820, a background separation module 830, a segmentation module 840 and an encoding module 850.

所述图像获取模块810,用于获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;The image acquisition module 810 is used to acquire an image to be numbered, wherein the image to be numbered includes at least one photovoltaic string;

所述分区模块820,用于对所述待编号图像进行分区,得到至少一个分区图像;The partition module 820 is used to partition the image to be numbered to obtain at least one partitioned image;

所述背景分离模块830,用于将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;The background separation module 830 is used to separate the background of each partition image to obtain the background outline of the partition and the photovoltaic string outline;

所述分割模块840,用于将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;The segmentation module 840 is used to input the outline of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel;

所述编码模块850,用于基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。The encoding module 850 is configured to number the photovoltaic panels in the image to be numbered based on the segmentation results of each photovoltaic panel.

在一种可选的方式中,所述分割模块840进一步用于:In an optional manner, the segmentation module 840 is further used to:

预先构建光伏组串视觉识别模型,将光伏组串轮廓图像及对应的已标注切片喂入所述光伏组串视觉识别模型进行训练,其中,所述光伏组串轮廓图像包括光伏组串的排布遮挡图;A photovoltaic string visual recognition model is constructed in advance, and the photovoltaic string outline image and the corresponding labeled slices are fed into the photovoltaic string visual recognition model for training, where the photovoltaic string outline image includes the arrangement of the photovoltaic strings. occlusion map;

将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果。Input the outline image of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel.

在一种可选的方式中,所述分割模块840进一步用于:In an optional manner, the segmentation module 840 is further used to:

所述光伏组串视觉识别模型为多模态图像分割网络,其包括一个编码模块和一个解码模块;The photovoltaic string visual recognition model is a multi-modal image segmentation network, which includes an encoding module and a decoding module;

所述编码模块和所述解码模块均包括至少一个残差模块,所述残差模块包括依次连接的卷积层、BN层和LeakyReLU层;The encoding module and the decoding module each include at least one residual module, and the residual module includes a convolution layer, a BN layer and a LeakyReLU layer connected in sequence;

所述编码模块的残差模块和所述解码模块的残差模块之间设置有注意力模块,所述注意力模块包括通道注意力CA模块和空间注意力SA模块。An attention module is provided between the residual module of the encoding module and the residual module of the decoding module. The attention module includes a channel attention CA module and a spatial attention SA module.

在一种可选的方式中,所述背景分离模块830进一步用于:In an optional manner, the background separation module 830 is further used to:

步骤S1,针对所述待编号图像的任一像素点,确定与其周围四个邻近像素点的像素坐标和RGB颜色均值;Step S1: For any pixel of the image to be numbered, determine the pixel coordinates and RGB color mean of four adjacent pixels around it;

步骤S2,针对任一邻近像素点,将其RGB颜色均值小于第一预设阈值的像素点确定为弱边缘像素点,将其RGB颜色均值大于第二预设阈值的像素点确定为强边缘像素点;Step S2: For any adjacent pixel, determine the pixel whose RGB color mean is less than the first preset threshold as a weak edge pixel, and determine the pixel whose RGB color mean is greater than the second preset threshold as a strong edge pixel. point;

步骤S3,将该强边缘像素点连接成边缘,当连接到边缘的端点时,在该强边缘像素点的邻域像素点中重新确定弱边缘像素点作为新边缘点,并继续检测和连接该新边缘点直至轮廓闭合,得到一个分区图像;Step S3, connect the strong edge pixel points into edges. When connected to the endpoint of the edge, re-determine the weak edge pixel points as new edge points in the neighborhood pixel points of the strong edge pixel point, and continue to detect and connect the weak edge pixel points. New edge points until the contour is closed to obtain a partitioned image;

步骤S4,针对所述待编号图像于所述分区图像之外的任一像素点,重复步骤S1依次得到多个分区图像。Step S4: For any pixel of the image to be numbered outside the partition image, repeat step S1 to obtain multiple partition images in sequence.

在一种可选的方式中,所述分割模块840进一步用于:In an optional manner, the segmentation module 840 is further used to:

步骤S1,去除所述分区图像的彩色信息,得到灰度图像并进行归一化;Step S1, remove the color information of the partition image, obtain a grayscale image and normalize it;

步骤S2,利用最大类间方差法计算所述灰度图像的二值化分割阈值;Step S2: Calculate the binary segmentation threshold of the grayscale image using the maximum inter-class variance method;

步骤S3,将所述灰度图像中像素值小于预设分割阈值的区域设置为0,用黑色分割出所述分区的光伏组串轮廓;将像素值大于预设分割阈值的区域设置为1,用白色分割出所述分区的背景轮廓。Step S3: Set the area in the grayscale image where the pixel value is less than the preset segmentation threshold to 0, and use black to segment the photovoltaic string outline of the partition; set the area where the pixel value is greater than the preset segmentation threshold to 1, Use white to outline the background of the partition.

在一种可选的方式中,还包括轮廓聚类模块,所述轮廓聚类模块进一步用于:In an optional manner, a contour clustering module is also included, and the contour clustering module is further used to:

将所述光伏组串轮廓图像转换为HSV颜色模型,并使用加权平均的方法对其进行灰度处理;Convert the photovoltaic string outline image into an HSV color model, and perform grayscale processing on it using a weighted average method;

获取所述光伏组串轮廓图像中各个轮廓的坐标,利用DBSCAN聚类算法对所述各个轮廓的坐标进行聚类分析,得到各个轮廓的Dunn指数;Obtain the coordinates of each contour in the photovoltaic string contour image, use the DBSCAN clustering algorithm to perform cluster analysis on the coordinates of each contour, and obtain the Dunn index of each contour;

将小于预设阈值的Dunn指数所对应的轮廓的区域设置为1。Set the area of the contour corresponding to the Dunn index smaller than the preset threshold to 1.

在一种可选的方式中,还包括模版匹配模块,所述模版匹配模块进一步用于:In an optional manner, a template matching module is also included, and the template matching module is further used to:

采用模版匹配方法识别所述待编号图像得到光伏组串;Use a template matching method to identify the image to be numbered to obtain the photovoltaic string;

将所述光伏组串按照预设顺序进行矩阵排列,将全部所述光伏组串排列至同一行或同一列,形成待填充行或待填充列;Arrange the photovoltaic strings in a matrix according to a preset order, and arrange all the photovoltaic strings in the same row or column to form rows or columns to be filled;

对所述待填充行或待填充列进行所述光伏组串的填充,形成完整组件行或完整组件列;Fill the rows or columns to be filled with the photovoltaic strings to form complete rows or columns of components;

将所述完整组件行映射到所述光伏组串的全部行,或将所述完整组件列映射到所述光伏组串的全部列。The complete rows of components are mapped to all rows of the photovoltaic strings, or the complete columns of components are mapped to all columns of the photovoltaic strings.

根据本发明提供的方案,获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;对所述待编号图像进行分区,得到至少一个分区图像;将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。本发明对待编号图像进行分区和背景分离,并将光伏组串轮廓输入至视觉识别模型对光伏组串自动编号,提高了光伏组件编码的效率和准确度。According to the solution provided by the present invention, an image to be numbered is obtained, wherein the image to be numbered includes at least one photovoltaic string; the image to be numbered is partitioned to obtain at least one partition image; and each of the partition images is background separated , obtain the background outline of the partition and the photovoltaic string outline; input each photovoltaic string outline into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel; treat the numbers based on the segmentation results of each photovoltaic panel The photovoltaic panels in the image are numbered. The present invention partitions and separates the background of the image to be numbered, and inputs the photovoltaic string outline into the visual recognition model to automatically number the photovoltaic strings, thereby improving the efficiency and accuracy of photovoltaic component coding.

图9示出了本发明计算设备实施例的结构示意图,本发明具体实施例并不对计算设备的具体实现做限定。Figure 9 shows a schematic structural diagram of an embodiment of the computing device of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the computing device.

如图9所示,该计算设备可以包括:处理器(processor)902、通信接口(Communications Interface)904、存储器(memory)906、以及通信总线908。As shown in FIG. 9 , the computing device may include: a processor 902 , a communications interface 904 , a memory 906 , and a communications bus 908 .

其中:处理器902、通信接口904、以及存储器906通过通信总线908完成相互间的通信。通信接口904,用于与其它设备比如客户端或其它服务器等的网元通信。处理器902,用于执行程序910,具体可以执行上述基于视觉识别模型的光伏组串自动编号方法实施例中的相关步骤。Among them: the processor 902, the communication interface 904, and the memory 906 complete communication with each other through the communication bus 908. The communication interface 904 is used to communicate with network elements of other devices such as clients or other servers. The processor 902 is configured to execute the program 910. Specifically, it can execute the relevant steps in the above embodiment of the automatic numbering method for photovoltaic strings based on the visual recognition model.

具体地,程序910可以包括程序代码,该程序代码包括计算机操作指令。Specifically, program 910 may include program code including computer operating instructions.

处理器902可能是中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。计算设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 902 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the computing device may be the same type of processor, such as one or more CPUs; or they may be different types of processors, such as one or more CPUs and one or more ASICs.

存储器906,用于存放程序910。存储器906可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。Memory 906 is used to store programs 910. The memory 906 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.

本发明实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的基于视觉识别模型的光伏组串自动编号方法。Embodiments of the present invention provide a non-volatile computer storage medium that stores at least one executable instruction. The computer executable instruction can execute the photovoltaic group based on the visual recognition model in any of the above method embodiments. String automatic numbering method.

在此提供的算法或显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms or displays provided herein are not inherently associated with any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. From the above description, the structure required to construct such a system is obvious. Furthermore, embodiments of the present invention are not directed to any specific programming language. It should be understood that a variety of programming languages may be utilized to implement the invention described herein, and that the above descriptions of specific languages are intended to disclose the best mode of carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the instructions provided here, a number of specific details are described. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this description.

类似地,应当理解,为了精简本发明并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it will be understood that in the above description of exemplary embodiments of the invention, various features of embodiments of the invention are sometimes grouped together into a single implementation in order to streamline the invention and assist in understanding one or more of the various inventive aspects. examples, diagrams, or descriptions thereof. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that modules in the devices in the embodiment can be adaptively changed and arranged in one or more devices different from that in the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of the equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features of different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The invention may also be implemented as an apparatus or apparatus program (eg, computer program and computer program product) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the element claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, third, etc. does not indicate any order. These words can be interpreted as names. Unless otherwise specified, the steps in the above embodiments should not be understood as limiting the order of execution.

Claims (10)

1.一种基于视觉识别模型的光伏组串自动编号方法,其特征在于,包括:1. An automatic numbering method for photovoltaic strings based on a visual recognition model, which is characterized by including: 步骤S1,获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;Step S1, obtain an image to be numbered, wherein the image to be numbered includes at least one photovoltaic string; 步骤S2,对所述待编号图像进行分区,得到至少一个分区图像;Step S2, partition the image to be numbered to obtain at least one partitioned image; 步骤S3,将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;Step S3, perform background separation on each partition image to obtain the background outline of the partition and the photovoltaic string outline; 步骤S4,将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;Step S4: Input the outline of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel; 步骤S5,基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。Step S5: Number the photovoltaic panels in the image to be numbered based on the segmentation results of each photovoltaic panel. 2.根据权利要求1所述的基于视觉识别模型的光伏组串自动编号方法,其特征在于,所述将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果进一步包括:2. The automatic numbering method of photovoltaic strings based on the visual recognition model according to claim 1, characterized in that the outline of each photovoltaic string is input into the photovoltaic string visual recognition model to obtain the segmentation of each photovoltaic panel. Results further include: 预先构建光伏组串视觉识别模型,将光伏组串轮廓图像及对应的已标注切片喂入所述光伏组串视觉识别模型进行训练,其中,所述光伏组串轮廓图像包括光伏组串的排布遮挡图;A photovoltaic string visual recognition model is constructed in advance, and the photovoltaic string outline image and the corresponding labeled slices are fed into the photovoltaic string visual recognition model for training, where the photovoltaic string outline image includes the arrangement of the photovoltaic strings. occlusion map; 将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果。Input the outline image of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel. 3.根据权利要求2所述的基于视觉识别模型的光伏组串自动编号方法,其特征在于,所述光伏组串视觉识别模型为多模态图像分割网络,其包括一个编码模块和一个解码模块;3. The photovoltaic string automatic numbering method based on the visual recognition model according to claim 2, characterized in that the photovoltaic string visual recognition model is a multi-modal image segmentation network, which includes an encoding module and a decoding module. ; 所述编码模块和所述解码模块均包括至少一个残差模块,所述残差模块包括依次连接的卷积层、BN层和LeakyReLU层;The encoding module and the decoding module each include at least one residual module, and the residual module includes a convolution layer, a BN layer and a LeakyReLU layer connected in sequence; 所述编码模块的残差模块和所述解码模块的残差模块之间设置有注意力模块,所述注意力模块包括通道注意力CA模块和空间注意力SA模块。An attention module is provided between the residual module of the encoding module and the residual module of the decoding module. The attention module includes a channel attention CA module and a spatial attention SA module. 4.根据权利要求1所述的基于视觉识别模型的光伏组串自动编号方法,其特征在于,所述对所述待编号图像进行分区,得到至少一个分区图像进一步包括:4. The automatic numbering method of photovoltaic strings based on the visual recognition model according to claim 1, characterized in that said partitioning the image to be numbered to obtain at least one partitioned image further includes: 步骤S1,针对所述待编号图像的任一像素点,确定与其周围四个邻近像素点的像素坐标和RGB颜色均值;Step S1: For any pixel of the image to be numbered, determine the pixel coordinates and RGB color mean of four adjacent pixels around it; 步骤S2,针对任一邻近像素点,将其RGB颜色均值小于第一预设阈值的像素点确定为弱边缘像素点,将其RGB颜色均值大于第二预设阈值的像素点确定为强边缘像素点;Step S2: For any adjacent pixel, determine the pixel whose RGB color mean is less than the first preset threshold as a weak edge pixel, and determine the pixel whose RGB color mean is greater than the second preset threshold as a strong edge pixel. point; 步骤S3,将该强边缘像素点连接成边缘,当连接到边缘的端点时,在该强边缘像素点的邻域像素点中重新确定弱边缘像素点作为新边缘点,并继续检测和连接该新边缘点直至轮廓闭合,得到一个分区图像;Step S3, connect the strong edge pixel points into edges. When connected to the endpoint of the edge, re-determine the weak edge pixel points as new edge points in the neighborhood pixel points of the strong edge pixel point, and continue to detect and connect the weak edge pixel points. New edge points until the contour is closed to obtain a partitioned image; 步骤S4,针对所述待编号图像于所述分区图像之外的任一像素点,重复步骤S1依次得到多个分区图像。Step S4: For any pixel of the image to be numbered outside the partition image, repeat step S1 to obtain multiple partition images in sequence. 5.根据权利要求1所述的基于视觉识别模型的光伏组串自动编号方法,其特征在于,所述将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓进一步包括:5. The photovoltaic string automatic numbering method based on the visual recognition model according to claim 1, characterized in that the background separation of each partition image is performed to obtain the background outline of the partition and the photovoltaic string outline. include: 步骤S1,去除所述分区图像的彩色信息,得到灰度图像并进行归一化;Step S1, remove the color information of the partition image, obtain a grayscale image and normalize it; 步骤S2,利用最大类间方差法计算所述灰度图像的二值化分割阈值;Step S2: Calculate the binary segmentation threshold of the grayscale image using the maximum inter-class variance method; 步骤S3,将所述灰度图像中像素值小于预设分割阈值的区域设置为0,用黑色分割出所述分区的光伏组串轮廓;将像素值大于预设分割阈值的区域设置为1,用白色分割出所述分区的背景轮廓。Step S3: Set the area in the grayscale image where the pixel value is less than the preset segmentation threshold to 0, and use black to segment the photovoltaic string outline of the partition; set the area where the pixel value is greater than the preset segmentation threshold to 1, Use white to outline the background of the partition. 6.根据权利要求1所述的基于视觉识别模型的光伏组串自动编号方法,其特征在于,所述将各个所述光伏组串轮廓图像输入至光伏组串视觉识别模型,得到各个光伏板的分割结果之前,所述方法还包括:6. The automatic numbering method of photovoltaic strings based on the visual recognition model according to claim 1, characterized in that the outline image of each photovoltaic string is input into the photovoltaic string visual recognition model to obtain the number of each photovoltaic panel. Before segmenting the results, the method also includes: 将所述光伏组串轮廓图像转换为HSV颜色模型,并使用加权平均的方法对其进行灰度处理;Convert the photovoltaic string outline image into an HSV color model, and perform grayscale processing on it using a weighted average method; 获取所述光伏组串轮廓图像中各个轮廓的坐标,利用DBSCAN聚类算法对所述各个轮廓的坐标进行聚类分析,得到各个轮廓的Dunn指数;Obtain the coordinates of each contour in the photovoltaic string contour image, use the DBSCAN clustering algorithm to perform cluster analysis on the coordinates of each contour, and obtain the Dunn index of each contour; 将小于预设阈值的Dunn指数所对应的轮廓的区域设置为1。Set the area of the contour corresponding to the Dunn index smaller than the preset threshold to 1. 7.根据权利要求1所述的基于视觉识别模型的光伏组串自动编号方法,其特征在于,所述方法还包括:7. The photovoltaic string automatic numbering method based on the visual recognition model according to claim 1, characterized in that the method further includes: 采用模版匹配方法识别所述待编号图像得到光伏组串;Use a template matching method to identify the image to be numbered to obtain the photovoltaic string; 将所述光伏组串按照预设顺序进行矩阵排列,将全部所述光伏组串排列至同一行或同一列,形成待填充行或待填充列;Arrange the photovoltaic strings in a matrix according to a preset order, and arrange all the photovoltaic strings in the same row or column to form rows or columns to be filled; 对所述待填充行或待填充列进行所述光伏组串的填充,形成完整组件行或完整组件列;Fill the rows or columns to be filled with the photovoltaic strings to form complete rows or columns of components; 将所述完整组件行映射到所述光伏组串的全部行,或将所述完整组件列映射到所述光伏组串的全部列。The complete rows of components are mapped to all rows of the photovoltaic strings, or the complete columns of components are mapped to all columns of the photovoltaic strings. 8.一种基于视觉识别模型的光伏组串自动编号装置,其特征在于,包括:8. An automatic numbering device for photovoltaic strings based on a visual recognition model, characterized by including: 图像获取模块,用于获取待编号图像,其中,所述待编号图像包括至少一个光伏组串;An image acquisition module, configured to acquire an image to be numbered, wherein the image to be numbered includes at least one photovoltaic string; 分区模块,用于对所述待编号图像进行分区,得到至少一个分区图像;A partitioning module, used to partition the image to be numbered to obtain at least one partitioned image; 背景分离模块,用于将各个所述分区图像进行背景分离,得到所述分区的背景轮廓和光伏组串轮廓;A background separation module, used to separate the background of each partition image to obtain the background outline of the partition and the photovoltaic string outline; 分割模块,用于将各个所述光伏组串轮廓输入至光伏组串视觉识别模型,得到各个光伏板的分割结果;A segmentation module, used to input the outline of each photovoltaic string into the photovoltaic string visual recognition model to obtain the segmentation results of each photovoltaic panel; 编码模块,用于基于所述各个光伏板的分割结果对待编号图像中的光伏板进行编号。An encoding module, configured to number the photovoltaic panels in the image to be numbered based on the segmentation results of each photovoltaic panel. 9.一种计算设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;9. A computing device, comprising: a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface completing communication with each other through the communication bus; 所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如权利要求1-7中任一项所述的基于视觉识别模型的光伏组串自动编号方法对应的操作。The memory is used to store at least one executable instruction. The executable instruction causes the processor to perform operations corresponding to the photovoltaic string automatic numbering method based on the visual recognition model according to any one of claims 1-7. . 10.一种计算机存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行如权利要求1-7中任一项所述的基于视觉识别模型的光伏组串自动编号方法对应的操作。10. A computer storage medium, at least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to execute the photovoltaic group based on the visual recognition model according to any one of claims 1-7. Operations corresponding to the string automatic numbering method.
CN202311076176.0A 2023-08-24 2023-08-24 Automatic numbering method and related device for photovoltaic strings based on visual recognition model Pending CN117037042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311076176.0A CN117037042A (en) 2023-08-24 2023-08-24 Automatic numbering method and related device for photovoltaic strings based on visual recognition model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311076176.0A CN117037042A (en) 2023-08-24 2023-08-24 Automatic numbering method and related device for photovoltaic strings based on visual recognition model

Publications (1)

Publication Number Publication Date
CN117037042A true CN117037042A (en) 2023-11-10

Family

ID=88602253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311076176.0A Pending CN117037042A (en) 2023-08-24 2023-08-24 Automatic numbering method and related device for photovoltaic strings based on visual recognition model

Country Status (1)

Country Link
CN (1) CN117037042A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119048506A (en) * 2024-10-30 2024-11-29 深圳市奇航疆域技术有限公司 Defect identification method, device, equipment and medium for photovoltaic string

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012049233A (en) * 2010-08-25 2012-03-08 Tempearl Ind Co Ltd Photovoltaic power generation panel or solar cell array
CN107423501A (en) * 2017-07-17 2017-12-01 南京邮电大学 A kind of array automatic detection and method for numbering serial based on photovoltaic plant logic chart
EP3372967A1 (en) * 2017-03-08 2018-09-12 vaireco GmbH Method for detecting system errors of a photovoltaic system
US10504230B1 (en) * 2014-12-19 2019-12-10 Amazon Technologies, Inc. Machine vision calibration system with marker
CN113393459A (en) * 2021-08-09 2021-09-14 旻投电力发展有限公司 Infrared image photovoltaic module visual identification method based on example segmentation
CN113538453A (en) * 2021-05-27 2021-10-22 旻投电力发展有限公司 Infrared image photovoltaic module visual identification method based on semantic segmentation
US20210390700A1 (en) * 2020-06-12 2021-12-16 Adobe Inc. Referring image segmentation
US20220121871A1 (en) * 2020-10-16 2022-04-21 Tsinghua University Multi-directional scene text recognition method and system based on multi-element attention mechanism
WO2022088631A1 (en) * 2020-10-28 2022-05-05 Oppo广东移动通信有限公司 Image encoding method, image decoding method, and related apparatuses
WO2023030281A1 (en) * 2021-09-03 2023-03-09 北京字节跳动网络技术有限公司 Training method and apparatus, image processing method, electronic device and storage medium
CN116329795A (en) * 2022-12-06 2023-06-27 湖州丽天智能科技有限公司 Photovoltaic welding method, system and robot based on visual recognition algorithm
CN116503863A (en) * 2023-06-26 2023-07-28 尚特杰电力科技有限公司 Photovoltaic panel numbering method, storage medium and controller

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012049233A (en) * 2010-08-25 2012-03-08 Tempearl Ind Co Ltd Photovoltaic power generation panel or solar cell array
US10504230B1 (en) * 2014-12-19 2019-12-10 Amazon Technologies, Inc. Machine vision calibration system with marker
EP3372967A1 (en) * 2017-03-08 2018-09-12 vaireco GmbH Method for detecting system errors of a photovoltaic system
CN107423501A (en) * 2017-07-17 2017-12-01 南京邮电大学 A kind of array automatic detection and method for numbering serial based on photovoltaic plant logic chart
US20210390700A1 (en) * 2020-06-12 2021-12-16 Adobe Inc. Referring image segmentation
US20220121871A1 (en) * 2020-10-16 2022-04-21 Tsinghua University Multi-directional scene text recognition method and system based on multi-element attention mechanism
WO2022088631A1 (en) * 2020-10-28 2022-05-05 Oppo广东移动通信有限公司 Image encoding method, image decoding method, and related apparatuses
CN113538453A (en) * 2021-05-27 2021-10-22 旻投电力发展有限公司 Infrared image photovoltaic module visual identification method based on semantic segmentation
CN113393459A (en) * 2021-08-09 2021-09-14 旻投电力发展有限公司 Infrared image photovoltaic module visual identification method based on example segmentation
WO2023030281A1 (en) * 2021-09-03 2023-03-09 北京字节跳动网络技术有限公司 Training method and apparatus, image processing method, electronic device and storage medium
CN116329795A (en) * 2022-12-06 2023-06-27 湖州丽天智能科技有限公司 Photovoltaic welding method, system and robot based on visual recognition algorithm
CN116503863A (en) * 2023-06-26 2023-07-28 尚特杰电力科技有限公司 Photovoltaic panel numbering method, storage medium and controller

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PENGFEI XU: "Anisotropic Phase Stretch Transform-based Algorithm for Segmentation of Activated Sludge Phase-contrast Microscopic Image", IEEE ACCESS, 31 January 2022 (2022-01-31), pages 1 - 20 *
吴新辉: "利用基于残差多注意力和ACON激活函数的神经网络提取建筑物", 地球信息科学, vol. 24, no. 4, 30 April 2022 (2022-04-30), pages 792 - 801 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119048506A (en) * 2024-10-30 2024-11-29 深圳市奇航疆域技术有限公司 Defect identification method, device, equipment and medium for photovoltaic string
CN119048506B (en) * 2024-10-30 2025-01-07 深圳市奇航疆域技术有限公司 Defect identification method, device, equipment and medium for photovoltaic string

Similar Documents

Publication Publication Date Title
CN106157319B (en) The conspicuousness detection method in region and Pixel-level fusion based on convolutional neural networks
CN109829914A (en) The method and apparatus of testing product defect
TW201732651A (en) Word segmentation method and apparatus
CN105678278A (en) Scene recognition method based on single-hidden-layer neural network
WO2023082784A1 (en) Person re-identification method and apparatus based on local feature attention
CN111695373B (en) Zebra stripes positioning method, system, medium and equipment
CN106897673A (en) A kind of recognition methods again of the pedestrian based on retinex algorithms and convolutional neural networks
CN111680690A (en) Character recognition method and device
CN111027538A (en) Container detection method based on instance segmentation model
CN116279592A (en) Method for dividing travelable area of unmanned logistics vehicle
CN116168351B (en) Inspection method and device for power equipment
CN114581646B (en) Text recognition method, device, electronic device and storage medium
CN114723636A (en) Model generation method, device, device and storage medium based on multi-feature fusion
CN109977941A (en) License plate recognition method and device
CN116777905B (en) Intelligent industrial rotation detection method and system based on long tail distribution data
CN111476226A (en) Text positioning method and device and model training method
CN108805884A (en) A kind of mosaic area's detection method, device and equipment
CN115631427B (en) A multi-scene ship detection and segmentation method based on mixed attention
CN109977834A (en) The method and apparatus divided manpower from depth image and interact object
CN118379696A (en) Ship target detection method and device and readable storage medium
CN117037042A (en) Automatic numbering method and related device for photovoltaic strings based on visual recognition model
Wang et al. Multiscale traffic sign detection method in complex environment based on YOLOv4
CN116843909B (en) Power line extraction method and device, storage medium and computer equipment
CN115035390B (en) Aerial image detection method based on GAN and feature enhancement
Shao et al. Highly Differentiated Target Detection under Extremely Low-Light Conditions Based on Improved YOLOX Model.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination