Blue light filtering method, device, electronic device and computer readable medium
By obtaining the preset blue light filter value and color equalization formula, the blue light filtering layer parameters are determined, and the image is filtered, which solves the color deviation problem caused by blue light filtering in the prior art and improves the user's viewing experience.
Patent Information
- Application Number
- CN202111208454.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-18
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2041-10-18
AI Technical Summary
The existing blue light filtering technology will cause color deviations in the image when filtering blue light, affecting the user's viewing experience.
By obtaining the preset blue light filter value, the blue light filter layer parameters are determined based on the preset color equalization formula, and the displayed image is filtered based on these parameters to maintain the color balance of the image.
It effectively reduces the color shift problems caused by blue light filtering and improves the user's viewing experience.
Smart Images

Figure CN113902643B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display, and in particular, to a blue light filtering method, a blue light filtering device, an electronic device and a computer-readable medium. Background Art
[0002] With the continuous development of electronic technology and information technology, more and more electronic devices have entered people's daily work and life. The degree of informatization of society is getting higher and higher. Electronic devices that support display functions have become an indispensable part of people's daily work and life. At the same time, since the display screens of electronic devices will produce blue light, people watching electronic devices for a long time will cause damage to the human eye. Therefore, various hardware and software technical solutions for reducing blue light have emerged. However, after these technical solutions filter blue light, the image display has a large color deviation problem, resulting in a poor viewing experience for users. Summary of the invention
[0003] In view of this, the purpose of the embodiments of the present application is to provide a blue light filtering method, device, electronic device and computer-readable medium, so as to maintain the color balance of the image to be displayed when filtering the blue light of the image to be displayed, reduce the color cast problem caused by filtering the blue light, and thus improve the user's viewing experience.
[0004] On the one hand, the present application provides a blue light filtering method, which includes: obtaining a preset blue light filtering value; determining a blue light filtering layer parameter based on the blue light filtering value and a preset color balance formula; and performing blue light filtering on an image to be displayed based on the blue light filtering layer parameter.
[0005] In an embodiment of the present application, the blue light filter layer parameters are determined based on the blue light filtering value and a preset color balance formula, and blue light filtering is performed on the image to be displayed based on the blue light filter layer parameters. When the blue light filtering is performed on the image to be displayed, the color balance of the image to be displayed can be maintained, and the color cast problem caused by filtering the blue light can be reduced, thereby improving the user's viewing experience.
[0006] In one embodiment, the preset color balance formula is:
[0007]
[0008] Wherein, FilterMask(a, R, G, B) represents the parameters of the blue light filter layer, a represents the transparency of the blue light filter layer, blueFilter represents the blue light filter value, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, and R represents the blue brightness level of the blue light filter layer. k Indicates the preset red filter adjustment parameter, S kIndicates the preset non-blue filter parameters, G k Indicates the preset blue filter adjustment parameters. Indicates the floor symbol.
[0009] In an embodiment of the present application, the transparency of the blue light filter layer is calculated by using a preset blue light filter value, and the red brightness level and green brightness level of the blue light filter layer are adjusted using the transparency of the blue light filter layer, so that the blue light filter layer can reduce the color deviation problem caused by blue light filtering to a certain extent.
[0010] In one embodiment, the blue light filtering of the image to be displayed based on the blue light filtering layer parameters includes: generating a blue light filtering layer according to the blue light filtering layer parameters; and covering the blue light filtering layer on the image to be displayed to achieve blue light filtering of the image to be displayed.
[0011] In an embodiment of the present application, a blue light filter layer is generated according to the blue light filter layer parameters, and the blue light filter layer is covered on the image to be displayed. The image to be displayed passes through the blue light filter layer, which can reduce the intensity of the blue light component in the image to be displayed and reduce the color deviation problem caused by blue light filtering.
[0012] In one embodiment, the blue light filtering of the image to be displayed based on the blue light filtering layer parameters includes: adjusting the pixel value of each pixel of the image to be displayed based on the blue light filtering layer parameters to achieve blue light filtering of the image to be displayed.
[0013] In the embodiment of the present application, the pixel value of each pixel of the image to be displayed is adjusted using the blue light filter layer parameters, so that the blue light component in the adjusted image to be displayed is reduced, and the color deviation problem caused by the blue light filtering is reduced.
[0014] In a second aspect, the present application provides a blue light filtering device, which includes: an acquisition module for acquiring a preset blue light filtering value; a determination module for determining a blue light filtering layer parameter based on the blue light filtering value and a preset color balance formula; and a filtering module for performing blue light filtering on an image to be displayed based on the blue light filtering layer parameter.
[0015] In one embodiment, the preset color balance formula is:
[0016]
[0017] Wherein, FilterMask(a, R, G, B) represents the parameters of the blue light filter layer, a represents the transparency of the blue light filter layer, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, R represents the red brightness level of the blue light filter layer, kIndicates the preset red filter adjustment parameter, S k Indicates the preset non-blue filter parameters, G k Indicates the preset blue filter adjustment parameters. Indicates the floor symbol.
[0018] In one embodiment, the filtering module is further used to generate a blue light filter layer according to the blue light filter layer parameters; and to cover the blue light filter layer on the image to be displayed to achieve blue light filtering of the image to be displayed.
[0019] In one embodiment, the filtering module is further used to adjust the pixel value of each pixel of the image to be displayed based on the blue light filtering layer parameter to achieve blue light filtering of the image to be displayed.
[0020] In a third aspect, an electronic device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the above-mentioned blue light filtering method or realizes the function of the above-mentioned blue light filtering device.
[0021] In a fourth aspect, a non-volatile readable storage medium storing computer-readable instructions, when the computer-readable instructions are executed by a processor, enables the processor to perform the above-mentioned blue light filtering method or realize the functions of the above-mentioned blue light filtering device.
[0022] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A schematic diagram of the internal structure of an electronic device provided in one embodiment of the present application;
[0025] Figure 2 A flow chart of a blue light filtering method provided in one embodiment of the present application;
[0026] Figure 3 A schematic diagram of the structure of a blue light filtering device provided in one embodiment of the present application;
[0027] Icon: blue light filtering device 10 , acquisition module 100 , determination module 200 , filtering module 300 . DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] The following is a detailed description with reference to the accompanying drawings.
[0030] First, see Figure 1 To describe an electronic device used to implement the blue light filtering method and / or blue light filtering device 10 of the embodiment of the present application.
[0031] The blue light filtering method and / or the blue light filtering device 10 may be implemented in the form of a computer readable instruction. The computer readable instruction may be in the form of a computer readable instruction. Figure 1 The electronic device shown is running.
[0032] An electronic device provided in an embodiment of the present application includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the program, a blue light filtering method is implemented.
[0033] Figure 1 FIG. 1 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. The electronic device may be a server. Figure 1 The electronic device includes a processor, a non-volatile storage medium, an internal memory, an input device, a display screen, and a network interface connected via a system bus. The non-volatile storage medium of the electronic device can store an operating system and computer-readable instructions. When the computer-readable instructions are executed, the processor can execute a blue light filtering method of each embodiment of the present application. The specific implementation process of the method can be referred to Figure 2 The specific content is not repeated here. The processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire electronic device. The internal memory may store computer-readable instructions, which, when executed by the processor, may enable the processor to execute a blue light filtering method. The input device of the electronic device is used to input various parameters, the display screen of the electronic device is used for display, and the network interface of the electronic device is used for network communication. Those skilled in the art can understand that Figure 1 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0034] See also Figure 2 An embodiment of the present application provides a blue light filtering method, which may include the following steps.
[0035] Step S11, obtaining a preset blue light filtering value.
[0036] In this embodiment, the preset blue light filter value can be manually set by the user in advance, or can be predetermined by reading the parameters of other blue light filter software. It should be noted that the blue light filter value setting range is 0 to 100, and the specific value can be adjusted according to the usage scenario, which will not be further described here.
[0037] Step S12, determining blue light filter layer parameters based on the blue light filter value and a preset color balance formula.
[0038] The preset color balance formula is as follows:
[0039]
[0040] Among them, FilterMask(a, R, G, B) represents the blue light filter layer parameters, a represents the transparency of the blue light filter layer, blueFilter represents the blue light filter value, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, R represents the blue brightness level of the blue light filter layer k Indicates the preset red filter adjustment parameter, S k Indicates the preset non-blue filter parameters, G k Indicates the preset blue filter adjustment parameters. Indicates the floor symbol.
[0041] It can be understood that the color mode of the displayed image is mostly selected to display in RGB mode, where R represents red, G represents green, and B represents blue. That is, the composition of various colors of the displayed image is a mixture of RGB in different proportions. After setting the blue light filter value, the displayed color of the displayed image will be deviated. The preset color balance formula can reduce the display color deviation problem of the displayed image.
[0042] Furthermore, the transparency of the blue light filter layer is calculated by using the preset blue light filter value, and the red brightness level and green brightness level of the blue light filter layer are adjusted using the transparency of the blue light filter layer, so that the blue light filter layer can reduce the color deviation problem caused by blue light filtering to a certain extent.
[0043] It should be noted that R k , S k , G kThe three parameters can be adjusted according to the application scenario to minimize the display color deviation of the displayed image.
[0044] Step S13: performing blue light filtering on the image to be displayed based on the blue light filter layer parameters.
[0045] In one embodiment, a blue light filter layer may be generated according to the blue light filter layer parameters; and the blue light filter layer may be covered on the image to be displayed to implement blue light filtering of the image to be displayed.
[0046] Specifically, the blue light filter layer parameters can be used to generate a blue light filter layer, which can be a top floating window with a transparent background color, and the top floating window covers the image to be displayed. It can be understood that the top floating window is similar to a transparent film with a background color. By covering the top floating window on the image to be displayed, the image to be displayed is output through the top floating window, which can reduce the intensity of the blue light component in the image to be displayed and reduce the color deviation problem caused by blue light filtering.
[0047] In another embodiment, the pixel value of each pixel of the image to be displayed may be adjusted based on the blue light filter layer parameter.
[0048] Specifically, the adjustment process can be implemented in a display driver, which can apply the blue light filtering method in the present application and use the blue light filtering layer parameters to adjust the pixel value of each frame of the image to be displayed, so that the blue light component in the adjusted image to be displayed is reduced, and the color deviation problem caused by blue light filtering is reduced.
[0049] Furthermore, the adjustment process can also be implemented in the logic board of the display. When refreshing each frame of the image to be displayed, the logic board uses the blue light filter layer parameters to adjust the image to be displayed, so that the image to be displayed output through the logic board reduces blue light and color deviation at the same time.
[0050] Furthermore, the blue light filtering layer parameters can be used to filter the blue light of the image to be displayed according to the following formula, and the specific formula is as follows:
[0051]
[0052] Among them, D o (R, G, B) represents the color brightness level of the image to be displayed after image processing, D i represents the original image color brightness level of the image to be displayed, FilterMask(R, G, B) represents the color brightness level of the blue light filter layer, a represents the transparency of the blue light filter layer, Indicates the floor symbol.
[0053] It can be understood that the image to be displayed can be pre-stored or collected in real time. As for how to obtain the image to be displayed, it is a common technical means for those skilled in the art and will not be described here.
[0054] The present application does not limit the type of images to be displayed.
[0055] Specifically, in one embodiment, the image to be displayed may be an image that has not been processed by blue light filtering, and in another embodiment, the image to be displayed may be an image that has been processed by blue light filtering.
[0056] See also Figure 3 Based on the same inventive concept, a blue light filtering device 10 is also provided in an embodiment of the present application. The blue light filtering device 10 includes: an acquisition module 100, a determination module 200 and a filtering module 300.
[0057] Specifically, the acquisition module 100 is used to acquire a preset blue light filter value. The determination module 200 is used to determine the blue light filter layer parameter based on the blue light filter value and a preset color balance formula. The filtering module 300 is used to perform blue light filtering on the image to be displayed based on the blue light filter layer parameter.
[0058] In the embodiment of the present application, the determination module 200 is further used to determine the blue light filter layer parameter by the following formula:
[0059]
[0060] Wherein, FilterMask(a, R, G, B) represents the parameters of the blue light filter layer, a represents the transparency of the blue light filter layer, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, R represents the red brightness level of the blue light filter layer, k Indicates the preset red filter adjustment parameter, S k Indicates the preset non-blue filter parameters, G k Indicates the preset blue filter adjustment parameters. Indicates the floor symbol.
[0061] In the embodiment of the present application, the filtering module 300 is further used to generate a blue light filter layer according to the blue light filter layer parameters; and to cover the blue light filter layer on the image to be displayed to achieve blue light filtering of the image to be displayed.
[0062] In the embodiment of the present application, the filtering module 300 is further used to adjust the pixel value of each pixel of the image to be displayed based on the blue light filtering layer parameter to achieve blue light filtering of the image to be displayed.
[0063] It can be understood that the blue light filtering device 10 provided in the present application corresponds to the blue light filtering method provided in the present application. In order to make the specification concise, the same or similar parts can refer to the content of the blue light filtering method part, which will not be repeated here.
[0064] Each module in the above-mentioned blue light filtering device 10 can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the server in the form of hardware, or can be stored in the memory in the server in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc.
[0065] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, on which computer-readable instructions are stored. When the program is executed by a processor, the steps in the above-mentioned blue light filtering method are implemented.
[0066] As used herein, any reference to memory, storage, database, or other medium may include non-volatile. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
[0067] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0068] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0069] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0070] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0071] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A blue light filtering method, characterized in that: include: Get the preset blue light filter value; Determining blue light filter layer parameters based on the blue light filter value and a preset color balance formula; Based on the blue light filter layer parameters, performing blue light filtering on the image to be displayed; Wherein, the preset color balance formula is: Wherein, FilterMask(a, R, G, B) represents the parameters of the blue light filter layer, a represents the transparency of the blue light filter layer, blueFilter represents the blue light filter value, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, and R represents the blue brightness level of the blue light filter layer. k Indicates the preset red filter adjustment parameter, S k Indicates the preset non-blue filter parameters, G k Indicates the preset blue filter adjustment parameters. Indicates the floor symbol.
2. The blue light filtering method according to claim 1, characterized in that: The performing blue light filtering on the image to be displayed based on the blue light filter layer parameter includes: Generate a blue light filter layer according to the blue light filter layer parameters; The blue light filtering layer is covered on the image to be displayed to achieve blue light filtering of the image to be displayed.
3. The blue light filtering method according to claim 1, characterized in that: The performing blue light filtering on the image to be displayed based on the blue light filter layer parameter includes: The pixel value of each pixel of the image to be displayed is adjusted based on the blue light filter layer parameter to achieve blue light filtering of the image to be displayed.
4. A blue light filtering device, characterized in that: include: An acquisition module, used to obtain a preset blue light filtering value; A determination module, used to determine a blue light filter layer parameter based on the blue light filter value and a preset color balance formula; A filtering module, used for filtering blue light of the image to be displayed based on the blue light filtering layer parameters; Wherein, the preset color balance formula is: Wherein, FilterMask(a, R, G, B) represents the parameters of the blue light filter layer, a represents the transparency of the blue light filter layer, R represents the red brightness level of the blue light filter layer, G represents the green brightness level of the blue light filter layer, B represents the blue brightness level of the blue light filter layer, R represents the red brightness level of the blue light filter layer, k Indicates the preset red filter adjustment parameter, S k Indicates the preset non-blue filter parameters, G k Indicates the preset blue filter adjustment parameters. Indicates the floor symbol.
5. The blue light filtering device according to claim 4, characterized in that: The filtering module is used to generate a blue light filtering layer according to the blue light filtering layer parameters; and to cover the blue light filtering layer on the image to be displayed to achieve blue light filtering of the image to be displayed.
6. The blue light filtering device according to claim 4, characterized in that: The filtering module is further used to adjust the pixel value of each pixel of the image to be displayed based on the blue light filtering layer parameter, so as to implement blue light filtering of the image to be displayed.
7. An electronic device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the blue light filtering method as described in any one of claims 1-3 or implements the function of the blue light filtering device as described in any one of claims 4-6.
8. A non-volatile readable storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by a processor, the processor executes the blue light filtering method as described in any one of claims 1 to 3 or implements the function of the blue light filtering device as described in any one of claims 4 to 6.
Citation Information
Patent Citations
Smart device display method and system
CN105242894A