Panel defect sample image enhancement method, system and device and storage medium
By performing pixel processing, contour extraction and image transformation on the panel background image and defect image, more types and quantities of panel defect sample images are generated, which solves the model overfitting problem caused by the imbalance of panel defect sample images and improves the model's accuracy. Generalization ability.
Patent Information
- Application Number
- CN202410774195.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
AI Technical Summary
The imbalance of panel defective sample images leads to overfitting of the deep learning model and low generalization ability.
By acquiring panel background images and defect images, we perform pixel processing, contour extraction, image transformation and fusion to generate more types and quantities of panel defect sample images, ensuring that there are no obvious transition marks at the fusion boundary and improving sample similarity.
It solves the problem of panel defective sample image imbalance, improves the generalization ability of the model, and reduces the model's overfitting to the data.
Smart Images

Figure CN118570184A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sample data enhancement, and in particular to a panel defect sample image enhancement method, system, device and storage medium. Background Art
[0002] With the rapid development of industrial panel production, automated production lines have become the main production method for many factories. However, due to equipment aging, operational errors and other reasons, industrial panels often have various defects during the production process. If these defects cannot be detected and handled in time, they will lead to a decline in panel production quality and even affect the normal operation of the entire production line.
[0003] At present, panel defect target detection often uses an automatic defect classification system (ADC system) for defect detection. However, the ADC system needs to collect panel defect samples in the early stage for deep learning model training. Since the number of panel defect samples in actual production is extremely unbalanced, for data with a small number of panel samples, it is easy for the deep learning model to overfit the data, thereby greatly reducing the generalization ability of the model. Summary of the invention
[0004] In order to solve the problem that the existing panel defect sample images are unbalanced, which easily leads to overfitting of the model to the data and low generalization ability of the model, the embodiments of the present invention provide a panel defect sample image enhancement method, system, device and storage medium.
[0005] In a first aspect, an embodiment of the present invention provides a method for enhancing an image of a panel defect sample, the method comprising the following steps:
[0006] Acquire a panel background image and a panel defect image, and perform pixel processing on the panel background image and the panel defect image to obtain a panel background pixel image and a panel defect pixel image;
[0007] Performing contour extraction processing on the panel defect pixel image to obtain a panel defect contour image;
[0008] Constructing a blank background image, and performing image transformation processing on the panel defect contour image based on the blank background image to obtain a panel defect transformation image;
[0009] The panel background pixel image and the panel defect transformation image are subjected to image fusion processing to obtain a panel defect sample image.
[0010] In the above embodiment, the present invention first obtains the background pixels and defect pixels of the panel background image and the panel defect image, and obtains the contour pixels of the defect contour based on the defect pixels, and then transforms the position of the contour pixels, and finally fuses the contour pixels after the position transformation with the background pixels, so as to obtain more types and quantities of panel defect sample images, which can ensure that there is no obvious transition mark at the fusion boundary, and the generated panel defect sample image is more similar to the original panel defect sample image, which solves the problem that the existing panel defect sample images are unbalanced, easily leading to overfitting of the model to the data, and the model generalization ability is low.
[0011] As some optional implementations of the present application, the process of performing pixel processing on the panel background image and the panel defect image to obtain the panel background pixel image and the panel defect pixel image is as follows:
[0012] Performing image grayscale processing and background pixel detection processing on the panel background image to obtain a panel background pixel image;
[0013] The panel defect image is subjected to image grayscale processing, image binarization processing and defect edge pixel detection processing to obtain a panel defect pixel image.
[0014] In the above embodiment, the present invention can obtain a panel background pixel image containing background pixel information and a panel defect pixel image containing defect pixel information by performing pixel processing on the panel background image and the panel defect image, so as to facilitate subsequent image fusion.
[0015] As some optional implementation modes of the present application, the image transformation processing includes image position transformation processing, image size transformation processing and image angle transformation processing.
[0016] In the above-mentioned embodiment, the present invention can increase the diversity of the generated panel defect sample images and expand the number of panel defect sample images by performing multiple types of image transformations on the panel defect contour image.
[0017] As some optional implementations of the present application, the process of constructing a blank background image and performing image position transformation processing on the panel defect contour image based on the blank background image is as follows:
[0018] Constructing a blank background image, and setting the panel defect pixel image on the surface of the blank background image, wherein the size of the blank background image is the same as that of the panel background image;
[0019] An image center point is selected from the panel defect pixel image, and pixel translation processing is performed on the panel defect pixel image on the surface of the blank background image based on the image center point to obtain a panel defect transformation image.
[0020] In the above embodiment, the present invention constructs a blank background image and performs pixel shift on the panel defective pixel image based on the blank background image, so that the panel defective pixel image can achieve pixel shift relative to the panel background pixel image.
[0021] As some optional implementation methods of the present application, a blank background image is constructed, and the process of performing image size conversion processing on the panel defect contour image based on the blank background image is as follows:
[0022] Constructing a blank background image, and setting the panel defect pixel image on the surface of the blank background image, wherein the size of the blank background image is the same as that of the panel background image;
[0023] The panel defect pixel image on the surface of the blank background image is magnified by using a bilinear interpolation method to obtain a panel defect transformation image;
[0024] The panel defect pixel image on the surface of the blank background image is reduced by downsampling to obtain a panel defect transformation image.
[0025] In the above embodiment, the present invention constructs a blank background image and, based on the blank background image, enlarges and reduces the panel defective pixel image, thereby changing the relative positions of pixels and enabling the panel defective pixel image to be enlarged and reduced relative to the panel background pixel image.
[0026] As some optional implementations of the present application, the process of constructing a blank background image and performing image angle transformation processing on the panel defect contour image based on the blank background image is as follows:
[0027] Constructing a blank background image, and setting the panel defect pixel image on the surface of the blank background image, wherein the size of the blank background image is the same as that of the panel background image;
[0028] Selecting an image center point and a rotation reference line passing through the image center point from the panel defect pixel image;
[0029] The panel defect pixel image on the surface of the blank background image is rotated based on a rotation reference line passing through the center point of the image to obtain a panel defect transformation image.
[0030] In the above embodiment, the present invention constructs a blank background image and rotates the panel defective pixel image based on the blank background image, thereby changing the relative angle of the defect and enabling the panel defective pixel image to be rotated relative to the panel background pixel image.
[0031] As some optional implementations of the present application, the process of performing image fusion processing on the panel background pixel image and the panel defect transformation image to obtain the panel defect sample image is as follows:
[0032] Acquire the image origins of the panel background pixel image and the panel defect transformation image, and perform image matching processing on the panel background pixel image and the panel defect transformation image based on the image origins;
[0033] Based on the panel defect transformation image after the image matching process, pixel replacement processing is performed on the panel background pixel image after the image matching process to obtain a panel defect sample image.
[0034] In the above embodiment, the present invention obtains more types and quantities of panel defect sample images by fusing the panel defect transformation image after image matching processing with the panel background pixel image after image matching processing, which can ensure that there are no obvious transition marks at the fusion boundary, and the generated panel defect sample image is more similar to the original panel defect sample image.
[0035] In a second aspect, the present invention provides a panel defect sample image enhancement system, the functions of the system correspond to the steps of the method, and the system comprises:
[0036] A pixel acquisition unit, the pixel acquisition unit is used to acquire a panel background image and a panel defect image, and perform pixel processing on the panel background image and the panel defect image to obtain a panel background pixel image and a panel defect pixel image;
[0037] A contour extraction unit, the contour extraction unit is used to perform contour extraction processing on the panel defect pixel image to obtain a panel defect contour image;
[0038] An image transformation unit, the image transformation unit is used to construct a blank background image, and perform image transformation processing on the panel defect contour image based on the blank background image to obtain a panel defect transformation image;
[0039] An image fusion unit is used to perform image fusion processing on the panel background pixel image and the panel defect transformation image to obtain a panel defect sample image.
[0040] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the panel defect sample image enhancement method.
[0041] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the panel defect sample image enhancement method.
[0042] The beneficial effects of the present invention are as follows: the present invention first obtains the background pixels and defect pixels of the panel background image and the panel defect image, and obtains the contour pixels of the defect contour based on the defect pixels, and then transforms the position of the contour pixels, and finally fuses the contour pixels after the position transformation with the background pixels, so as to obtain more types and quantities of panel defect sample images, which can ensure that there is no obvious transition mark at the fusion boundary, and the generated panel defect sample image is more similar to the original panel defect sample image, which solves the problem that the existing panel defect sample images are unbalanced, easily leading to overfitting of the model to the data, and the model generalization ability is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 is a schematic diagram of the computer device structure of the hardware operating environment described in the embodiment of the present invention;
[0045] Figure 2 is a flow chart of a panel defect sample image enhancement method according to an embodiment of the present invention;
[0046] Figure 3 It is a system block diagram of the panel defect sample image enhancement system described in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] In order to solve the problem that the existing panel defect sample images are unbalanced, which easily leads to overfitting of the model to the data and low generalization ability of the model, the present application provides a panel defect sample image enhancement method, system, device and storage medium. Before introducing the specific technical solution of the present application, the hardware operating environment involved in the embodiment of the present application is first introduced.
[0049] See also Figure 1 , Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application.
[0050] like Figure 1 As shown, the computer device may include: a processor, such as a central processing unit (CPU), a communication bus, a user interface, a network interface, and a memory. Among them, the communication bus is used to realize the connection and communication between these components. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and optionally, the user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity interface). The memory may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory may optionally be a storage device independent of the aforementioned processor.
[0051] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0052] like Figure 1 As shown, the memory as a storage medium may include an operating system module, a network communication module, a user interface module and a data storage module.
[0053] exist Figure 1 In the computer device shown, the network interface is mainly used for data communication with the network server; the user interface is mainly used for data interaction with the user; the processor and memory in the computer device of the present application can be set in the computer device, and the computer device calls the panel defect sample image enhancement system stored in the data storage module in the memory through the processor, and executes the panel defect sample image enhancement method provided in the embodiment of the present application.
[0054] Based on the hardware environment of the aforementioned embodiment, the embodiment of the present application provides a panel defect sample image enhancement method, please refer to Figure 2 , Figure 2 The flowchart of the panel defect sample image enhancement method is as follows:
[0055] (1) Acquire a panel background image and a panel defect image, and perform pixel processing on the panel background image and the panel defect image to obtain a panel background pixel image and a panel defect pixel image, wherein the panel background image is a defect-free panel background image, and the panel defect image is a panel defect image cropped from a defective panel background image.
[0056] In the embodiment of the present invention, the process of performing pixel processing on the panel background image and the panel defect image is as follows:
[0057] (1.1) Performing image grayscale processing and background pixel detection processing on the panel background image to obtain a panel background pixel image. The image grayscale processing is to convert the panel background image from a color image into a grayscale image; the background pixel detection processing is to traverse the panel background image grayscale to obtain the pixel value of the panel background image.
[0058] (1.2) Performing image grayscale processing, image binarization processing, and defect edge pixel detection processing on the panel defect image to obtain a panel defect pixel image. The image grayscale processing is to convert the panel defect image from a color image to a grayscale image; the image binarization processing is to convert the panel defect image after the image grayscale processing from a grayscale image to a binary image; the defect edge pixel detection processing is to traverse the panel defect image after the image binarization processing to obtain the pixel value of the panel defect image.
[0059] (2) Performing contour extraction processing on the panel defect pixel image to obtain a panel defect contour image, that is, by performing contour extraction processing on the panel defect pixel image, the pixel value corresponding to the defect contour can be obtained, and by combining the pixel values corresponding to the contour, the panel defect contour image can be obtained.
[0060] (3) A blank background image is constructed, and image transformation processing is performed on the panel defect contour image based on the blank background image to obtain a panel defect transformation image.
[0061] In the embodiment of the present invention, the image transformation processing includes image position transformation processing, image size transformation processing and image angle transformation processing.
[0062] In the embodiment of the present invention, the process of constructing a blank background image and performing image position transformation processing on the panel defect contour image based on the blank background image is as follows:
[0063] (3.1) Construct a blank background image, and set the panel defect pixel image on the surface of the blank background image, and the size of the blank background image is the same as the size of the panel background image.
[0064] (3.2) Selecting an image center point from the panel defect pixel image, and performing pixel translation processing on the panel defect pixel image on the surface of the blank background image based on the image center point to obtain a panel defect transformation image. The image center point of the panel defect pixel image is generally a pixel point arbitrarily selected from the image center range, and by performing pixel translation left and right, up and down, on the image center pixel point, the panel defect pixel image can be translated left and right, up and down.
[0065] In the embodiment of the present invention, the process of constructing a blank background image and performing image size conversion processing on the panel defect contour image based on the blank background image is as follows:
[0066] (3.3) Construct a blank background image, and set the panel defect pixel image on the surface of the blank background image, and the size of the blank background image is the same as the size of the panel background image.
[0067] (3.4) The panel defect pixel image on the surface of the blank background image is magnified by bilinear interpolation to obtain a panel defect transformation image.
[0068] (3.5) Downsampling is used to reduce the panel defect pixel image on the surface of the blank background image to obtain a panel defect transformation image. Image magnification and image reduction are performed on the panel defect pixel image based on the blank background image, which can change the relative position between pixels and enable the panel defect pixel image to achieve image magnification and image reduction relative to the panel background pixel image. The bilinear interpolation and downsampling methods are prior art, so the present invention will not elaborate on them.
[0069] In an embodiment of the present invention, a blank background image is constructed, and the process of performing image angle transformation processing on the panel defect contour image based on the blank background image is as follows:
[0070] (3.6) Construct a blank background image, and set the panel defect pixel image on the surface of the blank background image, and the size of the blank background image is the same as the size of the panel background image.
[0071] (3.7) Selecting an image center point and a rotation reference line passing through the image center point from the panel defect pixel image. The image center point of the panel defect pixel image is generally a pixel point selected arbitrarily from the image center range, and the rotation reference line of the panel defect pixel image is generally a line segment in any direction passing through the image center point.
[0072] (3.8) The panel defect pixel image on the surface of the blank background image is rotated based on the rotation reference line passing through the center point of the image to obtain a panel defect transformation image. The panel defect pixel image can be rotated counterclockwise or clockwise about the center point of the image by rotating the rotation reference line counterclockwise or clockwise.
[0073] Specifically, in the process of performing image transformation processing on the panel defect contour image based on the blank background image, the embodiment of the present invention can use different types of image transformation processing methods alone, or can use image position transformation processing, image size transformation processing and image angle transformation processing in combination, so as to obtain more types and quantities of panel defect sample images.
[0074] (4) Perform image fusion processing on the panel background pixel image and the panel defect transformation image to obtain a panel defect sample image.
[0075] In the embodiment of the present invention, the process of image fusion processing of the panel background pixel image and the panel defect transformation image is as follows:
[0076] (4.1) Obtaining the image origins of the panel background pixel image and the panel defect transformation image, and performing image matching processing on the panel background pixel image and the panel defect transformation image based on the image origin. The image origins of the panel background pixel image and the panel defect transformation image are generally the lower left pixel point of the image. By matching the lower left pixel point of the panel background pixel image and the panel defect transformation image, the panel background pixel image and the panel defect transformation image can be relatively overlapped.
[0077] (4.2) Perform pixel replacement processing on the panel background pixel image after image matching processing based on the panel defect contour image after image transformation processing to obtain a panel defect sample image. By performing image matching processing on the panel background pixel image and the panel defect transformation image, the pixel value of the defect position of the panel background pixel image corresponding to the panel defect transformation image can be changed, that is, the defect can be displayed by pixel replacement or pixel superposition.
[0078] In summary, the present invention first obtains the background pixels and defect pixels of the panel background image and the panel defect image, and obtains the contour pixels of the defect contour based on the defect pixels, and then transforms the position of the contour pixels, and finally fuses the contour pixels after the position transformation with the background pixels, so as to obtain more types and quantities of panel defect sample images, which can ensure that there is no obvious transition mark at the fusion boundary, and the generated panel defect sample image is more similar to the original panel defect sample image, which solves the problem that the existing panel defect sample images are unbalanced, easily leading to overfitting of the model to the data, and the model generalization ability is low.
[0079] In addition, in one embodiment, based on the same inventive concept as the above embodiment, the embodiment of the present invention provides a panel defect sample image enhancement system, and the system corresponds to the method of embodiment 1 one by one, please refer to Figure 3 , Figure 3 The structural block diagram of the panel defect sample image enhancement system is as follows, wherein the system comprises:
[0080] A pixel acquisition unit is used to acquire a panel background image and a panel defect image, and perform pixel processing on the panel background image and the panel defect image to obtain a panel background pixel image and a panel defect pixel image.
[0081] The contour extraction unit is used to perform contour extraction processing on the panel defect pixel image to obtain a panel defect contour image.
[0082] An image transformation unit is used to construct a blank background image, and perform image transformation processing on the panel defect contour image based on the blank background image to obtain a panel defect transformation image.
[0083] An image fusion unit is used to perform image fusion processing on the panel background pixel image and the panel defect transformation image to obtain a panel defect sample image.
[0084] It should be noted that each unit in the panel defect sample image enhancement system in this embodiment corresponds one-to-one to each step in the panel defect sample image enhancement method in the aforementioned embodiment. Therefore, the specific implementation method and technical effects achieved by this embodiment can refer to the implementation method of the aforementioned panel defect sample image enhancement method and will not be repeated here.
[0085] In addition, in one embodiment, the present application also provides a computer device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the method in the aforementioned embodiment when executed by the processor.
[0086] In addition, in one embodiment, the present application further provides a computer storage medium, on which a computer program is stored, and the computer program implements the method in the aforementioned embodiment when executed by a processor.
[0087] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0088] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0089] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0090] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0091] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0092] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0094] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A panel defect sample image enhancement method, characterized in that: The method comprises the following steps: Acquire a panel background image and a panel defect image, and perform pixel processing on the panel background image and the panel defect image to obtain a panel background pixel image and a panel defect pixel image; Performing contour extraction processing on the panel defect pixel image to obtain a panel defect contour image; Constructing a blank background image, and performing image transformation processing on the panel defect contour image based on the blank background image to obtain a panel defect transformation image; The panel background pixel image and the panel defect transformation image are subjected to image fusion processing to obtain a panel defect sample image.
2. The panel defect sample image enhancement method according to claim 1, characterized in that: The process of performing pixel processing on the panel background image and the panel defect image to obtain the panel background pixel image and the panel defect pixel image is as follows: Performing image grayscale processing and background pixel detection processing on the panel background image to obtain a panel background pixel image; The panel defect image is subjected to image grayscale processing, image binarization processing and defect edge pixel detection processing to obtain a panel defect pixel image.
3. The panel defect sample image enhancement method according to claim 1, characterized in that: The image transformation processing includes image position transformation processing, image size transformation processing and image angle transformation processing.
4. The panel defect sample image enhancement method according to claim 3, characterized in that: The process of constructing a blank background image and performing image position transformation processing on the panel defect contour image based on the blank background image is as follows: Constructing a blank background image, and setting the panel defect pixel image on the surface of the blank background image, wherein the size of the blank background image is the same as that of the panel background image; An image center point is selected from the panel defect pixel image, and pixel translation processing is performed on the panel defect pixel image on the surface of the blank background image based on the image center point to obtain a panel defect transformation image.
5. The panel defect sample image enhancement method according to claim 3, characterized in that: The process of constructing a blank background image and performing image size transformation processing on the panel defect contour image based on the blank background image is as follows: Constructing a blank background image, and setting the panel defect pixel image on the surface of the blank background image, wherein the size of the blank background image is the same as that of the panel background image; The panel defect pixel image on the surface of the blank background image is magnified by using a bilinear interpolation method to obtain a panel defect transformation image; The panel defect pixel image on the surface of the blank background image is reduced by downsampling to obtain a panel defect transformation image.
6. The panel defect sample image enhancement method according to claim 3, characterized in that: The process of constructing a blank background image and performing image angle transformation processing on the panel defect contour image based on the blank background image is as follows: Constructing a blank background image, and setting the panel defect pixel image on the surface of the blank background image, wherein the size of the blank background image is the same as that of the panel background image; Selecting an image center point and a rotation reference line passing through the image center point from the panel defect pixel image; The panel defect pixel image on the surface of the blank background image is rotated based on a rotation reference line passing through the center point of the image to obtain a panel defect transformation image.
7. The panel defect sample image enhancement method according to claim 1, characterized in that: The process of performing image fusion processing on the panel background pixel image and the panel defect transformation image to obtain the panel defect sample image is as follows: Acquire the image origins of the panel background pixel image and the panel defect transformation image, and perform image matching processing on the panel background pixel image and the panel defect transformation image based on the image origins; Based on the panel defect transformation image after the image matching process, pixel replacement processing is performed on the panel background pixel image after the image matching process to obtain a panel defect sample image.
8. A panel defect sample image enhancement system, characterized in that: The system comprises: A pixel acquisition unit, the pixel acquisition unit is used to acquire a panel background image and a panel defect image, and perform pixel processing on the panel background image and the panel defect image to obtain a panel background pixel image and a panel defect pixel image; A contour extraction unit, the contour extraction unit is used to perform contour extraction processing on the panel defect pixel image to obtain a panel defect contour image; An image transformation unit, the image transformation unit is used to construct a blank background image, and perform image transformation processing on the panel defect contour image based on the blank background image to obtain a panel defect transformation image; An image fusion unit is used to perform image fusion processing on the panel background pixel image and the panel defect transformation image to obtain a panel defect sample image.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for enhancing an image of a panel defect sample as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for enhancing an image of a panel defect sample described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Image processing method and device, computer equipment and storage medium
CN113706440A
Industrial defect detection method based on few defect samples
CN114897865A
Image processing method and device, equipment, storage medium and computer program product
CN117011658A
Defect image generation method and device, panel detection method and device and electronic equipment
CN117853426A
Method for Generating Data Set for Training and Electronic Device Supporting the Same
US20240070851A1
