CN113240757A - Blue light parameter detection method, device, equipment and medium - Google Patents
Blue light parameter detection method, device, equipment and medium Download PDFInfo
- Publication number
- CN113240757A CN113240757A CN202110518622.3A CN202110518622A CN113240757A CN 113240757 A CN113240757 A CN 113240757A CN 202110518622 A CN202110518622 A CN 202110518622A CN 113240757 A CN113240757 A CN 113240757A
- Authority
- CN
- China
- Prior art keywords
- blue light
- detected
- screen
- calculating
- rgb value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30121—CRT, LCD or plasma display
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
The invention discloses a blue light parameter detection method, which comprises the following steps: acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value; acquiring energy coefficients of the three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value; obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the ratio of blue light hazard values of the screen to be detected according to the blue light hazard weighting functions and the regional average RGB value; and prompting the blue light energy ratio and the blue light injury value ratio for a user. In addition, the invention can also measure the image color temperature of the screen to be measured and show the image color temperature to the user. The invention can realize the instant and portable test and evaluation of the blue light related parameters and has the advantages of low cost, convenience and quickness. In addition, a blue light parameter detection device, equipment and a storage medium are also provided.
Description
Technical Field
The invention relates to the technical field of screen detection, in particular to a method, a device, equipment and a medium for detecting blue light parameters.
Background
At present, electronic devices such as mobile phones and computers are popularized, the time for people to use the electronic devices is longer and longer, and the problem that screen light harms the eyesight health of people is more and more emphasized. In the mainstream liquid crystal display screen and the mobile phone display screen both use the LED backlight source technology, and in the using process, the LED backlight source can emit a part of harmful blue light (concentrated in 415-460nm band) in addition to the less harmful blue light necessary for radiation imaging. The blue light has strong penetrability, can bring fatigue of the crystalline lens of the eye, and is easy to cause irreversible damage to the retina, such as increasing the disease probability of diseases such as fundus macular degeneration and cataract.
The mainstream method for evaluating harmful blue light on a display screen is to measure the spectrum of a display picture by using a professional spectrum measuring device such as a spectrometer or a chromatograph, and then calculate and process the measured spectrum data, so as to obtain the ratio of the blue light energy and the blue light damage value to the whole spectrum. However, the method has the problems that the equipment is expensive and not easy to carry, the data conversion is time-consuming, the professional requirement on operators is high, and therefore, the blue light parameters such as blue light energy, blue light damage ratio and the like cannot be obtained through immediate processing by conventional personnel. Therefore, a method for easily evaluating blue light related parameters of a display screen at any time and any place is needed.
Disclosure of Invention
In view of the above, there is a need to provide a blue light parameter detection method, apparatus, device and medium capable of performing test evaluation in a real-time and portable manner.
A method of blue light parameter detection, the method comprising:
acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value;
acquiring energy coefficients of three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value;
obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the blue light hazard value ratio of harmful blue light wave bands of the screen to be tested according to the blue light hazard weighting functions and the regional average RGB value;
and prompting the blue light energy ratio and the blue light damage value ratio to a user.
In one embodiment, the obtaining the energy coefficients of the three primary colors of light, and calculating the blue light energy ratio of the screen to be tested according to the energy coefficients and the area average RGB value includes:
obtaining a monochromatic light energy coefficient of each monochromatic light in the three primary color lights, wherein the monochromatic light comprises red light, green light and blue light;
acquiring the average component value of the area average RGB value in each monochromatic light, and calculating monochromatic light energy of each monochromatic light according to each monochromatic light energy coefficient and the average component value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy;
and calculating the blue light energy ratio according to the red light energy, the green light energy and the blue light energy.
In one embodiment, the obtaining the blue light hazard weighting function of the three primary colors of light, and calculating the ratio of the blue light hazard values of the harmful blue light waveband of the screen to be tested according to the blue light hazard weighting function and the area average RGB value includes:
obtaining a blue light hazard weighting function corresponding to each monochromatic light in the three primary color lights;
calculating a blue light damage value corresponding to each monochromatic light wavelength according to the blue light damage weighting function corresponding to the monochromatic light and the energy of the monochromatic light;
and calculating the ratio of the harmful blue light to the blue light damage value according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the method further comprises:
converting the area average RGB value into the image color temperature of the screen to be detected according to a preset color temperature conversion method;
and prompting the image color temperature for a user.
In one embodiment, the converting the area average RGB value into the image color temperature of the screen to be tested according to a preset color temperature conversion method includes:
calculating pixel offset according to the average component value of each monochromatic light;
and substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be detected.
In one embodiment, the background of the image to be detected is white in a white balance state, and the aspect ratio of the image to be detected is a preset aspect ratio;
the at least one region to be measured comprises at least one circle region with the same size, and the at least one circle region is arranged in a matrix at equal intervals in the long side direction and the wide side direction of the image to be measured.
In one embodiment, the calculating the area average RGB value of the screen to be tested according to the target RGB value includes:
and calculating a first average value of each region to be detected according to the target RGB value, and calculating a region average RGB value of the screen to be detected according to the first average value.
A blue light parameter detection apparatus, the apparatus comprising:
the area average RGB value calculation module is used for acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value;
the blue light energy ratio calculation module is used for acquiring energy coefficients of three primary colors of light and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value;
the blue light damage ratio calculation module is used for acquiring a blue light damage weighting function of the three primary colors of light and calculating the blue light damage ratio of a harmful blue light waveband of the screen to be detected according to the blue light damage weighting function and the area average RGB value;
and the prompting module is used for prompting the blue light energy ratio and the blue light damage value ratio to a user.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value;
acquiring energy coefficients of three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value;
obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the blue light hazard value ratio of harmful blue light wave bands of the screen to be tested according to the blue light hazard weighting functions and the regional average RGB value;
and prompting the blue light energy ratio and the blue light damage value ratio to a user.
A blue light parameter detection device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value;
acquiring energy coefficients of three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value;
obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the blue light hazard value ratio of harmful blue light wave bands of the screen to be tested according to the blue light hazard weighting functions and the regional average RGB value;
and prompting the blue light energy ratio and the blue light damage value ratio to a user.
The invention provides a blue light parameter detection method, a blue light parameter detection device, blue light parameter detection equipment and a blue light parameter detection medium, wherein a required image to be detected can be obtained in a shooting mode of shooting equipment such as a mobile phone and the like, a professional spectrum measurement device is not needed, the area average RGB value in a region to be detected is calculated, and the blue light related parameters such as the blue light energy ratio and the blue light damage value ratio can be tested and evaluated in a real-time and portable mode according to a built-in software algorithm. The method has the advantages of low cost, convenience and quickness.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a schematic flow chart of a blue light parameter detection method according to an embodiment;
FIG. 2 is a diagram illustrating an embodiment of an image under test;
FIG. 3 is a schematic of a blue-ray hazard weighting function;
FIG. 4 is a schematic structural diagram of a blue light parameter detecting device according to an embodiment;
FIG. 5 is a block diagram of a blue light parameter detection device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, fig. 1 is a schematic flow chart of a blue light parameter detection method in an embodiment, the blue light parameter detection method in this embodiment only needs one shooting device and one display device to be matched, the shooting device and the display device may be common mobile intelligent terminals such as mobile phones and tablets, and the cost of the device can be greatly reduced because professional devices such as spectrometers and chromatographs are not needed.
The method for detecting the blue light parameter in the embodiment provides the following steps:
102, acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value.
The image to be measured can be obtained by shooting when the front face of the shooting device faces the display device. In this embodiment, the image to be measured in the display device is provided with at least one area to be measured, for example, 1, 4, or 9 areas to be measured, and these areas to be measured should be uniformly distributed in the image to be measured as much as possible, so that the obtained area average RGB value can reflect the overall display condition of the screen to be measured as much as possible.
In one embodiment, the image to be tested as shown in fig. 2 is displayed on the display device by dedicated test software. The background of the image to be measured is white in a white balance state, the aspect ratio of the image is a preset fixed value, and illustratively, L: H is 16:9, where L is 13.3cm, and H is 7.5 cm. Of course, L: H ═ 4:3 or other predetermined aspect ratios are also possible, for example. 9 number 1-9 circle areas are distributed on the white bottom, the edges of the circle areas are black, the size of each circle area is the same, and the diameters of the circle areas are all H/10. The 9 circle areas are arranged into a square array to be displayed, the intervals in the long side direction and the wide side direction of the image to be detected are equal, the distance between the circle areas adjacent to the extending side direction is L/3, and the distance between the circle areas adjacent to the extending side direction is H/3. The distance between the No. 1 circle area and the nearest long side is H/6, and the distance between the No. 1 circle area and the nearest wide side is L/6. Certainly, the image to be measured can also be 4 circle regions which are arranged in a square array for display, wherein the distance between the circle regions adjacent to each other in the direction of the extending edge is L/2, the distance between the circle regions adjacent to each other in the direction of the extending wide edge is H/2, the distance between each circle region and the nearest long edge is H/4, and the distance between each circle region and the nearest wide edge is L/4. Similarly, the image to be measured may also be 1 circle region, which is located at the center of the image to be measured. The image to be detected is actually displayed on the screen of the display equipment, the size of the pattern can be automatically adjusted according to the size of the mobile phone screen, but the length-width ratio and the ratio of the relative length and the width of the position of the circle region are generally ensured to be unchanged, so that the advantage of reducing the display difference among different display equipment is achieved. When the front of the shooting equipment is used for shooting the display equipment at a short distance, the shooting effect is based on obtaining a full-size image to be detected and the black edge of the circle area in the pattern can be clearly distinguished.
Furthermore, after the shooting equipment automatically identifies the circle regions in the image to be detected, each circle region is used as a statistical unit, and the target RGB values of each pixel point are accumulated and averaged to obtain a first average value of the circle regions. And accumulating all the first average values and then averaging to obtain the regional average RGB value of the screen to be measured. The areas to be measured are uniformly distributed, so that the overall display condition of the screen to be measured can be reflected. In addition, a threshold value can be set to remove dead pixels in the pixel points, so that the influence of the dead pixels on the calculation of the average RGB value in the area is avoided.
And 104, acquiring energy coefficients of the three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value.
The three primary colors refer to red light, green light and blue light, and according to a CIE 1931 standard chromaticity system, the wavelength of the red light is 700nm, the wavelength of the green light is 546.1nm, and the wavelength of the blue light is 435.8 nm. Respectively obtaining first energy coefficients a of red light1Second energy coefficient a of green light2And a third energy coefficient a of blue light3Wherein the energy coefficients of the three primary colors of light satisfy a1:a2:a372.096:1.379: 1.000. Obtaining average component value of regional average RGB value in red lightAverage component value in greenAnd average component value in blue lightAccording to the mean component value of red lightAnd calculating the first energy coefficient to obtain the red light energyBased on the average component value of green lightAnd the second energy coefficient can be calculated to obtain the green light energyAccording to the average component value of blue lightAnd the third energy coefficient can be calculated to obtain the blue light energyFinally from the red light energyGreen light energyAnd blue light energyCalculating the blue light energy ratio REThe formula of (1) is:
and 106, acquiring a blue light hazard weighting function of the three primary colors of light, and calculating the ratio of the blue light hazard value of the screen to be detected according to the blue light hazard weighting function and the area average RGB value.
Based on the countryFitting the visible light wave band hazard factor data given by the standard GB/T20145-2006 by using fitting software to obtain a blue light hazard weighting function B (lambda) of red lightR) Green light blue hazard weighting function B (lambda)G) And blue light hazard weighting function B (lambda) for blue lightB). Illustratively, referring to FIG. 3, FIG. 3 is a blue-ray-hazard weighting function B (λ) in one embodimentB) The blue light weighting function B (λ)B) Reflecting the intensity variation of blue light at different wavelengths, the damage is larger when the intensity is larger, wherein the harmful blue light is mainly concentrated in the 415-460nm band.
Calculating to obtain the blue light damage value corresponding to the red light according to the blue light damage weighting function and the red light energyCalculating to obtain the blue light damage value corresponding to the green light according to the blue light damage weighting function and the green light energyCalculating to obtain a blue light damage value according to the blue light damage weighting function and the blue light energyFinally, calculating the blue light damage value ratio R of harmful blue light according to the blue light damage value corresponding to the red light, the blue light damage value corresponding to the red light and the blue light damage value corresponding to the blue lightBThe formula of (1) is:
and step 108, prompting the blue light energy ratio and the blue light injury ratio to a user.
In this embodiment, after the blue light energy ratio and the blue light damage value ratio are obtained through calculation, the blue light energy ratio and the blue light damage value ratio may be sequentially prompted according to a magnitude order of the ratios, for example, the blue light energy ratio and the blue light damage value ratio may be sequentially displayed on a screen of a shooting device; for example, the blue light energy ratio and the blue light damage value ratio are sent to the display equipment so that each to-be-detected area is matched with the to-be-detected image to display the corresponding blue light energy ratio and the corresponding blue light damage value ratio; or the blue light energy ratio and the blue light damage value ratio are sequentially reported in a voice prompt mode. Of course, other modes are possible, and are not described in detail herein.
Further, if the displayed blue light energy ratio and the blue light damage ratio exceed the preset alarm value, an alarm prompt message can be sent to the user to prompt that the ratio of harmful blue light on the display device is too high, and the display device is avoided to be used as far as possible.
According to the blue light parameter detection method, the required image to be detected can be obtained in a shooting mode of a shooting device such as a mobile phone, a professional spectrum measurement device is not needed, the area average RGB value in the area to be detected is calculated, and the blue light related parameters such as the blue light energy ratio and the blue light damage value ratio can be tested and evaluated in a real-time and portable mode according to a built-in software algorithm. The method has the advantages of low cost, convenience and quickness.
Furthermore, besides the blue light parameters, the color temperature of the image can be obtained and displayed based on the area average RGB value, the color temperature of the image is a metering unit which represents that the light contains color components, and is a performance index of a high-grade display, and the color of the display can keep high standard work requirements through the color temperature adjusting function of the display. The method mainly comprises the steps of converting the area average RGB value into the image color temperature of the screen to be tested through a preset color temperature conversion method, and displaying the calculated image color temperature on a display screen.
In one embodiment, first, the method is based on the obtainedAndcalculating the pixel offset m by the following formula:
and substituting the pixel offset m into a fitting formula obtained by fitting in advance to calculate the color temperature Y of the image:
Y=A0+A1m1+A2m2+A3m3+······Anmn
wherein A isi(i ═ 0,1,2, or 3) are constants, and n is obtained by fitting. When the formula is obtained by fitting in advance, a plurality of training images marked with image color temperature values need to be shot, the pixel offset m is calculated through the step 102 and the calculation formula of the pixel offset m, and the optimal A is found by minimizing the sum of squares of errors by adopting, for example, a MATLAB curve fitting toolboxi(i ═ 0,1,2, or 3).
In another embodiment, the RGB values are first converted to tristimulus values (X, Y, Z) by the conversion formula:
and converting the tristimulus values XYZ into chromaticity coordinates (x, y) on a CIE 1931 chromaticity diagram, wherein the conversion formula is as follows:
and finally, calculating the color temperature CCT by using another fitting formula, wherein the fitting formula is as follows:
in the formula Ai(i ═ 0,1,2, or 3) and ti(i ═ 1, or 2) are all constants; n ═ x-xe)/(y-ye) Wherein x ise=0.3320,ye=0.1858。
By the calculation based on the regional average RGB value, the color temperature of the image can be calculated in real time, and the color temperature adjusting function of the display is matched, so that the color of the display can keep high standard working requirements.
In one embodiment, as shown in fig. 4, a blue light parameter detecting apparatus is proposed, the apparatus comprising:
the area average RGB value calculating module 402 is configured to obtain an image to be detected on a screen to be detected, where the image to be detected includes at least one area to be detected, obtain a target RGB value of each pixel point in the at least one area to be detected, and calculate an area average RGB value of the screen to be detected according to the target RGB value.
And the blue light energy ratio calculating module 404 is configured to obtain energy coefficients of the three primary colors, and calculate a blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value.
And a blue light damage ratio calculation module 406, configured to obtain a blue light damage weighting function of the three primary colors, and calculate a blue light damage ratio of the screen to be tested according to the blue light damage weighting function and the area average RGB value.
And a prompt module 408 for prompting the blue light energy ratio and the blue light damage ratio to the user.
According to the blue light parameter detection device, a required image to be detected can be obtained in a shooting mode of a shooting device such as a mobile phone, a professional spectrum measurement device is not needed, the average RGB value of the area in the area to be detected is calculated, and the blue light related parameters such as the blue light energy ratio and the blue light damage value ratio can be tested and evaluated in a real-time and portable mode according to a built-in software algorithm. The method has the advantages of low cost, convenience and quickness.
In an embodiment, the blue light energy ratio calculating module 404 is specifically configured to: obtaining a monochromatic light energy coefficient of each monochromatic light in the three primary color lights, wherein the monochromatic light comprises red light, green light and blue light; acquiring the average component value of the area average RGB value in each monochromatic light, and calculating the monochromatic light energy of each monochromatic light according to the energy coefficient of each monochromatic light and the average component value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy; and calculating the blue light energy ratio according to the red light energy, the green light energy and the blue light energy.
In an embodiment, the blue light damage ratio calculation module 406 is specifically configured to: obtaining a blue light hazard weighting function of each monochromatic light in the three primary color lights; calculating a blue light damage value corresponding to each monochromatic light wavelength according to the blue light damage weighting function corresponding to the monochromatic light and the energy of the monochromatic light; and calculating the ratio of the harmful blue light to the blue light damage value according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the blue light parameter detection apparatus further includes a color temperature calculation module for: converting the area average RGB value into the image color temperature of the screen to be detected according to a preset color temperature conversion method; the user is prompted for the image color temperature.
In an embodiment, the color temperature calculation module is specifically configured to: calculating pixel offset according to the average component value of each monochromatic light; and substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be measured.
In an embodiment, the region average RGB value calculating module 402 is specifically configured to: and calculating a first average value of each region to be detected according to the target RGB value, and calculating a region average RGB value of the screen to be detected according to the first average value.
FIG. 5 shows an internal block diagram of a blue light parameter detection device in one embodiment. As shown in fig. 5, the blu-ray parameter detection apparatus includes a processor, a memory, and a network interface connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium of the blue light parameter detection device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the processor can realize the blue light parameter detection method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the blue light parameter detection method. It will be understood by those skilled in the art that the structure shown in fig. 5 is a block diagram of only a part of the structure relevant to the present application, and does not constitute a limitation to the blue light parameter detection device to which the present application is applied, and a specific blue light parameter detection device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
A blue light parameter detection device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value; acquiring energy coefficients of the three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value; obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the ratio of blue light hazard values of the screen to be detected according to the blue light hazard weighting functions and the regional average RGB value; and prompting the blue light energy ratio and the blue light injury value ratio for a user.
In one embodiment, obtaining energy coefficients of three primary colors of light, and calculating a blue light energy ratio of a screen to be measured according to the energy coefficients and an area average RGB value includes: obtaining a monochromatic light energy coefficient of each monochromatic light in the three primary color lights, wherein the monochromatic light comprises red light, green light and blue light; acquiring the average component value of the area average RGB value in each monochromatic light, and calculating the monochromatic light energy of each monochromatic light according to the energy coefficient of each monochromatic light and the average component value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy; and calculating the blue light energy ratio according to the red light energy, the green light energy and the blue light energy.
In one embodiment, obtaining a blue light hazard weighting function of three primary colors of light, and calculating a ratio of blue light hazard values of a screen to be tested according to the blue light hazard weighting function and an area average RGB value includes: obtaining a blue light hazard weighting function of each monochromatic light in the three primary color lights; calculating a blue light damage value corresponding to each monochromatic light wavelength according to the blue light damage weighting function corresponding to the monochromatic light and the energy of the monochromatic light; and calculating the ratio of the harmful blue light to the blue light damage value according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the method further comprises: converting the area average RGB value into the image color temperature of the screen to be detected according to a preset color temperature conversion method; the user is prompted for the image color temperature.
In one embodiment, the converting the area average RGB value into the image color temperature of the screen to be measured according to a preset color temperature conversion method includes: calculating pixel offset according to the average component value of each monochromatic light; and substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be measured.
In one embodiment, calculating the area average RGB value of the screen to be tested according to the target RGB value includes: and calculating a first average value of each region to be detected according to the target RGB value, and calculating a region average RGB value of the screen to be detected according to the first average value.
A computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of: acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value; acquiring energy coefficients of the three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value; obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the ratio of blue light hazard values of the screen to be detected according to the blue light hazard weighting functions and the regional average RGB value; and prompting the blue light energy ratio and the blue light injury value ratio for a user.
In one embodiment, obtaining energy coefficients of three primary colors of light, and calculating a blue light energy ratio of a screen to be measured according to the energy coefficients and an area average RGB value includes: obtaining a monochromatic light energy coefficient of each monochromatic light in the three primary color lights, wherein the monochromatic light comprises red light, green light and blue light; acquiring the average component value of the area average RGB value in each monochromatic light, and calculating the monochromatic light energy of each monochromatic light according to the energy coefficient of each monochromatic light and the average component value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy; and calculating the blue light energy ratio according to the red light energy, the green light energy and the blue light energy.
In one embodiment, obtaining a blue light hazard weighting function of three primary colors of light, and calculating a ratio of blue light hazard values of a screen to be tested according to the blue light hazard weighting function and an area average RGB value includes: obtaining a blue light hazard weighting function of each monochromatic light in the three primary color lights; calculating a blue light damage value corresponding to each monochromatic light wavelength according to the blue light damage weighting function and the monochromatic light energy corresponding to the blue light damage weighting function; and calculating the ratio of the harmful blue light to the blue light damage value according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the method further comprises: converting the area average RGB value into the image color temperature of the screen to be detected according to a preset color temperature conversion method; the user is prompted for the image color temperature.
In one embodiment, the converting the area average RGB value into the image color temperature of the screen to be measured according to a preset color temperature conversion method includes: calculating pixel offset according to the average component value of each monochromatic light; and substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be measured.
In one embodiment, calculating the area average RGB value of the screen to be tested according to the target RGB value includes: and calculating a first average value of each region to be detected according to the target RGB value, and calculating a region average RGB value of the screen to be detected according to the first average value.
It should be noted that the method, the apparatus, the device and the computer-readable storage medium for detecting the blue light parameter belong to a general inventive concept, and the contents in the embodiments of the method, the apparatus, the device and the computer-readable storage medium for detecting the blue light parameter are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (SynchlLink) DRAM (SLLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of blue light parameter detection, the method comprising:
acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value;
acquiring energy coefficients of three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value;
obtaining blue light hazard weighting functions of the three primary colors of light, and calculating the blue light hazard value ratio of harmful blue light wave bands of the screen to be tested according to the blue light hazard weighting functions and the regional average RGB value;
and prompting the blue light energy ratio and the blue light damage value ratio to a user.
2. The method as claimed in claim 1, wherein the obtaining the energy coefficients of the three primary colors and calculating the blue light energy ratio of the screen to be tested according to the energy coefficients and the area average RGB values comprises:
obtaining a monochromatic light energy coefficient of each monochromatic light in the three primary color lights, wherein the monochromatic light comprises red light, green light and blue light;
acquiring the average component value of the area average RGB value in each monochromatic light, and calculating monochromatic light energy of each monochromatic light according to each monochromatic light energy coefficient and the average component value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy;
and calculating the blue light energy ratio according to the red light energy, the green light energy and the blue light energy.
3. The method as claimed in claim 2, wherein the obtaining the blue light hazard weighting function of the three primary colors of light, and calculating the ratio of the blue light hazard values in the harmful blue light band of the screen to be tested according to the blue light hazard weighting function and the region average RGB values comprises:
obtaining a blue light hazard weighting function of each monochromatic light in the three primary color lights;
calculating a blue light damage value corresponding to each monochromatic light wavelength according to the blue light damage weighting function corresponding to the monochromatic light and the energy of the monochromatic light;
and calculating the ratio of the harmful blue light to the blue light damage value according to the blue light damage value corresponding to each monochromatic light wavelength.
4. The method of claim 2, further comprising:
converting the area average RGB value into the image color temperature of the screen to be detected according to a preset color temperature conversion method;
and prompting the image color temperature for a user.
5. The method as claimed in claim 4, wherein the converting the region average RGB value into the color temperature of the screen display image to be tested according to a preset color temperature conversion method comprises:
calculating pixel offset according to the average component value of each monochromatic light;
and substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be detected.
6. The method according to claim 1, wherein the background of the image to be detected is white in a white balance state, and the aspect ratio of the image to be detected is a preset aspect ratio;
the at least one region to be measured comprises at least one circle region with the same size, and the at least one circle region is arranged in a matrix at equal intervals in the long side direction and the wide side direction of the image to be measured.
7. The method as claimed in claim 1, wherein said calculating the region average RGB value of the screen under test according to the target RGB value comprises:
and calculating a first average value of each region to be detected according to the target RGB value, and calculating a region average RGB value of the screen to be detected according to the first average value.
8. A blue light parameter detection apparatus, the apparatus comprising:
the area average RGB value calculation module is used for acquiring an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one area to be detected, acquiring a target RGB value of each pixel point in the at least one area to be detected, and calculating an area average RGB value of the screen to be detected according to the target RGB value;
the blue light energy ratio calculation module is used for acquiring energy coefficients of three primary colors of light and calculating the blue light energy ratio of the screen to be detected according to the energy coefficients and the regional average RGB value;
the blue light damage ratio calculation module is used for acquiring a blue light damage weighting function of the three primary colors of light and calculating the blue light damage ratio of a harmful blue light waveband of the screen to be detected according to the blue light damage weighting function and the area average RGB value;
and the prompting module is used for prompting the blue light energy ratio and the blue light damage value ratio to a user.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A blue light parameter detection device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110518622.3A CN113240757B (en) | 2021-05-12 | 2021-05-12 | Blue light parameter detection method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110518622.3A CN113240757B (en) | 2021-05-12 | 2021-05-12 | Blue light parameter detection method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113240757A true CN113240757A (en) | 2021-08-10 |
CN113240757B CN113240757B (en) | 2023-07-14 |
Family
ID=77133787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110518622.3A Active CN113240757B (en) | 2021-05-12 | 2021-05-12 | Blue light parameter detection method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113240757B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115881030A (en) * | 2023-01-13 | 2023-03-31 | 深圳市瀚达美电子有限公司 | Blue light prevention method for Mini-LED display |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203404652U (en) * | 2013-08-08 | 2014-01-22 | 复旦大学 | Four-channel healthy LED lighting device |
CN206558499U (en) * | 2016-12-13 | 2017-10-13 | 易美芯光(北京)科技有限公司 | A kind of LED/light source of dual chip blue light health |
CN107450212A (en) * | 2017-07-14 | 2017-12-08 | 厦门天马微电子有限公司 | Dot structure, image element driving method, color blocking structure, display panel and device |
CN108345439A (en) * | 2018-04-23 | 2018-07-31 | 福建捷联电子有限公司 | A kind of active anti-blu-ray system and method for calculating display screen blue light cumlative energy |
CN110095261A (en) * | 2019-04-01 | 2019-08-06 | 南京巨鲨显示科技有限公司 | A kind of blue light detection device and method for medical display |
CN110220674A (en) * | 2019-04-25 | 2019-09-10 | 深圳大学 | Display screen health performance appraisal procedure and device |
WO2019192044A1 (en) * | 2018-04-04 | 2019-10-10 | 华为技术有限公司 | Ambient light detection method, and terminal |
US20190317362A1 (en) * | 2018-04-17 | 2019-10-17 | Innolux Corporation | Display device and manufacturing method thereof |
WO2020114226A1 (en) * | 2018-12-07 | 2020-06-11 | 深圳光峰科技股份有限公司 | Light emitting device, display device and control method for light emitting device |
CN111735614A (en) * | 2020-08-12 | 2020-10-02 | 中认尚动(上海)检测技术有限公司 | Portable blue light hazard testing system and detection method thereof |
CN111834497A (en) * | 2019-04-17 | 2020-10-27 | 纳晶科技股份有限公司 | Quantum dot module, quantum dot light-emitting device, display equipment and eye protection method |
CN112255785A (en) * | 2020-10-16 | 2021-01-22 | 安徽阳光照明电器有限公司 | White light LED color mixing design method for light health and illumination system thereof |
-
2021
- 2021-05-12 CN CN202110518622.3A patent/CN113240757B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203404652U (en) * | 2013-08-08 | 2014-01-22 | 复旦大学 | Four-channel healthy LED lighting device |
CN206558499U (en) * | 2016-12-13 | 2017-10-13 | 易美芯光(北京)科技有限公司 | A kind of LED/light source of dual chip blue light health |
CN107450212A (en) * | 2017-07-14 | 2017-12-08 | 厦门天马微电子有限公司 | Dot structure, image element driving method, color blocking structure, display panel and device |
WO2019192044A1 (en) * | 2018-04-04 | 2019-10-10 | 华为技术有限公司 | Ambient light detection method, and terminal |
US20190317362A1 (en) * | 2018-04-17 | 2019-10-17 | Innolux Corporation | Display device and manufacturing method thereof |
CN108345439A (en) * | 2018-04-23 | 2018-07-31 | 福建捷联电子有限公司 | A kind of active anti-blu-ray system and method for calculating display screen blue light cumlative energy |
WO2020114226A1 (en) * | 2018-12-07 | 2020-06-11 | 深圳光峰科技股份有限公司 | Light emitting device, display device and control method for light emitting device |
CN110095261A (en) * | 2019-04-01 | 2019-08-06 | 南京巨鲨显示科技有限公司 | A kind of blue light detection device and method for medical display |
CN111834497A (en) * | 2019-04-17 | 2020-10-27 | 纳晶科技股份有限公司 | Quantum dot module, quantum dot light-emitting device, display equipment and eye protection method |
CN110220674A (en) * | 2019-04-25 | 2019-09-10 | 深圳大学 | Display screen health performance appraisal procedure and device |
CN111735614A (en) * | 2020-08-12 | 2020-10-02 | 中认尚动(上海)检测技术有限公司 | Portable blue light hazard testing system and detection method thereof |
CN112255785A (en) * | 2020-10-16 | 2021-01-22 | 安徽阳光照明电器有限公司 | White light LED color mixing design method for light health and illumination system thereof |
Non-Patent Citations (3)
Title |
---|
WEI TANG ET AL.: "Blue Light Hazard Optimization for High Quality White LEDs", 《IEEE PHOTONICS JOURNAL》 * |
WEI TANG ET AL.: "Blue Light Hazard Optimization for High Quality White LEDs", 《IEEE PHOTONICS JOURNAL》, 29 August 2018 (2018-08-29), pages 1 - 11 * |
周孟欣, 低蓝光危害的白光LED光源的光谱设计与优化, vol. 56, no. 18, pages 182302 - 1 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115881030A (en) * | 2023-01-13 | 2023-03-31 | 深圳市瀚达美电子有限公司 | Blue light prevention method for Mini-LED display |
Also Published As
Publication number | Publication date |
---|---|
CN113240757B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11193830B2 (en) | Spectrocolorimeter imaging system | |
US8988682B2 (en) | High accuracy imaging colorimeter by special designed pattern closed-loop calibration assisted by spectrograph | |
KR101909772B1 (en) | Fast calibration of displays using spectral-based colorimetrically calibrated multicolor camera | |
US20060159337A1 (en) | Method for deriving consistent, repeatable color measurements from data provided by a digital imaging device | |
US7012633B2 (en) | Color calibration method for imaging color measurement device | |
JP6322939B2 (en) | Imaging system and color inspection system | |
US8587783B2 (en) | Spectral estimation parameter generation device, method of generating spectral estimation parameter, and spectral estimation device | |
US20060181543A1 (en) | Image display apparatus and image display method | |
JP2015132594A (en) | Measuring apparatus, measuring system, and measuring method | |
US20070177230A1 (en) | Methods and apparatuses for determining a color calibration for different spectral light inputs in an imaging apparatus measurement | |
CN113628135A (en) | Image color correction method, image color correction device, computer device, and storage medium | |
CN113240757A (en) | Blue light parameter detection method, device, equipment and medium | |
CN113848044B (en) | Method for detecting brightness and chrominance consistency of display screen | |
Pointer et al. | Practical camera characterization for colour measurement | |
WO2016065856A1 (en) | Light radiation measurement method based on light filtering unit and apparatus thereof | |
JP2010203825A (en) | Method for measuring spectral distribution of monitor | |
JP2020091256A (en) | Processor, imaging apparatus, method for processing, and program | |
US20220303516A1 (en) | Method of air pollution estimation based on spectral image processing | |
JP3960989B2 (en) | Color estimation system and color estimation method | |
JP7552076B2 (en) | Imaging device, portable terminal device, and imaging method | |
US9041815B2 (en) | Digital camera imaging evaluation module | |
JP2022006624A (en) | Calibration device, calibration method, calibration program, spectroscopic camera, and information processing device | |
WO2023007965A1 (en) | Image-capturing method and program | |
US20240027185A1 (en) | Method for measuring thickness of a thin film layer on glass | |
Abebe et al. | Smartphones' skin colour reproduction analysis for neonatal jaundice detection (JIST-first) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |