Method and device for mapping current and gray scale of LED display screen and electronic equipment
By obtaining the video input value and mapping and splitting, determining the current value and calculating the video output value, the problems of inaccurate color and electromagnetic interference in the LED display screen are solved, and color accuracy and electromagnetic interference are reduced.
Patent Information
- Application Number
- CN202311841526.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
When the LED display is combined with PWM driver and matrix driver, it is easy to cause inaccurate display color and generate high-frequency electromagnetic interference noise, affecting surrounding electronic devices.
By obtaining the video input value, mapping and splitting, determining the current value, and calculating the video output value based on the video input value and current value, the video output value and current value are finally input into the driver module, using gamma mapping and grayscale correction technology to ensure a linear relationship.
Reduces electromagnetic interference, improves color accuracy, and ensures the accuracy of video output.
Smart Images

Figure CN120236499A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of LED displays, and particularly to a method, device, and electronic device for mapping current and grayscale of a display screen. Background Art
[0002] With the continuous development of technology, LED displays are increasingly widely used. The brightness and display of an LED display are generally achieved by combining PWM driving and matrix driving.
[0003] The driving method combining PWM driving and matrix driving easily causes inaccurate display colors or color differences in the LED display. Secondly, PWM driving also generates electromagnetic interference noise with a relatively high frequency, which can interfere with surrounding electronic devices or audio devices and cause adverse effects. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a method, device, and electronic device for mapping current and grayscale of a display screen, which can reduce electromagnetic interference while improving color accuracy.
[0005] In a first aspect, an embodiment of the present application provides a method for mapping current and grayscale of an LED display screen, the method comprising:
[0006] Obtain a video input value;
[0007] Map the video input value;
[0008] Split the video input value to determine the current value corresponding to the video input value;
[0009] Calculate the video output value based on the video input value and the current value;
[0010] Input the video output value and the current value into a driving module.
[0011] In some embodiments, before obtaining the video input value, the method further comprises:
[0012] Obtain the brightness values corresponding to different current values;
[0013] Correct the current value to obtain the linear relationship between the current value and the brightness value.
[0014] In some embodiments, the mapping of the video input value comprises:
[0015] Perform gamma mapping on the video input value.
[0016] In some embodiments, the splitting of the video input value to determine the current value corresponding to the video input value comprises:
[0017] Split the video input value to determine the interval where the video input value is located;
[0018] Determine the current value corresponding to the video input value based on the current linear mapping table.
[0019] In some embodiments, the calculation formula for calculating the video output value is:
[0020]
[0021] In a second aspect, an embodiment of the present application further provides a mapping device for the current and grayscale of an LED display screen, including:
[0022] A first acquisition module, configured to acquire a video input value;
[0023] A mapping module, configured to map the video input value;
[0024] A splitting module, configured to split the video input value to determine the current value corresponding to the video input value;
[0025] A calculation module, configured to calculate the video output value based on the video input value and the current value;
[0026] An output module, configured to input the video output value and the current value into a driving module.
[0027] In some embodiments, the device further includes:
[0028] A second acquisition module, configured to acquire the brightness values corresponding to different current values;
[0029] A correction module, configured to correct the current value to obtain the linear relationship between the current value and the brightness value.
[0030] In some embodiments, the splitting module is specifically configured to:
[0031] Split the video input value to determine the interval where the video input value is located;
[0032] Determine the current value corresponding to the video input value based on the current linear mapping table.
[0033] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0034] At least one processor; and,
[0035] A memory communicatively connected to the at least one processor; wherein,
[0036] The memory stores instructions executable by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the first aspect above.
[0037] In a fourth aspect, an embodiment of the present application further provides a non-volatile computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor is caused to execute the method described in the first aspect above.
[0038] Compared with the prior art, the beneficial effects of the present application are as follows: Different from the prior art, the method for mapping current and grayscale of an LED display screen provided by the embodiment of the present application obtains a video input value, then maps the video input value, and at the same time splits the video input value to determine the current value corresponding to the video input value. Then, based on the video input value and the current value, the video output value is calculated. Finally, the video output value and the current value are input into a driving module, thereby being able to reduce electromagnetic interference and improve color accuracy at the same time. Description of the Drawings
[0039] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplary illustrations do not limit the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the drawings in the figures do not constitute a proportional limitation.
[0040] Figure 1 is a schematic flowchart of a method for mapping current and grayscale of an LED display screen provided by an embodiment of the present application;
[0041] Figure 2 is a schematic structural diagram of a device for mapping current and grayscale of an LED display screen provided by an embodiment of the present application;
[0042] Figure 3 is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments
[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0044] It should be noted that if there is no conflict, the various features in the embodiments of the present application can be combined with each other, and all are within the protection scope of the present application. In addition, although functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the flowchart. Furthermore, the terms "first", "second", "third", etc. adopted in the present application do not limit the data and the execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0045] As Figure 1 shown, an embodiment of the present application provides a method for mapping the current and grayscale of an LED display screen, and the method includes:
[0046] Step 110, obtain a video input value.
[0047] Step 120, map the video input value.
[0048] In the embodiment of the present application, first, a video input value is obtained, and then the video input value is mapped. Specifically, in order to ensure the accuracy of video data in subsequent processing, it is necessary to perform gamma mapping processing on the video input value. Gamma mapping is a commonly used image processing method for adjusting the brightness distribution of an image so that the brightness range of the image is more uniform. Through gamma mapping, the obvious difference between the dark area and the bright area in the image can be eliminated, and the effect of subsequent processing can be improved.
[0049] Step 130, split the video input value to determine the current value corresponding to the video input value.
[0050] Specifically, the video input value is split to determine the interval where the video input value is located, and the current value corresponding to the video input value is determined based on the current linear mapping table. Exemplarily, if the video input value is 16bit, the 16bit video input value is split into 128 parts, and then according to the interval where the video input value is located, the corresponding current value is obtained from the preset current linear mapping table, which can greatly reduce the calculation amount and improve the performance of the system.
[0051] Step 140, calculate the video output value based on the video input value and the current value.
[0052] After determining the current value, the video output value to be output can be calculated according to a specific formula or algorithm. This calculation process involves multiple factors, including the maximum brightness and the current interval brightness. In the embodiment of the present application, the video output value is calculated through formula (1).
[0053]
[0054] Step 150, input the video output value and the current value into the driving module.
[0055] The driving module is a device responsible for controlling video output. The driving module generates corresponding video signal outputs based on the video output value and the current value. In this process, the driving module performs operations and controls according to preset algorithms and logics to achieve the correct video output effect.
[0056] In some embodiments, the method further includes: obtaining brightness values corresponding to different current values; correcting the current value to obtain the linear relationship between the current value and the brightness value.
[0057] In the embodiments of the present application, software measurement is used to obtain brightness values corresponding to different current values: First, appropriate software is used to measure the brightness value at a given current value. The software should be able to receive the current value as input and output the corresponding brightness value. Then, gray-scale correction technology is used to correct the current value to make it linearly related to the brightness value. When measuring the brightness value, due to the existence of various factors, there may be a non-linear relationship between the current value and the brightness value. To eliminate this influence, gray-scale correction technology is needed to correct the current value to make it linearly related to the brightness value. Gray-scale correction technology calculates the best current correction parameters by linearly fitting the brightness value.
[0058] The method for mapping current and gray scale of the LED display screen improved in the embodiments of the present application obtains a video input value, then maps the video input value, and at the same time splits the video input value to determine the current value corresponding to the video input value. Then, based on the video input value and the current value, the video output value is calculated. Finally, the video output value and the current value are input into the driving module, thereby being able to reduce electromagnetic interference while improving color accuracy.
[0059] Correspondingly, the embodiments of the present application further provide a device for mapping current and gray scale of an LED display screen, as Figure 2 shown. The device 200 includes:
[0060] A first acquisition module 210, configured to acquire a video input value;
[0061] A mapping module 220, configured to map the video input value;
[0062] A splitting module 230, configured to split the video input value to determine the current value corresponding to the video input value;
[0063] A calculation module 240, configured to calculate the video output value based on the video input value and the current value;
[0064] An output module 250, configured to input the video output value and the current value into a driving module.
[0065] The mapping device for current and grayscale of the LED display screen provided by the embodiment of the present application obtains a video input value through a first acquisition module, then maps the video input value through a mapping module, and at the same time, through a splitting module, splits the video input value to determine the current value corresponding to the video input value, and calculates the video output value based on the video input value and the current value through a calculation module. Finally, the output module inputs the video output value and the current value into the driving module, thereby being able to reduce electromagnetic interference while improving color accuracy.
[0066] Optionally, in other embodiments of the device, such as Figure 2 shown, the device 200 further includes:
[0067] A second acquisition module 260, configured to acquire brightness values corresponding to different current values;
[0068] A correction module 270, configured to correct the current value to obtain a linear relationship between the current value and the brightness value.
[0069] Optionally, in other embodiments of the device, the mapping module 220 is specifically configured to:
[0070] Perform gamma mapping on the video input value.
[0071] Optionally, in other embodiments of the device, the splitting module 230 is specifically configured to:
[0072] Split the video input value to determine the interval where the video input value is located;
[0073] Determine the current value corresponding to the video input value based on a current linear mapping table.
[0074] Optionally, in other embodiments of the device, the calculation module 240 is specifically configured to:
[0075]
[0076] It should be noted that the above mapping device for current and grayscale of the LED display screen can execute the mapping method for current and grayscale of the LED display screen provided by the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the method. For technical details not described in detail in the embodiment of the mapping device for current and grayscale of the LED display screen, reference can be made to the mapping method for current and grayscale of the LED display screen provided by the embodiment of the present application.
[0077] Figure 3 is a schematic hardware structure diagram of an electronic device provided by the embodiment of the present application, such asFigure 3 As shown in Figure 3 , the electronic device 300 includes:
[0078] One or more processors 301 and a memory 302. For example, one processor is taken here. Figure 3 For example, one processor is taken here.
[0079] The processor 301 and the memory 302 can be connected through a bus or other means. For example, connection through a bus is taken here. Figure 3 For example, connection through a bus is taken here.
[0080] The memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions / modules corresponding to the method for mapping current and grayscale of the LED display screen in the embodiments of the present application. The processor 301 executes various functional applications and data processing of the electronic device by running the non-volatile software programs, instructions, and modules stored in the memory 302, that is, implements the method for mapping current and grayscale of the LED display screen in the above method embodiments.
[0081] The memory 302 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the device for mapping current and grayscale of the LED display screen, etc. In addition, the memory 302 can include a high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0082] In some embodiments, the memory 302 may optionally include a memory remotely set relative to the processor 301, and these memories can be connected to the device for mapping current and grayscale of the LED display screen through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0083] The embodiments of the present application also provide a non-volatile computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, one or more processors can execute the method for mapping current and grayscale of the LED display screen in any of the above embodiments.
[0084] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0085] Through the description of the above embodiments, those of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order, and there are many other variations in different aspects of the present application as described above. For the sake of brevity, they are not provided in detail; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A mapping method for current and gray scale of an LED display screen, characterized in that, The method includes: Obtain a video input value; Map the video input value; Split the video input value to determine the current value corresponding to the video input value; Calculate the video output value based on the video input value and the current value; Input the video output value and the current value into a driving module.
2. The method according to claim 1, wherein Before obtaining the video input value, the method further includes: Obtain the brightness values corresponding to different current values; Correct the current value to obtain the linear relationship between the current value and the brightness value.
3. The method according to claim 2, characterized in that, The mapping of the video input value includes: Perform gamma mapping on the video input value.
4. The method according to claim 3, characterized in that, The splitting of the video input value to determine the current value corresponding to the video input value includes: Split the video input value to determine the interval where the video input value is located; Determine the current value corresponding to the video input value based on a current linear mapping table.
5. The method according to claim 4, characterized in that The formula for calculating the video output value based on the video input value and the current value is:
6. An apparatus for mapping current and grayscale of an LED display screen, characterized in that, including: A first acquisition module for obtaining a video input value; A mapping module for mapping the video input value; A splitting module for splitting the video input value to determine the current value corresponding to the video input value; A calculation module for calculating the video output value based on the video input value and the current value; An output module for inputting the video output value and the current value into a driving module.
7. The device according to claim 6, characterized in that, The device further includes: A second acquisition module for obtaining the brightness values corresponding to different current values; A correction module for correcting the current value to obtain the linear relationship between the current value and the brightness value.
8. The device according to claim 7, characterized in that The splitting module is specifically configured to: Split the video input value to determine the interval where the video input value is located; Determine the current value corresponding to the video input value based on a current linear mapping table.
9. An electronic device, characterized in that, including: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method according to any one of claims 1-5.
10. A non-volatile computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the processor executes the method according to any one of claims 1-5.