CN116913224A - Display interface adjusting method and device and terminal - Google Patents

Display interface adjusting method and device and terminal Download PDF

Info

Publication number
CN116913224A
CN116913224A CN202310896916.9A CN202310896916A CN116913224A CN 116913224 A CN116913224 A CN 116913224A CN 202310896916 A CN202310896916 A CN 202310896916A CN 116913224 A CN116913224 A CN 116913224A
Authority
CN
China
Prior art keywords
screen
brightness
color
adjusted
deviation
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
Application number
CN202310896916.9A
Other languages
Chinese (zh)
Inventor
张哲�
徐磊
陈珊
张丽娟
曹文颀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Video Technology Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Video Technology Co Ltd
MIGU Culture Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, MIGU Video Technology Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310896916.9A priority Critical patent/CN116913224A/en
Publication of CN116913224A publication Critical patent/CN116913224A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • G09G2360/144Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/16Calculation or use of calculated indices related to luminance levels in display data

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 provides a display interface adjusting method, a device and a terminal. The method comprises the following steps: acquiring the intensity of ambient light of a display terminal; adjusting the screen brightness of the display terminal according to the ambient light intensity; and adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal. According to the application, the screen brightness can be adjusted according to the intensity of the ambient light where the display terminal is located, and the screen background color can be adjusted according to the deviation between the screen brightness and the screen background color, so that the screen brightness and the screen background dynamically change along with the intensity of the ambient light, a better display effect is realized, and the user experience is increased.

Description

Display interface adjusting method and device and terminal
Technical Field
The present application relates to the field of environmental awareness technologies, and in particular, to a method, an apparatus, and a terminal for adjusting a display interface.
Background
The display interface of the terminal is used for displaying information contents such as images, videos, characters and the like to a user. In order to provide more comfortable watching experience for users, most of existing terminals support users to manually adjust screen brightness, background, characters and the like according to requirements, but the actual use environment of the terminal may change at any time, if the display interface is frequently manually adjusted, poor use experience can be caused, and if the display interface is not adjusted, the display interface cannot achieve the optimal display effect.
Disclosure of Invention
The application aims to provide a display interface adjusting method, a device and a terminal. The problem that an optimal display effect cannot be achieved on an existing terminal display interface is solved.
In order to achieve the above object, an embodiment of the present application provides a method for adjusting a display interface, including:
acquiring the intensity of ambient light of a display terminal;
adjusting the screen brightness of the display terminal according to the ambient light intensity;
and adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal.
Optionally, the method further comprises: and adjusting the color of the text object according to the deviation between the adjusted background color of the screen and the color of the text object currently displayed in the screen.
Optionally, the adjusting the screen brightness of the display terminal according to the ambient light intensity includes:
and adjusting the screen brightness level according to the ambient light intensity and the screen maximum brightness, wherein the screen brightness level is equal to the ratio of the current screen brightness to the screen maximum brightness.
Optionally, the adjusting the screen background color according to the adjusted deviation between the screen brightness and the current screen background color of the display terminal includes:
determining the dominant color of the current background color of the screen;
acquiring the deviation of the adjusted screen brightness and the brightness of the main color;
and adjusting the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen.
Optionally, the acquiring the deviation between the adjusted brightness of the screen and the brightness of the dominant color includes:
calculating brightness according to the RGB value of the main color;
calculating the deviation of the screen brightness and the brightness of the main color according to the adjusted screen brightness level corresponding to the screen brightness and the brightness degree value corresponding to the brightness;
wherein the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness; the brightness level value is equal to a ratio of the brightness to a maximum brightness value.
Optionally, the adjusting the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen includes:
if the deviation is larger than a first value and the screen brightness level corresponding to the adjusted screen brightness is smaller than a second value, the main color of the background color of the screen is adjusted to be black;
if the deviation is larger than the first value and the screen brightness level corresponding to the adjusted screen brightness is larger than the third value, the main color of the background color of the screen is adjusted to be white;
if the deviation is larger than a first value, and the screen brightness level corresponding to the adjusted screen brightness is larger than or equal to a second value and smaller than or equal to a third value, randomly adjusting the dominant color of the screen background color, wherein the dominant color of the screen background color after random adjustment meets a first condition;
wherein, the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness.
Optionally, the first condition includes:
the deviation of the adjusted screen brightness from the brightness of the dominant color of the randomly adjusted screen background color is less than the first value.
Optionally, the adjusting the color of the text object according to the adjusted deviation between the background color of the screen and the color of the text object currently displayed in the screen includes:
grouping all text objects displayed in a screen according to colors;
determining the intermediate color of a screen background area where each group of text objects are positioned;
determining the difference degree of the color of the intermediate color and the color of the text object;
and adjusting the color of the text object according to the difference degree.
To achieve the above object, an embodiment of the present application provides a display interface adjustment device, including:
the first acquisition module is used for acquiring the intensity of the ambient light where the display terminal is located;
the first processing module is used for adjusting the screen brightness of the display terminal according to the ambient light intensity;
and the second processing module is used for adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal.
To achieve the above object, an embodiment of the present application provides a terminal including: the display interface adjustment method comprises the steps of a transceiver, a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize the steps of the display interface adjustment method.
To achieve the above object, an embodiment of the present application provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the display interface adjustment method described above.
The technical scheme of the application has the following beneficial effects:
according to the embodiment of the application, the screen brightness can be adjusted according to the intensity of the ambient light of the display terminal, and the screen background color can be adjusted according to the deviation between the screen brightness and the screen background color, so that the dynamic change of the screen brightness and the screen background along with the intensity of the ambient light is realized, the better display effect is realized, and the user experience is increased.
Drawings
FIG. 1 is a flow chart of a method for adjusting a display interface according to an embodiment of the application;
FIG. 2 is a schematic diagram of grouping text objects according to an embodiment of the application;
FIG. 3 is a schematic diagram of adjusting the color of a text object according to an embodiment of the present application;
FIG. 4 is a flow chart of a display interface adjusting device according to an embodiment of the application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided merely to facilitate a thorough understanding of embodiments of the application. It will therefore be apparent to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. In addition, the terms "system" and "network" are often used interchangeably herein.
As shown in fig. 1, an embodiment of the present application provides a method for adjusting a display interface, including:
and 101, acquiring the intensity of the ambient light of the display terminal.
Alternatively, the terminal may be set to periodically obtain the ambient light intensity (may be denoted as I, e.g. 100 lux) by the light sensor at regular intervals (e.g. every 1 s), so as to sense the environment in real time.
Optionally, the terminal may further obtain a current screen brightness, where the screen brightness may be represented by a screen brightness level. The screen brightness level may be divided by 0-100%, then the screen brightness level= (current screen brightness/screen maximum brightness). For example: assuming that the maximum screen brightness is 1000nit, a screen brightness level of 10% means that the current screen brightness is 100nit.
And 102, adjusting the screen brightness of the display terminal according to the ambient light intensity.
And step 103, adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal.
In the embodiment, the screen brightness can be adjusted according to the intensity of the ambient light where the display terminal is located, and the screen background color can be adjusted according to the deviation between the screen brightness and the screen background color, so that the screen brightness and the screen background dynamically change along with the intensity of the ambient light, a better display effect is realized, and the user experience is improved.
As an optional embodiment, the adjusting the screen brightness of the display terminal according to the ambient light intensity includes:
and adjusting the screen brightness level according to the ambient light intensity and the screen maximum brightness, wherein the screen brightness level is equal to the ratio of the current screen brightness to the screen maximum brightness.
In this embodiment, the screen maximum brightness is already preconfigured in the display terminal. When the ambient light changes, the screen brightness can be adjusted according to the intensity of the ambient light and the maximum brightness of the screen of the terminal.
Optionally, the adjusting the brightness level of the screen according to the intensity of the ambient light and the maximum brightness of the screen includes: calculating the product of the ambient light intensity and a preset value; and determining the ratio of the product to the maximum brightness of the screen as the adjusted screen brightness level.
Optionally, the preset value may be determined according to multiple tests, and the preset value may ensure that the calculated brightness level of the screen matches the current intensity of ambient light, that is, the user may feel comfortable when watching the screen. Assuming that the preset value is 0.8, then:
screen brightness level= (ambient light intensity 0.8)/screen maximum brightness
Wherein an upper and/or lower limit of the screen brightness level may also be set, for example: the upper limit of the screen brightness level is set to 100%, and the lower limit of the screen brightness level is set to 10%.
As an optional embodiment, the adjusting the screen background color according to the adjusted deviation between the screen brightness and the current screen background color of the display terminal includes:
1) The dominant color of the current screen background color is determined.
Specifically, the terminal may obtain the optical three primary color (Red, green, blue, RGB) value of each pixel point in the background area of the screen, and obtain RGB with the largest occurrence number by traversing, as the primary color of the background.
2) And acquiring the deviation of the adjusted screen brightness and the brightness of the main color.
Optionally, the acquiring the deviation between the adjusted brightness of the screen and the brightness of the dominant color includes: calculating brightness according to the RGB value of the main color; calculating the deviation of the screen brightness and the brightness of the main color according to the adjusted screen brightness level corresponding to the screen brightness and the brightness degree value corresponding to the brightness; wherein the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness; the brightness level value is equal to a ratio of the brightness to a maximum brightness value.
In this embodiment, RGB of the dominant color may first be converted to YUV mode, where Y is brightness (i.e., gray value), and U and V represent chromaticity (to describe image color and saturation, the color of a given pixel). The brightness can be calculated by the following formula:
Y=R*0.299+G*0.587+B*0.114;0≤Y≤255
r represents the RGB value of red, G represents the RGB value of green, and B represents the RGB value of blue. Wherein smaller Y represents darker color.
The brightness degree value is obtained by normalizing the brightness, and is a numerical value obtained by converting the brightness into 0 to 1; the maximum brightness value is 255, and the brightness degree value is the ratio of the value of Y to 255.
The deviation of the screen brightness and the brightness of the dominant color is calculated by the following formula:
3) And adjusting the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen.
Optionally, the adjusting the dominant color of the background color of the screen according to the deviation and the brightness of the screen includes:
if the deviation is larger than a first value and the screen brightness level corresponding to the adjusted screen brightness is smaller than a second value, the main color of the background color of the screen is adjusted to be black;
if the deviation is larger than the first value and the screen brightness level corresponding to the adjusted screen brightness is larger than the third value, the main color of the background color of the screen is adjusted to be white;
if the deviation is larger than a first value, and the screen brightness level corresponding to the adjusted screen brightness is larger than or equal to a second value and smaller than or equal to a third value, randomly adjusting the dominant color of the screen background color, wherein the dominant color of the screen background color after random adjustment meets a first condition; wherein, the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness.
Optionally, the first condition includes: the deviation of the adjusted screen brightness from the brightness of the dominant color of the randomly adjusted screen background color is less than the first value.
In this embodiment, the first, second and third values may be obtained from a number of trials, for example, may be set according to the comfort of use by the user. For example: the first value may be 10%, the second value may be 20%, and the third value may be 80%, and the main color of the screen background color may be adjusted according to the deviation and the screen brightness according to the following formula:
for example: the background main color of the current screen is blue RGB (0,0,255), the screen brightness level becomes 100% when the screen is exposed to outdoor sunlight, the calculated deviation is 88.6%, and the background main color RGB can be adjusted to be white (255 ) according to the formula.
As an alternative embodiment, the method further comprises: and adjusting the color of the text object according to the deviation between the adjusted background color of the screen and the color of the text object currently displayed in the screen.
In this embodiment, the terminal may also adjust the color of the text object. Specifically, after the terminal adjusts the background color of the screen, the color of the text object may also need to be adjusted in order to make the user more comfortable to browse the text.
Optionally, the adjusting the color of the text object according to the adjusted deviation between the background color of the screen and the color of the text object currently displayed in the screen includes:
a) All text objects displayed in the screen are grouped by color.
Optionally, the grouping all text objects displayed in the screen according to colors includes: determining RGB values of all text objects displayed in a screen; dividing the text objects with the same RGB values into a group to obtain at least one group of text objects.
In this embodiment, the terminal may traverse all the text objects in the screen, and calculate RGB values of each object; objects are divided by RGB values, and text objects of the same RGB value are divided into a group, as shown in fig. 2.
b) And determining the intermediate color of the background area of the screen where each group of text objects are positioned.
Optionally, the determining the intermediate color of the background area of the screen where each group of text objects is located includes:
determining a screen background area where each group of text objects are located according to the coordinates, the width and the height information of each group of text objects; and calculating the average RGB value of the screen background area according to RGB of all pixels in the screen background area, and determining the color corresponding to the average RGB value as the intermediate color of the screen background area.
In the embodiment, the terminal acquires coordinates (x, y), width and height of the text object, and confirms a screen background area of the text object; and determining RGB of all pixels in the background area of the screen, calculating the average value of RGB of all pixels, and further determining the intermediate color of the background area of the screen.
c) And determining the difference degree of the intermediate color and the color of the text object.
Assume that the average RGB values of the screen background area are: (R1, G1, B1), the color value of the text object is: (R2, G2, B2) the degree of difference of the intermediate color from the color of the literal object can be calculated by the following color difference formula:
L=sqrt(3*(R1-R2)2+4*(G1-G2)2+2*(B1-B2)2)
it should be noted that the difference may be calculated by other related algorithms, which is not limited herein.
d) And adjusting the color of the text object according to the difference degree.
Optionally, the adjusting the color of the text object according to the degree of difference includes: when the difference degree is smaller than or equal to a difference threshold value, adjusting the color of the text object to be the color value of the current text color; and under the condition that the difference degree is larger than a difference threshold value, keeping the current character color unchanged.
Optionally, the method further comprises: the difference threshold is obtained through big data training.
In this embodiment, the difference threshold (Diff) may be calculated by big data training, for example:
a: a set of color difference data is obtained in the form of, for example: (RGB) 1 ,RGB 2 0) or (RGB) 1 ,RGB 2 1), wherein 0 in the data represents: RGB (red, green and blue) 1 And RGB 2 Similarly; 1 represents: RGB (red, green and blue) 1 And RGB 2 Dissimilar.
b: dividing the color difference data into a training set and a testing set according to the ratio of 7:3, and calculating by using the training set to obtain A group color difference data: (L) 1 ,0)、(L 2 ,1)……(L n 0), calculating to obtain group B color difference data by using the test set: (L) 1 ,0)、(L 2 ,1)……(L m 0); wherein L is RGB in the color difference data 1 And RGB 2 And carrying out the degree of difference between the background area color and the text color obtained by calculation by the color difference formula.
c: grouping the color difference data of the group A according to 0 and 1, and respectively calculating to obtain the median of each grouping: x is X 0 、X 1 Wherein X is 1 >X 0
d: from X 0 Initially, the value X (which may be any value obtained by incrementing a fixed length) is obtained by incrementing a fixed length (e.g., step 2), and the accuracy is verified by the test set.
The method for verifying the accuracy rate through the test set comprises the following steps: using L in group B color difference data 1 、L 2 ……L m Comparing the value of X with the value of L m <X is 0, L m >X is 1. The obtained data (0 or 1) and L m The same is true for comparison, whereas the opposite indicates inaccuracy. And obtaining the accuracy rate by (accurate number)/m, and obtaining the numerical value X with the maximum accuracy rate as a difference threshold value Diff.
It should be noted that, the difference threshold may be obtained by training the above method, or may be specified by a system, or may be set according to a user experience, and the above method for determining the difference threshold is merely an example and is not limited herein.
After the difference threshold value is determined, comparing the difference L between the intermediate color of the screen background area and the color of the text object with the difference threshold value, and if L is less than or equal to the difference threshold value, adjusting the text color to be the color of the current text color; if L is greater than the variance threshold, the text color may not be adjusted, as shown in fig. 3.
According to the embodiment of the application, the screen brightness level is dynamically adjusted according to a conversion formula of the ambient light intensity and the screen brightness level by sensing the ambient light intensity. And calculating the difference value between the brightness level of the screen and the dominant color data of the current screen background based on the dynamic adjusted brightness level of the screen and the dominant color data of the current screen background according to the deviation, and dynamically adjusting the dominant color of the screen background according to the difference value. And dynamically adjusting the color of the text object according to the color difference between the adjusted background main color and the color of the font object and the difference threshold value ratio obtained by big data training. According to the embodiment of the application, the colors of the screen background and the font object can be dynamically adjusted according to the screen use environment, the use experience is optimized, the contrast color is highlighted and watched, and a good display effect is achieved.
According to the embodiment of the application, the screen brightness can be adjusted according to the intensity of the ambient light of the display terminal, the screen background color can be adjusted according to the deviation between the screen brightness and the screen background color, and the color of the text object can be adjusted according to the deviation between the adjusted screen background color and the color of the text object, so that the screen brightness, the screen background and the text dynamically change along with the intensity of the ambient light, a better display effect is realized, and the user experience is increased.
As shown in fig. 4, an embodiment of the present application further provides a display interface adjustment device 400, including:
a first obtaining module 410, configured to obtain an intensity of ambient light where the display terminal is located;
the first processing module 420 is configured to adjust a screen brightness of the display terminal according to the ambient light intensity;
and a second processing module 430, configured to adjust a screen background color according to the adjusted deviation between the screen brightness and the current screen background color of the display terminal.
Optionally, the apparatus further includes: and the third processing module is used for adjusting the color of the text object according to the deviation between the adjusted background color of the screen and the color of the text object currently displayed in the screen.
Optionally, the first processing module is specifically configured to:
and adjusting the screen brightness level according to the ambient light intensity and the screen maximum brightness, wherein the screen brightness level is equal to the ratio of the current screen brightness to the screen maximum brightness.
Optionally, the first processing module is specifically configured to:
calculating the product of the ambient light intensity and a preset value;
and determining the ratio of the product to the maximum brightness of the screen as the adjusted screen brightness level.
Optionally, the second processing module is specifically configured to:
determining the dominant color of the current background color of the screen;
acquiring the deviation of the adjusted screen brightness and the brightness of the main color;
and adjusting the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen.
Optionally, the second processing module is specifically configured to:
calculating brightness according to the RGB value of the main color;
calculating the deviation of the screen brightness and the brightness of the main color according to the adjusted screen brightness level corresponding to the screen brightness and the brightness degree value corresponding to the brightness;
wherein the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness; the brightness level value is equal to a ratio of the brightness to a maximum brightness value.
Optionally, the second processing module is specifically configured to:
if the deviation is larger than a first value and the screen brightness level corresponding to the adjusted screen brightness is smaller than a second value, the main color of the background color of the screen is adjusted to be black;
if the deviation is larger than the first value and the screen brightness level corresponding to the adjusted screen brightness is larger than the third value, the main color of the background color of the screen is adjusted to be white;
if the deviation is larger than a first value, and the screen brightness level corresponding to the adjusted screen brightness is larger than or equal to a second value and smaller than or equal to a third value, randomly adjusting the dominant color of the screen background color, wherein the dominant color of the screen background color after random adjustment meets a first condition;
wherein, the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness.
Optionally, the first condition includes:
the deviation of the adjusted screen brightness from the brightness of the dominant color of the randomly adjusted screen background color is less than the first value.
Optionally, the third processing module is specifically configured to:
grouping all text objects displayed in a screen according to colors;
determining the intermediate color of a screen background area where each group of text objects are positioned;
determining the difference degree of the color of the intermediate color and the color of the text object;
and adjusting the color of the text object according to the difference degree.
Optionally, the third processing module is specifically configured to:
determining RGB values of all text objects displayed in a screen;
dividing the text objects with the same RGB values into a group to obtain at least one group of text objects.
Optionally, the third processing module is specifically configured to:
determining a screen background area where each group of text objects are located according to the coordinates, the width and the height information of each group of text objects;
and calculating the average RGB value of the screen background area according to RGB of all pixels in the screen background area, and determining the color corresponding to the average RGB value as the intermediate color of the screen background area.
Optionally, the third processing module is specifically configured to:
when the difference degree is smaller than or equal to a difference threshold value, adjusting the color of the text object to be the color value of the current text color;
and under the condition that the difference degree is larger than a difference threshold value, keeping the current character color unchanged.
Optionally, the apparatus further includes:
and the second acquisition module is used for acquiring the difference threshold value through big data training.
It should be noted that, the above device provided in the embodiment of the present application can implement all the method steps implemented in the method embodiment and achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those in the method embodiment in this embodiment are omitted.
As shown in fig. 5, a terminal according to an embodiment of the present application includes: the display interface adjustment method comprises the steps of a transceiver 501, a processor 502, a memory 503 and a computer program stored on the memory 503 and executable on the processor 502, wherein the computer program is executed by the processor to realize the steps of the display interface adjustment method. Specifically, the processor 502 is configured to:
acquiring the intensity of the ambient light of the display terminal;
adjusting the screen brightness of the display terminal according to the ambient light intensity;
and adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal.
Optionally, the processor is further configured to: and adjusting the color of the text object according to the deviation between the adjusted background color of the screen and the color of the text object currently displayed in the screen.
Optionally, the processor adjusts the screen brightness of the display terminal according to the ambient light intensity, including:
and adjusting the screen brightness level according to the ambient light intensity and the screen maximum brightness, wherein the screen brightness level is equal to the ratio of the current screen brightness to the screen maximum brightness.
Optionally, the processor adjusts the screen brightness level according to the ambient light intensity and the screen maximum brightness, including:
calculating the product of the ambient light intensity and a preset value;
and determining the ratio of the product to the maximum brightness of the screen as the adjusted screen brightness level.
Optionally, the processor adjusts the screen background color according to the adjusted deviation between the screen brightness and the current screen background color of the display terminal, including:
determining the dominant color of the current background color of the screen;
acquiring the deviation of the adjusted screen brightness and the brightness of the main color;
and adjusting the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen.
Optionally, the processor obtains the deviation of the adjusted brightness of the screen and the brightness of the dominant color, including:
calculating brightness according to the RGB value of the main color;
calculating the deviation of the screen brightness and the brightness of the main color according to the adjusted screen brightness level corresponding to the screen brightness and the brightness degree value corresponding to the brightness;
wherein the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness; the brightness level value is equal to a ratio of the brightness to a maximum brightness value.
Optionally, the processor adjusts the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen, including:
if the deviation is larger than a first value and the screen brightness level corresponding to the adjusted screen brightness is smaller than a second value, the main color of the background color of the screen is adjusted to be black;
if the deviation is larger than the first value and the screen brightness level corresponding to the adjusted screen brightness is larger than the third value, the main color of the background color of the screen is adjusted to be white;
if the deviation is larger than a first value, and the screen brightness level corresponding to the adjusted screen brightness is larger than or equal to a second value and smaller than or equal to a third value, randomly adjusting the dominant color of the screen background color, wherein the dominant color of the screen background color after random adjustment meets a first condition;
wherein, the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness.
Optionally, the first condition includes:
the deviation of the adjusted screen brightness from the brightness of the dominant color of the randomly adjusted screen background color is less than the first value.
Optionally, the processor adjusts the color of the text object according to the adjusted deviation between the background color of the screen and the color of the text object currently displayed in the screen, including:
grouping all text objects displayed in a screen according to colors;
determining the intermediate color of a screen background area where each group of text objects are positioned;
determining the difference degree of the color of the intermediate color and the color of the text object;
and adjusting the color of the text object according to the difference degree.
Optionally, the processor groups all text objects displayed in the screen according to colors, including:
determining RGB values of all text objects displayed in a screen;
dividing the text objects with the same RGB values into a group to obtain at least one group of text objects.
Optionally, the processor determines an intermediate color of a background area of the screen where each group of text objects is located, including:
determining a screen background area where each group of text objects are located according to the coordinates, the width and the height information of each group of text objects;
and calculating the average RGB value of the screen background area according to RGB of all pixels in the screen background area, and determining the color corresponding to the average RGB value as the intermediate color of the screen background area.
Optionally, the processor adjusts the color of the text object according to the degree of difference, including:
when the difference degree is smaller than or equal to a difference threshold value, adjusting the color of the text object to be the color value of the current text color;
and under the condition that the difference degree is larger than a difference threshold value, keeping the current character color unchanged.
Optionally, the processor is further configured to: the difference threshold is obtained through big data training.
Wherein in fig. 5, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by processor 502 and various circuits of memory represented by memory 503, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 501 may be a number of elements, i.e. including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The user interface 500 may also be an interface capable of interfacing with an inscribed desired device for a different user device, including but not limited to a keypad, display, speaker, microphone, joystick, etc.
The processor 502 is responsible for managing the bus architecture and general processing, and the memory 503 may store data used by the processor 1010 in performing operations.
Alternatively, the processor 502 may be a Central Processing Unit (CPU), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or a complex programmable logic device (Complex Programmable Logic Device, CPLD), which may also employ a multi-core architecture.
Those skilled in the art will appreciate that all or part of the steps of implementing the above-described embodiments may be implemented by hardware, or may be implemented by instructing the relevant hardware by a computer program comprising instructions for performing some or all of the steps of the above-described methods; and the computer program may be stored in a readable storage medium, which may be any form of storage medium.
In addition, the specific embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, and the program is executed by a processor to implement the steps in the display interface adjustment method. And the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the transceiving method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that various modifications and changes can be made without departing from the principles of the present application, and such modifications and changes are intended to be within the scope of the present application.

Claims (10)

1. A display interface adjustment method, comprising:
acquiring the intensity of ambient light of a display terminal;
adjusting the screen brightness of the display terminal according to the ambient light intensity;
and adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal.
2. The method according to claim 1, wherein the method further comprises:
and adjusting the color of the text object according to the deviation between the adjusted background color of the screen and the color of the text object currently displayed in the screen.
3. The method of claim 1, wherein said adjusting the screen brightness of the display terminal according to the ambient light intensity comprises:
and adjusting the screen brightness level according to the ambient light intensity and the screen maximum brightness, wherein the screen brightness level is equal to the ratio of the current screen brightness to the screen maximum brightness.
4. The method according to claim 1, wherein adjusting a screen background color according to a deviation between the adjusted screen brightness and a current screen background color of the display terminal comprises:
determining the dominant color of the current background color of the screen;
acquiring the deviation of the adjusted screen brightness and the brightness of the main color;
and adjusting the dominant color of the background color of the screen according to the deviation and the adjusted brightness of the screen.
5. The method of claim 4, wherein the obtaining the adjusted deviation of the screen brightness and the dominant color brightness comprises:
calculating brightness according to the RGB value of the main color;
calculating the deviation of the screen brightness and the brightness of the main color according to the adjusted screen brightness level corresponding to the screen brightness and the brightness degree value corresponding to the brightness;
wherein the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness; the brightness level value is equal to a ratio of the brightness to a maximum brightness value.
6. The method of claim 4, wherein adjusting the dominant color of the background color of the screen based on the deviation and the adjusted brightness of the screen comprises:
if the deviation is larger than a first value and the screen brightness level corresponding to the adjusted screen brightness is smaller than a second value, the main color of the background color of the screen is adjusted to be black;
if the deviation is larger than the first value and the screen brightness level corresponding to the adjusted screen brightness is larger than the third value, the main color of the background color of the screen is adjusted to be white;
if the deviation is larger than a first value, and the screen brightness level corresponding to the adjusted screen brightness is larger than or equal to a second value and smaller than or equal to a third value, randomly adjusting the dominant color of the screen background color, wherein the dominant color of the screen background color after random adjustment meets a first condition;
wherein, the screen brightness level is equal to the ratio of the adjusted screen brightness to the maximum screen brightness.
7. The method of claim 2, wherein adjusting the color of the text object based on the adjusted deviation between the background color of the screen and the color of the text object currently displayed in the screen comprises:
grouping all text objects displayed in a screen according to colors;
determining the intermediate color of a screen background area where each group of text objects are positioned;
determining the difference degree of the color of the intermediate color and the color of the text object;
and adjusting the color of the text object according to the difference degree.
8. A display interface adjustment device, comprising:
the first acquisition module is used for acquiring the intensity of the ambient light where the display terminal is located;
the first processing module is used for adjusting the screen brightness of the display terminal according to the ambient light intensity;
and the second processing module is used for adjusting the background color of the screen according to the deviation between the adjusted brightness of the screen and the current background color of the screen of the display terminal.
9. A terminal, comprising: a transceiver, a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the display interface adjustment method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which when being executed by a processor implements the steps of the display interface adjustment method according to any one of claims 1 to 7.
CN202310896916.9A 2023-07-20 2023-07-20 Display interface adjusting method and device and terminal Pending CN116913224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310896916.9A CN116913224A (en) 2023-07-20 2023-07-20 Display interface adjusting method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310896916.9A CN116913224A (en) 2023-07-20 2023-07-20 Display interface adjusting method and device and terminal

Publications (1)

Publication Number Publication Date
CN116913224A true CN116913224A (en) 2023-10-20

Family

ID=88354584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310896916.9A Pending CN116913224A (en) 2023-07-20 2023-07-20 Display interface adjusting method and device and terminal

Country Status (1)

Country Link
CN (1) CN116913224A (en)

Similar Documents

Publication Publication Date Title
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN109166559B (en) Gamma value debugging method and device for display panel
US20110305386A1 (en) Color Indication Tool for Colorblindness
US7945092B2 (en) Pixel processor
CN104076928B (en) A kind of method for adjusting text importing image
JP5474294B2 (en) Character processing apparatus and method
US10819885B2 (en) Gamma value tuning method and device of display panel
EP3905672B1 (en) Color space mapping method and device, computer readable storage medium and apparatus
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
WO2015029633A1 (en) Liquid crystal display device, and image display method for liquid crystal display device
US11094093B2 (en) Color processing program, color processing method, color sense inspection system, output system, color vision correction image processing system, and color vision simulation image processing system
CN113674711B (en) Low gray scale color temperature regulation and control method, device, equipment and storage medium
WO2022120799A9 (en) Image processing method and apparatus, electronic device, and storage medium
CN114078452B (en) Method for adjusting content contrast, electronic device and storage medium
Gong et al. Impacts of appearance parameters on perceived image quality for mobile-phone displays
CN116913224A (en) Display interface adjusting method and device and terminal
Gong et al. Comprehensive model for predicting perceptual image quality of smart mobile devices
TWI384888B (en) Method and module for regulating luminance
KR102518203B1 (en) Display method and device, and storage medium
US20230410706A1 (en) Method for image rendering, terminal device and non-transitory computer-readable storage medium
CN112801997A (en) Image enhancement quality evaluation method and device, electronic equipment and storage medium
CN114677983B (en) Display calibration method and related device
CN115918066A (en) Display method and device and electronic equipment
WO2024000315A1 (en) Display panel drive method and apparatus, and storage medium and display device
WO2024000465A1 (en) Method and apparatus for generating color mapping table, method and apparatus for correcting color mapping table, and medium and device

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