Panel edge recognition method and device, electronic device and storage medium

The panel edge recognition and straight line determination processing are performed through the network-optimized target neural network, which solves the problem of low reliability of panel edge recognition in the existing technology and improves the reliability of the recognition results and the accuracy of defect analysis.

CN118154899BActive Publication Date: 2024-09-06CHENGDU UNION BIG DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410565205.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-06
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

The existing panel edge identification technology has low reliability and is difficult to effectively identify panel edge defects.

Method used

The target neural network formed through network optimization is used to perform edge recognition processing on the panel image to be identified, and the defects of the panel are analyzed through edge straight line determination processing to improve the reliability of edge recognition.

Benefits of technology

The reliability of panel edge identification and the accuracy of defect analysis are improved, the ability to identify panel edge defects is enhanced, and the reliability shortcomings in the existing technology are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118154899B
    Figure CN118154899B
Patent Text Reader

Abstract

The panel edge recognition method and device, electronic device and storage medium provided in the present application relate to the field of image processing technology. In the present application, firstly, the target neural network formed by network optimization can be used to perform edge recognition processing on the acquired panel image to be recognized, and obtain the edge recognition result corresponding to the panel image to be recognized; secondly, based on the edge recognition result, the edge straight line determination processing can be performed on the panel image to be recognized, and the edge straight line determination result of the target panel in the panel image to be recognized can be obtained; then, based on the edge straight line determination result, the defect recognition result of the target panel can be analyzed. Based on the above content, the problem of relatively low reliability of panel edge recognition existing in the prior art can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a panel edge recognition method and device, an electronic device, and a storage medium. Background Art

[0002] Edge recognition of panels (such as glass substrates, etc.) is an important technical means in the fields of industrial automation, machine vision and computer vision. For example, edge recognition can be used to analyze and locate edge defects of panels. However, the inventors have found that the existing panel edge recognition technology has a relatively low recognition reliability. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a panel edge recognition method and device, an electronic device and a storage medium, so as to improve the problem of relatively low reliability of panel edge recognition existing in the prior art.

[0004] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0005] A panel edge recognition method, comprising:

[0006] Using the target neural network formed by network optimization, edge recognition processing is performed on the acquired panel image to be identified, so as to obtain an edge recognition result corresponding to the panel image to be identified, wherein the panel image to be identified is formed by performing image acquisition on the target panel, and the edge recognition result is used to reflect the edge distribution of the target panel in the panel image to be identified;

[0007] Based on the edge recognition result, edge straight line determination processing is performed on the panel image to be identified to obtain an edge straight line determination result of the target panel in the panel image to be identified;

[0008] Based on the edge straight line determination result, a defect recognition result of the target panel is analyzed, wherein the defect recognition result is used to reflect whether there is a defect at the edge of the target panel.

[0009] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of performing edge straight line determination processing on the panel image to be recognized based on the edge recognition result to obtain the edge straight line determination result of the target panel in the panel image to be recognized includes:

[0010] In the panel image to be identified, an edge line of the target panel reflected by the edge recognition result is scanned to obtain at least one scanning result corresponding to the edge recognition result, wherein each of the scanning results is used to reflect a pixel point scanned on the edge line;

[0011] For each of the scanning results, based on the scanned pixel points on the edge line reflected by the scanning result, edge straight line determination processing is performed on the panel image to be identified, so as to obtain a local edge straight line determination result of the target panel in the panel image to be identified, wherein the local edge straight line determination result is used to reflect the edge straight line determined based on the corresponding scanning result;

[0012] Based on the local edge straight line determination result corresponding to each of the scanning results, the edge straight line determination result of the target panel in the panel image to be identified is determined.

[0013] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of scanning the edge line of the target panel reflected by the edge recognition result in the panel image to be recognized to obtain at least one scanning result corresponding to the edge recognition result includes:

[0014] In the panel image to be identified, scanning processing is performed along the column direction of pixel distribution to determine the first intersection pixel point between each column scanning line and the edge line of the target panel reflected by the edge recognition result, and based on the first intersection pixel point corresponding to each column scanning line, a set of intersection pixel points corresponding to the column direction is formed;

[0015] In the panel image to be identified, scanning processing is performed along the row direction of pixel distribution to determine the first intersection pixel point between each row scanning line and the edge line of the target panel reflected by the edge recognition result, and based on the first intersection pixel point corresponding to each row scanning line, a set of intersection pixel points corresponding to the row direction is formed;

[0016] Determine the intersection between the cross pixel point set corresponding to the column direction and the cross pixel point set corresponding to the row direction to obtain a cross pixel point intersection;

[0017] The intersection of the cross-pixel points, other cross-pixel points in the cross-pixel point set corresponding to the column direction except the intersection of the cross-pixel points, and other cross-pixel points in the cross-pixel point set corresponding to the row direction except the intersection of the cross-pixel points are respectively determined as the scanning results corresponding to the edge recognition result to obtain at least three corresponding scanning results.

[0018] In a preferred embodiment of the present application, in the above panel edge recognition method, for each of the scanning results, based on the scanned pixel points on the edge line reflected by the scanning result, the step of determining the edge straight line of the panel image to be identified, and obtaining the local determination result of the edge straight line of the target panel in the panel image to be identified, includes:

[0019] For each of the scanning results, performing outlier point screening processing on the scanned pixel points on the edge line reflected by the scanning result to obtain a target pixel point set corresponding to the scanning result;

[0020] Linear fitting processing is performed on each pixel point in the target pixel point set corresponding to the scanning result to obtain each edge straight line local determination result of the target panel in the panel image to be identified, wherein there is a one-to-one correspondence between the edge straight line local determination result, the scanning result and the target pixel point set, and each edge straight line local determination result is used to reflect a fitted edge straight line.

[0021] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of analyzing the defect recognition result of the target panel based on the edge straight line determination result includes:

[0022] For each edge straight line determination result belonging to the target type, the edge straight line determination result is compared and analyzed with the edge recognition sub-result corresponding to the edge straight line determination result included in the edge recognition result, so as to obtain a defect recognition sub-result corresponding to the edge straight line determination result, wherein the edge recognition result includes at least one edge recognition sub-result, any one of the edge recognition sub-results is used to reflect an edge distribution of the target panel in the panel image to be recognized, and the edge straight line reflected by each edge straight line determination result belonging to the target type is distributed along the row direction or the column direction in the panel image to be recognized;

[0023] For each edge straight line determination result that does not belong to the target type, the size information of the edge straight line reflected by the edge straight line determination result is determined, and based on the size information, the defect recognition result of the target panel is analyzed.

[0024] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of determining the size information of the edge line reflected by the edge line determination result for each edge line determination result that does not belong to the target type, and analyzing the defect recognition result of the target panel based on the size information includes:

[0025] For each edge straight line determination result that does not belong to the target type, determine the size information of the edge straight line reflected by the edge straight line determination result;

[0026] Respectively matching the size information corresponding to each edge straight line determination result with the reference size information pre-configured for the size information to obtain corresponding matching data;

[0027] For each edge straight line determination result that does not belong to the target type, if the matching data corresponding to the edge straight line determination result reflects that the size information does not match the reference size information, a defect identification result corresponding to the edge straight line determination result is generated to reflect that there are defects in the target panel; if the matching data corresponding to the edge straight line determination result reflects that the size information matches the reference size information, a defect identification result corresponding to the edge straight line determination result is generated to reflect that there are no defects in the target panel.

[0028] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of using the target neural network formed by network optimization to perform edge recognition processing on the acquired panel image to be recognized to obtain the edge recognition result corresponding to the panel image to be recognized includes:

[0029] Acquire a first sample panel image and an initial neural network, wherein the initial neural network includes a first image encoding model and a first image decoding model;

[0030] Based on the first sample panel image, performing unsupervised network optimization processing on the initial neural network to obtain an intermediate neural network corresponding to the initial neural network, wherein, in the process of performing the unsupervised network optimization processing, a basis for the network optimization processing at least includes an error between the first sample panel image and a decoded image output by the first image decoding model;

[0031] Based on the second image decoding model and the first image coding model in the intermediate neural network, a candidate neural network is constructed, wherein the candidate neural network includes the second image coding model and the second image decoding model, and the model parameters of the second image coding model are the same as the model parameters of the first image coding model in the intermediate neural network;

[0032] Acquire a second sample panel image and image label information corresponding to the second sample panel image, wherein the image label information is used to identify a panel edge in the second sample panel image;

[0033] Based on the second sample panel image and the image label information corresponding to the second sample panel image, the candidate neural network is subjected to supervised network optimization processing to obtain a target neural network corresponding to the candidate neural network, wherein, in the process of performing the supervised network optimization processing, the basis of the network optimization processing at least includes the error between the image label information and the sample edge recognition result output by the second image decoding model;

[0034] The target neural network is used to perform edge recognition processing on the acquired panel image to be identified, so as to obtain an edge recognition result corresponding to the panel image to be identified.

[0035] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of performing unsupervised network optimization processing on the initial neural network based on the first sample panel image to obtain an intermediate neural network corresponding to the initial neural network includes:

[0036] The first sample panel image is segmented and serialized to obtain a sample image segmentation sequence corresponding to the first sample panel image, wherein the sample image segmentation sequence includes a plurality of local sample panel images arranged in sequence, an arrangement relationship between the plurality of local sample panel images is related to a positional relationship between the plurality of local sample panel images in the first sample panel image, and image sizes between every two of the plurality of local sample panel images are consistent;

[0037] Using the first image coding model included in the initial neural network, based on the sample image segmentation sequence, mining candidate overall image coding features of the first sample panel image;

[0038] In the sample image segmentation sequence, a first sample image segmentation sequence and a second sample image segmentation sequence are determined, wherein the first sample image segmentation sequence and the second sample image segmentation sequence both belong to subsequences in the sample image segmentation sequence, and there is a correlation between the first sample image segmentation sequence and the second sample image segmentation sequence;

[0039] Using the first image coding model and the first image decoding model included in the initial neural network, based on the first sample image segmentation sequence and the candidate overall image coding features, decoding is performed to obtain a decoded sample image segmentation sequence corresponding to the first sample image segmentation sequence, wherein a decoding object of the first image decoding model includes the candidate overall image coding features and the encoding result of the first image coding model on the first sample image segmentation sequence, and the decoded sample image segmentation sequence is a restoration result of decoding the second sample image segmentation sequence based on the first sample image segmentation sequence;

[0040] Based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, the candidate overall image coding feature is updated, and the updated candidate overall image coding feature is marked as a corresponding target overall image coding feature;

[0041] The target overall image coding features are decoded using the first image decoding model included in the initial neural network to obtain a decoded sample panel image corresponding to the first sample panel image, and based on the first sample panel image and the decoded sample panel image, an error calculation is performed on the initial neural network to obtain a corresponding target decoding error, and the network parameters of the initial neural network are updated and optimized in a direction of reducing the target decoding error to obtain an intermediate neural network corresponding to the initial neural network.

[0042] In a preferred embodiment of the present application, in the above panel edge recognition method, the step of mining candidate overall image coding features of the first sample panel image based on the sample image segmentation sequence using the first image coding model included in the initial neural network includes:

[0043] For each local sample panel image in the sample image segmentation sequence, encoding processing is performed on the local sample panel image using the first image encoding model included in the initial neural network to obtain a local image encoding feature corresponding to the local sample panel image;

[0044] Performing feature compression processing on each local image coding feature corresponding to the local sample panel image, respectively, to obtain a compressed image coding feature corresponding to each local image coding feature, wherein the feature sizes between every two compressed image coding features are consistent, and each compressed image coding feature includes at least one feature parameter;

[0045] The compressed image coding features corresponding to each of the local image coding features are combined to form candidate overall image coding features of the first sample panel image.

[0046] In a preferred embodiment of the present application, in the above-mentioned panel edge recognition method, the step of performing feature compression processing on each local image coding feature corresponding to the local sample panel image to obtain a compressed image coding feature corresponding to each local image coding feature includes:

[0047] For each local sample panel image in the sample image segmentation sequence, a feature screening process is performed on the local image coding feature corresponding to the local sample panel image to screen out a feature parameter having a maximum value in the local image coding feature;

[0048] Based on a feature parameter having a maximum value in each of the local image coding features, a compressed image coding feature corresponding to each of the local image coding features is constructed.

[0049] In a preferred selection of an embodiment of the present application, in the above-mentioned panel edge recognition method, the step of updating the candidate overall image coding feature based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, and marking the updated candidate overall image coding feature to mark it as the corresponding target overall image coding feature, includes:

[0050] Based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, performing error calculation on the initial neural network to obtain a corresponding local decoding error;

[0051] In the direction of reducing the local decoding error, the network parameters of the initial neural network are updated and optimized to obtain a pending neural network corresponding to the initial neural network;

[0052] Using the first image coding model included in the undetermined neural network, based on the sample image segmentation sequence, mining new candidate overall image coding features of the first sample panel image;

[0053] Based on the new candidate overall image coding feature, the candidate overall image coding feature is updated, and the updated candidate overall image coding feature is marked to form a corresponding target overall image coding feature.

[0054] In a preferred embodiment of the present application, in the above-mentioned panel edge recognition method, the step of performing supervised network optimization processing on the candidate neural network based on the second sample panel image and the image label information corresponding to the second sample panel image to obtain a target neural network corresponding to the candidate neural network includes:

[0055] The second sample panel image is segmented and serialized to obtain a segmentation sequence of images to be mined corresponding to the second sample panel image, wherein the segmentation sequence of images to be mined includes a plurality of local panel images to be mined arranged in sequence, an arrangement relationship between the plurality of local panel images to be mined is related to a positional relationship between the plurality of local panel images to be mined in the second sample panel image, and image sizes between every two of the plurality of local panel images to be mined are consistent;

[0056] Using the second image coding model included in the candidate neural network, based on the to-be-mined image segmentation sequence, mining out the overall image coding features of the second sample panel image;

[0057] Using the second image decoding model included in the candidate neural network, the overall image coding features of the second sample panel image are decoded to obtain a decoded annotated sample panel image corresponding to the second sample panel image, wherein the decoded annotated sample panel image contains annotation information of the corresponding panel edge;

[0058] Based on the annotation information of the corresponding panel edge in the decoded annotation sample panel image and the image label information corresponding to the second sample panel image, the edge recognition error of the candidate neural network is determined, and the network parameters of the candidate neural network are updated and optimized in the direction of reducing the edge recognition error to obtain the corresponding target neural network.

[0059] The embodiment of the present application also provides a panel edge recognition device, including:

[0060] An edge recognition module, used to perform edge recognition processing on the acquired panel image to be recognized by using the target neural network formed through network optimization, and obtain an edge recognition result corresponding to the panel image to be recognized, wherein the panel image to be recognized is formed by performing image acquisition on the target panel, and the edge recognition result is used to reflect the edge distribution of the target panel in the panel image to be recognized;

[0061] An edge straight line determination module is used to perform edge straight line determination processing on the panel image to be identified based on the edge recognition result, and obtain an edge straight line determination result of the target panel in the panel image to be identified;

[0062] The defect recognition module is used to analyze the defect recognition result of the target panel based on the edge straight line determination result, wherein the defect recognition result is used to reflect whether there is a defect at the edge of the target panel.

[0063] Based on the above, an embodiment of the present application further provides an electronic device, including:

[0064] Memory for storing computer programs;

[0065] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned panel edge recognition method.

[0066] On the basis of the above, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is run, each step of the above-mentioned panel edge recognition method is executed.

[0067] The panel edge recognition method and device, electronic device and storage medium provided by the present application can firstly use the target neural network formed by network optimization to perform edge recognition processing on the acquired panel image to be recognized, and obtain the edge recognition result corresponding to the panel image to be recognized; secondly, based on the edge recognition result, the edge straight line determination processing can be performed on the panel image to be recognized, and the edge straight line determination result of the target panel in the panel image to be recognized can be obtained; then, based on the edge straight line determination result, the defect recognition result of the target panel can be analyzed. Based on the above content, since the neural network generally has a better generalization ability (such as having a better recognition performance for the differences between different panel images caused by factors such as illumination and defects), in this way, the edge recognition processing of the panel image to be recognized by using the target neural network first can make the reliability of the edge recognition result relatively higher. In addition, compared with the solution of directly using the neural network to identify edge defects, in the present application, the target neural network does not need to pay attention to edge defects, but can focus on identifying edges, so that the reliability of the edge recognition result can also be higher, so that the reliability of the subsequent defect analysis based on the edge recognition result with higher reliability can also be higher. Therefore, the problem of relatively low reliability of panel edge recognition in the prior art can be effectively improved. In addition, by using technical means such as edge straight line determination processing after edge recognition processing based on neural networks, the final defect recognition result (compared with the solution of directly using neural networks for defect recognition) can also be made more interpretable. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.

[0069] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application.

[0070] Figure 2 A schematic diagram of the flow of a panel edge recognition method provided in an embodiment of the present application.

[0071] Figure 3 A schematic diagram of a panel edge provided in an embodiment of the present application.

[0072] Figure 4 A scanning schematic diagram provided for an embodiment of the present application.

[0073] Figure 5 A schematic diagram of an edge line determination result and an edge identification sub-result provided in an embodiment of the present application.

[0074] Figure 6A block diagram of a panel edge recognition device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0076] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0077] like Figure 1 As shown, an embodiment of the present application provides an electronic device, wherein the electronic device may include a memory, a processor, and a panel edge recognition device.

[0078] In detail, the memory and the processor are electrically connected directly or indirectly to achieve data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The panel edge recognition device includes at least one software function module stored in the memory in the form of software or firmware. The processor is used to execute an executable computer program stored in the memory, for example, the software function module and computer program included in the panel edge recognition device, so as to implement the panel edge recognition method provided in the embodiment of the present application.

[0079] Optionally, the memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0080] Furthermore, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0081] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices (such as an image acquisition device, etc.).

[0082] Combination Figure 2 The present application also provides a panel edge recognition method applicable to the above electronic device. The method steps defined in the process related to the panel edge recognition method can be implemented by the electronic device. Figure 2 The specific process shown is explained in detail.

[0083] Step S110, using the target neural network formed by network optimization, edge recognition processing is performed on the acquired panel image to be identified, so as to obtain an edge recognition result corresponding to the panel image to be identified.

[0084] In an embodiment of the present application, the electronic device can use a target neural network (an image recognition network) formed through network optimization to perform edge recognition processing on the acquired panel image to be recognized, and obtain an edge recognition result corresponding to the panel image to be recognized. The panel image to be recognized is formed by performing image acquisition on the target panel (e.g., after the image acquisition device acquires information on the target panel, the formed image can be sent to the electronic device, so that the electronic device can acquire the image and use it as the panel image to be recognized), and the edge recognition result is used to reflect the edge distribution of the target panel in the panel image to be recognized, such as marking the edge of the target panel in the panel image to be recognized, or marking the pixel points belonging to the edge of the target panel in the panel image to be recognized.

[0085] Step S120 , based on the edge recognition result, edge straight line determination processing is performed on the panel image to be identified, so as to obtain an edge straight line determination result of the target panel in the panel image to be identified.

[0086] In the embodiment of the present application, after obtaining the edge recognition result, the electronic device can perform edge straight line determination processing on the panel image to be recognized based on the edge recognition result to obtain the edge straight line determination result of the target panel in the panel image to be recognized. It should be noted that the edge of the target panel has at least one straight line edge. In this way, in order to realize the defect recognition of the straight line edge, the edge straight line determination processing can be performed on the panel image to be recognized, thereby obtaining the corresponding edge straight line determination result.

[0087] Step S130: analyzing the defect recognition result of the target panel based on the edge straight line determination result.

[0088] In an embodiment of the present application, after obtaining the edge straight line determination result, the electronic device can analyze the defect recognition result of the target panel based on the edge straight line determination result, wherein the defect recognition result is used to reflect whether there is a defect on the edge of the target panel.

[0089] Based on the above content, since neural networks generally have better generalization capabilities (such as having better recognition performance for differences between different panel images caused by factors such as illumination and defects), the target neural network is first used to perform edge recognition processing on the panel image to be identified, so that the reliability of the edge recognition result can be relatively higher. In addition, compared with the solution of directly using a neural network to identify edge defects, since in this application, the target neural network does not need to pay attention to edge defects, but can focus on identifying edges, the reliability of the edge recognition result can also be higher. In this way, the reliability of subsequent defect analysis based on edge recognition results with higher reliability can also be higher. Therefore, the problem of relatively low reliability of panel edge recognition existing in the prior art can be effectively improved. In addition, by using technical means such as edge straight line determination processing after edge recognition processing based on a neural network, the final defect recognition result (compared with the solution of directly using a neural network for defect recognition) can also be made more interpretable.

[0090] First, it should be noted that for step S110, the specific method of using the target neural network to perform edge recognition processing on the panel image to be recognized is not limited and can be selected according to actual needs.

[0091] For example, in an alternative embodiment, in order to improve the efficiency of edge recognition processing of the panel image to be identified, an existing neural network (a neural network with edge recognition capability) can be used to perform edge recognition processing on the panel image to be identified, so that an edge recognition result corresponding to the surface image to be identified can be obtained.

[0092] For example, in another alternative embodiment, in order to ensure the reliability of edge recognition processing of the panel image to be identified, the above-mentioned step S110 may further include step S111, step S112, step S113, step S114, step S115 and step S116, and the specific content of each step is described as follows.

[0093] Step S111, obtaining a first sample panel image and an initial neural network.

[0094] In an embodiment of the present application, a first sample panel image and an initial neural network may be obtained respectively. The initial neural network may include a first image encoding model and a first image decoding model. Exemplarily, the first image encoding model may include multiple convolutional layers and multiple pooling layers, and the multiple convolutional layers and the multiple pooling layers may be distributed alternately, such as the first convolutional layer (such as convolution kernel size: 3x3, number of channels: 3, corresponding to the three channels of R, G, and B of the image), the first pooling layer (such as pooling size: 2x2), the second convolutional layer (such as convolution kernel size: 3x3, number of channels: 64), the second pooling layer (such as pooling size: 2x2), etc. Exemplarily, the first image decoding model may include multiple upsampling layers and multiple convolutional layers, and the multiple upsampling layers and the multiple convolutional layers may be alternately distributed, such as the first upsampling layer (such as upsampling size: 2x2), the first convolutional layer (such as convolution kernel size: 3x3, number of channels: 128), the second upsampling layer (such as upsampling size: 2x2), the second convolutional layer (such as convolution kernel size: 3x3, number of channels: 64), etc. Exemplarily, the output of the pooling layer of the first image encoding model may also be linked to the input of the upsampling layer of the first image decoding model.

[0095] Step S112, based on the first sample panel image, performing unsupervised network optimization processing on the initial neural network to obtain an intermediate neural network corresponding to the initial neural network.

[0096] In an embodiment of the present application, after obtaining the first sample panel image and the initial neural network, the initial neural network can be subjected to unsupervised network optimization processing based on the first sample panel image to obtain an intermediate neural network corresponding to the initial neural network, that is, the first sample panel image may not have label information, for example, it is not necessary to mark the pixels belonging to the panel edge in the first sample panel image. Wherein, in the process of performing unsupervised network optimization processing, the basis of network optimization processing at least includes the error between the first sample panel image and the decoded image output by the first image decoding model. That is to say, the initial neural network can be an image reconstruction network or an image restoration network, so that the error between the first sample panel image and the corresponding decoded image (reconstructed image, restored image) can be used as the basis for performing unsupervised network optimization processing on the initial neural network, for example, the parameters of the initial neural network can be adjusted in the direction of reducing the error. In addition, in order to ensure the reliability of the network optimization processing performed on the initial neural network, that is, to obtain a better image restoration or reconstruction capability of the intermediate neural network, a larger number of first sample panel images can be provided.

[0097] Step S113, constructing a candidate neural network based on the second image decoding model and the first image encoding model in the intermediate neural network.

[0098] In an embodiment of the present application, after obtaining the intermediate neural network, a candidate neural network can be constructed based on the second image decoding model and the first image coding model in the intermediate neural network. The candidate neural network may include a second image coding model and the second image decoding model, and the model parameters of the second image coding model are the same as the model parameters of the first image coding model in the intermediate neural network (for example, the second image coding model can be constructed based on the model parameters of the first image coding model in the intermediate neural network, or the first image coding model in the intermediate neural network can be directly used as the second image coding model. In this way, the first image coding model that already has the function of recognizing panel edge features can be directly used, so that in the subsequent network optimization process, on the one hand, the efficiency of network optimization can be accelerated, and on the other hand, fewer second sample panel images can be used, so that the workload of image annotation can be reduced). Exemplarily, the second image decoding model may also include multiple upsampling layers and multiple convolutional layers, and the multiple upsampling layers and the multiple convolutional layers may be alternately distributed (as described above). In addition, in the second image decoding model, an output layer may be connected after the last convolutional layer, and the output layer may include a convolution kernel and activation functions such as sigmoid, so that the edge probability value (such as a probability value of 0-1) of each pixel in the corresponding image can be generated through the output layer, and then the pixel whose edge probability value exceeds the preset probability value can be used as the edge of the corresponding panel. Exemplarily, the specific value of the preset probability value can be configured according to actual needs, such as 0.6, 0.7, etc.

[0099] Step S114, obtaining the second sample panel image and the image label information corresponding to the second sample panel image.

[0100] In an embodiment of the present application, after the candidate neural network is constructed, the second sample panel image and the image label information corresponding to the second sample panel image can be obtained, wherein the image label information is used to identify the panel edge in the second sample panel image, such as marking the pixel points belonging to the edge in the second sample panel image. Exemplarily, the step of obtaining the second sample panel image and the image label information corresponding to the second sample panel image can also be performed before constructing the candidate neural network, or in parallel with the step of constructing the candidate neural network. The specific execution order can be selected according to actual needs. In addition, the specific number of the second sample panel images is not limited. In order to ensure that the candidate neural network can be reliably supervised for network optimization, the second sample panel images can also be multiple.

[0101] Step S115, based on the second sample panel image and the image label information corresponding to the second sample panel image, the candidate neural network is subjected to supervised network optimization processing to obtain a target neural network corresponding to the candidate neural network.

[0102] In an embodiment of the present application, after obtaining the second sample panel image and the image label information corresponding to the second sample panel image, the candidate neural network can be subjected to supervised network optimization processing based on the second sample panel image and the image label information corresponding to the second sample panel image to obtain a target neural network corresponding to the candidate neural network. Wherein, in the process of performing the supervised network optimization processing, the basis of the network optimization processing at least includes the error between the image label information and the sample edge recognition result output by the second image decoding model. Exemplarily, the error between the image label information and the sample edge recognition result output by the second image decoding model can be calculated first, and then the network parameters of the candidate neural network can be updated and optimized in the direction of reducing the error.

[0103] Step S116, using the target neural network, performing edge recognition processing on the acquired panel image to be identified, and obtaining an edge recognition result corresponding to the panel image to be identified.

[0104] In an embodiment of the present application, after obtaining the target neural network, the target neural network can be used to perform edge recognition processing on the acquired panel image to be identified to obtain an edge recognition result corresponding to the panel image to be identified. Exemplarily, the edge recognition result can reflect each pixel point belonging to the panel edge in the panel image to be identified.

[0105] It can be understood that in the above step S112, the specific method of performing unsupervised network optimization processing on the initial neural network is not limited and can be selected according to actual needs.

[0106] For example, in an alternative embodiment, in order to ensure the reliability of the network optimization processing of the initial neural network, the above-mentioned step S112 may further include step S112a, step S112b, step S112c, step S112d, step S112e and step S112f, and the specific content of each step is described as follows.

[0107] Step S112a, performing segmentation and serialization processing on the first sample panel image to obtain a sample image segmentation sequence corresponding to the first sample panel image.

[0108] In an embodiment of the present application, after acquiring the first sample panel image, the first sample panel image may be segmented and serialized, so that a sample image segmentation sequence corresponding to the first sample panel image may be obtained. The sample image segmentation sequence includes a plurality of local sample panel images arranged in sequence, the arrangement relationship between the plurality of local sample panel images is related to the positional relationship of the plurality of local sample panel images in the first sample panel image, and the image sizes of every two of the plurality of local sample panel images are consistent. That is to say, the first sample panel image can be segmented first (such as sliding window segmentation, the specific window size can be configured according to actual needs, such as 2*2, 3*3, *9*9, 16*16, etc.), so that the corresponding multiple local sample panel images can be obtained, such as local sample panel image 1, local sample panel image 2, local sample panel image 3 and local sample panel image 4, etc., and then, based on the relationship between the multiple local sample panel images (such as the order of the sliding window, etc.), the multiple local sample panel images can be sorted to achieve serialization, so that a sample image segmentation sequence can be obtained. For example, in the sample image segmentation sequence, the local sample panel image 1, the local sample panel image 2, the local sample panel image 3, the local sample panel image 4, etc. can be obtained in sequence.

[0109] Step S112b, utilizing the first image coding model included in the initial neural network and mining candidate overall image coding features of the first sample panel image based on the sample image segmentation sequence.

[0110] In an embodiment of the present application, after obtaining the sample image segmentation sequence, the first image coding model included in the initial neural network can be used to mine candidate overall image coding features of the first sample panel image based on the sample image segmentation sequence. In other words, the first image coding model can be used to perform global or overall feature mining (coding) on ​​the sample image segmentation sequence, so that the candidate overall image coding features of the first sample panel image can be obtained, so that the candidate overall image coding features can be used to reflect the overall semantic information or global semantic information of the first sample panel image. Exemplarily, the expression form of the candidate overall image coding features can be a vector, and in an embodiment of the present application, the forms of various other coding features can also be vectors.

[0111] Step S112c: determining a first sample image segmentation sequence and a second sample image segmentation sequence in the sample image segmentation sequence.

[0112] In an embodiment of the present application, after obtaining the sample image segmentation sequence, a first sample image segmentation sequence and a second sample image segmentation sequence can be further determined from the sample image segmentation sequence. Wherein, the first sample image segmentation sequence and the second sample image segmentation sequence both belong to subsequences in the sample image segmentation sequence, and there is a correlation between the first sample image segmentation sequence and the second sample image segmentation sequence. Exemplarily, the sample image segmentation sequence can include local sample panel image 1, local sample panel image 2, local sample panel image 3, ..., local sample panel image 99, and local sample panel image 100 in sequence. In this way, the local sample panel image 1, the local sample panel image 2, the local sample panel image 3, ..., and the local sample panel image 99 can be used as the first sample image segmentation sequence, and the local sample panel image 100 can be used as the second sample image segmentation sequence.

[0113] Step S112d, utilizing the first image encoding model and the first image decoding model included in the initial neural network, based on the first sample image segmentation sequence and the candidate overall image encoding features, decoding to obtain a decoded sample image segmentation sequence corresponding to the first sample image segmentation sequence.

[0114] In an embodiment of the present application, after determining the first sample image segmentation sequence and the second sample image segmentation sequence, the first image encoding model and the first image decoding model included in the initial neural network can be used to decode the first sample image segmentation sequence and the candidate overall image coding features to obtain a decoded sample image segmentation sequence corresponding to the first sample image segmentation sequence. Wherein, the decoding object of the first image decoding model includes the candidate overall image coding features and the encoding result of the first image encoding model on the first sample image segmentation sequence, and the decoded sample image segmentation sequence belongs to the restoration result of decoding the second sample image segmentation sequence based on the first sample image segmentation sequence. That is to say, the first image coding model can be used to perform feature mining (encoding) on ​​the first sample image segmentation sequence to obtain a corresponding encoding result (such as encoding feature), and then the encoding result and the candidate overall image coding feature can be fused (such as fusion based on an attention mechanism, or splicing, etc.) to obtain a corresponding fusion feature, and then the first image decoding model can be used to decode (predict) the fusion feature, so that the decoded sample image segmentation sequence corresponding to the first sample image segmentation sequence can be obtained, so that the related second sample image segmentation sequence can be predicted based on the first sample image segmentation sequence. In this way, by integrating the candidate overall image coding features during the prediction process, and the candidate overall image coding features have global semantic information, the prediction accuracy can be higher.

[0115] Step S112e, based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, the candidate overall image coding feature is updated, and the updated candidate overall image coding feature is marked as the corresponding target overall image coding feature.

[0116] In an embodiment of the present application, after obtaining the decoded sample image segmentation sequence, the candidate overall image coding feature can be updated based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, and the updated candidate overall image coding feature can be marked as the corresponding target overall image coding feature. Exemplarily, the candidate overall image coding feature can be updated based on the error between the decoded sample image segmentation sequence and the second sample image segmentation sequence (i.e., the error between the prediction and the actual), so that the global semantic information represented by the target overall image coding feature can be more accurate and reliable.

[0117] Step S112f, utilizing the first image decoding model included in the initial neural network, decoding the target overall image coding features to obtain a decoded sample panel image corresponding to the first sample panel image, and based on the first sample panel image and the decoded sample panel image, performing error calculation on the initial neural network to obtain a corresponding target decoding error, and updating and optimizing the network parameters of the initial neural network in a direction of reducing the target decoding error to obtain an intermediate neural network corresponding to the initial neural network.

[0118] In an embodiment of the present application, after obtaining the target overall image coding feature, the first image decoding model included in the initial neural network can be used to decode the target overall image coding feature to obtain a decoded sample panel image corresponding to the first sample panel image, and then, based on the first sample panel image and the decoded sample panel image, the initial neural network can be error calculated to obtain the corresponding target decoding error (i.e., the error between the actual and the predicted), and the network parameters of the initial neural network can be updated and optimized in the direction of reducing the target decoding error to obtain the intermediate neural network corresponding to the initial neural network. That is, the output layer in the first image decoding model can have at least two branches, such as a first branch and a second branch, wherein the first branch can be used to decode (predict) the fusion feature, so that the decoded sample image segmentation sequence corresponding to the first sample image segmentation sequence can be obtained. The second branch can be used to decode the target overall image coding feature to obtain a decoded sample panel image corresponding to the first sample panel image.

[0119] Optionally, in the above step S112b, the specific method of mining the candidate overall image coding features of the first sample panel image is not limited and can be selected according to needs.

[0120] For example, in an alternative embodiment, in order to enable the candidate overall image coding features to fully characterize the semantic information in the first sample panel image, the above-mentioned step S112b may further include step b1, step b2 and step b3, and the specific content of each step is as follows.

[0121] Step b1, for each local sample panel image in the sample image segmentation sequence, use the first image coding model included in the initial neural network to encode the local sample panel image to obtain the local image coding features corresponding to the local sample panel image.

[0122] In an embodiment of the present application, after obtaining the sample image segmentation sequence, for each local sample panel image in the sample image segmentation sequence, the first image encoding model included in the initial neural network can be used to perform encoding processing on the local sample panel image (including convolution and pooling as described above, etc., to achieve corresponding feature mining), and obtain the local image encoding features corresponding to the local sample panel image. The local image encoding features can be used to reflect the local semantic information of the local sample panel image.

[0123] Step b2, performing feature compression processing on the local image coding features corresponding to each of the local sample panel images, to obtain compressed image coding features corresponding to each of the local image coding features.

[0124] In an embodiment of the present application, after obtaining the local image coding features corresponding to each of the local sample panel images, feature compression processing can be performed on the local image coding features corresponding to each of the local sample panel images to obtain compressed image coding features corresponding to each of the local image coding features. Wherein, the feature size between each two of the compressed image coding features is consistent, and each of the compressed image coding features includes at least one feature parameter. Exemplarily, feature compression processing can be performed on the local image coding features corresponding to the local sample panel image 1 to obtain the corresponding compressed image coding feature 1, feature compression processing can be performed on the local image coding features corresponding to the local sample panel image 2 to obtain the corresponding compressed image coding feature 2, and feature compression processing can be performed on the local image coding features corresponding to the local sample panel image 3 to obtain the corresponding compressed image coding feature 3. In addition, the manner of feature compression processing of the local image coding features corresponding to each local sample panel image can be consistent, so that the focus can be consistent. Based on this, by performing feature compression processing on the local image coding features, the feature size of the compressed image coding features can be made smaller, and the amount of data and complexity of subsequent processing can be reduced while ensuring that the local significant features of the local sample panel image are retained.

[0125] Step b3: Combining and processing the compressed image coding features corresponding to each of the local image coding features to form a candidate overall image coding feature of the first sample panel image.

[0126] In an embodiment of the present application, after obtaining the compressed image coding feature corresponding to each of the local image coding features, the compressed image coding features corresponding to each of the local image coding features can be combined to form a candidate overall image coding feature of the first sample panel image. Exemplarily, in an alternative embodiment, the compressed image coding features corresponding to each of the local image coding features can be directly spliced ​​to obtain a candidate overall image coding feature of the first sample panel image, such as {compressed image coding feature 1, compressed image coding feature 2, compressed image coding feature 3, ..., compressed image coding feature n}. In another alternative embodiment, for each of the compressed image coding features, based on the relevant compressed image coding features (such as the compressed image coding feature corresponding to a local sample panel image adjacent to the local sample panel image corresponding to the compressed image coding feature in the sample image segmentation sequence), the compressed image coding feature can be subjected to attention processing to obtain the attention feature corresponding to the compressed image coding feature, and then the attention features are fused (such as splicing processing) to obtain the candidate overall image coding feature.

[0127] It should be further explained that, in the above-mentioned implementation manner, the specific method of performing feature compression processing on the local image coding features can be selected according to actual needs.

[0128] For example, in an alternative implementation, the local image coding features may be processed by mean pooling or the like to obtain corresponding compressed image coding features.

[0129] For example, in another alternative implementation, in order to ensure that the obtained compressed image coding features can effectively reflect the significant features of the local image coding features, the above step b2 may further include the following specific implementation contents:

[0130] First, for each local sample panel image in the sample image segmentation sequence, a feature screening process may be performed on the local image coding feature corresponding to the local sample panel image to screen out a feature parameter having a maximum value in the local image coding feature;

[0131] Secondly, based on a feature parameter with a maximum value in each of the local image coding features, a compressed image coding feature corresponding to each of the local image coding features is constructed; illustratively, for each of the local image coding features, a feature parameter with a maximum value in the local image coding feature can be used as the corresponding compressed image coding feature.

[0132] Optionally, in the above step S112e, the specific method of updating the candidate overall image coding features is not limited and can be selected according to actual needs.

[0133] For example, in an alternative embodiment, in order to make the updated candidate overall image coding features have better representation capabilities for the image information in the first sample panel image, the above-mentioned step S112e may further include step e1, step e2, step e3 and step e4, and the specific contents of each step are described as follows.

[0134] Step e1, based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, performing error calculation on the initial neural network to obtain a corresponding local decoding error.

[0135] In an embodiment of the present application, the initial neural network can first be subjected to error calculation based on the decoded sample image segmentation sequence and the second sample image segmentation sequence to obtain a corresponding local decoding error (which can also be understood as a prediction error). The local decoding error can be used to reflect the difference between the decoded sample image sequence and the second sample image segmentation sequence.

[0136] Step e2, updating and optimizing the network parameters of the initial neural network in the direction of reducing the local decoding error, to obtain a pending neural network corresponding to the initial neural network.

[0137] In an embodiment of the present application, after obtaining the local decoding error, the network parameters of the initial neural network can be updated and optimized in the direction of reducing the local decoding error until the local decoding error converges or the number of updates and optimizations is greater than a preset number, thereby obtaining a pending neural network corresponding to the initial neural network.

[0138] Step e3, using the first image coding model included in the undetermined neural network, based on the sample image segmentation sequence, to mine new candidate overall image coding features of the first sample panel image.

[0139] In the embodiment of the present application, after obtaining the proposed neural network, the first image coding model in the proposed neural network can be used to mine new candidate overall image coding features of the first sample panel image based on the sample image segmentation sequence. In other words, the updated first image coding model can be used to perform feature mining on the sample image segmentation sequence again, thereby obtaining new candidate overall image coding features.

[0140] Step e4: based on the new candidate overall image coding feature, update the candidate overall image coding feature, and mark the updated candidate overall image coding feature to form a corresponding target overall image coding feature.

[0141] In an embodiment of the present application, after the new candidate overall image coding feature is mined, the candidate overall image coding feature can be updated based on the new candidate overall image coding feature, and the updated candidate overall image coding feature can be marked to form a corresponding target overall image coding feature. Exemplarily, the new candidate overall image coding feature can be directly used as the target overall image coding feature, or the new candidate overall image coding feature and the candidate overall image coding feature can be superimposed or weighted superimposed to obtain the target overall image coding feature.

[0142] It is understandable that, in the above-mentioned step S115, the specific method of performing supervised network optimization processing on the candidate neural network is not limited and can be selected according to actual needs.

[0143] For example, in an alternative embodiment, in order to enable the target neural network to have better information capture capabilities (such as the mined features can have better representation capabilities), the above-mentioned step S115 may further include step S115a, step S115b, step S115c and step S115d, and the specific contents of each step are described as follows.

[0144] Step S115a, segmenting and serializing the second sample panel image to obtain a segmentation sequence of the image to be mined corresponding to the second sample panel image.

[0145] In an embodiment of the present application, after acquiring the second sample panel image, the second sample panel image can be segmented and serialized to obtain a segmentation sequence of images to be mined corresponding to the second sample panel image. The segmentation sequence of images to be mined includes a plurality of local panel images to be mined arranged in order, the arrangement relationship between the plurality of local panel images to be mined is related to the positional relationship of the plurality of local panel images to be mined in the second sample panel image, and the image sizes between each two of the plurality of local panel images to be mined are consistent. Exemplarily, the segmentation sequence of images to be mined can refer to the description of the segmentation sequence of sample images.

[0146] Step S115b, utilizing the second image coding model included in the candidate neural network and mining the overall image coding features of the second sample panel image based on the image segmentation sequence to be mined.

[0147] In an embodiment of the present application, after obtaining the image segmentation sequence to be mined, the second image coding model included in the candidate neural network can be used to mine the overall image coding features of the second sample panel image based on the image segmentation sequence to be mined. For the specific processing process, reference can be made to the explanation of using the first image coding model to mine the sample image segmentation sequence to obtain the candidate overall image coding features of the first sample panel image in the previous text.

[0148] Step S115c, using the second image decoding model included in the candidate neural network, decodes the overall image coding features of the second sample panel image to obtain a decoded and annotated sample panel image corresponding to the second sample panel image.

[0149] In an embodiment of the present application, after obtaining the overall image coding feature, the overall image coding feature of the second sample panel image can be decoded using the second image decoding model included in the candidate neural network to obtain a decoded and annotated sample panel image corresponding to the second sample panel image. The decoded and annotated sample panel image contains the corresponding panel edge annotation information. Exemplarily, by performing a decoding process, the probability value of each pixel in the second sample panel image belonging to the panel edge can be obtained. For example, {(100, 150, 0.1), (101, 150, 0.3), (102, 150, 0.6), (103, 150, 0.7), (104, 150, 0.1), (105, 150, 0.2), (106, 150, 0.3), ...}, wherein, in each set of parameters, the first two parameters can represent the coordinates of the pixel points, and the latter parameter can represent the probability value.

[0150] Step S115d, based on the annotation information of the corresponding panel edge in the decoded annotated sample panel image and the image label information corresponding to the second sample panel image, determine the edge recognition error of the candidate neural network, and update and optimize the network parameters of the candidate neural network in the direction of reducing the edge recognition error to obtain the corresponding target neural network.

[0151] In an embodiment of the present application, after obtaining the decoded and annotated sample panel image, the edge recognition error of the candidate neural network can be determined based on the annotation information of the corresponding panel edge in the decoded and annotated sample panel image and the image label information corresponding to the second sample panel image (exemplarily, the edge recognition error can be determined based on the cross entropy loss function), and the network parameters of the candidate neural network are updated and optimized in the direction of reducing the edge recognition error to obtain the corresponding target neural network.

[0152] It should be noted that, in the above-mentioned implementation, when the network optimization process is performed based on the error, the parameters of the network can be adjusted in the direction of reducing the error until the error is reduced to the target error, the error reduction amplitude is less than the target amplitude, or the number of network optimization processes is greater than the preset number of times, etc. In addition, in the above-mentioned implementation, the specific method of calculating the error is not limited and can be selected according to actual needs, such as Mean Squared Error (MSE), etc.

[0153] Secondly, it should be noted that for step S120, the specific method of determining the edge straight line of the panel image to be identified is not limited and can be selected according to actual needs.

[0154] For example, in an alternative embodiment, the edge recognition result includes each pixel point belonging to the edge of the panel. In this way, a straight line fitting process can be directly performed on each pixel point belonging to the edge of the panel to obtain the edge straight line determination result of the target panel in the panel image to be identified, that is, the fitted straight line (line segment) is obtained.

[0155] For another example, in another alternative implementation, in order to ensure the reliability of the edge line determination result, the above-mentioned step S120 may further include step S121, step S122 and step S123, and the specific content of each step is described as follows.

[0156] Step S121 : in the panel image to be identified, scanning is performed on the edge line of the target panel reflected by the edge identification result to obtain at least one scanning result corresponding to the edge identification result.

[0157] In an embodiment of the present application, after obtaining the edge recognition result, the edge line of the target panel reflected by the edge recognition result can be scanned in the panel image to be recognized to obtain at least one scanning result corresponding to the edge recognition result. Each of the scanning results is used to reflect the pixel point scanned on the edge line. Exemplarily, any one of the at least one scanning result can be used to reflect an edge line.

[0158] Step S122, for each of the scanning results, based on the scanned pixel points on the edge line reflected by the scanning result, edge straight line determination processing is performed on the panel image to be identified, so as to obtain a local edge straight line determination result of the target panel in the panel image to be identified.

[0159] In an embodiment of the present application, after obtaining the at least one scanning result, for each of the scanning results, based on the scanned pixel points on the edge line reflected by the scanning result, the edge straight line determination processing can be performed on the panel image to be identified, and the edge straight line local determination result of the target panel in the panel image to be identified can be obtained. The edge straight line local determination result is used to reflect the edge straight line determined based on the corresponding scanning result. Exemplarily, the pixel points scanned on the edge line reflected by the scanning result can be subjected to straight line fitting processing to obtain the corresponding edge straight line local determination result.

[0160] Step S123 , based on the local edge straight line determination result corresponding to each of the scanning results, determine the edge straight line determination result of the target panel in the panel image to be identified.

[0161] In the embodiment of the present application, after obtaining the edge line local determination result corresponding to each of the scanning results, each of the edge line local determination results can be respectively regarded as an edge line determination result, so that at least one edge line determination result can also be obtained. Figure 3 As shown, an exemplary panel without defects may have 8 edge lines, and accordingly, 8 edge straight line determination results may be obtained, wherein the fifth edge line, the sixth edge line, the seventh edge line and the eighth edge line may also be curves (such as edge chamfers).

[0162] It can be understood that, in the above step S121, the specific method of scanning and processing the edge line of the target panel reflected by the edge recognition result is not limited and can be selected according to requirements.

[0163] Exemplarily, in an alternative embodiment, in order to enable the at least one scanning result to fully reflect the distribution of the panel edge in the panel image to be identified, the above-mentioned step S121 may further include step S121a, step S121b, step S121c and step S121d, and the specific content of each step is described as follows.

[0164] Step S121a, in the panel image to be identified, scanning processing is performed along the column direction of pixel distribution to determine the first intersection pixel point between each column scan line and the edge line of the target panel reflected by the edge recognition result, and based on the first intersection pixel point corresponding to each column scan line, a set of intersection pixel points corresponding to the column direction is formed.

[0165] In the embodiment of the present application, after the edge recognition result is obtained, scanning processing can be performed along the column direction of pixel distribution in the panel image to be recognized (such as Figure 4As shown in FIG. 1 ), determine the first intersection pixel point between each column scan line and the edge line of the target panel reflected by the edge recognition result, and, based on the first intersection pixel point corresponding to each column scan line, form a set of intersection pixel points corresponding to the column direction. For example, Figure 3 As shown, for the first edge line, the fifth edge line and the eighth edge line, a corresponding set of cross pixel points can be obtained, and for the third edge line, the sixth edge line and the seventh edge line, a corresponding set of cross pixel points can be obtained.

[0166] Step S121b, in the panel image to be identified, scanning processing is performed along the row direction of pixel distribution to determine the first intersection pixel point between each row scan line and the edge line of the target panel reflected by the edge recognition result, and based on the first intersection pixel point corresponding to each row scan line, a set of intersection pixel points corresponding to the row direction is formed.

[0167] In the embodiment of the present application, after the edge recognition result is obtained, scanning processing can be performed along the row direction of pixel distribution in the panel image to be recognized (such as Figure 4 As shown in FIG. 1 ), determine the first intersection pixel point between each row scan line and the edge line of the target panel reflected by the edge recognition result, and, based on the first intersection pixel point corresponding to each row scan line, form a set of intersection pixel points corresponding to the row direction. For example, Figure 3 As shown, for the second edge line, the fifth edge line and the sixth edge line, a corresponding set of cross pixel points can be obtained, and for the fourth edge line, the seventh edge line and the eighth edge line, a corresponding set of cross pixel points can be obtained.

[0168] Step S121c: determine the intersection between the cross pixel point set corresponding to the column direction and the cross pixel point set corresponding to the row direction to obtain the cross pixel point intersection.

[0169] In the embodiment of the present application, after obtaining the cross pixel point set corresponding to the column direction and the cross pixel point set corresponding to the row direction, the intersection between the cross pixel point set corresponding to the column direction and the cross pixel point set corresponding to the row direction can be further determined to obtain the cross pixel point intersection. For example, further combined with Figure 3As shown, the intersection between a set of cross-pixel points corresponding to the first edge line, the fifth edge line and the eighth edge line and a set of cross-pixel points corresponding to the second edge line, the fifth edge line and the sixth edge line actually refers to the intersection of cross-pixel points corresponding to the fifth edge line; for another example, the intersection between a set of cross-pixel points corresponding to the first edge line, the fifth edge line and the eighth edge line and a set of cross-pixel points corresponding to the fourth edge line, the seventh edge line and the eighth edge line actually refers to the intersection of cross-pixel points corresponding to the eighth edge line; for another example, the intersection between a set of cross-pixel points corresponding to the third edge line, the sixth edge line and the seventh edge line and a set of cross-pixel points corresponding to the fourth edge line, the seventh edge line and the eighth edge line actually refers to the intersection of cross-pixel points corresponding to the seventh edge line; for another example, the intersection between a set of cross-pixel points corresponding to the third edge line, the sixth edge line and the seventh edge line and a set of cross-pixel points corresponding to the second edge line, the fifth edge line and the sixth edge line actually refers to the intersection of cross-pixel points corresponding to the sixth edge line.

[0170] Step S121d, respectively determine the intersection of the cross-pixel points, other cross-pixel points other than the intersection of the cross-pixel points in the cross-pixel point set corresponding to the column direction, and other cross-pixel points other than the intersection of the cross-pixel points in the cross-pixel point set corresponding to the row direction as scanning results corresponding to the edge recognition result, so as to obtain at least three corresponding scanning results.

[0171] In an embodiment of the present application, after obtaining the intersection of the cross-pixel points, the intersection of the cross-pixel points, other cross-pixel points other than the intersection of the cross-pixel points in the cross-pixel point set corresponding to the column direction, and other cross-pixel points other than the intersection of the cross-pixel points in the cross-pixel point set corresponding to the row direction are respectively determined as scanning results corresponding to the edge recognition result to obtain at least three corresponding scanning results, for example, the scanning result corresponding to the first edge line, the scanning result corresponding to the second edge line, the scanning result corresponding to the third edge line, the scanning result corresponding to the fourth edge line, the scanning result corresponding to the fifth edge line, the scanning result corresponding to the sixth edge line, the scanning result corresponding to the seventh edge line, and the scanning result corresponding to the eighth edge line. In this way, eight scanning results can be obtained for eight edge lines.

[0172] It can be understood that, in the above step S122, the specific method for determining the edge straight line of the panel image to be identified is selected according to actual needs.

[0173] For example, in an alternative implementation, in order to ensure the reliability of the obtained local determination result of the edge line, the above-mentioned step S122 may further include step S122a and step S122b, and the specific content of each step is described as follows.

[0174] Step S122a: for each of the scanning results, perform outlier point screening processing on the scanned pixel points on the edge line reflected by the scanning result to obtain a target pixel point set corresponding to the scanning result.

[0175] In the embodiment of the present application, for each of the scanning results, the pixels scanned on the edge line reflected by the scanning result are subjected to abnormal point screening to obtain a target pixel point set corresponding to the scanning result. Exemplarily, some relatively remote pixels can be screened out. For example, for each pixel, the minimum distance between the pixel and other pixels can be calculated, and then, when the minimum distance is greater than a preset distance, the pixel can be screened out. It should be noted that in other implementations, remote pixel points can also be determined based on other methods and then screened out. In the embodiment of the present application, no specific limitation is made.

[0176] Step S122b, performing straight line fitting processing on each pixel point in the target pixel point set corresponding to each of the scanning results, to obtain a local determination result of each edge straight line of the target panel in the panel image to be identified.

[0177] In the embodiment of the present application, after obtaining the target pixel point set corresponding to each of the scanning results, a straight line fitting process can be performed on the pixel points in the target pixel point set corresponding to each of the scanning results (the specific method of the straight line fitting process can refer to the relevant prior art and is not specifically limited here), to obtain each edge straight line local determination result of the target panel in the panel image to be identified. There is a one-to-one correspondence between the edge straight line local determination result, the scanning result and the target pixel point set, and each edge straight line local determination result is used to reflect a fitted edge straight line. Figure 3 As shown, there are eight edge lines, and there may be eight scanning results, corresponding to eight edge straight line local determination results.

[0178] Thirdly, it should be noted that for step S130, the specific method of analyzing the defect recognition result of the target panel based on the edge straight line determination result is not limited and can be selected according to actual needs.

[0179] For example, in an alternative implementation, the edge straight line determination result and the edge recognition result may be directly compared and analyzed to determine a corresponding defect recognition result, such as whether the edge has defects such as protrusions or depressions.

[0180] For another example, in another alternative implementation, in order to make the defect identification result have higher reliability, the above-mentioned step S130 may further include step S131 and step S132, and the specific content of each step is described as follows.

[0181] Step S131, for each edge straight line determination result belonging to the target type, compare and analyze the edge straight line determination result with the edge recognition sub-result corresponding to the edge straight line determination result included in the edge recognition result to obtain the defect recognition sub-result corresponding to the edge straight line determination result.

[0182] In an embodiment of the present application, after obtaining the edge line determination result, the edge line determination result can also be classified and processed. For example, for each edge line determination result belonging to the target type, the edge line determination result can be compared and analyzed with the edge recognition sub-result corresponding to the edge line determination result included in the edge recognition result to obtain the defect recognition sub-result corresponding to the edge line determination result. Among them, the edge recognition result includes at least one edge recognition sub-result, and any one of the edge recognition sub-results is used to reflect an edge distribution of the target panel in the panel image to be identified. The edge line reflected by each edge line determination result belonging to the target type is distributed along the row direction or the column direction in the panel image to be identified. For example, Figure 3 As shown, each edge straight line determination result belonging to the target type may refer to an edge straight line determination result corresponding to the first edge line, an edge straight line determination result corresponding to the second edge line, an edge straight line determination result corresponding to the third edge line, and an edge straight line determination result corresponding to the fourth edge line. In this way, the edge straight line determination result corresponding to the first edge line may be compared and analyzed with the edge recognition sub-result to determine whether there are defects such as protrusions or depressions on the first edge line (for example, as long as there are pixel points in the edge recognition sub-result that are not on the straight line corresponding to the edge straight line determination result, it can be considered that there are defects such as protrusions or depressions, or, when there are pixel points in the edge recognition sub-result whose distance from the straight line corresponding to the straight line determination result is greater than a reference distance, it is considered that there are defects such as protrusions or depressions, and the reference distance can be configured according to actual needs). For details, please refer to Figure 5 shown.

[0183] Step S132, for each edge straight line determination result that does not belong to the target type, determine the size information of the edge straight line reflected by the edge straight line determination result, and analyze the defect recognition result of the target panel based on the size information.

[0184] In the embodiment of the present application, for each edge line determination result that does not belong to the target type, the size information of the edge line reflected by the edge line determination result can be determined, and based on the size information, the defect recognition result of the target panel can be analyzed. Figure 3 As shown, each edge straight line determination result that does not belong to the target type may refer to the edge straight line determination result corresponding to the fifth edge line, the edge straight line determination result corresponding to the sixth edge line, the edge straight line determination result corresponding to the seventh edge line, and the edge straight line determination result corresponding to the eighth edge line. Considering that generally speaking, the fifth edge line, the sixth edge line, the seventh edge line and the eighth edge line are generally shorter (such as edge chamfers, etc.), therefore, protruding or recessed defects are generally not easy to occur or are difficult to effectively identify. Therefore, a comparative analysis of size information can be performed to determine whether there are corresponding defects.

[0185] It can be understood that, in the above step S132, the specific method of analyzing the defect recognition result of the target panel based on the size information is not limited and can be selected according to needs.

[0186] Exemplarily, in an alternative embodiment, in order to ensure reliable defect identification based on the determination result of each edge straight line that does not belong to the target type, the above-mentioned step S132 may further include step S132a, step S132b and step S132c, and the specific content of each step is described as follows.

[0187] Step S132a: for each edge straight line determination result that does not belong to the target type, determine the size information of the edge straight line reflected by the edge straight line determination result.

[0188] In an embodiment of the present application, for each edge straight line determination result that does not belong to the target type, the size information of the edge straight line reflected by the edge straight line determination result can be determined, such as the length information in the row direction of the pixel distribution, the length information in the column direction of the pixel distribution, etc., or, it can also refer to the length information of the edge straight line (line segment).

[0189] Step S132b, respectively matching the size information corresponding to each edge straight line determination result with the reference size information pre-configured for the size information to obtain corresponding matching data.

[0190] In the embodiment of the present application, after determining the size information of the edge straight line, the size information corresponding to each edge straight line determination result and the reference size information pre-configured for the size information can be matched to obtain corresponding matching data. Exemplarily, the reference size information can be a size interval, such as a size interval in the row direction and a size interval in the column direction. In this way, it can be determined whether the length information in the row direction of the size information corresponding to the edge straight line determination result belongs to the size interval in the row direction and whether the length information in the column direction belongs to the size interval in the column direction, that is, to obtain corresponding matching data.

[0191] Step S132c, for each edge straight line determination result that does not belong to the target type, if the matching data corresponding to the edge straight line determination result reflects that the size information does not match the reference size information, then a defect identification result corresponding to the edge straight line determination result is generated to reflect that there are defects in the target panel; if the matching data corresponding to the edge straight line determination result reflects that the size information matches the reference size information, then a defect identification result corresponding to the edge straight line determination result is generated to reflect that there are no defects in the target panel.

[0192] In the embodiment of the present application, after the matched data is obtained, for each edge straight line determination result that does not belong to the target type, on the one hand, if the matching data corresponding to the edge straight line determination result reflects that the size information does not match the reference size information, then a defect recognition result corresponding to the edge straight line determination result is generated to reflect that the target panel has a defect; on the other hand, if the matching data corresponding to the edge straight line determination result reflects that the size information matches the reference size information, then a defect recognition result corresponding to the edge straight line determination result is generated to reflect that the target panel does not have a defect. For example, as long as the length information in the row direction in the size information corresponding to the edge straight line determination result does not belong to the size interval in the row direction or the length information in the column direction does not belong to the size interval in the column direction, a defect recognition result corresponding to the edge straight line determination result can be generated to reflect that the target panel does not have a defect.

[0193] Combination Figure 6 The embodiment of the present application also provides a panel edge recognition device applicable to the above electronic device. The panel edge recognition device may include an edge recognition module, an edge straight line determination module and a defect recognition module.

[0194] In detail, the edge recognition module can be used to use the target neural network formed by network optimization to perform edge recognition processing on the acquired panel image to be recognized, and obtain the edge recognition result corresponding to the panel image to be recognized, wherein the panel image to be recognized is formed by image acquisition of the target panel, and the edge recognition result is used to reflect the edge distribution of the target panel in the panel image to be recognized. In the embodiment of the present application, the edge recognition module can be used to perform Figure 2 As shown in step S110, the relevant contents of the edge identification module can refer to the above description of step S110.

[0195] In detail, the edge straight line determination module can be used to perform edge straight line determination processing on the panel image to be identified based on the edge recognition result, and obtain the edge straight line determination result of the target panel in the panel image to be identified. Figure 2 As shown in step S120, the relevant contents of the edge straight line determination module can refer to the above description of step S120.

[0196] In detail, the defect recognition module can be used to analyze the defect recognition result of the target panel based on the edge straight line determination result, wherein the defect recognition result is used to reflect whether there is a defect at the edge of the target panel. In the embodiment of the present application, the defect recognition module can be used to perform Figure 2 As shown in step S130, the relevant contents of the defect identification module can refer to the above description of step S130.

[0197] In an embodiment of the present application, corresponding to the above-mentioned panel edge recognition method applied to the electronic device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the panel edge recognition method is executed.

[0198] The steps executed when the aforementioned computer program is running will not be described one by one here, and reference may be made to the explanation of the panel edge recognition method in the previous text.

[0199] In summary, the panel edge recognition method and device, electronic device and storage medium provided by the present application can firstly use the target neural network formed by network optimization to perform edge recognition processing on the acquired panel image to be recognized, and obtain the edge recognition result corresponding to the panel image to be recognized; secondly, the edge straight line determination processing can be performed on the panel image to be recognized based on the edge recognition result, and the edge straight line determination result of the target panel in the panel image to be recognized can be obtained; then, the defect recognition result of the target panel can be analyzed based on the edge straight line determination result. Based on the above content, since neural networks generally have better generalization ability (such as for the differences between different panel images caused by factors such as illumination and defects, it can have better recognition performance), so, first using the target neural network to perform edge recognition processing on the panel image to be recognized can make the reliability of the edge recognition result relatively higher. In addition, compared with the solution of directly using neural networks to identify edge defects, since in the present application, the target neural network does not need to pay attention to edge defects, but can focus on identifying edges, so that the reliability of the edge recognition result can also be higher, so that the reliability of subsequent defect analysis based on edge recognition results with higher reliability can also be higher. Therefore, the problem of relatively low reliability of panel edge recognition in the prior art can be effectively improved. In addition, by using technical means such as edge straight line determination processing after edge recognition processing based on neural networks, the final defect recognition result (compared with the solution of directly using neural networks for defect recognition) can also be made more interpretable.

[0200] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0201] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0202] If the function is implemented in the form of a software function module 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 the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, electronic device, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0203] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A panel edge recognition method, characterized in that: include: Using the target neural network formed by network optimization, edge recognition processing is performed on the acquired panel image to be identified, so as to obtain an edge recognition result corresponding to the panel image to be identified, wherein the panel image to be identified is formed by performing image acquisition on the target panel, and the edge recognition result is used to reflect the edge distribution of the target panel in the panel image to be identified; Based on the edge recognition result, edge straight line determination processing is performed on the panel image to be identified to obtain an edge straight line determination result of the target panel in the panel image to be identified; Analyzing a defect recognition result of the target panel based on the edge straight line determination result, wherein the defect recognition result is used to reflect whether there is a defect at the edge of the target panel; Wherein, the step of performing edge straight line determination processing on the panel image to be identified based on the edge recognition result to obtain the edge straight line determination result of the target panel in the panel image to be identified includes: Performing straight line fitting processing on each pixel point belonging to the edge of the panel to obtain an edge straight line determination result of the target panel in the panel image to be identified, wherein the edge identification result includes each pixel point belonging to the edge of the panel; or In the panel image to be identified, the edge line of the target panel reflected by the edge recognition result is scanned and processed to obtain at least one scanning result corresponding to the edge recognition result, wherein each of the scanning results is used to reflect the pixel points scanned on the edge line; for each of the scanning results, based on the pixel points scanned on the edge line reflected by the scanning result, the panel image to be identified is processed for edge straight line determination to obtain a local edge straight line determination result of the target panel in the panel image to be identified, wherein the local edge straight line determination result is used to reflect the edge straight line determined based on the corresponding scanning result; based on the local edge straight line determination result corresponding to each of the scanning results, the edge straight line determination result of the target panel in the panel image to be identified is determined.

2. The panel edge recognition method according to claim 1, characterized in that: The step of scanning the edge line of the target panel reflected by the edge recognition result in the panel image to be recognized to obtain at least one scanning result corresponding to the edge recognition result includes: In the panel image to be identified, scanning processing is performed along the column direction of pixel distribution to determine the first intersection pixel point between each column scanning line and the edge line of the target panel reflected by the edge recognition result, and based on the first intersection pixel point corresponding to each column scanning line, a set of intersection pixel points corresponding to the column direction is formed; In the panel image to be identified, scanning processing is performed along the row direction of pixel distribution to determine the first intersection pixel point between each row scanning line and the edge line of the target panel reflected by the edge recognition result, and based on the first intersection pixel point corresponding to each row scanning line, a set of intersection pixel points corresponding to the row direction is formed; Determine the intersection between the cross pixel point set corresponding to the column direction and the cross pixel point set corresponding to the row direction to obtain a cross pixel point intersection; The intersection of the cross-pixel points, other cross-pixel points in the cross-pixel point set corresponding to the column direction except the intersection of the cross-pixel points, and other cross-pixel points in the cross-pixel point set corresponding to the row direction except the intersection of the cross-pixel points are respectively determined as the scanning results corresponding to the edge recognition result to obtain at least three corresponding scanning results.

3. The panel edge recognition method according to claim 1, characterized in that: The step of performing edge straight line determination processing on the panel image to be identified based on the scanned pixel points on the edge line reflected by the scanning result for each of the scanning results to obtain a local edge straight line determination result of the target panel in the panel image to be identified includes: For each of the scanning results, performing outlier point screening processing on the scanned pixel points on the edge line reflected by the scanning result to obtain a target pixel point set corresponding to the scanning result; Linear fitting processing is performed on each pixel point in the target pixel point set corresponding to the scanning result to obtain each edge straight line local determination result of the target panel in the panel image to be identified, wherein there is a one-to-one correspondence between the edge straight line local determination result, the scanning result and the target pixel point set, and each edge straight line local determination result is used to reflect a fitted edge straight line.

4. The panel edge recognition method according to claim 1, characterized in that: The step of analyzing the defect recognition result of the target panel based on the edge straight line determination result includes: For each edge straight line determination result belonging to the target type, the edge straight line determination result is compared and analyzed with the edge recognition sub-result corresponding to the edge straight line determination result included in the edge recognition result, so as to obtain a defect recognition sub-result corresponding to the edge straight line determination result, wherein the edge recognition result includes at least one edge recognition sub-result, any one of the edge recognition sub-results is used to reflect an edge distribution of the target panel in the panel image to be recognized, and the edge straight line reflected by each edge straight line determination result belonging to the target type is distributed along the row direction or the column direction in the panel image to be recognized; For each edge straight line determination result that does not belong to the target type, the size information of the edge straight line reflected by the edge straight line determination result is determined, and based on the size information, the defect recognition result of the target panel is analyzed.

5. The panel edge recognition method according to claim 4, characterized in that: The step of determining, for each edge straight line determination result that does not belong to the target type, size information of the edge straight line reflected by the edge straight line determination result, and analyzing the defect recognition result of the target panel based on the size information, includes: For each edge straight line determination result that does not belong to the target type, determine the size information of the edge straight line reflected by the edge straight line determination result; Respectively matching the size information corresponding to each edge straight line determination result with the reference size information pre-configured for the size information to obtain corresponding matching data; For each edge straight line determination result that does not belong to the target type, if the matching data corresponding to the edge straight line determination result reflects that the size information does not match the reference size information, a defect identification result corresponding to the edge straight line determination result is generated to reflect that there are defects in the target panel; if the matching data corresponding to the edge straight line determination result reflects that the size information matches the reference size information, a defect identification result corresponding to the edge straight line determination result is generated to reflect that there are no defects in the target panel.

6. The panel edge recognition method according to claim 1, characterized in that: The step of performing edge recognition processing on the acquired panel image to be identified by using the target neural network formed by network optimization to obtain the edge recognition result corresponding to the panel image to be identified includes: Acquire a first sample panel image and an initial neural network, wherein the initial neural network includes a first image encoding model and a first image decoding model; Based on the first sample panel image, performing unsupervised network optimization processing on the initial neural network to obtain an intermediate neural network corresponding to the initial neural network, wherein, in the process of performing the unsupervised network optimization processing, a basis for the network optimization processing at least includes an error between the first sample panel image and a decoded image output by the first image decoding model; Based on the second image decoding model and the first image coding model in the intermediate neural network, a candidate neural network is constructed, wherein the candidate neural network includes the second image coding model and the second image decoding model, and the model parameters of the second image coding model are the same as the model parameters of the first image coding model in the intermediate neural network; Acquire a second sample panel image and image label information corresponding to the second sample panel image, wherein the image label information is used to identify a panel edge in the second sample panel image; Based on the second sample panel image and the image label information corresponding to the second sample panel image, the candidate neural network is subjected to supervised network optimization processing to obtain a target neural network corresponding to the candidate neural network, wherein, in the process of performing the supervised network optimization processing, the basis of the network optimization processing at least includes the error between the image label information and the sample edge recognition result output by the second image decoding model; The target neural network is used to perform edge recognition processing on the acquired panel image to be identified, so as to obtain an edge recognition result corresponding to the panel image to be identified.

7. The panel edge recognition method according to claim 6, characterized in that: The step of performing unsupervised network optimization processing on the initial neural network based on the first sample panel image to obtain an intermediate neural network corresponding to the initial neural network includes: The first sample panel image is segmented and serialized to obtain a sample image segmentation sequence corresponding to the first sample panel image, wherein the sample image segmentation sequence includes a plurality of local sample panel images arranged in sequence, an arrangement relationship between the plurality of local sample panel images is related to a positional relationship between the plurality of local sample panel images in the first sample panel image, and image sizes between every two of the plurality of local sample panel images are consistent; Using the first image coding model included in the initial neural network, based on the sample image segmentation sequence, mining candidate overall image coding features of the first sample panel image; In the sample image segmentation sequence, a first sample image segmentation sequence and a second sample image segmentation sequence are determined, wherein the first sample image segmentation sequence and the second sample image segmentation sequence both belong to subsequences in the sample image segmentation sequence, and there is a correlation between the first sample image segmentation sequence and the second sample image segmentation sequence; Using the first image coding model and the first image decoding model included in the initial neural network, based on the first sample image segmentation sequence and the candidate overall image coding features, decoding is performed to obtain a decoded sample image segmentation sequence corresponding to the first sample image segmentation sequence, wherein a decoding object of the first image decoding model includes the candidate overall image coding features and the encoding result of the first image coding model on the first sample image segmentation sequence, and the decoded sample image segmentation sequence is a restoration result of decoding the second sample image segmentation sequence based on the first sample image segmentation sequence; Based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, the candidate overall image coding feature is updated, and the updated candidate overall image coding feature is marked as a corresponding target overall image coding feature; The target overall image coding features are decoded using the first image decoding model included in the initial neural network to obtain a decoded sample panel image corresponding to the first sample panel image, and based on the first sample panel image and the decoded sample panel image, an error calculation is performed on the initial neural network to obtain a corresponding target decoding error, and the network parameters of the initial neural network are updated and optimized in a direction of reducing the target decoding error to obtain an intermediate neural network corresponding to the initial neural network.

8. The panel edge recognition method according to claim 7, characterized in that: The step of mining candidate overall image coding features of the first sample panel image based on the sample image segmentation sequence using the first image coding model included in the initial neural network comprises: For each local sample panel image in the sample image segmentation sequence, encoding processing is performed on the local sample panel image using the first image encoding model included in the initial neural network to obtain a local image encoding feature corresponding to the local sample panel image; Performing feature compression processing on each local image coding feature corresponding to the local sample panel image, respectively, to obtain a compressed image coding feature corresponding to each local image coding feature, wherein the feature sizes between every two compressed image coding features are consistent, and each compressed image coding feature includes at least one feature parameter; The compressed image coding features corresponding to each of the local image coding features are combined to form candidate overall image coding features of the first sample panel image.

9. The panel edge recognition method according to claim 8, characterized in that: The step of performing feature compression processing on each local image coding feature corresponding to the local sample panel image to obtain a compressed image coding feature corresponding to each local image coding feature comprises: For each local sample panel image in the sample image segmentation sequence, a feature screening process is performed on the local image coding feature corresponding to the local sample panel image to screen out a feature parameter having a maximum value in the local image coding feature; Based on a feature parameter having a maximum value in each of the local image coding features, a compressed image coding feature corresponding to each of the local image coding features is constructed.

10. The panel edge recognition method according to claim 7, characterized in that: The step of updating the candidate overall image coding feature based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, and marking the updated candidate overall image coding feature as the corresponding target overall image coding feature, comprises: Based on the decoded sample image segmentation sequence and the second sample image segmentation sequence, performing error calculation on the initial neural network to obtain a corresponding local decoding error; In the direction of reducing the local decoding error, the network parameters of the initial neural network are updated and optimized to obtain a pending neural network corresponding to the initial neural network; Using the first image coding model included in the undetermined neural network, based on the sample image segmentation sequence, mining new candidate overall image coding features of the first sample panel image; Based on the new candidate overall image coding feature, the candidate overall image coding feature is updated, and the updated candidate overall image coding feature is marked to form a corresponding target overall image coding feature.

11. The panel edge recognition method according to claim 6, characterized in that: The step of performing supervised network optimization processing on the candidate neural network based on the second sample panel image and the image label information corresponding to the second sample panel image to obtain a target neural network corresponding to the candidate neural network includes: The second sample panel image is segmented and serialized to obtain a segmentation sequence of images to be mined corresponding to the second sample panel image, wherein the segmentation sequence of images to be mined includes a plurality of local panel images to be mined arranged in sequence, an arrangement relationship between the plurality of local panel images to be mined is related to a positional relationship between the plurality of local panel images to be mined in the second sample panel image, and image sizes between every two of the plurality of local panel images to be mined are consistent; Using the second image coding model included in the candidate neural network, based on the to-be-mined image segmentation sequence, mining out the overall image coding features of the second sample panel image; Using the second image decoding model included in the candidate neural network, the overall image coding features of the second sample panel image are decoded to obtain a decoded annotated sample panel image corresponding to the second sample panel image, wherein the decoded annotated sample panel image contains annotation information of the corresponding panel edge; Based on the annotation information of the corresponding panel edge in the decoded annotation sample panel image and the image label information corresponding to the second sample panel image, the edge recognition error of the candidate neural network is determined, and the network parameters of the candidate neural network are updated and optimized in the direction of reducing the edge recognition error to obtain the corresponding target neural network.

12. A panel edge recognition device, characterized in that: include: An edge recognition module, used to perform edge recognition processing on the acquired panel image to be recognized by using the target neural network formed through network optimization, and obtain an edge recognition result corresponding to the panel image to be recognized, wherein the panel image to be recognized is formed by performing image acquisition on the target panel, and the edge recognition result is used to reflect the edge distribution of the target panel in the panel image to be recognized; An edge straight line determination module is used to perform edge straight line determination processing on the panel image to be identified based on the edge recognition result, and obtain an edge straight line determination result of the target panel in the panel image to be identified; A defect recognition module, used for analyzing a defect recognition result of the target panel based on the edge straight line determination result, wherein the defect recognition result is used to reflect whether there is a defect at the edge of the target panel; The step of performing edge straight line determination processing on the panel image to be identified based on the edge recognition result to obtain the edge straight line determination result of the target panel in the panel image to be identified includes: Performing straight line fitting processing on each pixel point belonging to the edge of the panel to obtain an edge straight line determination result of the target panel in the panel image to be identified, wherein the edge identification result includes each pixel point belonging to the edge of the panel; or In the panel image to be identified, the edge line of the target panel reflected by the edge recognition result is scanned and processed to obtain at least one scanning result corresponding to the edge recognition result, wherein each of the scanning results is used to reflect the pixel points scanned on the edge line; for each of the scanning results, based on the pixel points scanned on the edge line reflected by the scanning result, the panel image to be identified is processed for edge straight line determination to obtain a local edge straight line determination result of the target panel in the panel image to be identified, wherein the local edge straight line determination result is used to reflect the edge straight line determined based on the corresponding scanning result; based on the local edge straight line determination result corresponding to each of the scanning results, the edge straight line determination result of the target panel in the panel image to be identified is determined.

13. An electronic device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the panel edge recognition method described in any one of claims 1-11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, the panel edge recognition method according to any one of claims 1 to 11 is executed.