Fast automatic exposure method and system based on feature map
Through the fast automatic exposure method based on feature maps, the feature map is drawn and the fast exposure model is constructed, and the problem of time-consuming display screen detection in the existing technology is solved, and the rapid automatic exposure of different grayscale screens is achieved, which is suitable for a variety of purposes Display panel improves detection efficiency and accuracy.
Patent Information
- Application Number
- CN202210440777.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-25
AI Technical Summary
When detecting and demura on the display screen, it is necessary to expose the pictures of different grayscales separately, which results in a long time. When the initial exposure is close to the optimal ideal value, it takes a short time to terminate iteratively, and vice versa. , there are time-consuming defects.
Fast automatic exposure method based on feature maps, by drawing feature maps, building fast exposure models, calculating the exposure time required for different grayscale screens, using industrial camera shooting and brightness response curves, combining gamma curves and local neighborhood search iterations, Achieve fast automatic exposure.
It reduces the number of times the display panel switches the screen, reduces the exposure time, and improves efficiency. It is suitable for LCD, OLED and other display panels, enhancing applicability and robustness.
Smart Images

Figure CN114827486B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display panel detection, and in particular to a fast automatic exposure method and system based on a feature map. Background Art
[0002] When testing and demodulating display screens such as OLED, LCD, and uLED, the prerequisite is to capture the required display screen image with appropriate exposure time and gain.
[0003] The existing technology is to expose the pictures of different grayscales separately, and iterate according to the initial exposure results, traverse all the displayed pictures, and then obtain the required exposure time. There are two problems with this mode: first, the display screen needs to be switched to obtain the required picture, which is time-consuming and inefficient. Second, when exposing a specified picture, if the initial exposure is close to the optimal ideal value, the iterative neighborhood search is terminated when the error is satisfied. At this time, the time consumption is short. Otherwise, the time consumption is long, that is, there is also a time-consuming defect. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method and system for fast automatic exposure based on feature maps, which can draw the feature maps required for fast automatic exposure according to information such as screen resolution, SPR, and grayscale required for shooting, and build a fast exposure model to output the exposure time required for shooting screen images of different grayscales, thereby realizing fast automatic exposure of Demura equipment and solving the time-consuming problem.
[0005] In order to solve the above technical problems, the present invention provides a fast automatic exposure method based on a feature map, comprising the following steps: S1, based on the resolution of the screen to be tested, SPR and the grayscale required for shooting the screen image, drawing the feature map required for automatic exposure; S2, the camera shoots the feature map according to a preset exposure time, and calculates the gamma curve of the screen to be tested according to the image obtained by shooting; S3, based on the feature map, the gamma curve, the exposure time and the brightness response curve of the camera, a fast exposure model is constructed, and the fast exposure model calculates and outputs the exposure time required for shooting screen images of different grayscales to achieve fast automatic exposure; S4, the feature map is shot again according to the exposure time output by the fast exposure model, and the exposure time of the shot image is verified to obtain the exposure value corresponding to the exposure time in S3; S5, the exposure value is compared with the actual exposure value of the feature map, if the relative error is within the preset range, the fast exposure model is successfully constructed; if the relative error is not within the preset range, return to S3, and iterate the fast exposure model based on the local neighborhood search.
[0006] Preferably, the construction of the fast exposure model specifically includes: establishing a relationship equation between the exposure time and the brightness response curve of the camera:
[0007] gray camera =k*exp*gain*lum+b; where gray camera is the gray value of the image taken by the camera, exp is the exposure time, gain is the gain coefficient, lum is the absolute brightness, b and k are equation coefficients; establish the gamma curve equation:
[0008] Among them, lum is the display brightness of the screen, lum max is the maximum display brightness of the screen, gray screen Display grayscale for the screen, gray max is the maximum grayscale displayed on the screen, and gamma is an equation parameter; the relationship equation and the gamma curve equation are calculated together to obtain the fast exposure model equation:
[0009]
[0010] Preferably, the value range of the equation parameter gamma is 2.1-2.3.
[0011] Preferably, the local neighborhood search includes a gradient descent algorithm, and the steps of the gradient descent algorithm are:
[0012] Establish Taylor's formula:
[0013] Establish the objective function f(x+Δx)<f(x);
[0014] The f(x) is defined as: Wherein, f(x) represents the sum of squares of the errors between the exposure value output by the fast exposure model and the actual exposure value of the feature map.
[0015] Preferably, the feature map-based fast automatic exposure method further includes S6, a Demura device tests the screen to be tested based on the successfully constructed fast exposure model.
[0016] Preferably, the screen to be tested includes LCD, OLED, MiniLED and ULED.
[0017] Preferably, the camera is an industrial camera, and its model is VieworksVC-151MC-M / 5H.
[0018] Preferably, a fast automatic exposure system based on a feature map is characterized in that it includes: a feature map acquisition module, which acquires the feature map required for automatic exposure according to the resolution, SPR and grayscale required for photographing the screen to be tested; an industrial camera module, which photographs the feature map according to a preset exposure time, and calculates the gamma curve of the screen to be tested according to the photographed image; a fast exposure model, which is used to calculate and output the exposure time required for photographing screens of different grayscales to achieve fast automatic exposure; an exposure time verification module, which photographs the feature map again according to the exposure time output by the fast exposure model, and performs exposure time verification on the photographed image to obtain the grayscale value corresponding to the exposure time output by the fast exposure model; an error calculation module, which is used to compare the grayscale value corresponding to the exposure time output by the fast exposure model with the actual grayscale value of the feature map to obtain a relative error value; and an adjustment module, which is used to iterate the fast exposure model so that the relative error is within a preset range.
[0019] Preferably, the fast exposure model is constructed based on the characteristic map, gamma curve, exposure time and brightness response curve of the camera.
[0020] A computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the feature map-based fast automatic exposure method is executed.
[0021] A screen detection device is used to test a screen to be tested, and the screen detection device includes the fast automatic exposure method based on a feature map.
[0022] The above technical solution of the present invention has the following advantages compared with the prior art:
[0023] 1. The present invention reduces the number of times the display panel switches screens. By constructing a fast exposure model, it can output the exposure time required for shooting screen images of different grayscales, realize fast automatic exposure, thereby reducing the time required and facilitating the operation.
[0024] 2. The present invention iterates the rapid exposure model based on local neighborhood search, allowing the rapid exposure model to dynamically converge and improve accuracy.
[0025] 3. The present invention has a wide range of applications, strong adaptability, and high robustness, and can be well applied to display panels such as LCD, OLED, minlied, and uled. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
[0027] Figure 1 is a flow chart of a fast automatic exposure method based on a feature map according to the present invention;
[0028] Figure 2 A characteristic map required for automatic exposure drawn in the present invention;
[0029] Figure 3 is a schematic diagram of a brightness response curve of a camera of the present invention;
[0030] Figure 4 is the gamma curve of the screen to be tested of the present invention;
[0031] Figure 5 The image captured by the camera of the present invention;
[0032] Figure 6 This is a grayscale image captured by the camera of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0034] The present invention discloses a fast automatic exposure method based on a feature map, referring to Figure 1 As shown, the following steps are included:
[0035] Step 1: Based on the resolution of the screen to be tested, SPR, and grayscale required for capturing the screen image, draw the feature map required for automatic exposure.
[0036] Among them, SPR is interpreted as the generated executable screen file, and the above-mentioned screens to be tested include but are not limited to LCD, OLED, MiniLED and ULED.
[0037] Further, in this embodiment, the resolution, SPR and grayscale required for capturing the screen image of the screen to be tested may preferably be as shown in Table 1 below.
[0038] Table 1 Resolution, SPR and grayscale required to capture the screen image of the screen to be tested
[0039]
[0040] The feature map required for automatic exposure is drawn based on the content of Table 1 Figure 2 For reference Figure 2 shown.
[0041] Step 2: Select an industrial camera. The industrial camera captures the above-mentioned feature map according to the preset appropriate exposure time, and calculates and outputs the gamma curve of the screen to be tested based on the captured image.
[0042] In this embodiment, the industrial camera may preferably be VieworksVC-151MC-M / C5H. The gamma curve of the RGB image of the screen to be tested is calculated based on the image captured by the industrial camera. The gamma curve of the RGB image of the screen to be tested is referenced to Figure 4 shown.
[0043] The brightness response curve of the camera is measured. In this embodiment, the brightness response curve of the industrial camera is as follows: Figure 3 As shown by Figure 3 It can be seen that the effective range of the camera brightness response curve can be approximated and iterated using a linear model.
[0044] Step 3: Algorithm modeling: Based on the above feature map, gamma curve, exposure time and camera brightness response curve, a fast exposure model is constructed. The fast exposure model can calculate the exposure time required to output screen images of different grayscales and achieve fast automatic exposure.
[0045] Compared with the existing technology, the number of times the display panel switches the screen is reduced. By building a fast exposure model, the exposure time required to shoot screen images of different grayscales can be output, and fast automatic exposure can be achieved, thereby reducing the time required and facilitating the operation.
[0046] The steps to construct a fast exposure model are as follows: Assume that the relationship between exposure time and the camera's brightness response curve is as follows: gray camera =k*exp*gain*lum+b, where gray camera is the grayscale value of the image taken by the camera, exp is the exposure time, gain is the gain coefficient, lum is the absolute brightness, b and k are the equation coefficients.
[0047] The theoretical brightness of the grayscale captured by the industrial camera is calculated based on the above gamma curve, and then the exposure value corresponding to each grayscale is calculated through the above brightness response curve. The gamma curve equation is established as follows: Among them, lum is the display brightness of the screen, lum max is the maximum display brightness of the screen, gray screen Display grayscale for the screen, gray max is the maximum grayscale displayed on the screen, and gamma is the equation parameter. Preferably, the value range of gamma is 2.1-2.3, gray max The value is 255.
[0048] Furthermore, the above relationship equation and the gamma curve equation are calculated together to obtain the fast exposure model equation:
[0049]
[0050] The above-mentioned fast exposure model calculation can output the exposure time required for shooting screen images of different gray levels, thereby realizing fast automatic exposure.
[0051] First adjust the exposure value, then adjust the gain, so that the image quality of the industrial camera can be optimized. In this embodiment, the image collected by the camera is referenced Figure 5 As shown, Figure 6 The grayscale image is acquired by the camera. After steps 1 to 3, a fast exposure model can be initially established to achieve fast automatic exposure.
[0052] Step 4: Considering issues such as screen stability, the above feature map is photographed again according to the exposure time output by the fast exposure model, and the exposure time of the photographed image is verified to obtain the exposure value corresponding to the exposure time in step 3.
[0053] Step 5: Compare the exposure value output by the model with the actual exposure value obtained by the camera capturing the feature map to obtain a relative error. If the relative error is within the preset range, the rapid exposure model is successfully constructed; if the relative error is not within the preset range, return to step 3 and iterate the rapid exposure model based on the local neighborhood search. Iterating the rapid exposure model based on the local neighborhood search allows the rapid exposure model to converge dynamically, effectively improving the accuracy.
[0054] The local neighborhood search includes the gradient descent algorithm. The main process of gradient descent is as follows:
[0055] Establish Taylor's formula:
[0056] Establish the objective function f(x+Δx)<f(x);
[0057] The f(x) is defined as: Wherein, f(x) represents the sum of squares of the errors between the exposure value output by the fast exposure model and the actual exposure value of the captured feature map.
[0058] Through steps four to six, the fast exposure model can be further adjusted to make the model more accurate and achieve fast automatic exposure.
[0059] Step 6: The Demura device tests the screen to be tested based on the successfully constructed fast exposure model.
[0060] Furthermore, in this example, the above-mentioned fast automatic exposure method is used to test the screen to be tested, and the exposure values for shooting screen images of different grayscales are obtained. The results are shown in Table 2.
[0061] Table 2 Exposure values for shooting screen images with different grayscales
[0062] project 32 64 128 192 224 R 7001.4 2633.86 500.1 100.02 50.01 G 7001.4 1850.37 400.08 83.35 33.34 B 7001.4 2067.08 433.42 100.02 33.34
[0063] The present invention also discloses a computer-readable storage medium, in which instructions are stored. When the instructions are executed by a processor, the feature map-based fast automatic exposure method is executed.
[0064] Furthermore, based on the above-mentioned fast automatic exposure method of the feature map, the present invention also proposes a fast automatic exposure system based on the feature map, which includes:
[0065] The feature map acquisition module acquires the feature map required for automatic exposure according to the resolution of the screen to be tested, the SPR and the grayscale required for shooting the screen.
[0066] The industrial camera module shoots the feature map according to the preset exposure time, and calculates the gamma curve of the screen to be tested based on the captured image.
[0067] The fast exposure model is used to calculate the exposure time required to output and shoot screens with different grayscales, thereby achieving fast automatic exposure.
[0068] The exposure time verification module re-shoots the feature map according to the exposure time output by the fast exposure model, and performs exposure time verification on the captured image to obtain the grayscale value corresponding to the exposure time output by the fast exposure model.
[0069] The error calculation module is used to compare the exposure value corresponding to the exposure time output by the fast exposure model with the actual exposure value of the shooting feature map to obtain a relative error value.
[0070] The adjustment module is used to iterate the fast exposure model so that the relative error is within a preset range.
[0071] The fast exposure model is built based on the feature map, gamma curve, exposure time and the brightness response curve of the camera.
[0072] The present invention also proposes a screen detection device, which is used to test a screen to be tested. The screen detection device includes the above-mentioned fast automatic exposure method based on the feature map.
[0073] The present invention can draw the feature map required for fast automatic exposure according to information such as screen resolution, SPR, and grayscale required for shooting, and build a fast exposure model to output the exposure time required for shooting screen images of different grayscales, thereby realizing fast automatic exposure of Demura equipment and solving the time-consuming problem.
[0074] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.
Claims
1. A fast automatic exposure method based on a feature map, characterized in that: The following steps are involved: S1. Draw a feature map required for automatic exposure based on the resolution and SPR of the screen to be tested and the grayscale required for photographing the screen image; S2, the camera shoots the characteristic graph according to a preset exposure time, and calculates the gamma curve of the screen to be tested according to the captured image; S3, constructing a fast exposure model based on the characteristic graph, the gamma curve, the exposure time and the brightness response curve of the camera, wherein the fast exposure model calculates and outputs the exposure time required for shooting screen images of different grayscales; S4, photographing the feature map again according to the exposure time output by the fast exposure model, and performing exposure time verification on the photographed image to obtain an exposure value corresponding to the exposure time in S3; S5. Compare the exposure value with the actual exposure value of shooting the feature map. If the relative error is within the preset range, the fast exposure model is successfully constructed to achieve fast automatic exposure. If the relative error is not within the preset range, return to S3 and iterate the fast exposure model.
2. The fast automatic exposure method based on feature map according to claim 1, characterized in that: The method for constructing the rapid exposure model includes: Establish the relationship equation between exposure time and camera brightness response curve: gray camera =k*exp*gain*lum+b; where gray camera is the grayscale value of the image taken by the camera, exp is the exposure time, gain is the gain coefficient, lum is the absolute brightness, b and k are equation coefficients; Establish the gamma curve equation: Among them, lum is the display brightness of the screen, lum max is the maximum display brightness of the screen, gray screen Display grayscale for the screen, gray max is the maximum grayscale displayed by the screen, and gamma is the equation parameter; The relationship equation and the gamma curve equation are calculated simultaneously to obtain the fast exposure model equation:
3. The fast automatic exposure method based on feature map according to claim 2, characterized in that: The value range of the equation parameter gamma is 2.1-2.
3.
4. The fast automatic exposure method based on feature map according to claim 2, characterized in that: The fast exposure model is iterated based on a local neighborhood search.
5. The fast automatic exposure method based on feature map according to claim 4, characterized in that: The local neighborhood search includes a gradient descent algorithm, and the steps of the gradient descent algorithm are: Establish Taylor's formula: Establish the objective function f(x+Δx)<f(x); The f(x) is defined as: Wherein, f(x) represents the sum of squares of the errors between the exposure value output by the fast exposure model and the actual exposure value of the feature map.
6. The fast automatic exposure method based on feature map according to claim 1, characterized in that: The screens to be tested include LCD, OLED, MiniLED and ULED.
7. The fast automatic exposure method based on feature map according to claim 1, characterized in that: The camera is an industrial camera, and its model is VieworksVC-151MC-M / 5H.
8. A fast automatic exposure system based on a feature map, characterized in that: include: A feature map acquisition module, which acquires a feature map required for automatic exposure according to the resolution of the screen to be tested, the SPR and the grayscale required for photographing the screen; An industrial camera module, which shoots the characteristic graph according to a preset exposure time, and calculates the gamma curve of the screen to be tested based on the shot image; Fast exposure model, which is used to calculate the exposure time required to output different grayscale screen shots to achieve fast automatic exposure; An exposure time verification module, which re-shoots the feature map according to the exposure time output by the fast exposure model, and performs exposure time verification on the captured image to obtain a grayscale value corresponding to the exposure time output by the fast exposure model; An error calculation module, which is used to compare the grayscale value corresponding to the exposure time output by the fast exposure model with the actual grayscale value of the feature map to obtain a relative error value; An adjustment module is used for iterating the fast exposure model so that the relative error is within a preset range.
9. The fast automatic exposure system based on feature map according to claim 8, characterized in that: The fast exposure model is constructed based on the feature map, the gamma curve, the exposure time and the brightness response curve of the camera.
10. A screen detection device, used for testing a screen to be tested, the screen detection device comprising the fast automatic exposure method based on a feature map as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Fast automatic exposure method and system based on defect detection of display panel
CN109167928A
Rapid and automatic exposure graph and generation method thereof
CN109302571A
Automatic exposure adjusting method for binocular camera of fire-fighting robot
CN113382143A
Image acquisition method and apparatus, and storage medium
WO2021046793A1
Fast auto-exposure method for camera, and storage medium
WO2022067496A1
