WO2024113162A1 - Luminance compensation method and apparatus, device, and storage medium - Google Patents
Luminance compensation method and apparatus, device, and storage medium Download PDFInfo
- Publication number
- WO2024113162A1 WO2024113162A1 PCT/CN2022/135036 CN2022135036W WO2024113162A1 WO 2024113162 A1 WO2024113162 A1 WO 2024113162A1 CN 2022135036 W CN2022135036 W CN 2022135036W WO 2024113162 A1 WO2024113162 A1 WO 2024113162A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- led lamp
- compensation
- lamp bead
- brightness
- brightness value
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 239000011324 bead Substances 0.000 claims abstract description 394
- 230000015654 memory Effects 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 9
- 230000004048 modification Effects 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 7
- 238000012937 correction Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 12
- 239000003086 colorant Substances 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- ORFSSYGWXNGVFB-UHFFFAOYSA-N sodium 4-amino-6-[[4-[4-[(8-amino-1-hydroxy-5,7-disulfonaphthalen-2-yl)diazenyl]-3-methoxyphenyl]-2-methoxyphenyl]diazenyl]-5-hydroxynaphthalene-1,3-disulfonic acid Chemical compound COC1=C(C=CC(=C1)C2=CC(=C(C=C2)N=NC3=C(C4=C(C=C3)C(=CC(=C4N)S(=O)(=O)O)S(=O)(=O)O)O)OC)N=NC5=C(C6=C(C=C5)C(=CC(=C6N)S(=O)(=O)O)S(=O)(=O)O)O.[Na+] ORFSSYGWXNGVFB-UHFFFAOYSA-N 0.000 description 1
- 238000005476 soldering Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
Definitions
- the embodiments of the present application relate to the technical field of LED display screens, and in particular to a brightness compensation method, device, equipment and storage medium.
- LED Light-emitting diode
- LED display screens can be composed of LED lamp beads, and images are displayed through LED display screens.
- the actual brightness displayed by each LED lamp bead at the same low brightness may vary greatly. This difference is particularly obvious when displaying pure color images, which reduces the display effect of the LED display screen.
- An embodiment of the present application provides a brightness compensation method, device, equipment and storage medium to solve the technical problem in the related art that there is a difference in brightness displayed by each LED lamp bead of an LED display screen.
- an embodiment of the present application provides a brightness compensation method, including:
- the plurality of collected images include images collected from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of collected images are all different;
- the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, updating the compensation coefficient of the first LED lamp bead to the coefficient threshold, wherein the first LED lamp bead is any lamp bead in the LED display screen;
- the obtained compensation coefficient is sent to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient, and the control chip is located in the LED display screen.
- an embodiment of the present application further provides a brightness compensation device, including:
- An image acquisition unit used to acquire a plurality of acquired images, wherein the plurality of acquired images include images acquired from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of acquired images are all different;
- a brightness determination unit used to obtain a first brightness value of each LED lamp bead in the LED display screen in each collected image, and to determine a target brightness value of each LED lamp bead;
- a coefficient determination unit used to determine the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time corresponding to each collected image, wherein the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value;
- a coefficient modification unit configured to update the compensation coefficient of a first LED lamp bead to the coefficient threshold when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, wherein the first LED lamp bead is any lamp bead in the LED display screen;
- the coefficient sending unit is used to send the obtained compensation coefficient to the control chip so that the control chip can perform brightness compensation on the corresponding LED lamp beads based on the compensation coefficient.
- the control chip is located in the LED display screen.
- an embodiment of the present application further provides a brightness compensation device, including:
- processors one or more processors
- a memory for storing one or more programs
- the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the brightness compensation method as described in the first aspect.
- an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the brightness compensation method as described in the first aspect.
- multiple captured images including a display screen of an LED display screen are acquired, and the LED display screens in the multiple captured images all use a set grayscale and correspond to different compensation times. Then, a first brightness value of each LED lamp bead in the LED display screen in each captured image is acquired and a target brightness value of each LED lamp bead is determined.
- the compensation coefficient of each LED lamp bead is determined in combination with the target brightness value, the first brightness value of the LED lamp bead in each captured image, and the compensation time corresponding to each captured image.
- the currently determined compensation coefficient is proportional to the increase in brightness required for the LED lamp bead to reach the target brightness value.
- the compensation coefficient of the first LED lamp bead in each LED lamp bead is greater than a coefficient threshold
- the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold.
- the compensation coefficient of each LED lamp bead is sent to a control chip corresponding to the LED lamp bead in the LED display screen, so that the control chip performs brightness compensation on the LED lamp bead based on the compensation coefficient.
- a suitable compensation coefficient is determined for each LED lamp bead, so that when the LED lamp bead is compensated for brightness by the compensation coefficient, the brightness displayed by each LED lamp bead reaches the target brightness value, that is, the actual brightness of each LED lamp bead is kept as consistent as possible, and the compensation coefficient can be proportional to the increase in the brightness of the LED lamp bead as much as possible.
- the range of the compensation coefficient can be ensured to be within the normal use range of the hardware equipment of the LED display screen, avoiding overflow, so that the uniformity of the LED display screen (that is, the actual brightness of each LED lamp bead is consistent) and the compensation coefficient are balanced.
- FIG1 is a schematic diagram of the structure of a correction system provided by an embodiment of the present application.
- FIG2 is a flow chart of a brightness compensation method provided by an embodiment of the present application.
- FIG3 is a flow chart of a brightness compensation method provided by an embodiment of the present application.
- FIG4 is a schematic structural diagram of a brightness compensation device provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of the structure of a brightness compensation device provided in one embodiment of the present application.
- the embodiment of the present application provides a brightness compensation method, which can be performed by a brightness compensation device.
- the brightness compensation device can be implemented by software and/or hardware.
- the brightness compensation device can be a computer device with data processing function, such as a desktop computer, a laptop computer, a tablet computer, a mobile phone and other computer devices.
- the brightness compensation device can be composed of two or more physical entities, or it can be composed of one physical entity.
- the brightness compensation method is applicable to a correction system, which includes an image acquisition device, a brightness compensation device, and an LED display screen.
- the correction system is used to determine a compensation coefficient related to brightness when the LED display screen is imaged, and apply the compensation coefficient to the LED display screen to achieve brightness compensation for the LED display screen.
- the brightness compensation device communicates with the LED display screen and the image acquisition device respectively.
- the LED display screen refers to the LED display screen for which the parameters required for brightness compensation need to be determined.
- the LED display screen can be an independent display, such as a billboard, etc., or it can be integrated into electronic devices, such as mobile phones, televisions, interactive tablets and other electronic devices equipped with display screens.
- an LED display screen is integrated into an interactive tablet as an example.
- the interactive tablet is an integrated device that uses touch technology to control the content displayed on the display tablet and realize human-computer interaction, and integrates one or more functions such as a projector, an electronic whiteboard, a screen, a sound system, a television, and a video conferencing terminal.
- each LED constituting an LED display screen is recorded as an LED lamp bead.
- the red, green, and blue light-emitting diodes of each LED lamp bead are packaged in a lamp holder, and the three primary optical colors (red, green, and blue) of each lamp bead can be used as a pixel of the LED display screen. After the three primary optical colors are mixed, they form the colors that can be displayed by the LED display screen, that is, the colors displayed as pixels.
- the brightness of each LED bead can be adjusted to adjust the brightness of the LED display.
- the brightness of each LED bead is set to be consistent.
- the actual brightness displayed by each LED bead is different. Therefore, it is necessary to perform brightness compensation on each LED bead based on the actual brightness displayed by each LED bead.
- the purpose of brightness compensation is to make the actual display brightness of each LED bead consistent.
- the LED display screen further includes a chip for controlling LED lamp beads.
- the chip of the LED lamp beads is recorded as a control chip.
- each control chip can control a group of LED lamp beads, that is, the LED lamp beads in the LED display are grouped in advance, and the grouping rules are not currently limited.
- Each group of LED lamp beads corresponds to a control chip.
- each control chip can control a row or a column of LED lamp beads, that is, a control chip is set for each row or column of LED lamp beads in the LED display.
- the LED lamp beads can be controlled to be turned off and on, as well as various parameters used when the LED lamp beads are turned on.
- the type of LED display screen is not limited in the embodiment.
- the LED display screen is a COB display screen.
- the COB display screen is a new type of LED display screen.
- the COB display screen integrates LED chips into a printed circuit board (PCB), without soldering them one by one in the PCB.
- PCB printed circuit board
- the brightness compensation device and the LED display screen may be different physical entities.
- the brightness compensation device and the LED display screen may perform data transmission via a wired or wireless connection, such as the brightness compensation device sending a compensation coefficient to the LED display screen.
- the brightness compensation device and the LED display screen may also be integrated into the same physical entity.
- the brightness compensation device determines the compensation coefficient when performing brightness compensation on the LED display screen installed on itself.
- the brightness compensation device and the LED display screen are described as different physical entities.
- the image acquisition device can be understood as a device with a shooting function, such as a camera, a webcam, a mobile phone, etc.
- the camera can be an industrial camera or a civilian camera, and the specific category is not limited.
- the image acquisition device is described as a camera as an example.
- the brightness compensation device and the camera are different physical entities.
- the brightness compensation device and the camera can perform data transmission via a wired or wireless connection, such as the brightness compensation device controlling the camera to take pictures.
- the brightness compensation device and the camera may also be integrated into the same physical entity, that is, the brightness compensation device uses the camera installed on itself to take pictures.
- FIG1 is a schematic diagram of the structure of the correction system.
- the brightness compensation device 11 is connected to the LED display screen 12 and the camera 13 respectively.
- the camera 13 is controlled to shoot.
- the camera 13 shoots, it mainly shoots the display screen of the LED display screen 12.
- the brightness compensation device 11 obtains the image captured by the camera 13, and then realizes the brightness compensation of the LED display screen based on the acquired image.
- FIG. 2 is a flow chart of a brightness compensation method provided by an embodiment of the present application.
- the brightness compensation method performed during the operation of the brightness compensation device includes:
- Step 110 obtaining a plurality of captured images, wherein the plurality of captured images include images captured from a display screen of an LED display screen with a set grayscale, and compensation times of the plurality of captured images are all different.
- control chip in the LED display screen uses pulse width modulation technology (PWM) to control each LED lamp bead, that is, PWM is used to control the on and off time of each LED lamp bead within the display cycle (which can also be understood as the cycle of the PWM wave) to achieve the purpose of controlling the brightness of each LED lamp bead.
- PWM pulse width modulation technology
- the LED lamp bead when the PWM wave is at a high level, the LED lamp bead is turned on; when the PWM wave is at a low level, the LED lamp bead is turned off.
- the duration of the high level can be adjusted to adjust the brightness of the LED lamp bead.
- the longer the duration of the high level the brighter the actual brightness of the LED lamp bead.
- the LED display screen is first displayed, and the actual brightness difference of each LED lamp bead can be clearly seen through the actual display screen of the LED display screen.
- the LED display screen is controlled to display a pure color image, that is, each LED lamp bead in the LED display screen presents a uniform color.
- each LED lamp bead has red, green, and blue light-emitting diodes, and the three light-emitting diodes may have differences in actual display brightness
- the compensation coefficients corresponding to the LED lamp bead under the three primary colors are determined based on the three light-emitting diodes corresponding to the three optical primary colors in the LED lamp bead in the embodiment.
- the LED display screen is controlled to display a pure color image (ie, the display screen of the LED display screen is a pure color image).
- the pure color image includes a red image, a green image, and a blue image, and the LED lamp beads have a corresponding compensation coefficient under each color (ie, pure color).
- the LED display screen is controlled to display a pure red image (i.e., a red image) based on the red light-emitting diodes of each LED lamp bead, so as to determine the difference in the actual display brightness of each red light-emitting diode, and then determine the compensation coefficient corresponding to each red light-emitting diode.
- a pure green image i.e., a green image
- a pure blue image i.e., a blue image
- the compensation coefficients corresponding to the three colors are determined in the same manner, one color is used as an example for description in the embodiment. For example, currently, red is used as an example for description, and at this time, the LED lamp beads mentioned later can all be considered as red light-emitting diodes in the LED lamp beads.
- the brightness compensation device may send the pure color image to the LED display screen to control the LED display screen to display the pure color image, or the user may control the LED display screen to display the pure color image in other ways, which is not currently limited.
- the brightness of the LED display can be reflected by grayscale, that is, the degree of fineness of the LED lamp beads when adjusting the brightness is the grayscale of the LED display.
- the grayscale of the LED display is not limited in the embodiment.
- the LED display can adopt 16-level grayscale or 256-level grayscale.
- the grayscale can reflect the different color levels of each color between the darkest and the brightest.
- the grayscale of the LED display can be determined. Among them, the grayscale indicates the current display brightness and darkness. The higher the grayscale, the closer it is to white, and the lower the grayscale, the closer it is to black.
- the grayscale of the current LED display screen is a preset fixed value, and does not change during the execution of the brightness compensation method, that is, the grayscale of each LED lamp bead in the LED display screen is consistent with the set grayscale.
- the specific value of the set grayscale can be flexibly selected according to the actual needs of the LED display screen.
- the grayscale of the LED display is adjusted to a set grayscale by modifying the Gamma table of the LED display.
- the parameters in the Gamma table are used to characterize the brightness response characteristics of the display.
- the grayscale of the LED display is adjusted to a set grayscale by sending instructions to the LED display.
- the control chip of the LED display is used to receive instructions from the control software and control the LED lamp beads based on the received instructions, such as the control chip sets the LED lamp beads to the set grayscale based on the instructions of the control software.
- the control software is installed in the brightness compensation device and is used to control the LED display.
- the LED display screen can be subjected to low gray correction and high gray correction.
- low gray refers to the low grayscale segment, such as the 0-255 grayscale level (also called grayscale), and the 0-100 grayscale level can be considered as a low grayscale segment.
- Low gray correction refers to correcting the low grayscale segment of the LED display screen so that the display effect of each LED lamp bead in the low grayscale segment is consistent (such as the actual display brightness is consistent).
- High correction is similar to low gray correction, which will not be described in detail at present.
- the compensation coefficient determined based on the brightness compensation method is the compensation coefficient required for low gray correction, that is, the gray value of the set gray of each LED lamp bead in the LED display screen is less than the gray threshold, and the gray threshold can be understood as the maximum gray value in the low gray segment.
- the gray threshold can be understood as the maximum gray value in the low gray segment.
- the gray threshold is 100. It can be understood that the gray threshold can also be set to other values, and the embodiment does not limit this.
- the high gray correction in order to achieve a better effect of low gray correction, is turned off when the LED display screen is displayed. At this time, the LED display screen does not use the high gray correction compensation coefficient during the display process.
- the high gray correction compensation coefficient is the compensation coefficient used when performing high gray correction.
- the compensation time can be understood as the compensation time for the high level in the PWM wave, that is, the compensation time when the LED lamp bead is in the on stage. It can be understood that when the brightness of the LED lamp bead is adjusted by adjusting the duration of the high level in the PWM wave, the duration of the high level in the PWM wave corresponding to each LED lamp bead should be the same. However, due to the difference in the actual brightness of each LED lamp bead, the high level in the PWM wave corresponding to each LED lamp bead can be compensated (that is, the duration of the high level is changed to the duration after adding the compensation time) to make the brightness of each LED lamp bead consistent.
- the compensation coefficient can also be understood as the compensation time, but in the execution process of the brightness compensation method, the compensation time has been pre-set for the LED lamp bead. Therefore, in order to distinguish it from the pre-set compensation time, the current actual determined compensation time is recorded as the compensation coefficient.
- the compensation time of each LED lamp bead of the LED display screen is first set to the same compensation time, that is, when the LED display screen is displayed, the compensation time of each LED lamp bead is the same.
- the compensation time currently used is continuously adjusted, and the brightness compensation device obtains images containing the display screen of the LED display screen at different compensation times, so as to determine the brightness of each LED lamp bead at different compensation times based on the image.
- the specific value of the compensation time used by the LED display screen can be preset or calculated according to a set rule.
- the compensation time starts from zero and increases according to a set step length, and after each increment, the LED display screen is photographed by a camera.
- the set step length can be understood as the amplitude of each increase in the compensation time. The larger the set step length, the larger the amplitude of each increase in the compensation time. After the compensation time increases according to the set step length, an arithmetic progression relationship can be satisfied.
- the specific value of the set step length can be set according to actual conditions.
- the compensation time is first set to zero, and then the LED display increases according to the set step length. For example, if the step length is set to d (in nanoseconds), during the display process of the LED display, the compensation time is set to 0, d, 2d, 3d, ... in sequence.
- the number of increments of the compensation time is preset, and the number of increments is a preset number value, which can be understood as the number of times the compensation time is increased. For example, when the target number is 2, the compensation time is incremented 2 times from zero. At this time, there are 3 compensation times in total.
- the brightness compensation device can obtain an image containing the display screen of the LED display at each compensation time. It should be noted that the method of modifying the compensation time of the LED display is currently not limited.
- the image containing the display screen of the LED display screen obtained by the brightness compensation device is recorded as a captured image.
- the number of captured images is related to the number of compensation times. For example, when three compensation times are used to determine the compensation coefficient, then there are three captured images, and each captured image corresponds to a compensation time. At this time, the compensation time corresponding to each LED lamp bead in the captured image is the compensation time corresponding to the captured image. In other words, the compensation time of the same LED lamp bead in different captured images is different, and the compensation time of multiple captured images is different.
- the number of captured images is at least three, that is, the compensation time is at least three.
- the brightness compensation device controls the camera to shoot to obtain a captured image corresponding to the pure color image. Afterwards, after the LED display screen modifies the compensation time, the brightness compensation device shoots with the camera again to obtain a captured image corresponding to the pure color image.
- the compensation time of multiple captured images increases according to the image acquisition sequence, that is, the compensation time corresponding to two captured images adjacent in the acquisition sequence is in an increasing relationship from front to back.
- the compensation time increases according to a set step length
- the difference between the compensation time of the latter captured image and the compensation time of the previous captured image is the set step length.
- the LED display screen displays red, green and blue images respectively based on a compensation time, and the camera takes three photos based on the three pure color images.
- the LED display screen displays red, green and blue images respectively based on another compensation time, and the camera takes three photos based on the three pure color images, and so on.
- the compensation coefficient corresponding to the LED lamp bead under that color is determined.
- the camera transmits each captured image to the brightness compensation device, or the camera transmits all captured images to the brightness compensation device together after capturing all captured images.
- the camera transmits captured images.
- the LED lamp bead may also include only two colors of LEDs or only one color of LEDs. No matter how many colors of LEDs the LED lamp bead contains, the method for determining the compensation coefficient of each color of LED is the same.
- Step 120 Obtain a first brightness value of each LED lamp bead in the LED display screen in each collected image, and determine a target brightness value of each LED lamp bead.
- the first brightness value is the brightness value actually displayed by the LED lamp bead.
- Each LED lamp bead has a corresponding first brightness value in each captured image.
- the first brightness value can reflect the actual display brightness of the corresponding LED lamp bead at the compensation time corresponding to the captured image.
- the brightness value can be understood as the specific value of the brightness. It can be understood that the brightness and color actually displayed by each LED lamp bead can be reflected by the pixels corresponding to the LED lamp bead in the collected image. Therefore, after obtaining each collected image, the first brightness value of each LED lamp bead in the corresponding collected image can be determined.
- determining the brightness value of LED lamp beads in an LED display screen through an image containing the display screen of the LED display screen is a technical means that has been realized and will not be explained separately at present.
- the target brightness value refers to the brightness value that each LED lamp bead is expected to achieve.
- each LED lamp bead uses the same target brightness value, that is, when the actual brightness of each LED lamp bead reaches the target brightness value, the brightness of each LED lamp bead can be consistent in the low gray stage.
- the target brightness value may be a preset brightness value, or a brightness value artificially specified in combination with the first brightness value of each current LED lamp bead in each captured image, or a brightness value calculated by a brightness compensation device according to a set rule.
- the target brightness value of each LED lamp bead is determined by collecting images. For example, after the brightness compensation device determines the first brightness value of each LED lamp bead, a reasonable target brightness value is obtained by combining the first brightness value settings. In one embodiment, determining the target brightness value of each LED lamp bead in this step may include steps 121-122:
- Step 121 Select a target image from each collected image.
- the target image refers to the acquired image used when determining the target brightness value.
- one image is randomly selected from each acquired image as the target image; or, after removing the acquired image with the shortest compensation time and the acquired image with the longest compensation time from each acquired image, one image is selected as the target image; or, a specific acquired image is selected as the target image according to a pre-set rule.
- the brightness compensation device controls the camera to shoot the LED display screen.
- the captured image obtained by the second shooting is selected as the target image, that is, the captured image with the second shortest compensation time is selected as the target image.
- Step 122 Obtain the first brightness value of each LED lamp bead in the target image, and use the average value of each first brightness value as the target brightness value of each LED lamp bead.
- the first brightness value of each LED lamp bead under the target image can be determined, and then the target brightness value is determined based on the first brightness value of each LED lamp bead.
- the average value of the first brightness values of each LED lamp bead in the target image is calculated and used as the target brightness value. It can be understood that the average value of the first brightness value can best reflect the average brightness displayed by each LED lamp bead.
- the target brightness value may also be determined in other ways, such as selecting the first brightness value with the largest number of occurrences from among the first brightness values corresponding to the selected target image as the target brightness value.
- step 130 is executed.
- Step 130 determine the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time corresponding to each collected image.
- the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value.
- the compensation coefficient required for each LED lamp bead to reach the target brightness value is determined.
- the compensation coefficient is a compensation coefficient for the low gray stage, and is used for the low gray correction process of the LED display.
- the compensation coefficients of the LED lamp beads in the embodiments of the present application are determined in the same manner. For ease of understanding, the following description is made by taking the determination of the compensation coefficient of one LED lamp bead as an example.
- the LED display screen is displayed at a low grayscale, and the LED lamp beads have a brightness value.
- the LED lamp beads are brightness compensated (i.e., the compensation time is set for the LED lamp beads)
- the brightness of the LED lamp beads increases, that is, the brightness value of the LED lamp beads increases.
- the difference between the current brightness value of the LED lamp beads and the original brightness value of the LED lamp beads can be considered as the increase in brightness based on the compensation time.
- the longer the compensation time the greater the increase in brightness, that is, the compensation time is proportional to the increase in brightness. Based on the above description, it can be seen that the compensation time and the compensation coefficient have the same effect, so the compensation coefficient is also proportional to the increase in the brightness of the LED lamp beads.
- the compensation coefficient required for the LED lamp bead to reach the target brightness value can be determined. It can be understood that the compensation coefficient is proportional to the increase in brightness required when the corresponding LED lamp bead reaches the target brightness value, that is, when the LED lamp bead reaches the target brightness value, if a larger value of brightness increase is required, the required compensation coefficient is larger, otherwise, the required compensation coefficient is smaller.
- a first brightness value is selected for the LED lamp bead.
- the selected first brightness value is recorded as the second brightness value
- the second brightness value is a first brightness value that is less than and only less than the target brightness value (that is, only smaller than the target brightness value).
- the first brightness value that is only greater than the second brightness value is also the first brightness value that is only greater than or equal to the target brightness value.
- the second brightness value is recorded as B(N-2), and the first brightness value that is only greater than or equal to the target brightness value is recorded as B(N-1).
- B(N-2) and B(N-1) are the first brightness values in two adjacent collected images in the collection order, and B(N-2) ⁇ target brightness value ⁇ B(N-1). In other words, it can be considered that the target brightness value is located in the brightness range composed of B(N-2) and B(N-1).
- the LED lamp bead can reach the target brightness value most quickly by increasing a smaller compensation time at the second brightness value. Therefore, on the basis of the compensation time corresponding to the second brightness value, an additional compensation time required for the second brightness value to reach the target brightness value is added, and the compensation coefficient required for the LED lamp bead to reach the target brightness value can be obtained.
- the increased compensation time can be determined based on the relationship that the compensation time is proportional to the increase in the brightness of the LED lamp bead.
- the brightness difference between the target brightness value and B(N-2) is determined, and the brightness difference can be understood as the increase in brightness of the LED lamp bead when it increases from B(N-2) to the target brightness value.
- the brightness increase value corresponding to the set step length is determined, that is, the increase in brightness of the LED lamp bead when the compensation time is the set step length. Since the difference in compensation time between the latter acquired image and the previous acquired image in two adjacent acquired images in the acquisition sequence is the set step length, the difference in the first brightness value of the LED lamp bead in the latter acquired image and the previous acquired image can be understood as the brightness increase value corresponding to the set step length.
- the brightness difference between B(N-1) and B(N-2) can reflect the increase in brightness of the LED lamp bead when the compensation time corresponding to B(N-2) increases to the compensation time corresponding to B(N-1), that is, the brightness increase value corresponding to the set step length.
- the compensation time required for the LED lamp bead to increase from B(N-2) to the target brightness value can be determined.
- this compensation time is added to the compensation time corresponding to B(N-2) to obtain the compensation coefficient required for the LED lamp bead to reach the target brightness value.
- the compensation coefficient of the LED lamp bead can be set to zero, that is, there is no need to compensate the LED lamp bead, and the actual brightness of the LED lamp bead can reach the target brightness value.
- the currently used maximum compensation time (that is, the compensation time corresponding to the last collected image taken) can be directly used as the compensation coefficient of the LED lamp bead to make the LED lamp bead as close to the target brightness value as possible.
- the compensation time can be increased by increasing the number of collected images, so that the first brightness value of the LED lamp bead in the collected image corresponding to the maximum compensation time is greater than or equal to the target brightness value.
- the incremental increase of the compensation time can be increased by increasing the value of the set step length, so that the first brightness value of the LED lamp bead in the collected image corresponding to the maximum compensation time is greater than or equal to the target brightness value.
- the compensation time is continuously increased to increase the number of collected images, although the compensation coefficient that enables the LED lamp beads to reach the target brightness value can be calculated, when the LED display screen is displayed at low grayscale, the brightness of the camera photo is relatively low, and the required exposure time and shooting time are relatively long. Therefore, when the number of collected images is increased, the required shooting time will also increase. For example, when the camera shoots an image, the average exposure time of an image is 40s. Then, it takes 2 minutes for the camera to shoot three pure color images corresponding to the three optical primary colors. In this way, for each additional collected image (which can also be understood as increasing the compensation time), the shooting time will be increased by 2 minutes. In addition, the time spent setting the compensation time for the LED display screen will increase the time required for the compensation coefficient determination process, which is not conducive to the rapid determination of the compensation coefficient.
- the compensation coefficient that enables the LED lamp beads to reach the target brightness value can be calculated, after the set step length is increased, the compensation time that increases incrementally according to the set step length will also become longer. In this way, the increase value of the first brightness value of the LED lamp beads in adjacent collected images will also increase, and the target brightness value determined based on the collected image will also increase, that is, the range of the compensation coefficient is expanded, which reduces the accuracy of the compensation coefficient.
- the method of continuously increasing the compensation time to increase the number of collected images and the method of increasing the value of the set step length are not conducive to the determination of the compensation coefficient.
- an additional compensation time is calculated in combination with the target brightness value and the maximum first brightness value of the LED lamp beads in each collected image, and the calculated compensation time is added to the maximum compensation time to obtain the final compensation coefficient, thereby ensuring that the final compensation coefficient can make the LED lamp beads reach the target brightness value.
- the additionally calculated compensation time is similar to the calculation method of the aforementioned compensation time.
- the brightness difference between the target brightness value and the maximum first brightness value of the LED lamp bead is determined, and the brightness increase value corresponding to the set step size is determined.
- the brightness increase value can be the brightness difference between the maximum first brightness value of the LED lamp bead and the second largest first brightness value.
- the compensation time required for the maximum first brightness value to increase to the target brightness value can be determined.
- the compensation time is added to the compensation time corresponding to the maximum first brightness value (i.e., the maximum compensation time) to obtain the compensation coefficient.
- step 140 is executed.
- Step 140 When the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold.
- the first LED lamp bead is any lamp bead in the LED display screen.
- the coefficient threshold of the compensation coefficient is set.
- the coefficient threshold can be determined according to the model of the control chip actually used by the LED display. Generally speaking, the coefficient threshold is greater than the maximum compensation time when the compensation time is incremented according to the set step length, and is within the limit of the maximum compensation time of the control chip.
- the coefficient threshold can be understood as the maximum compensation coefficient that can be used when the current LED display is compensated.
- the compensation coefficient of the LED lamp bead After determining the compensation coefficient of the LED lamp bead, compare the compensation coefficient with the coefficient threshold. If the compensation coefficient is less than or equal to the coefficient threshold, it means that there is no overflow. At this time, retain the compensation coefficient as the compensation coefficient of the LED lamp bead. If the compensation coefficient is greater than the coefficient threshold, it means that there may be an overflow. At this time, use the coefficient threshold as the compensation coefficient of the LED lamp bead, that is, modify the compensation coefficient of the LED lamp bead to the coefficient threshold. Currently, for ease of description, the LED lamp bead whose compensation coefficient determined in step 130 is greater than the coefficient threshold is recorded as the first LED lamp bead.
- the deviation of the compensation coefficient being proportional to the increase in brightness can be made very small, that is, the deviation between the actual brightness of the first LED lamp bead and the target brightness value is very small.
- the determined compensation coefficient is compared with the coefficient threshold. Because, when there is a first brightness value greater than the target brightness value, it means that the LED lamp bead can reach the target brightness value based on the currently used compensation time, and there will be no overflow.
- Step 150 Send the obtained compensation coefficient to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient.
- the control chip is located in the LED display screen.
- the brightness compensation device determines the final compensation coefficient of each LED lamp bead, it sends it to the control chip in the LED display screen, so that the control chip of the LED display screen applies the compensation coefficient to perform brightness compensation based on the compensation coefficient during the display process, that is, the control chip of the LED display screen adjusts the duration of the high level of the PWM wave based on the compensation coefficient, thereby realizing brightness compensation for the LED lamp beads.
- the LED lamp beads controlled by each control chip can be determined. Then, after determining the compensation coefficient of each LED lamp bead, the compensation coefficient can be sent to the control chip corresponding to the LED lamp bead to control the LED lamp bead.
- multiple captured images including the display screen of an LED display screen are acquired, and the LED display screens in the multiple captured images all use a set grayscale and correspond to different compensation times. Then, a first brightness value of each LED lamp bead in the LED display screen in each captured image is acquired and a target brightness value of each LED lamp bead is determined.
- the compensation coefficient of each LED lamp bead is determined by combining the target brightness value, the first brightness value of the LED lamp bead in each captured image, and the compensation time corresponding to each captured image. The currently determined compensation coefficient is proportional to the increase in brightness required for the LED lamp bead to reach the target brightness value.
- the compensation coefficient of the first LED lamp bead among the LED lamp beads is greater than the coefficient threshold
- the compensation coefficient of the first LED lamp bead is modified to the coefficient threshold.
- the compensation coefficient of each LED lamp bead is sent to the control chip corresponding to the LED lamp bead in the LED display screen, so that the control chip can compensate the brightness of the LED lamp bead based on the compensation coefficient.
- a suitable compensation coefficient is determined for each LED lamp bead, so that when the LED lamp bead is compensated for the brightness by the compensation coefficient, the brightness displayed by each LED lamp bead reaches the target brightness value, that is, the actual brightness of each LED lamp bead is kept as consistent as possible, and the compensation coefficient can be proportional to the increase in the brightness of the LED lamp bead as much as possible.
- the range of the compensation coefficient can be ensured to be within the normal use range of the hardware equipment of the LED display screen, avoiding the overflow phenomenon, so that the uniformity of the LED display screen (that is, the actual brightness of each LED lamp bead is consistent) and the compensation coefficient are balanced.
- the target brightness value is determined by the average value of the first brightness value of each LED lamp bead in a collected image, which can ensure that the determined target brightness value is consistent with the actual lighting of the LED lamp bead.
- FIG3 is a flow chart of a brightness compensation method provided by an embodiment of the present application.
- the brightness compensation method is based on the above brightness compensation method and exemplarily describes the process of determining the compensation coefficient.
- the brightness compensation method includes:
- Step 210 Acquire a plurality of collected images, wherein the plurality of collected images include images collected from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of collected images are all different.
- the compensation time starts from zero and increases according to a set step size.
- the number of times the compensation time is incremented is a preset target number. For example, assuming that N acquisition images are currently taken, N ⁇ 3, and the set step size used when the compensation time is incremented is d (in nanoseconds), at this time, the compensation time corresponding to the first acquisition image taken is 0, the compensation time corresponding to the second acquisition image is d, ..., and the compensation time corresponding to the Nth acquisition image is d*(N-1), that is, the target number is N-1.
- Step 220 Obtain the first brightness value of each LED lamp bead in the LED display screen in each collected image.
- Step 230 Select a target image from each of the acquired images.
- the captured image currently used to determine the target brightness value is used as the target image.
- the compensation time corresponding to the target image is short, which can ensure the accuracy of the compensation coefficient.
- the second captured image is selected as the target image for description.
- Step 240 Obtain the first brightness value of each LED lamp bead in the target image, and use the average value of each first brightness value as the target brightness value of each LED lamp bead.
- Step 250 determine the second brightness value of each LED lamp bead according to the first brightness value of each LED lamp bead in each collected image, wherein the second brightness value is the first brightness value among the first brightness values of the corresponding LED lamp bead that is less than and only less than the target brightness value.
- the compensation coefficient of one LED lamp bead is taken as an example for description. In actual application, the compensation coefficient of each LED lamp bead can be determined in this way, and the compensation coefficient of each LED lamp bead can be determined sequentially or simultaneously.
- the first brightness value of the LED lamp bead in the first captured image is recorded as B0
- the first brightness value of the LED lamp bead in the second captured image is recorded as B1, ...
- the first brightness value in the Nth captured image is recorded as B(N-1). Since the compensation time is proportional to the increase in the first brightness value, and the compensation time of the first captured image is the smallest, the first brightness values of an LED lamp bead are arranged in the order of B0, B1, ..., B(N-1) from small to large.
- the second brightness value of the LED lamp bead is selected from each first brightness value.
- the relationship between the target brightness value and each first brightness value is determined.
- it is first determined whether the target brightness value is less than or equal to B0. If not, it is continued to determine whether the target brightness value is less than or equal to B1, and so on, until it is determined that the target brightness value is less than or equal to a certain first brightness value, the previous first brightness value compared with the target brightness value is determined as a first brightness value that is less than and only less than the target brightness value, and currently, the determined first brightness value is recorded as the second brightness value. For example, when the target brightness value is greater than B1 and less than or equal to B2, B1 is the currently determined second brightness value.
- the brightness range can be divided based on the first brightness value. For example, less than or equal to B0 is a brightness range, greater than B0 and less than or equal to B1 is a range... greater than B(N-2) and less than or equal to B(N-1) is a brightness range, and greater than B(N-1) is a brightness range.
- the brightness range to which the target brightness value belongs is determined, and the minimum first brightness value corresponding to the brightness range is used as the second brightness value. For example, if the target brightness value is in the brightness range greater than B(N-2) and less than or equal to B(N-1), the second brightness value is B(N-2).
- the target brightness value is less than or equal to the minimum first brightness value of the LED lamp bead, that is, the target brightness value is less than or equal to B0, and at this time, the second brightness value cannot be found.
- it also includes: when the minimum first brightness value of the second LED lamp bead in each collected image is equal to or greater than the target brightness value (that is, there is no second brightness value of the second LED lamp bead), the compensation coefficient of the second LED lamp bead is determined to be zero, and the second LED lamp bead is any lamp bead in the LED display screen.
- the compensation time corresponding to the minimum first brightness value of the LED lamp bead in each captured image is 0. If the target brightness value is less than and equal to the minimum first brightness value, it means that there is no need to compensate the LED lamp bead, and the actual brightness value of the LED lamp bead can reach the target brightness value. Therefore, the compensation coefficient of the LED lamp bead is determined to be 0, that is, there is no need to compensate the LED lamp bead during the application of the LED display.
- the LED lamp bead whose minimum first brightness value is equal to or greater than the target brightness value is recorded as the second LED lamp bead, which can also be understood as failing to determine the second brightness value of the second LED lamp bead.
- Step 260 Determine the brightness difference between the target brightness value and the second brightness value, and determine the brightness increase value corresponding to the set step size.
- the brightness increase value corresponding to the set step length refers to the increase in the actual brightness value of the LED lamp bead after the compensation time of the LED lamp bead is increased by the set step length. It can be understood that when the compensation time increases according to the set step length, the difference in the first brightness value of the LED lamp bead in the two corresponding adjacent captured images can be understood as the brightness increase value corresponding to the set step length.
- the brightness difference i.e., brightness increase value
- two first brightness values that are adjacent to each other should be the same, and both are the brightness increase values when the set step length is used as the compensation time. Therefore, the brightness difference between any two adjacent first brightness values can be used as the brightness increase value of the set step length.
- the compensation time and the brightness increase value are nearly proportional rather than completely proportional.
- the first brightness value and the second brightness value that are only greater than the second brightness value are used to determine the brightness increase value corresponding to the current set step length. For example, if the second brightness value is B0, at this time, the first brightness value that is only greater than the second brightness value is B1, and the brightness increase value corresponding to the set step length is B1-B0.
- the brightness difference between the target brightness value and the second brightness value may represent a brightness increase value required to adjust the second brightness value to the target brightness value.
- Step 270 Determine the compensation coefficient of the LED lamp beads according to the brightness difference, the brightness increase value, the set step size, and the compensation time of the collected image corresponding to the second brightness value.
- the compensation time is proportional to the increase in brightness, after knowing the increase in brightness when the step length is set as the compensation time, and the brightness difference between the target brightness value and the second brightness value, the compensation time corresponding to the brightness difference between the target brightness value and the second brightness value can be determined based on the proportional relationship.
- the second brightness value is B0
- the first brightness value that is only greater than the second brightness value is B1
- the target brightness value is av
- the step length is set to d
- the compensation time corresponding to the brightness difference between the target brightness value and the second brightness value can be expressed as: d*(av-B0)/(B1-B0)
- the compensation time plus the compensation time corresponding to the second brightness value can obtain the compensation coefficient required for the LED lamp bead to reach the target brightness value.
- the compensation coefficient of the LED lamp bead is 0+d*(av-B0)/(B1-B0).
- the second brightness value is the maximum first brightness value of the corresponding LED lamp bead
- the compensation coefficient of the LED lamp bead can be expressed as d*(N-1)+d*(av-B(N-1))/(B(N-1)-B(N-2)), where d is the set step size, av is the target brightness value, N is the total number of captured images, d*(N-1) is the compensation time corresponding to the Nth captured image, B(N-1) is the maximum first brightness value (i.e., the first brightness value of the LED lamp bead in the Nth captured image), and B(N-2) is the second largest first brightness value (i.e., the first brightness value of the LED lamp bead in the N-1th captured image).
- Step 280 When the second brightness value of the first LED bead is the maximum first brightness value of the first LED bead in each collected image, determine whether the compensation coefficient of the first LED bead is greater than the coefficient threshold. When the compensation coefficient is greater than the coefficient threshold, execute step 290; otherwise, end.
- the second brightness value selected for the first LED bead is the maximum first brightness value of the first LED bead (i.e., the first brightness value of the LED bead in the last captured image)
- overflow may occur. Therefore, when the second brightness value is selected and the selected second brightness value is the maximum first brightness value of the LED bead, after the compensation coefficient is determined, it is determined whether the compensation coefficient is greater than the coefficient threshold. If the second brightness value is not the maximum first brightness value, the currently determined compensation coefficient is directly used as the final compensation coefficient of the LED bead.
- Step 290 When the compensation coefficient is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold.
- step 2100 is executed.
- Step 2100 Send the obtained compensation coefficient to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient, and the control chip is located in the LED display screen.
- the compensation time of each LED lamp bead of the LED display screen is first set to 0, and then the high gray correction of the LED display screen is turned off, and the LED display screen is set to a set grayscale (the grayscale is set to a low-order grayscale value) by modifying the Gamma table or sending instructions to the control chip of the LED display screen (also known as a receiving card).
- the grayscale setting is 64 as an example for description.
- the grayscale of each LED lamp bead is 64.
- the brightness compensation device controls the camera to shoot the LED display screen.
- the step length is set to d, and d is described as 0.4ns.
- the camera takes N acquired images.
- the compensation time of the first acquired image is 0, the compensation time of the second acquired image is d, the compensation time of the third acquired image is 2d, and so on.
- the brightness compensation device obtains N acquired images, and obtains the first brightness value of each LED lamp bead in each acquired image.
- each LED lamp bead corresponds to N first brightness values.
- the first brightness value of the first acquired image is recorded as B0
- the first brightness value of the second acquired image is recorded as B1
- the first brightness value of the Nth acquired image is recorded as B(N-1).
- the brightness compensation device calculates the average of the first brightness values of each LED lamp bead in the second captured image (compensation time is d) and uses it as the target brightness value. At this time, the target brightness value is recorded as av. Afterwards, the compensation coefficient of each LED lamp bead when it reaches av is determined. At present, the compensation coefficient is recorded as Coef, and the coefficient threshold is recorded as Max. At this time, the compensation coefficient is determined as follows:
- the compensation coefficient of each LED lamp bead can be determined.
- the brightness compensation device sends the compensation coefficient to the control chip of each LED lamp bead in the LED display screen, so that during the display process of the LED display screen, the control chip can perform brightness compensation on the LED lamp bead based on the compensation coefficient.
- the control chip can perform brightness compensation on the LED lamp bead based on the compensation coefficient.
- the target brightness value is more concentrated in the brightness value range corresponding to the first three acquisition images, which avoids overflow and further ensures the accuracy of the compensation coefficient.
- a plurality of captured images including a display screen of an LED display screen are acquired, and the LED display screens in the plurality of captured images all use a set grayscale and correspond to different compensation times. Then, a target brightness value is determined by combining an average value of the first brightness values of each LED lamp bead in one captured image, and a second brightness value that is only less than the target brightness value is determined by combining the first brightness values of the LED lamp bead in each captured image. Then, a compensation coefficient of the LED lamp bead is determined according to the brightness difference between the target brightness value and the second brightness value, a set step size, a brightness increase value corresponding to the set step size, and a compensation time corresponding to the second brightness value.
- the second brightness value selected for the LED lamp bead is the maximum first brightness value of the LED lamp bead and the determined compensation coefficient is greater than
- the compensation coefficient of the LED lamp bead is modified to the coefficient threshold, and then the compensation coefficient of each LED lamp bead is sent to the control chip of the LED display screen, so that the control chip can compensate the brightness of the LED lamp bead based on the compensation coefficient.
- the brightness displayed by each LED lamp bead reaches the target brightness value through the compensation coefficient, that is, the actual brightness of each LED lamp bead is kept as consistent as possible, and the compensation coefficient is determined by the ratio of the brightness difference between the target brightness value and the second brightness value to the brightness increase value corresponding to the set step length, so that the compensation coefficient is as proportional to the increase value of the brightness of the LED lamp bead as possible, ensuring the compensation effect.
- the coefficient threshold it can be ensured that the range of the compensation coefficient is within the normal use range of the hardware equipment of the LED display screen, avoiding the overflow phenomenon, so that the uniformity of the LED display screen (that is, the actual brightness of each LED lamp bead is consistent) and the compensation coefficient are balanced.
- FIG4 is a schematic diagram of the structure of a brightness compensation device provided by an embodiment of the present application.
- the brightness compensation device includes: an image acquisition unit 301 , a brightness determination unit 302 , a coefficient determination unit 303 , a coefficient modification unit 304 and a coefficient sending unit 305 .
- the image acquisition unit 301 is used to acquire multiple captured images, and the multiple captured images include images captured from the display screen of the LED display screen with a set grayscale, and the compensation time of the multiple captured images is different;
- the brightness determination unit 302 is used to obtain the first brightness value of each LED lamp bead in the LED display screen in each captured image, and determine the target brightness value of each LED lamp bead;
- the coefficient determination unit 303 is used to determine the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each captured image, and the compensation time corresponding to each captured image, and the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value;
- the coefficient modification unit 304 is used to update the compensation coefficient of the first LED lamp bead to the coefficient threshold when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, and the first LED lamp bead is any lamp bead in the LED display screen
- the compensation time of multiple captured images increases in the order in which the images are captured.
- the difference between the compensation time of the latter acquired image and the compensation time of the previous acquired image is the set step size.
- the coefficient determination unit 303 includes: a brightness selection subunit, which is used to determine the second brightness value of each LED lamp bead according to the first brightness value of each LED lamp bead in each collected image, and the second brightness value is the first brightness value that is less than and only less than the target brightness value among the first brightness values of the corresponding LED lamp bead; a brightness calculation subunit, which is used to determine the brightness difference between the target brightness value and the second brightness value, and to determine the brightness increase value corresponding to the set step size; a compensation determination subunit, which is used to determine the compensation coefficient of the LED lamp bead according to the brightness difference, the brightness increase value, the set step size and the compensation time of the collected image corresponding to the second brightness value.
- it also includes: a zero compensation determination unit, which is used to determine that the compensation coefficient of the second LED lamp bead is zero if the second brightness value of the second LED lamp bead does not exist, and the second LED lamp bead is any lamp bead in the LED display screen.
- a zero compensation determination unit which is used to determine that the compensation coefficient of the second LED lamp bead is zero if the second brightness value of the second LED lamp bead does not exist, and the second LED lamp bead is any lamp bead in the LED display screen.
- the coefficient modification unit 304 includes: a coefficient judgment subunit, used to judge whether the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold when the second brightness value of the first LED lamp bead is the largest first brightness value of the first LED lamp bead in each collected image; a compensation coefficient modification subunit, used to update the compensation coefficient of the first LED lamp bead to the coefficient threshold when the compensation coefficient is greater than the coefficient threshold.
- the brightness determination unit 302 includes: a brightness acquisition subunit, used to obtain the first brightness value of each LED lamp bead in the LED display screen in each collected image; an image selection subunit, used to select a target image in each collected image; a mean determination subunit, used to obtain the first brightness value of each LED lamp bead in the target image, and use the average value of each first brightness value as the target brightness value of each LED lamp bead.
- the display screen of the LED display screen is a pure color image, and the pure color image includes a red image, a green image, and a blue image.
- the LED lamp beads have a corresponding compensation coefficient under each pure color.
- the grayscale value of the set grayscale of each LED lamp bead in the LED display screen is less than the grayscale threshold.
- the brightness compensation device provided above can be used to execute the brightness compensation method executed by the brightness compensation device provided in any of the above embodiments, and has corresponding functions and beneficial effects.
- FIG5 is a schematic diagram of the structure of a brightness compensation device provided by an embodiment of the present application.
- the brightness compensation device includes a processor 40 and a memory 41; the number of processors 40 can be one or more, and FIG5 takes one processor 40 as an example.
- the processor 40 and the memory 41 in the brightness compensation device can be connected via a bus or other means, and FIG5 takes the connection via a bus as an example.
- the memory 41 can be used to store software programs, computer executable programs and modules, such as program instructions/modules corresponding to the brightness compensation device in the embodiment of the present application (the image acquisition unit 301, the brightness determination unit 302, the coefficient determination unit 303, the coefficient modification unit 304 and the coefficient sending unit 305 in the brightness compensation device).
- the processor 40 executes various functional applications and data processing of the brightness compensation device by running the software programs, instructions and modules stored in the memory 41, that is, realizes the above-mentioned brightness compensation method.
- the memory 41 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the brightness compensation device, etc.
- the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
- the memory 41 may further include a memory remotely arranged relative to the processor 40, and these remote memories may be connected to the brightness compensation device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- the brightness compensation device may also include a communication device for realizing data communication according to the instructions of the processor, such as data communication with a camera or with an LED display screen.
- the brightness compensation device may also include an input device and an output device, wherein the input device may be used to receive input digital or character information and generate key signal input related to user settings and function control of the brightness compensation device, and may also include an audio input device such as a microphone.
- the output device may include devices such as a display screen and a speaker.
- the above-mentioned brightness compensation device includes a corresponding brightness compensation device, which can be used to execute the brightness compensation method provided by any embodiment and has corresponding functions and beneficial effects.
- An embodiment of the present application further provides a brightness compensation system.
- the brightness compensation system includes an LED display screen, a camera, and the aforementioned brightness compensation device.
- the camera is controlled by the brightness compensation device to take pictures to obtain multiple captured images, and the multiple captured images include images captured from the display screen of the LED display screen with a set grayscale, and the compensation time of the multiple captured images is different.
- the brightness compensation device After the brightness compensation device obtains the multiple captured images, it obtains the first brightness value of each LED lamp bead in the LED display screen in each captured image, and determines the target brightness value of each LED lamp bead; according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each captured image, and the compensation time corresponding to each captured image, the compensation coefficient of each LED lamp bead is determined, and the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value; when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold, and the first LED lamp bead is any lamp bead in the LED display screen; the obtained compensation coefficient is sent to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp bead based on the compensation coefficient, and the control chip is located in the LED display screen.
- the brightness compensation device can be connected to the camera and the LED display screen by wire or wirelessly.
- the camera can be used as a built-in module of the brightness compensation device, in which case the brightness compensation system includes the LED display screen and the brightness compensation device including the camera.
- the LED display screen can be used as a built-in module of the brightness compensation device, in which case the brightness compensation system includes the camera and the brightness compensation device including the LED display screen.
- an embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the brightness compensation method provided in any embodiment of the present application, and have corresponding functions and beneficial effects.
- the application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware.
- the application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
- the application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the application. It should be understood that each flow and/or box in the flow chart and/or block diagram and the combination of the flow chart and/or box in the flow chart and/or block diagram can be realized by computer program instructions.
- These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of a computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and/or one box or multiple boxes of a block diagram.
- These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram.
- These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operating steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram.
- a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
- the memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM).
- RAM random access memory
- ROM read-only memory
- flash RAM flash memory
- Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information.
- Information can be computer readable instructions, data structures, program modules or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
- computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
Disclosed in embodiments of the present application are a luminance compensation method and apparatus, a device and a storage medium. The method comprises: acquiring a plurality of collected images obtained by collecting a display picture of an LED display screen having set grayscale, wherein the compensation times of the plurality of collected images are different; acquiring a first luminance value of each LED lamp bead, in the LED display screen, in each collected image and determining a target luminance value of each LED lamp bead; according to the target luminance value, the first luminance value and the compensation time corresponding to each collected image, determining a compensation coefficient of each LED lamp bead, wherein the compensation coefficient is proportional to a luminance increase value required when the LED lamp bead reaches the target luminance value; when the compensation coefficient of a first LED lamp bead is greater than a coefficient threshold value, determining the compensation coefficient of the first LED lamp bead as the coefficient threshold value; and sending the compensation coefficient to a control chip in the LED display screen, so that the control chip performs luminance compensation on the basis of the compensation coefficient. By adopting the method, the technical problem in the prior art that there are differences in luminance of LED lamp beads of LED display screens can be solved.
Description
本申请实施例涉及LED显示屏技术领域,尤其涉及一种亮度补偿方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of LED display screens, and in particular to a brightness compensation method, device, equipment and storage medium.
发光二极管(light-emitting diode,LED)是一种常用的发光器件,其可以高效地将电能转化为光能,因此,被广泛应用于显示、照明等领域。在显示领域中,可以由LED灯珠组成LED显示屏,并通过LED显示屏显示成像。然而,对于LED显示屏而言,由于各LED灯珠的物理特性在亮度上存在离散性,使得各LED灯珠在同一低亮度下所显示的实际亮度可能存在较大的差异,这种差异在显示纯色的图像时尤为明显,降低了LED显示屏的显示效果。Light-emitting diode (LED) is a commonly used light-emitting device that can efficiently convert electrical energy into light energy. Therefore, it is widely used in display, lighting and other fields. In the display field, LED display screens can be composed of LED lamp beads, and images are displayed through LED display screens. However, for LED display screens, due to the discreteness of the physical characteristics of each LED lamp bead in brightness, the actual brightness displayed by each LED lamp bead at the same low brightness may vary greatly. This difference is particularly obvious when displaying pure color images, which reduces the display effect of the LED display screen.
发明内容Summary of the invention
本申请一个实施例提供了一种亮度补偿方法、装置、设备及存储介质,以解决相关技术中LED显示屏的各LED灯珠所显示的亮度存在差异的技术问题。An embodiment of the present application provides a brightness compensation method, device, equipment and storage medium to solve the technical problem in the related art that there is a difference in brightness displayed by each LED lamp bead of an LED display screen.
第一方面,本申请一个实施例提供了一种亮度补偿方法,包括:In a first aspect, an embodiment of the present application provides a brightness compensation method, including:
获取多张采集图像,所述多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,所述多张采集图像的补偿时间均不同;Acquire a plurality of collected images, wherein the plurality of collected images include images collected from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of collected images are all different;
获取所述LED显示屏中各LED灯珠在各采集图像中的第一亮度值,以及确定所述各LED灯珠的目标亮度值;Obtaining a first brightness value of each LED lamp bead in the LED display screen in each collected image, and determining a target brightness value of each LED lamp bead;
根据所述各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像的补偿时间,确定所述各LED灯珠的补偿系数,所述补偿系数与对应LED灯珠达到所述目标亮度值时所需的亮度的增加值成正比;Determine a compensation coefficient for each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time of each collected image, wherein the compensation coefficient is proportional to the increase in brightness required when the corresponding LED lamp bead reaches the target brightness value;
在第一LED灯珠的补偿系数大于系数阈值时,将所述第一LED灯珠的补偿系数更新为所述系数阈值,所述第一LED灯珠为所述LED显示屏中的任一灯珠;When the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, updating the compensation coefficient of the first LED lamp bead to the coefficient threshold, wherein the first LED lamp bead is any lamp bead in the LED display screen;
将得到的补偿系数发送至控制芯片,以使所述控制芯片基于所述补偿系数对相应的LED灯珠进行亮度补偿,所述控制芯片位于所述LED显示屏中。The obtained compensation coefficient is sent to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient, and the control chip is located in the LED display screen.
第二方面,本申请一个实施例还提供了一种亮度补偿装置,包括:In a second aspect, an embodiment of the present application further provides a brightness compensation device, including:
图像获取单元,用于获取多张采集图像,所述多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,所述多张采集图像的补偿时间均不同;An image acquisition unit, used to acquire a plurality of acquired images, wherein the plurality of acquired images include images acquired from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of acquired images are all different;
亮度确定单元,用于获取所述LED显示屏中各LED灯珠在各采集图像中的第一亮度值,以及确定所述各LED灯珠的目标亮度值;A brightness determination unit, used to obtain a first brightness value of each LED lamp bead in the LED display screen in each collected image, and to determine a target brightness value of each LED lamp bead;
系数确定单元,用于根据所述各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定所述各LED灯珠的补偿系数,所述补偿系数与所述LED灯珠达到所述目标亮度值时所需的亮度的增加值成正比;A coefficient determination unit, used to determine the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time corresponding to each collected image, wherein the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value;
系数修改单元,用于在第一LED灯珠的补偿系数大于系数阈值时,将所述第一LED灯珠的补偿系数更新为所述系数阈值,所述第一LED灯珠为所述LED显示屏中的任一灯珠;A coefficient modification unit, configured to update the compensation coefficient of a first LED lamp bead to the coefficient threshold when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, wherein the first LED lamp bead is any lamp bead in the LED display screen;
系数发送单元,用于将得到的补偿系数发送至控制芯片,以使所述控制芯片基于所述补偿系数对相应的LED灯珠进行亮度补偿,所述控制芯片位于所述LED显示屏中。The coefficient sending unit is used to send the obtained compensation coefficient to the control chip so that the control chip can perform brightness compensation on the corresponding LED lamp beads based on the compensation coefficient. The control chip is located in the LED display screen.
第三方面,本申请一个实施例还提供了一种亮度补偿设备,包括:In a third aspect, an embodiment of the present application further provides a brightness compensation device, including:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;A memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的亮度补偿方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the brightness compensation method as described in the first aspect.
第四方面,本申请一个实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的亮度补偿方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the brightness compensation method as described in the first aspect.
在本申请一个实施例中,通过获取包含LED显示屏显示画面的多张采集图像,且多张采集图像中LED显示屏均使用设定灰度且对应不同的补偿时间,之后,获取LED显示屏中各LED灯珠在各采集图像中的第一亮度值以及确定各LED灯珠的目标亮度值,结合目标亮度值、LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定各LED灯珠的补偿系数,当前确定的补偿系数与LED灯珠达到目标亮度值时所需的亮度的增加值成正比,当各LED灯珠中的第一LED灯珠的补偿系数大于系数阈值时,将第一LED灯珠的补偿系数更新为系数阈值,之后,将各LED灯珠的补偿系数发送至LED显示屏中LED灯珠对应的控制芯片,以使控制芯片基于补偿系数对LED灯珠进行亮度补偿的技术手段,解决了相关技术中LED显示屏的各LED灯珠所显示的亮度存在差异的技术问题。基于目标亮度值、各LED灯珠实际的第一亮度值以及各LED灯珠在各采集图像中对应的补偿时间,为各LED灯珠确定合适的补偿系数,以在通过补偿系数对LED灯珠进行亮度补偿时,使得各LED灯珠所显示的亮度达到目标亮度值,即使得各LED灯珠的实际亮度尽可能保持一致,并且,可以尽可能满足补偿系数与LED灯珠的亮度的增加值成正比。通过设置系数阈值,可以保证补偿系数的范围在LED显示屏的硬件设备正常使用的范围,避免了溢出的现象,使得LED显示屏显示的均匀性(即各LED灯珠的实际亮度一致)和补偿系数之间相均衡。In one embodiment of the present application, multiple captured images including a display screen of an LED display screen are acquired, and the LED display screens in the multiple captured images all use a set grayscale and correspond to different compensation times. Then, a first brightness value of each LED lamp bead in the LED display screen in each captured image is acquired and a target brightness value of each LED lamp bead is determined. The compensation coefficient of each LED lamp bead is determined in combination with the target brightness value, the first brightness value of the LED lamp bead in each captured image, and the compensation time corresponding to each captured image. The currently determined compensation coefficient is proportional to the increase in brightness required for the LED lamp bead to reach the target brightness value. When the compensation coefficient of the first LED lamp bead in each LED lamp bead is greater than a coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold. Then, the compensation coefficient of each LED lamp bead is sent to a control chip corresponding to the LED lamp bead in the LED display screen, so that the control chip performs brightness compensation on the LED lamp bead based on the compensation coefficient. This technical means solves the technical problem in the related art that there are differences in the brightness displayed by each LED lamp bead of the LED display screen. Based on the target brightness value, the actual first brightness value of each LED lamp bead, and the corresponding compensation time of each LED lamp bead in each captured image, a suitable compensation coefficient is determined for each LED lamp bead, so that when the LED lamp bead is compensated for brightness by the compensation coefficient, the brightness displayed by each LED lamp bead reaches the target brightness value, that is, the actual brightness of each LED lamp bead is kept as consistent as possible, and the compensation coefficient can be proportional to the increase in the brightness of the LED lamp bead as much as possible. By setting the coefficient threshold, the range of the compensation coefficient can be ensured to be within the normal use range of the hardware equipment of the LED display screen, avoiding overflow, so that the uniformity of the LED display screen (that is, the actual brightness of each LED lamp bead is consistent) and the compensation coefficient are balanced.
图1为本申请一个实施例提供的一种校正系统的结构示意图;FIG1 is a schematic diagram of the structure of a correction system provided by an embodiment of the present application;
图2为本申请一个实施例提供的一种亮度补偿方法的流程图;FIG2 is a flow chart of a brightness compensation method provided by an embodiment of the present application;
图3为本申请一个实施例提供的一种亮度补偿方法的流程图;FIG3 is a flow chart of a brightness compensation method provided by an embodiment of the present application;
图4为本申请一个实施例提供的一种亮度补偿装置的结构示意图;FIG4 is a schematic structural diagram of a brightness compensation device provided by an embodiment of the present application;
图5为本申请一个实施例提供的一种亮度补偿设备的结构示意图。FIG. 5 is a schematic diagram of the structure of a brightness compensation device provided in one embodiment of the present application.
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
本申请实施例提供了一种亮度补偿方法,该亮度补偿方法可以由亮度补偿设备执行。亮度补偿设备可以通过软件和/或硬件的方式实现。当前,亮度补偿设备可以是具有数据处理功能的计算机设备,如台式电脑、笔记本电脑、平板电脑、手机等计算机设备。该亮度补偿设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。The embodiment of the present application provides a brightness compensation method, which can be performed by a brightness compensation device. The brightness compensation device can be implemented by software and/or hardware. Currently, the brightness compensation device can be a computer device with data processing function, such as a desktop computer, a laptop computer, a tablet computer, a mobile phone and other computer devices. The brightness compensation device can be composed of two or more physical entities, or it can be composed of one physical entity.
本申请实施例中,亮度补偿方法适用于校正系统,该校正系统包括图像采集设备、亮度补偿设备以及LED显示屏。校正系统用于确定LED显示屏成像时与亮度有关的补偿系数,并将补偿系数应用在LED显示屏中,以实现对LED显示屏的亮度补偿。校正系统中,亮度补偿设备与LED显示屏和图像采集设备分别通信。In an embodiment of the present application, the brightness compensation method is applicable to a correction system, which includes an image acquisition device, a brightness compensation device, and an LED display screen. The correction system is used to determine a compensation coefficient related to brightness when the LED display screen is imaged, and apply the compensation coefficient to the LED display screen to achieve brightness compensation for the LED display screen. In the correction system, the brightness compensation device communicates with the LED display screen and the image acquisition device respectively.
其中,LED显示屏是指当前需要确定亮度补偿所需参数的LED显示屏,LED显示屏可以是独立的显示器,如广告牌等,也可以集成在电子设备中,如集成在手机、电视、交互平板等安装有显示屏的电子设备中。Among them, the LED display screen refers to the LED display screen for which the parameters required for brightness compensation need to be determined. The LED display screen can be an independent display, such as a billboard, etc., or it can be integrated into electronic devices, such as mobile phones, televisions, interactive tablets and other electronic devices equipped with display screens.
一个实施例中,以LED显示屏集成在交互平板中为例。其中,交互平板是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。In one embodiment, an LED display screen is integrated into an interactive tablet as an example. The interactive tablet is an integrated device that uses touch technology to control the content displayed on the display tablet and realize human-computer interaction, and integrates one or more functions such as a projector, an electronic whiteboard, a screen, a sound system, a television, and a video conferencing terminal.
示例性的,组成LED显示屏的各LED记为LED灯珠。每颗LED灯珠的红、绿、蓝发光二极管都被封装在一个灯座上,每颗灯珠的光学三原色(红色、绿色、蓝色)可以作为LED显示屏的一个像素,光学三原色混合后,组成LED显示屏所能显示的各颜色,即作为像素所显示的颜色。Exemplarily, each LED constituting an LED display screen is recorded as an LED lamp bead. The red, green, and blue light-emitting diodes of each LED lamp bead are packaged in a lamp holder, and the three primary optical colors (red, green, and blue) of each lamp bead can be used as a pixel of the LED display screen. After the three primary optical colors are mixed, they form the colors that can be displayed by the LED display screen, that is, the colors displayed as pixels.
每颗LED灯珠的亮度可以调节,以此实现调节LED显示屏的亮度,一般而言,LED显示屏进行显示时,为各LED灯珠设置一致的亮度,但是,由于LED灯珠的离散性,会使得各LED灯珠实际显示的亮度不一样。因此,需要结合各LED灯珠实际显示的亮度对各LED灯珠进行亮度补偿,亮度补偿的目的在于使各LED灯珠实际的显示亮度一致。The brightness of each LED bead can be adjusted to adjust the brightness of the LED display. Generally speaking, when the LED display is displayed, the brightness of each LED bead is set to be consistent. However, due to the discreteness of the LED bead, the actual brightness displayed by each LED bead is different. Therefore, it is necessary to perform brightness compensation on each LED bead based on the actual brightness displayed by each LED bead. The purpose of brightness compensation is to make the actual display brightness of each LED bead consistent.
一个实施例中,LED显示屏还包括用于控制LED灯珠的芯片。当前,将LED灯珠的芯 片记为控制芯片。In one embodiment, the LED display screen further includes a chip for controlling LED lamp beads. Currently, the chip of the LED lamp beads is recorded as a control chip.
可选的,控制芯片可以为一个或多个。控制芯片为多个时,每个控制芯片可以控制一组LED灯珠,即预先对LED显示屏中各LED灯珠进行分组,分组规则当前不作限定,每组LED灯珠对应一个控制芯片。或者是,控制芯片为多个时,每个控制芯片可以控制一行或一列LED灯珠,即为LED显示屏中每行LED灯珠或每列LED灯珠分别设置一个控制芯片。Optionally, there may be one or more control chips. When there are multiple control chips, each control chip can control a group of LED lamp beads, that is, the LED lamp beads in the LED display are grouped in advance, and the grouping rules are not currently limited. Each group of LED lamp beads corresponds to a control chip. Alternatively, when there are multiple control chips, each control chip can control a row or a column of LED lamp beads, that is, a control chip is set for each row or column of LED lamp beads in the LED display.
控制芯片工作过程中,可以控制LED灯珠的关闭、开启以及LED灯珠开启时使用的各参数。During the operation of the control chip, the LED lamp beads can be controlled to be turned off and on, as well as various parameters used when the LED lamp beads are turned on.
实施例中对于LED显示屏的类型不作限定。例如,LED显示屏为COB显示屏。其中,COB显示屏是一种新兴的LED显示屏。COB显示屏是将LED芯片集成在印制电路板(Printed Circuit Board,PCB)中,无需一颗颗焊接在PCB中。The type of LED display screen is not limited in the embodiment. For example, the LED display screen is a COB display screen. Among them, the COB display screen is a new type of LED display screen. The COB display screen integrates LED chips into a printed circuit board (PCB), without soldering them one by one in the PCB.
示例性的,亮度补偿设备与LED显示屏可以为不同的物理实体。此时,亮度补偿设备与LED显示屏可以通过有线或无线连接的方式进行数据传输,如亮度补偿设备向LED显示屏发送补偿系数。Exemplarily, the brightness compensation device and the LED display screen may be different physical entities. In this case, the brightness compensation device and the LED display screen may perform data transmission via a wired or wireless connection, such as the brightness compensation device sending a compensation coefficient to the LED display screen.
可选的,亮度补偿设备与LED显示屏也可以集成在同一物理实体。这种情况下,亮度补偿设备确定对自身安装的LED显示屏进行亮度补偿时的补偿系数。Optionally, the brightness compensation device and the LED display screen may also be integrated into the same physical entity. In this case, the brightness compensation device determines the compensation coefficient when performing brightness compensation on the LED display screen installed on itself.
本申请实施例中,以亮度补偿设备与LED显示屏为不同的物理实体为例进行描述。In the embodiment of the present application, the brightness compensation device and the LED display screen are described as different physical entities.
图像采集设备可理解为具有拍摄功能的设备,如照相机、摄像头、手机等。照相机可以为工业相机或民用相机,具体类别不作限定。为了便于理解,后续以图像采集设备为照相机为例进行描述。The image acquisition device can be understood as a device with a shooting function, such as a camera, a webcam, a mobile phone, etc. The camera can be an industrial camera or a civilian camera, and the specific category is not limited. For ease of understanding, the image acquisition device is described as a camera as an example.
可选的,亮度补偿设备与照相机为不同的物理实体。此时,亮度补偿设备与照相机可以通过有线或无线连接的方式进行数据传输,如亮度补偿设备控制照相机进行拍摄。Optionally, the brightness compensation device and the camera are different physical entities. In this case, the brightness compensation device and the camera can perform data transmission via a wired or wireless connection, such as the brightness compensation device controlling the camera to take pictures.
可选的,亮度补偿设备与照相机也可以集成在同一物理实体,即亮度补偿设备利用自身安装的照相机进行拍摄。Optionally, the brightness compensation device and the camera may also be integrated into the same physical entity, that is, the brightness compensation device uses the camera installed on itself to take pictures.
本申请实施例中,以亮度补偿设备与照相机为不同的物理实体为例进行描述。In the embodiment of the present application, description is made by taking the brightness compensation device and the camera as different physical entities.
图1为上述校正系统的结构示意图。参考图1,亮度补偿设备11分别与LED显示屏12和照相机13连接。亮度补偿设备11工作过程中,控制照相机13进行拍摄,照相机13拍摄时,主要是对LED显示屏12的显示画面进行拍摄。亮度补偿设备11获取照相机13拍摄得到的图像,进而基于获取的图像实现LED显示屏的亮度补偿。FIG1 is a schematic diagram of the structure of the correction system. Referring to FIG1 , the brightness compensation device 11 is connected to the LED display screen 12 and the camera 13 respectively. During the operation of the brightness compensation device 11, the camera 13 is controlled to shoot. When the camera 13 shoots, it mainly shoots the display screen of the LED display screen 12. The brightness compensation device 11 obtains the image captured by the camera 13, and then realizes the brightness compensation of the LED display screen based on the acquired image.
图2为本申请一个实施例提供的一种亮度补偿方法的流程图,参考图2,亮度补偿设备工作过程中执行的亮度补偿方法包括:FIG. 2 is a flow chart of a brightness compensation method provided by an embodiment of the present application. Referring to FIG. 2 , the brightness compensation method performed during the operation of the brightness compensation device includes:
步骤110、获取多张采集图像,多张采集图像包括对设定灰度的LED显示屏的显示画面 采集得到的图像,多张采集图像的补偿时间均不同。 Step 110, obtaining a plurality of captured images, wherein the plurality of captured images include images captured from a display screen of an LED display screen with a set grayscale, and compensation times of the plurality of captured images are all different.
示例性的,LED显示屏中的控制芯片采用脉宽调制技术(Pulse Width Modulation,PWM)控制各LED灯珠,即通过PWM在显示周期(也可理解为PWM波的周期)内控制各LED灯珠的开启及关断时间,以达到控制各LED灯珠的明暗程度的目的。For example, the control chip in the LED display screen uses pulse width modulation technology (PWM) to control each LED lamp bead, that is, PWM is used to control the on and off time of each LED lamp bead within the display cycle (which can also be understood as the cycle of the PWM wave) to achieve the purpose of controlling the brightness of each LED lamp bead.
示例来说,PWM波为高电平时,LED灯珠开启;PWM波为低电平时,LED灯珠关断。利用短时间的视觉暂留效应,调节高电平的时长,便可以实现调节LED灯珠的亮度。一般而言,高电平的持续时长越长,LED灯珠实际显示的亮度越亮。For example, when the PWM wave is at a high level, the LED lamp bead is turned on; when the PWM wave is at a low level, the LED lamp bead is turned off. By using the short-term visual persistence effect, the duration of the high level can be adjusted to adjust the brightness of the LED lamp bead. Generally speaking, the longer the duration of the high level, the brighter the actual brightness of the LED lamp bead.
示例性的,确定亮度补偿所需参数时,LED显示屏先进行显示,通过LED显示屏实际的显示画面可以明确各LED灯珠的实际亮度差异。For example, when determining the parameters required for brightness compensation, the LED display screen is first displayed, and the actual brightness difference of each LED lamp bead can be clearly seen through the actual display screen of the LED display screen.
为了保证亮度补偿效果,控制LED显示屏显示纯色图像,即LED显示屏中的各LED灯珠呈现统一的颜色。示例性的,由于每颗LED灯珠具有红、绿、蓝发光二极管,而三种发光二极管均可能存在实际显示亮度的差异,所以,实施例中基于LED灯珠中光学三原色对应的三种发光二极管分别确定LED灯珠在三原色下对应的补偿系数。In order to ensure the brightness compensation effect, the LED display screen is controlled to display a pure color image, that is, each LED lamp bead in the LED display screen presents a uniform color. For example, since each LED lamp bead has red, green, and blue light-emitting diodes, and the three light-emitting diodes may have differences in actual display brightness, the compensation coefficients corresponding to the LED lamp bead under the three primary colors are determined based on the three light-emitting diodes corresponding to the three optical primary colors in the LED lamp bead in the embodiment.
一个实施例中,控制LED显示屏的显示内容为纯色图像(即LED显示屏的显示画面为纯色图像)。纯色图像包括红色图像、绿色图像和蓝色图像,LED灯珠在每种颜色(即纯色)下均有对应的补偿系数。In one embodiment, the LED display screen is controlled to display a pure color image (ie, the display screen of the LED display screen is a pure color image). The pure color image includes a red image, a green image, and a blue image, and the LED lamp beads have a corresponding compensation coefficient under each color (ie, pure color).
示例来说,控制LED显示屏基于各LED灯珠的红色发光二极管显示纯红色的图像(即红色图像),以确定各红色发光二极管实际显示亮度的差异,进而确定各红色发光二极管对应的补偿系数。同理,显示纯绿色的图像(即绿色图像)、纯蓝色的图像(即蓝色图像),以分别确定各绿色发光二极管对应的补偿系数、各蓝色发光二极管对应的补偿系数。For example, the LED display screen is controlled to display a pure red image (i.e., a red image) based on the red light-emitting diodes of each LED lamp bead, so as to determine the difference in the actual display brightness of each red light-emitting diode, and then determine the compensation coefficient corresponding to each red light-emitting diode. Similarly, a pure green image (i.e., a green image) and a pure blue image (i.e., a blue image) are displayed to respectively determine the compensation coefficient corresponding to each green light-emitting diode and the compensation coefficient corresponding to each blue light-emitting diode.
由于三种颜色对应的补偿系数确定方式相同,因此,实施例中以一种颜色为例进行描述。例如,当前,以红色为例进行描述,此时,后续所提及的LED灯珠均可认为是LED灯珠中的红色发光二极管。Since the compensation coefficients corresponding to the three colors are determined in the same manner, one color is used as an example for description in the embodiment. For example, currently, red is used as an example for description, and at this time, the LED lamp beads mentioned later can all be considered as red light-emitting diodes in the LED lamp beads.
可选的,LED显示屏显示纯色图像时,可以是由亮度补偿设备向LED显示屏发送纯色图像,以控制LED显示屏进行显示,还可以是由用户通过其他方式控制LED显示屏显示纯色图像,当前对此不作限定。Optionally, when the LED display screen displays a pure color image, the brightness compensation device may send the pure color image to the LED display screen to control the LED display screen to display the pure color image, or the user may control the LED display screen to display the pure color image in other ways, which is not currently limited.
示例性的,LED显示屏所显示的亮度的明暗程度,可以用灰度等级体现,即LED灯珠调节亮度时的精细程度就是LED显示屏的灰度等级。实施例中不限定LED显示屏的灰度等级。例如,LED显示屏可以采用16级灰度或256级灰度等。通过灰度等级可以反映各颜色在最暗和最亮之间拥有不同变化的颜色阶层。基于灰度等级,可以确定LED显示屏显示时的灰度。其中,灰度表明当前显示明暗的数值,灰度越高,越趋近于白色,灰度越低,越趋近于黑色。Exemplarily, the brightness of the LED display can be reflected by grayscale, that is, the degree of fineness of the LED lamp beads when adjusting the brightness is the grayscale of the LED display. The grayscale of the LED display is not limited in the embodiment. For example, the LED display can adopt 16-level grayscale or 256-level grayscale. The grayscale can reflect the different color levels of each color between the darkest and the brightest. Based on the grayscale, the grayscale of the LED display can be determined. Among them, the grayscale indicates the current display brightness and darkness. The higher the grayscale, the closer it is to white, and the lower the grayscale, the closer it is to black.
一个实施例中,当前LED显示屏进行显示时的灰度为预先设定的一个固定值,且在亮度补偿方法执行过程中不做改变,即LED显示屏中各LED灯珠的灰度一致均为设定灰度。设定灰度的具体值可以根据LED显示屏的实际需求灵活选择。In one embodiment, the grayscale of the current LED display screen is a preset fixed value, and does not change during the execution of the brightness compensation method, that is, the grayscale of each LED lamp bead in the LED display screen is consistent with the set grayscale. The specific value of the set grayscale can be flexibly selected according to the actual needs of the LED display screen.
可选的,通过修改LED显示屏的Gamma表使得LED显示屏的灰度调整为设定灰度。其中,Gamma表中的参数用来表征显示屏亮度响应特性。还可选的,通过向LED显示屏发送指令的方式,使得LED显示屏的灰度调整为设定灰度。其中,LED显示屏的控制芯片用于接收控制软件传来的指令,并基于接收的指令对LED灯珠进行控制,如控制芯片基于控制软件的指令将LED灯珠设置为设定灰度。当前,控制软件安装在亮度补偿设备中且用于对LED显示屏进行控制。Optionally, the grayscale of the LED display is adjusted to a set grayscale by modifying the Gamma table of the LED display. The parameters in the Gamma table are used to characterize the brightness response characteristics of the display. Optionally, the grayscale of the LED display is adjusted to a set grayscale by sending instructions to the LED display. The control chip of the LED display is used to receive instructions from the control software and control the LED lamp beads based on the received instructions, such as the control chip sets the LED lamp beads to the set grayscale based on the instructions of the control software. Currently, the control software is installed in the brightness compensation device and is used to control the LED display.
示例性的,为了使各LED灯珠实际显示的亮度一致,可以对LED显示屏进行低灰校正和高灰校正。其中,低灰是指低灰度段,如0-255灰度等级(也可称为灰阶)中,0-100灰度等级可以认为是低灰度段。低灰校正是指对LED显示屏的低灰度段进行校正,以使各LED灯珠在低灰度段的显示效果一致(如实际显示亮度一致)。高度校正与低灰校正类似,当前不作赘述。For example, in order to make the actual display brightness of each LED lamp bead consistent, the LED display screen can be subjected to low gray correction and high gray correction. Among them, low gray refers to the low grayscale segment, such as the 0-255 grayscale level (also called grayscale), and the 0-100 grayscale level can be considered as a low grayscale segment. Low gray correction refers to correcting the low grayscale segment of the LED display screen so that the display effect of each LED lamp bead in the low grayscale segment is consistent (such as the actual display brightness is consistent). High correction is similar to low gray correction, which will not be described in detail at present.
一个实施例中,由于各LED灯珠在低亮度下(也可理解为低灰阶段)所显示的亮度可能存在较大的差异,因此,本申请实施例中,基于亮度补偿方法所确定的补偿系数是低灰校正所需的补偿系数,即LED显示屏中各LED灯珠的设定灰度的灰度值小于灰度阈值,该灰度阈值可理解为低灰度段中最大的灰度值,例如,0-100灰度等级为低灰度段时,灰度阈值为100。可理解,灰度阈值也可设置为其他值,实施例对此不做限定。In one embodiment, since the brightness displayed by each LED lamp bead at low brightness (also understood as the low gray stage) may be greatly different, therefore, in the embodiment of the present application, the compensation coefficient determined based on the brightness compensation method is the compensation coefficient required for low gray correction, that is, the gray value of the set gray of each LED lamp bead in the LED display screen is less than the gray threshold, and the gray threshold can be understood as the maximum gray value in the low gray segment. For example, when the gray level of 0-100 is the low gray segment, the gray threshold is 100. It can be understood that the gray threshold can also be set to other values, and the embodiment does not limit this.
一个实施例中,为了使低灰校正的效果更优,LED显示屏显示时关闭高灰校正。此时,LED显示屏在显示过程中未使用高灰校正补偿系数,高灰校正补偿系数是进行高灰校正时所使用的补偿系数。In one embodiment, in order to achieve a better effect of low gray correction, the high gray correction is turned off when the LED display screen is displayed. At this time, the LED display screen does not use the high gray correction compensation coefficient during the display process. The high gray correction compensation coefficient is the compensation coefficient used when performing high gray correction.
示例性的,补偿时间可以理解为对PWM波中高电平的补偿时间,即LED灯珠处于开启阶段的补偿时间。可理解,通过调节PWM波中高电平的持续时长调节LED灯珠的亮度时,各LED灯珠对应的PWM波中高电平的时长应是相同的,但是,由于各LED灯珠的实际亮度存在差异,因此,可以对各LED灯珠对应的PWM波中的高电平进行补偿(即将高电平的时长变为加上补偿时间后的时长),以使各LED灯珠的亮度达到一致。当前,补偿系数也可以理解为补偿时间,只不过在亮度补偿方法执行过程中,已经为LED灯珠预先设置了补偿时间,因此,为了与预先设置的补偿时间相区分,将当前实际确定的补偿时间记为补偿系数。一个实施例中,确定补偿系数时,先将LED显示屏的各LED灯珠的补偿时间设置为相同的补偿时间,即LED显示屏进行显示时,各LED灯珠的补偿时间相同。Exemplarily, the compensation time can be understood as the compensation time for the high level in the PWM wave, that is, the compensation time when the LED lamp bead is in the on stage. It can be understood that when the brightness of the LED lamp bead is adjusted by adjusting the duration of the high level in the PWM wave, the duration of the high level in the PWM wave corresponding to each LED lamp bead should be the same. However, due to the difference in the actual brightness of each LED lamp bead, the high level in the PWM wave corresponding to each LED lamp bead can be compensated (that is, the duration of the high level is changed to the duration after adding the compensation time) to make the brightness of each LED lamp bead consistent. At present, the compensation coefficient can also be understood as the compensation time, but in the execution process of the brightness compensation method, the compensation time has been pre-set for the LED lamp bead. Therefore, in order to distinguish it from the pre-set compensation time, the current actual determined compensation time is recorded as the compensation coefficient. In one embodiment, when determining the compensation coefficient, the compensation time of each LED lamp bead of the LED display screen is first set to the same compensation time, that is, when the LED display screen is displayed, the compensation time of each LED lamp bead is the same.
一个实施例中,LED显示屏的显示过程中,不断调整当前所使用的补偿时间,并且亮度补偿设备获取不同补偿时间下包含LED显示屏显示画面的图像,以基于图像确定出各LED灯珠在不同补偿时间下的亮度。In one embodiment, during the display process of the LED display screen, the compensation time currently used is continuously adjusted, and the brightness compensation device obtains images containing the display screen of the LED display screen at different compensation times, so as to determine the brightness of each LED lamp bead at different compensation times based on the image.
其中,LED显示屏所使用的补偿时间的具体值可以预先设置,也可以按照设定规则计算得到。The specific value of the compensation time used by the LED display screen can be preset or calculated according to a set rule.
一个实施例中,补偿时间从零开始按照设定步长递增,且每递增一次后,由照相机对LED显示屏进行拍摄。其中,设定步长可以理解为补偿时间每次增加的幅度,设定步长越大,补偿时间每次增加的幅度越大,补偿时间按照设定步长递增后,可以满足等差的关系。设定步长的具体值可以根据实际情况设置。In one embodiment, the compensation time starts from zero and increases according to a set step length, and after each increment, the LED display screen is photographed by a camera. The set step length can be understood as the amplitude of each increase in the compensation time. The larger the set step length, the larger the amplitude of each increase in the compensation time. After the compensation time increases according to the set step length, an arithmetic progression relationship can be satisfied. The specific value of the set step length can be set according to actual conditions.
LED显示屏显示过程中,先将补偿时间设置为零,之后,LED显示屏按照设定步长增加。比如,设定步长为d(单位以纳秒为例),LED显示屏的显示过程中,补偿时间依次设置为0、d、2d、3d、……。During the display process of the LED display, the compensation time is first set to zero, and then the LED display increases according to the set step length. For example, if the step length is set to d (in nanoseconds), during the display process of the LED display, the compensation time is set to 0, d, 2d, 3d, ... in sequence.
可选的,预先设置补偿时间的递增次数,递增次数为预先设置的次数值,其可理解为补偿时间的增加次数,例如,目标次数为2时,补偿时间从零开始递增2次,此时,补偿时间共有3个。亮度补偿设备可以获取每个补偿时间下包含LED显示屏显示画面的图像。需要说明,LED显示屏修改补偿时间的方式当前不作限定。Optionally, the number of increments of the compensation time is preset, and the number of increments is a preset number value, which can be understood as the number of times the compensation time is increased. For example, when the target number is 2, the compensation time is incremented 2 times from zero. At this time, there are 3 compensation times in total. The brightness compensation device can obtain an image containing the display screen of the LED display at each compensation time. It should be noted that the method of modifying the compensation time of the LED display is currently not limited.
当前,将亮度补偿设备获取的包含LED显示屏显示画面的图像记为采集图像。一般而言,采集图像的数量和补偿时间的数量有关,例如,确定补偿系数时使用了三个补偿时间,那么,采集图像为三张,且每张采集图像对应一个补偿时间,此时,采集图像中各LED灯珠所对应的补偿时间均为该采集图像所对应的补偿时间,换言之,同一LED灯珠在不同采集图像中的补偿时间不同,多张采集图像的补偿时间均不相同。一般而言,采集图像的数量至少为三张即补偿时间至少为三个。At present, the image containing the display screen of the LED display screen obtained by the brightness compensation device is recorded as a captured image. Generally speaking, the number of captured images is related to the number of compensation times. For example, when three compensation times are used to determine the compensation coefficient, then there are three captured images, and each captured image corresponds to a compensation time. At this time, the compensation time corresponding to each LED lamp bead in the captured image is the compensation time corresponding to the captured image. In other words, the compensation time of the same LED lamp bead in different captured images is different, and the compensation time of multiple captured images is different. Generally speaking, the number of captured images is at least three, that is, the compensation time is at least three.
示例性的,LED显示屏基于一个补偿时间显示纯色图像时,亮度补偿设备控制照相机进行拍摄,以得到该纯色图像对应的采集图像,之后,LED显示屏修改补偿时间后,亮度补偿设备再照相机进行拍摄,以得到该纯色图像对应的采集图像。一种可选方式,多张采集图像的补偿时间按照图像的采集顺序递增,即采集顺序相邻的两张采集图像所对应的补偿时间由前至后为递增关系。一个实施例中,补偿时间按照设定步长递增时,对于多张采集图像中采集顺序相邻的两张采集图像,后一采集图像的补偿时间与前一采集图像的补偿时间之差为设定步长。Exemplarily, when the LED display screen displays a pure color image based on a compensation time, the brightness compensation device controls the camera to shoot to obtain a captured image corresponding to the pure color image. Afterwards, after the LED display screen modifies the compensation time, the brightness compensation device shoots with the camera again to obtain a captured image corresponding to the pure color image. In an optional manner, the compensation time of multiple captured images increases according to the image acquisition sequence, that is, the compensation time corresponding to two captured images adjacent in the acquisition sequence is in an increasing relationship from front to back. In one embodiment, when the compensation time increases according to a set step length, for two captured images adjacent in the acquisition sequence among the multiple captured images, the difference between the compensation time of the latter captured image and the compensation time of the previous captured image is the set step length.
需要说明,实际应用过程中,LED显示屏基于一个补偿时间分别显示红色图像、绿色图像和蓝色图像,相机基于三种纯色图像拍摄三张照片,之后,LED显示屏再基于另一个补偿 时间分别显示红色、绿色图像和蓝色图像,相机基于三种纯色图像再拍摄三张照片,以此类推,之后,基于同一纯色的各张图像,确定该颜色下LED灯珠对应的补偿系数。It should be noted that in actual application, the LED display screen displays red, green and blue images respectively based on a compensation time, and the camera takes three photos based on the three pure color images. Afterwards, the LED display screen displays red, green and blue images respectively based on another compensation time, and the camera takes three photos based on the three pure color images, and so on. Afterwards, based on each image of the same pure color, the compensation coefficient corresponding to the LED lamp bead under that color is determined.
可选的,照相机每拍摄一张采集图像便将拍摄得到的采集图像传输至亮度补偿设备,或者是,照相机拍摄全部的采集图像后将全部的采集图像一同传输至亮度补偿设备,当前,对于照相机传输采集图像的方式不作限定。Optionally, the camera transmits each captured image to the brightness compensation device, or the camera transmits all captured images to the brightness compensation device together after capturing all captured images. Currently, there is no limitation on the way the camera transmits captured images.
可理解,实际应用中LED灯珠还可以仅包含两种颜色的发光二极管或者仅包含一种颜色的发光二极管,无论LED灯珠包含几种颜色的发光二极管,每个颜色的发光二极管的补偿系数的确定方式均相同。It is understandable that in actual applications, the LED lamp bead may also include only two colors of LEDs or only one color of LEDs. No matter how many colors of LEDs the LED lamp bead contains, the method for determining the compensation coefficient of each color of LED is the same.
步骤120、获取LED显示屏中各LED灯珠在各采集图像中的第一亮度值,以及确定各LED灯珠的目标亮度值。Step 120: Obtain a first brightness value of each LED lamp bead in the LED display screen in each collected image, and determine a target brightness value of each LED lamp bead.
第一亮度值为LED灯珠实际显示的亮度值,每个LED灯珠在每张采集图像中均有对应的第一亮度值,第一亮度值可以体现对应LED灯珠在采集图像对应的补偿时间下的实际显示亮度。The first brightness value is the brightness value actually displayed by the LED lamp bead. Each LED lamp bead has a corresponding first brightness value in each captured image. The first brightness value can reflect the actual display brightness of the corresponding LED lamp bead at the compensation time corresponding to the captured image.
可理解,由于各采集图像中的LED灯珠具有相同的设定灰度,仅是设置的补偿时间不同,因此,同一LED灯珠在各采集图像中的第一亮度值不同的主要原因是由于补偿时间不同。It is understandable that since the LED lamp beads in each collected image have the same set grayscale, only the set compensation time is different. Therefore, the main reason why the first brightness value of the same LED lamp bead in each collected image is different is due to the different compensation time.
其中,亮度值可理解为亮度的具体值。可理解,各LED灯珠实际显示的亮度以及颜色可以通过采集图像中LED灯珠对应的像素体现,因此,获取各采集图像后,便可确定各LED灯珠在对应采集图像中的第一亮度值。The brightness value can be understood as the specific value of the brightness. It can be understood that the brightness and color actually displayed by each LED lamp bead can be reflected by the pixels corresponding to the LED lamp bead in the collected image. Therefore, after obtaining each collected image, the first brightness value of each LED lamp bead in the corresponding collected image can be determined.
需说明,通过一张包含LED显示屏显示画面的图像确定LED显示屏中LED灯珠的亮度值是已经实现的技术手段,当前不另做说明。It should be noted that determining the brightness value of LED lamp beads in an LED display screen through an image containing the display screen of the LED display screen is a technical means that has been realized and will not be explained separately at present.
目标亮度值是指各LED灯珠期望达到的亮度值。各LED灯珠使用相同的目标亮度值,即各LED灯珠实际的亮度都达到目标亮度值后,可以实现各LED灯珠在低灰阶段的亮度一致。The target brightness value refers to the brightness value that each LED lamp bead is expected to achieve. When each LED lamp bead uses the same target brightness value, that is, when the actual brightness of each LED lamp bead reaches the target brightness value, the brightness of each LED lamp bead can be consistent in the low gray stage.
目标亮度值可以是预先设置的亮度值,也可以是人为结合当前各LED灯珠在各采集图像中的第一亮度值而规定的亮度值,还可以是由亮度补偿设备按照设定规则计算得到的亮度值。The target brightness value may be a preset brightness value, or a brightness value artificially specified in combination with the first brightness value of each current LED lamp bead in each captured image, or a brightness value calculated by a brightness compensation device according to a set rule.
一个实施例中,通过采集图像确定各LED灯珠的目标亮度值。示例来说,亮度补偿设备确定各LED灯珠的各第一亮度值后,结合各第一亮度值设置得到合理的目标亮度值。一个实施例中,本步骤中确定各LED灯珠的目标亮度值,可包括步骤121-步骤122:In one embodiment, the target brightness value of each LED lamp bead is determined by collecting images. For example, after the brightness compensation device determines the first brightness value of each LED lamp bead, a reasonable target brightness value is obtained by combining the first brightness value settings. In one embodiment, determining the target brightness value of each LED lamp bead in this step may include steps 121-122:
步骤121、在各张采集图像中选择一张目标图像。Step 121: Select a target image from each collected image.
目标图像是指确定目标亮度值时所使用的采集图像。The target image refers to the acquired image used when determining the target brightness value.
示例性的,在各张采集图像中随机选择一张图像作为目标图像;或者是,在各张采集图 像中,去除补偿时间最短的采集图像以及补偿时间最长的采集图像后,选择一张图像作为目标图像;还可以是,按照预先设定的规则选择一张特定的采集图像作为目标图像。Exemplarily, one image is randomly selected from each acquired image as the target image; or, after removing the acquired image with the shortest compensation time and the acquired image with the longest compensation time from each acquired image, one image is selected as the target image; or, a specific acquired image is selected as the target image according to a pre-set rule.
例如,补偿时间每递增一次时,亮度补偿设备控制照相机对LED显示屏进行拍摄,此时,选择第二次拍摄得到的采集图像作为目标图像,即选择补偿时间次短的采集图像作为目标图像。For example, each time the compensation time increases, the brightness compensation device controls the camera to shoot the LED display screen. At this time, the captured image obtained by the second shooting is selected as the target image, that is, the captured image with the second shortest compensation time is selected as the target image.
步骤122、获取目标图像中各LED灯珠的第一亮度值,并将各第一亮度值的平均值作为各LED灯珠的目标亮度值。Step 122: Obtain the first brightness value of each LED lamp bead in the target image, and use the average value of each first brightness value as the target brightness value of each LED lamp bead.
确定目标图像后,可以确定各LED灯珠在该目标图像下的第一亮度值,之后,基于各LED灯珠的第一亮度值确定目标亮度值。After determining the target image, the first brightness value of each LED lamp bead under the target image can be determined, and then the target brightness value is determined based on the first brightness value of each LED lamp bead.
一个实施例中,计算该目标图像中各LED灯珠的第一亮度值的平均值,并作为目标亮度值。可理解,第一亮度值的平均值最能体现各LED灯珠所显示的平均亮度。In one embodiment, the average value of the first brightness values of each LED lamp bead in the target image is calculated and used as the target brightness value. It can be understood that the average value of the first brightness value can best reflect the average brightness displayed by each LED lamp bead.
需要说明,实际应用中,还可以通过其他方式确定目标亮度值,如在所选择的目标图像对应的各第一亮度值中选择出现次数最多的第一亮度值作为目标亮度值。It should be noted that in actual applications, the target brightness value may also be determined in other ways, such as selecting the first brightness value with the largest number of occurrences from among the first brightness values corresponding to the selected target image as the target brightness value.
之后,执行步骤130。Thereafter, step 130 is executed.
步骤130、根据各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定各LED灯珠的补偿系数,补偿系数与LED灯珠达到目标亮度值时所需的亮度的增加值成正比。 Step 130, determine the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time corresponding to each collected image. The compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value.
示例性的,确定目标亮度值和各LED灯珠在各张采集图像中的第一亮度值后,确定各LED灯珠达到目标亮度值所需的补偿系数。Exemplarily, after determining the target brightness value and the first brightness value of each LED lamp bead in each captured image, the compensation coefficient required for each LED lamp bead to reach the target brightness value is determined.
可理解,该补偿系数为低灰阶段的补偿系数,用于LED显示屏的低灰校正过程。It can be understood that the compensation coefficient is a compensation coefficient for the low gray stage, and is used for the low gray correction process of the LED display.
本申请实施例中各LED灯珠的补偿系数的确定方式相同。为了便于理解,下述以确定一个LED灯珠的补偿系数为例进行描述。The compensation coefficients of the LED lamp beads in the embodiments of the present application are determined in the same manner. For ease of understanding, the following description is made by taking the determination of the compensation coefficient of one LED lamp bead as an example.
示例性的,LED显示屏在低灰度下显示,LED灯珠为一个亮度值。在此基础上,对LED灯珠进行亮度补偿(即为LED灯珠设置补偿时间)后,LED灯珠的亮度增加,即LED灯珠的亮度值变大。此时,LED灯珠当前的亮度值与LED灯珠原有的亮度值之间的差值,便可认为是基于补偿时间实现的亮度的增加值。并且,补偿时间越长,亮度的增加值越大,即补偿时间与亮度的增加值成正比。基于前述描述可知,补偿时间和补偿系数的作用相同,因此,补偿系数与LED灯珠的亮度的增加值也成正比。Exemplarily, the LED display screen is displayed at a low grayscale, and the LED lamp beads have a brightness value. On this basis, after the LED lamp beads are brightness compensated (i.e., the compensation time is set for the LED lamp beads), the brightness of the LED lamp beads increases, that is, the brightness value of the LED lamp beads increases. At this time, the difference between the current brightness value of the LED lamp beads and the original brightness value of the LED lamp beads can be considered as the increase in brightness based on the compensation time. Moreover, the longer the compensation time, the greater the increase in brightness, that is, the compensation time is proportional to the increase in brightness. Based on the above description, it can be seen that the compensation time and the compensation coefficient have the same effect, so the compensation coefficient is also proportional to the increase in the brightness of the LED lamp beads.
基于正比关系,结合LED灯珠的各第一亮度值、目标亮度值以及各采集图像对应的补偿时间(也可理解为各第一亮度值对应的补偿时间),可以确定LED灯珠达到目标亮度值所需的补偿系数。可理解,该补偿系数与对应LED灯珠达到目标亮度值时所需的亮度的增加值成 正比,即LED灯珠达到目标亮度值时,若需要亮度增加较大的值,则所需的补偿系数较大,反之,所需的补偿系数较小。Based on the proportional relationship, combined with each first brightness value of the LED lamp bead, the target brightness value and the compensation time corresponding to each captured image (which can also be understood as the compensation time corresponding to each first brightness value), the compensation coefficient required for the LED lamp bead to reach the target brightness value can be determined. It can be understood that the compensation coefficient is proportional to the increase in brightness required when the corresponding LED lamp bead reaches the target brightness value, that is, when the LED lamp bead reaches the target brightness value, if a larger value of brightness increase is required, the required compensation coefficient is larger, otherwise, the required compensation coefficient is smaller.
举例而言,结合LED灯珠的目标亮度值以及LED灯珠在各采集图像(也可理解为各补偿时间)中的第一亮度值,为LED灯珠选择一个第一亮度值,实施例中,将所选择的第一亮度值记为第二亮度值,第二亮度值为小于且仅小于目标亮度值(即只比目标亮度值小)的第一亮度值。这种情况下,仅大于第二亮度值的第一亮度值也为仅大于或等于目标亮度值的第一亮度值。例如,将第二亮度值记为B(N-2),将仅大于或等于目标亮度值的第一亮度值记为B(N-1),此时,B(N-2)和B(N-1)是采集顺序相邻的两张采集图像中的第一亮度值,并且,B(N-2)<目标亮度值≤B(N-1)。换言之,可认为目标亮度值位于B(N-2)和B(N-1)所组成的亮度范围中。For example, in combination with the target brightness value of the LED lamp bead and the first brightness value of the LED lamp bead in each collected image (which can also be understood as each compensation time), a first brightness value is selected for the LED lamp bead. In the embodiment, the selected first brightness value is recorded as the second brightness value, and the second brightness value is a first brightness value that is less than and only less than the target brightness value (that is, only smaller than the target brightness value). In this case, the first brightness value that is only greater than the second brightness value is also the first brightness value that is only greater than or equal to the target brightness value. For example, the second brightness value is recorded as B(N-2), and the first brightness value that is only greater than or equal to the target brightness value is recorded as B(N-1). At this time, B(N-2) and B(N-1) are the first brightness values in two adjacent collected images in the collection order, and B(N-2)<target brightness value≤B(N-1). In other words, it can be considered that the target brightness value is located in the brightness range composed of B(N-2) and B(N-1).
可理解,LED灯珠在第二亮度值下,通过增加较小的补偿时间,可最快达到目标亮度值,所以,在第二亮度值所对应的补偿时间的基础上,再增加一个由第二亮度值达到目标亮度值所需的补偿时间,便可得到LED灯珠达到目标亮度值所需的补偿系数。It can be understood that the LED lamp bead can reach the target brightness value most quickly by increasing a smaller compensation time at the second brightness value. Therefore, on the basis of the compensation time corresponding to the second brightness value, an additional compensation time required for the second brightness value to reach the target brightness value is added, and the compensation coefficient required for the LED lamp bead to reach the target brightness value can be obtained.
其中,增加的补偿时间可以依据补偿时间与LED灯珠的亮度的增加值成正比的关系确定。The increased compensation time can be determined based on the relationship that the compensation time is proportional to the increase in the brightness of the LED lamp bead.
示例来说,确定目标亮度值和B(N-2)的亮度差,该亮度差可理解为LED灯珠由B(N-2)增加到目标亮度值时亮度的增加值。同时,确定设定步长对应的亮度增加值,即确定补偿时间为设定步长时,LED灯珠的亮度的增加值。由于采集顺序相邻的两张采集图像中后一采集图像与前一采集图像的补偿时间之差为设定步长,因此,LED灯珠在后一采集图像和前一采集图像的第一亮度值之差,便可理解为设定步长对应的亮度增加值,例如,B(N-1)与B(N-2)的亮度差便可体现由B(N-2)对应的补偿时间增加到B(N-1)所对应的补偿时间时LED灯珠的亮度的增加值,即体现设定步长所对应的亮度增加值。For example, the brightness difference between the target brightness value and B(N-2) is determined, and the brightness difference can be understood as the increase in brightness of the LED lamp bead when it increases from B(N-2) to the target brightness value. At the same time, the brightness increase value corresponding to the set step length is determined, that is, the increase in brightness of the LED lamp bead when the compensation time is the set step length. Since the difference in compensation time between the latter acquired image and the previous acquired image in two adjacent acquired images in the acquisition sequence is the set step length, the difference in the first brightness value of the LED lamp bead in the latter acquired image and the previous acquired image can be understood as the brightness increase value corresponding to the set step length. For example, the brightness difference between B(N-1) and B(N-2) can reflect the increase in brightness of the LED lamp bead when the compensation time corresponding to B(N-2) increases to the compensation time corresponding to B(N-1), that is, the brightness increase value corresponding to the set step length.
之后,根据补偿时间与LED灯珠的亮度的增加值成正比的关系,结合设定步长对应的亮度增加值,以及目标亮度值和B(N-2)的亮度差,便可确定出LED灯珠由B(N-2)增加到目标亮度值时所需的补偿时间。Afterwards, based on the proportional relationship between the compensation time and the increase in the brightness of the LED lamp bead, combined with the brightness increase value corresponding to the set step size, and the brightness difference between the target brightness value and B(N-2), the compensation time required for the LED lamp bead to increase from B(N-2) to the target brightness value can be determined.
之后,将这个补偿时间与B(N-2)对应的补偿时间相加,便可得到LED灯珠达到目标亮度值所需的补偿系数。Afterwards, this compensation time is added to the compensation time corresponding to B(N-2) to obtain the compensation coefficient required for the LED lamp bead to reach the target brightness value.
可选的,当不存在仅小于目标亮度值的第一亮度值时,即LED灯珠在各采集图像中的第一亮度值均大于或等于目标亮度值,那么,可以设置LED灯珠的补偿系数为零,即无需为LED灯珠进行补偿,LED灯珠的实际亮度便可达到目标亮度值。Optionally, when there is no first brightness value that is just less than the target brightness value, that is, the first brightness value of the LED lamp bead in each captured image is greater than or equal to the target brightness value, then the compensation coefficient of the LED lamp bead can be set to zero, that is, there is no need to compensate the LED lamp bead, and the actual brightness of the LED lamp bead can reach the target brightness value.
可选的,当不存在仅大于或等于目标亮度值的第一亮度值时,即LED灯珠在各采集图像中的第一亮度值均小于目标亮度值时,可以直接将当前使用的最大的补偿时间(即最后拍摄 得到的采集图像对应的补偿时间)作为LED灯珠的补偿系数,以使LED灯珠尽可能接近目标亮度值。Optionally, when there is no first brightness value that is only greater than or equal to the target brightness value, that is, when the first brightness value of the LED lamp bead in each collected image is less than the target brightness value, the currently used maximum compensation time (that is, the compensation time corresponding to the last collected image taken) can be directly used as the compensation coefficient of the LED lamp bead to make the LED lamp bead as close to the target brightness value as possible.
可以理解,当LED灯珠在各采集图像中的第一亮度值均小于目标亮度值时,即使将最大的补偿时间作为补偿系数,也不能使LED灯珠达到目标亮度值,这样会降低亮度补偿的效果。基于此,为了使LED灯珠达到目标亮度值,可以通过继续递增补偿时间以增加采集图像数量的方式,使得最大的补偿时间对应的采集图像中LED灯珠的第一亮度值大于或等于目标亮度值。或者是,可以通过增加设定步长的数值的方式,使得补偿时间的递增幅度变大,进而使得最大的补偿时间对应的采集图像中LED灯珠的第一亮度值大于或等于目标亮度值。It can be understood that when the first brightness value of the LED lamp bead in each collected image is less than the target brightness value, even if the maximum compensation time is used as the compensation coefficient, the LED lamp bead cannot reach the target brightness value, which will reduce the effect of brightness compensation. Based on this, in order to make the LED lamp bead reach the target brightness value, the compensation time can be increased by increasing the number of collected images, so that the first brightness value of the LED lamp bead in the collected image corresponding to the maximum compensation time is greater than or equal to the target brightness value. Alternatively, the incremental increase of the compensation time can be increased by increasing the value of the set step length, so that the first brightness value of the LED lamp bead in the collected image corresponding to the maximum compensation time is greater than or equal to the target brightness value.
继续递增补偿时间以增加采集图像数量时,虽然能计算出使LED灯珠达到目标亮度值的补偿系数,但是,LED显示屏在低灰度下显示时,照相机拍照的亮度比较低,需要的曝光时间较长、需要的拍摄时间较多。因此,增加采集图像的数量时,所需的拍摄时间也会增加。例如,照相机拍摄时一张图像的平均曝光时长为40s,那么,照相机对光学三原色对应的三张纯色图像进行拍摄时需要耗时2分钟,这样,每增加一个采集图像(也可理解为增加补偿时间),便要增加2分钟的拍照时间,再加上对LED显示屏设置补偿时间所耗费的时长,会使得补偿系数确定过程所需的时长增加,并不利于补偿系数的快速确定。When the compensation time is continuously increased to increase the number of collected images, although the compensation coefficient that enables the LED lamp beads to reach the target brightness value can be calculated, when the LED display screen is displayed at low grayscale, the brightness of the camera photo is relatively low, and the required exposure time and shooting time are relatively long. Therefore, when the number of collected images is increased, the required shooting time will also increase. For example, when the camera shoots an image, the average exposure time of an image is 40s. Then, it takes 2 minutes for the camera to shoot three pure color images corresponding to the three optical primary colors. In this way, for each additional collected image (which can also be understood as increasing the compensation time), the shooting time will be increased by 2 minutes. In addition, the time spent setting the compensation time for the LED display screen will increase the time required for the compensation coefficient determination process, which is not conducive to the rapid determination of the compensation coefficient.
增加设定步长的数值时,虽然能计算出使LED灯珠达到目标亮度值的补偿系数,但是,增加设定步长后,根据设定步长进行递增的补偿时间也会变大,这样,LED灯珠在相邻采集图像中的第一亮度值的增加值也会增大,基于采集图像确定的目标亮度值也会增大,也就是扩大了补偿系数的区间,使得补偿系数的精度降低。When the value of the set step length is increased, although the compensation coefficient that enables the LED lamp beads to reach the target brightness value can be calculated, after the set step length is increased, the compensation time that increases incrementally according to the set step length will also become longer. In this way, the increase value of the first brightness value of the LED lamp beads in adjacent collected images will also increase, and the target brightness value determined based on the collected image will also increase, that is, the range of the compensation coefficient is expanded, which reduces the accuracy of the compensation coefficient.
因此,继续递增补偿时间以增加采集图像数量的方式,以及增加设定步长的数值的方式,均不利于补偿系数的确定。基于此,为了避免将最大的补偿时间作为补偿系数对LED灯珠补偿时,LED灯珠仍不能达到目标亮度值的情况,实施例中,结合目标亮度值和LED灯珠在各采集图像中的最大的第一亮度值,额外计算一个补偿时间,并将计算的补偿时间与最大的补偿时间相加,以得到最终的补偿系数,进而保证最终的补偿系数可以使LED灯珠达到目标亮度值。Therefore, the method of continuously increasing the compensation time to increase the number of collected images and the method of increasing the value of the set step length are not conducive to the determination of the compensation coefficient. Based on this, in order to avoid the situation where the LED lamp beads still cannot reach the target brightness value when the maximum compensation time is used as the compensation coefficient to compensate the LED lamp beads, in the embodiment, an additional compensation time is calculated in combination with the target brightness value and the maximum first brightness value of the LED lamp beads in each collected image, and the calculated compensation time is added to the maximum compensation time to obtain the final compensation coefficient, thereby ensuring that the final compensation coefficient can make the LED lamp beads reach the target brightness value.
其中,额外计算的补偿时间与前述补偿时间的计算方式类似,示例来说,确定目标亮度值和LED灯珠最大的第一亮度值的亮度差,以及确定设定步长对应的亮度增加值,该亮度增加值可为LED灯珠最大的第一亮度值与次大的第一亮度值之间的亮度差,之后,根据补偿时间与LED灯珠的亮度的增加值成正比的关系,结合设定步长对应的亮度增加值,以及目标亮度值和LED灯珠最大的第一亮度值的亮度差,便可确定出最大的第一亮度值增加到目标亮度值时所需的补偿时间,之后,将该补偿时间与最大的第一亮度值对应的补偿时间(即最大的 补偿时间)相加,便可得到补偿系数。Among them, the additionally calculated compensation time is similar to the calculation method of the aforementioned compensation time. For example, the brightness difference between the target brightness value and the maximum first brightness value of the LED lamp bead is determined, and the brightness increase value corresponding to the set step size is determined. The brightness increase value can be the brightness difference between the maximum first brightness value of the LED lamp bead and the second largest first brightness value. Then, according to the relationship that the compensation time is proportional to the increase value of the brightness of the LED lamp bead, combined with the brightness increase value corresponding to the set step size, and the brightness difference between the target brightness value and the maximum first brightness value of the LED lamp bead, the compensation time required for the maximum first brightness value to increase to the target brightness value can be determined. Then, the compensation time is added to the compensation time corresponding to the maximum first brightness value (i.e., the maximum compensation time) to obtain the compensation coefficient.
确定LED灯珠的补偿系数后执行步骤140。After the compensation coefficient of the LED lamp bead is determined, step 140 is executed.
步骤140、在第一LED灯珠的补偿系数大于系数阈值时,将第一LED灯珠的补偿系数更新为系数阈值,第一LED灯珠为LED显示屏中的任一灯珠。Step 140: When the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold. The first LED lamp bead is any lamp bead in the LED display screen.
可理解,LED显示屏的控制芯片控制LED灯珠显示时,由于硬件设备(即控制芯片的硬件条件)的限制,在对LED灯珠进行亮度补偿时,存在最大的补偿时间的限制,如果对LED灯珠进行补偿时的补偿时间超过最大的补偿时间的限制,会出现补偿时间溢出的情况,进而使得LED灯珠存在异常亮起的情况。It is understandable that when the control chip of the LED display controls the display of the LED lamp beads, due to the limitations of the hardware equipment (i.e. the hardware conditions of the control chip), there is a maximum compensation time limit when compensating the brightness of the LED lamp beads. If the compensation time when compensating the LED lamp beads exceeds the maximum compensation time limit, the compensation time overflow will occur, which will cause the LED lamp beads to light up abnormally.
为了避免溢出,设置了补偿系数的系数阈值,该系数阈值可根据LED显示屏实际使用的控制芯片的型号确定,一般而言,系数阈值大于按照设定步长对补偿时间进行递增时最大的补偿时间,且在控制芯片最大的补偿时间的限制内。系数阈值可以理解为当前LED显示屏进行补偿时所能使用的最大的补偿系数。In order to avoid overflow, the coefficient threshold of the compensation coefficient is set. The coefficient threshold can be determined according to the model of the control chip actually used by the LED display. Generally speaking, the coefficient threshold is greater than the maximum compensation time when the compensation time is incremented according to the set step length, and is within the limit of the maximum compensation time of the control chip. The coefficient threshold can be understood as the maximum compensation coefficient that can be used when the current LED display is compensated.
确定LED灯珠的补偿系数后,将该补偿系数与系数阈值做比较,若补偿系数小于或等于系数阈值,则说明没有溢出的情况,此时,保留补偿系数作为LED灯珠的补偿系数。若补偿系数大于系数阈值,则说明可能存在溢出的情况,此时,将系数阈值作为LED灯珠的补偿系数,即将LED灯珠的补偿系数修改为系数阈值。当前,为了便于描述,将步骤130中确定的补偿系数大于系数阈值的LED灯珠记为第一LED灯珠。需要说明,使用系数阈值对第一LED灯珠进行补偿时,可以使得补偿系数与亮度的增加值成正比关系的偏差很小,即使得第一LED灯珠的实际亮度与目标亮度值的偏差很小。After determining the compensation coefficient of the LED lamp bead, compare the compensation coefficient with the coefficient threshold. If the compensation coefficient is less than or equal to the coefficient threshold, it means that there is no overflow. At this time, retain the compensation coefficient as the compensation coefficient of the LED lamp bead. If the compensation coefficient is greater than the coefficient threshold, it means that there may be an overflow. At this time, use the coefficient threshold as the compensation coefficient of the LED lamp bead, that is, modify the compensation coefficient of the LED lamp bead to the coefficient threshold. Currently, for ease of description, the LED lamp bead whose compensation coefficient determined in step 130 is greater than the coefficient threshold is recorded as the first LED lamp bead. It should be noted that when the coefficient threshold is used to compensate the first LED lamp bead, the deviation of the compensation coefficient being proportional to the increase in brightness can be made very small, that is, the deviation between the actual brightness of the first LED lamp bead and the target brightness value is very small.
可选的,在目标亮度值大于LED灯珠的各第一亮度值时,将确定的补偿系数与系数阈值进行比较。因为,存在大于目标亮度值的第一亮度值时,说明基于当前所使用的补偿时间已经可以使LED灯珠达到目标亮度值,不会出现溢出的情况。Optionally, when the target brightness value is greater than each first brightness value of the LED lamp bead, the determined compensation coefficient is compared with the coefficient threshold. Because, when there is a first brightness value greater than the target brightness value, it means that the LED lamp bead can reach the target brightness value based on the currently used compensation time, and there will be no overflow.
步骤150、将得到的补偿系数发送至控制芯片,以使控制芯片基于补偿系数对相应的LED灯珠进行亮度补偿,控制芯片位于LED显示屏中。Step 150: Send the obtained compensation coefficient to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient. The control chip is located in the LED display screen.
示例性的,亮度补偿设备确定各LED灯珠最终的补偿系数后,将其发送至LED显示屏中的控制芯片,以使LED显示屏的控制芯片应用补偿系数,以在显示过程中基于补偿系数进行亮度补偿,即使得LED显示屏的控制芯片基于补偿系数调整PWM波的高电平的时长,进而实现对LED灯珠的亮度补偿。Exemplarily, after the brightness compensation device determines the final compensation coefficient of each LED lamp bead, it sends it to the control chip in the LED display screen, so that the control chip of the LED display screen applies the compensation coefficient to perform brightness compensation based on the compensation coefficient during the display process, that is, the control chip of the LED display screen adjusts the duration of the high level of the PWM wave based on the compensation coefficient, thereby realizing brightness compensation for the LED lamp beads.
可选的,控制芯片数量为多个时,亮度补偿设备与控制芯片进行数据传输时(亮度补偿设备与LED显示屏进行数据传输时主要是与控制芯片进行数据传输),可确定各控制芯片所控制的LED灯珠,之后,在确定各LED灯珠的补偿系数后,便可将补偿系数发送至LED灯 珠对应的控制芯片,以对LED灯珠进行控制。Optionally, when there are multiple control chips, when the brightness compensation device transmits data with the control chip (when the brightness compensation device transmits data with the LED display screen, it mainly transmits data with the control chip), the LED lamp beads controlled by each control chip can be determined. Then, after determining the compensation coefficient of each LED lamp bead, the compensation coefficient can be sent to the control chip corresponding to the LED lamp bead to control the LED lamp bead.
本申请一个实施例中,通过获取包含LED显示屏显示画面的多张采集图像,且多张采集图像中LED显示屏均使用设定灰度且对应不同的补偿时间,之后,获取LED显示屏中各LED灯珠在各采集图像中的第一亮度值以及确定各LED灯珠的目标亮度值,结合目标亮度值、LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定各LED灯珠的补偿系数,当前确定的补偿系数与LED灯珠达到目标亮度值时所需的亮度的增加值成正比,当各LED灯珠中的第一LED灯珠的补偿系数大于系数阈值时,将第一LED灯珠的补偿系数修改为系数阈值,之后,将各LED灯珠的补偿系数发送至LED显示屏中LED灯珠对应的控制芯片,以使控制芯片基于补偿系数对LED灯珠进行亮度补偿的技术手段,解决了相关技术中LED显示屏的各LED灯珠所显示的亮度存在差异的技术问题,基于目标亮度值、各LED灯珠实际的第一亮度值以及各LED灯珠在各采集图像中对应的补偿时间,为各LED灯珠确定合适的补偿系数,以在通过补偿系数对LED灯珠进行亮度补偿时,使得各LED灯珠所显示的亮度达到目标亮度值,即使得各LED灯珠的实际亮度尽可能保持一致,并且,可以尽可能满足补偿系数与LED灯珠的亮度的增加值成正比。通过设置系数阈值,可以保证补偿系数的范围在LED显示屏的硬件设备正常使用的范围,避免了溢出的现象,使得LED显示屏显示的均匀性(即各LED灯珠的实际亮度一致)和补偿系数之间相均衡。并且,通过一张采集图像中各LED灯珠的第一亮度值的平均值确定目标亮度值,可以保证所确定的目标亮度值符合LED灯珠的实际亮起情况。In one embodiment of the present application, multiple captured images including the display screen of an LED display screen are acquired, and the LED display screens in the multiple captured images all use a set grayscale and correspond to different compensation times. Then, a first brightness value of each LED lamp bead in the LED display screen in each captured image is acquired and a target brightness value of each LED lamp bead is determined. The compensation coefficient of each LED lamp bead is determined by combining the target brightness value, the first brightness value of the LED lamp bead in each captured image, and the compensation time corresponding to each captured image. The currently determined compensation coefficient is proportional to the increase in brightness required for the LED lamp bead to reach the target brightness value. When the compensation coefficient of the first LED lamp bead among the LED lamp beads is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is modified to the coefficient threshold. Then, The compensation coefficient of each LED lamp bead is sent to the control chip corresponding to the LED lamp bead in the LED display screen, so that the control chip can compensate the brightness of the LED lamp bead based on the compensation coefficient. The technical means solves the technical problem that the brightness displayed by each LED lamp bead of the LED display screen in the related art is different. Based on the target brightness value, the actual first brightness value of each LED lamp bead and the corresponding compensation time of each LED lamp bead in each collected image, a suitable compensation coefficient is determined for each LED lamp bead, so that when the LED lamp bead is compensated for the brightness by the compensation coefficient, the brightness displayed by each LED lamp bead reaches the target brightness value, that is, the actual brightness of each LED lamp bead is kept as consistent as possible, and the compensation coefficient can be proportional to the increase in the brightness of the LED lamp bead as much as possible. By setting the coefficient threshold, the range of the compensation coefficient can be ensured to be within the normal use range of the hardware equipment of the LED display screen, avoiding the overflow phenomenon, so that the uniformity of the LED display screen (that is, the actual brightness of each LED lamp bead is consistent) and the compensation coefficient are balanced. In addition, the target brightness value is determined by the average value of the first brightness value of each LED lamp bead in a collected image, which can ensure that the determined target brightness value is consistent with the actual lighting of the LED lamp bead.
图3为本申请一个实施例提供的一种亮度补偿方法的流程图,该亮度补偿方法是在上述亮度补偿方法的基础上,对补偿系数的确定过程进行示例性描述,参考图3,该亮度补偿方法包括:FIG3 is a flow chart of a brightness compensation method provided by an embodiment of the present application. The brightness compensation method is based on the above brightness compensation method and exemplarily describes the process of determining the compensation coefficient. Referring to FIG3 , the brightness compensation method includes:
步骤210、获取多张采集图像,多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,多张采集图像的补偿时间均不同。Step 210: Acquire a plurality of collected images, wherein the plurality of collected images include images collected from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of collected images are all different.
示例性的,补偿时间从零开始按照设定步长递增。Exemplarily, the compensation time starts from zero and increases according to a set step size.
一个实施例中,补偿时间的递增次数为预先设置的目标次数。举例而言,假设当前拍摄N张采集图像,N≥3,补偿时间递增时使用的设定步长为d(单位为纳秒),此时,拍摄的第一张采集图像对应的补偿时间为0、第二张采集图像对应的补偿时间为d、……、第N张采集图像对应的补偿时间为d*(N-1),即目标次数为N-1。In one embodiment, the number of times the compensation time is incremented is a preset target number. For example, assuming that N acquisition images are currently taken, N ≥ 3, and the set step size used when the compensation time is incremented is d (in nanoseconds), at this time, the compensation time corresponding to the first acquisition image taken is 0, the compensation time corresponding to the second acquisition image is d, ..., and the compensation time corresponding to the Nth acquisition image is d*(N-1), that is, the target number is N-1.
步骤220、获取LED显示屏中各LED灯珠在各采集图像中的第一亮度值。Step 220: Obtain the first brightness value of each LED lamp bead in the LED display screen in each collected image.
步骤230、在各张采集图像中选择一张目标图像。Step 230: Select a target image from each of the acquired images.
示例性的,将当前用于确定目标亮度值的采集图像作为目标图像。可选的,目标图像对 应的补偿时间较少,可以保证补偿系数的精确度,一个实施例中,以选择第二张采集图像作为目标图像为例进行描述。Exemplarily, the captured image currently used to determine the target brightness value is used as the target image. Optionally, the compensation time corresponding to the target image is short, which can ensure the accuracy of the compensation coefficient. In one embodiment, the second captured image is selected as the target image for description.
步骤240、获取目标图像中各LED灯珠的第一亮度值,并将各第一亮度值的平均值作为各LED灯珠的目标亮度值。Step 240: Obtain the first brightness value of each LED lamp bead in the target image, and use the average value of each first brightness value as the target brightness value of each LED lamp bead.
步骤250、根据每个LED灯珠在各采集图像中的第一亮度值,确定每个LED灯珠的第二亮度值,第二亮度值为相应LED灯珠的各第一亮度值中小于且仅小于目标亮度值的第一亮度值。Step 250: determine the second brightness value of each LED lamp bead according to the first brightness value of each LED lamp bead in each collected image, wherein the second brightness value is the first brightness value among the first brightness values of the corresponding LED lamp bead that is less than and only less than the target brightness value.
实施例中,以确定一个LED灯珠的补偿系数为例进行描述,实际应用中,各LED灯珠的补偿系数均可按照此方式进行确定,并且,各LED灯珠的补偿系数可以顺序确定也可以同时确定。In the embodiment, the compensation coefficient of one LED lamp bead is taken as an example for description. In actual application, the compensation coefficient of each LED lamp bead can be determined in this way, and the compensation coefficient of each LED lamp bead can be determined sequentially or simultaneously.
示例性的,N张采集图像中,将LED灯珠在第一张采集图像中的第一亮度值记为B0,将该LED灯珠在第二张采集图像中的第一亮度值记为B1、……、在第N张采集图像中的第一亮度值记为B(N-1)。由于补偿时间与第一亮度值的增加值成正比,且第一张采集图像的补偿时间最小,因此,一个LED灯珠的各第一亮度值由小到大的排列顺序依次是B0、B1、……、B(N-1)。在各第一亮度值中选择LED灯珠的第二亮度值。Exemplarily, in N captured images, the first brightness value of the LED lamp bead in the first captured image is recorded as B0, the first brightness value of the LED lamp bead in the second captured image is recorded as B1, ..., and the first brightness value in the Nth captured image is recorded as B(N-1). Since the compensation time is proportional to the increase in the first brightness value, and the compensation time of the first captured image is the smallest, the first brightness values of an LED lamp bead are arranged in the order of B0, B1, ..., B(N-1) from small to large. The second brightness value of the LED lamp bead is selected from each first brightness value.
示例来说,确定目标亮度值与各第一亮度值的关系。一个实施例中,先确定目标亮度值是否小于或等于B0,若否,继续确定目标亮度值是否小于或等于B1,以此类推,直到确定目标亮度值小于或等于某个第一亮度值时,将目标亮度值比较的前一第一亮度值确定为小于且仅小于目标亮度值的第一亮度值,当前,将确定的第一亮度值记为第二亮度值。举例而言,目标亮度值大于B1且小于或等于B2时,B1便是当前确定的第二亮度值。For example, the relationship between the target brightness value and each first brightness value is determined. In one embodiment, it is first determined whether the target brightness value is less than or equal to B0. If not, it is continued to determine whether the target brightness value is less than or equal to B1, and so on, until it is determined that the target brightness value is less than or equal to a certain first brightness value, the previous first brightness value compared with the target brightness value is determined as a first brightness value that is less than and only less than the target brightness value, and currently, the determined first brightness value is recorded as the second brightness value. For example, when the target brightness value is greater than B1 and less than or equal to B2, B1 is the currently determined second brightness value.
需要说明,实际应用中,也可以不依次比较,而是基于第一亮度值划分亮度范围,比如,小于或等于B0为一个亮度范围,大于B0且小于或等于B1是一个范围……大于B(N-2)且小于或等于B(N-1)为一个亮度范围,大于B(N-1)为一个亮度范围。之后,确定目标亮度值所属的亮度范围,并将该亮度范围对应的最小第一亮度值作为第二亮度值,比如,目标亮度值位于大于B(N-2)且小于或等于B(N-1)的亮度范围,则第二亮度值为B(N-2)。It should be noted that in actual applications, instead of comparing in sequence, the brightness range can be divided based on the first brightness value. For example, less than or equal to B0 is a brightness range, greater than B0 and less than or equal to B1 is a range... greater than B(N-2) and less than or equal to B(N-1) is a brightness range, and greater than B(N-1) is a brightness range. After that, the brightness range to which the target brightness value belongs is determined, and the minimum first brightness value corresponding to the brightness range is used as the second brightness value. For example, if the target brightness value is in the brightness range greater than B(N-2) and less than or equal to B(N-1), the second brightness value is B(N-2).
一个实施例中,存在目标亮度值小于或等于LED灯珠的最小第一亮度值的情况,即目标亮度值小于或等于B0,此时,找不到第二亮度值。这种情况下,还包括:当第二LED灯珠在各采集图像中最小的第一亮度值等于或大于目标亮度值(即不存在第二LED灯珠的第二亮度值)时,确定第二LED灯珠的补偿系数为零,第二LED灯珠为LED显示屏中的任一灯珠。In one embodiment, there is a case where the target brightness value is less than or equal to the minimum first brightness value of the LED lamp bead, that is, the target brightness value is less than or equal to B0, and at this time, the second brightness value cannot be found. In this case, it also includes: when the minimum first brightness value of the second LED lamp bead in each collected image is equal to or greater than the target brightness value (that is, there is no second brightness value of the second LED lamp bead), the compensation coefficient of the second LED lamp bead is determined to be zero, and the second LED lamp bead is any lamp bead in the LED display screen.
可理解,LED灯珠在各张采集图像中的最小的第一亮度值对应的补偿时间为0,如果目标亮度值小于且等于最小的第一亮度值时,说明不需要对该LED灯珠进行补偿,LED灯珠的 实际亮度值已经可以达到目标亮度值,因此,确定LED灯珠的补偿系数为0,即LED显示屏的应用过程中无需为该LED灯珠进行补偿。一个实施例中,为了便于理解,将最小的第一亮度值等于或大于目标亮度值的LED灯珠记为第二LED灯珠,也可理解为,未能确定出第二LED灯珠的第二亮度值。It can be understood that the compensation time corresponding to the minimum first brightness value of the LED lamp bead in each captured image is 0. If the target brightness value is less than and equal to the minimum first brightness value, it means that there is no need to compensate the LED lamp bead, and the actual brightness value of the LED lamp bead can reach the target brightness value. Therefore, the compensation coefficient of the LED lamp bead is determined to be 0, that is, there is no need to compensate the LED lamp bead during the application of the LED display. In one embodiment, for ease of understanding, the LED lamp bead whose minimum first brightness value is equal to or greater than the target brightness value is recorded as the second LED lamp bead, which can also be understood as failing to determine the second brightness value of the second LED lamp bead.
步骤260、确定目标亮度值与第二亮度值的亮度差,以及确定设定步长对应的亮度增加值。Step 260: Determine the brightness difference between the target brightness value and the second brightness value, and determine the brightness increase value corresponding to the set step size.
示例性的,设定步长对应的亮度增加值是指对LED灯珠的补偿时间增加设定步长后LED灯珠的实际亮度值的增加幅度,可理解,补偿时间按照设定步长递增时,LED灯珠在对应相邻的两张采集图像中的第一亮度值的差值便可以理解为设定步长对应的亮度增加值。可选的,各亮度值相邻(也可以理解为采集图像采集顺序相邻)的两个第一亮度值间的亮度差值(即亮度增加值)应相同,且均为将设定步长作为补偿时间时的亮度增加值,因此,可以将任意相邻的两个第一亮度值间的亮度差值作为设定步长的亮度增加值。Exemplarily, the brightness increase value corresponding to the set step length refers to the increase in the actual brightness value of the LED lamp bead after the compensation time of the LED lamp bead is increased by the set step length. It can be understood that when the compensation time increases according to the set step length, the difference in the first brightness value of the LED lamp bead in the two corresponding adjacent captured images can be understood as the brightness increase value corresponding to the set step length. Optionally, the brightness difference (i.e., brightness increase value) between two first brightness values that are adjacent to each other (can also be understood as the adjacent acquisition order of the captured images) should be the same, and both are the brightness increase values when the set step length is used as the compensation time. Therefore, the brightness difference between any two adjacent first brightness values can be used as the brightness increase value of the set step length.
但是,实际应用中,因为LED灯珠硬件等因素的限制,会使得补偿时间和亮度增加值接近正比而非完全正比,此时,为了保证补偿系数的准确性,使用仅大于第二亮度值的第一亮度值和第二亮度值确定当前设定步长对应的亮度增加值。例如,第二亮度值为B0,此时,仅大于第二亮度值的第一亮度值为B1,设定步长对应的亮度增加值为B1-B0。However, in actual applications, due to the limitations of factors such as LED lamp hardware, the compensation time and the brightness increase value are nearly proportional rather than completely proportional. At this time, in order to ensure the accuracy of the compensation coefficient, the first brightness value and the second brightness value that are only greater than the second brightness value are used to determine the brightness increase value corresponding to the current set step length. For example, if the second brightness value is B0, at this time, the first brightness value that is only greater than the second brightness value is B1, and the brightness increase value corresponding to the set step length is B1-B0.
示例性的,目标亮度值和第二亮度值之间的亮度差可体现将第二亮度值调整到目标亮度值所需的亮度增加值。For example, the brightness difference between the target brightness value and the second brightness value may represent a brightness increase value required to adjust the second brightness value to the target brightness value.
步骤270、根据亮度差、亮度增加值、设定步长以及第二亮度值对应的采集图像的补偿时间,确定LED灯珠的补偿系数。Step 270: Determine the compensation coefficient of the LED lamp beads according to the brightness difference, the brightness increase value, the set step size, and the compensation time of the collected image corresponding to the second brightness value.
由于补偿时间和亮度的增加值成正比,因此,知道设定步长作为补偿时间时的亮度增加值,以及目标亮度值和第二亮度值之间的亮度差后,便可根据正比关系,确定目标亮度值和第二亮度值之间的亮度差对应的补偿时间。举例而言,第二亮度值为B0,仅大于第二亮度值的第一亮度值为B1,目标亮度值记为av,设定步长为d,目标亮度值和第二亮度值之间的亮度差对应的补偿时间可表示为:d*(av-B0)/(B1-B0),之后,该补偿时间加上第二亮度值所对应的补偿时间(即第二亮度值所在的采集图像的补偿时间),便可得到LED灯珠达到目标亮度值所需的补偿系数。Since the compensation time is proportional to the increase in brightness, after knowing the increase in brightness when the step length is set as the compensation time, and the brightness difference between the target brightness value and the second brightness value, the compensation time corresponding to the brightness difference between the target brightness value and the second brightness value can be determined based on the proportional relationship. For example, the second brightness value is B0, the first brightness value that is only greater than the second brightness value is B1, the target brightness value is av, the step length is set to d, and the compensation time corresponding to the brightness difference between the target brightness value and the second brightness value can be expressed as: d*(av-B0)/(B1-B0), and then, the compensation time plus the compensation time corresponding to the second brightness value (that is, the compensation time of the captured image where the second brightness value is located) can obtain the compensation coefficient required for the LED lamp bead to reach the target brightness value.
举例而言,第二亮度值为B0,其对应的补偿时间为0,此时,LED灯珠的补偿系数为0+d*(av-B0)/(B1-B0)。在此基础上,可以推导出第二亮度值为B(n-2)时,对应的补偿系数可以记为d*(n-2)+d(av-B(n-2))/(B(n-1)-B(n-2))=d((n-2)+(av-B(n-2))/(B(n-1)-B(n-2))),其中,N≥n≥2,N为采集图像的总数量。For example, when the second brightness value is B0, its corresponding compensation time is 0. At this time, the compensation coefficient of the LED lamp bead is 0+d*(av-B0)/(B1-B0). On this basis, it can be deduced that when the second brightness value is B(n-2), the corresponding compensation coefficient can be recorded as d*(n-2)+d(av-B(n-2))/(B(n-1)-B(n-2))=d((n-2)+(av-B(n-2))/(B(n-1)-B(n-2))), where N≥n≥2, and N is the total number of captured images.
一个实施例中,存在第二亮度值为相应LED灯珠的最大第一亮度值的情况,这时不存在仅大于第二亮度值的第一亮度值。因此,可将第二亮度值(即最大的第一亮度值)和仅小于第二亮度值的第一亮度值(即次大的第一亮度值)的亮度差作为设定步长对应的亮度增加值,以确定LED灯珠的补偿系数,此时,LED灯珠的补偿系数可表示为d*(N-1)+d*(av-B(N-1))/(B(N-1)-B(N-2)),其中,d为设定步长,av为目标亮度值,N为采集图像的总数量,d*(N-1)为第N张采集图像对应的补偿时间,B(N-1)为最大的第一亮度值(即第N张采集图像中LED灯珠的第一亮度值),B(N-2)为次大的第一亮度值(即第N-1张采集图像中LED灯珠的第一亮度值)。In one embodiment, there is a case where the second brightness value is the maximum first brightness value of the corresponding LED lamp bead, and in this case, there is no first brightness value that is only greater than the second brightness value. Therefore, the brightness difference between the second brightness value (i.e., the maximum first brightness value) and the first brightness value that is only less than the second brightness value (i.e., the second largest first brightness value) can be used as the brightness increase value corresponding to the set step size to determine the compensation coefficient of the LED lamp bead. At this time, the compensation coefficient of the LED lamp bead can be expressed as d*(N-1)+d*(av-B(N-1))/(B(N-1)-B(N-2)), where d is the set step size, av is the target brightness value, N is the total number of captured images, d*(N-1) is the compensation time corresponding to the Nth captured image, B(N-1) is the maximum first brightness value (i.e., the first brightness value of the LED lamp bead in the Nth captured image), and B(N-2) is the second largest first brightness value (i.e., the first brightness value of the LED lamp bead in the N-1th captured image).
步骤280、在第一LED灯珠的第二亮度值为第一LED灯珠在各采集图像中最大的第一亮度值时,判断第一LED灯珠的补偿系数是否大于系数阈值。在补偿系数大于系数阈值时,执行步骤290,否则,结束。Step 280: When the second brightness value of the first LED bead is the maximum first brightness value of the first LED bead in each collected image, determine whether the compensation coefficient of the first LED bead is greater than the coefficient threshold. When the compensation coefficient is greater than the coefficient threshold, execute step 290; otherwise, end.
示例性的,为第一LED灯珠所选择的第二亮度值为第一LED灯珠的最大的第一亮度值(即LED灯珠在最后一张采集图像中的第一亮度值)时,才可能出现溢出的情况,因此,选择第二亮度值且所选择的第二亮度值为LED灯珠最大的第一亮度值时,确定补偿系数后,才会判断补偿系数是否大于系数阈值。如果第二亮度值不是最大的第一亮度值,则直接将当前确定的补偿系数作为LED灯珠最终得到的补偿系数。Exemplarily, when the second brightness value selected for the first LED bead is the maximum first brightness value of the first LED bead (i.e., the first brightness value of the LED bead in the last captured image), overflow may occur. Therefore, when the second brightness value is selected and the selected second brightness value is the maximum first brightness value of the LED bead, after the compensation coefficient is determined, it is determined whether the compensation coefficient is greater than the coefficient threshold. If the second brightness value is not the maximum first brightness value, the currently determined compensation coefficient is directly used as the final compensation coefficient of the LED bead.
步骤290、在补偿系数大于系数阈值时,将第一LED灯珠的补偿系数更新为系数阈值。Step 290: When the compensation coefficient is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold.
即在补偿系数大于系数阈值时,确定第一LED灯珠的补偿系数为系数阈值。之后,执行步骤2100。That is, when the compensation coefficient is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is determined to be the coefficient threshold. Then, step 2100 is executed.
步骤2100、将得到的补偿系数发送至控制芯片,以使控制芯片基于补偿系数对相应的LED灯珠进行亮度补偿,控制芯片位于所述LED显示屏中。Step 2100: Send the obtained compensation coefficient to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient, and the control chip is located in the LED display screen.
下面对本申请实施例提供的亮度补偿方法进行示例性描述,本示例中,LED显示屏显示纯色图像的过程中,先使LED显示屏的各LED灯珠的补偿时间设置为0,之后,使LED显示屏关闭高灰校正,并且通过修改Gamma表或向LED显示屏的控制芯片(也可记为接收卡)发送指令的方式,将LED显示屏设置为设定灰度(设定灰度为低阶灰度值),当前,以设定灰度为64为例进行描述,此时,各LED灯珠的灰度均为64。之后,亮度补偿设备控制照相机对LED显示屏进行拍摄。The following is an exemplary description of the brightness compensation method provided in the embodiment of the present application. In this example, when the LED display screen displays a pure color image, the compensation time of each LED lamp bead of the LED display screen is first set to 0, and then the high gray correction of the LED display screen is turned off, and the LED display screen is set to a set grayscale (the grayscale is set to a low-order grayscale value) by modifying the Gamma table or sending instructions to the control chip of the LED display screen (also known as a receiving card). Currently, the grayscale setting is 64 as an example for description. At this time, the grayscale of each LED lamp bead is 64. Afterwards, the brightness compensation device controls the camera to shoot the LED display screen.
当前,设定步长记为d,且以d为0.4ns为例进行描述。同一纯色图像下,照相机拍摄N张采集图像,此时,拍摄的第一张采集图像的补偿时间为0,第二张采集图像的补偿时间为d,第三张采集图像的补偿时间为2d,以此类推。之后,亮度补偿设备获取N张采集图像,并获取各LED灯珠在各张采集图像的第一亮度值,当前,每个LED灯珠均对应N个第一亮度值, 此时,将第一张采集图像的第一亮度值记为B0、将第二张采集图像的第一亮度值记为B1、……、第N张采集图像的第一亮度值记为B(N-1)。Currently, the step length is set to d, and d is described as 0.4ns. Under the same pure color image, the camera takes N acquired images. At this time, the compensation time of the first acquired image is 0, the compensation time of the second acquired image is d, the compensation time of the third acquired image is 2d, and so on. Afterwards, the brightness compensation device obtains N acquired images, and obtains the first brightness value of each LED lamp bead in each acquired image. Currently, each LED lamp bead corresponds to N first brightness values. At this time, the first brightness value of the first acquired image is recorded as B0, the first brightness value of the second acquired image is recorded as B1, ..., and the first brightness value of the Nth acquired image is recorded as B(N-1).
之后,亮度补偿设备计算各LED灯珠在第二张采集图像(补偿时间为d)中的第一亮度值的平均值,并作为目标亮度值,此时,目标亮度值记为av。之后,确定各LED灯珠达到av时的补偿系数,当前,将补偿系数记为Coef,并且,系数阈值记为Max。此时,补偿系数的确定方式如下:Afterwards, the brightness compensation device calculates the average of the first brightness values of each LED lamp bead in the second captured image (compensation time is d) and uses it as the target brightness value. At this time, the target brightness value is recorded as av. Afterwards, the compensation coefficient of each LED lamp bead when it reaches av is determined. At present, the compensation coefficient is recorded as Coef, and the coefficient threshold is recorded as Max. At this time, the compensation coefficient is determined as follows:
按照上述方式,便可确定出各LED灯珠的补偿系数,之后,亮度补偿设备将补偿系数发送至LED显示屏中各LED灯珠的控制芯片,以在LED显示屏显示过程中,由控制芯片基于补偿系数对LED灯珠进行亮度补偿。一般而言,拍摄3张采集图像时,便可以得到较为准确的补偿系数并且耗时较短。并且,采集图像增多时,目标亮度值比较集中在前三张采集图像对应的亮度值范围中,即避免了溢出的情况,进一步保证了补偿系数的准确性。According to the above method, the compensation coefficient of each LED lamp bead can be determined. After that, the brightness compensation device sends the compensation coefficient to the control chip of each LED lamp bead in the LED display screen, so that during the display process of the LED display screen, the control chip can perform brightness compensation on the LED lamp bead based on the compensation coefficient. Generally speaking, when three acquisition images are taken, a more accurate compensation coefficient can be obtained and the time consumption is shorter. In addition, when the number of acquired images increases, the target brightness value is more concentrated in the brightness value range corresponding to the first three acquisition images, which avoids overflow and further ensures the accuracy of the compensation coefficient.
本申请一个实施例中,通过获取包含LED显示屏显示画面的多张采集图像,且多张采集图像中LED显示屏均使用设定灰度且对应不同的补偿时间,之后,结合一张采集图像中各LED灯珠的第一亮度值的平均值确定目标亮度值,并结合LED灯珠在各采集图像中的各第一亮度值,确定仅小于目标亮度值的第二亮度值,之后,根据目标亮度值和第二亮度值的亮度差、设定步长、设定步长对应的亮度增加值以及第二亮度值对应的补偿时间,确定LED灯珠的补偿系数,并且,为LED灯珠所选择的第二亮度值为LED灯珠的最大第一亮度值且确定的补偿系数大于系数阈值时,将LED灯珠的补偿系数修改为系数阈值,之后,将各LED灯珠的补偿系数发送至LED显示屏的控制芯片,以使控制芯片基于补偿系数对LED灯珠进行亮度补偿的技术手段,解决了相关技术中LED显示屏的各LED灯珠所显示的亮度存在差异的技术问题,通过补偿系数使得各LED灯珠所显示的亮度达到目标亮度值,即使得各LED灯珠的实际亮度尽可能保持一致,并且,通过目标亮度值和第二亮度值的亮度差与设定步长对应的亮度增加值的比值,确定补偿系数时,使得补偿系数与LED灯珠的亮度的增加值尽可能成正比,保证了补偿效果。并且,通过设置系数阈值,可以保证补偿系数的范围在LED显示屏的硬件设备正常使用的范围,避免了溢出的现象,使得LED显示屏显示的均匀性(即各LED灯珠的实际亮度一致)和补偿系数之间相均衡。In one embodiment of the present application, a plurality of captured images including a display screen of an LED display screen are acquired, and the LED display screens in the plurality of captured images all use a set grayscale and correspond to different compensation times. Then, a target brightness value is determined by combining an average value of the first brightness values of each LED lamp bead in one captured image, and a second brightness value that is only less than the target brightness value is determined by combining the first brightness values of the LED lamp bead in each captured image. Then, a compensation coefficient of the LED lamp bead is determined according to the brightness difference between the target brightness value and the second brightness value, a set step size, a brightness increase value corresponding to the set step size, and a compensation time corresponding to the second brightness value. In addition, the second brightness value selected for the LED lamp bead is the maximum first brightness value of the LED lamp bead and the determined compensation coefficient is greater than When the coefficient threshold is reached, the compensation coefficient of the LED lamp bead is modified to the coefficient threshold, and then the compensation coefficient of each LED lamp bead is sent to the control chip of the LED display screen, so that the control chip can compensate the brightness of the LED lamp bead based on the compensation coefficient. The technical problem of the difference in brightness displayed by each LED lamp bead of the LED display screen in the related technology is solved. The brightness displayed by each LED lamp bead reaches the target brightness value through the compensation coefficient, that is, the actual brightness of each LED lamp bead is kept as consistent as possible, and the compensation coefficient is determined by the ratio of the brightness difference between the target brightness value and the second brightness value to the brightness increase value corresponding to the set step length, so that the compensation coefficient is as proportional to the increase value of the brightness of the LED lamp bead as possible, ensuring the compensation effect. In addition, by setting the coefficient threshold, it can be ensured that the range of the compensation coefficient is within the normal use range of the hardware equipment of the LED display screen, avoiding the overflow phenomenon, so that the uniformity of the LED display screen (that is, the actual brightness of each LED lamp bead is consistent) and the compensation coefficient are balanced.
图4为本申请一个实施例提供的一种亮度补偿装置的结构示意图。参考图4,该亮度补偿装置包括:图像获取单元301、亮度确定单元302、系数确定单元303、系数修改单元304和系数发送单元305。FIG4 is a schematic diagram of the structure of a brightness compensation device provided by an embodiment of the present application. Referring to FIG4 , the brightness compensation device includes: an image acquisition unit 301 , a brightness determination unit 302 , a coefficient determination unit 303 , a coefficient modification unit 304 and a coefficient sending unit 305 .
其中,图像获取单元301,用于获取多张采集图像,多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,多张采集图像的补偿时间均不同;亮度确定单元302,用于获取LED显示屏中各LED灯珠在各采集图像中的第一亮度值,以及确定各LED灯珠的目标亮度值;系数确定单元303,用于根据各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定各LED灯珠的补偿系数,补偿 系数与LED灯珠达到目标亮度值时所需的亮度的增加值成正比;系数修改单元304,用于在第一LED灯珠的补偿系数大于系数阈值时,将第一LED灯珠的补偿系数更新为系数阈值,第一LED灯珠为LED显示屏中的任一灯珠;系数发送单元305,用于将得到的补偿系数发送至控制芯片,以使控制芯片基于补偿系数对相应的LED灯珠进行亮度补偿,控制芯片位于LED显示屏中。Among them, the image acquisition unit 301 is used to acquire multiple captured images, and the multiple captured images include images captured from the display screen of the LED display screen with a set grayscale, and the compensation time of the multiple captured images is different; the brightness determination unit 302 is used to obtain the first brightness value of each LED lamp bead in the LED display screen in each captured image, and determine the target brightness value of each LED lamp bead; the coefficient determination unit 303 is used to determine the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each captured image, and the compensation time corresponding to each captured image, and the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value; the coefficient modification unit 304 is used to update the compensation coefficient of the first LED lamp bead to the coefficient threshold when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, and the first LED lamp bead is any lamp bead in the LED display screen; the coefficient sending unit 305 is used to send the obtained compensation coefficient to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp bead based on the compensation coefficient, and the control chip is located in the LED display screen.
本申请一个实施例中,多张采集图像的补偿时间按照图像的采集顺序递增。In one embodiment of the present application, the compensation time of multiple captured images increases in the order in which the images are captured.
本申请一个实施例中,对于多张采集图像中采集顺序相邻的两张采集图像,后一采集图像的补偿时间与前一采集图像的补偿时间之差为设定步长。In one embodiment of the present application, for two acquired images that are adjacent in acquisition order among the multiple acquired images, the difference between the compensation time of the latter acquired image and the compensation time of the previous acquired image is the set step size.
本申请一个实施例中,系数确定单元303包括:亮度选择子单元,用于根据每个LED灯珠在各采集图像中的第一亮度值,确定每个LED灯珠的第二亮度值,第二亮度值为相应LED灯珠的各第一亮度值中小于且仅小于目标亮度值的第一亮度值;亮度计算子单元,用于确定目标亮度值与第二亮度值的亮度差,以及确定设定步长对应的亮度增加值;补偿确定子单元,用于根据亮度差、亮度增加值、设定步长以及第二亮度值对应的采集图像的补偿时间,确定LED灯珠的补偿系数。In one embodiment of the present application, the coefficient determination unit 303 includes: a brightness selection subunit, which is used to determine the second brightness value of each LED lamp bead according to the first brightness value of each LED lamp bead in each collected image, and the second brightness value is the first brightness value that is less than and only less than the target brightness value among the first brightness values of the corresponding LED lamp bead; a brightness calculation subunit, which is used to determine the brightness difference between the target brightness value and the second brightness value, and to determine the brightness increase value corresponding to the set step size; a compensation determination subunit, which is used to determine the compensation coefficient of the LED lamp bead according to the brightness difference, the brightness increase value, the set step size and the compensation time of the collected image corresponding to the second brightness value.
本申请一个实施例中,还包括:零补偿确定单元,用于如不存在第二LED灯珠的第二亮度值,确定第二LED灯珠的补偿系数为零,第二LED灯珠为LED显示屏中的任一灯珠。In one embodiment of the present application, it also includes: a zero compensation determination unit, which is used to determine that the compensation coefficient of the second LED lamp bead is zero if the second brightness value of the second LED lamp bead does not exist, and the second LED lamp bead is any lamp bead in the LED display screen.
本申请一个实施例中,系数修改单元304包括:系数判断子单元,用于在第一LED灯珠的第二亮度值为第一LED灯珠在各采集图像中最大的第一亮度值时,判断第一LED灯珠的补偿系数是否大于系数阈值;补偿系数修改子单元,用于在补偿系数大于系数阈值时,将第一LED灯珠的补偿系数更新为系数阈值。In one embodiment of the present application, the coefficient modification unit 304 includes: a coefficient judgment subunit, used to judge whether the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold when the second brightness value of the first LED lamp bead is the largest first brightness value of the first LED lamp bead in each collected image; a compensation coefficient modification subunit, used to update the compensation coefficient of the first LED lamp bead to the coefficient threshold when the compensation coefficient is greater than the coefficient threshold.
本申请一个实施例中,亮度确定单元302包括:亮度获取子单元,用于获取LED显示屏中各LED灯珠在各采集图像中的第一亮度值;图像选择子单元,用于在各张采集图像中选择一张目标图像;均值确定子单元,用于获取目标图像中各LED灯珠的第一亮度值,并将各第一亮度值的平均值作为各LED灯珠的目标亮度值。In one embodiment of the present application, the brightness determination unit 302 includes: a brightness acquisition subunit, used to obtain the first brightness value of each LED lamp bead in the LED display screen in each collected image; an image selection subunit, used to select a target image in each collected image; a mean determination subunit, used to obtain the first brightness value of each LED lamp bead in the target image, and use the average value of each first brightness value as the target brightness value of each LED lamp bead.
本申请一个实施例中,LED显示屏的显示画面为纯色图像,纯色图像包括红色图像、绿色图像和蓝色图像,LED灯珠在每种纯色下均有对应的补偿系数。In one embodiment of the present application, the display screen of the LED display screen is a pure color image, and the pure color image includes a red image, a green image, and a blue image. The LED lamp beads have a corresponding compensation coefficient under each pure color.
本申请一个实施例中,LED显示屏中各LED灯珠的设定灰度的灰度值小于灰度阈值。In one embodiment of the present application, the grayscale value of the set grayscale of each LED lamp bead in the LED display screen is less than the grayscale threshold.
上述提供的亮度补偿装置可用于执行上述任意实施例提供的亮度补偿设备执行的亮度补偿方法,具备相应的功能和有益效果。The brightness compensation device provided above can be used to execute the brightness compensation method executed by the brightness compensation device provided in any of the above embodiments, and has corresponding functions and beneficial effects.
值得注意的是,上述亮度补偿装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能 单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that in the embodiment of the above-mentioned brightness compensation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
图5为本申请一个实施例提供的一种亮度补偿设备的结构示意图。如图5所示,该亮度补偿设备包括处理器40和存储器41;处理器40的数量可以是一个或多个,图5中以一个处理器40为例。亮度补偿设备中处理器40和存储器41可以通过总线或其他方式连接,图5中以通过总线连接为例。FIG5 is a schematic diagram of the structure of a brightness compensation device provided by an embodiment of the present application. As shown in FIG5, the brightness compensation device includes a processor 40 and a memory 41; the number of processors 40 can be one or more, and FIG5 takes one processor 40 as an example. The processor 40 and the memory 41 in the brightness compensation device can be connected via a bus or other means, and FIG5 takes the connection via a bus as an example.
存储器41作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的亮度补偿设备对应的程序指令/模块(亮度补偿装置中的图像获取单元301、亮度确定单元302、系数确定单元303、系数修改单元304和系数发送单元305)。处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行亮度补偿设备的各种功能应用以及数据处理,即实现上述的亮度补偿方法。The memory 41, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions/modules corresponding to the brightness compensation device in the embodiment of the present application (the image acquisition unit 301, the brightness determination unit 302, the coefficient determination unit 303, the coefficient modification unit 304 and the coefficient sending unit 305 in the brightness compensation device). The processor 40 executes various functional applications and data processing of the brightness compensation device by running the software programs, instructions and modules stored in the memory 41, that is, realizes the above-mentioned brightness compensation method.
存储器41可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据亮度补偿设备的使用所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器41可进一步包括相对于处理器40远程设置的存储器,这些远程存储器可以通过网络连接至亮度补偿设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 41 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the brightness compensation device, etc. In addition, the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 41 may further include a memory remotely arranged relative to the processor 40, and these remote memories may be connected to the brightness compensation device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
亮度补偿设备还可包括通信装置,以用于根据处理器的指示实现数据通信,如可以与照相机进行数据通信,还如与LED显示屏进行数据通信。亮度补偿设备还可以包括输入装置和输出装置,输入装置可用于接收输入的数字或字符信息,以及产生与亮度补偿设备的用户设置以及功能控制有关的键信号输入,还可以包括麦克风等音频输入设备。输出装置可包括显示屏、扬声器等设备。The brightness compensation device may also include a communication device for realizing data communication according to the instructions of the processor, such as data communication with a camera or with an LED display screen. The brightness compensation device may also include an input device and an output device, wherein the input device may be used to receive input digital or character information and generate key signal input related to user settings and function control of the brightness compensation device, and may also include an audio input device such as a microphone. The output device may include devices such as a display screen and a speaker.
上述亮度补偿设备包含对应的亮度补偿装置,可以用于执行任意实施例提供的亮度补偿方法,具备相应的功能和有益效果。The above-mentioned brightness compensation device includes a corresponding brightness compensation device, which can be used to execute the brightness compensation method provided by any embodiment and has corresponding functions and beneficial effects.
本申请一个实施例还提供一种亮度补偿系统,参考图1,该亮度补偿系数包括LED显示屏、照相机以及前述的亮度补偿设备。An embodiment of the present application further provides a brightness compensation system. Referring to FIG. 1 , the brightness compensation system includes an LED display screen, a camera, and the aforementioned brightness compensation device.
其中,LED显示屏进行显示时,由亮度补偿设备控制照相机进行拍摄,以得到多张采集图像,并且,多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,所述多张采集图像的补偿时间均不同。亮度补偿设备获取多张采集图像后,获取LED显示屏中各LED灯珠在各张采集图像中的第一亮度值,以及确定各LED灯珠的目标亮度值;根据所述各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定各LED灯珠的补偿系数,补偿系数与LED灯珠达到目标亮度值时所需的亮 度的增加值成正比;在第一LED灯珠的补偿系数大于系数阈值时,将第一LED灯珠的补偿系数更新为系数阈值,第一LED灯珠为LED显示屏中的任一灯珠;将得到的补偿系数发送至控制芯片,以使控制芯片基于补偿系数对相应的LED灯珠进行亮度补偿,控制芯片位于LED显示屏中。Wherein, when the LED display screen is displayed, the camera is controlled by the brightness compensation device to take pictures to obtain multiple captured images, and the multiple captured images include images captured from the display screen of the LED display screen with a set grayscale, and the compensation time of the multiple captured images is different. After the brightness compensation device obtains the multiple captured images, it obtains the first brightness value of each LED lamp bead in the LED display screen in each captured image, and determines the target brightness value of each LED lamp bead; according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each captured image, and the compensation time corresponding to each captured image, the compensation coefficient of each LED lamp bead is determined, and the compensation coefficient is proportional to the increase in brightness required when the LED lamp bead reaches the target brightness value; when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold, and the first LED lamp bead is any lamp bead in the LED display screen; the obtained compensation coefficient is sent to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp bead based on the compensation coefficient, and the control chip is located in the LED display screen.
可选的,亮度补偿设备可以通过有线或无线的方式与照相机以及LED显示屏相连。还可选的,照相机可以作为亮度补偿设备的内置模块,此时,亮度补偿系统包括LED显示屏和包含相机的亮度补偿设备。还可选的,LED显示屏可以作为亮度补偿设备的内置模块,此时,亮度补偿系统包括照相机和包含LED显示屏的亮度补偿设备。Optionally, the brightness compensation device can be connected to the camera and the LED display screen by wire or wirelessly. Also optionally, the camera can be used as a built-in module of the brightness compensation device, in which case the brightness compensation system includes the LED display screen and the brightness compensation device including the camera. Also optionally, the LED display screen can be used as a built-in module of the brightness compensation device, in which case the brightness compensation system includes the camera and the brightness compensation device including the LED display screen.
此外,本申请一个实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请任意实施例所提供的亮度补偿方法中的相关操作,且具备相应的功能和有益效果。In addition, an embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the brightness compensation method provided in any embodiment of the present application, and have corresponding functions and beneficial effects.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。Therefore, the application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the application. It should be understood that each flow and/or box in the flow chart and/or block diagram and the combination of the flow chart and/or box in the flow chart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of a computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and/or one box or multiple boxes of a block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operating steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质 的示例。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory. The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims (12)
- 一种亮度补偿方法,其中,包括:A brightness compensation method, comprising:获取多张采集图像,所述多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,所述多张采集图像的补偿时间均不同;Acquire a plurality of collected images, wherein the plurality of collected images include images collected from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of collected images are all different;获取所述LED显示屏中各LED灯珠在各采集图像中的第一亮度值,以及确定所述各LED灯珠的目标亮度值;Obtaining a first brightness value of each LED lamp bead in the LED display screen in each collected image, and determining a target brightness value of each LED lamp bead;根据所述各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像的补偿时间,确定所述各LED灯珠的补偿系数,所述补偿系数与对应LED灯珠达到所述目标亮度值时所需的亮度的增加值成正比;Determine a compensation coefficient for each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time of each collected image, wherein the compensation coefficient is proportional to the increase in brightness required when the corresponding LED lamp bead reaches the target brightness value;在第一LED灯珠的补偿系数大于系数阈值时,将所述第一LED灯珠的补偿系数更新为所述系数阈值,所述第一LED灯珠为所述LED显示屏中的任一灯珠;When the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, updating the compensation coefficient of the first LED lamp bead to the coefficient threshold, wherein the first LED lamp bead is any lamp bead in the LED display screen;将得到的补偿系数发送至控制芯片,以使所述控制芯片基于所述补偿系数对相应的LED灯珠进行亮度补偿,所述控制芯片位于所述LED显示屏中。The obtained compensation coefficient is sent to the control chip, so that the control chip performs brightness compensation on the corresponding LED lamp beads based on the compensation coefficient, and the control chip is located in the LED display screen.
- 根据权利要求1所述的亮度补偿方法,其中,所述多张采集图像的补偿时间按照图像的采集顺序递增。The brightness compensation method according to claim 1, wherein the compensation time of the multiple acquired images increases in the order in which the images are acquired.
- 根据权利要求2所述的亮度补偿方法,其中,对于所述多张采集图像中采集顺序相邻的两张采集图像,后一采集图像的补偿时间与前一采集图像的补偿时间之差为设定步长。According to the brightness compensation method of claim 2, wherein, for two acquired images in adjacent acquisition order among the multiple acquired images, the difference between the compensation time of the latter acquired image and the compensation time of the previous acquired image is the set step size.
- 根据权利要求3所述的亮度补偿方法,其中,所述根据所述各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像对应的补偿时间,确定所述各LED灯珠的补偿系数包括:According to the brightness compensation method of claim 3, wherein the determining the compensation coefficient of each LED lamp bead according to the target brightness value of each LED lamp bead, the first brightness value of the corresponding LED lamp bead in each collected image, and the compensation time corresponding to each collected image comprises:根据每个所述LED灯珠在各采集图像中的第一亮度值,确定每个所述LED灯珠的第二亮度值,所述第二亮度值为相应LED灯珠的各所述第一亮度值中小于且仅小于所述目标亮度值的第一亮度值;Determine a second brightness value of each LED lamp bead according to the first brightness value of each LED lamp bead in each collected image, wherein the second brightness value is a first brightness value of each of the first brightness values of the corresponding LED lamp bead that is less than and only less than the target brightness value;确定所述目标亮度值与所述第二亮度值的亮度差,以及确定所述设定步长对应的亮度增加值;Determine a brightness difference between the target brightness value and the second brightness value, and determine a brightness increase value corresponding to the set step size;根据所述亮度差、所述亮度增加值、所述设定步长以及所述第二亮度值对应的采集图像的补偿时间,确定所述LED灯珠的补偿系数。The compensation coefficient of the LED lamp bead is determined according to the brightness difference, the brightness increase value, the set step size, and the compensation time of the collected image corresponding to the second brightness value.
- 根据权利要求4所述的亮度补偿方法,其中,还包括:The brightness compensation method according to claim 4, further comprising:如不存在第二LED灯珠的第二亮度值,确定所述第二LED灯珠的补偿系数为零,所述第二LED灯珠为所述LED显示屏中的任一灯珠。If the second brightness value of the second LED lamp bead does not exist, the compensation coefficient of the second LED lamp bead is determined to be zero, and the second LED lamp bead is any lamp bead in the LED display screen.
- 根据权利要求4所述的亮度补偿方法,其中,所述在第一LED灯珠的补偿系数大于系数阈值时,将所述第一LED灯珠的补偿系数更新为所述系数阈值,包括:The brightness compensation method according to claim 4, wherein when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, updating the compensation coefficient of the first LED lamp bead to the coefficient threshold comprises:在所述第一LED灯珠的第二亮度值为所述第一LED灯珠在各所述采集图像中最大的第一亮度值时,判断所述第一LED灯珠的补偿系数是否大于所述系数阈值;When the second brightness value of the first LED lamp bead is the maximum first brightness value of the first LED lamp bead in each of the collected images, determining whether the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold;在所述补偿系数大于所述系数阈值时,将所述第一LED灯珠的补偿系数更新为所述系数阈值。When the compensation coefficient is greater than the coefficient threshold, the compensation coefficient of the first LED lamp bead is updated to the coefficient threshold.
- 根据权利要求1所述的亮度补偿方法,其中,所述确定所述各LED灯珠的目标亮度值包括:The brightness compensation method according to claim 1, wherein determining the target brightness value of each LED lamp bead comprises:在各张采集图像中选择一张目标图像;Select a target image from among the acquired images;获取所述目标图像中各所述LED灯珠的第一亮度值,并将各所述第一亮度值的平均值作为各所述LED灯珠的目标亮度值。The first brightness value of each of the LED lamp beads in the target image is obtained, and the average value of each of the first brightness values is used as the target brightness value of each of the LED lamp beads.
- 根据权利要求1所述的亮度补偿方法,其中,所述LED显示屏的显示画面为纯色图像,所述纯色图像包括红色图像、绿色图像和蓝色图像,所述LED灯珠在每种纯色下均有对应的补偿系数。According to the brightness compensation method of claim 1, the display screen of the LED display screen is a pure color image, the pure color image includes a red image, a green image and a blue image, and the LED lamp beads have a corresponding compensation coefficient under each pure color.
- 根据权利要求1所述的亮度补偿方法,其中,所述LED显示屏中各所述LED灯珠的设定灰度的灰度值小于灰度阈值。The brightness compensation method according to claim 1, wherein the grayscale value of the set grayscale of each of the LED lamp beads in the LED display screen is less than the grayscale threshold.
- 一种亮度补偿装置,其中,包括:A brightness compensation device, comprising:图像获取单元,用于获取多张采集图像,所述多张采集图像包括对设定灰度的LED显示屏的显示画面采集得到的图像,所述多张采集图像的补偿时间均不同;An image acquisition unit, used to acquire a plurality of acquired images, wherein the plurality of acquired images include images acquired from a display screen of an LED display screen with a set grayscale, and the compensation times of the plurality of acquired images are all different;亮度确定单元,用于获取所述LED显示屏中各LED灯珠在各采集图像中的第一亮度值,以及确定所述各LED灯珠的目标亮度值;A brightness determination unit, used to obtain a first brightness value of each LED lamp bead in the LED display screen in each collected image, and to determine a target brightness value of each LED lamp bead;系数确定单元,用于根据所述各LED灯珠的目标亮度值、对应LED灯珠在各采集图像中的第一亮度值以及各采集图像的补偿时间,确定所述各LED灯珠的补偿系数,所述补偿系数与对应LED灯珠达到所述目标亮度值时所需的亮度的增加值成正比;A coefficient determination unit, configured to determine a compensation coefficient of each LED lamp bead according to a target brightness value of each LED lamp bead, a first brightness value of the corresponding LED lamp bead in each collected image, and a compensation time of each collected image, wherein the compensation coefficient is proportional to an increase in brightness required when the corresponding LED lamp bead reaches the target brightness value;系数修改单元,用于在第一LED灯珠的补偿系数大于系数阈值时,将所述第一LED灯珠的补偿系数更新为所述系数阈值,所述第一LED灯珠为所述LED显示屏中的任一灯珠;A coefficient modification unit, configured to update the compensation coefficient of a first LED lamp bead to the coefficient threshold when the compensation coefficient of the first LED lamp bead is greater than the coefficient threshold, wherein the first LED lamp bead is any lamp bead in the LED display screen;系数发送单元,用于将得到的补偿系数发送至控制芯片,以使所述控制芯片基于所述补偿系数对相应的LED灯珠进行亮度补偿,所述控制芯片位于所述LED显示屏中。The coefficient sending unit is used to send the obtained compensation coefficient to the control chip so that the control chip can perform brightness compensation on the corresponding LED lamp beads based on the compensation coefficient. The control chip is located in the LED display screen.
- 一种亮度补偿设备,其中,包括:A brightness compensation device, comprising:一个或多个处理器;one or more processors;存储器,用于存储一个或多个程序;A memory for storing one or more programs;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-9中任一所述的亮度补偿方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the brightness compensation method as described in any one of claims 1-9.
- 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-9中任一所述的亮度补偿方法。A computer-readable storage medium stores a computer program, wherein when the program is executed by a processor, the brightness compensation method as described in any one of claims 1 to 9 is implemented.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202280008351.XA CN118633119A (en) | 2022-11-29 | 2022-11-29 | Brightness compensation method, device, equipment and storage medium |
PCT/CN2022/135036 WO2024113162A1 (en) | 2022-11-29 | 2022-11-29 | Luminance compensation method and apparatus, device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/135036 WO2024113162A1 (en) | 2022-11-29 | 2022-11-29 | Luminance compensation method and apparatus, device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024113162A1 true WO2024113162A1 (en) | 2024-06-06 |
Family
ID=91322802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/135036 WO2024113162A1 (en) | 2022-11-29 | 2022-11-29 | Luminance compensation method and apparatus, device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118633119A (en) |
WO (1) | WO2024113162A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106062859A (en) * | 2014-02-28 | 2016-10-26 | 德州仪器公司 | Time compensation-based LED system |
US20200335028A1 (en) * | 2019-12-31 | 2020-10-22 | Xiamen Tianma Micro-Electronics Co., Ltd. | Grayscale compensation method and apparatus, display device |
US20210134246A1 (en) * | 2019-01-04 | 2021-05-06 | Chengdu Boe Optoelectronics Technology Co., Ltd. | Method for compensating brightness unevenness of a display device and related display device |
CN113450703A (en) * | 2020-09-24 | 2021-09-28 | 重庆康佳光电技术研究院有限公司 | Display screen compensation method and device, computer readable storage medium and electronic equipment |
CN114067731A (en) * | 2021-11-27 | 2022-02-18 | 卡莱特云科技股份有限公司 | Low gray scale correction method and device for LED display screen and brightness correction system |
CN115101001A (en) * | 2022-06-22 | 2022-09-23 | 杭州海康威视数字技术股份有限公司 | LED display screen low-gray correction system, method, device and storage medium |
-
2022
- 2022-11-29 WO PCT/CN2022/135036 patent/WO2024113162A1/en active Application Filing
- 2022-11-29 CN CN202280008351.XA patent/CN118633119A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106062859A (en) * | 2014-02-28 | 2016-10-26 | 德州仪器公司 | Time compensation-based LED system |
US20210134246A1 (en) * | 2019-01-04 | 2021-05-06 | Chengdu Boe Optoelectronics Technology Co., Ltd. | Method for compensating brightness unevenness of a display device and related display device |
US20200335028A1 (en) * | 2019-12-31 | 2020-10-22 | Xiamen Tianma Micro-Electronics Co., Ltd. | Grayscale compensation method and apparatus, display device |
CN113450703A (en) * | 2020-09-24 | 2021-09-28 | 重庆康佳光电技术研究院有限公司 | Display screen compensation method and device, computer readable storage medium and electronic equipment |
CN114067731A (en) * | 2021-11-27 | 2022-02-18 | 卡莱特云科技股份有限公司 | Low gray scale correction method and device for LED display screen and brightness correction system |
CN115101001A (en) * | 2022-06-22 | 2022-09-23 | 杭州海康威视数字技术股份有限公司 | LED display screen low-gray correction system, method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN118633119A (en) | 2024-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11375128B2 (en) | Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium | |
US10021313B1 (en) | Image adjustment techniques for multiple-frame images | |
KR102149187B1 (en) | Electronic device and control method of the same | |
US8339479B2 (en) | Image capturing device and image synthesis method thereof | |
US9813635B2 (en) | Method and apparatus for auto exposure value detection for high dynamic range imaging | |
US20130286236A1 (en) | System and method of adjusting camera image data | |
CN104883504B (en) | Open the method and device of high dynamic range HDR functions on intelligent terminal | |
WO2021148057A1 (en) | Method and apparatus for generating low bit width hdr image, storage medium, and terminal | |
US20140313366A1 (en) | Method of processing image and electronic device and system supporting the same | |
US9635333B2 (en) | White balancing device and method of driving the same | |
WO2018161568A1 (en) | Photographing method and device based on two cameras | |
CN105025283A (en) | Novel color saturation adjusting method and system and mobile terminal | |
CN110807735A (en) | Image processing method, image processing device, terminal equipment and computer readable storage medium | |
US9473716B2 (en) | Image processing method and image processing device | |
CN117692788B (en) | Image processing method and electronic equipment | |
WO2024113162A1 (en) | Luminance compensation method and apparatus, device, and storage medium | |
WO2019080447A1 (en) | Display apparatus driving method, and display apparatus | |
US8284316B2 (en) | Real-time image processing circuit capable of enhancing brightness contrast and color saturation | |
WO2023131028A1 (en) | Image processing method and related device | |
US10389933B2 (en) | Dynamic panoramic image parameter adjustment system and method thereof | |
CN110808002A (en) | Screen display compensation method and device and electronic equipment | |
WO2022052820A1 (en) | Data processing method, system, and apparatus | |
US20190373167A1 (en) | Spotlight detection for improved image quality | |
TWI727780B (en) | Image noise reduction device and method thereof | |
CN114125408A (en) | Image processing method and device, terminal and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 202280008351.X Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22966760 Country of ref document: EP Kind code of ref document: A1 |