Image processing method, device, electronic device and storage medium for terminal device
By processing image information of different grayscale values using a predetermined mapping relationship in the terminal device, high dynamic range (HDR) display is achieved, solving the problem of large modifications to the screen display architecture in existing technologies and improving display effect and compatibility.
Patent Information
- Application Number
- CN202010623671.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2040-06-30
AI Technical Summary
Existing HDR display technology has high requirements for the brightness, contrast and color depth of the terminal device screen, which requires significant changes to the display architecture, resulting in increased cost and complexity.
By acquiring the original grayscale information of the target image and using different pre-determined mapping relationships, information with grayscale values higher than and lower than a set threshold is processed respectively, thereby achieving high dynamic range (HDR) display without changing the screen display architecture.
Without altering the terminal device's screen display architecture, ultra-high brightness display of information with grayscale values exceeding a set threshold is achieved, while maintaining compatibility with normal display of grayscale values below the threshold, thus improving display quality and compatibility.
Smart Images

Figure CN113870368B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to an image processing method, device, electronic device and storage medium for a terminal device. Background Art
[0002] With the development of High Dynamic Range Imaging (HDRI or HDR) technology, the research and development and application of HDR display technology has become increasingly important. The current HDR display technology has high requirements for the screen of the terminal device, including the brightness, contrast and color depth of the screen. If the screen is to fully meet the requirements of HDR effects, it is necessary to make major changes to the display architecture of the current terminal screen, such as changing the driver of the display screen. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide an image processing method, an apparatus, an electronic device and a storage medium of a terminal device to solve the defects in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method for a terminal device, the method comprising:
[0005] Obtaining original grayscale information of the target image to be displayed;
[0006] When the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, determining a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship is different from a second mapping relationship, the second mapping relationship is used to determine a second actual display brightness corresponding to second grayscale information, and the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold;
[0007] On the screen of the terminal device, pixel information corresponding to the first grayscale information is displayed based on the first actual display brightness.
[0008] In one embodiment, the method further comprises debugging the screen of the terminal device based on the following steps:
[0009] Acquiring screen grayscale information of the screen of the terminal device;
[0010] When the screen grayscale information is first screen grayscale information whose grayscale value is higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness, and the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is the set maximum brightness threshold;
[0011] The actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined, where the first target mapping relationship is used to determine the first mapping relationship.
[0012] In one embodiment, the method further comprises constructing a correspondence relationship between the high grayscale and the target brightness based on the following steps:
[0013] Constructing a linear function of the first target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, wherein the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0014] The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
[0015] In one embodiment, the method further comprises debugging the screen of the terminal device based on the following steps:
[0016] When the screen grayscale information is second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold, determining a second target display brightness corresponding to the second screen grayscale information based on a gamma function;
[0017] The actual display brightness corresponding to the second screen grayscale information is debugged based on the second target display brightness, and a second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness is determined, where the second target mapping relationship is used to determine the second mapping relationship.
[0018] In one embodiment, the method further comprises storing the target image based on the following steps:
[0019] Acquiring display grayscale information of the target image;
[0020] When the display grayscale information is second display grayscale information whose grayscale value is higher than the first display grayscale threshold, the second display grayscale information is mapped to a second grayscale interval to obtain second stored grayscale information, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit;
[0021] The pixel information corresponding to the second display grayscale information in the target image is stored based on the second stored grayscale information.
[0022] In one embodiment, mapping the second display grayscale information to a second grayscale interval to obtain second storage grayscale information includes:
[0023] When the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold;
[0024] When the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
[0025] According to a second aspect of an embodiment of the present disclosure, a method for debugging a screen of a terminal device is provided, including:
[0026] Obtaining screen grayscale information of the terminal device's screen;
[0027] When the screen grayscale information is first screen grayscale information whose grayscale value is higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness, and the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is the set maximum brightness threshold;
[0028] The actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined, where the first target mapping relationship is used to determine the first mapping relationship.
[0029] In one embodiment, the method further comprises constructing a correspondence relationship between the high grayscale and the target brightness based on the following steps:
[0030] Constructing a linear function of the first target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, wherein the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0031] The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
[0032] According to a third aspect of an embodiment of the present disclosure, a method for storing a target image is provided, including:
[0033] Obtain the display grayscale information of the target image;
[0034] When the display grayscale information is second display grayscale information whose grayscale value is higher than the first display grayscale threshold, the second display grayscale information is mapped to a second grayscale interval to obtain second stored grayscale information, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit;
[0035] The pixel information corresponding to the second display grayscale information in the target image is stored based on the second stored grayscale information.
[0036] In one embodiment, mapping the second display grayscale information to a second grayscale interval to obtain second storage grayscale information includes:
[0037] When the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold;
[0038] When the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
[0039] According to a fourth aspect of an embodiment of the present disclosure, there is provided an image processing apparatus of a terminal device, the apparatus comprising:
[0040] An original grayscale acquisition module, used to acquire original grayscale information of a target image to be displayed;
[0041] A display brightness determination module, configured to determine, when the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship being different from a second mapping relationship, the second mapping relationship being used to determine a second actual display brightness corresponding to second grayscale information, the grayscale value of the second grayscale information being lower than or equal to the set grayscale threshold;
[0042] A pixel information display module is used to display the pixel information corresponding to the first grayscale information on the screen of the terminal device based on the first actual display brightness.
[0043] In one embodiment, the device further comprises a screen debugging module;
[0044] The screen debugging module includes:
[0045] A screen grayscale acquisition unit, used to acquire screen grayscale information of the screen of the terminal device;
[0046] A first brightness determination unit is used to determine, when the screen grayscale information is first screen grayscale information with a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information based on a predetermined correspondence relationship between a high grayscale and a target brightness, wherein the first target display brightness corresponding to an upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold;
[0047] A first relationship determination unit is used to debug the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determine a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, wherein the first target mapping relationship is used to determine the first mapping relationship.
[0048] In one embodiment, the apparatus further comprises a corresponding relationship determining unit;
[0049] The corresponding relationship determining unit is used to:
[0050] Constructing a linear function of the first target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, wherein the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0051] The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
[0052] In one embodiment, the screen debugging module further includes:
[0053] A second brightness determination unit, configured to determine, based on a gamma function, a second target display brightness corresponding to the second screen grayscale information when the screen grayscale information is second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold;
[0054] A second relationship determination unit is used to debug the actual display brightness corresponding to the second screen grayscale information based on the second target display brightness, and determine a second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness, and the second target mapping relationship is used to determine the second mapping relationship.
[0055] In one embodiment, the device further comprises a target image storage module;
[0056] The target image storage module comprises:
[0057] A display grayscale acquisition unit, used to acquire display grayscale information of the target image;
[0058] A second grayscale acquisition unit, configured to map the second display grayscale information to a second grayscale interval to obtain second stored grayscale information when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit;
[0059] A pixel information storage unit is used to store pixel information corresponding to the second display grayscale information in the target image based on the second stored grayscale information.
[0060] In one embodiment, the second grayscale acquisition unit is further used for:
[0061] When the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold;
[0062] When the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
[0063] According to a fifth aspect of an embodiment of the present disclosure, there is provided an apparatus for debugging a screen of a terminal device, including:
[0064] A screen grayscale acquisition module, used to acquire screen grayscale information of the screen of the terminal device;
[0065] A first brightness determination module is used to determine, when the screen grayscale information is first screen grayscale information with a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information based on a predetermined correspondence relationship between a high grayscale and a target brightness, wherein the first target display brightness corresponding to an upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold;
[0066] A first relationship determination module is used to debug the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determine a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, wherein the first target mapping relationship is used to determine the first mapping relationship.
[0067] In one embodiment, the device further comprises a corresponding relationship determination module;
[0068] The corresponding relationship determination module includes:
[0069] a linear function construction unit, configured to construct a linear function of the first target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, wherein the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0070] A correspondence determination unit is used to determine the correspondence between the high gray scale and the target brightness based on the linear function.
[0071] According to a sixth aspect of an embodiment of the present disclosure, there is provided a device for storing a target image, including:
[0072] A display grayscale acquisition module, used to acquire display grayscale information of a target image;
[0073] A second grayscale acquisition module, configured to map the second display grayscale information to a second grayscale interval to obtain second stored grayscale information when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit;
[0074] A pixel information storage module is used to store pixel information corresponding to the second display grayscale information in the target image based on the second stored grayscale information.
[0075] In one embodiment, the second grayscale acquisition module includes:
[0076] a third information acquisition unit, configured to map the third display grayscale information to a first sub-grayscale interval to obtain third sub-storage grayscale information when the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to a second display grayscale threshold, wherein the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold;
[0077] A fourth information acquisition unit is used to map the fourth display grayscale information to the second sub-grayscale interval to obtain fourth sub-storage grayscale information when the display grayscale information is the fourth display grayscale information with a grayscale value higher than the second display grayscale threshold, wherein the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
[0078] According to a seventh aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0079] a processor, and a memory for storing instructions executable by the processor;
[0080] Wherein, the processor is configured to:
[0081] Obtaining original grayscale information of the target image to be displayed;
[0082] When the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, determining a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship is different from a second mapping relationship, the second mapping relationship is used to determine a second actual display brightness corresponding to second grayscale information, and the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold;
[0083] On the screen of the terminal device, pixel information corresponding to the first grayscale information is displayed based on the first actual display brightness.
[0084] According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0085] Obtaining original grayscale information of the target image to be displayed;
[0086] When the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, determining a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship is different from a second mapping relationship, the second mapping relationship is used to determine a second actual display brightness corresponding to second grayscale information, and the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold;
[0087] On the screen of the terminal device, pixel information corresponding to the first grayscale information is displayed based on the first actual display brightness.
[0088] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0089] The present disclosure obtains original grayscale information of a target image to be displayed, and when the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, determines a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, wherein the first mapping relationship is different from a second mapping relationship, and the second mapping relationship is used to determine a second actual display brightness corresponding to the second grayscale information, and the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold, and then displays pixel information corresponding to the first grayscale information on the screen of the terminal device based on the first actual display brightness. Since the first actual display brightness corresponding to the first grayscale information is determined based on a predetermined first mapping relationship different from the second mapping relationship, it is possible to achieve ultra-high brightness high dynamic range HDR effect display of grayscale information whose grayscale value is higher than the set grayscale threshold without changing the display architecture of the screen of the terminal device, and at the same time is compatible with the normal display of grayscale information whose grayscale value is lower than the set grayscale threshold in the related technology.
[0090] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0092] Figure 1 is a flowchart of an image processing method of a terminal device according to an exemplary embodiment;
[0093] Figure 2 is a flowchart showing how to debug a screen of a terminal device according to an exemplary embodiment;
[0094] Figure 3 is a flow chart showing how to construct the corresponding relationship between the high gray scale and the target brightness according to an exemplary embodiment;
[0095] Figure 4 is a flowchart showing how to debug a screen of a terminal device according to another exemplary embodiment;
[0096] Figure 5is a flowchart showing how to store a target image according to an exemplary embodiment;
[0097] Figure 6 is a flow chart showing how to map the second display grayscale information to a second grayscale interval to obtain second storage grayscale information according to an exemplary embodiment;
[0098] Figure 7 is a flow chart of a method for debugging a screen of a terminal device according to an exemplary embodiment;
[0099] Figure 8 is a flow chart showing how to construct the corresponding relationship between the high gray scale and the target brightness according to an exemplary embodiment;
[0100] Fig. 9 is a flow chart showing a method for storing a target image according to an exemplary embodiment;
[0101] Fig.10 is a flowchart of a method for storing a target image according to another exemplary embodiment;
[0102] Fig.11 is a block diagram of an image processing apparatus of a terminal device according to an exemplary embodiment;
[0103] Fig.12 is a block diagram of another image processing apparatus of a terminal device according to an exemplary embodiment;
[0104] Fig.13 is a block diagram of an apparatus for debugging a screen of a terminal device according to an exemplary embodiment;
[0105] Fig.14 is a block diagram of a device for storing a target image according to an exemplary embodiment;
[0106] Fig.15 The invention is a block diagram of a smart device according to an exemplary embodiment. DETAILED DESCRIPTION
[0107] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0108] Figure 11 is a flowchart of an image processing method for a terminal device according to a first exemplary embodiment; the image processing method for a terminal device can be applied to a terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device, etc.). Figure 1 As shown, the image processing method of the terminal device includes the following steps S101-S103:
[0109] In step S101: original grayscale information of a target image to be displayed is obtained.
[0110] In this embodiment, when a target image is displayed through the screen of a terminal device, grayscale information of each pixel in the target image may be obtained.
[0111] In one embodiment, the original grayscale information of the target image may be first grayscale information having a grayscale value higher than a set grayscale threshold. In another embodiment, the original grayscale information may be second grayscale information having a grayscale value lower than or equal to the set grayscale threshold.
[0112] It is worth noting that the grayscale threshold can be set by developers based on actual business, such as being set to 250, etc., and this embodiment does not limit this.
[0113] On this basis, after obtaining the original grayscale information of the target image to be displayed, it can be determined whether the grayscale information is the first grayscale information with a grayscale value higher than the set grayscale threshold, or the second grayscale information with a grayscale value lower than or equal to the set grayscale threshold.
[0114] In step S102: when the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, a first actual display brightness corresponding to the first grayscale information is determined based on a predetermined first mapping relationship.
[0115] In one embodiment, after determining that the grayscale information is the first grayscale information whose grayscale value is higher than the set grayscale threshold, the first actual display brightness corresponding to the first grayscale information can be determined based on a predetermined first mapping relationship; or, after determining that the grayscale information is the second grayscale information whose grayscale value is lower than or equal to the set grayscale threshold, the second actual display brightness corresponding to the second grayscale information can be determined based on a predetermined second mapping relationship.
[0116] The first mapping relationship is different from the second mapping relationship.
[0117] In actual implementation, the first mapping relationship and the second mapping relationship may be determined during the process of debugging the screen of the terminal device.
[0118] In this embodiment, after obtaining the original grayscale information of the target image to be displayed, the first actual display brightness corresponding to the first grayscale information and the second actual display brightness corresponding to the second grayscale information can be respectively determined based on the first mapping relationship and the second mapping relationship determined during the debugging of the screen of the terminal device.
[0119] It can be understood that, since the first actual display brightness corresponding to the first grayscale information and the second actual display brightness corresponding to the second grayscale information are respectively determined based on different mapping relationships determined in the process of debugging the screen of the terminal device, it is possible to achieve ultra-high brightness high dynamic range HDR effect display of grayscale information with grayscale values higher than the set grayscale threshold without changing the display architecture of the screen of the terminal device.
[0120] In another embodiment, the above process of debugging the screen of the terminal device can refer to the following Figure 2 The illustrated embodiment will not be described in detail here.
[0121] In step S103: on the screen of the terminal device, pixel information corresponding to the first grayscale information is displayed based on the first actual display brightness.
[0122] For example, on the screen of the terminal device, pixel information corresponding to the first grayscale information may be displayed based on the first actual display brightness, and pixel information corresponding to the second grayscale information may be displayed based on the second actual display brightness.
[0123] In this embodiment, after the first actual display brightness corresponding to the first grayscale information is determined based on a predetermined first mapping relationship, and the second actual display brightness corresponding to the second grayscale information is determined based on a predetermined second mapping relationship, the pixel information corresponding to the first grayscale information can be displayed on the screen of the terminal device based on the first actual display brightness, and the pixel information corresponding to the second grayscale information can be displayed based on the second actual display brightness.
[0124] It is worth noting that the above-mentioned method of displaying pixel information based on actual display brightness can be referred to the explanation and description in the relevant technology, and this embodiment does not limit this.
[0125] It can be seen from the above description that this embodiment obtains the original grayscale information of the target image to be displayed. When the original grayscale information is the first grayscale information whose grayscale value is higher than the set grayscale threshold, the first actual display brightness corresponding to the first grayscale information is determined based on a predetermined first mapping relationship, the first mapping relationship is different from the second mapping relationship, the second mapping relationship is used to determine the second actual display brightness corresponding to the second grayscale information, the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold, and then on the screen of the terminal device, the pixel information corresponding to the first grayscale information is displayed based on the first actual display brightness. Since the first actual display brightness corresponding to the first grayscale information is determined based on the predetermined first mapping relationship that is different from the second mapping relationship, the ultra-high brightness high dynamic range HDR effect can be displayed for the grayscale information whose grayscale value is higher than the set grayscale threshold without changing the display architecture of the screen of the terminal device, and at the same time, it can be compatible with the normal display of the grayscale information whose grayscale value is lower than the set grayscale threshold in the related technology.
[0126] Figure 2 The flowchart of how to debug the screen of a terminal device according to an exemplary embodiment is shown; based on the above embodiment, this embodiment may also include debugging the screen of the terminal device based on the following steps S201-S203:
[0127] In step S201, screen grayscale information of the screen of the terminal device is obtained.
[0128] The panel of the screen in this embodiment may be an 8-bit panel, that is, it has a 255 grayscale display function.
[0129] It is worth noting that the grayscale threshold can be set by developers based on actual business, such as being set to 250, etc., and this embodiment does not limit this.
[0130] On this basis, after obtaining the screen grayscale information of the terminal device's screen, it can be determined whether the grayscale information is the first screen grayscale information whose grayscale value is higher than the set grayscale threshold, or the second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold.
[0131] In step S202, when the screen grayscale information is first screen grayscale information having a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness.
[0132] The first target display brightness corresponding to the grayscale value upper limit of the first screen grayscale information is the set maximum brightness threshold. For example, if the set maximum brightness threshold is 1000 (unit: nit), the first target display brightness corresponding to the grayscale value upper limit 255 of the grayscale information can be 1000 (unit: nit).
[0133] In this embodiment, the correspondence between the high grayscale and the target brightness can be determined in advance. The correspondence is different from the gamma function in the related art. Based on the correspondence, the first screen grayscale information with a grayscale value higher than the set grayscale threshold can be mapped to the first target display brightness, and the brightness value of the first target display brightness belongs to ultra-high brightness, thereby realizing the display of ultra-high brightness high dynamic range HDR effect.
[0134] In another embodiment, the construction method of the above-mentioned correspondence between high grayscale and target brightness can refer to the following Figure 3 The illustrated embodiment will not be described in detail here.
[0135] In step S203, the actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined.
[0136] The first target mapping relationship is used to determine the first mapping relationship.
[0137] In this embodiment, when the first target display brightness corresponding to the first grayscale information is determined based on the predetermined correspondence between the high grayscale and the target brightness, the actual display brightness corresponding to the first grayscale information can be debugged based on the first target display brightness, and the first mapping relationship between the first grayscale information and the corresponding actual display brightness can be determined.
[0138] It is worth noting that the above-mentioned first target mapping relationship can be used to determine the first mapping relationship between the original grayscale information of the image and the actual display brightness. That is, after determining the first original grayscale information of the target image, the actual display brightness corresponding to the first screen grayscale information having the same grayscale value as the first original grayscale information can be determined based on the first target mapping relationship, and the actual display brightness is determined as the first actual display brightness corresponding to the first original grayscale information of the target image.
[0139] As can be seen from the above description, this embodiment obtains the screen grayscale information of the screen of the terminal device, and when the screen grayscale information is the first screen grayscale information whose grayscale value is higher than the set grayscale threshold, the first target display brightness corresponding to the first screen grayscale information is determined based on the predetermined correspondence between the high grayscale and the target brightness, the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is the set maximum brightness threshold, and then the actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and the first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined, wherein the first target mapping relationship is used to determine the first mapping relationship, which can realize the debugging of the high grayscale information of the screen of the terminal device and the corresponding display brightness, and then lay the foundation for the subsequent determination of the first actual display brightness corresponding to the first grayscale information whose grayscale value is higher than the set grayscale threshold based on the first mapping relationship.
[0140] Figure 3 1 is a flowchart showing how to construct the correspondence between the high grayscale and the target brightness according to an exemplary embodiment; based on the above embodiment, this embodiment may further include constructing the correspondence between the high grayscale and the target brightness based on the following steps S301-S302:
[0141] In step S301, a linear function of the first target brightness with respect to the target difference is constructed.
[0142] Among them, the target difference is the difference between the first screen grayscale information and the set grayscale threshold, the slope of the linear function is determined based on the set difference between the first target display brightness corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold.
[0143] For example, a linear function as shown in the following formula (1) can be constructed:
[0144] Lv(A)=(A-set grayscale threshold)*b+c; (1)
[0145] In the formula (1), (A-set grayscale threshold) is the target difference, A is the first grayscale information, and A≥250, the set grayscale threshold can be 250.
[0146] The slope b can be determined based on the set difference between the first target display brightness corresponding to two adjacent first screen grayscale information. For example, if b=100 is set, it can be concluded that the difference between the first target display brightness corresponding to the screen grayscale information 252 (i.e., the screen grayscale information with a grayscale value of 252) and the screen grayscale information 251 (i.e., the screen grayscale information with a grayscale value of 251) is 100.
[0147] The intercept c of the linear function can be determined based on the maximum brightness threshold. For example, still taking the grayscale threshold as 250 and b=100 as an example, if the maximum brightness threshold is 1000 (unit: nit), then A=255 can be substituted into the above formula (1) to obtain: c=500.
[0148] In step S302, the correspondence between the high grayscale and the target brightness is determined based on the linear function.
[0149] In this embodiment, after constructing a linear function of the first target brightness with respect to the target difference, the correspondence between the high grayscale and the target brightness can be determined based on the linear function. For example, the linear function can be directly determined as the correspondence between the high grayscale and the target brightness.
[0150] From the above description, it can be seen that this embodiment constructs a linear function of the first target brightness with respect to the target difference, and determines the correspondence between the high grayscale and the target brightness based on the linear function. This can lay an accurate foundation for subsequently determining the first target display brightness corresponding to the first grayscale information based on the constructed correspondence between the high grayscale and the target brightness.
[0151] Figure 4 4 is a flowchart showing how to debug the screen of a terminal device according to another exemplary embodiment; based on the above embodiment, this embodiment may further include debugging the screen of the terminal device in advance based on the following steps S401-S405:
[0152] In step S401, screen grayscale information of the screen of the terminal device is obtained.
[0153] In step S402, when the screen grayscale information is first screen grayscale information having a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness.
[0154] Among them, the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold.
[0155] In step S403, the actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined, and the first target mapping relationship is used to determine the first mapping relationship.
[0156] The relevant explanations and descriptions of steps S401 to S403 can be found in the above embodiments and will not be elaborated here.
[0157] In step S404, when the screen grayscale information is second screen grayscale information having a grayscale value lower than or equal to the set grayscale threshold, a second target display brightness corresponding to the second screen grayscale information is determined based on a gamma function.
[0158] In this embodiment, after obtaining the screen grayscale information of the screen of the terminal device, if it is determined that the grayscale information is the second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold, the second target display brightness corresponding to the second screen grayscale information can be determined based on the gamma function.
[0159] For example, the above gamma function can be expressed as follows:
[0160] Lv(A)=(A / 255)^2.2*Lv(set grayscale threshold); (2)
[0161] In this formula, A is the grayscale information of the second screen, and A<250, and the grayscale threshold value may be set to 250.
[0162] In this embodiment, the brightness of the screen in normal mode is defined as 500 (unit: nit).
[0163] It is worth noting that the expression (2) of the gamma function is only used for illustrative purposes. In practical applications, other forms of expressions may also be selected, which are not limited in this embodiment.
[0164] In step S405, the actual display brightness corresponding to the second screen grayscale information is debugged based on the second target display brightness, and a second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness is determined.
[0165] The second target mapping relationship is used to determine the second mapping relationship.
[0166] In this embodiment, after the second target display brightness corresponding to the second screen grayscale information is determined based on the gamma function, the actual display brightness corresponding to the second screen grayscale information can be debugged based on the second target display brightness, and the second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness can be determined.
[0167] For example, after determining the second target display brightness corresponding to the second grayscale information, the actual display brightness corresponding to the second grayscale information can be adjusted to the second target display brightness, and a second target mapping relationship between the second grayscale information and the adjusted actual display brightness can be created.
[0168] It is worth noting that the above second target mapping relationship can be used to determine the second mapping relationship between the original grayscale information of the image and the actual display brightness. That is, after determining the second original grayscale information of the target image, the actual display brightness corresponding to the second screen grayscale information having the same grayscale value as the second original grayscale information can be determined based on the second target mapping relationship, and the actual display brightness is determined as the second actual display brightness corresponding to the second original grayscale information of the target image.
[0169] From the above description, it can be seen that this embodiment determines the second target display brightness corresponding to the second screen grayscale information based on the gamma function, debugs the actual display brightness corresponding to the second screen grayscale information based on the second target display brightness, and determines the second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness. This can realize the debugging of the low grayscale information and the corresponding display brightness of the screen of the terminal device, and further lay the foundation for subsequently determining the second actual display brightness corresponding to the second grayscale information with a grayscale value lower than or equal to the set grayscale threshold based on the determined second mapping relationship.
[0170] Figure 5 FIG. 4 is a flowchart showing how to store a target image according to an exemplary embodiment; based on the above embodiment, this embodiment may further include storing the target image based on the following steps S501-S503:
[0171] In step S501, the display grayscale information of the target image is obtained.
[0172] For example, when it is necessary to save a target image acquired by an application such as a camera in a terminal device, the actual brightness information of the target image can be obtained, and then the display grayscale information of the target image can be determined based on the actual brightness information, wherein the display grayscale information can be first display grayscale information having a grayscale value lower than or equal to a first display grayscale threshold, or can be second display grayscale information having a grayscale value higher than the first display grayscale threshold.
[0173] It is worth noting that the first display grayscale threshold can be set by developers based on actual business, such as being set to 250, etc., and this embodiment does not limit this.
[0174] On this basis, after acquiring the display grayscale information of the target image, it can be determined whether the display grayscale information is the first display grayscale information with a grayscale value lower than or equal to the first display grayscale threshold, or the second display grayscale information with a grayscale value higher than the first display grayscale threshold.
[0175] In step S502, when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, the second display grayscale information is mapped to a second grayscale interval to obtain second stored grayscale information.
[0176] The first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and the second endpoint of the second grayscale interval is a set display grayscale upper limit.
[0177] In this embodiment, when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, the second display grayscale information may be mapped to a second grayscale interval to obtain second stored grayscale information.
[0178] In one embodiment, the first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and the second endpoint of the second grayscale interval is a set display grayscale upper limit.
[0179] For example, still taking the first display grayscale threshold as 250, if the second grayscale interval is (251, 255), the image pixels that need to be displayed at ultra-high brightness (i.e., image pixels above grayscale 250) can be mapped to grayscales between 251 and 255 to obtain the second stored grayscale information.
[0180] In another embodiment, the above-mentioned method of mapping the second display grayscale information to the second grayscale interval to obtain the second storage grayscale information can also refer to the following Figure 6 The illustrated embodiment will not be described in detail here.
[0181] In step S503, pixel information corresponding to the second display grayscale information in the target image is stored based on the second stored grayscale information.
[0182] In this embodiment, after obtaining the display grayscale information of the target image, if it is determined that the display grayscale information is the first display grayscale information whose grayscale value is lower than or equal to the first display grayscale threshold, the corresponding pixel information in the target image can be stored based on the first display grayscale information, that is, for image pixels below 250 grayscales, the original grayscale information of the pixel is stored.
[0183] In another embodiment, if it is determined that the display grayscale information is second display grayscale information whose grayscale value is higher than the first display grayscale threshold, the second display grayscale information can be mapped to a second grayscale interval to obtain second stored grayscale information, and then the pixel information corresponding to the second display grayscale information in the target image is stored based on the second stored grayscale information.
[0184] It can be seen from the above description that this embodiment obtains the display grayscale information of the target image, and when the display grayscale information is the second display grayscale information with a grayscale value higher than the first display grayscale threshold, the second display grayscale information is mapped to a second grayscale interval to obtain second stored grayscale information, the first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and the second endpoint of the second grayscale interval is the set display grayscale upper limit, and then based on the second stored grayscale information, the pixel information corresponding to the second display grayscale information in the target image is stored, so that when the target image contains direct sunlight or direct light, the brightness of the back-illuminated object in the target image can be avoided from being overexposed, and the quality of saving the target image information can be improved.
[0185] Figure 6 FIG. 4 is a flowchart showing how to store a target image according to an exemplary embodiment; based on the above embodiment, this embodiment may further include storing the target image based on the following steps S601-S604:
[0186] In step S601, the display grayscale information of the target image is obtained.
[0187] In step S602, when the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-storage grayscale information.
[0188] There is only one element in the first sub-grayscale interval, and the value of the element is the second display grayscale threshold.
[0189] It is worth noting that the second display grayscale threshold can be set by the developer based on actual business, such as being set to 255, etc., and this embodiment does not limit this. On this basis, when it is determined that the display grayscale information is the second display grayscale information with a grayscale value higher than the first display grayscale threshold, it can be further determined whether the display grayscale information is the third display grayscale information with a grayscale value lower than or equal to the second display grayscale threshold, or the fourth display grayscale information with a grayscale value higher than the second display grayscale threshold. Then, when it is determined that the display grayscale information is the third display grayscale information with a grayscale value lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain the third sub-storage grayscale information.
[0190] There is only one element in the first sub-grayscale interval, and the value of the element is the second display grayscale threshold, such as 250.
[0191] For example, after determining that the above display grayscale information is the third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information can be mapped to the first sub-grayscale interval, such as mapping all the third display grayscale information with grayscales of 250 to 255 to 250, that is, the third display grayscale information (250, 251, 252, 253, 254, 255) is mapped to obtain the third sub-storage grayscale information of (250, 250, 250, 250, 250, 250).
[0192] In step S603, when the display grayscale information is fourth display grayscale information having a grayscale value higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain fourth sub-stored grayscale information.
[0193] The first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is a set display grayscale upper limit.
[0194] In this embodiment, when it is determined that the display grayscale information is the fourth display grayscale information having a grayscale value higher than the second display grayscale threshold, the fourth display grayscale information can be mapped to the second sub-grayscale interval to obtain fourth sub-storage grayscale information.
[0195] For example, assuming that the second sub-grayscale interval is (251, 255), the fourth display grayscale information with a grayscale of 256 to 260 can be mapped to (251, 255), that is, the fourth display grayscale information (256, 257, 258, 259, 260) is mapped to obtain the fourth sub-storage grayscale information (251, 252, 253, 254, 255).
[0196] In step S604, pixel information corresponding to the second display grayscale information in the target image is stored based on the currently obtained storage grayscale information.
[0197] The relevant explanations and descriptions of step S601 and step S604 can be found in the above embodiments and will not be elaborated here.
[0198] As can be seen from the above description, in this embodiment, when the display grayscale information is the third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain the third sub-storage grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold, and when the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second The display grayscale threshold is set, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit. It is possible to store the pixel information corresponding to the second display grayscale information in the target image based on the obtained storage grayscale information. It is possible to avoid overexposure of the back-illuminated object in the target image when the target image contains direct sunlight or direct light, thereby improving the quality of saving the target image information. It is also possible to avoid the situation where the grayscale of areas such as the background of the album exceeds the second display grayscale threshold 250 and is mistakenly displayed as ultra-high brightness, thereby avoiding the impact on the grayscale display of other applications in the system.
[0199] Figure 7 1 is a flow chart of a method for debugging a screen of a terminal device according to an exemplary embodiment. The method for debugging a screen of a terminal device can be applied to a terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device, etc.). Figure 7 As shown, the method includes the following steps S701-S703:
[0200] In step S701, the screen grayscale information of the screen of the terminal device is obtained.
[0201] In step S702, when the screen grayscale information is the first screen grayscale information whose grayscale value is higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness, and the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is the set maximum brightness threshold;
[0202] In step S703, the actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined, and the first target mapping relationship is used to determine the first mapping relationship.
[0203] The relevant explanations and descriptions of steps S701 to S703 can be found in the above embodiments and will not be elaborated here.
[0204] As can be seen from the above description, this embodiment obtains the screen grayscale information of the screen of the terminal device, and when the screen grayscale information is the first screen grayscale information with a grayscale value higher than the set grayscale threshold, the first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence between the high grayscale and the target brightness, the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is the set maximum brightness threshold, and then the actual display brightness corresponding to the first screen grayscale information is debugged based on the first target display brightness, and the first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness is determined, wherein the first target mapping relationship is used to determine the first mapping relationship, so as to realize the debugging of the high grayscale information and the corresponding display brightness of the screen of the terminal device, and further lay the foundation for the subsequent display of ultra-high brightness high dynamic range HDR effect for grayscale information with a grayscale value higher than the set grayscale threshold.
[0205] Figure 8 FIG. 1 is a flowchart showing how to construct the correspondence between the high grayscale and the target brightness according to an exemplary embodiment. Based on the above embodiment, this embodiment takes how to construct the correspondence between the high grayscale and the target brightness as an example for exemplary description. Figure 8 As shown, based on the above embodiment, this embodiment may further include constructing the correspondence between the high grayscale and the target brightness based on the following steps S801-S802:
[0206] In step S801, a linear function of the first target brightness with respect to a target difference is constructed, where the target difference is the difference between the first screen grayscale information and the set grayscale threshold.
[0207] The slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0208] In step S802, the correspondence between the high grayscale and the target brightness is determined based on the linear function.
[0209] The relevant explanations and descriptions of steps S801 - S802 can be found in the above embodiments and will not be elaborated here.
[0210] From the above description, it can be seen that this embodiment constructs a linear function of the first target brightness with respect to the target difference, and determines the correspondence between the high grayscale and the target brightness based on the linear function. This can lay an accurate foundation for subsequently determining the first target display brightness corresponding to the first grayscale information based on the constructed correspondence between the high grayscale and the target brightness.
[0211] Fig. 9 FIG. 1 is a flow chart of a method for storing a target image according to an exemplary embodiment. The method for storing a target image can be applied to a terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device). Fig. 9 As shown, the method for storing the target image includes the following steps S901-S903:
[0212] In step S901: the display grayscale information of the target image is obtained.
[0213] In step S902: when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, the second display grayscale information is mapped to a second grayscale interval to obtain second stored grayscale information.
[0214] The first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and the second endpoint of the second grayscale interval is a set display grayscale upper limit.
[0215] In step S903: pixel information corresponding to the second display grayscale information in the target image is stored based on the second stored grayscale information.
[0216] The relevant explanations and descriptions of steps S901 - S903 can be found in the above embodiments and will not be elaborated here.
[0217] It can be seen from the above description that this embodiment obtains the display grayscale information of the target image, and when the display grayscale information is the second display grayscale information with a grayscale value higher than the first display grayscale threshold, the second display grayscale information is mapped to the second grayscale interval to obtain the second stored grayscale information, the first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and the second endpoint of the second grayscale interval is the set display grayscale upper limit, and then based on the second stored grayscale information, the pixel information corresponding to the second display grayscale information in the target image is stored, so that when the target image contains direct sunlight or direct light, the brightness of the back-illuminated object in the target image can be avoided from being overexposed, and the quality of saving the target image information can be improved.
[0218] Fig.10 FIG. 1 is a flowchart of a method for storing a target image according to another exemplary embodiment. Based on the above embodiment, this embodiment may further include storing the target image based on the following steps S1001-S1004:
[0219] In step S1001, the display grayscale information of the target image is obtained.
[0220] In step S1002, when the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information.
[0221] There is only one element in the first sub-grayscale interval, and the value of the element is the second display grayscale threshold.
[0222] In step S1003, when the display grayscale information is fourth display grayscale information having a grayscale value higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain fourth sub-stored grayscale information.
[0223] The first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is a set display grayscale upper limit.
[0224] In step S1004, pixel information corresponding to the second display grayscale information in the target image is stored based on the currently obtained storage grayscale information.
[0225] The relevant explanations and descriptions of steps S1001 - S1004 can be found in the above embodiments and will not be elaborated here.
[0226] As can be seen from the above description, in this embodiment, when the display grayscale information is the third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain the third sub-storage grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold, and when the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second The display grayscale threshold is set, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit. It is possible to store the pixel information corresponding to the second display grayscale information in the target image based on the obtained storage grayscale information. It is possible to avoid overexposure of the back-illuminated object in the target image when the target image contains direct sunlight or direct light, thereby improving the quality of saving the target image information. It is also possible to avoid the situation where the grayscale of areas such as the background of the album exceeds the second display grayscale threshold 250 and is mistakenly displayed as ultra-high brightness, thereby avoiding the impact on the grayscale display of other applications in the system.
[0227] Fig.111 is a block diagram of an image processing apparatus of a terminal device according to an exemplary embodiment; the image processing apparatus of the terminal device can be applied to a terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device, etc.). Fig.11 As shown, the device includes: an original grayscale acquisition module 110, a display brightness determination module 120 and a pixel information display module 130, wherein:
[0228] The original grayscale acquisition module 110 is used to acquire the original grayscale information of the target image to be displayed;
[0229] A display brightness determination module 120, configured to determine, when the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship being different from a second mapping relationship, the second mapping relationship being used to determine a second actual display brightness corresponding to second grayscale information, the grayscale value of the second grayscale information being lower than or equal to the set grayscale threshold;
[0230] The pixel information display module 130 is used to display the pixel information corresponding to the first grayscale information on the screen of the terminal device based on the first actual display brightness.
[0231] It can be seen from the above description that this embodiment obtains the original grayscale information of the target image to be displayed. When the original grayscale information is the first grayscale information whose grayscale value is higher than the set grayscale threshold, the first actual display brightness corresponding to the first grayscale information is determined based on a predetermined first mapping relationship, the first mapping relationship is different from the second mapping relationship, the second mapping relationship is used to determine the second actual display brightness corresponding to the second grayscale information, the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold, and then on the screen of the terminal device, the pixel information corresponding to the first grayscale information is displayed based on the first actual display brightness. Since the first actual display brightness corresponding to the first grayscale information is determined based on the predetermined first mapping relationship that is different from the second mapping relationship, the ultra-high brightness high dynamic range HDR effect can be displayed for the grayscale information whose grayscale value is higher than the set grayscale threshold without changing the display architecture of the screen of the terminal device, and at the same time, it can be compatible with the normal display of the grayscale information whose grayscale value is lower than the set grayscale threshold in the related technology.
[0232] Fig.121 is a block diagram of another image processing device of a terminal device according to an exemplary embodiment; the image processing device of the terminal device can be applied to a terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device, etc.). Among them, the original grayscale acquisition module 210, the display brightness determination module 220 and the pixel information display module 230 are the same as the aforementioned Fig.11 The functions of the original grayscale acquisition module 110, the display brightness determination module 120 and the pixel information display module 130 in the illustrated embodiment are not described in detail here. Fig.12 As shown, the above device may further include a screen debugging module 240;
[0233] The screen debugging module 240 may include:
[0234] A screen grayscale acquisition unit 241 is used to acquire screen grayscale information of the screen of the terminal device;
[0235] A first brightness determination unit 242 is used to determine, when the screen grayscale information is first screen grayscale information with a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information based on a predetermined correspondence relationship between a high grayscale and a target brightness, and the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold;
[0236] The first relationship determination unit 243 is used to debug the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determine a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, wherein the first target mapping relationship is used to determine the first mapping relationship.
[0237] In one embodiment, the above device may further include a corresponding relationship determining unit 244;
[0238] The corresponding relationship determining unit 244 may be used to:
[0239] Constructing a linear function of the first target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, wherein the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0240] The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
[0241] In one embodiment, the screen debugging module 240 may further include:
[0242] A second brightness determination unit 245 is configured to determine a second target display brightness corresponding to the second screen grayscale information based on a gamma function when the screen grayscale information is second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold;
[0243] The second relationship determination unit 246 is used to debug the actual display brightness corresponding to the second screen grayscale information based on the second target display brightness, and determine the second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness, and the second target mapping relationship is used to determine the second mapping relationship.
[0244] In one embodiment, the above device may further include a target image storage module 250;
[0245] The target image storage module 250 may include:
[0246] A display grayscale acquisition unit 251, used to acquire display grayscale information of the target image;
[0247] A second grayscale acquisition unit 252 is used to map the second display grayscale information to a second grayscale interval to obtain second stored grayscale information when the display grayscale information is second display grayscale information with a grayscale value higher than a first display grayscale threshold, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit;
[0248] The pixel information storage unit 253 is used to store the pixel information corresponding to the second display grayscale information in the target image based on the second stored grayscale information.
[0249] In one embodiment, the second grayscale acquisition unit 252 may also be used for:
[0250] When the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold;
[0251] When the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
[0252] Fig.131 is a block diagram of a device for debugging a screen of a terminal device according to an exemplary embodiment; the image processing device of the terminal device can be applied to a terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device, etc.). Fig.13 As shown, the device includes: a screen grayscale acquisition module 310, a first brightness determination module 320 and a first relationship determination module 330, wherein:
[0253] A screen grayscale acquisition module 310 is used to acquire screen grayscale information of a screen of a terminal device;
[0254] A first brightness determination module 320 is used to determine, when the screen grayscale information is first screen grayscale information with a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information based on a predetermined correspondence relationship between a high grayscale and a target brightness, wherein the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold;
[0255] The first relationship determination module 330 is used to debug the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determine the first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, and the first target mapping relationship is used to determine the first mapping relationship.
[0256] In one embodiment, the above device may further include a corresponding relationship determination module 340;
[0257] The corresponding relationship determination module 340 may include:
[0258] A linear function construction unit 341 is used to construct a linear function of the first target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold;
[0259] The correspondence determination unit 342 is used to determine the correspondence between the high gray scale and the target brightness based on the linear function.
[0260] In one embodiment, the above device may further include:
[0261] A second brightness determination module 350 is used to determine a second target display brightness corresponding to the second screen grayscale information based on a gamma function when the screen grayscale information is second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold;
[0262] The second relationship determination module 360 is used to debug the actual display brightness corresponding to the second screen grayscale information based on the second target display brightness, and determine the second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness, and the second target mapping relationship is used to determine the second mapping relationship.
[0263] Fig.14 is a block diagram of a device for storing a target image according to an exemplary embodiment; the image processing device of the terminal device can be applied to the terminal device (such as a smart phone, a tablet computer, a smart TV or a wearable device, etc.). Fig.14 As shown, the device includes: a display grayscale acquisition module 410, a second grayscale acquisition module 420 and a pixel information storage module 430, wherein:
[0264] A display grayscale acquisition module 410, used to acquire display grayscale information of a target image;
[0265] A second grayscale acquisition module 420 is used to map the second display grayscale information to a second grayscale interval to obtain second stored grayscale information when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit;
[0266] The pixel information storage module 430 is configured to store the pixel information corresponding to the second display grayscale information in the target image based on the second stored grayscale information.
[0267] In one embodiment, the second grayscale acquisition module 420 may include:
[0268] a third information acquisition unit 421, configured to map the third display grayscale information to a first sub-grayscale interval to obtain third sub-stored grayscale information when the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to a second display grayscale threshold, wherein the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold;
[0269] The fourth information acquisition unit 422 is used to map the fourth display grayscale information to the second sub-grayscale interval to obtain fourth sub-storage grayscale information when the display grayscale information is the fourth display grayscale information with a grayscale value higher than the second display grayscale threshold, wherein the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
[0270] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0271] Fig.15 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0272] Reference Fig.15 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0273] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
[0274] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The 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 memory, flash memory, magnetic disk or optical disk.
[0275] The power component 906 provides power to the various components of the device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0276] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the 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 may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0277] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0278] 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: a home button, a volume button, a start button, and a lock button.
[0279] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0280] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0281] In an exemplary embodiment, the device 900 can 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 execute the image processing method of the above-mentioned terminal device.
[0282] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of the apparatus 900 to complete the image processing method of the terminal device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0283] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0284] It should be understood that the present disclosure is not limited to the exact 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 disclosure is limited only by the appended claims.
Claims
1. An image processing method for a terminal device, characterized in that: The method comprises: Obtaining original grayscale information of the target image to be displayed; When the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, determining a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship is different from a second mapping relationship, the second mapping relationship is used to determine a second actual display brightness corresponding to second grayscale information, and the grayscale value of the second grayscale information is lower than or equal to the set grayscale threshold; Displaying pixel information corresponding to the first grayscale information on a screen of the terminal device based on the first actual display brightness; The method further includes debugging the screen of the terminal device based on the following steps to determine the first mapping relationship: Acquiring screen grayscale information of the screen of the terminal device; When the screen grayscale information is first screen grayscale information whose grayscale value is higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness, and the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is the set maximum brightness threshold; debugging the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determining a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, so as to determine the first mapping relationship based on the first target mapping relationship; The method further comprises constructing a correspondence between the high grayscale and the target brightness based on the following steps: Constructing a linear function of target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold; The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
2. The method according to claim 1, characterized in that: The method further comprises debugging the screen of the terminal device based on the following steps: When the screen grayscale information is second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold, determining a second target display brightness corresponding to the second screen grayscale information based on a gamma function; The actual display brightness corresponding to the second screen grayscale information is debugged based on the second target display brightness, and a second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness is determined, where the second target mapping relationship is used to determine the second mapping relationship.
3. The method according to claim 1, characterized in that The method further comprises storing the target image based on the following steps: Acquiring display grayscale information of the target image; When the display grayscale information is second display grayscale information whose grayscale value is higher than the first display grayscale threshold, the second display grayscale information is mapped to a second grayscale interval to obtain second stored grayscale information, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit; The pixel information corresponding to the second display grayscale information in the target image is stored based on the second stored grayscale information.
4. The method according to claim 3, characterized in that The mapping the second display grayscale information to a second grayscale interval to obtain second storage grayscale information includes: When the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold; When the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
5. A method for debugging a screen of a terminal device, characterized in that: The method is used to determine the first mapping relationship in claim 1, and the method comprises: Obtaining screen grayscale information of the terminal device's screen; When the screen grayscale information is first screen grayscale information whose grayscale value is higher than a set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information is determined based on a predetermined correspondence relationship between a high grayscale and a target brightness, and the first target display brightness corresponding to the upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold; debugging the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determining a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, so as to determine the first mapping relationship based on the first target mapping relationship; The method further comprises constructing a correspondence between the high grayscale and the target brightness based on the following steps: Constructing a linear function of target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold; The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
6. An image processing device for a terminal device, characterized in that: The device comprises: An original grayscale acquisition module, used to acquire original grayscale information of a target image to be displayed; A display brightness determination module, configured to determine, when the original grayscale information is first grayscale information whose grayscale value is higher than a set grayscale threshold, a first actual display brightness corresponding to the first grayscale information based on a predetermined first mapping relationship, the first mapping relationship being different from a second mapping relationship, the second mapping relationship being used to determine a second actual display brightness corresponding to second grayscale information, the grayscale value of the second grayscale information being lower than or equal to the set grayscale threshold; A pixel information display module, configured to display pixel information corresponding to the first grayscale information on a screen of the terminal device based on the first actual display brightness; The device also includes a screen debugging module for determining the first mapping relationship; The screen debugging module includes: A screen grayscale acquisition unit, used to acquire screen grayscale information of the screen of the terminal device; A first brightness determination unit is used to determine, when the screen grayscale information is first screen grayscale information with a grayscale value higher than the set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information based on a predetermined correspondence relationship between a high grayscale and a target brightness, wherein the first target display brightness corresponding to an upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold; a first relationship determining unit, configured to debug an actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determine a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, so as to determine the first mapping relationship based on the first target mapping relationship; The device also includes a corresponding relationship determination unit; The corresponding relationship determining unit is used to: Constructing a linear function of target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold; The corresponding relationship between the high gray scale and the target brightness is determined based on the linear function.
7. The device according to claim 6, characterized in that The screen debugging module also includes: A second brightness determination unit, configured to determine, based on a gamma function, a second target display brightness corresponding to the second screen grayscale information when the screen grayscale information is second screen grayscale information whose grayscale value is lower than or equal to the set grayscale threshold; A second relationship determination unit is used to debug the actual display brightness corresponding to the second screen grayscale information based on the second target display brightness, and determine a second target mapping relationship between the second screen grayscale information and the corresponding actual display brightness, and the second target mapping relationship is used to determine the second mapping relationship.
8. The device according to claim 6, characterized in that The device also includes a target image storage module; The target image storage module comprises: A display grayscale acquisition unit, used to acquire display grayscale information of the target image; A second grayscale acquisition unit, configured to map the second display grayscale information to a second grayscale interval to obtain second stored grayscale information when the display grayscale information is second display grayscale information having a grayscale value higher than a first display grayscale threshold, wherein a first endpoint of the second grayscale interval is greater than or equal to the first display grayscale threshold, and a second endpoint of the second grayscale interval is a set display grayscale upper limit; A pixel information storage unit is used to store pixel information corresponding to the second display grayscale information in the target image based on the second stored grayscale information.
9. The device according to claim 8, characterized in that The second grayscale acquisition unit is further used for: When the display grayscale information is third display grayscale information whose grayscale value is lower than or equal to the second display grayscale threshold, the third display grayscale information is mapped to the first sub-grayscale interval to obtain third sub-stored grayscale information, the first sub-grayscale interval has only one element, and the value of the element is the second display grayscale threshold; When the display grayscale information is the fourth display grayscale information whose grayscale value is higher than the second display grayscale threshold, the fourth display grayscale information is mapped to the second sub-grayscale interval to obtain the fourth sub-storage grayscale information, the first endpoint of the second sub-grayscale interval is greater than the second display grayscale threshold, and the second endpoint of the second sub-grayscale interval is the set display grayscale upper limit.
10. A device for debugging a screen of a terminal device, characterized in that: The device is used to determine the first mapping relationship in claim 6, and the device includes: A screen grayscale acquisition module, used to acquire screen grayscale information of the screen of the terminal device; A first brightness determination module is used to determine, when the screen grayscale information is first screen grayscale information with a grayscale value higher than a set grayscale threshold, a first target display brightness corresponding to the first screen grayscale information based on a predetermined correspondence relationship between a high grayscale and a target brightness, wherein the first target display brightness corresponding to an upper limit of the grayscale value of the first screen grayscale information is a set maximum brightness threshold; a first relationship determination module, configured to debug the actual display brightness corresponding to the first screen grayscale information based on the first target display brightness, and determine a first target mapping relationship between the first screen grayscale information and the corresponding actual display brightness, so as to determine the first mapping relationship based on the first target mapping relationship; The device also includes a corresponding relationship determination module; The corresponding relationship determination module includes: a linear function construction unit, configured to construct a linear function of target brightness with respect to a target difference, wherein the target difference is a difference between the first screen grayscale information and the set grayscale threshold, wherein the slope of the linear function is determined based on a set difference between first target display brightnesses corresponding to two adjacent first screen grayscale information, and the intercept of the linear function is determined based on the maximum brightness threshold; A correspondence determination unit is used to determine the correspondence between the high gray scale and the target brightness based on the linear function.
11. An electronic device, characterized in that: include: a processor, and a memory for storing instructions executable by the processor; The processor is configured to implement the method described in any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Display device, method for controlling display device, control program, and recording medium
CN108370428A
Image processing apparatus, control method thereof, and program
US20170287121A1