CN113112944A - Display control method, electronic device, and storage medium - Google Patents
Display control method, electronic device, and storage medium Download PDFInfo
- Publication number
- CN113112944A CN113112944A CN202110394690.3A CN202110394690A CN113112944A CN 113112944 A CN113112944 A CN 113112944A CN 202110394690 A CN202110394690 A CN 202110394690A CN 113112944 A CN113112944 A CN 113112944A
- Authority
- CN
- China
- Prior art keywords
- display area
- color
- value
- target display
- ambient light
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/2003—Display of colours
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0666—Adjustment of display parameters for control of colour parameters, e.g. colour temperature
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/14—Detecting light within display terminals, e.g. using a single or a plurality of photosensors
- G09G2360/144—Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The application discloses a display control method, an electronic device and a storage medium. The method comprises the following steps: and acquiring an ambient light numerical value signal, and adjusting the color of the display area according to the numerical value signal so as to enable the color of the target display area and the color of the non-target display area to meet a first preset condition. In an implementation mode, the visibility of the content of the screen display area can be enhanced by adjusting the color of the screen display area, the problem that the content of the screen display area is difficult to see clearly due to the fact that the screen reflects illumination in a strong light environment is solved, and the power consumption of the terminal is greatly reduced.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a display control method, an electronic device, and a storage medium.
Background
With the development of science and technology, various new electronic products such as smart phones, tablet computers and the like have emerged as indispensable tools for modern people. In addition, these electronic products are moving toward multi-functionality. Taking a smart phone as an example, the current smart phone not only provides a communication function, but also provides functions of games, internet surfing, camera shooting and the like.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: in the process of using various functions of the mobile phone, under the scene of slightly strong external light, contents displayed on a smooth mobile phone display screen are difficult to see by human eyes due to reflected illumination. In some implementation modes, the visibility of the screen content is mainly improved by automatically enhancing the background light of the screen, but in a scene with direct strong sunlight, the human eyes are still hard to see through the above mode, and the mode causes the power consumption of the mobile phone to be too large.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
The application discloses a display control method, an electronic device and a storage medium. In the method, the visibility of the content of the screen display area is enhanced by adjusting the color of the screen display area, the problem that the content of the display area is difficult to see by human eyes due to reflected illumination of the screen in a strong light environment is solved, and the power consumption of the terminal is greatly reduced.
In a first aspect, the present application provides a display control method, including:
acquiring an ambient light numerical signal, wherein the numerical signal is used for representing the intensity of the ambient light;
and adjusting the color of the display area according to the numerical value signal so that the color of the target display area and the color of the non-target display area meet a first preset condition.
Optionally, the method further comprises at least one of:
the first preset condition includes: the chrominance values differ by more than or equal to a first threshold;
the adjusting the color of the display area according to the numerical signal comprises: in the case that the value of the numerical value signal is greater than or equal to a second threshold value, the color of the target display area is darkened, and/or the color of the non-target display area is lightened;
the target display area and the non-target display area are components of the display area.
Optionally, the target display area includes an application icon, and the darkening the color of the target display area includes: and acquiring the chromatic value of the application icon, and reducing the chromatic value of the application icon.
Optionally, the method further comprises:
and in the case that the value of the numerical value signal is less than or equal to a third threshold value, lightening the color of the target display area and/or lightening the color of the non-target display area.
Optionally, the non-target display area includes a desktop background, and the darkening the color of the non-target display area includes: and acquiring the chromatic value of the desktop background, and reducing the chromatic value of the desktop background.
Optionally, the method further comprises at least one of:
the reducing the color of the application icon comprises: reducing the value of the hexadecimal color code of the application icon; the color of the desktop background is reduced, including: and reducing the value of the hexadecimal color code of the desktop background.
Optionally, the numerical signal further includes a color of the ambient light, and the adjusting the color of the display area according to the numerical signal includes: in the case that the numerical signal indicates that the ambient light is red, the red R value in the color channel of the display area is decreased, and/or the green G value and/or the blue B value in the color channel of the display area is increased.
Optionally, the method further comprises:
and responding to the target operation, and displaying the numerical value signal in the display area.
In a second aspect, the present application provides a display control method, including:
acquiring ambient light;
determining or generating a numerical signal according to the ambient light, wherein the numerical signal is used for representing the intensity of the ambient light;
and adjusting the color of the display area according to the numerical value signal until the difference between the chromatic value of the color of the target display area and the chromatic value of the color of the non-target display area is greater than or equal to a first threshold, wherein optionally, the target display area and the non-target display area are components of the display area.
In the implementation manner, the terminal acquires the ambient light, then generates a numerical signal representing the intensity of the ambient light according to the acquired ambient light, and correspondingly adjusts the background color of the terminal display area according to the numerical signal, so that the difference between the chromatic value of the color of the target display area and the chromatic value of the color of the non-target display area is greater than or equal to a first threshold value, so as to enhance the visibility of the content of the display area. Optionally, the target display area and the non-target display area are components of the display area, and the first threshold is not a fixed value, and may be different in different scenes, depending on the specific scene. In addition, the ambient light can be obtained in various ways, the ambient light sensor can be used for detecting the intensity of the ambient light, and if the detected intensity of the light source is greater than or equal to a certain threshold value, the terminal can start the function of adjusting the background color of the display area. The method can enhance the color contrast of the two display areas by adjusting the colors of the target display area and the non-target display area, thereby enhancing the visibility of the content of the target display area and effectively solving the problem that the content of the target display area is difficult to see by human eyes due to reflected illumination of the screen in a strong light environment.
Optionally, the adjusting the color of the display area according to the numerical signal includes:
and in the case that the value of the numerical value signal is larger than or equal to a second threshold value, the color of the target display area is lightened, and/or the color of the non-target display area is lightened.
In this implementation, it is stated that in case the digital signal is greater than or equal to the second threshold (i.e. in case the ambient light intensity is greater than or equal to the second threshold), the terminal will activate the function of adjusting the background color of the display area. Optionally, the terminal determines the current interface, and according to different contents of different interfaces, correspondingly adjusts the color displayed on the terminal screen, and makes the background color of the target display area (important information) darker and the background color of the non-target display area (unimportant information) lighter. Alternatively, the second threshold is not a fixed and constant value, and may be different in different scenarios, depending on the particular scenario. In such a way, the color contrast of the target display area and the non-target display area can be enhanced through the color adjustment of the target display area and the non-target display area, so that the visibility of the content of the target display area is enhanced, and the problem that the content of the target display area is difficult to see in a strong light environment is effectively solved.
Optionally, the target display area comprises an application icon; the darkening of the color of the target display area includes:
acquiring a chromatic value of the application icon, wherein the chromatic value of the application icon is used for representing the chromatic value of the application icon;
and reducing the chromatic value of the application icon.
In this implementation, in a case where the target display area includes the application icon, the color of the target display area is darkened by lowering the chromaticity value of the application icon.
Optionally, the method further comprises:
and in the case that the value of the numerical value signal is less than or equal to a third threshold value, lightening the color of the target display area and/or lightening the color of the non-target display area.
In this implementation, it is stated that in the case where the numerical signal is less than or equal to the third threshold (i.e., in the case where the ambient light intensity is less than or equal to the third threshold), the terminal will turn on the function of adjusting the background color of the display region. Optionally, the terminal determines the current interface, and according to different contents of different interfaces, correspondingly adjusts the color displayed on the terminal screen, lightens the chroma of the background color of the target display area (important information), and deepens the chroma of the background color of the non-target display area (unimportant information). Optionally, the third threshold is not fixed and may be different in different scenarios, depending on the particular scenario. In such a way, the color contrast of the target display area and the non-target display area can be enhanced through the color adjustment of the target display area and the non-target display area, so that the visibility of the content of the target display area is enhanced, and the problem that the content of the target display area is too dazzling in a dark environment is effectively solved.
Optionally, the non-target display area comprises a desktop background; the darkening of the color of the non-target display area includes:
acquiring a chromatic value of the desktop background, wherein the chromatic value of the desktop background is used for representing the chromaticity of the desktop background;
and reducing the chromatic value of the desktop background.
In this implementation, where the non-target display area includes a desktop background, the color of the non-target display area is dimmed by reducing a chroma value of the desktop background.
Optionally, the numerical signal comprises a color of the ambient light; the adjusting the color of the display area according to the numerical signal comprises:
in the case that the numerical signal indicates that the ambient light is red, the red R value in the color channel of the display area is decreased, and/or the green G value and/or the blue B value in the color channel of the display area is increased.
In this implementation, a way of processing the terminal under different color conditions of the ambient light is provided. Specifically, the color information of the ambient light is recorded in the form of a numerical signal, and in the case that the numerical signal indicates that the ambient light is red light, the terminal reduces the red R value in the color channel of the display area, and optionally increases the green G value and/or the blue B value in the color channel of the display area. Similarly, in the case where the value signal indicates that the ambient light is green, the terminal turns down the green G value in the color channel of the display area, and optionally raises the red R value and the blue B value in the color channel of the display area. In the case where the value signal indicates that the ambient light is blue, the terminal turns down the blue B value in the color channel of the display area, and optionally, raises the red R value and the green G value in the color channel of the display area. In the mode, the chromatic value of the color channel of the display area, which is the same as the ambient light, is reduced, and the chromatic values of other two colors are correspondingly improved, so that the display area can have better visibility under different ambient light conditions.
Optionally, the method further comprises:
detecting a target user operation;
and displaying the numerical signal in the display area according to the target user operation, wherein the numerical signal is used for representing the intensity of the ambient light, the color of the ambient light and the visibility of the display area.
In this implementation, the terminal displays information about a numerical signal on the display area by detecting an operation of the target user, where the numerical signal indicates an intensity of the ambient light, a color of the ambient light, and a level of a visibility of the display area, so that the target user can perceive the visibility of the display area by looking at the digitized visibility of the display area, and thus take a corresponding operation to enhance the visibility of the display area.
Optionally, the reducing the color of the application icon includes: reducing the value of the hexadecimal color code of the application icon; the color of the desktop background is reduced, including: and reducing the value of the hexadecimal color code of the desktop background.
In the implementation mode, the chroma value of the application icon is reduced by reducing the value of the hexadecimal color code of the background color of the application icon, so that the chroma of the background color of the target display area is darkened; and the chromatic value of the desktop background is reduced by reducing the value of the hexadecimal color code of the desktop background, so that the color of the non-target display area is darkened.
In one implementation, the terminal may acquire ambient light through an ambient light source sensor and other various manners, generate a numerical signal indicating the intensity of the ambient light according to the acquired ambient light, and perform different adjustment manners on the background color of the display area according to the magnitude of the numerical signal. And the terminal also provides the amplitude of the background color adjustment of the display area, namely, the colorimetric value of the color of the target display area is different from that of the color of the non-target display area by more than or equal to the first threshold value, so as to enhance the visibility of the content of the display area. Optionally, the target display area and the non-target display area are components of the display area. Optionally, when the digital signal is greater than or equal to the second threshold, the terminal may start a function of adjusting the background color of the display area, that is, the terminal may determine the interface where the terminal is currently located, perform corresponding adjustment on the color displayed on the screen of the terminal according to different contents of different interfaces, deepen the chromaticity of the background color of the target display area, and lighten the background color of the non-target display area. And when the numerical signal is less than or equal to the third threshold, the terminal lightens the chromaticity of the background color of the target display area and deepens the chromaticity of the background color of the non-target display area. Optionally, there are various manners for adjusting the chromaticity of the background color of the display region to be dark, which may be a value of a hexadecimal color code for decreasing the background color of the display region, and there are also various manners for adjusting the chromaticity of the background color of the display region to be light, which may be a value of a hexadecimal color code for increasing the background color of the display region. Optionally, the first threshold, the second threshold, and the third threshold are not fixed, and may be different in different scenes, and the terminal depends on a specific scene. Through the color adjustment to target display area and non-target display area in this application embodiment, aim at strengthens the color contrast of two kinds of display areas to the reinforcing is to the visuality of target display area's content, with effectively solving the problem that target display area's content is difficult to see clearly under the highlight environment, has still reduced terminal power consumption greatly.
In a third aspect, the present application also provides a display control apparatus, including:
an acquisition unit for acquiring ambient light;
the generating unit is used for determining or generating a numerical signal according to the ambient light, wherein the numerical signal is used for representing the intensity of the ambient light;
and an adjusting unit, configured to adjust the color of the display area according to the numerical signal until a difference between a chromatic value of the color of the target display area and a chromatic value of the color of the non-target display area is greater than or equal to a first threshold, where optionally, the target display area and the non-target display area are components of the display area.
In one implementation, the display control device obtains ambient light, generates a numerical signal representing the intensity of the ambient light according to the obtained ambient light, and adjusts the background color of the display area of the display control device according to the numerical signal, so that the difference between the chromatic value of the color of the target display area and the chromatic value of the color of the non-target display area is greater than or equal to a first threshold value, thereby enhancing the visibility of the content of the display area. Optionally, the target display area and the non-target display area are components of the display area, and the first threshold is not a fixed value and may be different in different scenes, and is determined by the display control device according to the specific scenes. In addition, the ambient light can be obtained in various ways, the ambient light sensor can be used for detecting the intensity of the ambient light, and if the detected intensity of the light source is greater than or equal to a certain threshold value, the display control device can start the function of adjusting the background color of the display area. The method can enhance the color contrast of the two display areas by adjusting the colors of the target display area and the non-target display area, thereby enhancing the visibility of the content of the target display area and effectively solving the problem that the content of the target display area is difficult to see by human eyes due to reflected illumination of the screen in a strong light environment.
Optionally, the adjusting unit is specifically configured to, when the value of the numerical signal is greater than or equal to a second threshold, dim the color of the target display area and/or dim the color of the non-target display area.
In this implementation, it is stated that in the case where the numerical signal is greater than or equal to the second threshold value (i.e., in the case where the ambient light intensity is greater than or equal to the second threshold value), the display control means will turn on the function of adjusting the background color of the display region. Optionally, the display control device determines the current interface, and according to different contents of different interfaces, correspondingly adjusts the color displayed on the screen of the display control device, so as to darken the background color of the target display area (important information) and lighten the background color of the non-target display area (unimportant information). Alternatively, the second threshold is not a fixed, constant value, and may be different in different scenes, depending on the particular scene, by the display control means. In such a way, the color contrast of the target display area and the non-target display area can be enhanced through the color adjustment of the target display area and the non-target display area, so that the visibility of the content of the target display area is enhanced, and the problem that the content of the target display area is difficult to see in a strong light environment is effectively solved.
Optionally, the target display area comprises an application icon; the obtaining unit is further configured to obtain a chroma value of the application icon, where the chroma value of the application icon is used to represent chroma of the application icon;
the adjusting unit is further configured to reduce the chroma value of the application icon.
In this implementation, in a case where the target display area includes the application icon, the color of the target display area is darkened by lowering the chromaticity value of the application icon.
Optionally, the adjusting unit is specifically further configured to, when the value of the numerical signal is less than or equal to a third threshold, lighten the color of the target display area and/or darken the color of the non-target display area.
In this implementation, it is stated that in the case where the numerical signal is less than or equal to the third threshold (i.e., in the case where the ambient light intensity is less than or equal to the third threshold), the display control means will turn on the function of adjusting the background color of the display region. Optionally, the display control device determines the current interface, and according to different contents of different interfaces, correspondingly adjusts the color displayed on the screen of the display control device, so as to lighten the chroma of the background color of the target display area (important information) and deepen the chroma of the background color of the non-target display area (unimportant information). Alternatively, the third threshold is not fixed and may be different in different scenes, depending on the particular scene, by the display control means. In such a way, the color contrast of the target display area and the non-target display area can be enhanced through the color adjustment of the target display area and the non-target display area, so that the visibility of the content of the target display area is enhanced, and the problem that the content of the target display area is too dazzling in a dark environment is effectively solved.
Optionally, the non-target display area comprises a desktop background; the obtaining unit is further configured to obtain a chromatic value of the desktop background, where the chromatic value of the desktop background is used to represent a chromaticity of the desktop background;
the adjusting unit is further used for reducing the chromatic value of the desktop background.
In this implementation, where the non-target display area includes a desktop background, the color of the non-target display area is dimmed by reducing a chroma value of the desktop background.
Optionally, the numerical signal comprises a color of the ambient light; the adjusting unit is further configured to, in a case where the numerical signal indicates that the ambient light is red light, decrease a red R value in a color channel of the display area, and/or increase a green G value and/or a blue B value in the color channel of the display area.
In this implementation, a way of processing of the display control means under different color conditions of the ambient light is provided. Specifically, the color information of the ambient light is recorded in the form of a numerical signal, and in the case where the numerical signal indicates that the ambient light is red light, the display control device lowers the red R value in the color channel of the display region, and optionally raises the green G value and/or the blue B value in the color channel of the display region. Similarly, in the event that the numerical signal indicates that the ambient light is green, the display control device turns down the green G value in the color channel of the display area, and optionally raises the red R value and the blue B value in the color channel of the display area. In the case where the numerical signal indicates that the ambient light is blue light, the display control apparatus turns down the blue B value in the color channel of the display area, and optionally, raises the red R value and the green G value in the color channel of the display area. In the mode, the chromatic value of the color channel of the display area, which is the same as the ambient light, is reduced, and the chromatic values of other two colors are correspondingly improved, so that the display area can have better visibility under different ambient light conditions.
Optionally, the apparatus further comprises:
a detection unit configured to detect a target user operation;
and the display unit is used for displaying the numerical signal in the display area according to the target user operation, and the numerical signal is used for representing the intensity of the ambient light, the color of the ambient light and the visibility of the display area.
In this implementation, the display control device displays information about a numerical signal on the display area by detecting an operation of the target user, where the numerical signal indicates an intensity of the ambient light, a color of the ambient light, and a level of a visibility of the display area, and thus the target user can perceive the visibility of the display area by viewing the digitized visibility on the display area, and take a corresponding operation to enhance the visibility of the display area.
Optionally, the adjusting unit is further configured to reduce a value of the hexadecimal color code of the application icon; and the method is also used for reducing the value of the hexadecimal color code of the desktop background.
In the implementation mode, the chroma value of the application icon is reduced by reducing the value of the hexadecimal color code of the background color of the application icon, so that the chroma of the background color of the target display area is darkened; and the chromatic value of the desktop background is reduced by reducing the value of the hexadecimal color code of the desktop background, so that the color of the non-target display area is darkened.
In a fourth aspect, the present application provides an electronic device comprising a processor, a memory; the processor is configured to enable the electronic device to perform any of the methods of the first or second aspects described above. The memory stores programs (instructions) and data necessary for the electronic device. Optionally, the electronic device may further comprise an input/output interface for supporting communication between the electronic device and other devices.
In a fifth aspect, the present application provides a computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to perform any of the methods described above.
In a sixth aspect, the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the methods described above.
The present application further provides a mobile terminal, including: the display control program is stored on the memory, and when being executed by the processor, the display control program realizes the steps of any one of the methods.
The present application also provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of any of the methods described above.
In the application, the terminal can enhance the color contrast of two display areas through the color adjustment of the target display area and the non-target display area, thereby enhancing the visibility of the content of the target display area, effectively solving the problem that the content of the target display area is difficult to see clearly under the strong light environment, and greatly reducing the power consumption of the terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a display control method according to an embodiment of the present disclosure;
fig. 2 is a schematic interface diagram of a display control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another display control method according to an embodiment of the present disclosure;
fig. 4 is a schematic interface diagram of another display control method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another display control method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a display control apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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 application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that, step numbers such as 101, 102, etc. are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform step 102 and then step 101, etc. in the specific implementation, but these should be within the protection scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The electronic device may be implemented in various forms. For example, the electronic devices described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
To describe the scheme of the present application more clearly, some relevant knowledge is introduced below.
RGB mode: RGB colors are the three primary colors in common, R stands for Red (Red), G stands for Green (Green), and B stands for Blue (Blue). Any color that can be seen by the naked eye in nature can be formed by mixing and superimposing these three colors, and is therefore also called an additive color mode. The RGB mode is also called RGB color space. The color light is a color light and color expression mode, and is widely applied to our lives, such as televisions, computer display screens, slides and the like, which all use light to express colors. In printing and publishing, images are often scanned, and the scanner firstly extracts RGB color light information on an original image during scanning. The RGB mode is an additive color mode, and any color can be described by the amount of radiation R, G, B. When the color is defined by the computer, the values of the R, G, B components range from 0 to 255, 0 represents no stimulation, and 255 represents the maximum stimulation. R, G, B both gave a white light when they were 255 and R, G, B both gave a black color when they were 0, which when added together gave a different "C, M, Y" color. This mode is often used when displaying color definitions on a display screen. Images, such as for television, slides, web, multimedia, typically use the RGB mode.
Hexadecimal color code: the hexadecimal color code is a code for setting color values in software. In many software, the problem of setting color values is encountered, and there are two types of colors seen by human eyes: one is the color emitted by the light, such as the color displayed on a computer display screen; the other is that the object itself does not emit light, but the reflected light produces a color. For the first color mentioned above, i.e. the color pattern of the luminous body, also called "additive color pattern", the three primary colors are the three colors "red", "green" and "blue". The additive color mode is also called as "RGB mode"; for such a color pattern of the printed matter, which is also called "subtractive color pattern", the three primary colors are "cyan", "magenta" and "yellow". The subtractive color mode is also referred to as "CMYK" mode. For example, to specify a color on a web page, the RGB scheme is used to determine the color by specifying the intensities of the three primary colors R/G/B, i.e., red/green/blue, respectively, usually providing that each color has a minimum intensity of 0 and a maximum intensity of 255, and is usually represented by 16-ary numerical values, and then 255 corresponds to hexadecimal values, i.e., FF, and the three numerical values are juxtaposed one after the other, beginning with #. For example, the color value "# FF 0000" is red because the value of red reaches the highest value FF (i.e., 255 decimal), and the remaining two colors have intensities of 0. Yellow is indicated at "# FFFF 00", for example, because when red and green are both at maximum and blue is 0, yellow is produced.
Under strong outdoor sunlight, the content displayed on a screen is difficult to see due to the relation of reflected illumination of a smooth mobile phone display screen, and the two existing solutions are mainly adopted, wherein the first anti-glare technology is to detect the intensity of ambient light by using a sensor and adjust the brightness of the display screen according to the intensity of the ambient light, but on one hand, the technology consumes more electric quantity, and on the other hand, the maximum brightness which can be supported by the mobile phone screen still cannot enable a user to see the content in the screen clearly under the condition of direct strong sunlight; the second solution is mainly to improve the visibility of the content on the display screen by improving hardware equipment, but the effect of the method is very little, and the screen which is mainly used at present is made of glass, so that the phenomenon of reflecting ambient light cannot be avoided, and the problem of over-strong illumination cannot be solved through the material. The embodiment of the application provides a method for enhancing interface content visibility by adjusting interface colors on the basis of software.
The embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a display control method according to an embodiment of the present disclosure.
101. Ambient light is acquired.
The terminal firstly obtains the ambient light, the specific method can use an ambient light sensor to detect the illumination intensity around the machine, a silicon photodiode in the sensor can generate the current of an analog signal according to the illumination condition, then the analog signal is converted into a numerical signal, and the numerical signal is compared with a highlight threshold value preset by the terminal to correspondingly adjust the color of a display area. The terminal may be an electronic device such as a mobile phone and a tablet, and the terminal may have various methods for acquiring the ambient light intensity and various application scenarios for acquiring the ambient light intensity, for example, the mobile phone automatically adjusts the screen brightness according to the acquired ambient light intensity, automatically turns on a flash lamp according to the acquired ambient light intensity, and automatically performs light supplement on a photo according to the acquired ambient light intensity. Two methods for acquiring the ambient light intensity by using a terminal represented by a mobile phone will be briefly listed below. The first method is that the mobile phone detects the intensity of the ambient light through a light sensor, the light sensor is also called a photoreceptor, the photoreceptor of the mobile phone is generally positioned in a small hole at the upper end of the front of the mobile phone body, the photoreceptor can sense the intensity of the ambient light of the current small hole, once the small hole is covered, the intensity of the light detected by the light sensor is immediately reduced, the light sensor is often used for sensing the intensity of the light on the front of the mobile phone, so that the screen brightness is automatically adjusted. The second method is to use the camera to obtain the brightness of each pixel point of the preview picture to estimate the ambient light intensity, the basic principle is that when the camera is opened, the camera element can convert the external image information into digital information and display the digital information in the form of a frame of picture, the average brightness of the picture under different illumination conditions is different, and we can judge an approximate value of the ambient light brightness according to some pre-judging information or threshold value, the basic steps of the method can be to open the mobile phone camera, request to obtain the information of a frame of preview picture, convert the brightness of each pixel point according to the gray value to find the average pixel point brightness, and regard it as the picture brightness value, and can also be regarded as the ambient light brightness value, the method has the advantages of accurately detecting the brightness value of the picture, if there are many advantages in the image processing aspect, the disadvantage is that the mobile phone camera needs to be opened, and not accurate enough if used when ambient light is of a high intensity.
102. A numerical signal is determined or generated based on the ambient light.
After the terminal acquires the ambient light, the current of the analog signal is generated according to the illumination condition, and then the analog signal is converted into a numerical value signal, wherein the numerical value signal is used for representing the intensity of the acquired ambient light, so that the display area can be correspondingly adjusted in chromaticity through the comparison of the numerical value signal and the highlight threshold value.
103. And adjusting the color of the display area according to the numerical value signal.
On a terminal desktop, the terminal desktop is generally divided into three parts, namely an application icon, a desktop background and small controls (such as weather, time, date and the like). The terminal firstly calls a background image file, lightens the color tone according to the adjusting method, and then replaces the original desktop image with the original color tone. And similarly, aiming at the application software icon, the icon file of the application software is obtained firstly, the color is adjusted and then the original icon is displayed in a screen, and the information such as date and time is completely adjusted to be black and is contrasted with a light-tone background. The case of displaying a page in a browser is as follows: the page display can also be divided into three parts (background picture, text and picture). All page information is rendered and displayed through a browser by means of hypertext markup language (HTML). The terminal acquires the HTML information of the page through the browser. The background picture is toned to light tone, and the common picture is toned to dark tone. If the text in the page is colored, it is uniformly set to black.
The above is a simplified method for adjusting the color of the display area of the terminal according to the value signal after the terminal acquires the value signal indicating the intensity of the ambient light. The specific adjustment method can divide the display area into a plurality of target display areas and non-target display areas, then respectively adjust the background color chroma of the target display areas and the non-target display areas, and limit the adjustment range, even if the difference between the chroma value of the color of the target display area and the chroma value of the color of the non-target display area is larger than or equal to a first threshold value, so as to enhance the visibility of the content of the display area. Alternatively, the first threshold is not a fixed and constant value, and may be different in different scenarios, depending on the particular scenario. The target display area and the non-target display area are components of the display area, the target display area can be important information needing to be acquired, and the non-target display area is unimportant information. For example, when a user is operating on a terminal desktop such as a mobile phone, the desktop background pattern can be regarded as a non-target display area, and the software icon on the desktop background pattern can be regarded as a target display area. The specific division method is determined by the terminal according to the specific scene, and this embodiment does not limit this.
The terminal can roughly be divided into two cases according to the color of the display area adjusted by the numerical signal, the first case is that when the acquired ambient light intensity is too large (namely the determined or generated numerical signal is too large) and exceeds a certain threshold set by the terminal, the ambient light is in a strong state in the scene, so the content on the terminal screen is difficult to see by human eyes, the terminal can deepen the background color tone of the target display area and lighten the background color tone of the non-target display area, and the target display area is highlighted by enhancing the contrast of the background color difference between the target display area and the non-target display area, so the content displayed on the target display area is easier to see by human eyes. The second case is that when the intensity of the acquired ambient light is too small (i.e. the determined or generated numerical signal is too small) and is lower than a certain threshold set by the terminal, it indicates that the ambient light is in a dark state in the scene, so the content on the terminal screen is easily confused by human eyes, the terminal can lighten the background color of the target display area and deepen the background color of the non-target display area, and the content on the target display area is not excessively highlighted by reducing the contrast of the background colors of the target display area and the non-target display area, so that the content of the non-target display area and the content of the target display area are easily confused by human eyes and the eyes are easily protected.
In addition, the terminal can record the color information of the ambient light in the form of a numerical signal, and perform different processing under different color conditions of the ambient light. For example, in the case where the numerical signal indicates that the ambient light is red, the terminal turns down the red R value in the color channel of the display area, and optionally raises the green G value and/or the blue B value in the color channel of the display area. Similarly, in the case where the value signal indicates that the ambient light is green, the terminal turns down the green G value in the color channel of the display area, and optionally raises the red R value and the blue B value in the color channel of the display area. In the case where the value signal indicates that the ambient light is blue, the terminal turns down the blue B value in the color channel of the display area, and optionally, raises the red R value and the green G value in the color channel of the display area. In the mode, the chromatic value of the color channel of the display area, which is the same as the ambient light, is reduced, and the chromatic values of other two colors are correspondingly improved, so that the display area can have better visibility under different ambient light conditions.
The terminal can also display the relevant information of a numerical signal on the display area by detecting the operation of the target user, wherein the numerical signal represents the intensity of the ambient light, the color of the ambient light and the visible degree of the display area, so that the target user can sense the visibility of the display area by looking at the digitalized visible degree on the display area, and then take corresponding operation to enhance the visibility of the display area.
Alternatively, there are various methods of adjusting the color of the display area, and the above-described embodiment provides only one example of the methods. In addition, an embodiment of the present application further provides a display control method, please refer to fig. 2, and fig. 2 is an interface schematic diagram of the display control method provided in the embodiment of the present application. As shown in fig. 2, the original background on the terminal is dark blue, as shown by the shaded area with the RGB mode number (0, 255), and since the background is regarded as the non-target display area by the terminal, the terminal will make the background light in a strong light environment, specifically, the terminal will increase the values of the two primary colors in the RGB mode of the background color to make the background light blue, as shown by the blank area with the RGB mode number (175,175,255). Meanwhile, the terminal can change the color of important information such as an application icon on a screen, the color presented by the original application icon on the terminal is pink as shown by a blank area with the RGB mode number (255,175,255), and the application icon is regarded as a target display area by the terminal, so that the terminal can shade the background under the strong light environment, specifically, the terminal can lower the value of the primary color in the RGB mode with the background color to present the primary color as the water red as shown by a shaded area with the RGB mode number (125,0, 125). The visibility of the background and the icon is enhanced by adjusting the value of the primary color in the RGB mode of the background color to adjust the color difference between the background and the icon. Alternatively, the user may also control the intensity level of the color adjustment by sliding a float via a slide button or otherwise adjusting the brightness of the screen.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another display control method according to an embodiment of the present disclosure.
301. Ambient light is acquired and a numerical signal is determined or generated.
The same as in steps 101 and 102.
302. And judging whether the numerical value signal is larger than or equal to a second threshold value.
And after the terminal generates the numerical signal, judging whether the magnitude of the numerical signal is greater than or equal to a second threshold value. And under the condition that the numerical signal is greater than or equal to the second threshold, the terminal starts a function of adjusting the background color of the display area, namely the terminal judges the current interface, correspondingly adjusts the color displayed on the screen of the terminal according to different contents of different interfaces, deepens the chroma of the background color of the target display area and lightens the chroma of the background color of the non-target display area. And/or under the condition that the numerical signal is smaller than the second threshold, the terminal does not start the function of adjusting the background color of the display area. Optionally, the second threshold is not fixed and may be different in different scenes, depending on the specific scene.
303. If yes, the color of the target display area is darkened, and/or the color of the non-target display area is lightened.
And under the condition that the terminal judges that the generated numerical value signal is greater than or equal to the second threshold value, the terminal darkens the color of the target display area and lightens the color of the non-target display area. Optionally, there are various ways to darken the color of the target display area, and in this embodiment, the chroma of the background color of the target display area is darkened by lowering the value of the hexadecimal color code of the background color of the target display area, and the chroma of the background color of the non-target display area is lightened by raising the value of the hexadecimal color code of the background color of the non-target display area. Alternatively, the target display area may be important information that needs to be acquired, the non-target display area is unimportant information, and the specific division method is determined by the terminal according to a specific scene. In such a way, the color contrast of the target display area and the non-target display area can be enhanced through the color adjustment of the target display area and the non-target display area, so that the visibility of the content of the target display area is enhanced, and the problem that the content of the target display area is difficult to see in a strong light environment is effectively solved.
For example, when the user is operating on the desktop, if the numerical signal is greater than or equal to the second threshold, the terminal will automatically lighten the color tone of the desktop background pattern, deepen the color of the application icon to highlight the visibility of the application icon, thereby facilitating the user operation. When a user browses a webpage and browses characters or pictures, the terminal automatically adjusts the background color to be white and the character color to be dark black so as to highlight the character part, if the user has the pictures, the saturation of the picture color is automatically improved, the tone of the pictures is more bright, and in addition, the color of the operation icon is also deepened.
Optionally, the terminal may further obtain, by looking up a correspondence table between the luminance and the chromaticity, the chromaticity corresponding to the ambient light intensity as a target chromaticity, and then adjust the background color of the corresponding display region to the target chromaticity, so that the content of the display region can achieve optimal visibility, and a specific table look-up method is not described in this embodiment.
304. And judging whether the difference between the chromatic value of the target display area color and the chromatic value of the non-target display area color is larger than or equal to a first threshold value.
After the chroma of the background colors of the corresponding target display area and the non-target display area is adjusted, the terminal judges whether the difference between the chroma value of the target display area color and the chroma value of the non-target display area color is larger than or equal to a first threshold value.
305. And finishing adjustment according to the judgment result.
If the difference between the two values is greater than or equal to the first threshold, it indicates that the terminal adjustment is completed, and if the difference is less than the first threshold, it indicates that the terminal adjustment is insufficient, and the effect of content visibility is not achieved, so the adjustment is continued, that is, the above step 303 is executed until the difference between the two values is greater than or equal to the first threshold.
The present embodiment explains the adjustment width of the chromaticity of the color of the adjustment display area, that is, the adjustment width should be set when the chromaticity value of the color of the target display area differs from the chromaticity value of the color of the non-target display area by more than or equal to the first threshold. Optionally, the first threshold is not fixed and may be different in different scenarios, depending on the particular scenario. The user can control the intensity of the color adjustment by sliding a float with a sliding button or other forms like adjusting the brightness of the screen. In this way, the effect of enhancing the visibility of the content of the target display area can be achieved by specifically limiting the chromaticity contrast difference of the background colors of the target display area and the non-target display area.
Optionally, there are multiple scenes for adjusting the color of the display area, and this embodiment provides only one of the more common scenes, please refer to fig. 4, and fig. 4 is an interface schematic diagram of another display control method provided in this embodiment. As shown in fig. 4, when the user is operating on the desktop, the color presented by the original background on the terminal is dark black, the application icon presents a normal tone, when the intensity of the ambient light is too high, the terminal will automatically lighten the tone of the desktop background pattern, and deepen the tone of the application icon to highlight the visibility of the application icon under strong light, so as to facilitate the user to use, and in addition, the terminal also changes important information such as time, place, weather, etc. from the original white to black, so as to highlight the importance and visibility.
Referring to fig. 5, fig. 5 is a schematic flow chart of another display control method according to an embodiment of the present disclosure.
501. Ambient light is acquired and a numerical signal is determined or generated.
The same as in steps 101 and 102.
502. And judging whether the numerical value signal is less than or equal to a third threshold value.
And after the terminal generates the numerical signal, judging whether the numerical signal is less than or equal to a third threshold value. And under the condition that the numerical signal is less than or equal to the third threshold, the terminal starts a function of adjusting the background color of the display area, namely, the terminal judges the current interface, correspondingly adjusts the color displayed on the screen of the terminal according to different contents of different interfaces, lightens the chroma of the background color of the target display area and deepens the chroma of the background color of the non-target display area. And/or, under the condition that the numerical signal is greater than the third threshold, the terminal does not start the function of adjusting the background color of the display area. Optionally, the third threshold is not fixed and may be different in different scenes, depending on the specific scene.
503. If yes, the color of the target display area is lightened, and/or the color of the non-target display area is darkened.
And under the condition that the terminal judges that the generated numerical signal is less than or equal to the third threshold value, the terminal lightens the color of the target display area and darkens the color of the non-target display area. Optionally, there are various ways to lighten the color of the target display area, and in this embodiment, the chroma of the background color of the target display area is lightened by increasing the value of the hexadecimal color code of the background color of the target display area, and the color of the non-target display area is darkened by reducing the value of the hexadecimal color code of the background color of the non-target display area. Alternatively, the target display area may be important information that needs to be acquired, the non-target display area is unimportant information, and the specific division method is determined by the terminal according to a specific scene. In this way, the contrast of the background color difference between the target display area and the non-target display area is reduced, so that the content on the target display area is not too prominent, and the content of the non-target display area and the content of the target display area are mixed by human eyes, and the eyes are easy to protect.
504. And judging whether the difference between the chromaticity value of the target display area color and the chromaticity of the background color of the non-target display area is larger than or equal to a first threshold value.
As in step 304 above.
505. And finishing adjustment according to the judgment result.
As in step 305 above.
The method of the present application is described above in detail, and the following provides an example of the apparatus of the present application.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a display control apparatus according to an embodiment of the present disclosure. The display control device 60 includes: an acquisition unit 601, a generation unit 602, and an adjustment unit 603. Wherein:
an acquisition unit 601 configured to acquire ambient light;
a generating unit 602, configured to determine or generate a numerical signal according to the ambient light, where the numerical signal is used to indicate an intensity of the ambient light;
an adjusting unit 603, configured to adjust the color of the display area according to the numerical signal until a difference between a chromatic value of the color of the target display area and a chromatic value of the color of the non-target display area is greater than or equal to a first threshold, where the target display area and the non-target display area are components of the display area.
In one implementation, the display control device obtains ambient light, generates a numerical signal representing the intensity of the ambient light according to the obtained ambient light, and adjusts the background color of the display area of the display control device according to the numerical signal, so that the difference between the chromatic value of the color of the target display area and the chromatic value of the color of the non-target display area is greater than or equal to a first threshold value, thereby enhancing the visibility of the content of the display area. Optionally, the target display area and the non-target display area are components of the display area, and the first threshold is not a fixed value and may be different in different scenes, and is determined by the display control device according to the specific scenes. In addition, the ambient light can be obtained in various ways, the ambient light sensor can be used for detecting the intensity of the ambient light, and if the detected intensity of the light source is greater than or equal to a certain threshold value, the display control device can start the function of adjusting the background color of the display area. The method can enhance the color contrast of the two display areas by adjusting the colors of the target display area and the non-target display area, thereby enhancing the visibility of the content of the target display area and effectively solving the problem that the content of the target display area is difficult to see by human eyes due to reflected illumination of the screen in a strong light environment.
Optionally, the adjusting unit 603 is specifically configured to, when the value of the numerical signal is greater than or equal to a second threshold, darken the color of the target display area, and/or lighten the color of the non-target display area.
Optionally, the target display area comprises an application icon; the obtaining unit 601 is further configured to obtain a chroma value of the application icon, where the chroma value of the application icon is used to represent chroma of the application icon;
the adjusting unit 603 is further configured to reduce the chroma value of the application icon.
Optionally, the adjusting unit 603 is specifically further configured to, when the value of the numerical signal is less than or equal to a third threshold, lighten the color of the target display area and/or darken the color of the non-target display area.
Optionally, the non-target display area comprises a desktop background; the obtaining unit 601 is further configured to obtain a chromatic value of the desktop background, where the chromatic value of the desktop background is used to represent a chromaticity of the desktop background;
the adjusting unit 603 is further configured to reduce the chroma value of the desktop background.
Optionally, the numerical signal comprises a color of the ambient light; the adjusting unit 603 is further configured to, in a case that the numerical signal indicates that the ambient light is red light, decrease a red R value in a color channel of the display area, and/or increase a green G value and/or a blue B value in the color channel of the display area.
Optionally, the display control device 60 further includes:
a detection unit 604 for detecting a target user operation;
a display unit 605, configured to display the numerical signal in the display area according to the target user operation, where the numerical signal is used to indicate an intensity of the ambient light, a color of the ambient light, and a level of visibility of the display area.
Optionally, the adjusting unit 603 is further configured to reduce the value of the hexadecimal color code of the application icon; and the method is also used for reducing the value of the hexadecimal color code of the desktop background.
According to the embodiment of the present application, each step involved in the method executed by the terminal in fig. 1, fig. 3 and fig. 5 may be executed by each unit in the apparatus shown in fig. 6. For example, 101 shown in fig. 1 is performed by 601 shown in fig. 6; as another example, 303 shown in fig. 3 is performed by 603 shown in fig. 6; as another example, 503 shown in fig. 5 is performed by 603 shown in fig. 6.
According to the embodiment of the present application, the units in the apparatus shown in fig. 6 may be respectively or entirely combined into one or several other units to form a structure, or some unit(s) therein may be further split into multiple functionally smaller units to form a structure, which may achieve the same operation without affecting the achievement of the technical effect of the embodiment of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the terminal-based terminal may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of multiple units.
Based on the description of the method embodiment and the device embodiment, the embodiment of the application further provides a schematic structural diagram of the terminal. As shown in fig. 7, the terminal 70 corresponds to the terminal in the above embodiment, and the terminal 70 may include: at least one processor 701, e.g., a CPU, at least one network interface 704, a user interface 703, a memory 705, at least one communication bus 702. Optionally, a communication bus 702 is used to enable connective communication between these components. Optionally, the user interface 703 may include a display screen (display), an input device, and the optional user interface 703 may also include a standard wired interface, a wireless interface. The network interface 704 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 705 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 705 may optionally also be at least one storage device located remotely from the processor 701. As shown in fig. 7, the memory 705, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the terminal 70 shown in fig. 7, the network interface 704 is mainly used for connecting other terminal devices; the user interface 703 is mainly used as an interface for providing input to the user; and processor 701 may be used to invoke a device control application stored in memory 705 to implement: acquiring ambient light; determining or generating a numerical signal according to the ambient light, wherein the numerical signal is used for representing the intensity of the ambient light; and adjusting the color of the display area according to the numerical value signal until the difference between the chromatic value of the color of the target display area and the chromatic value of the color of the non-target display area is greater than or equal to a first threshold value, wherein the target display area and the non-target display area are components of the display area. It should be understood that the terminal 70 may perform the operations performed by the terminal in the foregoing embodiments, such as the operations performed by the terminal in fig. 1, 3, and 5.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the aforementioned terminal is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the display control method in the embodiment corresponding to fig. 1, fig. 3, and fig. 5 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
The embodiment of the application also provides a display control method, which comprises the following steps:
acquiring an ambient light numerical signal, where the numerical signal is used to indicate the intensity of the ambient light, and optionally, the specific acquiring step may be the same as the above step 101 and step 102.
And adjusting the color of the display area according to the numerical value signal so that the color of the target display area and the color of the non-target display area meet a first preset condition.
Optionally, the method further comprises at least one of:
the first preset condition includes: the chrominance values differ by more than or equal to a first threshold;
the adjusting the color of the display area according to the numerical signal comprises: in the case that the value of the numerical value signal is greater than or equal to a second threshold value, the color of the target display area is darkened, and/or the color of the non-target display area is lightened;
the target display area and the non-target display area are components of the display area.
Optionally, the target display area includes an application icon, and the darkening the color of the target display area includes: and acquiring the chromatic value of the application icon, and reducing the chromatic value of the application icon.
Optionally, the method further comprises:
and in the case that the value of the numerical value signal is less than or equal to a third threshold value, lightening the color of the target display area and/or lightening the color of the non-target display area.
Optionally, the non-target display area includes a desktop background, and the darkening the color of the non-target display area includes: and acquiring the chromatic value of the desktop background, and reducing the chromatic value of the desktop background.
Optionally, the method further comprises at least one of:
the reducing the color of the application icon comprises: reducing the value of the hexadecimal color code of the application icon; the color of the desktop background is reduced, including: and reducing the value of the hexadecimal color code of the desktop background.
Optionally, the numerical signal further includes a color of the ambient light, and the adjusting the color of the display area according to the numerical signal includes: in the case that the numerical signal indicates that the ambient light is red, the red R value in the color channel of the display area is decreased, and/or the green G value and/or the blue B value in the color channel of the display area is increased.
Optionally, the method further comprises:
and responding to the target operation, and displaying the numerical value signal in the display area.
The present application further provides a mobile terminal, including: the display control program is stored on the memory, and when being executed by the processor, the display control program realizes the steps of any one of the methods.
The present application also provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of any of the methods described above.
In the embodiments of the mobile terminal and the computer-readable storage medium provided in the present application, all technical features of the embodiments of the method are included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Claims (10)
1. A display control method, comprising:
acquiring an ambient light numerical signal, wherein the numerical signal is used for representing the intensity of the ambient light;
and adjusting the color of the display area according to the numerical value signal so that the color of the target display area and the color of the non-target display area meet a first preset condition.
2. The method of claim 1, wherein the target display area and the non-target display area are components of the display area.
3. The method of claim 2, wherein the adjusting the color of the display area according to the value signal comprises: in the case that the value of the numerical value signal is greater than or equal to a second threshold value, the color of the target display area is darkened, and/or the color of the non-target display area is lightened; and/or the presence of a gas in the gas,
and in the case that the value of the numerical value signal is less than or equal to a third threshold value, lightening the color of the target display area and/or lightening the color of the non-target display area.
4. The method of claim 2, further comprising at least one of:
the target display area includes an application icon, and the darkening of the color of the target display area includes: acquiring a chromatic value of the application icon, and reducing the chromatic value of the application icon;
the non-target display area comprises a desktop background, and the darkening of the color of the non-target display area comprises: and acquiring the chromatic value of the desktop background, and reducing the chromatic value of the desktop background.
5. The method of claim 4, comprising at least one of:
the reducing the color of the application icon comprises: reducing the value of the hexadecimal color code of the application icon;
the color of the desktop background is reduced, including: and reducing the value of the hexadecimal color code of the desktop background.
6. The method according to any one of claims 1 to 5, characterized in that said first preset condition comprises: the chrominance values differ by more than or equal to a first threshold.
7. The method of any of claims 1 to 5, wherein the numeric signal further comprises a color of the ambient light, and wherein adjusting the color of the display area in accordance with the numeric signal comprises:
in the case that the numerical signal indicates that the ambient light is red, the red R value in the color channel of the display area is decreased, and/or the green G value and/or the blue B value in the color channel of the display area is increased.
8. The method according to any one of claims 1 to 5, further comprising:
and responding to the target operation, and displaying the numerical value signal in the display area.
9. An electronic device, comprising: a processor and a memory, wherein the memory stores program instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1 to 8.
10. A computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to perform the method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110394690.3A CN113112944A (en) | 2021-04-13 | 2021-04-13 | Display control method, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110394690.3A CN113112944A (en) | 2021-04-13 | 2021-04-13 | Display control method, electronic device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113112944A true CN113112944A (en) | 2021-07-13 |
Family
ID=76716484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110394690.3A Pending CN113112944A (en) | 2021-04-13 | 2021-04-13 | Display control method, electronic device, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113112944A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113504832A (en) * | 2021-07-27 | 2021-10-15 | 北京字节跳动网络技术有限公司 | Mobile terminal display adjustment method, device, equipment and medium |
CN114594921A (en) * | 2022-03-09 | 2022-06-07 | 北京沃东天骏信息技术有限公司 | Multimedia delivery method, device and system |
CN118135928A (en) * | 2024-05-06 | 2024-06-04 | 荣耀终端有限公司 | Display brightness adjustment method and device |
CN118781959A (en) * | 2024-06-07 | 2024-10-15 | 深圳市晶华泰科技有限公司 | A method and system for correcting brightness and chromaticity of LED display screen |
-
2021
- 2021-04-13 CN CN202110394690.3A patent/CN113112944A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113504832A (en) * | 2021-07-27 | 2021-10-15 | 北京字节跳动网络技术有限公司 | Mobile terminal display adjustment method, device, equipment and medium |
CN113504832B (en) * | 2021-07-27 | 2024-05-28 | 北京字节跳动网络技术有限公司 | Mobile terminal display adjustment method, device, equipment and medium |
CN114594921A (en) * | 2022-03-09 | 2022-06-07 | 北京沃东天骏信息技术有限公司 | Multimedia delivery method, device and system |
CN118135928A (en) * | 2024-05-06 | 2024-06-04 | 荣耀终端有限公司 | Display brightness adjustment method and device |
CN118781959A (en) * | 2024-06-07 | 2024-10-15 | 深圳市晶华泰科技有限公司 | A method and system for correcting brightness and chromaticity of LED display screen |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113112944A (en) | Display control method, electronic device, and storage medium | |
JP4283297B2 (en) | Image compensation method | |
CN101404148B (en) | Method for regulating terminal screen display effect and terminal unit | |
EP2151819B1 (en) | Apparatus and method for displaying screen according to intensity of brightness of ambient light | |
CN107179889B (en) | Interface color adjusting method, webpage color adjusting method and webpage color adjusting device | |
CN102752604B (en) | Image display method and intelligent device | |
CN110809120B (en) | Light supplementing method for shot picture, smart television and computer readable storage medium | |
US9286823B2 (en) | Method and apparatus for reducing power consumption in electronic equipment using self-emitting type display | |
JP2010250331A (en) | COLOR DISPLAY DEVICE, COLOR CORRECTION METHOD, AND COLOR CORRECTION PROGRAM | |
JP2004212969A (en) | Method and apparatus for generating illumination characteristic data around image display apparatus and method and apparatus for color shift compensation using the same | |
US11473971B2 (en) | Ambient headroom adaptation | |
US20090009525A1 (en) | Color Adjustment Device and Method | |
CN111901519B (en) | Screen light supplement method and device and electronic equipment | |
US9024855B2 (en) | Information processing apparatus and display control method | |
US10506209B2 (en) | Image output control device, image output control method, image output system, and recording medium | |
US9208749B2 (en) | Electronic device and method for enhancing readability of an image thereof | |
JP2005134866A (en) | Color display device, color compensation method, and color compensation program | |
US7586545B2 (en) | Apparatus and methods for controlling an on-screen display | |
JP6241155B2 (en) | Control device and computer program | |
CN107578753B (en) | Mobile terminal, display screen brightness adjusting method and storage medium | |
CN112201191B (en) | Display screen control method and device, electronic equipment and readable storage medium | |
US11217205B2 (en) | Method and apparatus for rendering contents for vision accessibility | |
US10777167B2 (en) | Color image display adaptation to ambient light | |
US20190130851A1 (en) | Image processing method and device thereof | |
Birukov et al. | Correction of color saturation for tone mapping operator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |