Backlight defect detection method and device
The local area images of the LCD screen are captured by multiple camera devices and set thresholds to determine the backlight defect area, which solves the problems of pixel information loss and liquid crystal texture interference in the LCD screen detection, and improves the accuracy of the detection.
Patent Information
- Application Number
- CN202310665660.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2024-12-06
AI Technical Summary
In the existing liquid crystal screen defect detection methods, multiple local images are spliced to cause pixel information to be lost, detection accuracy is low, and liquid crystal texture interference increases error.
Multiple camera devices are used to capture local area images of the backlight module, set brightness and grayscale thresholds, determine the pre-processing area and backlight defect area, avoid splicing and missing pixel information, and improve detection accuracy.
Effectively retain pixel information, reduce liquid crystal texture interference, and improve the accuracy of backlight defect detection.
Smart Images

Figure CN119086552A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of defect detection technology, and in particular to a backlight defect detection method and device. Background Art
[0002] At present, liquid crystal screens are a relatively common display device in the display field. In order to ensure the quality of liquid crystal screens, manufacturers generally conduct quality inspections before the liquid crystal screens leave the factory.
[0003] At present, the method for quality inspection of LCD screens is generally to use a camera device to take multiple partial images of the LCD screen, and then splice the multiple partial images of the LCD screen to obtain a complete image of the LCD screen, and then determine the defective area of the LCD screen from the complete image of the LCD screen. However, in the process of splicing the partial images of the LCD screen, the original pixel information will be lost, which will lead to low accuracy in detecting screen defects. In addition, since the partial images of the LCD screen taken will have liquid crystal textures, the accuracy of detecting screen defects will also be low.
[0004] In summary, how to improve the accuracy of detecting screen defects is a problem that needs to be solved urgently. Summary of the invention
[0005] A backlight defect detection method and device provided in an embodiment of the present invention are used to solve the problem of low accuracy in detecting screen defects in the prior art.
[0006] In a first aspect, an embodiment of the present invention provides a backlight defect detection method, comprising: acquiring a backlight module image of a backlight module to be tested; the backlight module image is obtained by photographing a local area of the backlight module to be tested by a camera device located at a target position; each camera device corresponds to a different area of the backlight module to be tested and there is an overlapping area between adjacent different areas; determining a preprocessing area that meets a first brightness threshold from the backlight module image; and determining a backlight defect area that meets a grayscale threshold from the preprocessing area.
[0007] In the above technical solution, a local area of the backlight module to be tested is photographed by a camera device located at a target position to obtain a backlight module image, wherein since the backlight module image is photographed, there is no liquid crystal texture in the backlight module image to affect the accuracy of subsequent detection of the backlight defect area. The backlight module images are photographed by multiple camera devices, and each backlight module image is processed to obtain a corresponding pre-processing area, and then the backlight defect area that meets the grayscale threshold is determined from the pre-processing area, so as to retain the original pixel information of each backlight module image, avoid splicing multiple images obtained by shooting and resulting in loss of original pixel information, and thus improve the accuracy of detecting the backlight defect area.
[0008] Optionally, a backlight defect area that meets the grayscale threshold is determined from the preprocessed area, including: determining the backlight defect area based on pixels whose grayscale values are greater than a second threshold; determining the area where pixels whose grayscale values are between the first threshold and the second threshold are located as a potential defect area; and determining the backlight defect area based on the grayscale contrast between the potential defect area and the adjacent area.
[0009] In the above technical solution, by setting the first threshold and the second threshold, the pixel points greater than the second threshold are determined as the backlight defect area, so as to achieve more accurate determination of the backlight defect area from the pre-processed area according to the grayscale threshold. In a possible case, if the pixel point is between the first threshold and the second threshold, that is, the area where the pixel point is located may be the backlight defect area, or may not be the backlight defect area. Therefore, in order to improve the accuracy of detecting the backlight defect area, the area where the pixel points between the first threshold and the second threshold are located is determined as the potential defect area, and the grayscale contrast between the backlight defect area and the adjacent area is combined to achieve the determination of the backlight defect area.
[0010] Optionally, determining whether the potential defect area is a backlight defect area is based on the grayscale contrast between the potential defect area and the adjacent area, including: determining whether the potential defect area is a backlight defect area based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; the adjacent area is an area in the preprocessing area excluding the potential defect areas and adjacent to the potential defect area.
[0011] In the above technical solution, to determine whether the area where the potential defect area is located is the backlight area, the area of the potential defect area also needs to be considered. Therefore, by combining the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area, the accuracy of determining the backlight defect area can be improved.
[0012] Optionally, the backlight defect area is determined based on the pixel points whose grayscale values are greater than the second threshold, including: determining the first connected area where the pixel points whose grayscale values are greater than the second threshold are located; determining the overlapping area of the first connected area and the fine-processing area as the backlight defect area; the fine-processing area is the area where the pixels in the pre-processing area whose brightness values are greater than the second brightness threshold are located; the second brightness threshold is greater than the first brightness threshold.
[0013] In the above technical solution, since the first connected area is intercepted in the preprocessing area, where there is an area that is not the backlight module in the preprocessing area, in order to improve the accuracy of detecting the backlight defect area, it is necessary to determine the fine-processing area from the preprocessing area, and then determine the overlapping area between the first connected area and the fine-processing area as the backlight defect area.
[0014] Optionally, whether the potential defect area is a backlight defect area is determined based on the grayscale contrast between the potential defect area and adjacent areas and the area of the potential defect area, including: determining the defect degree of the potential defect area based on the grayscale contrast between the potential defect area and adjacent areas and the area of the potential defect area; if the defect degree of the potential defect area is greater than the defect threshold, then determining the overlapping area of the potential defect area and the fine-processing area as the backlight defect area.
[0015] Optionally, before obtaining the backlight module image of the backlight module to be tested, it also includes: photographing the LCD screen at the respective target positions by each camera device to obtain each LCD screen image; the backlight module of the LCD screen and the backlight module to be tested are derived from the same manufacturing standard; and determining whether there is an overlapping area between each LCD screen image.
[0016] Optionally, determining a preprocessed area that meets a first brightness threshold from the backlight module image includes: cutting out an area to be detected from the backlight module image; wherein the area to be detected corresponding to each camera device is determined based on each LCD screen image; and determining a preprocessed area that meets the first brightness threshold from the area to be detected.
[0017] Optionally, determining a preprocessing area that meets a first brightness threshold from the area to be detected includes: determining a second connected area where pixels in the area to be detected whose brightness values are greater than the first brightness threshold are located; and determining the area where the minimum circumscribed rectangle of the second connected area is located as the preprocessing area.
[0018] In a second aspect, an embodiment of the present invention provides a backlight defect detection device, comprising: an acquisition unit, used to acquire a backlight module image of a backlight module to be tested; the backlight module image is obtained by a camera device located at a target position photographing a local area of the backlight module to be tested; each camera device corresponds to a different area of the backlight module to be tested and there is an overlapping area between adjacent different areas; a processing unit, used to determine a pre-processed area that meets a first brightness threshold from the backlight module image; and determine a backlight defect area that meets a grayscale threshold from the pre-processed area.
[0019] Optionally, the processing unit is specifically used to: determine the backlight defect area based on the pixel points whose grayscale values are greater than the second threshold; determine the area where the pixel points whose grayscale values are between the first threshold and the second threshold are located as the potential defect area; determine the backlight defect area based on the grayscale contrast between the potential defect area and the adjacent area.
[0020] Optionally, the processing unit is specifically used to: determine whether the potential defect area is a backlight defect area based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; the adjacent area is an area in the preprocessing area other than the potential defect area and adjacent to the potential defect area.
[0021] Optionally, the processing unit is specifically used to: determine a first connected area where pixels whose grayscale values are greater than a second threshold are located; determine an overlapping area between the first connected area and the fine-processing area as a backlight defect area; the fine-processing area is an area where pixels whose brightness values in the pre-processing area are greater than a second brightness threshold are located; the second brightness threshold is greater than the first brightness threshold.
[0022] Optionally, the processing unit is specifically used to: determine the defect degree of the potential defect area based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; if the defect degree of the potential defect area is greater than the defect threshold, then determine the overlapping area of the potential defect area and the fine-processing area as the backlight defect area.
[0023] Optionally, the acquisition unit is also used to: obtain each LCD screen image by photographing the LCD screen at its respective target position through each camera device; the backlight module of the LCD screen and the backlight module to be tested are derived from the same manufacturing standard; and determine whether there is an overlapping area between each LCD screen image.
[0024] Optionally, the processing unit is specifically used to: cut out the area to be detected from the backlight module image; wherein the area to be detected corresponding to each camera device is determined according to each LCD screen image; and determine a preprocessing area that meets a first brightness threshold from the area to be detected.
[0025] Optionally, the processing unit is specifically used to: determine a second connected area where pixels having brightness values greater than a first brightness threshold in the area to be detected are located; and determine an area where a minimum circumscribed rectangle of the second connected area is located as the preprocessing area.
[0026] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes the backlight defect detection method in the above-mentioned first aspect.
[0027] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and when the program is run on a computer, the computer implements the backlight defect detection method in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 A method flow chart of a backlight defect detection method provided by an embodiment of the present invention;
[0030] Figure 2 A flow chart of a method for determining a target location provided by an embodiment of the present invention;
[0031] Figure 3 A flow chart of a method for determining a preprocessing area provided by an embodiment of the present invention;
[0032] Figure 4 A flow chart of a method for determining a backlight defect area provided by an embodiment of the present invention;
[0033] Figure 5 A flow chart of another method for determining a backlight defect area provided by an embodiment of the present invention;
[0034] Figure 6 A schematic structural diagram of a backlight defect detection device provided by an embodiment of the present invention;
[0035] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] The LCD screen is currently the most common display device, which consists of a backlight module, two polarizers on the upper and lower layers, two glass substrates on the upper and lower layers, an ITO transparent conductive layer, a thin film transistor, a liquid crystal module, a color filter, a frame glue, etc.
[0038] In the process of producing LCD screens, in order to ensure the factory quality of LCD screens, manufacturers will conduct quality inspections before the LCD screens leave the factory, among which the main inspection is whether there are defects in the backlight module in the LCD screen. For example, if there are many large particles of dust on the backlight module, that is, there are defects in the backlight module, the dust on the backlight module will cause the LCD screen assembled by the backlight module to have spots and other defects when it is in a working state, affecting the user's viewing experience. For example, if there are fallen hairs on the backlight module, that is, there are spots and other defects in the backlight module, the LCD screen assembled by the backlight module will have defects when it is in a working state, affecting the user's experience.
[0039] In one possible case, whether the LCD screen has defects can be detected manually. Specifically, inspectors are arranged on the production line of the LCD screen to inspect the quality of the LCD screen by observing the screen with human eyes. However, since human eye detection cannot guarantee the consistency of the quality of the LCD screen out of the factory, the human eye is highly subjective and easily affected by the environment, it is impossible to unify the detection standards, which will also lead to low detection accuracy. In addition, manual detection is more harmful to the human eye, which will lead to increased production costs.
[0040] In another possible case, the LCD screen is first divided into zones, and each zone corresponds to a camera to shoot a pure color picture of the LCD screen. Then, the captured pictures are spliced, and finally, the spliced images are used to locate defects through a single threshold. However, since the captured pictures are spliced, the information of the original pixels will be lost, which will affect the accuracy of subsequent defect detection. Locating defects through a single threshold does not take into account the need to screen out defects that meet the characteristics of the human eye, which will affect the accuracy of subsequent defect detection. Since the captured pictures are obtained by the camera by shooting the LCD screen, and shooting the LCD screen will cause the picture to have liquid crystal texture, the interference of the liquid crystal texture will affect the accuracy of subsequent defect detection.
[0041] In summary, the embodiments of the present invention provide a backlight defect detection method to improve the accuracy of detecting backlight module defects. Figure 1 FIG. 1 is a flow chart of a method for backlight defect detection provided by an embodiment of the present invention, and the method comprises the following steps:
[0042] Step 101 , obtaining a backlight module image of a backlight module to be tested.
[0043] In the embodiment of the present invention, since the most likely defective component of the LCD screen is the backlight module, and directly photographing the LCD screen with a camera will result in the presence of liquid crystal texture, not only will the accuracy of subsequent defect detection be affected, but also if the LCD screen has defects, the problem of defects in the LCD screen needs to be solved by disassembling the machine. Therefore, this solution first detects whether the backlight module has defects. If defects exist, improvements can be made in a timely manner, and then the various components of the LCD screen are assembled to obtain the backlight module image of the backlight module to be tested, thereby avoiding the presence of liquid crystal texture in the captured backlight module image. Among them, the image of the backlight module is obtained by a camera device located at a target position photographing a local area of the backlight module to be tested. In order to achieve the goal of photographing all areas of the LCD screen, each camera device is required to correspond to different areas of the backlight module to be tested, and there are overlapping areas between adjacent different areas.
[0044] Step 102, determining a pre-processed area that meets a first brightness threshold from the backlight module image;
[0045] In the embodiment of the present invention, since the camera takes a plurality of backlight module images of the backlight module to be tested in step 101, in order to realize the subsequent detection of whether there are defects on the backlight module, the subsequent steps 102 to 104 are all for each backlight module image Analysis and processing is performed to obtain whether there are defects in the backlight module image, and multiple images are spliced to avoid losing the original pixel information, thereby improving the accuracy of detecting backlight defects. Among them, when the camera shoots the backlight module, the backlight module and the background in which the backlight module is located and the components in the background are photographed. Therefore, in order to detect whether the backlight module has defects, it is first necessary to filter out the area of the backlight module from the backlight module image. In a possible implementation, the area of the backlight module can be filtered out by setting a brightness threshold. Specifically, a pre-processed area that meets the first brightness threshold is determined from the backlight module image, wherein the pre-processed area is the backlight module area filtered out from the backlight module image.
[0046] Step 103: determine a backlight defect area that meets the grayscale threshold from the pre-processed area.
[0047] In the embodiment of the present invention, by setting a grayscale threshold, a backlight defect area that meets the grayscale threshold is determined from the pre-processed area, thereby improving the accuracy of detecting backlight defects.
[0048] It can be seen from the above steps 101 to 103 that by acquiring the backlight module image of the backlight module to be tested, the low accuracy of subsequent backlight defect detection caused by the liquid crystal texture existing in the image of the liquid crystal screen is avoided, thereby improving the accuracy of backlight defect detection. By taking multiple backlight module images through each camera device, and determining the preprocessing area for each backlight module image and determining the backlight defect area from the preprocessing area, it is avoided that the original pixel point information is lost due to splicing multiple images, which affects the accuracy of subsequent backlight defect detection, thereby improving the accuracy of backlight defect detection.
[0049] In step 101, since each camera device is set to correspond to different areas of the backlight module to be tested and there are overlapping areas between adjacent different areas, the purpose is to achieve that the backlight module can be completely photographed. The following describes how to determine the target position corresponding to the camera device, so that each camera device corresponds to different areas of the backlight module to be tested and there are overlapping areas between adjacent different areas.
[0050] like Figure 2 FIG. 1 is a flow chart of a method for determining a target position provided by an embodiment of the present invention, the method comprising the following steps:
[0051] Step 201 : photographing the LCD screen at respective preset positions by respective camera devices to obtain respective LCD screen images.
[0052] In the embodiment of the present invention, in order to more accurately determine the target position, each camera device can capture the LCD screen at its own preset position to obtain each LCD screen image, and then determine whether there is an overlapping area between the LCD screen images to determine the target position. Each camera device captures the LCD screen at its own preset position to obtain each LCD screen image.
[0053] Step 202 , determining whether there is an overlapping area between two adjacent LCD screen images, if so, executing step 203 , if not, executing step 204 .
[0054] In the embodiment of the present invention, since the LCD screen image is obtained by capturing a local area of the LCD screen to be tested by a camera device located at a preset position, in order to determine whether the LCD screen is completely captured when the captured LCD screen images are combined together, it is necessary to determine whether there are overlapping areas between different areas of the LCD screen to be tested and between different adjacent areas. If so, it means that the complete LCD screen has been captured, and if not, it means that the complete LCD screen has not been captured.
[0055] Step 203: determine the preset position of each camera device as the target position.
[0056] Step 204, after adjusting the preset positions of the camera devices, execute step 202.
[0057] In the embodiment of the present invention, it can be seen from the above steps 201 to 204 that by using a liquid crystal screen with the same manufacturing standard as the backlight module to determine the target position of each camera device, it is convenient for each subsequent camera device to be located at its respective target position to capture the backlight module image.
[0058] like Figure 3 FIG. 1 is a flow chart of a method for determining a preprocessing area provided by an embodiment of the present invention, the method comprising the following steps:
[0059] Step 301: extract the area to be detected from the backlight module image.
[0060] In the embodiment of the present invention, each camera device takes a plurality of backlight module images at the respective target positions. For example, camera device A takes 3 backlight module images at the target position, and collects the raw data of the 3 backlight module images, performs average processing on the raw data of the three backlight module images, reduces the influence of noise on defects, obtains average raw data, and then cuts out the area to be inspected according to the average raw data and the overlapping area determined by each LCD screen image.
[0061] Step 302: determine a second connected area where pixels having brightness values greater than a first brightness threshold in the area to be detected are located.
[0062] In the embodiment of the present invention, since the area to be detected includes not only the backlight module but also other backgrounds or components irrelevant to the backlight module, the backlight module is in a luminous state when in working state, while the area that does not belong to the backlight module is not in a luminous state. Therefore, by determining the second connected area where the pixels in the area to be detected whose brightness values are greater than the first brightness threshold are located, the area of the backlight module can be determined from the area to be detected.
[0063] Step 303: determine the area where the minimum circumscribed rectangle of the second connected area is located as the pre-processing area.
[0064] In the embodiment of the present invention, since the second connected area may be an irregular shape, in order to facilitate the subsequent detection of whether there is a backlight defect area, the second connected area needs to be processed. Specifically, the area where the minimum circumscribed rectangle of the second connected area is located is determined as the pre-processing area, wherein the pre-processing area contains both the area of the backlight module and the area that does not belong to the backlight module.
[0065] It can be seen from step 301 to step 303 that by determining a pre-processed area that meets the first brightness threshold from the area to be detected, the backlight defect area can be subsequently detected more accurately according to the pre-processed area.
[0066] like Figure 4 FIG. 1 is a flow chart of a method for determining a backlight defect area provided by an embodiment of the present invention, the method comprising the following steps:
[0067] Step 401, determining a first connected area where pixels having grayscale values greater than a second threshold are located.
[0068] In an embodiment of the present invention, if the grayscale value of a pixel in the preprocessing area is greater than a second threshold, it means that there is a defect in the area corresponding to the pixel. Therefore, it is necessary to determine the first connected area where the pixel having a grayscale value greater than the second threshold is located from the preprocessing area, wherein the first connected area is the defective area. However, since there may be an area in the preprocessing area that does not belong to the backlight module, in order to more accurately determine the backlight defective area, the first connected area cannot be directly determined as the backlight defective area, and subsequent judgment of the first connected area is required.
[0069] Step 402: determine the overlapping area between the first connected area and the refined processing area as a backlight defect area.
[0070] In the embodiment of the present invention, it should be noted that since there may be areas in the pre-processed area that do not belong to the backlight module, it is necessary to further refine the pre-processed area to obtain a refined processing area, wherein the refined processing area is the area of the backlight module. The area where the pixels in the pre-processed area whose brightness value is greater than the second brightness threshold are located is determined as the refined processing area; the second brightness threshold is greater than the first brightness threshold. In order to more accurately determine the backlight defect area, it is necessary to first determine which areas in the first connected area are the areas of the backlight module. Therefore, it is necessary to determine the overlapping area of the first connected area and the refined processing area. The overlapping area is an area belonging to the backlight module and an area belonging to the first connected area. Therefore, the overlapping area of the first connected area and the refined processing area is determined as the backlight defect area.
[0071] It can be seen from step 401 to step 402 that in order to more accurately determine the backlight defect area, it is necessary to compare the first connected area with the refined processing area. If there is an overlapping area, the overlapping area is determined to be the backlight defect area.
[0072] like Figure 5 FIG. 1 is a flow chart of another method for determining a backlight defect area provided by an embodiment of the present invention, the method comprising the following steps:
[0073] Step 501: determine the area where the pixels whose grayscale values are between the first threshold and the second threshold are located as a potential defect area.
[0074] In the embodiment of the present invention, it can be seen from the above step 401 that the first connected area where the pixels whose grayscale values are greater than the second threshold are located can be determined as a defective area, and the area where the pixels whose grayscale values are less than the first threshold are located can be determined as a non-defective area, but the area where the pixels whose grayscale values are between the first threshold and the second threshold are located may or may not be defective. In order to more accurately determine the backlight defect area, it is first necessary to determine the area where the pixels whose grayscale values are between the first threshold and the second threshold are located as a potential defect area. The potential defect area may or may not be a defective area, and subsequent steps are required to make a determination.
[0075] Step 502: determining a backlight defect area according to the grayscale contrast between the potential defect area and the adjacent area.
[0076] In the embodiment of the present invention, the degree of defect in the potential defect area is determined based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; if the degree of defect in the potential defect area is greater than the defect threshold, the overlapping area of the potential defect area and the fine processing area is determined as the backlight defect area. The adjacent area is the area in the pre-processing area other than each potential defect area and adjacent to the potential defect area.
[0077] It can be seen from step 501 to step 502 that the area where the pixels whose grayscale values are between the first threshold and the second threshold are located may also contain backlight defect areas. By using the grayscale contrast between the potential defect area and the adjacent area, defects that meet the characteristics of the human eye can be screened out and the defects that meet the characteristics of the human eye can be determined as backlight defect areas.
[0078] Based on the same technical concept as above, an embodiment of the present invention provides a backlight defect detection device. Figure 6 The device 600 includes: an acquisition unit 601, used to acquire a backlight module image of the backlight module to be tested; the backlight module image is obtained by a camera device located at a target position shooting a local area of the backlight module to be tested; each camera device corresponds to a different area of the backlight module to be tested and there is an overlapping area between adjacent different areas; a processing unit 602, used to determine a pre-processed area that meets a first brightness threshold from the backlight module image; and determine a backlight defect area that meets a grayscale threshold from the pre-processed area.
[0079] Optionally, the processing unit 602 is specifically used to: determine the backlight defect area based on the pixel points whose grayscale values are greater than the second threshold; determine the area where the pixel points whose grayscale values are between the first threshold and the second threshold are located as the potential defect area; determine the backlight defect area based on the grayscale contrast between the potential defect area and the adjacent area.
[0080] Optionally, the processing unit 602 is specifically used to: determine whether the potential defect area is a backlight defect area based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; the adjacent area is an area in the preprocessing area other than the potential defect areas and adjacent to the potential defect area.
[0081] Optionally, the processing unit 602 is specifically used to: determine a first connected area where pixels whose grayscale values are greater than a second threshold are located; determine the overlapping area between the first connected area and the fine-processing area as a backlight defect area; the fine-processing area is an area where pixels whose brightness values in the pre-processing area are greater than a second brightness threshold are located; the second brightness threshold is greater than the first brightness threshold.
[0082] Optionally, the processing unit 602 is specifically used to: determine the defect degree of the potential defect area based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; if the defect degree of the potential defect area is greater than the defect threshold, then determine the overlapping area of the potential defect area and the fine-processing area as the backlight defect area.
[0083] Optionally, the acquisition unit 601 is further used to: obtain each LCD screen image by photographing the LCD screen at its respective target position through each camera device; the backlight module of the LCD screen and the backlight module to be tested are derived from the same manufacturing standard; and determine whether there is an overlapping area between each LCD screen image.
[0084] Optionally, the processing unit 602 is specifically used to: cut out the area to be detected from the backlight module image; wherein the area to be detected corresponding to each camera device is determined according to each LCD screen image; and determine a preprocessing area that meets a first brightness threshold from the area to be detected.
[0085] Optionally, the processing unit 602 is specifically used to: determine a second connected area where pixels having brightness values greater than a first brightness threshold in the area to be detected are located; and determine an area where a minimum circumscribed rectangle of the second connected area is located as a preprocessing area.
[0086] Based on the same technical concept, the embodiment of the present application also provides an electronic device, such as Figure 7 As shown, the electronic device 700 includes at least one processor 701 and a memory 702 connected to the at least one processor. The specific connection medium between the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 For example, the processor 701 and the memory 702 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0087] In the embodiment of the present application, the memory 702 stores instructions that can be executed by at least one processor 701. The at least one processor 701 can execute the steps included in the aforementioned backlight defect detection method by executing the instructions stored in the memory 702.
[0088] Among them, the processor 701 is the control center of the computing device, and can use various interfaces and lines to connect various parts of the computing device, and realize data processing by running or executing instructions stored in the memory 702 and calling data stored in the memory 702. Optionally, the processor 701 may include one or more processing units, and the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes the issuance of instructions. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0089] The processor 701 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the backlight defect detection method may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0090] The memory 702 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 702 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 702 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0091] Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program that can be executed by a computing device. When the program runs on the computing device, the computing device executes the steps of the above-mentioned backlight defect detection method.
[0092] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0093] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0096] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0097] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A backlight defect detection method, It is characterized in that include: Acquire a backlight module image of the backlight module to be tested; The backlight module image is obtained by photographing a local area of the backlight module to be tested by a camera device located at a target position; Each camera device corresponds to a different area of the backlight module to be tested, and there is an overlapping area between adjacent different areas; Determining a pre-processed area that meets a first brightness threshold from the backlight module image; A backlight defect area satisfying a grayscale threshold is determined from the pre-processed area.
2. The method according to claim 1, It is characterized in that Determining a backlight defect area satisfying a grayscale threshold from the pre-processed area includes: Determine a backlight defect area according to pixels whose grayscale values are greater than a second threshold; Determine the area where the pixels whose grayscale values are between the first threshold and the second threshold are located as a potential defect area; A backlight defect area is determined according to the grayscale contrast between the potential defect area and an adjacent area.
3. The method according to claim 2, It is characterized in that The step of determining whether the potential defect area is a backlight defect area according to the grayscale contrast between the potential defect area and an adjacent area includes: Whether the potential defect area is a backlight defect area is determined based on the grayscale contrast between the potential defect area and the adjacent area and the area of the potential defect area; the adjacent area is an area in the preprocessing area other than the potential defect areas and adjacent to the potential defect area.
4. The method according to claim 2, It is characterized in that The step of determining the backlight defect area according to the pixel points whose grayscale values are greater than the second threshold value includes: Determine a first connected region where pixels having gray values greater than a second threshold value are located; The overlapping area between the first connected area and the refined processing area is determined as the backlight defect area; the refined processing area is the area where the pixels in the pre-processing area whose brightness value is greater than the second brightness threshold are located; the second brightness threshold is greater than the first brightness threshold.
5. The method according to claim 3, It is characterized in that The determining whether the potential defect region is a backlight defect region according to the grayscale contrast between the potential defect region and the adjacent region and the area of the potential defect region comprises: Determining the degree of defect of the potential defect region according to the grayscale contrast between the potential defect region and adjacent regions and the area of the potential defect region; If the defect degree of the potential defect area is greater than the defect threshold, the overlapping area of the potential defect area and the fine processing area is determined as the backlight defect area.
6. The method according to any one of claims 1 to 5, It is characterized in that Before acquiring the backlight module image of the backlight module to be tested, the method further includes: The LCD screen is photographed at the respective target positions by the respective camera devices to obtain respective LCD screen images; the backlight module of the LCD screen and the backlight module to be tested are derived from the same manufacturing standard; It is determined that there is an overlapping area between the liquid crystal screen images.
7. The method according to claim 6, It is characterized in that Determining a pre-processed area satisfying a first brightness threshold from the backlight module image includes: Cut out the area to be detected from the backlight module image; wherein the area to be detected corresponding to each camera device is determined according to each LCD screen image; A pre-processed area satisfying a first brightness threshold is determined from the area to be detected.
8. The method according to claim 7, It is characterized in that Determining a pre-processed area that meets a first brightness threshold from the area to be detected includes: Determine a second connected area where pixels having brightness values greater than a first brightness threshold in the area to be detected are located; The area where the minimum circumscribed rectangle of the second connected area is located is determined as the pre-processing area.
9. A backlight defect detection device, It is characterized in that include: An acquisition unit, used for acquiring a backlight module image of the backlight module to be tested; The backlight module image is obtained by photographing a local area of the backlight module to be tested by a camera device located at a target position; Each camera device corresponds to a different area of the backlight module to be tested, and there is an overlapping area between adjacent different areas; A processing unit, configured to determine a pre-processed area satisfying a first brightness threshold from the backlight module image; A backlight defect area satisfying a grayscale threshold is determined from the pre-processed area.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of any one of the methods of claims 1-8 are implemented.
11. A computer-readable storage medium, It is characterized in that It stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the steps of any method described in claims 1-8.
