CN113240757B - Blue light parameter detection method, device, equipment and medium - Google Patents

Blue light parameter detection method, device, equipment and medium Download PDF

Info

Publication number
CN113240757B
CN113240757B CN202110518622.3A CN202110518622A CN113240757B CN 113240757 B CN113240757 B CN 113240757B CN 202110518622 A CN202110518622 A CN 202110518622A CN 113240757 B CN113240757 B CN 113240757B
Authority
CN
China
Prior art keywords
blue light
light
value
energy
calculating
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.)
Active
Application number
CN202110518622.3A
Other languages
Chinese (zh)
Other versions
CN113240757A (en
Inventor
郭滨刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guangke Holographic Technology Co ltd
Original Assignee
Shenzhen Guangke Holographic Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Guangke Holographic Technology Co ltd filed Critical Shenzhen Guangke Holographic Technology Co ltd
Priority to CN202110518622.3A priority Critical patent/CN113240757B/en
Publication of CN113240757A publication Critical patent/CN113240757A/en
Application granted granted Critical
Publication of CN113240757B publication Critical patent/CN113240757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30121CRT, LCD or plasma display
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control 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: obtaining a to-be-detected image on a to-be-detected screen, wherein the to-be-detected image comprises at least one to-be-detected area, obtaining a target RGB value of each pixel point in the at least one to-be-detected area, and calculating an area average RGB value of the to-be-detected screen according to the target RGB value; obtaining energy coefficients of three primary colors of light, and calculating the blue light energy ratio of a screen to be tested according to the energy coefficients and the regional average RGB value; obtaining a blue light hazard weighting function of the three primary colors of light, and calculating the blue light hazard value duty ratio of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value; and prompting the blue light energy duty ratio and the blue light injury value duty ratio to a user. In addition, the invention can also measure the image color temperature of the screen to be measured and display the image color temperature to the user. The invention can realize the real-time and portable test and evaluation of the related parameters of the blue light, and has the advantages of low cost, convenience and rapidness. In addition, a blue light parameter detection device, equipment and a storage medium are also provided.

Description

Blue light parameter detection method, device, equipment and medium
Technical Field
The invention relates to the technical field of screen detection, in particular to a blue light parameter detection method, a blue light parameter detection device, blue light parameter detection equipment and blue light parameter detection media.
Background
At present, electronic devices such as mobile phones and computers have been popular, and people use the electronic devices for longer and longer time, so that the problem that the light of a screen causes harm to the vision health of people is also more and more emphasized. In the use process, the LED backlight source emits a part of harmful blue light (concentrated in 415-460nm wave band) besides the blue light with smaller damage necessary for radiation imaging. Blue light has stronger penetrability, can not only bring about the fatigue of the eye lens, but also easily cause irreversible damage to retina, such as increasing the disease probability of diseases such as fundus maculopathy, cataract and the like.
The main method for evaluating the harmful blue light of the display screen is to measure the spectrum of the display screen by using a professional spectrum measuring device such as a spectrometer or a chromatograph, and then calculate and process the measured spectrum data, thereby obtaining the ratio of the blue light energy and the blue light damage value to the whole spectrum. However, this method has the problems of expensive equipment, difficult portability, time-consuming data conversion, high professional requirements for operators, and incapability of immediately processing blue light energy and blue light damage value ratio and other blue light parameters for conventional operators. Therefore, there is a need for a method for easily estimating blue-light related parameters of a display screen at any time and any place.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a blue light parameter detection method, apparatus, device, and medium that can perform test evaluation in real time and in a 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 region to be detected, acquiring a target RGB value of each pixel point in the at least one region to be detected, and calculating an average RGB value of the region of the screen to be detected according to the target RGB value;
obtaining energy coefficients of three primary colors of light, and calculating the blue light energy duty ratio of the screen to be tested according to the energy coefficients and the regional average RGB value;
acquiring a blue light hazard weighting function of the three primary colors of light, and calculating a blue light hazard value duty ratio of a harmful blue light wave band of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value;
and prompting the blue light energy duty ratio and the blue light damage value duty ratio to a user.
In one embodiment, the obtaining the energy coefficient of the three primary colors of light, calculating the blue light energy ratio of the screen to be measured according to the energy coefficient and the area average RGB value, includes:
acquiring a monochromatic light energy coefficient of each monochromatic light in the three primary colors of light, wherein the monochromatic light comprises red light, green light and blue light;
acquiring an average value of the average RGB value of the area in each monochromatic light, and calculating monochromatic light energy of each monochromatic light according to each monochromatic light energy coefficient and the average 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, calculating a blue light hazard value duty ratio of a harmful blue light band of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value, includes:
obtaining a blue light hazard weighting function corresponding to each monochromatic light in the three primary colors of light;
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 monochromatic light energy;
and calculating the blue light damage value duty ratio of the harmful blue light according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the method further comprises:
converting the average RGB value of the region into the image color temperature of the screen to be tested according to a preset color temperature conversion method;
and prompting the color temperature of the image to a user.
In one embodiment, the converting the average RGB value of the region 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 value of each monochromatic light;
substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be measured.
In one embodiment, the background of the image to be measured is white in a white balance state, and the aspect ratio of the image to be measured is a preset aspect ratio;
the at least one region to be measured comprises at least one circular region with the same size, and the at least one circular 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 average RGB value of the area of the screen to be measured 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 device, the device comprising:
the regional average RGB value calculation module is used for obtaining an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one region to be detected, obtaining a target RGB value of each pixel point in the at least one region to be detected, and calculating the regional average RGB value of the screen to be detected according to the target RGB value;
the blue light energy duty ratio calculation module is used for obtaining energy coefficients of three primary colors of light and calculating the blue light energy duty ratio of the screen to be measured according to the energy coefficients and the regional average RGB value;
the blue light damage value duty ratio calculation module is used for obtaining a blue light damage weighting function of the three primary colors of light and calculating the blue light damage value duty ratio of a harmful blue light wave band of the screen to be detected according to the blue light damage weighting function and the regional average RGB value;
and the prompting module is used for prompting the blue light energy duty ratio and the blue light injury value duty 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 region to be detected, acquiring a target RGB value of each pixel point in the at least one region to be detected, and calculating an average RGB value of the region of the screen to be detected according to the target RGB value;
obtaining energy coefficients of three primary colors of light, and calculating the blue light energy duty ratio of the screen to be tested according to the energy coefficients and the regional average RGB value;
acquiring a blue light hazard weighting function of the three primary colors of light, and calculating a blue light hazard value duty ratio of a harmful blue light wave band of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value;
and prompting the blue light energy duty ratio and the blue light damage value duty 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 region to be detected, acquiring a target RGB value of each pixel point in the at least one region to be detected, and calculating an average RGB value of the region of the screen to be detected according to the target RGB value;
obtaining energy coefficients of three primary colors of light, and calculating the blue light energy duty ratio of the screen to be tested according to the energy coefficients and the regional average RGB value;
acquiring a blue light hazard weighting function of the three primary colors of light, and calculating a blue light hazard value duty ratio of a harmful blue light wave band of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value;
and prompting the blue light energy duty ratio and the blue light damage value duty ratio to a user.
The invention provides a blue light parameter detection method, a device, equipment and a medium, which can acquire a required image to be detected by shooting through shooting equipment such as a mobile phone and the like without professional spectrum measurement equipment, and can realize instant and portable test and evaluation on blue light related parameters such as blue light energy ratio and blue light damage value ratio according to a built-in software algorithm by calculating an area average RGB value in an area to be detected. The mode has the advantages of low cost, convenience and quickness.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow chart of a blue light parameter detection method according to an embodiment;
FIG. 2 is a schematic diagram of an image to be measured in one embodiment;
FIG. 3 is a schematic diagram of a blue hazard weighting function;
FIG. 4 is a schematic diagram of a blue light parameter detecting apparatus according to an embodiment;
fig. 5 is a block diagram of a blue light parameter detection device according to an embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, fig. 1 is a flow chart of a blue light parameter detection method in an embodiment, and the blue light parameter detection method in the embodiment is completed by only matching one shooting device with one display device, and the shooting device and the display device can be common mobile intelligent terminals such as mobile phones and tablets, and because professional devices such as a spectrometer or a chromatograph are not required, the equipment cost can be greatly reduced.
The method for detecting the blue light parameter in the embodiment comprises the following steps:
step 102, obtaining an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one region to be detected, obtaining a target RGB value of each pixel point in the at least one region to be detected, and calculating an average RGB value of the region of the screen to be detected according to the target RGB value.
The image to be measured may be obtained by performing shooting when the front surface 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 distributed as uniformly as possible inside the image to be measured, so that the obtained average RGB value of the areas 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 white balance, the aspect ratio of the image is a preset fixed value, and the ratio of L to H=16:9 is exemplified, wherein L is 13.3cm, and H is 7.5cm. Of course, it may be, for example, L: h=4:3 or other predetermined aspect ratio. And the white background is distributed with 1-9 number 9 circle areas, the edges of the circle areas are black, the sizes of all circle areas are the same, and the diameters of the circle areas are H/10. The 9 circle areas are arranged into a square array for displaying, 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 in the extending-side direction is L/3, and the distance between the circle areas adjacent in the extending-wide-side direction is H/3. The distance from the nearest long side of the No. 1 circle area is H/6, and the distance from the nearest wide side of the No. 1 circle area is L/6. Of course, the image to be measured can also be 4 circle areas which are also arranged into a square array for display, wherein the distance between the circle areas adjacent in the extending side direction is L/2, the distance between the circle areas adjacent in the extending width direction is H/2, the distance between each circle area and the nearest long side is H/4, and the distance between each circle area and the nearest wide side is L/4. Similarly, the image to be measured may be 1 circular area, which is located at the center of the image to be measured. The image to be measured is actually presented on the screen of the display device, and the pattern size can be automatically adjusted according to the size of the mobile phone screen, but the ratio of the length to the width to the length of the circle area is generally ensured to be unchanged, and the advantage of the method is that the display difference between different display devices is reduced. And when the display equipment is shot at a close distance from the front of the shooting equipment, the shooting effect is used for obtaining a full-size image to be detected, and the black edge of the circular area in the pattern can be clearly distinguished.
Further, after the photographing device automatically identifies the circular areas in the image to be measured, each circular area is taken as a statistics unit, and the target RGB values of each pixel point are accumulated and averaged to obtain a first average value of the circular areas. And accumulating all the first average values and then taking the average value to obtain the regional average RGB value of the screen to be tested. Because the areas to be measured are uniformly distributed, the overall display condition of the screen to be measured can be reflected. In addition, the dead pixel in the pixel point can be removed by a method of setting a threshold value, so that the influence of the dead pixel on the calculation of the regional average RGB value is avoided.
And 104, obtaining the energy coefficient of the three primary colors of light, and calculating the blue light energy ratio of the screen to be detected according to the energy coefficient and the regional average RGB value.
The three primary colors refer to red light, green light and blue light, 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.8nm according to the CIE 1931 standard chromaticity system. Respectively obtaining first energy coefficients a of red light 1 Second energy coefficient a of green light 2 Third energy coefficient a of blue light 3 Wherein the energy coefficient of the three primary colors of light satisfies a 1 :a 2 :a 3 =72.096:1.379:1.000. Obtaining average value of red light of regional average RGB value
Figure BDA0003063013970000071
Average value of green light->
Figure BDA0003063013970000072
And the average value of the blue light +.>
Figure BDA0003063013970000073
According to the average value of red light +.>
Figure BDA0003063013970000074
And the first energy coefficient can be calculated to obtain red light energy +.>
Figure BDA0003063013970000075
According to the average value of green light->
Figure BDA0003063013970000076
And the second energy coefficient can be calculated to obtain green light energy +>
Figure BDA0003063013970000077
According to the average value of blue light +.>
Figure BDA0003063013970000078
And the third energy coefficient can be calculated to obtain blue light energy +.>
Figure BDA0003063013970000079
Finally, the red light energy is->
Figure BDA00030630139700000710
Green light energy +.>
Figure BDA00030630139700000711
Blue light energy +.>
Figure BDA00030630139700000712
Calculating the blue light energy ratio R E The formula of (2) is:
Figure BDA00030630139700000713
and 106, obtaining a blue light hazard weighting function of the three primary colors, and calculating the blue light hazard value duty ratio of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value.
Based on visible light wave band hazard factor data given by national standard GB/T20145-2006, a blue light hazard weighting function B (lambda) of red light is obtained by fitting software R ) Blue hazard weighting function B (lambda) G ) Blue light hazard weighting function B (λ) for blue light B ). Exemplary, referring to FIG. 3, FIG. 3 is a diagram of a blue hazard weighting function B (λ B ) Is a schematic diagram of the blue light weighting function B (λ B ) Reflecting the intensity change condition of blue light under different wavelengths, the larger the intensity is, the larger the damage is caused, wherein the harmful blue light is mainly concentrated in 415-460nm wave bands.
According to the blue light hazard weighting function and the red light energy, the blue light corresponding to the red light can be calculatedOptical injury value
Figure BDA00030630139700000714
According to the blue light hazard weighting function and the green light energy, a blue light hazard value corresponding to the green light can be calculated
Figure BDA00030630139700000715
According to the blue light hazard weighting function and blue light energy, a blue light hazard value can be calculated>
Figure BDA00030630139700000716
Finally, calculating the blue light damage value R occupied by 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 light B The formula of (2) is:
Figure BDA00030630139700000717
step 108, prompting the user of the blue light energy duty cycle and the blue light injury value duty cycle.
In this embodiment, after the blue light energy duty ratio and the blue light injury value duty ratio are calculated, the blue light energy duty ratio and the blue light injury value duty ratio may be sequentially prompted according to the magnitude order of the duty ratios, for example, the blue light energy duty ratio and the blue light injury value duty ratio may be sequentially displayed on a screen of the photographing device; for example, the blue light energy duty ratio and the blue light injury value duty ratio are sent to display equipment so as to match each area to be detected at the position of the image to be detected to display the corresponding blue light energy duty ratio and blue light injury value duty ratio; or sequentially broadcasting the blue light energy duty ratio and the blue light injury value duty ratio in a voice prompt mode. Of course, other manners are possible, and will not be described in detail herein.
Further, if the displayed blue light energy ratio and the blue light injury value ratio exceed the preset alarm values, 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 should be avoided as much as possible at present.
According to the blue light parameter detection method, the required image to be detected can be obtained through the shooting mode of shooting equipment such as a mobile phone, no special spectrum measurement equipment is needed, the average RGB value of the area in the area to be detected is calculated, and then 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 an instant and portable mode according to the built-in software algorithm. The mode has the advantages of low cost, convenience and quickness.
Furthermore, in addition to the blue light parameters, the color temperature of the image, which is a measurement unit indicating that the light contains color components, can be obtained and displayed based on the region average RGB value, and is a performance index of a high-grade display, and the color of the display can be kept to a high standard working requirement through the color temperature adjusting function of the display. The method mainly comprises the steps of converting an average RGB value of a region into an image color temperature of a 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, the method is based on the determination
Figure BDA0003063013970000081
Is->
Figure BDA0003063013970000082
Calculating the pixel offset m, wherein the calculation formula is as follows:
Figure BDA0003063013970000083
substituting the pixel offset m into a fitting formula obtained by pre-fitting, and calculating the color temperature Y of the image:
Y=A 0 +A 1 m 1 +A 2 m 2 +A 3 m 3 +······A n m n
wherein A is i (i=0, 1,2, or 3) are constant, and n is obtained by fitting. When the formula is obtained by pre-fitting, a plurality of training images marked with the color temperature values of the images are shot, and then the step 102 and the calculation of the pixel offset m are performedThe formula calculates the pixel offset m, and finds the best a by minimizing the sum of squares of the errors using, for example, MATLAB curve fitting toolbox i (i=0, 1,2, or 3).
In another embodiment, RGB values are first converted to tristimulus values (X, Y, Z), the conversion formula being:
Figure BDA0003063013970000091
and then converting the tristimulus values XYZ into chromaticity coordinates (x, y) on a CIE 1931 chromaticity diagram, wherein the conversion formula is as follows:
Figure BDA0003063013970000092
finally, calculating the color temperature CCT by using another fitting formula, wherein the fitting formula is as follows:
Figure BDA0003063013970000093
in which A i (i=0, 1,2, or 3) and t i (i=1, or 2) are constant; n= (x-x) e )/(y-y e ) Wherein x is e =0.3320,y e =0.1858。
By the calculation based on the regional average RGB value, the calculation of the color temperature of the image can be realized 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 detection device is provided, which includes:
the area average RGB value calculating module 402 is configured to obtain an image to be measured on a screen to be measured, where the image to be measured includes at least one area to be measured, obtain a target RGB value of each pixel point in the at least one area to be measured, and calculate an area average RGB value of the screen to be measured according to the target RGB value.
The blue light energy duty ratio calculation module 404 is configured to obtain an energy coefficient of the three primary colors of light, and calculate the blue light energy duty ratio of the screen to be measured according to the energy coefficient and the regional average RGB value.
The blue light injury value duty ratio calculation module 406 is configured to obtain a blue light injury weighting function of the three primary colors, and calculate a blue light injury value duty ratio of the screen to be measured according to the blue light injury weighting function and the regional average RGB value.
The prompting module 408 is configured to prompt the user about the blue light energy duty cycle and the blue light injury value duty cycle.
According to the blue light parameter detection device, the required image to be detected can be obtained through the shooting mode of shooting equipment such as a mobile phone, no special spectrum measurement equipment is needed, the average RGB value of the area in the area to be detected is calculated, and then 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 an instant and portable mode according to the built-in software algorithm. The mode has the advantages of low cost, convenience and quickness.
In one embodiment, the blue light energy duty cycle calculation module 404 is specifically configured to: acquiring a monochromatic light energy coefficient of each monochromatic light in the three primary colors, wherein the monochromatic light comprises red light, green light and blue light; acquiring the average RGB value of the area at the average value of 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 value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy; the blue light energy duty cycle is calculated from the red light energy, the green light energy, and the blue light energy.
In one embodiment, the blue light injury value duty ratio calculation module 406 is specifically configured to: obtaining a blue light hazard weighting function of each monochromatic light in the three primary colors of light; calculating a blue light damage value corresponding to each monochromatic light wavelength according to a blue light damage weighting function corresponding to the monochromatic light and the monochromatic light energy; and calculating the blue light damage value duty ratio of the harmful blue light according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the blue light parameter detection device further includes a color temperature calculation module for: converting the average RGB value of the region into the image color temperature of the screen to be tested according to a preset color temperature conversion method; the color temperature of the image is prompted to the user.
In one embodiment, the color temperature calculating module is specifically configured to: calculating pixel offset according to the average value of each monochromatic light; substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be measured.
In one embodiment, the area average RGB value calculation 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 the region average RGB value of the screen to be detected according to the first average value.
Fig. 5 shows an internal structural diagram of the blue-ray parameter detection device in one embodiment. As shown in fig. 5, the blue light parameter detection device includes a processor, a memory, and a network interface connected through a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the blue light parameter detection device stores an operating system, and may also store a computer program that, when executed by a processor, causes the processor to implement a blue light parameter detection method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the blue light parameter detection method. It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present application and does not constitute a limitation of the blue light parameter sensing device to which the present application is applied, and that a particular blue light parameter sensing device may include more or fewer components than shown in the drawings, or may combine certain 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: obtaining a to-be-detected image on a to-be-detected screen, wherein the to-be-detected image comprises at least one to-be-detected area, obtaining a target RGB value of each pixel point in the at least one to-be-detected area, and calculating an area average RGB value of the to-be-detected screen according to the target RGB value; obtaining energy coefficients of three primary colors of light, and calculating the blue light energy ratio of a screen to be tested according to the energy coefficients and the regional average RGB value; obtaining a blue light hazard weighting function of the three primary colors of light, and calculating the blue light hazard value duty ratio of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value; and prompting the blue light energy duty ratio and the blue light injury value duty ratio to a user.
In one embodiment, obtaining an energy coefficient of the three primary colors of light, and calculating a blue light energy duty ratio of the screen to be measured according to the energy coefficient and the regional average RGB value includes: acquiring a monochromatic light energy coefficient of each monochromatic light in the three primary colors, wherein the monochromatic light comprises red light, green light and blue light; acquiring the average RGB value of the area at the average value of 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 value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy; the blue light energy duty cycle is calculated from 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, calculating a blue light hazard value duty ratio of a screen to be tested according to the blue light hazard weighting function and an area average RGB value, including: obtaining a blue light hazard weighting function of each monochromatic light in the three primary colors of light; calculating a blue light damage value corresponding to each monochromatic light wavelength according to a blue light damage weighting function corresponding to the monochromatic light and the monochromatic light energy; and calculating the blue light damage value duty ratio of the harmful blue light according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the method further comprises: converting the average RGB value of the region into the image color temperature of the screen to be tested according to a preset color temperature conversion method; the color temperature of the image is prompted to the user.
In one embodiment, converting the region average RGB values 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 value of each monochromatic light; 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 regional average RGB value of the screen to be measured from 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 the 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: obtaining a to-be-detected image on a to-be-detected screen, wherein the to-be-detected image comprises at least one to-be-detected area, obtaining a target RGB value of each pixel point in the at least one to-be-detected area, and calculating an area average RGB value of the to-be-detected screen according to the target RGB value; obtaining energy coefficients of three primary colors of light, and calculating the blue light energy ratio of a screen to be tested according to the energy coefficients and the regional average RGB value; obtaining a blue light hazard weighting function of the three primary colors of light, and calculating the blue light hazard value duty ratio of the screen to be tested according to the blue light hazard weighting function and the regional average RGB value; and prompting the blue light energy duty ratio and the blue light injury value duty ratio to a user.
In one embodiment, obtaining an energy coefficient of the three primary colors of light, and calculating a blue light energy duty ratio of the screen to be measured according to the energy coefficient and the regional average RGB value includes: acquiring a monochromatic light energy coefficient of each monochromatic light in the three primary colors, wherein the monochromatic light comprises red light, green light and blue light; acquiring the average RGB value of the area at the average value of 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 value of each monochromatic light, wherein the monochromatic light energy comprises red light energy, green light energy and blue light energy; the blue light energy duty cycle is calculated from 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, calculating a blue light hazard value duty ratio of a screen to be tested according to the blue light hazard weighting function and an area average RGB value, including: obtaining a blue light hazard weighting function of each monochromatic light in the three primary colors of light; 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 blue light damage value duty ratio of the harmful blue light according to the blue light damage value corresponding to each monochromatic light wavelength.
In one embodiment, the method further comprises: converting the average RGB value of the region into the image color temperature of the screen to be tested according to a preset color temperature conversion method; the color temperature of the image is prompted to the user.
In one embodiment, converting the region average RGB values 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 value of each monochromatic light; 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 regional average RGB value of the screen to be measured from 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 the region average RGB value of the screen to be detected according to the first average value.
It should be noted that the above-mentioned method, apparatus, device and computer readable storage medium for detecting blue light parameters belong to a general inventive concept, and the content in the embodiments of the method, apparatus, device and computer readable storage medium for detecting blue light parameters may be mutually applicable.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a non-transitory computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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 DRAM (SLLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not thereby to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (9)

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 region to be detected, acquiring a target RGB value of each pixel point in the at least one region to be detected, and calculating an average RGB value of the region of the screen to be detected according to the target RGB value;
obtaining energy coefficients of three primary colors of light, and calculating the blue light energy ratio of the screen to be tested according to the energy coefficients of the same primary colors of light and the regional average RGB value;
acquiring a blue light hazard weighting function of the three primary colors of light, and calculating a blue light hazard value duty ratio of a harmful blue light wave band of the screen to be tested according to the energy coefficient, the blue light hazard weighting function and the regional average RGB value under the same primary colors of light;
prompting the blue light energy duty ratio and the blue light injury value duty ratio to a user;
the calculating the blue light damage value duty ratio of the harmful blue light wave band of the screen to be tested according to the energy coefficient, the blue light damage weighting function and the regional average RGB value under the same primary color light includes:
calculating blue corresponding to red light according to the blue light hazard weighting function and the red light energyOptical injury value
Figure QLYQS_1
Calculating blue light injury value corresponding to green light according to blue light hazard weighting function and green light energy>
Figure QLYQS_2
Calculating a blue light damage value according to a blue light damage weighting function and blue light energy>
Figure QLYQS_3
Calculating the blue light injury value ratio of harmful blue light according to the blue light injury value corresponding to red light, the blue light injury value corresponding to red light and the blue light injury value corresponding to blue light, wherein the calculation formula is as follows:
Figure QLYQS_4
in the above-mentioned method, the step of,
Figure QLYQS_5
first energy coefficient for red light +.>
Figure QLYQS_8
Second energy coefficient for green light +.>
Figure QLYQS_11
A third energy coefficient for blue light, < >>
Figure QLYQS_7
Average value of red for regional average RGB value, +.>
Figure QLYQS_10
For the area average RGB value at the average value of green light,/->
Figure QLYQS_12
For the area average RGB value at the average value of blue light,/or->
Figure QLYQS_13
A blue hazard weighting function for red light, +.>
Figure QLYQS_6
Blue hazard weighting function for green light, +.>
Figure QLYQS_9
Is a blue hazard weighting function for blue light.
2. The method according to claim 1, wherein the obtaining the energy coefficient of the three primary colors of light, calculating the blue light energy ratio of the screen to be measured according to the energy coefficient of the same primary colors of light and the regional average RGB value, includes:
acquiring a monochromatic light energy coefficient of each monochromatic light in the three primary colors of light, wherein the monochromatic light comprises red light, green light and blue light;
acquiring an average value of the average RGB value of the area in each monochromatic light, and calculating monochromatic light energy of each monochromatic light according to each monochromatic light energy coefficient and the average 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 according to claim 1, wherein the method further comprises:
converting the average RGB value of the region into the image color temperature of the screen to be tested according to a preset color temperature conversion method;
and prompting the color temperature of the image to a user.
4. The method according to claim 3, wherein the converting the region average RGB values into the color temperature of the screen display image to be measured according to a preset color temperature conversion method includes:
calculating pixel offset according to the average value of each monochromatic light;
substituting the pixel offset into a preset fitting formula to calculate the image color temperature of the screen to be measured.
5. The method according to claim 1, wherein the background of the image to be measured is white in a white balance state, and the aspect ratio of the image to be measured is a preset aspect ratio;
the at least one region to be measured comprises at least one circular region with the same size, and the at least one circular 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.
6. The method of claim 1, wherein calculating the area average RGB values of the screen to be measured from the target RGB values 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.
7. A blue light parameter detection device, the device comprising:
the regional average RGB value calculation module is used for obtaining an image to be detected on a screen to be detected, wherein the image to be detected comprises at least one region to be detected, obtaining a target RGB value of each pixel point in the at least one region to be detected, and calculating the regional average RGB value of the screen to be detected according to the target RGB value;
the blue light energy duty ratio calculation module is used for obtaining energy coefficients of three primary colors of light and calculating the blue light energy duty ratio of the screen to be measured according to the energy coefficients of the same primary colors of light and the regional average RGB value;
the blue light damage value duty ratio calculation module is used for obtaining a blue light damage weighting function of the three primary colors of light and calculating the blue light damage value duty ratio of a harmful blue light wave band of the screen to be detected according to the energy coefficient, the blue light damage weighting function and the regional average RGB value under the same primary colors of light;
the prompting module is used for prompting the blue light energy duty ratio and the blue light injury value duty ratio to a user;
wherein, the blue light damage value duty ratio of the harmful blue light wave band of the screen to be tested is calculated according to the energy coefficient, the blue light damage weighting function and the regional average RGB value under the same primary color light, and the blue light damage value corresponding to red light is calculated according to the blue light damage weighting function and the red light energy
Figure QLYQS_14
Calculating blue light injury value corresponding to green light according to blue light hazard weighting function and green light energy>
Figure QLYQS_15
Calculating a blue light damage value according to a blue light damage weighting function and blue light energy>
Figure QLYQS_16
Calculating the blue light injury value ratio of harmful blue light according to the blue light injury value corresponding to red light, the blue light injury value corresponding to red light and the blue light injury value corresponding to blue light, wherein the calculation formula is as follows:
Figure QLYQS_17
in the above-mentioned method, the step of,
Figure QLYQS_19
first energy coefficient for red light +.>
Figure QLYQS_21
Second energy coefficient for green light +.>
Figure QLYQS_25
A third energy coefficient for blue light, < >>
Figure QLYQS_20
Average value of red for regional average RGB value, +.>
Figure QLYQS_22
For the area average RGB value at the average value of green light,/->
Figure QLYQS_24
For the area average RGB value at the average value of blue light,/or->
Figure QLYQS_26
A blue hazard weighting function for red light, +.>
Figure QLYQS_18
Blue hazard weighting function for green light, +.>
Figure QLYQS_23
Is a blue hazard weighting function for blue light.
8. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
9. 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 of any one of claims 1 to 6.
CN202110518622.3A 2021-05-12 2021-05-12 Blue light parameter detection method, device, equipment and medium Active CN113240757B (en)

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 CN113240757A (en) 2021-08-10
CN113240757B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115881030B (en) * 2023-01-13 2023-05-05 深圳市瀚达美电子有限公司 Blue light prevention method for Mini-LED display

Citations (5)

* Cited by examiner, † Cited by third party
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
WO2019192044A1 (en) * 2018-04-04 2019-10-10 华为技术有限公司 Ambient light detection method, and terminal
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450212B (en) * 2017-07-14 2020-07-24 厦门天马微电子有限公司 Pixel structure, pixel driving method, color resistance structure, display panel and device
US10725334B2 (en) * 2018-04-17 2020-07-28 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
CN110095261B (en) * 2019-04-01 2021-08-20 南京巨鲨显示科技有限公司 Blue light detection device and method for medical display
CN111834497B (en) * 2019-04-17 2021-07-20 纳晶科技股份有限公司 Quantum dot module, quantum dot light-emitting device, display equipment and eye protection method
CN110220674B (en) * 2019-04-25 2021-06-01 深圳大学 Display screen health performance evaluation method and device
CN112255785A (en) * 2020-10-16 2021-01-22 安徽阳光照明电器有限公司 White light LED color mixing design method for light health and illumination system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
WO2019192044A1 (en) * 2018-04-04 2019-10-10 华为技术有限公司 Ambient light detection method, and terminal
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周孟欣.低蓝光危害的白光LED光源的光谱设计与优化.2019,第56卷(第18期),第182302-1至182302-8页. *

Also Published As

Publication number Publication date
CN113240757A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
US11193830B2 (en) Spectrocolorimeter imaging system
US7974466B2 (en) Method for deriving consistent, repeatable color measurements from data provided by a digital imaging device
US8155413B2 (en) Method and system for analyzing skin conditions using digital images
JP2019070648A (en) High accuracy imaging colorimeter by specially designed pattern closed loop calibration assisted by spectrograph
US7936377B2 (en) Method and system for optimizing an image for improved analysis of material and illumination image features
JP6340884B2 (en) Measuring apparatus, measuring system and measuring method
CN113170028B (en) Method for generating image data of machine learning based imaging algorithm
US20070064978A1 (en) Method and system for automatic identification using digital images
US7616314B2 (en) Methods and apparatuses for determining a color calibration for different spectral light inputs in an imaging apparatus measurement
JP6945620B2 (en) System operating method and program
CN113240757B (en) Blue light parameter detection method, device, equipment and medium
CN113030174B (en) Temperature deformation measurement method and system based on partition filtering
CN113628135A (en) Image color correction method, image color correction device, computer device, and storage medium
CN113848044B (en) Method for detecting brightness and chrominance consistency of display screen
JP2014187558A (en) Image color distribution inspection device and image color distribution inspection method
Pointer et al. Practical camera characterization for colour measurement
JP2016164559A (en) Image color distribution inspection device and image color distribution inspection method
KR20170048454A (en) Image processing method and device
WO2016065856A1 (en) Light radiation measurement method based on light filtering unit and apparatus thereof
CN115065814B (en) Screen color accuracy detection method and device
Keelan et al. Development of a perceptually calibrated objective metric of noise
JP3960989B2 (en) Color estimation system and color estimation method
US9041815B2 (en) Digital camera imaging evaluation module
Abebe et al. Smartphones’ skin colour reproduction analysis for neonatal jaundice detection
Huynh et al. Recovery of spectral sensitivity functions from a colour chart image under unknown spectrally smooth illumination

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