This application claims priority to Taiwanese Application Serial Number 112121230, filed Jun. 7, 2023, which is herein incorporated by reference.
The present disclosure relates to image processing technology. More particularly, the present disclosure relates to an image processing method, a controller, and a non-transitory computer readable storage medium capable of satisfying requirements of low blue light.
With development of technology, many electronic devices are equipped with display devices. However, due to strong energy of blue light with shorter wavelengths, it is likely to cause adverse effects on eyes. Accordingly, needs for display devices with low blue light functions gradually increase.
Some aspects of the present disclosure are to provide an image processing method. The image processing method includes following operations: acquiring, by a spectrum analyzer, spectrum information of a display device; calculating, by a processor, a first low blue light parameter according to the spectrum information; transmitting, by the processor, the first low blue light parameter to the display device; calculating, by the display device, first blue light hazard intensity of a first region of input image data; and when the first blue light hazard intensity is greater than a first threshold value, applying, by the display device, the first low blue light parameter to the first region so as to output a final image.
Some aspects of the present disclosure are to provide a controller. The controller is configured to be disposed in a display device. The controller is configured to: receive a first low blue light parameter stored in a memory in the display device; calculate first blue light hazard intensity of a first region of input image data; and when the first blue light hazard intensity is greater than a first threshold value, apply the first low blue light parameter to the first region for a screen in the display device to display a final image.
Some aspects of the present disclosure are to provide a non-transitory computer readable storage medium configured to store one or more computer programs including a plurality of instructions. When a processor executes the instructions, the processor performs following operations: receiving spectrum information of a display device, in which the spectrum information is from a spectrum analyzer; calculating a first low blue light parameter according to the spectrum information; and transmitting the first low blue light parameter to the display device for the display device to determine whether to apply the first low blue light parameter to a first region according first blue light hazard intensity of the first region.
The disclosure can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
In the present disclosure, “connected” or “coupled” may refer to “electrically connected” or “electrically coupled.” “Connected” or “coupled” may also refer to operations or actions between two or more elements.
Reference is made to
As illustrated in
The display device 110 can include a screen 111, a controller 112, and a memory 113. The screen 111 and the memory 113 are coupled to the controller 112. In some embodiments, the controller 112 can be implemented by a scaler. For simplicity and clarity, other elements in the display device 110 are omitted in
The spectrum analyzer 120 can shoot toward the screen 111 to acquire spectrum information of an image on the screen 111.
The processor device 130 can be an electronic device having data processing functions or data calculating functions. In the example of
References are made to
In some embodiments, the image processing method 200 can be applied to the display system 100 in
As illustrated in
In operation S210, the spectrum analyzer 120 acquires spectrum information of the display device 110. For example, the screen 111 in the display device 110 can display a white light image, a red light image, a green light image, and a blue light image sequentially. The spectrum analyzer 120 can shoot the white light image, the red light image, the green light image, and the blue light image respectively to acquire the spectrum information of these images. The spectrum information acquired by the spectrum analyzer 120 can include a spectrum of the white light, a spectrum of the red light, a spectrum of the green light, a spectrum of the blue light, chromaticity coordinates and luminance of the white light (xw yw Lvw), chromaticity coordinates and luminance of the red light (xr yr Lvr), chromaticity coordinates and luminance of the green light (xg yg Lvg), and chromaticity coordinates and luminance of the blue light (xb yb Lvb).
In operation S220, the processor 1321 calculates at least one low blue light parameter according to spectrum information. In some embodiments, the aforementioned at least one low blue light parameter can include one set or multiple sets of low blue light parameters. In some embodiments, the aforementioned at least one low blue light parameter can include one set of first low blue light parameters and one set of second low blue light parameters. In some embodiments, the aforementioned at least one low blue light parameter can include multiple sets of first low blue light parameters and multiple sets of second low blue light parameters. In the example described in following paragraphs, the first low blue light parameter is used for regions with strong blue light hazard intensity, and the second low blue light parameter is used for regions with medium blue light hazard intensity. The details of how the processor 1321 calculates these low blue light parameters according to the spectrum information are described in following paragraphs related to
In operation S230, the processor 1321 transmits the aforementioned at least one low blue light parameter to the display device 110. In some embodiments, the aforementioned at least one low blue light parameter can be stored in the memory 113 in the display device 110.
References are made to
In operation S240, the display device 110 receives the input image data IN and the controller 112 in the display device 110 can partition the input image data IN. As illustrated in
In operation S250, the controller 112 calculates a red light average intensity of each of the regions A, a green light average intensity of each of the regions A, and a blue light average intensity of each of the regions A.
In operation S260, the controller 112 calculates the blue light hazard intensity of each of the regions A according to the red light average intensity of each of the regions A, the green light average intensity of each of the regions A, and the blue light average intensity of each of the regions A. For example, the blue light hazard intensity of each of the regions A can be derived according to formula (1) below:
in which BI is the blue light hazard intensity of one region A, Av (R) is the red light average intensity of the region A, Av (G) is the green light average intensity of the region A, Av (B) is the green light average intensity of the region A, Σpeak−20peak+20 EB (λ) is a sum of energy between a first wavelength (a wavelength of the blue light peak plus 20 nanometers) and a second wavelength (a wavelength of the blue light peak minus 20 nanometers), Σ380780 ER (λ) is a sum of energy of the red light, Σ380780 EG (λ) is a sum of energy of the green light, and Σ380780 EB (λ) is a sum of energy of the blue light.
In operation S270, the controller 112 applies the low blue light parameters stored in the memory 113 to the regions A correspondingly according to the blue light hazard intensities of the regions A for the screen 111 to display (output) a final image.
References are made to
As illustrated in
Accordingly, the controller 112 can apply the first low blue light parameter in the memory 113 to the regions A1, apply the second low blue light parameter in the memory 113 to the regions A2, and maintain (without applying any low blue light parameter) the regions A3 to generate the final image. The controller 112 can send the final image to the screen 111. The screen 111 can display (output) the final image.
References are made to
As illustrated in
In sub-operation S502, the processor 1321 acquires a conversion matrix. The matrix can be configured to convert a color coordinates (e.g., CIE1931 color coordinates) into pure color brightness.
References are made to
In sub-operation S504, the processor 1321 receives the spectrum information acquired in operation S210 in
In sub-operation S506, the processor 1321 utilizes the conversion matrix to convert the color coordinates of the original point P0 into an original point red light brightness, an original point green light brightness, and an original point blue light brightness. For example, the processor 1321 can perform the above conversion according to formula (2) below:
in which [Xw Yw Zw] is the color coordinates of the original point P0, [YR YG YB] is the original point red light brightness, the original point green light brightness, and the original point blue light brightness.
In sub-operation S508, the processor 1321 calculates a blue light ratio value or a blue light hazard value. In some embodiments, the processor 1321 can calculate the blue light ratio value according to formula (3) below:
in which BR is the blue light ratio value, Σ380780 E(λ) is a sum of energy in a spectrum, Σpeak−20peak+20 EB (λ) is a sum of energy between a first wavelength (a wavelength of the blue light peak plus 20 nanometers) and a second wavelength (a wavelength of the blue light peak minus 20 nanometers).
In sub-operation S510, the processor 1321 determines whether the blue light ratio value passes the certification target. In some embodiments, the certification target can be designed as a certification value (e.g., 20%). In other words, in sub-operation S510, the processor 1321 determines whether the blue light ratio value is equal to or less than the certification value. When the blue light ratio value is equal to or less than the certification value, it represents that it satisfies requirements of low blue light. The value of the above certification value is merely for illustration, and the present disclosure is not limited thereto.
At first, for the region A1 with strong blue light hazard intensity (e.g., the blue light ratio value is greater than 23%), the processor 1321 can select a white point with 23% blue light ratio value as the original point P0. For this original point P0, since the blue light ratio value of the original point P0 (e.g., 23%) is greater than the certification value (e.g., 20%), the processor 1321 determines that the original point P0 does not pass the certification target. Then, it enters into sub-operation S514.
In sub-operation S514, the processor 1321 determines whether an iteration number reaches an iteration upper limit. If yes, the flow ends. If no, it enters into sub-operation S516.
In sub-operation S516, the processor 1321 determines a next target point P1. A coordinate distance between the target point P1 and the original point P0 in the color space 600 can be preset and can be designed according to actual needs.
In sub-operation S518, the processor 1321 calculates a target point red light brightness of the target point P1, a target point green light brightness of the target point P1, and a target point blue light brightness of the target point P1 according to content similar to sub-operation S504 and sub-operation S506. To be more specific, the color coordinates of the original point P0 in formula (2) is changed to be the color coordinates of the target point P1.
In sub-operation S520, the processor 1321 calculates a first red light gain value, a first green light gain value, and a first blue light gain value according to the original point red light brightness, the original point green light brightness, and the original point blue light brightness calculated in sub-operation S506 and the target point red light brightness of the target point P1, the target point green light brightness of the target point P1, and the target point blue light brightness of the target point P1 calculated in sub-operation S518. For example, the first red light gain value is a ratio of the target point red light brightness of the target point P1 and the original point red light brightness. The first green light gain value is a ratio of the target point green light brightness of the target point P1 and the original point green light brightness. The first blue light gain value is a ratio of the target point blue light brightness of the target point P1 and the original point blue light brightness.
Reference is made to
References are made to
Then, it enters into sub-operation S508 again. The processor 1321 calculates the blue light ratio value of the adjustment result according the above formula (3).
Then, it enters into sub-operation S510 again. When the newly calculated blue light ratio value passes the certification target (equal to or less than the certification value), it enters into sub-operation S512. When the newly calculated blue light ratio value does not pass the certification target (greater than the certification value), it enters into sub-operation S514.
In sub-operation S512, the processor 1321 records the first red light gain value, the first green light gain value, and the first blue light gain value, and the processor 1321 sets the first red light gain value, the first green light gain value, and the first blue light gain value as one set of first low blue light parameters.
In sub-operation S514, when the processor 1321 determines that the iteration number does not reach the iteration upper limit, it enters into sub-operation S516.
In sub-operation S516, the processor 1321 determines a next target point P2.
Then, similar to aforementioned descriptions, in sub-operation S518, the processor 1321 calculates a target point red light brightness of the target point P2, a target point green light brightness of the target point P2, and a target point blue light brightness of the target point P2 according content similar to sub-operation S504 and sub-operation S506. To be more specific, the color coordinates of the original point P0 in formula (2) is changed to be the color coordinates of the target point P2.
In sub-operation S520, the processor 1321 calculates a second red light gain value, a second green light gain value, and a second blue light gain value according to the original point red light brightness, the original point green light brightness, and the original point blue light brightness calculated in sub-operation S506 and the target point red light brightness of the target point P2, the target point green light brightness of the target point P2, and the target point blue light brightness of the target point P2 calculated in sub-operation S518. Similarly, the second red light gain value is a ratio of the target point red light brightness of the target point P2 and the original point red light brightness. The second green light gain value is a ratio of the target point green light brightness of the target point P2 and the original point green light brightness. The second blue light gain value is a ratio of the target point blue light brightness of the target point P2 and the original point blue light brightness.
In sub-operation S522, the processor 1321 multiplies the second red light gain value, the second green light gain value, and the second blue light gain value to the red light spectrum 702, the green light spectrum 704, and the blue light spectrum 706 in
Then, it enters into sub-operation S508 again. The processor 1321 calculates the blue light ratio value of the adjustment result according the above formula (3).
Then, it enters into sub-operation S510 again. When the newly calculated blue light ratio value passes the certification target (equal to or less than the certification value), it enters into sub-operation S512. When the newly calculated blue light ratio value does not pass the certification target (greater than the certification value), it enters into sub-operation S514.
In sub-operation S512, the processor 1321 records the second red light gain value, the second green light gain value, and the second blue light gain value, and the processor 1321 sets the second red light gain value, the second green light gain value, and the second blue light gain value as another set of first low blue light parameters.
Reference is made to
In some embodiments, the controller 112 can select the set of the first low blue light parameters with smallest color difference from all sets of the first low blue light parameters, and apply the selected set of the first low blue light parameters (the selected set of gain values) to the regions A1 with strong blue light hazard intensities in
The above descriptions take the regions A1 with strong blue light hazard intensities as an example. For the regions A2 with medium blue light hazard intensities (e.g., the blue light ratio values are greater than 21% and less than or equal to 23%), the processor 1321 can select a white point with 21% blue light ratio value as the original point (e.g., a color temperature of this original point is different from a the color temperature of the aforementioned original point P0), and sub-operation S512 generates one set or multiple sets of second low blue light parameters. Similarly, the all second low blue light parameters are transmitted to the display device 110 and are stored into the memory 113 for the controller 112 to apply these second low blue light parameters to the regions A2 with medium blue light hazard intensities in
In some related approaches, in order to satisfy the requirements of low blue light, only the ratio of the red light, the green light, and the blue light is adjusted (e.g., to reduce the ratio of the blue light). These related approaches is without any spectrum analyzer and do not consider spectrum information. This will cause the final image to have a color cast problem (e.g., yellowish or reddish). In some other related approaches, in order to satisfy the requirements of low blue light, one same set of low blue light parameters are applied to the entire output image. This will reduce image quality of regions with weak blue light hazard intensities.
Compared to the aforementioned related approaches, the present disclosure utilizes the spectrum analyzer to acquire the spectrum information and calculates suitable low blue light parameters dynamically, so the present disclosure can effectively reduce the color cast problem while satisfying requirements of low blue light so as to main image quality. In some further embodiments, the present disclosure can further divide the input image data into multiple regions and apply different low blue light parameters to the regions with different blue light hazard intensities. Accordingly, it can maintain the image quality of regions with weak blue light hazard intensities.
References are made to
Reference is made to
in which LB is the blue light hazard value, E (λ) is energy of a spectrum, B (λ) is a blue light hazard function. The formula (4) is based on IEC62471 standard.
Then, in sub-operation S510, the processor 1321 determines whether the blue light hazard value passes a certification target to perform subsequent similar operations.
In some other embodiments, in sub-operation S508, the processor 1321 can calculate the blue light ratio value and the blue light hazard value according to the above formula (3) and formula (4). Then, in sub-operation S510, the processor 1321 determines whether both of the blue light ratio value and the blue light hazard value pass certification targets to perform subsequent similar operations.
As described above, in the present disclosure, it can effectively reduce the color cast problem while satisfying requirements of low blue light so as to main image quality.
Although the present disclosure has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the embodiments contained herein. It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present disclosure without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the present disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
112121230 | Jun 2023 | TW | national |