A fast automatic exposure method, device and storage medium for display screen Demura

By automatically adjusting the exposure time using exposure time model and histogram analysis during the display screen Demura process, the problem of manual adjustment dependence and increase of iterations in the existing technology is solved, and the operating efficiency of the display screen Demura is improved.

CN118707785BActive Publication Date: 2024-11-08SHENZHEN SEICHITECH TECHN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411170787.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-08
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

During the existing display Demura process, the control of camera exposure depends on manual manual adjustment, which is time-consuming and labor-intensive and susceptible to human factors. When the automatic exposure technology is set at a lower grayscale or the initial exposure time is unreasonable, the number of iterations increases and decreases. Operational efficiency.

Method used

By obtaining the picture to be collected and setting the target grayscale, the initial exposure time is calculated using the exposure time model, combined with histogram analysis and correction, the exposure time is automatically adjusted to achieve rapid automatic exposure of the camera during the display screen Demura process.

Benefits of technology

It reduces the number of exposure time adjustments, reduces iteration time, improves operation efficiency, and realizes the camera's rapid automatic exposure during the display screen Demura process, avoiding manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707785B_ABST
    Figure CN118707785B_ABST
Patent Text Reader

Abstract

The present application discloses a fast automatic exposure method, device and storage medium for display screen Demura, which is used to reduce iteration time and improve operation efficiency. The present application includes: obtaining a picture to be collected, setting actual brightness and target grayscale for the picture to be collected; calculating the initial exposure time through the actual brightness, target grayscale and exposure time model; adjusting the camera using the calculated initial exposure time, and inputting the corresponding picture to be collected into the display screen to be tested; using the camera to collect images of the display screen to be tested, and generating a display screen collection image; performing histogram analysis on the display screen collection image, and generating a histogram mean according to the histogram analysis result; performing a compliance analysis on the histogram mean according to the target grayscale corresponding to the display screen collection image; if the standard is not met, correcting the initial exposure time, and re-collecting and analyzing; if the standard is met, switching to the next picture to be collected for analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of display screen detection, and in particular to a method, device and storage medium for fast automatic exposure of display screen Demura. Background Art

[0002] With the rapid development of industry and Internet technology, the industry's requirements for industrial product quality are becoming more refined and standardized. As far as the display panel industry is concerned, product quality directly affects its product competitiveness.

[0003] As one of the display components of the device, the display screen is used in various high-end devices, such as mobile phones, TVs, tablet computers, etc. As people's requirements for screen display continue to increase, the display screen has gradually become a technologically sophisticated product.

[0004] In the field of display manufacturing, the Demura process is an important process step used to correct the brightness uniformity and color uniformity of each pixel on the display to ensure the accuracy and consistency of the displayed image. In the field of display manufacturing, good imaging quality is the basis for Demura and defect detection analysis, which directly affects the accuracy of the detection process. When the imaging device is determined, the exposure is a key variable that affects the camera's imaging quality.

[0005] At present, the control of camera exposure generally relies on manual adjustment of exposure parameters, which is not only time-consuming and labor-intensive, but also easily affected by human factors. The existing automatic exposure technology based on display screen visual processing is usually implemented based on the set target grayscale, through multiple exposure image analysis and iterative approximation principle. However, for lower grayscale images or unreasonable initial exposure time settings, the number of iterations will increase. This type of processing method will increase iteration time and reduce operating efficiency. Summary of the invention

[0006] The present application discloses a method, device and storage medium for fast automatic exposure of display screen Demura, which are used to reduce iteration time and improve operation efficiency.

[0007] The first aspect of the present application discloses a fast automatic exposure method for display screen Demura, comprising:

[0008] Obtain several images to be collected, set the actual brightness for each image to be collected, and set the target grayscale of the display screen collection image corresponding to the image to be collected;

[0009] The actual brightness and target grayscale are input into the exposure time model to calculate the initial exposure time of each image to be collected. The exposure time model is an initial exposure time calculation model generated after the camera is calibrated for brightness, grayscale and exposure time under the current working conditions.

[0010] Use the calculated initial exposure time to adjust the camera and input the corresponding image to be collected into the display screen to be tested;

[0011] Use a camera to capture images of the display screen to be tested, and generate a captured image of the display screen;

[0012] Performing histogram analysis on the image collected from the display screen, and generating a histogram mean value according to the histogram analysis result;

[0013] Perform compliance analysis on the histogram mean according to the target grayscale corresponding to the image collected by the display screen;

[0014] If the histogram mean does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean, and the initial exposure time is used to re-collect, analyze the histogram, and analyze the standard;

[0015] If the histogram mean value meets the standard, it is determined that the grayscale of the display screen image corresponding to the current picture to be collected is qualified, and the next picture to be collected is switched to for analysis until all pictures to be collected are processed.

[0016] Optionally, before acquiring a plurality of pictures to be collected, setting an actual brightness for each picture to be collected, and setting a target grayscale of a display screen collection image corresponding to the picture to be collected, the fast automatic exposure method further includes:

[0017] Inputting the maximum grayscale image to the calibration display screen for display, and acquiring a first calibration image of the calibration display screen through a camera;

[0018] Calculating the average brightness of the central area of ​​the display screen according to the first image data of the first calibration image;

[0019] Set the grayscale upper and lower limits;

[0020] The exposure time range corresponding to the camera is determined by the grayscale upper limit and grayscale lower limit;

[0021] Using a camera, collect at least two second calibration images within an exposure time range;

[0022] Calculating the grayscale mean value of each second calibration image in the central area according to the second image data of the second calibration image;

[0023] The exposure time model of the camera under the current working conditions is generated by fitting according to the exposure time of the camera, the brightness mean value of the central area of ​​the display screen and the grayscale mean value of the second calibration image in the central area.

[0024] Optionally, the exposure time range corresponding to the camera is determined by the grayscale upper limit and the grayscale lower limit, including:

[0025] The calibration display screen is photographed by a camera, and the exposure time of the camera is adjusted during the photographing process to generate a third calibration image;

[0026] When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale upper limit, determining the current exposure time to be the first exposure time;

[0027] When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale lower limit, the current exposure time is determined to be the second exposure time, and the first exposure time and the second exposure time form an exposure time range.

[0028] Optionally, using a camera to capture at least two second calibration images within an exposure time range includes:

[0029] Determine the exposure time collection interval according to the exposure time range;

[0030] The maximum grayscale image is input to the calibration display screen for display, and the camera is used to collect images according to the exposure time collection interval to generate a second calibration image.

[0031] Optionally, performing a histogram analysis on the image captured by the display screen, and generating a histogram mean according to the histogram analysis result, including:

[0032] Dividing the image captured for the display screen into gray levels and determining the number of gray levels;

[0033] Determine frequency distribution data of each gray level for the display screen acquisition image;

[0034] Determine the total number of pixels of the display screen to capture the image;

[0035] The histogram mean of the display screen captured image is calculated based on the number of gray levels, the frequency distribution data of each gray level and the total number of pixels.

[0036] Optionally, dividing the grayscale levels for the image captured by the display screen and determining the number of grayscale levels includes:

[0037] Obtain the gray value data of each pixel in the image collected by the display screen;

[0038] Performing regional pixel attention calculation for pixel points of the image collected by the display screen according to the gray value data to generate regional attention data;

[0039] Dividing attention areas of different gray levels on the captured image of the display screen according to the regional attention data;

[0040] Generate an attention matrix for edge pixels between different attention regions according to the gray value data to generate a regional attention matrix;

[0041] Divide the pixels in the attention area into different gray levels according to the regional attention matrix;

[0042] Determine the gray levels and the number of gray levels for the two divisions.

[0043] The second aspect of the present application discloses a fast automatic exposure device for display screen Demura, comprising:

[0044] An acquisition unit, used to acquire a number of images to be collected, set an actual brightness for each image to be collected, and set a target grayscale of a display screen collection image corresponding to the image to be collected;

[0045] A first calculation unit is used to input the actual brightness and the target grayscale into an exposure time model to calculate the initial exposure time of each picture to be collected, where the exposure time model is an initial exposure time calculation model generated after the camera is calibrated for brightness, grayscale and exposure time under current working conditions;

[0046] An adjustment unit, used to adjust the camera using the calculated initial exposure time, and input the corresponding picture to be collected into the display screen to be tested;

[0047] The first generating unit is used to use a camera to collect images of the display screen to be tested, and generate a display screen captured image;

[0048] The second generating unit is used to perform histogram analysis on the image collected by the display screen, and generate a histogram mean according to the histogram analysis result;

[0049] An analysis unit, used to perform a standard-reaching analysis on the histogram mean according to a target grayscale corresponding to the image captured by the display screen;

[0050] A correction unit, used to correct the initial exposure time according to the target grayscale and the histogram mean if the histogram mean does not meet the standard, and then use the initial exposure time to re-perform acquisition, histogram analysis and standard analysis;

[0051] The first determination unit is used to determine that the grayscale of the display screen image corresponding to the current picture to be collected is qualified if the histogram mean is within a preset range, and switch to the next picture to be collected for analysis until all pictures to be collected are processed.

[0052] Optionally, before the acquisition unit, the fast automatic exposure device further includes:

[0053] A first acquisition unit, used for inputting a maximum grayscale image into a calibration display screen for display, and acquiring a first calibration image of the calibration display screen through a camera;

[0054] A second calculation unit, used for calculating the brightness mean value of the central area of ​​the display screen according to the first image data of the first calibration image;

[0055] A setting unit, used to set the grayscale upper limit and grayscale lower limit;

[0056] A second determining unit, used to determine the exposure time range corresponding to the camera according to the grayscale upper limit and the grayscale lower limit;

[0057] A second acquisition unit, used to acquire at least two second calibration images within an exposure time range using a camera;

[0058] A third calculation unit, used for calculating the grayscale mean value of each second calibration image in the central area according to the second image data of the second calibration image;

[0059] The third generating unit is used to generate an exposure time model of the camera under current working conditions by fitting according to the exposure time of the camera, the brightness mean value of the central area of ​​the display screen and the grayscale mean value of the second calibration image in the central area.

[0060] Optionally, the second determining unit includes:

[0061] The calibration display screen is photographed by a camera, and the exposure time of the camera is adjusted during the photographing process to generate a third calibration image;

[0062] When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale upper limit, determining the current exposure time to be the first exposure time;

[0063] When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale lower limit, the current exposure time is determined to be the second exposure time, and the first exposure time and the second exposure time form an exposure time range.

[0064] Optionally, the second acquisition unit includes:

[0065] Determine the exposure time collection interval according to the exposure time range;

[0066] The maximum grayscale image is input to the calibration display screen for display, and the camera is used to collect images according to the exposure time collection interval to generate a second calibration image.

[0067] Optionally, the second generation unit includes:

[0068] A first determination module, used for dividing the grayscale levels of the image captured by the display screen and determining the number of grayscale levels;

[0069] A second determination module is used to determine the frequency distribution data of each gray level for the image collected by the display screen;

[0070] A third determination module is used to determine the total number of pixels of the image captured by the display screen;

[0071] The calculation module is used to calculate the histogram mean of the image collected by the display screen according to the number of gray levels, the frequency distribution data of each gray level and the total number of pixels.

[0072] Optionally, the first determining module includes:

[0073] Obtain the gray value data of each pixel in the image collected by the display screen;

[0074] Performing regional pixel attention calculation for pixel points of the image collected by the display screen according to the gray value data to generate regional attention data;

[0075] Dividing attention areas of different gray levels on the captured image of the display screen according to the regional attention data;

[0076] Generate an attention matrix for edge pixels between different attention regions according to the gray value data to generate a regional attention matrix;

[0077] Divide the pixels in the attention area into different gray levels according to the regional attention matrix;

[0078] Determine the gray levels and the number of gray levels for the two divisions.

[0079] The third aspect of the present application provides a fast automatic exposure device for display screen Demura, comprising:

[0080] Processor, memory, input-output unit, and bus;

[0081] The processor is connected to the memory, the input and output unit, and the bus;

[0082] The memory stores a program, and the processor calls the program to execute the first aspect and any optional fast automatic exposure method of the first aspect.

[0083] A fourth aspect of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional fast automatic exposure method of the first aspect.

[0084] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0085] In this application, firstly, several images to be collected are obtained, the actual brightness is set for each image to be collected, and the target grayscale of the display screen acquisition image corresponding to the image to be collected is set. The initial exposure time of each image to be collected is calculated by inputting the actual brightness and the target grayscale into the exposure time model generated by the camera, wherein the exposure time model is an initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under the current working conditions. The camera is adjusted using the calculated initial exposure time, and the corresponding image to be collected is input into the display screen to be tested. The initial exposure time at this time is not necessarily the optimal exposure time, but is relatively close to the optimal exposure time. The camera is used to collect images of the display screen to be tested, and a display screen acquisition image is generated. The display screen acquisition image is subjected to histogram analysis, and the data of different grayscale levels in the display screen acquisition image is obtained as the analysis result, and the corresponding histogram mean is calculated according to the histogram analysis result. The histogram mean is subjected to standard analysis according to the target grayscale corresponding to the display screen acquisition image. If the histogram mean does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean, and the initial exposure time is used to re-collect, analyze the histogram, and analyze the standard. If the histogram mean meets the standard, it is determined that the grayscale of the display screen image corresponding to the current image to be collected is qualified, and the next image to be collected is switched to analyze until all images to be collected are processed.

[0086] The industrial-grade camera used in the Demura process is calibrated in advance to establish a mathematical model between brightness, grayscale and exposure time. Then, the initial exposure time of the grayscale image to be captured is calculated based on the exposure time model, the brightness of the required grayscale image (the image to be captured) and the target grayscale of the display screen capture image corresponding to the image to be captured. The camera is adjusted using the calculated initial exposure time, and then the image to be detected displayed on the display screen is captured by the camera. The grayscale histogram analysis of the captured display screen image is performed to determine whether the grayscale on the display screen capture image is qualified and then determine whether the exposure time is in compliance. If it is not qualified, the target grayscale of the display screen capture image and the histogram mean are used to further correct and adjust the exposure time, thereby realizing the fast automatic exposure of the camera in the display screen Demura process. This method does not require manual adjustment, and the auxiliary correction of the initial exposure time by histogram analysis, grayscale level and histogram mean greatly reduces the number of exposure time adjustments, reduces iteration time, and improves operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0088] Figure 1 A schematic diagram of an embodiment of a fast automatic exposure method for Demura of a display screen of the present application;

[0089] Figure 2 A schematic diagram of an embodiment of the first stage of the fast automatic exposure method of Demura of a display screen of the present application;

[0090] Figure 3 A schematic diagram of an embodiment of the second stage of the fast automatic exposure method of Demura of a display screen of the present application;

[0091] Figure 4 A schematic diagram of an embodiment of the third stage of the fast automatic exposure method of Demura of a display screen of the present application;

[0092] Figure 5 A schematic diagram of an embodiment of a fast automatic exposure device for display screen Demura of the present application;

[0093] Figure 6 This is a schematic diagram of another embodiment of the fast automatic exposure device for display screen Demura of the present application. DETAILED DESCRIPTION

[0094] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0095] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0096] It should also be understood that the term "and / or" used in the specification of the present application and the attached claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. As used in the specification of the present application and the attached claims, the term "if" can be interpreted as "when..." or "once" or "in response to determination" or "in response to detection" according to the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once it is determined" or "in response to determination" or "once [the described condition or event] is detected" or "in response to detection [the described condition or event]" according to the context. In addition, in the description of the specification of the present application and the attached claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0097] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0098] The Demura process in the field of display manufacturing is an important process step, which is mainly used to correct the brightness uniformity and color uniformity of each pixel on the display to ensure the accuracy and consistency of the displayed image. In the field of display manufacturing, good imaging quality is the basis for Demura and defect detection analysis, which directly affects the accuracy of the detection process. When the imaging device is determined, the exposure is a key variable affecting the camera imaging quality. In the prior art, the control of camera exposure generally relies on manual adjustment of exposure parameters, which is not only time-consuming and labor-intensive, but also easily affected by human factors. The existing automatic exposure technology based on display visual processing is usually implemented based on the set target grayscale and the principle of iterative approximation through multiple exposure image analysis. However, for lower grayscale images or unreasonable initial exposure time settings, the number of iterations will increase. This type of processing method will increase the iteration time and reduce the operating efficiency.

[0099] Based on this, the present application discloses a method, device and storage medium for fast automatic exposure of display screen Demura, which are used to reduce iteration time and improve operation efficiency.

[0100] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0101] The method of the present application can be applied to a server, a device, a terminal or other devices with logic processing capabilities, and the present application does not limit this. For the convenience of description, the following description is made by taking the execution subject as an example of a terminal.

[0102] See also Figure 1 The present application provides an embodiment of a fast automatic exposure method for display screen Demura, comprising:

[0103] 101. Acquire a number of pictures to be collected, set the actual brightness for each picture to be collected, and set the target grayscale of the display screen collection image corresponding to the picture to be collected;

[0104] In this embodiment, the shooting module, the display screen to be tested, the crimping device and other equipment are all set up in a darkroom. The shooting module is composed of an industrial-grade camera (visible light band, the camera includes a flat field correction function and is turned on during the calibration and measurement process), a telephoto industrial lens, a human-computer interaction interface and a computer, and a display screen controller.

[0105] In this embodiment, the terminal first obtains a number of matching images to be collected according to the model of the display screen to be tested, and then sets the actual brightness of each image to be collected. (Generally, the brightness value of the display screen of the same model with Pgamma adjusted at the same grayscale is basically stable and can be measured during calibration) .

[0106] 102. Input the actual brightness and target grayscale into the exposure time model to calculate the initial exposure time of each image to be collected. The exposure time model is an initial exposure time calculation model generated after the camera is calibrated for brightness, grayscale and exposure time under the current working conditions.

[0107] The terminal inputs the actual brightness and target grayscale into the camera calibration exposure time model to calculate the initial exposure time of the image to be collected, which is recorded as Among them, the exposure time model is the initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under the current working conditions. Its function is to make the initial exposure time as close to the optimal exposure time as possible in actual operation, reduce the initial error, and reduce the number of adjustments.

[0108] It should be noted that the camera needs to be set to the same working environment during the calibration process and the actual operation process, which is helpful to reduce the error of the initial exposure time caused by the difference in the working environment.

[0109] 103. Use the calculated initial exposure time to adjust the camera, and input the corresponding image to be collected into the display screen to be tested;

[0110] The terminal first selects a picture to be collected, and then calculates the initial exposure time of the picture to be collected. To adjust the camera, and input the image to be captured into the display screen to be tested, so that the display screen to be tested displays the image.

[0111] 104. Use a camera to collect images of the display screen to be tested, and generate a display screen collection image;

[0112] When the terminal adjusts the initial exposure time of the camera and inputs the image to be collected into the display screen to be tested, the camera can be used to collect images of the display screen to be tested to generate a corresponding display screen capture image.

[0113] 105. Perform a histogram analysis on the image collected by the display screen, and generate a histogram mean according to the histogram analysis result;

[0114] The terminal performs a histogram analysis on the image captured by the display screen so as to analyze the gray level of the image captured by the display screen, and obtains the histogram mean by calculation after determining the gray level.

[0115] Histogram is an image analysis tool that shows the frequency distribution of each gray level in an image. The frequency of each gray level represents the number of times or the proportion of the gray level in the sampled image of the display screen. The histogram mean is calculated by multiplying each gray level with its corresponding frequency, then adding all the calculated parameter products and dividing by the total number of pixels N in the image. The formula is as follows:

[0116]

[0117] Where: Indicates the number of gray levels of the image (for 8-bit images, L can be set to 256). Indicates grayscale level The frequency of occurrence in the image, N represents the total number of pixels in the image, Represents the histogram mean of the image.

[0118] 106. Performing a standard-reaching analysis on the histogram mean according to the target grayscale corresponding to the image collected by the display screen;

[0119] According to the histogram analysis principle and histogram mean calculation method in the previous steps, determine the display screen ROI area in the display screen acquisition image (such as the 500*500 image area in the center of the display screen, which can be set manually without restriction) for histogram analysis and calculate the histogram mean. Check whether the histogram mean is within the set image target grayscale Within the determined range, for example: [0.9Gg, 1.1Gg], if within this range, it is determined that the grayscale of the image captured by the display screen meets the standard, and then it can be determined that the exposure time meets the conditions.

[0120] 107. If the histogram mean does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean, and the initial exposure time is used to re-collect, histogram analyze and standard analysis;

[0121] If the grayscale of the image collected by the display does not meet the standard, it means that the current initial exposure time needs to be corrected. Make corrections to get the corrected exposure time of the image to be collected , specifically the target grayscale of the image captured by the display screen Calculate the correction factor using the following formula:

[0122]

[0123] This formula will correct the coefficient to set the target grayscale of the display screen to capture the image Divide by the grayscale histogram mean , generate the correction factor, and then multiply it by the initial exposure time , get the corrected exposure time of the image to be collected After correcting the initial exposure time, it is necessary to continue to repeat steps 104 to 106 until the histogram mean meets the requirements.

[0124] 108. If the histogram mean value meets the standard, it is determined that the grayscale of the display screen image corresponding to the current picture to be collected is qualified, and the next picture to be collected is switched to be analyzed until all the pictures to be collected are processed.

[0125] When the histogram mean of the image to be collected is qualified, it indicates that the current detection has been completed, and the next image to be collected needs to be input, and then steps 103 to 106 are repeated until all the images to be collected are processed.

[0126] In this embodiment, firstly, a number of images to be collected are obtained, and the actual brightness is set for each image to be collected, and the target grayscale of the display screen acquisition image corresponding to the image to be collected is set. The initial exposure time of each image to be collected is calculated by inputting the actual brightness and the target grayscale into the exposure time model generated by the camera, wherein the exposure time model is an initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under the current working conditions. The camera is adjusted using the calculated initial exposure time, and the corresponding image to be collected is input into the display screen to be tested. The initial exposure time at this time is not necessarily the optimal exposure time, but is relatively close to the optimal exposure time. The camera is used to collect images of the display screen to be tested, and a display screen acquisition image is generated. The display screen acquisition image is subjected to histogram analysis, and different grayscale level data in the display screen acquisition image is obtained as the analysis result, and the corresponding histogram mean is calculated according to the histogram analysis result. The histogram mean is subjected to standard analysis according to the target grayscale corresponding to the display screen acquisition image. If the histogram mean does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean, and the initial exposure time is used to re-collect, analyze the histogram, and analyze the standard. If the histogram mean meets the standard, it is determined that the grayscale of the display screen image corresponding to the current image to be collected is qualified, and the next image to be collected is switched to analyze until all images to be collected are processed.

[0127] The industrial-grade camera used in the Demura process is calibrated in advance to establish a mathematical model between brightness, grayscale and exposure time. Then, the initial exposure time of the grayscale image to be captured is calculated based on the exposure time model, the brightness of the required grayscale image (the image to be captured) and the target grayscale of the display screen capture image corresponding to the image to be captured. The camera is adjusted using the calculated initial exposure time, and then the image to be detected displayed on the display screen is captured by the camera. The grayscale histogram analysis of the captured display screen image is performed to determine whether the grayscale on the display screen capture image is qualified and then determine whether the exposure time is in compliance. If it is not qualified, the target grayscale of the display screen capture image and the histogram mean are used to further correct and adjust the exposure time, thereby realizing the fast automatic exposure of the camera in the display screen Demura process. This method does not require manual adjustment, and the auxiliary correction of the initial exposure time by histogram analysis, grayscale level and histogram mean greatly reduces the number of exposure time adjustments, reduces iteration time, and improves operation efficiency.

[0128] See also Figure 2 , Figure 3 , Figure 4 The present application provides another embodiment of a fast automatic exposure method for display screen Demura, comprising:

[0129] 201. Input a maximum grayscale image to a calibration display screen for display, and collect a first calibration image of the calibration display screen through a camera;

[0130] 202. Calculate the brightness mean of the central area of ​​the display screen according to the first image data of the first calibration image;

[0131] 203. Set the grayscale upper limit and grayscale lower limit;

[0132] In this embodiment, the Demura system and the calibration display screen (with Pgamma adjusted) are placed in a darkroom working environment, the camera gain, camera working distance, lens aperture and lens focal length are kept unchanged at the working state of the corresponding display screen model under normal Demura, the computer sends power-on and image-cutting instructions to the display screen controller, the maximum grayscale image is input to the calibration display screen for lighting and display, so that the display screen displays grayscale W 255 The first calibration image of the calibration display screen is captured by the camera.

[0133] The terminal calculates the average brightness of the center area of ​​the display screen according to the first image data of the first calibration image. Specifically, a handheld color analyzer (such as 410) is used to measure the brightness of the center area of ​​the display screen. After multiple measurements, the average value is taken and the measured W is converted into 255 The average brightness of the center area of ​​the screen is recorded as L 255 .

[0134] Next, the terminal sets the grayscale upper limit and grayscale lower limit. Specifically, the camera is turned on to take a picture of the display screen to be tested, and the grayscale upper limit and grayscale lower limit are set to 85% and 5% of the maximum grayscale value of the image (eg, 255 for an 8-bit image), respectively.

[0135] 204. Shooting the calibration display screen with a camera, adjusting the exposure time of the camera during shooting, and generating a third calibration image;

[0136] 205. When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale upper limit, determine the current exposure time as the first exposure time;

[0137] 206. When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale lower limit, determine that the current exposure time is the second exposure time, and the first exposure time and the second exposure time form an exposure time range;

[0138] After the terminal sets the grayscale upper limit and grayscale lower limit, the terminal uses the camera to shoot the calibration display screen, continuously adjusts the camera exposure time during the shooting process, generates multiple third calibration images, and determines the grayscale of the third calibration image. When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale upper limit, the current exposure time is determined to be the first exposure time. When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale lower limit, the current exposure time is determined to be the second exposure time. The first exposure time and the second exposure time form an exposure time range. Specifically, the terminal uses the camera's automatic exposure function or manually adjusts the camera exposure so that the grayscale of the image captured by the camera is near the target grayscale set above, and the camera exposure times corresponding to these two target grayscales are respectively recorded as the second exposure time t low , first exposure time t high , unit is ms.

[0139] 207. Determine an exposure time collection interval according to the exposure time range;

[0140] 208. Input the maximum grayscale image to the calibration display screen for display, use the camera and perform image acquisition according to the exposure time acquisition interval to generate a second calibration image;

[0141] In this embodiment, the terminal sets the second exposure time t low is the camera start exposure time, the first exposure time t high is the camera’s end exposure time, n is the number of images collected for calibration (i.e., the number of images that need to be collected during the calibration process, generally greater than or equal to 50, without other restrictions). Based on the above data, the exposure time interval t can be calculated. step , that is, t step =(t high -t low ) / (n-1).

[0142] Furthermore, the terminal inputs the maximum grayscale image into the calibration display screen for display, uses the camera to collect images according to the exposure time collection interval, and generates a plurality of second calibration images.

[0143] Specifically, the fixed calibration display shows W 255 screen, use the camera to take a picture of the display screen, and set the camera exposure time from t low Start to change incrementally, each increase of t step Take an image until the camera exposure time reaches t high Until (the exposure time here can also be changed from t high Start decreasing, every decrease of t step Take an image), and record the exposure time of each image camera when taking a photo, for example, T={T0=t low,T1=t low +t step ,T2=t low +2*t step ,…,T 79 =t high}.

[0144] 209. Calculate the grayscale mean value of each second calibration image in the central area according to the second image data of the second calibration image;

[0145] 210. Generate an exposure time model of the camera under current working conditions by fitting according to the exposure time of the camera, the average brightness of the central area of ​​the display screen, and the average grayscale of the second calibration image in the central area;

[0146] In this embodiment, the terminal calculates the grayscale mean value of each second calibration image in the central area according to the second image data of the second calibration image. Specifically, the terminal takes the rectangular area of ​​the image data with a 2° field of view relative to the center of the camera optical axis (the area can be calculated according to the field of view of the camera lens and the size of the camera chip) to perform grayscale mean calculation to obtain the central grayscale mean value of the central area of ​​the image {G t |t∈T}.

[0147] Next, the terminal performs fitting based on the camera exposure time, the average brightness of the center area of ​​the display screen, and the average center grayscale to generate an exposure time model of the camera under the current working conditions. Specifically, the terminal uses the calibration display screen W 255 Brightness L in the center of the image 255 , the central grayscale mean of the central area of ​​the image {G t |t∈T} and the exposure time sequence T={T0=t low ,T1=t low +t step ,T2=t low +2*t step ,…,T 79 =t high} Perform the least squares fitting (either linear fitting or polynomial fitting) to obtain the brightness model of the camera under this working condition. Using linear fitting, the camera exposure time model can be obtained:

[0148]

[0149] in, is brightness, is the exposure time, and is the fitting coefficient, is the grayscale mean.

[0150] 211. Obtain a number of pictures to be collected, set the actual brightness for each picture to be collected, and set the target grayscale of the display screen collection image corresponding to the picture to be collected;

[0151] 212. Input the actual brightness and target grayscale into the exposure time model to calculate the initial exposure time of each image to be collected. The exposure time model is an initial exposure time calculation model generated after the camera is calibrated for brightness, grayscale and exposure time under the current working conditions.

[0152] 213. Use the calculated initial exposure time to adjust the camera, and input the corresponding image to be collected into the display screen to be tested;

[0153] 214. Use a camera to collect images of the display screen to be tested, and generate a display screen collection image;

[0154] Steps 211 to 214 in this embodiment are similar to steps 101 to 104 in the above-mentioned embodiment, and are not described again here.

[0155] 215. Obtain gray value data of each pixel in the image collected by the display screen;

[0156] 216. Perform regional pixel attention calculation for pixel points of the image collected by the display screen according to the gray value data to generate regional attention data;

[0157] 217. Divide the attention areas with different gray levels on the image collected by the display screen according to the regional attention data;

[0158] 218. Generate an attention matrix for edge pixels between different attention regions according to the gray value data to generate a regional attention matrix;

[0159] 219. Divide the pixels in the attention area into different gray levels according to the regional attention matrix;

[0160] 220. Determine the gray levels and the number of gray levels for the two divisions;

[0161] In this embodiment, the core of the histogram analysis is to divide the grayscale into levels. The image to be collected is different from the conventional display image. In order to correct pixel distortion, it is often necessary to set a dot matrix. Each dot matrix in the dot matrix image contains multiple pixels. The grayscale of the pixels in the dot matrix and the pixels in the background area are different. This type of image to be collected is also called a calibration image. The grayscale level of this type of image does not need to use dense grayscale levels. If the grayscale level L is 256 as in Example 1, it will cause the problem of excessive computation. In actual scenarios, the terminal obtains the grayscale value data of each pixel in the image captured by the display screen, and performs regional pixel attention calculation for the pixel of the image captured by the display screen according to the grayscale value data to generate regional attention data. Specifically, the purpose of performing regional pixel attention is to first divide the areas with large differences. Due to the characteristics of the image to be captured by the display screen, the grayscale of the image to be captured varies greatly between regions. The grayscale inside the dot matrix area is almost the same, and the grayscale outside the dot matrix area is also basically similar. Therefore, the levels can be divided according to the region first. In this embodiment, the regional pixel attention module RPA is specifically used to calculate the regional pixel attention of the image captured by the display screen.

[0162] The regional pixel attention module RPA in this embodiment is composed of BatchNorm-DefConv-ReLU, BatchNorm-DefConv, SigMoid function modules and bilinear interpolation modules connected in series in sequence. It should be noted that the BatchNorm-DefConv-ReLU layer and the BatchNorm-DefConv layer here both belong to the pixel feature processing layer, and the SigMoid function is a preset function. The regional pixel attention module RPA, as a regional attention mechanism, is used to assign a weight to each regional pixel on the image captured by the display screen, strengthen the characteristics of similar pixels, and make the area composed of similar pixels receive more attention.

[0163] Next, the terminal divides the attention areas of different grayscale levels on the image captured by the display screen according to the regional attention data, that is, the areas with similar grayscale are classified, because the areas with similar pixels receive very similar attention.

[0164] After the initial regional attention division, the divided areas can be initially divided into grayscale levels. However, there may be grayscale gradients on the edge between the two areas of the display screen's captured image. At this time, it is necessary to perform attention calculations on these pixels to generate a corresponding attention matrix. The attention matrix is ​​generated for the pixels in the attention area based on the grayscale value data to generate a regional attention matrix. Specifically, only the edge pixels need to be calculated for attention. Without the decimal point, it refers to the N rows of pixels located between the two areas. These N rows of pixels include some pixels inside the two areas.

[0165] Specifically, the generation of the attention matrix in this embodiment uses the Dropout module ADO, which includes BatchNorm-2*2DefConv-ReLU and BatchNorm-2*2DefConv-SigMiod. The attention-based Dropout method is different from the random method used in general Dropout. In this embodiment, attention is used to determine the relationship between edge pixels, whether it is a gradual relationship or a sudden relationship.

[0166] The input edge area is processed in BatchNorm-2*2DefConv-ReLU, and its output is input into BatchNorm-2*2DefConv-SigMiod to generate an attention matrix. The relationship between the pixels in the edge area is analyzed according to the attention value of each pixel in the attention matrix. Specifically, the attention values ​​of the edge pixels from area A to area B are compared to determine whether there is a gap greater than the preset threshold, so as to determine the change relationship. If it is a sudden change relationship, it means that the gray level between the two areas is clear and there is no need to increase the gray level. If it is a gradual change relationship, it means that an additional gray level needs to be added.

[0167] 221. Determine frequency distribution data of each gray level for the display screen captured image;

[0168] 222. Determine the total number of pixels of the image captured by the display screen;

[0169] 223. Calculate a histogram mean of the image captured by the display screen according to the number of gray levels, the frequency distribution data of each gray level, and the total number of pixels;

[0170] The terminal determines the frequency distribution data of each gray level for the display screen captured image, and then determines the total number of pixels of the display screen captured image, that is, determines the accurate number of pixels according to the gray level, and finally calculates the histogram mean of the display screen captured image according to the number of gray levels, the frequency distribution data of each gray level and the total number of pixels. The calculation method has been described in step 105 of embodiment 1, and will not be repeated here.

[0171] 224. Performing a standard-reaching analysis on the histogram mean according to the target grayscale corresponding to the image collected by the display screen;

[0172] 225. If the histogram mean does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean, and the initial exposure time is used to re-acquire, histogram analyze and standard analysis;

[0173] 226. If the histogram mean value meets the standard, it is determined that the grayscale of the display screen image corresponding to the current picture to be collected is qualified, and the next picture to be collected is switched to be analyzed until all the pictures to be collected are processed.

[0174] Steps 224 to 226 in this embodiment are similar to steps 106 to 108 in the above-mentioned embodiment, and are not described again here.

[0175] In this embodiment, the maximum grayscale image is first input into the calibration display screen for display, and the first calibration image of the calibration display screen is collected by the camera. The brightness mean of the central area of ​​the display screen is calculated based on the first image data of the first calibration image. The grayscale upper limit and the grayscale lower limit are set. The calibration display screen is photographed by the camera, and the exposure time of the camera is adjusted during the shooting process to generate a third calibration image. When the grayscale of the third calibration image photographed by the camera is within the grayscale range determined by the grayscale upper limit, the current exposure time is determined to be the first exposure time. When the grayscale of the third calibration image photographed by the camera is within the grayscale range determined by the grayscale lower limit, the current exposure time is determined to be the second exposure time, and the first exposure time and the second exposure time form an exposure time range. The exposure time acquisition interval is determined according to the exposure time range. The maximum grayscale image is input into the calibration display screen for display, and the camera is used to collect images according to the exposure time acquisition interval to generate a second calibration image.

[0176] The grayscale mean value of each second calibration image in the central area is calculated according to the second image data of the second calibration image. The exposure time model of the camera under the current working conditions is generated by fitting according to the exposure time of the camera, the brightness mean value of the central area of ​​the display screen and the grayscale mean value of the central area of ​​the second calibration image.

[0177] Get several pictures to be collected, set the actual brightness for each picture to be collected, and set the target grayscale of the display screen capture image corresponding to the picture to be collected. By inputting the actual brightness and target grayscale into the exposure time model generated by the camera, the initial exposure time of each picture to be collected is calculated, wherein the exposure time model is an initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under the current working conditions. Use the calculated initial exposure time to adjust the camera, and input the corresponding picture to be collected into the display screen to be tested. The initial exposure time at this time is not necessarily the optimal exposure time, but it is relatively close to the optimal exposure time. Use the camera to collect images of the display screen to be tested and generate a display screen capture image.

[0178] Obtain the gray value data of each pixel in the display screen captured image. Perform regional pixel attention calculation for the pixel of the display screen captured image according to the gray value data to generate regional attention data. Divide the display screen captured image into attention regions of different gray levels according to the regional attention data. Generate an attention matrix for the pixel in the attention region according to the gray value data to generate a regional attention matrix. Divide the pixel in the attention region into different gray levels according to the regional attention matrix. Determine the gray levels of the two divisions and the number of gray levels.

[0179] Determine frequency distribution data for each gray level for the display screen captured image. Determine the total number of pixels for the display screen captured image. Calculate a histogram mean for the display screen captured image based on the number of gray levels, the frequency distribution data for each gray level, and the total number of pixels.

[0180] The histogram mean is analyzed for compliance according to the target grayscale corresponding to the image captured by the display screen. If the histogram mean does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean, and the initial exposure time is used to re-collect, analyze the histogram, and analyze for compliance. If the histogram mean meets the standard, it is determined that the grayscale of the display screen image corresponding to the current image to be captured is qualified, and the next image to be captured is switched to for analysis until all images to be captured are processed.

[0181] The industrial-grade camera used in the Demura process is calibrated in advance to establish a mathematical model between brightness, grayscale and exposure time. Then, the initial exposure time of the grayscale image to be captured is calculated based on the exposure time model, the brightness of the required grayscale image (the image to be captured) and the target grayscale of the display screen capture image corresponding to the image to be captured. The camera is adjusted using the calculated initial exposure time, and then the image to be detected displayed on the display screen is captured by the camera. The grayscale histogram of the captured display screen image is analyzed to determine whether the grayscale on the display screen capture image is qualified and then determine whether the exposure time is in compliance. If it is not qualified, the target grayscale of the display screen capture image and the histogram mean are used to further correct and adjust the exposure time, thereby realizing the fast automatic exposure of the camera image in the display screen Demura process. This method does not require manual adjustment, and the auxiliary correction of the initial exposure time by histogram analysis, grayscale level and histogram mean greatly reduces the number of exposure time adjustments, reduces iteration time, and improves operation efficiency.

[0182] Secondly, by performing regional pixel attention calculation on the display screen images and generating attention matrices for the edge pixels between the attention areas, each display screen image is divided into different grayscale levels, which reduces the calculation time and improves the calculation accuracy of the histogram mean.

[0183] See also Figure 5 The present application provides an embodiment of a fast automatic exposure device for display screen Demura, comprising:

[0184] The first acquisition unit 501 is used to input the maximum grayscale image to the calibration display screen for display, and acquire a first calibration image of the calibration display screen through a camera;

[0185] A second calculation unit 502, configured to calculate a brightness mean value of a central area of ​​a display screen according to first image data of a first calibration image;

[0186] A setting unit 503, used to set a grayscale upper limit and a grayscale lower limit;

[0187] A second determining unit 504 is used to determine the exposure time range corresponding to the camera according to the grayscale upper limit and the grayscale lower limit;

[0188] Optionally, the second determining unit 504 includes:

[0189] The calibration display screen is photographed by a camera, and the exposure time of the camera is adjusted during the photographing process to generate a third calibration image;

[0190] When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale upper limit, determining the current exposure time to be the first exposure time;

[0191] When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale lower limit, the current exposure time is determined to be the second exposure time, and the first exposure time and the second exposure time form an exposure time range.

[0192] A second acquisition unit 505 is used to acquire at least two second calibration images within an exposure time range using a camera;

[0193] Optionally, the second acquisition unit 505 includes:

[0194] Determine the exposure time collection interval according to the exposure time range;

[0195] The maximum grayscale image is input to the calibration display screen for display, and the camera is used to collect images according to the exposure time collection interval to generate a second calibration image.

[0196] A third calculation unit 506, configured to calculate a grayscale mean value in a central area of ​​each second calibration image according to the second image data of the second calibration image;

[0197] The third generating unit 507 is used to generate an exposure time model of the camera under the current working condition by fitting according to the exposure time of the camera, the brightness mean of the central area of ​​the display screen and the grayscale mean of the second calibration image in the central area;

[0198] The acquisition unit 508 is used to acquire a plurality of pictures to be collected, set the actual brightness for each picture to be collected, and set the target grayscale of the display screen collection image corresponding to the picture to be collected;

[0199] The first calculation unit 509 is used to input the actual brightness and the target grayscale into the exposure time model to calculate the initial exposure time of each picture to be collected, where the exposure time model is an initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under the current working conditions;

[0200] An adjustment unit 510 is used to adjust the camera using the calculated initial exposure time, and input the corresponding image to be collected into the display screen to be tested;

[0201] The first generating unit 511 is used to use a camera to collect images of the display screen to be tested, and generate a display screen captured image;

[0202] The second generating unit 512 is used to perform histogram analysis on the image collected by the display screen, and generate a histogram mean according to the histogram analysis result;

[0203] Optionally, the second generating unit 512 includes:

[0204] A first determination module 5121, configured to divide the grayscale levels of the image captured by the display screen and determine the number of grayscale levels;

[0205] Optionally, the first determining module 5121 includes:

[0206] Obtain the gray value data of each pixel in the image collected by the display screen;

[0207] Performing regional pixel attention calculation for pixel points of the image collected by the display screen according to the gray value data to generate regional attention data;

[0208] Dividing attention areas of different gray levels on the captured image of the display screen according to the regional attention data;

[0209] Generate an attention matrix for edge pixels between different attention regions according to the gray value data to generate a regional attention matrix;

[0210] Divide the pixels in the attention area into different gray levels according to the regional attention matrix;

[0211] Determine the gray levels and the number of gray levels for the two divisions.

[0212] A second determination module 5122 is used to determine frequency distribution data of each gray level for the display screen captured image;

[0213] The third determination module 5123 is used to determine the total number of pixels of the image captured by the display screen;

[0214] The calculation module 5124 is used to calculate the histogram mean of the image captured by the display screen according to the number of gray levels, the frequency distribution data of each gray level and the total number of pixels.

[0215] An analysis unit 513 is used to perform a target grayscale analysis on the histogram mean according to the target grayscale corresponding to the image captured by the display screen;

[0216] A correction unit 514 is used to correct the initial exposure time according to the target grayscale and the histogram mean if the histogram mean does not meet the standard, and then use the initial exposure time to re-perform acquisition, histogram analysis and standard analysis;

[0217] The first determining unit 515 is used to determine that the grayscale of the display screen image corresponding to the current picture to be collected is qualified if the histogram mean is within a preset range, and switch to the next picture to be collected for analysis until all pictures to be collected are processed.

[0218] See also Figure 6 , the present application provides an electronic device, including:

[0219] Processor 601 , memory 602 , input / output unit 603 , and bus 604 .

[0220] The processor 601 is connected to the memory 602 , the input and output unit 603 , and the bus 604 .

[0221] The memory 602 stores a program, and the processor 601 calls the program to execute the following steps: Figure 1 , Figure 2 and Figure 3 and Figure 4 Fast automatic exposure method in .

[0222] The present application provides a computer-readable storage medium, on which a program is stored, and when the program is executed on a computer, the program performs the following steps: Figure 1 , Figure 2 and Figure 3 and Figure 4 Fast automatic exposure method in .

[0223] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0224] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0225] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0226] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0227] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A fast automatic exposure method for display screen Demura, characterized in that: include: Acquire a number of pictures to be collected, set the actual brightness for each of the pictures to be collected, and set the target grayscale of the display screen collection image corresponding to the pictures to be collected; Input the actual brightness and the target grayscale into an exposure time model to calculate the initial exposure time of each of the images to be collected, wherein the exposure time model is an initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under the current working conditions; The camera is adjusted using the calculated initial exposure time, and the corresponding image to be captured is input into the display screen to be tested; Using the camera to capture images of the display screen to be tested, and generating a captured display screen image; Performing a histogram analysis on the image collected by the display screen, and generating a histogram mean according to the histogram analysis result; Performing a compliance analysis on the histogram mean according to the target grayscale corresponding to the image captured by the display screen; If the histogram mean value does not meet the standard, the initial exposure time is corrected according to the target grayscale and the histogram mean value, and then the corrected initial exposure time is used to re-perform acquisition, histogram analysis and standard analysis; If the histogram mean value meets the standard, it is determined that the grayscale of the display screen image corresponding to the current picture to be collected is qualified, and the next picture to be collected is switched to be analyzed until all the pictures to be collected are processed.

2. The fast automatic exposure method according to claim 1, characterized in that: Before acquiring a plurality of pictures to be collected, setting an actual brightness for each of the pictures to be collected, and setting a target grayscale of a display screen collection image corresponding to the pictures to be collected, the fast automatic exposure method further includes: Inputting the maximum grayscale image to a calibration display screen for display, and acquiring a first calibration image of the calibration display screen by a camera; Calculating the average brightness of the central area of ​​the display screen according to the first image data of the first calibration image; Set the grayscale upper and lower limits; Determine the exposure time range corresponding to the camera according to the grayscale upper limit and the grayscale lower limit; Using the camera to collect at least two second calibration images within the exposure time range; Calculating a grayscale mean value in a central area of ​​each second calibration image according to the second image data of the second calibration image; Fitting is performed according to the exposure time of the camera, the brightness mean value of the central area of ​​the display screen, and the grayscale mean value of the second calibration image in the central area to generate an exposure time model of the camera under current working conditions.

3. The fast automatic exposure method according to claim 2, characterized in that: Determining the exposure time range corresponding to the camera by using the grayscale upper limit and the grayscale lower limit includes: photographing the calibration display screen by using the camera, adjusting the exposure time of the camera during the photographing process, and generating a third calibration image; When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale upper limit, determining the current exposure time as the first exposure time; When the grayscale of the third calibration image captured by the camera is within the grayscale range determined by the grayscale lower limit, the current exposure time is determined to be the second exposure time, and the first exposure time and the second exposure time form an exposure time range.

4. The fast automatic exposure method according to claim 2, characterized in that: Using the camera to collect at least two second calibration images within the exposure time range includes: Determining an exposure time acquisition interval according to the exposure time range; The maximum grayscale image is input to the calibration display screen for display, and the camera is used to collect images according to the exposure time collection interval to generate a second calibration image.

5. The fast automatic exposure method according to any one of claims 1 to 4, characterized in that: Performing a histogram analysis on the image collected by the display screen, and generating a histogram mean according to the histogram analysis result, including: Dividing the image captured by the display screen into gray levels and determining the number of gray levels; Determine frequency distribution data of each gray level for the image captured by the display screen; Determining the total number of pixels of the display screen capturing an image; The histogram mean of the display screen captured image is calculated according to the number of gray levels, the frequency distribution data of each gray level and the total number of pixels.

6. The fast automatic exposure method according to claim 5, characterized in that: Dividing the grayscale levels for the image captured by the display screen and determining the number of grayscale levels includes: Obtaining grayscale value data of each pixel in the image captured by the display screen; Performing regional pixel attention calculation for pixel points of the image captured by the display screen according to the gray value data to generate regional attention data; Dividing attention areas of different gray levels on the captured image of the display screen according to the regional attention data; Generating an attention matrix for edge pixels between different attention regions according to the gray value data to generate a regional attention matrix; Dividing the pixels in the attention area into different gray levels according to the regional attention matrix; Determine the gray level and the number of gray levels for the two divisions.

7. A fast automatic exposure device for display screen Demura, characterized in that: include: An acquisition unit, used for acquiring a plurality of pictures to be collected, setting an actual brightness for each of the pictures to be collected, and setting a target grayscale of a display screen collection image corresponding to the pictures to be collected; A first calculation unit is used to input the actual brightness and the target grayscale into an exposure time model to calculate an initial exposure time for each of the to-be-collected images, wherein the exposure time model is an initial exposure time calculation model generated after the camera calibrates the brightness, grayscale and exposure time under current working conditions; An adjustment unit, used to adjust the camera using the calculated initial exposure time, and input the corresponding picture to be collected into the display screen to be tested; A first generating unit, configured to use the camera to collect images of the display screen to be tested, and generate a display screen collected image; A second generating unit, configured to perform a histogram analysis on the image captured by the display screen, and generate a histogram mean according to the histogram analysis result; An analysis unit, configured to perform a compliance analysis on the histogram mean according to the target grayscale corresponding to the image captured by the display screen; A correction unit, configured to correct the initial exposure time according to the target grayscale and the histogram mean if the histogram mean does not meet the standard, and then re-perform acquisition, histogram analysis and standard-reaching analysis using the corrected initial exposure time; The first determination unit is used to determine that the grayscale of the display screen image corresponding to the current picture to be collected is qualified if the histogram mean is within a preset range, and switch to the next picture to be collected for analysis until all pictures to be collected are processed.

8. The fast automatic exposure device according to claim 7, characterized in that: The fast automatic exposure device also includes: A first acquisition unit, configured to input a maximum grayscale image into a calibration display screen for display, and acquire a first calibration image of the calibration display screen through a camera; A second calculation unit, configured to calculate a brightness mean value of a central area of ​​a display screen according to first image data of the first calibration image; A setting unit, used to set the grayscale upper limit and grayscale lower limit; A second determining unit, configured to determine an exposure time range corresponding to the camera according to the grayscale upper limit and the grayscale lower limit; A second acquisition unit, configured to use the camera to acquire at least two second calibration images within the exposure time range; a third calculating unit, configured to calculate a grayscale mean value of a central area of ​​each of the second calibration images according to the second image data of the second calibration images; The third generating unit is used to perform fitting according to the exposure time of the camera, the brightness mean value of the central area of ​​the display screen and the grayscale mean value of the second calibration image in the central area to generate an exposure time model of the camera under current working conditions.

9. A fast automatic exposure device for display screen Demura, characterized in that: include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the fast automatic exposure method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the fast automatic exposure method according to any one of claims 1 to 6.