Method and device for detecting display effect of display device, and electronic device
By calculating the pixel value difference between the original image and the dimming image in the display device and evaluating its display effect, the problem that the detection results in the prior art cannot be standardized is solved, and efficient and accurate display effect evaluation is achieved.
Patent Information
- Application Number
- CN202311693237.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2043-12-11
AI Technical Summary
In the prior art, the display effect detection results of display equipment cannot reach standardization and scale, and mainly rely on subjective evaluation of the human eye, resulting in low efficiency and inaccurate results.
By obtaining the pixel values of the original image and dimming image in the set color space, calculating the error parameters of the maximum color difference value and the pixel grayscale value, determining the peak signal-to-noise ratio, and then evaluating the display effect of the display device.
It realizes standardized detection of the display effect of display equipment, improves the accuracy and reliability of the detection results, and can be effectively applied to industrial scale evaluation.
Smart Images

Figure CN117577032B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of display effect detection, and in particular, relates to a method and device for detecting the display effect of a display device, and an electronic device. Background Art
[0002] At present, the production efficiency of display equipment has been greatly improved through automated production. However, when rating the display effect of display equipment, it still mainly relies on human eyes to observe the display effect of display equipment, thereby obtaining a subjective evaluation of the display equipment. This subjective evaluation method is not only inefficient, but also the evaluation results are prone to large deviations due to human subjective feelings, resulting in the evaluation results being unable to be standardized and unable to be applied to large-scale industrial specification evaluation. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device and electronic device for detecting the display effect of a display device, so as to solve the problem that the detection results in the related art cannot be standardized and scaled.
[0004] According to one aspect of an embodiment of the present application, a method for detecting a display effect of a display device is provided, the method comprising:
[0005] Obtaining pixel values of pixels of the original image in a first set color space and pixel values of pixels of the dimming image in the first set color space; the dimming image is an image obtained by performing local dimming on the original image by the display device;
[0006] Determine a maximum color difference value of corresponding pixels in the original image and the dimmed image according to pixel values of the pixels of the original image in the first set color space and pixel values of the pixels of the dimmed image in the first set color space;
[0007] Obtain error parameters of pixel grayscale values of corresponding pixels in the original image and the dimmed image;
[0008] Determine the peak signal-to-noise ratio of the dimmed image relative to the original image according to the error parameters of the maximum color difference value and the pixel grayscale value;
[0009] A detection result of a display effect of the display device is determined based on the peak signal-to-noise ratio.
[0010] In an embodiment provided in the present application, pixel values of pixels of an original image in a first set color space and pixel values of pixels of a dimmed image in the first set color space are obtained, including: obtaining pixel values of pixels of the original image in a second set color space and pixel values of pixels of the dimmed image in the second set color space; obtaining tristimulus values of standard reference white in a preset color system; obtaining a mapping relationship between pixel values of pixels in the first set color space and pixel values of pixels in the second set color space; determining pixel values of pixels of the original image in the first set color space and pixel values of pixels of the dimmed image in the first set color space based on the pixel values of pixels in the second set color space, tristimulus values and mapping relationship.
[0011] In an embodiment provided in the present application, obtaining pixel values of pixels of an original image in a second set color space and pixel values of pixels of a dimmed image in the second set color space includes: obtaining a pixel value ratio of pixel values in the second set color space to pixel values in a third color space; obtaining pixel values of pixels of the original image in the third color space and pixel values of pixels of the dimmed image in the third set color space; determining pixel values of pixels of the original image in the second set color space and pixel values of pixels of the dimmed image in the second set color space based on the pixel value ratio, pixel values of pixels of the original image in the third color space and pixel values of pixels of the dimmed image in the third color space.
[0012] In an embodiment provided in the present application, the maximum color difference value of the corresponding pixel points in the original image and the dimmed image is determined according to the pixel values of the pixel points of the original image in the first set color space and the pixel values of the pixel points of the dimmed image in the first set color space, including: determining the brightness difference, red-green difference and yellow-blue difference of the corresponding pixel points in the original image and the dimmed image according to the pixel values of the pixel points of the original image in the first set color space and the pixel values of the pixel points of the dimmed image in the first set color space; determining the color difference value of the corresponding pixel points in the original image and the dimmed image based on the brightness difference, red-green difference and yellow-blue difference of the corresponding pixel points in the original image and the dimmed image; traversing the corresponding pixel points in the original image and the dimmed image to determine the maximum color difference value of the pixel points in the original image and the dimmed image.
[0013] In an embodiment provided in the present application, based on the brightness difference, red-green difference, and yellow-blue difference of the corresponding pixels in the original image and the dimmed image, the color difference value of the corresponding pixel in the original image and the dimmed image is determined, including: based on the formula: The color difference value ΔE is calculated; where ΔL * Indicates the brightness difference, Δa * Indicates the red-green difference, Δb *Indicates the yellow-blue difference.
[0014] In an embodiment provided in the present application, obtaining error parameters of pixel grayscale values of corresponding pixels in an original image and a dimming image includes: obtaining a first pixel grayscale value K(i, j) of a first pixel in the original image; i represents the pixel position on the horizontal axis of the image, and j represents the pixel position on the vertical axis of the image; obtaining a second pixel grayscale value I(j, i) of a second pixel in the dimming image; the second pixel is a pixel in the dimming image corresponding to the first pixel; based on the formula Calculate the mean square error (MSE) of the pixel grayscale value; where m represents the total number of pixels of the original image on the horizontal axis, and n represents the total number of pixels of the original image on the vertical axis.
[0015] In an embodiment provided in the present application, determining the peak signal-to-noise ratio of the dimmed image relative to the original image according to the error parameter of the maximum color difference value and the pixel grayscale value includes: based on the formula: The peak signal-to-noise ratio LabPSNR is calculated; where ΔE max represents the maximum color difference value, the error parameter is the mean square error, and MSE represents the mean square error of the pixel grayscale value.
[0016] In an embodiment provided in the present application, a detection result of a display effect of a display device is determined based on a peak signal-to-noise ratio, including: when the peak signal-to-noise ratio is greater than a preset threshold, determining that the display effect of the display device is at a first level; when the peak signal-to-noise ratio is less than or equal to the preset threshold, determining that the display effect of the display device is at a second level.
[0017] According to one aspect of the embodiments provided in the present application, the present application provides a device for detecting a display effect of a display device, the device comprising:
[0018] A pixel value acquisition module, used to acquire pixel values of pixels of the original image in a first set color space and pixel values of pixels of the dimming image in the first set color space; the dimming image is an image obtained by the display device performing local dimming on the original image;
[0019] A maximum color difference value acquisition module, used to determine the maximum color difference value of corresponding pixels in the original image and the dimming image according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space;
[0020] An error parameter acquisition module is used to acquire error parameters of pixel grayscale values of corresponding pixels in the original image and the dimmed image;
[0021] A signal-to-noise ratio determination module, used to determine a peak signal-to-noise ratio of the dimmed image relative to the original image according to an error parameter of a maximum color difference value and a pixel grayscale value;
[0022] The level determination module is used to determine the detection result of the display effect of the display device based on the peak signal-to-noise ratio.
[0023] According to one aspect of an embodiment of the present application, a computer medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the pixel grayscale compensation methods provided in the present application is implemented.
[0024] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a shooting module, used to shoot a dimming image displayed by a display device; at least one processor and a memory, the shooting module is connected to the processor, and the processor is connected to the memory; at least one processor is used to execute a computer program stored in the memory to implement a method for detecting the display effect of any display device provided in the present application.
[0025] In the technical solution of the present application, by obtaining the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space; the dimming image is an image after the display device performs local dimming on the original image; according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space, the maximum color difference value of the corresponding pixels in the original image and the dimming image is determined; the error parameters of the pixel grayscale values of the corresponding pixels in the original image and the dimming image are obtained; according to the maximum color difference value and the error parameters of the pixel grayscale value, the peak signal-to-noise ratio of the dimming image relative to the original image is determined; finally, the detection result of the display effect of the display device is determined based on the peak signal-to-noise ratio. Through the method of the present application, the display effect of the display device can be standardizedly detected, and the peak signal-to-noise ratio in the present application is based on the maximum color difference value of the original image and the dimming image in the first set color space, and the error parameters of the pixel grayscale values of the original image and the dimming image, and the display effect of the display device is detected from the perspective of the color difference of the pixel points and the difference of the pixel grayscale value, which can improve the accuracy of the detection result.
[0026] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 The flowchart of a method for detecting a display effect of a display device provided in an embodiment of the present application is schematically shown.
[0029] Figure 2 A schematic diagram of a scenario to which an embodiment of the present application is applicable is shown schematically.
[0030] Figure 3 The flowchart of a method for detecting a display effect of a display device provided in an embodiment of the present application is schematically shown.
[0031] Figure 4 The flowchart of a method for detecting a display effect of a display device provided in an embodiment of the present application is schematically shown.
[0032] Figure 5 A schematic diagram of the structure of a device for detecting a display effect of a display device provided in an embodiment of the present application is schematically shown.
[0033] Figure 6 The structural diagram of an electronic device provided by an embodiment of the present application is schematically shown.
[0034] Figure 7 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0035] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0036] like Figure 1 As shown, a method for detecting a display effect of a display device is provided, the method comprising S110 to S150:
[0037] S110, obtaining pixel values of pixels of the original image in a first set color space and pixel values of pixels of the dimming image in the first set color space; the dimming image is an image obtained by performing local dimming on the original image by the display device.
[0038] Specifically, the first set color space is a color space similar to the visual perception characteristics of the human eye, and the characteristics of the image can be quantified according to the pixel values of the image in the first set color space. Figure 2As shown, the dimmed image is displayed by the display device 210 under objective conditions such as specific light source and environment, and is captured by the camera 220, and the dimmed image is the image after the display device performs local dimming on the original image. In this way, the difference between the original image and the dimmed image can be controlled to be the difference in local dimming performed by the display device.
[0039] Then, obtaining the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimmed image in the first set color space can provide data that conforms to the visual perception characteristics of the human eye for the subsequent determination of the difference between the original image and the dimmed image, thereby making the final detection result conform to the visual perception characteristics of the human eye.
[0040] For example, the first set color space is the CIE 1976L*a*b* color space. Under this L*a*b* color space, the pixel value of pixel point A on the original image is expressed as: L*=52.99, a*=8.82, b*=54.53, and the pixel value of pixel point A' corresponding to pixel point A on the dimming image is expressed as: L*=64.09, a*=2.72, b*=49.28.
[0041] like Figure 3 As shown, in one embodiment provided in the present application, obtaining the pixel value of the pixel point of the original image in the first set color space and the pixel value of the pixel point of the dimming image in the first set color space includes:
[0042] S310: Obtain pixel values of pixels of the original image in a second set color space and pixel values of pixels of the dimming image in the second set color space.
[0043] S320: Obtain tristimulus values of standard reference white in a preset color system.
[0044] S330: Obtain a mapping relationship between a pixel value of a pixel point in a first set color space and a pixel value of a pixel point in a second set color space.
[0045] S340: Determine the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space based on the pixel values, tristimulus values and mapping relationship of the pixels in the second set color space.
[0046] Specifically, since the image captured by the camera is usually an image in the RGB color space. When the first set color space is the L*a*b* color space, it is necessary to first convert the image from the RGB color space to the XYZ color space, and then convert the image from the XYZ color space to the L*a*b* color space. In this embodiment, the image can be converted from the second set color space to the first set color space, that is, the image is converted from the XYZ color space to the L*a*b* color space.
[0047] The tristimulus values of the standard reference white in the preset color system refer to that in the three-color additive model, if the standard reference white and another color mixed with three primary colors of different components both look the same to human eyes, the components of the three primary colors are called the tristimulus values of the color. When the second preset color space is the XYZ color space, the preset color system is CIE 1931XYZ, and the corresponding tristimulus values of the CIE 1931XYZ color system are Xn, Yn and Zn respectively.
[0048] When determining the pixel values X, Y, Z of the pixels of the original image in the second set color space and the pixel values X, Y, Z of the pixels of the dimming image in the second set color space, the pixel values L*, a*, b* of the pixels of the original image in the first set color space and the pixel values L*, a*, b* of the pixels of the dimming image in the first set color space can be determined based on the mapping relationship between the pixel values of the pixels in the first set color space and the pixel values of the pixels in the second set color space.
[0049] Specifically, the L* of the image in the L*a*b* color space is calculated based on the following formula 1.1:
[0050]
[0051] Calculate the above formula 1.1 based on the following formula 1.2
[0052]
[0053] The a* of the image in the L*a*b* color space is calculated based on the following formula 2.1:
[0054]
[0055] Calculate the above formula 2.1 based on the following formula 2.2
[0056]
[0057] The b* of the image in the L*a*b* color space is calculated based on the following formula 3.1:
[0058]
[0059] Calculate the above formula 3.1 based on the following formula 3.2
[0060]
[0061] In an embodiment provided in the present application, obtaining pixel values of pixels of an original image in a second set color space and pixel values of pixels of a dimmed image in the second set color space includes: obtaining a pixel value ratio of pixel values in the second set color space to pixel values in a third color space; obtaining pixel values of pixels of the original image in the third color space and pixel values of pixels of the dimmed image in the third set color space; determining pixel values of pixels of the original image in the second set color space and pixel values of pixels of the dimmed image in the second set color space based on the pixel value ratio, pixel values of pixels of the original image in the third color space and pixel values of pixels of the dimmed image in the third color space.
[0062] Specifically, when the second set color space is the XYZ color space and the third set color space is the RGB color space, the pixel value of the reference light source in the XYZ color space is (X, Y, Z), the pixel value of the reference light source in the RGB color space is (R, G, B), and the pixel value ratio of the pixel value in the XYZ color space to the pixel value in the RGB color space is G.
[0063] If the pixel value ratio Then the pixel value of the pixel on the image in the XYZ color space in, Represents the pixel value of the pixel on the image in the RGB color space.
[0064] S120. Determine a maximum color difference value of corresponding pixels in the original image and the dimmed image according to pixel values of the pixels of the original image in the first set color space and pixel values of the pixels of the dimmed image in the first set color space.
[0065] Specifically, the color difference of the pixel points on the dimmed image relative to the pixel points on the original image is obtained according to the pixel values of the pixel points of the original image in the first set color space and the pixel values of the pixel points of the dimmed image in the first set color space. After the pixel values of the pixel points on the dimmed image are compared with the pixel values of the pixel points on the original image one by one, the maximum color difference value of the corresponding pixel points in the original image and the dimmed image is determined.
[0066] like Figure 4As shown, in an embodiment provided by the present application, according to the pixel value of the pixel point of the original image in the first set color space and the pixel value of the pixel point of the dimming image in the first set color space, determining the maximum color difference value of the corresponding pixel points in the original image and the dimming image includes:
[0067] S410, determining the brightness difference, red-green difference, and yellow-blue difference of corresponding pixels of the original image and the dimming image according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space.
[0068] S420: Determine the color difference values of corresponding pixels in the original image and the dimmed image based on the brightness difference values, red-green difference values, and yellow-blue difference values of corresponding pixels in the original image and the dimmed image.
[0069] S430 , traverse corresponding pixel points in the original image and the dimmed image to determine the maximum color difference value of the pixel points in the original image and the dimmed image.
[0070] Specifically, when the brightness difference, red-green difference, and yellow-blue difference of the corresponding pixel points of the original image and the dimmed image are determined, the color difference value of the corresponding pixel points in the original image and the dimmed image can be determined, and after traversing the corresponding pixel points in the original image and the dimmed image and calculating the color difference value of each corresponding pixel point in the original image and the dimmed image, the maximum color difference value ΔE of the pixel points in the original image and the dimmed image can be determined. max .
[0071] In an embodiment provided in the present application, based on the brightness difference, red-green difference, and yellow-blue difference of the corresponding pixels in the original image and the dimmed image, the color difference value of the corresponding pixel in the original image and the dimmed image is determined, including: based on the formula: The color difference value ΔE is calculated; where ΔL * Indicates the brightness difference, Δa * Indicates the red-green difference, Δb * Indicates the yellow-blue difference.
[0072] Specifically, in the L*a*b* color space, the pixel value of pixel A on the original image is expressed as: L*=52.99, a*=8.82, b*=54.53, and the pixel value of pixel A' corresponding to pixel A on the dimmed image is expressed as: L*=64.09, a*=2.72, b*=49.28. Then the brightness difference ΔL between pixel A' of the dimmed image and pixel A on the original image is * =64.09-52.99=11.1, red-green difference Δa * =2.72-8.82=-6.1, yellow-blue difference Δb *=49.28-54.53=-5.25, so we can get
[0073] S130, obtaining error parameters of pixel grayscale values of corresponding pixel points in the original image and the dimming image.
[0074] Specifically, in one case, the error parameter is the mean square error. In mathematical statistics, the mean square error refers to the expected value of the square of the difference between the estimated value of the parameter and the true value of the parameter, denoted as MSE. MSE is a relatively simple method to measure the square error, which can be used to detect the degree of change of two sets of data. The smaller the value of MSE, the smaller the difference between the two sets of data. Therefore, the present application can detect the difference in pixel grayscale values of corresponding pixel points in the original image and the dimmed image by obtaining the mean square error of the pixel grayscale values of corresponding pixel points in the original image and the dimmed image.
[0075] In an embodiment provided in the present application, obtaining the mean square error of the pixel grayscale values of corresponding pixels in the original image and the dimming image includes: obtaining a first pixel grayscale value K(i, j) of a first pixel in the original image; i represents the pixel position on the horizontal axis of the image, and j represents the pixel position on the vertical axis of the image; obtaining a second pixel grayscale value I(i, j) of a second pixel in the dimming image; the second pixel is a pixel in the dimming image corresponding to the first pixel; based on the formula Calculate the mean square error (MSE) of the pixel grayscale value; where m represents the total number of pixels of the original image on the horizontal axis, and n represents the total number of pixels of the original image on the vertical axis.
[0076] It should be understood that in other embodiments, the root mean square (RMSE), variance, and variance or standard deviation of the pixel grayscale values of the corresponding pixel points in the original image and the dimmed image can be obtained to determine the difference in pixel grayscale values of the corresponding pixel points in the original image and the dimmed image.
[0077] S140 , determining a peak signal-to-noise ratio of the dimmed image relative to the original image according to an error parameter of a maximum color difference value and a pixel grayscale value.
[0078] Specifically, according to the error parameter of the maximum color difference value and the pixel grayscale value, the peak signal-to-noise ratio of the dimmed image relative to the original image is determined, including: based on the formula: The peak signal-to-noise ratio LabPSNR is calculated; where ΔE max Represents the maximum color difference value, the error parameter is the mean square error, and MSE represents the mean square error of the pixel grayscale value.
[0079] S150: Determine a detection result of a display effect of a display device based on the peak signal-to-noise ratio.
[0080] Specifically, the peak signal-to-noise ratio combines the grayscale value difference and color difference of the corresponding pixels on the original image and the dimmed image, so the display effect of the display device can be determined by the size of the peak signal-to-noise ratio. For example, the larger the peak signal-to-noise ratio, the better the display effect of the display device; the smaller the peak signal-to-noise ratio, the worse the display effect of the display device.
[0081] In the technical solution of the present application, by obtaining the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space; the dimming image is an image after the display device performs local dimming on the original image; according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space, the maximum color difference value of the corresponding pixels in the original image and the dimming image is determined; the error parameters of the pixel grayscale values of the corresponding pixels in the original image and the dimming image are obtained; according to the maximum color difference value and the error parameters of the pixel grayscale value, the peak signal-to-noise ratio of the dimming image relative to the original image is determined; finally, the detection result of the display effect of the display device is determined based on the peak signal-to-noise ratio. Through the method of the present application, the display effect of the display device can be standardizedly detected, and the peak signal-to-noise ratio in the present application is based on the maximum color difference value of the original image and the dimming image in the first set color space, and the error parameters of the pixel grayscale values of the original image and the dimming image, and the display effect of the display device is detected from the perspective of the color difference of the pixel points and the difference of the pixel grayscale value, which can improve the accuracy of the detection result.
[0082] In an embodiment provided in the present application, a detection result of a display effect of a display device is determined based on a peak signal-to-noise ratio, including: when the peak signal-to-noise ratio is greater than a preset threshold, determining that the display effect of the display device is at a first level; when the peak signal-to-noise ratio is less than or equal to the preset threshold, determining that the display effect of the display device is at a second level.
[0083] Specifically, the corresponding display effect level is set based on the size of the peak signal-to-noise ratio. For example, when the peak signal-to-noise ratio is greater than a preset threshold, it means that the display effect of the display device meets the product standard, and the display effect of the display device is determined to be the first level; correspondingly, when the peak signal-to-noise ratio is less than the preset threshold, it means that the display effect of the display device does not meet the product standard, and the display effect of the display device is determined to be the second level.
[0084] In other embodiments provided in the present application, more thresholds can be set to divide the display effects of the display device into different detection levels, and the corresponding display devices can be marked so that different processing can be performed on the display devices of different detection levels in the future, such as rework, re-debugging or continuing to the next process.
[0085] like Figure 5 As shown, the present application provides a device for detecting a display effect of a display device, the device comprising:
[0086] The pixel value acquisition module 510 is used to acquire the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space; the dimming image is an image after the display device performs local dimming on the original image;
[0087] A maximum color difference value acquisition module 520 is used to determine the maximum color difference value of corresponding pixels in the original image and the dimmed image according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimmed image in the first set color space;
[0088] The error parameter acquisition module 530 is used to acquire the error parameters of the pixel grayscale values of the corresponding pixels in the original image and the dimmed image;
[0089] A signal-to-noise ratio determination module 540, configured to determine a peak signal-to-noise ratio of the dimmed image relative to the original image according to an error parameter of a maximum color difference value and a pixel grayscale value;
[0090] The level determination module 550 is used to determine the detection result of the display effect of the display device based on the peak signal-to-noise ratio.
[0091] In one embodiment provided in the present application, the pixel value acquisition module 510 includes:
[0092] A second pixel value acquisition unit, used to acquire pixel values of pixels of the original image in a second set color space and pixel values of pixels of the dimming image in the second set color space;
[0093] A tristimulus value acquisition unit, used to acquire tristimulus values of a standard reference white in a preset color system;
[0094] A mapping relationship acquisition unit, used to acquire a mapping relationship between a pixel value of a pixel point in a first set color space and a pixel value of a pixel point in a second set color space;
[0095] The first pixel value determination unit is used to determine the pixel value of the pixel point of the original image in the first set color space and the pixel value of the pixel point of the dimming image in the first set color space based on the pixel value, tristimulus value and mapping relationship of the pixel point in the second set color space.
[0096] In an embodiment provided in the present application, a second pixel value acquisition unit is used to obtain the pixel value ratio of the pixel value in the second set color space to the pixel value in the third color space; obtain the pixel value of the pixel point of the original image in the third color space and the pixel value of the pixel point of the dimming image in the third set color space; based on the pixel value ratio, the pixel value of the pixel point of the original image in the third color space and the pixel value of the pixel point of the dimming image in the third color space, determine the pixel value of the pixel point of the original image in the second set color space and the pixel value of the pixel point of the dimming image in the second set color space.
[0097] In an embodiment provided in the present application, the maximum color difference value acquisition module 520 includes:
[0098] a difference determination unit, for determining a brightness difference, a red-green difference, and a yellow-blue difference between corresponding pixels of the original image and the dimmed image according to pixel values of the pixels of the original image in the first set color space and pixel values of the pixels of the dimmed image in the first set color space;
[0099] A color difference value determining unit, used to determine the color difference values of corresponding pixel points in the original image and the dimmed image based on the brightness difference values, red-green difference values, and yellow-blue difference values of corresponding pixel points in the original image and the dimmed image;
[0100] The maximum color difference value determining unit is used to traverse corresponding pixel points in the original image and the dimmed image to determine the maximum color difference value of the pixel points in the original image and the dimmed image.
[0101] In one embodiment provided in the present application, the color difference value determination unit is used to determine the color difference value based on the formula: The color difference value ΔE is calculated; where ΔL * Indicates the brightness difference, Δa * Indicates the red-green difference, Δb * Indicates the yellow-blue difference.
[0102] In one embodiment provided in the present application, the error parameter acquisition module 530 includes:
[0103] A first grayscale value acquisition unit, used to acquire a first pixel grayscale value K(i, j) of a first pixel point in the original image; i represents the pixel point position on the horizontal axis of the image, and j represents the pixel point position on the vertical axis of the image;
[0104] A second grayscale value acquisition unit, used to acquire a second pixel grayscale value I(i, j) of a second pixel point in the dimming image; the second pixel point is a pixel point in the dimming image corresponding to the first pixel point;
[0105] Grayscale value error calculation unit, used to calculate the grayscale value error based on the formula Calculate the mean square error (MSE) of the pixel grayscale value; where m represents the total number of pixels of the original image on the horizontal axis, and n represents the total number of pixels of the original image on the vertical axis.
[0106] In an embodiment provided in the present application, the signal-to-noise ratio determination module 540 is used to determine the signal-to-noise ratio based on the formula: The peak signal-to-noise ratio LabPSNR is calculated; where ΔE max represents the maximum color difference value, the error parameter is the mean square error, and MSE represents the mean square error of the pixel grayscale value.
[0107] In one embodiment provided in the present application, the level determination module 550 includes:
[0108] A first level determining unit, configured to determine that the display effect of the display device is at a first level when the peak signal-to-noise ratio is greater than a preset threshold;
[0109] The second level determining unit is used to determine that the display effect of the display device is at the second level when the peak signal-to-noise ratio is less than or equal to a preset threshold.
[0110] The specific details of the detection device for the display effect of the display device provided in each embodiment of the present application have been described in detail in the corresponding related method embodiments and will not be repeated here.
[0111] like Figure 6 As shown, the present application provides an electronic device 600, including: a shooting module 610, used to shoot a dimming image displayed by a display device; at least one processor 620 and a memory 630, the shooting module 610 is connected to the processor 620, and the processor 620 is connected to the memory 630; at least one processor 620 is used to execute a computer program stored in the memory 630 to implement a method for detecting the display effect of any display device provided in the present application.
[0112] The specific details of the electronic device provided in each embodiment of the present application have been described in detail in the corresponding related method embodiments and will not be repeated here.
[0113] Figure 7 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0114] It should be noted that Figure 7 The computer system 700 of the mobile device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0115] like Figure 7As shown, the computer system 700 includes a processor 701, which can be a CPU (Central Processing Unit) or an MCU (Microcontroller Unit). The processor 701 can perform various appropriate actions and processes according to the program stored in the read-only memory 702 (Read-Only Memory, ROM) or the program loaded from the storage part 708 to the random access memory 703 (Random Access Memory, RAM). In the random access memory 703, various programs and data required for system operation are also stored. The processor 701, the read-only memory 702 and the random access memory 703 are connected to each other through a bus 704. The input / output interface 705 (Input / Output interface, i.e., I / O interface) is also connected to the bus 704.
[0116] The following components are connected to the input / output interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0117] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 709, and / or installed from a removable medium 711. When the computer program is executed by the processor 701, various functions defined in the system of the present application are executed.
[0118] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0121] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the implementation method according to the present application.
[0122] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0123] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for detecting a display effect of a display device, characterized in that: include: Obtaining pixel values of pixels of the original image in a first set color space and pixel values of pixels of the dimming image in the first set color space; The dimming image is an image captured by a camera after the display device performs local dimming on the original image; the first set color space is a color space similar to the visual perception characteristics of the human eye; Determine, according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space, the brightness difference, the red-green difference, and the yellow-blue difference of the corresponding pixels of the original image and the dimming image; Determine a color difference value of a corresponding pixel point in the original image and the dimmed image based on the brightness difference value, the red-green difference value, and the yellow-blue difference value of the corresponding pixel point in the original image and the dimmed image; Traversing corresponding pixel points in the original image and the dimmed image, and determining a maximum color difference value of the pixel points in the original image and the dimmed image; Obtaining error parameters of pixel grayscale values of corresponding pixels in the original image and the dimming image; Determining a peak signal-to-noise ratio of the dimmed image relative to the original image according to the maximum color difference value and the error parameter of the pixel grayscale value; A detection result of a display effect of the display device is determined based on the peak signal-to-noise ratio.
2. The method for detecting the display effect of a display device according to claim 1, characterized in that: The acquiring pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space includes: Acquire pixel values of pixels of the original image in a second set color space and pixel values of pixels of the dimming image in the second set color space; Obtain the tristimulus values of the standard reference white in a preset color system; Obtaining a mapping relationship between a pixel value of a pixel point in the first set color space and a pixel value of a pixel point in the second set color space; Based on the pixel values of the pixels in the second set color space, the three stimulus values and the mapping relationship, the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimming image in the first set color space are determined.
3. The method for detecting the display effect of a display device according to claim 2, characterized in that: The acquiring pixel values of the pixels of the original image in the second set color space and the pixel values of the pixels of the dimming image in the second set color space includes: Obtaining a pixel value ratio of a pixel value in a second set color space to a pixel value in a third color space; Obtaining pixel values of pixels of the original image in a third color space and pixel values of pixels of the dimming image in the third color space; Based on the pixel value ratio, the pixel values of the pixels of the original image in the third color space, and the pixel values of the pixels of the dimming image in the third color space, determine the pixel values of the pixels of the original image in the second set color space and the pixel values of the pixels of the dimming image in the second set color space.
4. The method for detecting the display effect of a display device according to claim 1, characterized in that: The determining, based on the brightness difference, the red-green difference, and the yellow-blue difference of the corresponding pixel points in the original image and the dimmed image, the color difference value of the corresponding pixel points in the original image and the dimmed image comprises: Based on the formula: , calculate the color difference value ;in, represents the brightness difference value, represents the red-green difference, Represents the yellow-blue difference.
5. The method for detecting the display effect of a display device according to claim 1, characterized in that: The obtaining error parameters of pixel grayscale values of corresponding pixels in the original image and the dimming image includes: Obtaining the grayscale value of the first pixel in the original image ; Indicates the pixel position on the horizontal axis of the image. Indicates the pixel position on the vertical axis of the image; Obtaining a second pixel grayscale value of a second pixel in the dimming image ; The second pixel is a pixel in the dimming image corresponding to the first pixel; Based on the formula , calculate the mean square error of the pixel grayscale value ;in, Represents the total number of pixels of the original image on the horizontal axis. Indicates the total number of pixels of the original image on the vertical axis.
6. The method for detecting the display effect of a display device according to claim 1, characterized in that: The step of determining the peak signal-to-noise ratio of the dimmed image relative to the original image according to the error parameter of the maximum color difference value and the pixel grayscale value includes: Based on the formula: , calculate the peak signal-to-noise ratio ;in, represents the maximum color difference value, the error parameter is the mean square error, Represents the mean square error of the pixel grayscale value.
7. The method for detecting the display effect of a display device according to claim 1, characterized in that: The determining a detection result of a display effect of the display device based on the peak signal-to-noise ratio includes: When the peak signal-to-noise ratio is greater than a preset threshold, determining that the display effect of the display device is at a first level; When the peak signal-to-noise ratio is less than or equal to a preset threshold, it is determined that the display effect of the display device is at the second level.
8. A device for detecting display effect of a display device, characterized in that: include: a pixel value acquisition module, used to acquire pixel values of pixels of an original image in a first set color space and pixel values of pixels of a dimmed image in the first set color space; the dimmed image is an image captured by a camera after a display device performs local dimming on the original image; the first set color space is a color space similar to the visual perception characteristics of human eyes; a maximum color difference value acquisition module, configured to determine the brightness difference, red-green difference, and yellow-blue difference of corresponding pixels of the original image and the dimmed image according to the pixel values of the pixels of the original image in the first set color space and the pixel values of the pixels of the dimmed image in the first set color space; and determine the color difference values of corresponding pixels in the original image and the dimmed image based on the brightness difference, the red-green difference, and the yellow-blue difference of corresponding pixels of the original image and the dimmed image; Traversing corresponding pixel points in the original image and the dimmed image, and determining a maximum color difference value of the pixel points in the original image and the dimmed image; An error parameter acquisition module, used to acquire error parameters of pixel grayscale values of corresponding pixels in the original image and the dimming image; a signal-to-noise ratio determination module, configured to determine a peak signal-to-noise ratio of the dimmed image relative to the original image according to an error parameter of the maximum color difference value and the pixel grayscale value; A level determination module is used to determine a detection result of a display effect of the display device based on the peak signal-to-noise ratio.
9. An electronic device, characterized in that: include: A shooting module, used for shooting a dimming image displayed by a display device; At least one processor and a memory, the shooting module is connected to the processor, and the processor is connected to the memory; The at least one processor is used to execute the computer program stored in the memory to implement the method for detecting the display effect of the display device as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Power saving display having improved image quality
CN111415625A
Dimming method and display device
CN113362777A
Liquid crystal screen detection method and device, computer equipment and storage medium
CN116109561A
Display drive
JP2010139678A
