Display effect determination method and device, equipment, storage medium and program product

By calculating contrast using pixel information from the display device, the problem of inaccurate display effects caused by subjective human judgment is solved, achieving a more accurate and consistent evaluation of display effects and improving the user experience.

CN121323932APending Publication Date: 2026-01-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410937200.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

The human eye's subjective judgment of the display effect of a display device is prone to error, resulting in inconsistent results and affecting the accuracy and consistency of the display effect.

Method used

By acquiring the grayscale and brightness information of each pixel of the display device when displaying an image, the contrast ratio is calculated, and the display effect is determined based on the contrast ratio, reducing the influence of subjective judgment by the human eye.

Benefits of technology

It improves the accuracy and consistency of display effects, reduces errors caused by subjective judgment of the human eye, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121323932A_ABST
    Figure CN121323932A_ABST
Patent Text Reader

Abstract

The invention relates to a display effect determination method and apparatus, a device, a storage medium and a program product. The display effect determination method comprises the steps of obtaining pixel information of each pixel of a display device during image display; wherein the pixel information comprises gray scale and / or brightness; according to the pixel information, determining a contrast ratio of the display device when the image is displayed; determining the display effect of the display equipment according to the contrast ratio; wherein the size of the contrast ratio is in positive correlation with the display effect. The process is executed by the device, the contrast of each frame of image displayed by the display device is executed by the device, and the display effect of the display device is determined by the device according to the contrast. Errors caused by subjective judgment of human eyes on the display effect of the display equipment are reduced, and the process is objective, so that the accuracy of determining the display effect of the display equipment is improved, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of information processing, and in particular, to a display effect determination method and apparatus, a terminal device, a storage medium, and a computer program product. BACKGROUND

[0002] With the development of technology, more and more terminal devices have emerged, and the functions of terminal devices are becoming more and more rich. Each terminal device can be applied in a corresponding use scenario, and the use scenarios of different terminal devices can be different, and the functions thereof can also be different.

[0003] The terminal device includes a display device, which can display content for a user to view. There are various types and models of display devices, and the display effects of different display devices can be different. SUMMARY

[0004] The present disclosure provides a display effect determination method and apparatus, a terminal device, a storage medium, and a computer program product.

[0005] In a first aspect of the embodiments of the present disclosure, a display effect determination method is provided, including: obtaining pixel information of each pixel of a display device when displaying an image; wherein the pixel information includes a gray scale and / or a brightness; determining a contrast ratio of the display device when displaying the image according to the pixel information; determining a display effect of the display device according to the contrast ratio; wherein the size of the contrast ratio is positively correlated with the display effect.

[0006] In one embodiment, the image content of the image is different, and the brightness corresponding to the same gray scale is different.

[0007] In one embodiment, the determining of the contrast ratio according to the pixel information includes: determining at least one sub-contrast ratio of the display device when displaying the image according to the gray scale and / or the brightness; determining the contrast ratio according to the sub-contrast ratio; wherein the sub-contrast ratio has a respective weight.

[0008] In one embodiment, the determining of the at least one sub-contrast ratio of the display device when displaying the image according to the gray scale and / or the brightness includes: determining a first average gray scale of the first N pixels with the highest gray scale in the display device; determining a second average gray scale of the first M pixels with the lowest gray scale in the display device; determining a first sub-contrast ratio of the display device when displaying the image according to the first average gray scale and the second average gray scale; wherein M and N are positive integers.

[0009] In one embodiment, the determining the at least one sub-contrast ratio of the display device when displaying the image according to the gray scale and / or the brightness comprises: determining a first average brightness of the first X pixels with the highest brightness in the display device; determining a second average brightness of the first Y pixels with the lowest brightness in the display device; determining a second sub-contrast ratio of the display device when displaying the image according to the first average brightness and the second average brightness; wherein X and Y are positive integers.

[0010] In one embodiment, the determining the at least one sub-contrast ratio of the display device when displaying the image according to the gray scale and / or the brightness comprises: determining a third average brightness and a fourth average brightness according to the average brightness of the brightness of each of the pixels in the display device; wherein the third average brightness is higher than the average brightness of the brightness of the pixels, and the fourth average brightness is lower than the average brightness of the brightness of the pixels; determining a third sub-contrast ratio of the display device when displaying the image according to the third average brightness and the fourth average brightness.

[0011] In one embodiment, the determining the at least one sub-contrast ratio of the display device when displaying the image according to the gray scale and / or the brightness comprises: determining a third average gray scale and a fourth average gray scale according to the average gray scale of the gray scale of each of the pixels in the display device; wherein the third average gray scale is higher than the average gray scale of the brightness of the pixels, and the fourth average gray scale is lower than the average gray scale of the brightness of the pixels; determining a fourth sub-contrast ratio of the display device when displaying the image according to the third average gray scale and the fourth average gray scale.

[0012] In one embodiment, the determining the at least one sub-contrast ratio of the display device when displaying the image according to the gray scale and / or the brightness comprises: determining a fifth average brightness of the first R pixels with the lowest gray scale in the display device; determining a sixth average brightness of the first T pixels with the highest gray scale in the display device; determining a fifth sub-contrast ratio of the display device when displaying the image according to the fifth average brightness and the sixth average brightness.

[0013] In one embodiment, the obtaining the pixel information of each pixel of the display device when displaying the image comprises: collecting a target image of the display device, wherein the target image comprises an image of the display device when displaying a reference image; determining the pixel information according to the target image; wherein the pixel information comprises a gray scale.

[0014] In one embodiment, the obtaining the pixel information of each pixel of the display device when displaying the image comprises: collecting the brightness of each pixel of the display device when displaying the image by a brightness sensor.

[0015] In a second aspect, the present disclosure provides a display effect determination apparatus, comprising: an acquisition module configured to acquire pixel information of each pixel of a display device when displaying an image; wherein the pixel information comprises a gray scale and / or a brightness; a first determination module configured to determine a contrast of the display device when displaying the image according to the pixel information; and a second determination module configured to determine a display effect of the display device according to the contrast; wherein the contrast is positively correlated with the display effect.

[0016] In a third aspect, the present disclosure provides a terminal device, comprising: a processor and a memory configured to store executable instructions capable of running on the processor, wherein: when the processor runs the executable instructions, the executable instructions perform the method of any of the above embodiments.

[0017] In a fourth aspect, the present disclosure provides a non-transitory computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions are executed by a processor to implement the method of any of the above embodiments.

[0018] In a fifth aspect, the present disclosure provides a computer program product, comprising a computer program or executable instructions, and the computer program or executable instructions are executed by a processor to implement the method of any of the above embodiments.

[0019] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects:

[0020] In the solution of the present disclosure, the display device can display an image, and when displaying the image, the pixel information of each pixel of the display device when displaying the image is acquired, the pixel information can comprise a gray scale and / or a brightness, and the contrast of the display device when displaying the image is determined according to the pixel information. By determining the contrast of the display device when displaying each image, the display effect of the display device is determined according to the contrast. The process of determining the contrast is performed by the device, and the display effect of the display device is also determined by the device according to the contrast. In this way, the error caused by the subjective judgment of the human eye on the display effect of the display screen can be reduced, the process is objectified, and the accuracy of determining the display effect of the display screen is improved, which facilitates the division of display screens with different display effects, the optimization of the display effect, and the improvement of the user experience.

[0021] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0022] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate implementations of the present disclosure and, together with the description, explain the principles of the present disclosure.

[0023] Figure 1 is a schematic diagram of a method for determining a display effect according to an example embodiment;

[0024] Figure 2 is a schematic diagram of another method for determining a contrast ratio according to an example embodiment;

[0025] Figure 3 is a schematic diagram of a method for determining a sub-contrast ratio according to an example embodiment;

[0026] Figure 4 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0027] Figure 5 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0028] Figure 6 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0029] Figure 7 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0030] Figure 8 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0031] Figure 9 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0032] Figure 9 is a schematic diagram of another method for determining a sub-contrast ratio according to an example embodiment;

[0033] Figure 10 is a schematic diagram of a device for determining a display effect according to an example embodiment;

[0034] Figure 11 is a schematic diagram of another method for determining a display effect according to an example embodiment;

[0035] Figure 12 is a block diagram of a terminal device according to an example embodiment. DETAILED DESCRIPTION

[0036] The exemplary embodiments will be described in detail below with reference to the accompanying drawings. The following description is presented in connection with the accompanying drawings in which the same numbers are used in different drawings to refer to the same or similar elements. The implementations described in the following exemplary embodiments are not meant to represent all implementations consistent with the present disclosure. Rather, they are merely examples that are consistent with some aspects of the present disclosure as detailed in the appended claims.

[0037] Many terminal devices have display functions. These terminal devices usually have display devices, and display can be performed through the display devices in the terminal devices. In addition, there are also some separate display devices that can be separated from the associated terminal devices and are not integrated. They are connected through data lines and are used for display only. The models, parameters and other hardware configurations of display devices can be different, which can cause different display effects of display devices when displaying content.

[0038] When a person's eyes watch the display effect of the display screen of a terminal device such as a mobile phone, a tablet, a television, etc., the person's eyes are usually affected by the environment where the display device is located or other factors. When the display effect of the display device is determined, the result is different for different people. For example, people who are more sensitive to color have a more obvious awareness of subtle changes in color, while people who are not sensitive to color have a greater tolerance for color changes.

[0039] Therefore, when the display effect of a display device is determined by a person's eyes, there are subjective factors, which can cause the determination results to be uneven, and the influence of the individual may be greater than the influence of the display itself on the display effect.

[0040] Reference Figure 1 A schematic diagram of a display effect determination method is shown. The method comprises:

[0041] S100, obtaining pixel information of each pixel of a display device when displaying an image; wherein the pixel information includes gray scale and / or brightness.

[0042] S200, determining the contrast of the display device when displaying the image according to the pixel information.

[0043] S300, determining the display effect of the display device according to the contrast; wherein the size of the contrast is positively correlated with the display effect.

[0044] The scheme of this embodiment can be applied to a terminal device, and the execution subject can be a terminal device, which can include mobile terminal devices and fixed terminal devices, etc. Mobile terminal devices can include mobile phones, tablet computers, vehicle-mounted central control devices, wearable devices, smart devices and aircraft, etc. Smart devices can include smart office devices, smart home devices and robots, etc.

[0045] The size, shape, type, model, parameters and other hardware configurations of the display device are not limited and can be any display device with display function. It can be a separate display device such as a display, or a display module in a terminal device such as a display screen in a mobile phone or a display screen in a tablet computer.

[0046] The display device can display according to the display requirement, for example, it can display according to the received display data, and the content of the display can be determined according to the display data.

[0047] For example, the display device can be connected to a controller or a processor, and the controller or the processor can control the display of the display device.

[0048] The display device can display images and videos, and the displayed images or videos are not limited. They can be pre-determined images or videos, or randomly displayed images or videos.

[0049] For example, when displaying an image, the image can be part of a video. A video is composed of multiple images, and a video includes multiple consecutive images. The image displayed by the display device can be one or more images in the video.

[0050] For example, the image can be a standard dynamic range (SDR) image, and it can also be a high dynamic range (HDR) image. The video can be an SDR imaging-based video, or an HDR imaging-based video, i.e. an HDR format video.

[0051] When the display device displays an image, the contrast ratio of the display device when displaying the image can be determined. The contrast ratio is the contrast ratio of the display device, which is different from the contrast ratio of the image.

[0052] The pixel information of each pixel of the display device when displaying the image is obtained. The obtaining method is not limited and can be obtained by the display device itself or by an image acquisition device to acquire the image of the display device when displaying the image, so as to determine the pixel information of each pixel of the display device when displaying the image. The process of obtaining the pixel information of each pixel of the display device when displaying the image is executed by the device.

[0053] The pixel information can include the gray scale and / or brightness of the pixel and other information that can be used to determine the contrast ratio.

[0054] For example, the range of gray scale can include 0 to 255, and it can also be other ranges such as 0 to 2 10 , or 0 to 2 16The brightness can be determined according to the image and the color depth of the display device. The unit of the brightness can be nit, and the range of the brightness is not limited.

[0055] The pixel information of each pixel of the display device when displaying the image is obtained, including:

[0056] The target image of the display device is collected, and the target image includes the image of the display device when displaying the reference image. The pixel information is determined according to the target image; wherein the pixel information includes the gray scale.

[0057] The image of the display device can be collected by the image collection device when the display device displays the reference image. Here, the image displayed by the display device is referred to as the reference image, and the image collected by the image collection device is referred to as the target image. The image content of the target image includes the reference image, and the target image can be understood as the image collected by the image collection device after the reference image is displayed by the display device.

[0058] The image collection device can be connected to the terminal device performing the above steps, and the image collection device can send the gray scale information to the terminal device performing the above steps after collecting the gray scale information.

[0059] The image itself and the effect of the image displayed by the display device are different, because the display device will affect the display of the image, and different display devices will have different display effects and will have different effects on the display of the image. After the display device displays the reference image, the image displayed by the display device is collected by the image collection device, so that the display result of the display device after displaying the image can be obtained, thereby facilitating the determination of the display effect of the display device.

[0060] The target image can include the information of each pixel of the display device, such as the gray scale and the brightness, so that the gray scale and the brightness of each pixel of the display device can be obtained.

[0061] After obtaining the target image, the gray scale of each pixel of the display device in the target image can be identified and compared, so as to determine the gray scale of each pixel of the display device when displaying the image.

[0062] The specifications, models and other various parameters of the image collection device can be determined according to the use requirements, and the quality of the images collected by different image collection devices can be different.

[0063] The pixel information of each pixel of the display device when displaying the image is obtained, and the pixel information can also include:

[0064] The brightness of each pixel of the display device when displaying the image is collected by the brightness sensor.

[0065] When the display device displays the image, the luminance of each pixel in the display device when displaying the image can be collected by the luminance sensor. The luminance sensor can be connected to the terminal device performing the above steps, and the collected luminance information can be transmitted to the terminal device. In this way, the terminal device can accurately obtain the luminance of each pixel in the display device when displaying the image, thereby improving the accuracy of determining the pixel information.

[0066] The model and parameters of the luminance sensor are not limited, and any sensor that can collect the luminance of the pixel can be used.

[0067] After obtaining the pixel information of each pixel of the display device when displaying the image, the contrast of the display device when displaying the image is determined according to the pixel information. The way of determining the contrast of the display device is not limited, including but not limited to: determining the contrast according to the pixel information of each pixel of the display device when displaying the image.

[0068] There can be various ways to determine the contrast according to the pixel information, which are not limited herein. Any way of determining the contrast of the display device according to the gray scale and / or luminance of each pixel of the display device when displaying the image is within the scope of the embodiment.

[0069] For example, the contrast is determined according to the ratio of the highest luminance to the lowest luminance of each pixel. The contrast is determined according to the ratio of the highest gray scale to the lowest gray scale of each pixel.

[0070] After determining the contrast of the display device when displaying the image, the display effect of the display device can be determined according to the determined contrast. The display effect can be represented by an effect level. Different contrasts correspond to different effect levels, and the corresponding effect level can be determined according to the contrast.

[0071] For example, each effect level can correspond to a respective contrast range, and different effect levels correspond to different contrast ranges. The corresponding effect level can be determined according to the contrast range where the contrast is located.

[0072] For example, the display effect is positively correlated with the contrast. The higher the contrast, the larger the value, the higher the effect level, and the better the display effect. The lower the contrast, the lower the value, the lower the effect level, and the worse the display effect.

[0073] Display devices can display images. When displaying images, the contrast ratio of the display device is determined for each image, and the display effect of the device under test is determined based on the contrast ratio. The process of determining the contrast ratio is performed by the device, and the determination of the display effect based on the contrast ratio is also performed by the device. This reduces the error caused by subjective judgment of the display effect by the human eye, objectifies the process, and improves the accuracy of determining the display effect. This facilitates the classification of displays with different display effects and the optimization of display effects, thereby improving the user experience.

[0074] In one embodiment, a contrast ratio can be determined based on each frame of the displayed image, and a target contrast ratio of the display device is determined based on the contrast ratio determined by the display device displaying multiple frames of images.

[0075] For example, through the above steps S100 and S200, the contrast corresponding to each frame of the image displayed by the display device can be determined, and then the target contrast of the display device can be determined by comprehensively considering the contrast determined by the display device displaying multiple frames of images.

[0076] For example, the contrast ratio determined by displaying multiple frames of images on the display device has its own weight, and the target contrast ratio is determined by the contrast ratio determined by displaying multiple frames of images on the display device and the weight.

[0077] For example, different images have different contrast ratios, which can result in different contrast ratios when the display device displays the image. Testing the display device with images of varying contrast ratios can improve the accuracy of determining the display device's contrast ratio. For instance, the contrast ratios of multiple frames of different images can include a first contrast ratio, a second contrast ratio, and a third contrast ratio, with the first contrast ratio, second contrast ratio, and third contrast ratio increasing sequentially.

[0078] For example, in different images, the lowest and highest gray levels of image pixels are different, and / or the lowest and highest brightness of image pixels are different.

[0079] In one embodiment, the brightness corresponding to the same gray level varies depending on the image content.

[0080] When a display device displays an image, the brightness corresponding to the same grayscale level can vary depending on the content of the image. Brightness can be determined based on the image content, color, and other factors. Therefore, the contrast ratio of the display device can be determined by combining both grayscale and brightness information, thereby improving the accuracy of contrast ratio.

[0081] For example, grayscale can be correlated with brightness, and grayscale can be converted to brightness.

[0082] In one embodiment, the contrast of the display device when displaying the first video is determined based on the contrast determined by the display device displaying multiple frames of the first image, wherein the first image is multiple frames of the first video.

[0083] For example, when the display device displays the first video, multiple frames of images in the first video can be captured and denoted as the first image. The corresponding contrast can be determined according to each frame of the first image. Then, the contrast of the display device when displaying the first video can be determined according to the contrast determined when the display device displays each first image.

[0084] The contrast ratio determined based on the display of a single frame image is the contrast ratio of the display device when statically displaying a single frame image. Through this embodiment, the contrast ratio of the display device when displaying video can be obtained, thus determining the contrast ratio of the display device from the perspective of dynamic display.

[0085] In one embodiment, reference Figure 2 This is a schematic diagram of a method for determining contrast, which includes:

[0086] S201, determine at least one sub-contrast ratio of the display device when displaying an image based on grayscale and / or brightness.

[0087] S202, determine the contrast ratio based on the sub-contrast ratios; wherein, the sub-contrast ratios have their own weights.

[0088] In this embodiment, the method of determining the contrast can include one or more, and the contrast determined by each method can be used as a sub-contrast. Then, the final contrast is determined based on the sub-contrast determined by each method.

[0089] This embodiment does not limit the method of determining each sub-contrast ratio. A sub-contrast ratio can be determined solely based on the grayscale of each pixel when the display device displays an image. Alternatively, another sub-contrast ratio can be determined solely based on the brightness of each pixel when the display device displays an image. A third sub-contrast ratio can be determined by combining the grayscale and brightness of each pixel when the display device displays an image. A fourth sub-contrast ratio can be determined based on the grayscale of pixels that meet preset grayscale conditions when the display device displays an image. Finally, a fifth sub-contrast ratio can be determined based on the brightness of pixels that meet preset brightness conditions when the display device displays an image.

[0090] For example, the weight of a sub-contrast can be as low as 0 and as high as 1, and the sum of the weights of all sub-contrasts is 1.

[0091] When there is only one sub-contrast, its weight is 1. When there are multiple sub-contrasts, the sum of the weights of each sub-contrast is 1, and the weight of each sub-contrast can be determined according to requirements.

[0092] For example, when there are multiple sub-contrasts, some sub-contrasts may have a weight of 0.

[0093] This embodiment can determine the final contrast ratio by combining the sub-contrast ratios determined by multiple methods, reducing the inaccuracies caused by determining the contrast ratio by a single method or a single factor. This improves the accuracy of contrast ratio determination, thereby helping to improve the accuracy of determining the display effect of the display device.

[0094] In one embodiment, reference Figure 3 This is a schematic diagram of a method for determining sub-contrast, which includes:

[0095] S1, determine the first average gray level of the top N pixels with the highest gray level in the display device.

[0096] S2, determine the second average gray level of the top M pixels with the lowest gray level in the display device.

[0097] S3, determine the first sub-contrast ratio of the display device when displaying an image based on the first average gray level and the second average gray level; where M and N are positive integers.

[0098] When determining the sub-contrast ratio, it can be based on the grayscale values ​​of each pixel in the display device when displaying an image. The display device can include s*f pixels, where the product of s*f is greater than M and N. After obtaining the grayscale values ​​of each pixel in the display device when displaying an image, the highest N grayscale values ​​can be determined based on their magnitude; these are the top N grayscale values ​​sorted from highest to lowest. These grayscale values ​​represent the grayscale distribution of the brightest area in the display device when displaying an image.

[0099] It can also determine the first average grayscale of the top N pixels with the highest grayscale in the display device. This first average grayscale, as the mean of the top N grayscale levels sorted from highest to lowest among all pixels in the display device when displaying an image, better represents the grayscale of the brightest areas in the display device. This method combines the grayscale of each pixel among the top N pixels with the highest grayscale, reflecting the overall grayscale of the brightest areas in the display device when displaying an image. It reduces the impact of inaccuracies in the grayscale of individual pixels among the top N pixels, improving the accuracy of representing the grayscale of the brightest areas in the display device when displaying an image, thus contributing to the accuracy of determining the display effect of the display device.

[0100] The lowest M gray levels can also be determined based on their size, that is, the top M gray levels sorted from low to high. These gray levels represent the gray level distribution of the darkest area of ​​the display device when displaying an image.

[0101] It can also determine the second average grayscale of the M pixels with the lowest grayscale in the display device. This second average grayscale, as the mean of the M grayscale levels sorted from low to high among all pixels in the display device when displaying an image, better represents the grayscale of the darkest areas in the display device. This method combines the grayscale of each pixel among the M pixels with the lowest grayscale in the display device, reflecting the grayscale of the darkest areas in the display device as a whole. It reduces the impact of inaccuracies in individual grayscale values ​​among the M pixels with the lowest grayscale in the display device, improving the accuracy of representing the grayscale of the darkest areas in the display device when displaying an image, thus contributing to the accuracy of determining the display effect of the display device.

[0102] After obtaining the first average gray level and the second average gray level, the first sub-contrast ratio of the display device when displaying an image can be determined based on the first average gray level and the second average gray level. For example, the ratio of the first average gray level and the second average gray level can be used as the first sub-contrast ratio. The larger the first sub-contrast ratio, the better the display effect of the display device; the smaller the first sub-contrast ratio, the worse the display effect of the display device.

[0103] For example, the grayscale value of the second average grayscale is greater than zero. Alternatively, when the grayscale value of the second average grayscale is determined to be zero, the second average grayscale value is increased to make it greater than zero, for example, by increasing the second average grayscale value by one-thousandth or one-ten-thousandth.

[0104] In one embodiment, reference Figure 4 This is a schematic diagram of another method for determining sub-contrast, which includes:

[0105] S4, determine the first average brightness of the top X pixels with the highest brightness in the display device.

[0106] S5, determine the second average brightness of the Y pixels with the lowest brightness in the display device.

[0107] S6, determine the second sub-contrast ratio of the display device when displaying an image based on the first average brightness and the second average brightness; where X and Y are positive integers.

[0108] There is no sequential relationship between steps S4 to S6 and steps S1 to S3; they are two parallel implementation methods.

[0109] This embodiment is an example of determining sub-contrast based on brightness. In this embodiment, brightness may not be the same as gray level. When the gray level is the same, the brightness may be different. Therefore, a method for determining sub-contrast based on brightness is provided.

[0110] When determining the sub-contrast ratio, it can be based on the brightness of each pixel in the display device when displaying an image. The display device can include s*f pixels, where the product of s*f is greater than X and Y. After obtaining the brightness of each pixel in the display device when displaying an image, the highest X brightness levels can be determined based on their magnitude; that is, the top X brightness levels in descending order. These brightness levels represent the brightness distribution of the brightest area in the display device when displaying an image.

[0111] It is also possible to determine the first average brightness of the X brightest pixels in the display device. This first average brightness, as the average of the brightness of the top X pixels in the display device when displaying an image (ranked from highest to lowest), better represents the brightness of the brightest area in the display device. This method combines the brightness of each pixel in the X brightest pixels, reflecting the overall brightness of the brightest area in the display device when displaying an image. It reduces the impact of inaccuracies in the brightness of individual pixels in the X brightest pixels, improving the accuracy of representing the brightness of the brightest area in the display device, and thus contributing to the accuracy of determining the display effect.

[0112] The lowest Y brightness levels can also be determined based on the magnitude of the brightness, that is, the brightness levels ranked from lowest to highest (Y being the first few Y values). These brightness levels represent the brightness distribution of the darkest areas of the display device when displaying an image.

[0113] It is also possible to determine the second average brightness of the Y pixels with the lowest brightness in the display device. This second average brightness, as the average of the brightness of the top Y pixels in the display device when displaying an image (ranked from lowest to highest), better represents the brightness of the darkest areas in the display device. This method combines the brightness of each pixel in the Y pixels with the lowest brightness, reflecting the overall brightness of the darkest areas in the display device when displaying an image. It reduces the impact of inaccuracies in the brightness of individual pixels in the Y pixels with the lowest brightness, improving the accuracy of representing the brightness of the darkest areas in the display device, thereby contributing to the accuracy of determining the display effect.

[0114] After obtaining the first average brightness and the second average brightness, a second sub-contrast ratio can be determined based on the first and second average brightness when the display device displays an image. For example, the ratio of the first average brightness to the second average brightness can be used as the second sub-contrast ratio. The larger the second sub-contrast ratio, the better the display effect of the display device; the smaller the second sub-contrast ratio, the worse the display effect of the display device.

[0115] For example, the brightness value of the second average brightness is greater than zero, or when the brightness value of the second average brightness is determined to be zero, the second average brightness value is increased to make the second average brightness value greater than zero, for example, by increasing the second average brightness value by one-thousandth or one-ten-thousandth.

[0116] In one embodiment, reference Figure 5 This is a schematic diagram of another method for determining sub-contrast, which includes:

[0117] S7, determine a third average brightness and a fourth average brightness based on the average brightness of each pixel in the display device; wherein the third average brightness is higher than the average brightness of the pixel, and the fourth average brightness is lower than the average brightness of the pixel.

[0118] S8 determines the third sub-contrast ratio of the display device when displaying an image based on the third average brightness and the fourth average brightness.

[0119] This embodiment provides another way to determine sub-contrast based on brightness. Steps S7 and S8 are not sequential with steps S1 to S6.

[0120] After obtaining the brightness of each pixel in the display device when displaying an image, the average brightness of each pixel can be determined. This average brightness also represents the average brightness of all pixels when the display device displays an image. Pixels with brightness higher than this average brightness are identified, and then the average brightness of these pixels is determined and recorded as the third average brightness. Pixels with brightness lower than this average brightness are identified, and then the average brightness of these pixels is determined and recorded as the fourth average brightness.

[0121] The third average brightness represents the average brightness of the bright areas when the display device displays an image. The fourth average brightness represents the average brightness of the dark areas when the display device displays an image. The third and fourth average brightness encompass the brightness of each pixel in the display device, thus combining the brightness of all pixels in the display device. Therefore, the third sub-contrast ratio determined based on the third and fourth average brightness provides a more comprehensive representation of the display device's contrast ratio.

[0122] For example, the ratio of the third average brightness to the fourth average brightness can be used as the third sub-contrast ratio.

[0123] For example, the value of the third sub-contrast is greater than zero.

[0124] In one embodiment, reference Figure 6 This is a schematic diagram of another method for determining sub-contrast, which includes:

[0125] S9, based on the average gray level of each pixel in the display device, determine the third average gray level and the fourth average gray level; wherein, the third average gray level is higher than the average gray level of the pixel brightness, and the fourth average gray level is lower than the average gray level of the pixel brightness.

[0126] S10, determine the fourth sub-contrast ratio of the display device when displaying an image based on the third average gray level and the fourth average gray level.

[0127] This embodiment provides another way to determine sub-contrast based on brightness. Steps S9 and S10 are not sequential with steps S1 to S8.

[0128] After acquiring the grayscale of each pixel in the display device when displaying an image, the average grayscale of each pixel's brightness can be determined. This average grayscale also represents the average grayscale of each pixel when the display device displays an image. Pixels with grayscale values ​​higher than this average grayscale are identified, and then the average grayscale of these pixels is determined, denoted as the third average grayscale. Pixels with grayscale values ​​lower than this average grayscale are identified, and then the average grayscale of these pixels is determined, denoted as the fourth average grayscale.

[0129] The third average grayscale represents the average grayscale of the bright areas when the display device displays an image. The fourth average grayscale represents the average grayscale of the dark areas when the display device displays an image. The third and fourth average grayscales cover the grayscale of each pixel in the display device, thus combining the grayscale of all pixels in the display device. Therefore, the third sub-contrast ratio determined based on the third and fourth average grayscales can more comprehensively represent the contrast ratio of the display device.

[0130] For example, the ratio of the third average gray level to the fourth average gray level can be used as the fourth sub-contrast.

[0131] For example, the value of the fourth sub-contrast is greater than zero.

[0132] In one embodiment, reference Figure 7 This is a schematic diagram of another method for determining sub-contrast, which includes:

[0133] The sixth sub-contrast ratio is determined based on the third average brightness, the fourth average brightness, the third average grayscale, and the fourth average grayscale. For example, the third sub-contrast ratio is determined based on the third average brightness and the fourth average brightness, the fourth sub-contrast ratio is determined based on the third average grayscale and the fourth average grayscale, and the sixth sub-contrast ratio is determined based on the third sub-contrast ratio and the fourth sub-contrast ratio.

[0134] For example, the image displayed by the display device may include Figure 8 The JPG image shown can be in JPG format, or it can be in other image formats. The third average brightness can include... Figure 8 The high-brightness average brightness shown, the fourth average brightness may include Figure 8 The low-brightness average brightness shown, the third average gray level may include Figure 8 The high grayscale average grayscale shown, the fourth average grayscale may include Figure 8 The low grayscale average grayscale is shown.

[0135] In one embodiment, reference Figure 8 This is a schematic diagram of another method for determining sub-contrast, which includes:

[0136] S11, determine the fifth average brightness of the top R pixels with the lowest grayscale in the display device.

[0137] S12, determine the sixth average brightness of the top T pixels with the highest grayscale in the display device.

[0138] S13, determine the fifth sub-contrast ratio of the display device when displaying an image based on the fifth average brightness and the sixth average brightness.

[0139] This embodiment provides another way to determine sub-contrast by combining brightness and grayscale. The three steps S11 to S13 are not sequentially related to S1 to S10.

[0140] After determining the grayscale of each pixel in the display device when displaying an image, the top R pixels with the lowest grayscale can be identified based on these grayscale values. For example, the top R pixels with the lowest grayscale values ​​can be sorted from low to high. Then, the brightness of these R pixels is obtained, and the average brightness of these R pixels is determined, denoted as the fifth average brightness.

[0141] Alternatively, the top T pixels with the highest gray levels can be determined based on the gray levels of each pixel. For example, the top T pixels with the highest gray levels can be sorted from highest to lowest. Then, the brightness of these T pixels is obtained, and the average brightness of these T pixels is determined, which is denoted as the sixth average brightness.

[0142] For example, the ratio of the sixth average brightness to the fifth average brightness can be determined as the fifth sub-contrast ratio.

[0143] The fifth and sixth average brightness are determined first based on grayscale and then on brightness. The fifth average brightness can represent the brightness of the darkest area when the display device displays an image, and the sixth average brightness can represent the brightness of the brightest area when the display device displays an image, thus helping to improve the accuracy of contrast determination.

[0144] In one embodiment, reference Figure 9 This is a schematic diagram illustrating another method for determining sub-contrast.

[0145] Figure 9 The diagram illustrates two frames of an image displayed on a display device. When the display device displays an image, it can acquire the grayscale of each pixel and determine the top R pixels with the lowest grayscale, for example, the top 5000 pixels with the lowest grayscale from low to high. It can also acquire the grayscale of each pixel and determine the top T pixels with the highest grayscale, for example, the top 5000 pixels with the highest grayscale from high to low. Then, it acquires the grayscale of these R pixels and determines the average grayscale of these R pixels, denoted as the fifth average grayscale. Finally, it acquires the grayscale of these T pixels and determines the average grayscale of these T pixels, denoted as the sixth average grayscale.

[0146] A first pixel fill block is generated based on the fifth average gray level, where the gray level of each pixel in the first pixel fill block is the fifth average gray level. The brightness of the first pixel fill block is collected as the fifth average brightness. A second pixel fill block is generated based on the sixth average gray level, where the gray level of each pixel in the second pixel fill block is the sixth average gray level. The brightness of the second pixel fill block is collected as the sixth average brightness. The first and second pixel fill blocks can be pixel fill blocks with x rows and y columns.

[0147] Figure 9 In the image shown in part (a), the black square on the left can be the first pixel fill block, and the white square on the left can be the second pixel fill block. The black square on the right can be the third pixel fill block, and the white square on the right can be the fourth pixel fill block. Figure 9 In the image shown in part (b), the black square on the left can be the first pixel fill block, and the white square on the left can be the second pixel fill block. The black square on the right can be the third pixel fill block, and the white square on the right can be the fourth pixel fill block. The grayscale information of the pixels used to determine the third pixel block is different from that used to determine the first pixel block. The grayscale information of the pixels used to determine the fourth pixel block is different from that used to determine the second pixel block.

[0148] For example, this method can be applied to HDR images.

[0149] In one embodiment, reference Figure 10 This is a schematic diagram of a device for determining a display effect, the device comprising:

[0150] Acquisition module 1 is used to acquire pixel information of each pixel of the display device when displaying an image; wherein, the pixel information includes grayscale and / or brightness;

[0151] The first determining module 2 is used to determine the contrast of the display device when displaying the image based on the pixel information;

[0152] The second determining module 3 is used to determine the display effect of the display device based on the contrast ratio; wherein the magnitude of the contrast ratio is positively correlated with the display effect.

[0153] In one embodiment, the image content of the images is different, and the brightness corresponding to the same gray level is different.

[0154] In one embodiment, the first determining module 2 includes:

[0155] The first determining unit is configured to determine at least one sub-contrast of the display device when displaying the image based on the grayscale and / or the brightness.

[0156] The second determining unit is used to determine the contrast ratio based on the sub-contrast ratios; wherein the sub-contrast ratios have their own weights.

[0157] In one embodiment, the first determining unit includes:

[0158] The first determining subunit is used to determine the first average gray level of the top N pixels with the highest gray level in the display device;

[0159] The second determining subunit is used to determine the second average gray level of the top M pixels with the lowest gray level in the display device;

[0160] The third determining subunit is used to determine the first sub-contrast ratio of the display device when displaying the image based on the first average gray level and the second average gray level; wherein M and N are positive integers.

[0161] In one embodiment, the first determining unit includes:

[0162] The fourth determining subunit is used to determine the first average brightness of the top X pixels with the highest brightness in the display device;

[0163] The fifth determining subunit is used to determine the second average brightness of the Y pixels with the lowest brightness in the display device;

[0164] The sixth determining subunit is used to determine the second sub-contrast ratio of the display device when displaying the image based on the first average brightness and the second average brightness; wherein X and Y are positive integers.

[0165] In one embodiment, the first determining unit includes:

[0166] The seventh determining subunit is used to determine a third average brightness and a fourth average brightness based on the average brightness of the brightness of each pixel in the display device; wherein the third average brightness is higher than the average brightness of the pixel, and the fourth average brightness is lower than the average brightness of the pixel.

[0167] The eighth determining subunit is used to determine the third sub-contrast ratio of the display device when displaying the image based on the third average brightness and the fourth average brightness.

[0168] In one embodiment, the first determining unit includes:

[0169] The ninth determining subunit is used to determine a third average gray level and a fourth average gray level based on the average gray level of each pixel in the display device; wherein the third average gray level is higher than the average gray level of the brightness of the pixel, and the fourth average gray level is lower than the average gray level of the brightness of the pixel.

[0170] The tenth determining subunit is used to determine the fourth sub-contrast ratio of the display device when displaying the image based on the third average gray level and the fourth average gray level.

[0171] In one embodiment, the first determining unit includes:

[0172] The eleventh determining subunit is used to determine the third average brightness of the top R pixels with the lowest gray levels in the display device;

[0173] The twelfth determining subunit is used to determine the fourth average brightness of the top T pixels with the highest gray levels in the display device;

[0174] The thirteenth determining subunit is used to determine the fifth sub-contrast ratio of the display device when displaying the image based on the third average brightness and the fourth average brightness.

[0175] In one embodiment, module 1 includes:

[0176] The acquisition unit is used to acquire a target image of the display device, wherein the target image includes an image of the display device when displaying a reference image;

[0177] The fourteenth determining subunit is used to determine the pixel information based on the target image; wherein the pixel information includes grayscale.

[0178] In one embodiment, the acquisition module 1 is further configured to:

[0179] The brightness of each pixel in the display device is collected by a brightness sensor when displaying an image.

[0180] In another embodiment, an example of another method for determining the display effect is also provided. (See reference...) Figure 11 This is a schematic diagram illustrating another method for determining the display effect.

[0181] 1. First, the existing subjective contrast ratio evaluation is broken down into sub-dimensions. The subjective contrast ratio of a display device is divided into two dimensions: image contrast ratio and video contrast ratio, which respectively consider the differences in the device's capabilities for static and dynamic displays.

[0182] 2. In the image contrast dimension, contrast is divided into two aspects: readability and detail in both bright and dark areas. One aspect examines the overall contrast performance of the image, i.e., the pixel difference between the darkest and brightest areas. The other aspect examines the ability to display details in both dark and bright areas. While maintaining contrast, dark details should be clearly discernible, and bright details should not be overexposed or compressed. Furthermore, considering actual user scenarios, this solution evaluates contrast under multiple brightness levels and in multiple environments. The final objective image contrast score is calculated proportionally from the scores for each brightness level and environment.

[0183] 3. In the video contrast dimension, SDR video is usually displayed according to GAMMA2.2, while HDR video is displayed according to the PQ curve and has higher display brightness. The white point brightness is much higher than that of SDR video. Therefore, HDR video has a larger dynamic range and the overall contrast is higher than that of SDR video. So the video contrast evaluation is divided into two dimensions: SDR video and HDR video.

[0184] (1) The SDR video contrast evaluation dimensions are divided into two parts: readability and detail in bright and dark areas. Considering the scenarios in which users watch videos on display devices such as mobile phones and tablets, subjective contrast is measured in dark rooms, indoors, and in sunlight. At the same time, the ability of SDR video to perform in bright and dark details under various display brightness levels is also considered.

[0185] (2) HDR video contrast evaluation dimension: Since different display devices have special processing for the HDR™ curve at different brightness levels, such as less detail in dark areas at low brightness, some devices will enhance the display effect at low brightness to ensure readability. Therefore, HDR video contrast evaluation considers both contrast and bright / dark detail performance under various environments. While measuring HDR video contrast, it also evaluates the performance of bright and dark details on the same source material, requiring that dark areas be clearly distinguishable and bright details without overexposure or brightness compression.

[0186] 4. Establishment of an objectified atlas of subjective evaluations.

[0187] (1) Regarding the subjective contrast of the images, select N images, including as many low-contrast, medium-contrast, and high-contrast images as possible.

[0188] (2) Regarding the details of the bright and dark parts of the image, select N images, including as many ultra-low grayscale display images and ultra-high grayscale display images as possible.

[0189] (3) Regarding the contrast and brightness details of SDR video, a video is selected, which contains various segments with different contrast performances, as well as images with lower and higher gray levels.

[0190] (4) Regarding the contrast and brightness details of HDR videos, a video should be selected that includes HDR display content with brightness levels ranging from 0 nit to 4000 nit.

[0191] 5. Establishment of an algorithm for objectifying subjective evaluation.

[0192] (1) Determine the first sub-contrast and the second sub-contrast.

[0193] Subjective contrast evaluation dimensions for images and SDR videos. Considering that some display devices now have dynamic contrast display capabilities, meaning different contrast parameters are set according to different display screens, subjective evaluation cannot simply rely on measuring devices like the CS2000 or CS410 to directly measure black and white brightness for contrast calculation. First, the above image sets are displayed on different devices. Each image set is photographed using an area scan camera, saved as a JPG image, and brightness data is retained. The normalization effect of camera-captured JPG images is taken into account (e.g., when storing images, the maximum value is 255; whether the captured image is 240 or 230 gray levels, it will be displayed as 255 gray levels when stored as a JPG image). The average values ​​of the N brightest and darkest gray levels, `dark_gray_avg` and `light_gray_avg`, are extracted from the JPG images. The contrast value `contrast_gray` based on the light-dark gray level ratio is then calculated.

[0194] The first sub-contrast can include the contrast value contrast_gray.

[0195] The average values ​​of the N brightest and darkest luminance values, dark_Lv_avg and light_Lv_avg, are extracted from the luminance data. The contrast ratio (in nits) is then used to calculate the contrast value contrast_Lv. The second sub-contrast value may include contrast_Lv.

[0196] The final contrast_a metric is obtained by proportionally combining contrast_gray and contrast_Lv, for example, as follows:

[0197] contrast_gray=light_gray_avg / (dark_gray_avg+0.00001);

[0198] contrast_Lv=light_Lv_avg / (dark_Lv_avg+0.00001);

[0199] contrast_a=m*contrast_gray+n*contrast_Lv.

[0200] The values ​​of m and n here can be freely set according to the actual situation. Since the dark state of the image may be completely black, 0.00001 is added to the dark grayscale and dark brightness during the calculation of contrast_gray and contrast_Lv to prevent the denominator from being 0. Different display devices will produce different JPG images and brightness data depending on their capabilities. According to the above three formulas, the objective score difference of subjective contrast can be calculated separately. The area scan camera eliminates the difference between subjective human eyes during the shooting process, so the display capabilities of the devices can be ranked and scored according to the score.

[0201] (2) Determine the sixth sub-contrast.

[0202] Image and SDR video highlight and shadow detail evaluation. Following the steps above, capture highlight and shadow detail images on different display devices, obtaining brightness data and JPG images respectively. In the highlight and shadow detail evaluation, first calculate the average brightness value avg_Lv from the brightness data and the average grayscale value avg_Gray from the JPG image. Then, based on whether it is greater than or less than this value, obtain the highlight, low brightness, high grayscale, and low grayscale portions. Finally, use the average brightness of the highlight, average brightness of the low brightness, average grayscale of the high grayscale, and average grayscale of the low grayscale to calculate the highlight and shadow detail score, denoted here as contrast_b, and the formula is as follows:

[0203] contrast_b = fun(average brightness of highlights, average brightness of low highlights, average grayscale of low grayscale, average grayscale of high grayscale). (Reference) Figure 8 The sixth sub-contrast can include contrast_b.

[0204] (3) Determine the fifth sub-contrast.

[0205] Evaluation of HDR video contrast and shadow detail. Because HDR video content brightness ranges from 0 nits to 4000 nits, and its overall dynamic range is large, far exceeding the shooting range of area scan cameras, an algorithm based on CS2000 for subjective display objectification is established when scoring the contrast and shadow detail of HDR videos. The HDR video content is extracted and stored as an image. The average of the darkest 5,000 and highest 5,000 gray levels in the current image is used to create a 500x500 pixel block to fill the original image. Then, the average of the 5,000 to 10,000 lowest and highest gray levels in the current image is used to create a 500x500 pixel block to fill the original image. Using a CS2000, the brightness of the two sets of low gray levels and the two sets of high gray levels is measured and the values ​​max_5000_Lv, min_5000_Lv, max_10000_Lv, and min_10000_Lv are recorded. The min and max values ​​record the bright and dark details of the HDR content, respectively. The ratio of max to min records the contrast information of the current HDR image. Finally, the contrast rating contrast_c of the HDR video is obtained. (Reference) Figure 10 .

[0206] (4) Determine the contrast ratio based on each sub-contrast ratio.

[0207] Display device contrast ratio calculation. The final contrast ratio of a display device is composed of contrast_a, contrast_b, and contrast_c. The higher the value, the better the display device's performance. It can be determined using the following formula:

[0208] contrast_divisor=a*contrast_a+b*contrast_b+c*contrast_c.

[0209] The weight of each sub-dimension can be freely adjusted, adaptively changing according to the display dimension of greater concern, ensuring that the sum is 1. This scheme completely eliminates the differences and influences brought about by subjective human evaluation during the evaluation process, using objective testing equipment to judge and score subjective effects, thus forming a display device evaluation scheme that eliminates subjective evaluation differences and transforms subjective evaluation into objectivity.

[0210] 6. Following the steps above, the subjective evaluation objectification model is established. On different display devices, images of different image sets are captured, brightness is measured, and brightness is extracted. The final contrast ratio value is calculated according to the method in step 5, and the contrast ratio display capability score of each device can be obtained.

[0211] This solution proposes a subjective-to-objective evaluation method for display devices that eliminates subjective evaluation differences. When evaluating the display capabilities of devices, the subjective evaluation of effects is no longer done by human eyes. Instead, objective measurement devices such as CS2000 and area scan cameras are used to objectify the subjective evaluation of display devices, avoiding the differences caused by subjective evaluations from different people. This makes the evaluation of display device capabilities more accurate, and the capability differences between different devices can be quantified, which helps to distinguish different levels of display devices and lays the foundation for optimizing display effects.

[0212] This solution focuses on evaluating the subjective contrast ratio of display devices. It establishes an objective scoring standard for subjective contrast ratio performance, distinguishes between different display scenarios such as images and videos, and designs different evaluation algorithms. This standard can be applied to the evaluation of the subjective contrast ratio performance of any subsequent display device.

[0213] It should be noted that the terms "first" and "second" in the embodiments of this disclosure are for ease of description and distinction only, and have no other specific meaning.

[0214] Figure 12 This is a block diagram illustrating a terminal device according to an exemplary embodiment. For example, the terminal device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0215] Reference Figure 12 The terminal device may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input / output (I / O) interface 912, sensor component 914, and communication component 916.

[0216] Processing component 902 typically controls the overall operation of the terminal device, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0217] Memory 904 is configured to store various types of data to support operation on the terminal device. Examples of this data include instructions for any application or method operating on the terminal device, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0218] Power component 906 provides power to various components of the terminal device. Power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device.

[0219] Multimedia component 908 includes a screen that provides an output interface between a terminal device and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen can be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the terminal device is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera can receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0220] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when the terminal device is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0221] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0222] Sensor assembly 914 includes one or more sensors for providing status assessments of various aspects of the terminal device. For example, sensor assembly 914 can detect the on / off state of the terminal device, the relative positioning of components such as the display and keypad of the terminal device, changes in the position of the terminal device or a component of the terminal device, the presence or absence of user contact with the terminal device, the orientation or acceleration / deceleration of the terminal device, and temperature changes of the terminal device. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include an optical sensor, such as a Complementary Metal Oxide Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0223] Communication component 916 is configured to facilitate wired or wireless communication between the terminal device and other devices. The terminal device can access wireless networks based on communication standards, such as Wi-Fi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.

[0224] In an exemplary embodiment, the terminal device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0225] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including executable instructions or a computer program, which can be executed by the processor 920 of the device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0226] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a mobile terminal, enables the mobile terminal to perform any of the above-described methods for determining display effects according to embodiments of this disclosure.

[0227] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the display effect determination methods described above in this disclosure.

[0228] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0229] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for determining display effect, characterized in that, The method, executed by a terminal device, includes: Acquire pixel information of each pixel of the display device when displaying an image; wherein, the pixel information includes grayscale and / or brightness; Based on the pixel information, the contrast of the display device when displaying the image is determined; The display effect of the display device is determined based on the contrast ratio; wherein the magnitude of the contrast ratio is positively correlated with the display effect.

2. The method according to claim 1, characterized in that, The images have different content, and the brightness corresponding to the same gray level is different.

3. The method according to claim 1, characterized in that, Determining the contrast of the display device when displaying the image based on the pixel information includes: Based on the grayscale and / or the brightness, at least one sub-contrast of the display device when displaying the image is determined; The contrast ratio is determined based on the sub-contrast ratios; wherein the sub-contrast ratios have their own weights.

4. The method according to claim 3, characterized in that, Determining at least one sub-contrast ratio of the display device when displaying the image based on the grayscale and / or the brightness includes: Determine the first average gray level of the top N pixels with the highest gray levels in the display device; Determine the second average gray level of the top M pixels with the lowest gray levels in the display device; The first sub-contrast ratio of the display device when displaying the image is determined based on the first average gray level and the second average gray level; wherein M and N are positive integers.

5. The method according to claim 3, characterized in that, Determining at least one sub-contrast ratio of the display device when displaying the image based on the grayscale and / or the brightness includes: Determine the first average brightness of the top X pixels with the highest brightness in the display device; Determine the second average brightness of the Y pixels with the lowest brightness in the display device; A second sub-contrast ratio is determined by the display device when displaying the image based on the first average brightness and the second average brightness; wherein X and Y are positive integers.

6. The method according to claim 3, characterized in that, Determining at least one sub-contrast ratio of the display device when displaying the image based on the grayscale and / or the brightness includes: A third average brightness and a fourth average brightness are determined based on the average brightness of each pixel in the display device; wherein the third average brightness is higher than the average brightness of the pixel, and the fourth average brightness is lower than the average brightness of the pixel. The third sub-contrast ratio of the display device when displaying the image is determined based on the third average brightness and the fourth average brightness.

7. The method according to claim 3, characterized in that, Determining at least one sub-contrast ratio of the display device when displaying the image based on the grayscale and / or the brightness includes: A third average gray level and a fourth average gray level are determined based on the average gray level of each pixel in the display device; wherein the third average gray level is higher than the average gray level of the pixel's brightness, and the fourth average gray level is lower than the average gray level of the pixel's brightness. The fourth sub-contrast ratio of the display device when displaying the image is determined based on the third average gray level and the fourth average gray level.

8. The method according to claim 3, characterized in that, Determining at least one sub-contrast ratio of the display device when displaying the image based on the grayscale and / or the brightness includes: Determine the fifth average brightness of the R pixels with the lowest grayscale in the display device; Determine the sixth average brightness of the top T pixels with the highest grayscale in the display device; The fifth sub-contrast ratio of the display device when displaying the image is determined based on the fifth average brightness and the sixth average brightness.

9. The method according to claim 1, characterized in that, The step of obtaining pixel information of each pixel of the display device when displaying an image includes: Acquire a target image of the display device, wherein the target image includes: an image of the display device when displaying a reference image; The pixel information is determined based on the target image; wherein the pixel information includes grayscale.

10. The method according to claim 1, characterized in that, The step of obtaining pixel information of each pixel of the display device when displaying an image includes: The brightness of each pixel in the display device is collected by a brightness sensor when displaying an image.

11. A device for determining display effect, characterized in that, include: An acquisition module is used to acquire pixel information of each pixel of the display device when displaying an image; wherein, the pixel information includes grayscale and / or brightness; The first determining module is used to determine the contrast of the display device when displaying the image based on the pixel information; The second determining module is used to determine the display effect of the display device based on the contrast ratio; wherein the magnitude of the contrast ratio is positively correlated with the display effect.

12. A terminal device, characterized in that, include: A processor and a memory for storing computer programs or executable instructions capable of running on the processor, wherein: When the processor is used to run the computer program or the executable instructions, the executable instructions perform the method described in any one of claims 1 to 10.

13. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores a computer program or computer-executable instructions, which, when executed by a processor, implement the method described in any one of claims 1 to 10.

14. A computer program product, comprising a computer program or executable instructions, characterized in that, When the computer program or executable instructions are executed by a processor, they implement the method of any one of claims 1 to 10.