CN112507256A - Background adjusting method, terminal and computer readable storage medium - Google Patents

Background adjusting method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112507256A
CN112507256A CN202011386168.2A CN202011386168A CN112507256A CN 112507256 A CN112507256 A CN 112507256A CN 202011386168 A CN202011386168 A CN 202011386168A CN 112507256 A CN112507256 A CN 112507256A
Authority
CN
China
Prior art keywords
terminal
screen
display
target area
preset
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
CN202011386168.2A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202011386168.2A priority Critical patent/CN112507256A/en
Publication of CN112507256A publication Critical patent/CN112507256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a display control method of a terminal, the terminal and a computer readable storage medium, when a screen of the terminal is lightened, the method reduces the display contrast of a target area by acquiring the area of which the display contrast meets a preset adjustment condition on the screen as the target area to be adjusted and then carrying out reverse color processing on the target area so as to reduce the display contrast of the target area, reduce the damage of light radiation to eyes, solve the problem that the eyes are damaged by the excessively strong display contrast of the screen in a dark environment, improve the visual experience and the use satisfaction of a user, and further discloses the terminal and the computer readable storage medium, by implementing the scheme, the reverse color processing is carried out on the area of which the display contrast meets the preset adjustment condition on the screen so as to reduce the display contrast of the target area, and solve the problem that the dark eyes are damaged by the excessively strong display contrast of the screen in the dark environment, the visual experience and the use satisfaction of the user are improved.

Description

Background adjusting method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a display control method for a terminal, and a computer-readable storage medium.
Background
With the continuous progress of modern technology level, people can obtain the latest news information of all countries in the world from the internet, can see the latest books and newly-shown movies, and depend on mobile phones more and more, and the time for using the mobile phones is longer and longer. Because the current browser, the theme of the mobile phone and the default theme of the novel reading software are mostly white themes, the screen of the mobile phone is too bright in a dark environment, and the eyes of people using the mobile phone for a long time are injured. At present, the mobile phone can only detect the brightness of the environment through a photosensitive device to adjust the brightness of a screen. The mode can only change the whole brightness of the screen of the mobile phone; the screen brightness control mode can only carry out integral control on the screen brightness, when the color difference of the contents displayed in some areas exists on the display interface of the screen, for example, black contents and white contents are displayed simultaneously, the display contrast of the partial areas is high, eyes can still be damaged, the visual experience and the use satisfaction of users are reduced, and the night mode of third-party software can only set the theme color display of the software.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a display control method of a terminal, a terminal and a computer readable storage medium, in order to solve the technical problem that when a user surfs the web through the mobile terminal in a dark environment, the overall brightness of the screen of the mobile terminal is adjusted to be minimum, but some areas still feel dazzling.
In order to solve the above technical problem, the present invention provides a display control method for a terminal, including:
a display control method of a terminal, the display control method comprising:
when a screen of the terminal is lightened, acquiring a region with display contrast meeting a preset adjustment condition on the screen as a target region to be adjusted;
and carrying out reverse color processing on the display color of the target area so as to reduce the display contrast of the target area.
Optionally, the preset adjustment condition includes any one of:
the display contrast is strongest;
the display contrast is greater than or equal to a preset contrast threshold.
Optionally, before acquiring, when the screen of the terminal is lighted up, an area on the screen where the display contrast meets a preset adjustment condition as a target area to be adjusted, the method further includes:
detecting whether the reflection condition of the face of the user to the light emitted by the screen of the terminal meets a preset adjustment condition or not;
if yes, acquiring an area with the display contrast meeting a preset adjustment condition on the screen as a target area to be adjusted.
Optionally, the detecting the reflection of the light emitted by the screen of the terminal by the face of the user includes at least one of:
when the reflectivity is less than or equal to a preset threshold value, the screen display is not adjusted;
and when the reflectivity is larger than a preset threshold value, adjusting screen display.
Optionally, before the detecting whether the reflection condition of the user's face to the light emitted by the screen of the terminal meets a preset adjustment condition, the method further includes:
detecting whether the ambient light of the environment where the terminal is located meets a preset condition;
if so, the reflection of the light emitted by the screen of the terminal by the face of the user is detected.
Optionally, the detecting ambient light of the environment where the terminal is located includes at least one of:
the illuminance of the ambient light is less than or equal to a preset threshold;
the current time reaches a preset time period;
and the current position of the terminal falls into a preset position range.
Optionally, in any of the above, performing a color reversal process on the display color of the target region includes at least one of:
performing reverse color processing on the background color of the target area;
and performing reverse color processing on the display content of the target area.
Optionally, the display control method further includes:
when the background color of the target area is subjected to reverse color processing, the processed background color is converted into a gray-scale image of a first grade;
and when the display content of the target area is subjected to reverse color processing, converting the processed display content into a gray-scale image of a second grade.
The invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory.
The present invention also provides a computer-readable storage medium having one or more programs stored thereon that are executable by one or more processors.
Advantageous effects
The invention provides a display control method of a terminal, the terminal and a computer readable storage medium, aiming at the defects that the existing user often encounters when surfing on the internet through a mobile terminal in a dark environment, the whole brightness of a screen of the mobile terminal is adjusted to be minimum, but some areas still feel dazzling and damage eyes, when the screen of the terminal is lightened, the area with the display contrast meeting the preset adjustment condition on the screen is obtained as a target area to be adjusted, and then the target area is subjected to reverse color processing to reduce the display contrast of the target area, so that the damage of light radiation to the eyes is reduced, the problem that the eyes are damaged due to the fact that the contrast of the screen display is too strong in the dark environment is solved, and the visual experience and the use satisfaction of the user are improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a basic flowchart of a display control method of a terminal according to a first embodiment of the present invention;
FIG. 4 is a diagram illustrating a screen display area division according to a first embodiment of the present invention;
fig. 5 is a basic flowchart of a display control method of a terminal according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal 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 a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution), and the like.
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband interconnection access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 moves to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for the mobile phone, other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor may be configured, which will not be described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near the touch panel 1071, the touch panel transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown) and holds some user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
Fig. 3 is a basic flowchart of a display control method of a terminal according to this embodiment, where the display control method includes:
s301, when a screen of the terminal is lightened, acquiring a region with a display contrast meeting a preset adjustment condition on the screen as a target region to be adjusted;
optionally, the preset adjustment condition includes any one of:
the display contrast is strongest;
the display contrast is greater than or equal to a preset contrast threshold.
It should be noted that the displaying of the strongest contrast may be an area with the largest display contrast value among all areas of the screen, where the area may be one or more, and the area is taken as a target area to be adjusted, for example, as shown in fig. 4, the screen is divided into 9 areas with the same size, and the displaying of the strongest contrast may be 1 area or 2 areas, where the number of the areas with the strongest display contrast should be any integer value greater than or equal to 1 and less than or equal to the total number of divided areas of the screen, it should be noted that the screen may be divided into several areas, where the number of the areas should be greater than or equal to 1, the area size and the shape of the divided areas may be different or the same, and the manner of dividing the areas may be regular or irregular division.
It is to be understood that the displaying contrast ratio equal to or higher than the preset contrast threshold may be that when the displaying contrast ratio equal to or higher than the preset contrast value is displayed in all screens, the regions are taken as target regions to be adjusted, the regions may be one or more, the regions are taken as target regions to be adjusted, for example, as shown in fig. 4, the screen is divided into 9 regions with the same size, the displaying contrast ratio equal to or higher than the preset contrast threshold may be 1 region or 2 regions therein, the number of the regions with the displaying contrast ratio equal to or higher than the preset contrast threshold should be any integer value greater than or equal to 1 and less than or equal to the total number of the divided regions of the screen, it should be noted that the screen may be divided into a plurality of regions, the number of the regions should be equal to or higher than 1, the area size and the shape of the divided regions may be different or the same, and the manner of dividing the region may be regular division or irregular division. (ii) a
Preferably, the preset contrast value may be 200: 1 or infinity or infinitesimal. In practical applications, the technician may also adjust this contrast value according to the actual situation.
Optionally, when the screen of the terminal is lighted up, before acquiring the region with the display contrast meeting the preset adjustment condition on the screen as the target region to be adjusted, the method further includes:
detecting whether the reflection condition of the face of the user to the light emitted by the screen of the terminal meets a preset adjusting condition or not;
if yes, acquiring an area with the display contrast meeting the preset adjustment condition on the screen as a target area to be adjusted.
It should be noted that, detecting whether the reflection condition of the user's face to the light emitted by the screen of the terminal meets a preset adjustment condition, detecting the reflection condition of the user's face to the light emitted by the screen of the terminal through the front-facing camera, and if the detected reflection result meets the preset adjustment condition, taking the area on the screen where the display contrast value meets the preset adjustment condition as the target area to be adjusted.
Optionally, the detecting of the reflection of the light emitted from the screen of the terminal by the face of the user includes at least one of:
when the reflectivity is less than or equal to a preset threshold value, the screen display is not adjusted;
and when the reflectivity is larger than a preset threshold value, adjusting screen display.
It can be understood that detecting the reflection condition of the user's face to the light emitted by the screen of the terminal is mainly to detect whether the reflectivity is greater than a preset threshold, when the reflectivity is detected to be greater than the preset threshold, that is, the preset adjustment condition is satisfied, the screen display needs to be adjusted, and when the reflectivity is less than or equal to the preset threshold, that is, the preset adjustment condition is not satisfied, the screen display does not need to be adjusted.
Preferably, the preset reflectivity threshold may be 10%.
Optionally, before detecting whether a reflection condition of the user's face to light emitted by the screen of the terminal satisfies a preset adjustment condition, the method further includes:
detecting whether the ambient light of the environment where the terminal is located meets a preset condition;
this is done by detecting the reflection of the user's face from the light emitted by the screen of the terminal.
It should be noted that when it is detected that the ambient light of the environment in which the terminal is located satisfies the preset condition, the auxiliary detection of the reflection of the light emitted from the screen of the terminal by the face of the user is performed.
Optionally, detecting the ambient light of the environment in which the terminal is located includes at least one of:
the illuminance of the ambient light is less than or equal to a preset threshold;
the current time reaches a preset time period;
the current position of the terminal falls into a preset position range.
It should be noted that the ambient light of the environment where the detection terminal is located may be detected in real time by the light sensor, and when the ambient light illuminance is detected to be less than or equal to the preset threshold, that is, the detected result meets the preset condition, and the detected result is sent to the processor.
It should be noted that the ambient light of the environment where the detection terminal is located may also be detected in real time through the rear camera, and when the ambient light illuminance is detected to be less than or equal to the preset threshold, that is, the detected result meets the preset condition, and the detected result is sent to the processor.
It should be noted that, the ambient light of the environment where the detection terminal is located may also be detected in real time by detecting the current time, where the time includes a time point and a season, and when the ambient light illuminance is detected to be less than or equal to a preset threshold, that is, the detected result meets a preset condition, and the detected result is sent to the processor.
It should be noted that, detecting the ambient light of the environment where the terminal is located may also detect the ambient light by detecting whether the current position of the terminal falls within a preset position range in real time, where the position range includes whether the current terminal is located indoors or outdoors and whether the current terminal is located in the south or north, and when it is detected that the ambient light illuminance is less than or equal to a preset threshold, that is, the detected result meets a preset condition, and the detected result is sent to the processor.
Preferably, the preset ambient light illumination threshold may be 0 lux.
S302, performing reverse color processing on the display color of the target area, and reducing the difference value of the display contrast of the screen;
optionally, the performing of the reverse color processing on the display color of the target area includes at least one of:
performing reverse color processing on the background color of the target area;
and performing reverse color processing on the display content of the target area.
It can be understood that, when the display contrast of the area on the screen satisfies the preset adjustment condition, the display color of the target area is subjected to the reverse color processing, where the reverse color processing includes performing reverse color processing on at least one of the background color or the display content to reduce the display contrast of the target area, for example, a certain area in the screen simultaneously displays black and white contents, the display contrast of the area is relatively high, and we perform reverse color processing on the white contents of the partial area to black, and then the display contrast of the partial area is reduced, so as to achieve the purpose of reducing the display contrast of the screen of the partial area.
Optionally, the display control method further includes:
when the background color of the target area is subjected to reverse color processing, the processed background color is converted into a gray-scale image of a first grade;
and when the display content of the target area is subjected to reverse color processing, converting the processed display content into a gray-scale image of a second level.
It is understood that the reverse color processing is that the color after the reverse color is superimposed with the primary color to become white, i.e. the color of the primary color is subtracted from the RGB of the white color to obtain the reverse color.
It should be noted that after performing the reverse color processing on at least one of the background color and the display content of the target area, the processed background color is further required to be converted into a gray-scale map of a corresponding first level, and the processed display content is further required to be converted into a gray-scale map of a corresponding second level.
Preferably, the first level gray scale map may be a 10% gray scale map, and the second level gray scale map may be an 80% gray scale map. For example, the background color is white, the display content is black text, at this time, the RGB three-color lamp tube displayed on the white background of the screen is reversed to black, then the black background is converted into a 10% gray scale image, the black of the text portion displayed on the original screen is reversed to white, and then the black is converted into an 80% gray scale image.
The embodiment is that when a user uses the mobile terminal in a dark environment, when the detected ambient illuminance is less than or equal to a set threshold, the reflection condition of the face of the user to light emitted by a terminal screen is detected in an auxiliary manner, and if the reflectivity is greater than the preset threshold, the area with the strongest screen display contrast or greater than or equal to the preset threshold is subjected to reverse color processing and converted into a gray-scale image so as to reduce the display contrast of the target area, reduce the damage of light radiation to eyes, solve the problem that the screen display contrast is too strong to damage the eyes in the dark environment, and improve the visual experience and the use satisfaction of the user.
Second embodiment
For convenience of understanding, fig. 5 is an illustration of the present embodiment in combination with an optimal specific solution based on the previous embodiment.
S501, the user uses software such as a browser and novel software in the terminal to check consultation such as news broadcasting.
S502, the light sensor detects the ambient light illumination in real time and sends a detection result to the processor. And when the detected ambient light illumination is less than or equal to a preset threshold value, performing auxiliary detection.
Preferably, the preset ambient light illumination threshold is 0 lux. In practical applications, the technician may also adjust the preset ambient light illumination threshold according to practical situations.
S503, opening the front camera for auxiliary detection, detecting whether the reflectivity of the user face to the light emitted by the screen of the terminal is larger than a preset reflectivity threshold value through the front camera in an auxiliary mode, and adjusting screen display if the reflectivity is larger than the preset reflectivity threshold value.
Preferably, the preset reflectivity threshold may be 10%, and in practical applications, the technician may also adjust the preset reflectivity threshold according to practical situations.
S504, adjusting terminal screen display, reducing light radiation, performing reverse color processing on a background display RGB (red, green and blue) three-color lamp tube in a screen display area which is larger than or equal to a preset contrast threshold value area, converting the area subjected to the reverse color processing into a 10% gray scale image, performing reverse color processing on the display content RGB three-color lamp tube in the area, and converting the area subjected to the reverse color processing into an 80% gray scale image.
It is understood that the reverse color processing is that the color after the reverse color is superimposed with the primary color to become white, i.e. the color of the primary color is subtracted from the RGB of the white color to obtain the reverse color.
Preferably, the preset contrast threshold may be 200: in practical applications, the technician can also adjust the preset contrast threshold according to practical situations.
This embodiment is when the user uses mobile terminal under the dark surrounds, when detecting environment illuminance is less than or equal to and sets for the threshold value, the supplementary reflection condition of detecting the light that user's face sent the terminal screen, if when the reflectivity is greater than predetermineeing the threshold value, then carry out reverse color processing and convert grey scale picture into in order to reduce to the region of screen display contrast ratio more than or equal to predetermineeing the threshold value the regional demonstration contrast ratio of target has reduced the injury of ray radiation to eyes, has solved the problem that screen display contrast ratio causes the injury to eyes under the dark surrounds too strong, has promoted user's visual experience degree and use satisfaction.
Third embodiment
The present embodiment further provides a terminal of a display control method of a terminal, as shown in fig. 6, which includes a processor 61, a memory 62 and a communication bus 63, wherein:
the communication bus 63 is used for realizing connection communication between the processor 61 and the memory 62;
the processor 61 is configured to execute one or more programs stored in the memory 62 to implement the steps of the display control method in the above-described embodiment.
The present embodiment also provides a computer-readable storage medium of a display control method of a terminal, wherein:
the computer-readable storage medium stores one or more programs;
the one or more programs may be executed by the one or more processors to implement the steps of the display control method in the above-described embodiments.
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, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the above embodiment method 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 embodiment. Based on such understanding, the technical solution of the present invention may be substantially or partially 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 (e.g. a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A display control method of a terminal, the display control method comprising:
when a screen of the terminal is lightened, acquiring a region with display contrast meeting a preset adjustment condition on the screen as a target region to be adjusted;
and carrying out reverse color processing on the display color of the target area so as to reduce the display contrast of the target area.
2. The display control method of a terminal according to claim 1, wherein the preset adjustment condition includes any one of:
the display contrast is strongest;
the display contrast is greater than or equal to a preset contrast threshold.
3. The display control method of a terminal according to claim 1, wherein before acquiring, when the screen of the terminal is lit, an area on the screen where the display contrast satisfies a preset adjustment condition as a target area to be adjusted, the method further comprises:
detecting whether the reflection condition of the face of the user to the light emitted by the screen of the terminal meets a preset adjustment condition or not;
if yes, acquiring an area with the display contrast meeting a preset adjustment condition on the screen as a target area to be adjusted.
4. The display control method of a terminal according to claim 3, wherein the detecting of the reflection of the light emitted from the screen of the terminal by the face of the user includes at least one of:
when the reflectivity is less than or equal to a preset threshold value, the screen display is not adjusted;
and when the reflectivity is larger than a preset threshold value, adjusting screen display.
5. The display control method of the terminal according to claim 3, wherein before the detecting whether the reflection condition of the user's face to the light emitted from the screen of the terminal satisfies a preset adjustment condition, the method further comprises:
detecting whether the ambient light of the environment where the terminal is located meets a preset condition;
if so, the reflection of the light emitted by the screen of the terminal by the face of the user is detected.
6. The display control method of the terminal according to claim 5, wherein the detecting the ambient light of the environment in which the terminal is located includes at least one of:
the illuminance of the ambient light is less than or equal to a preset threshold;
the current time reaches a preset time period;
and the current position of the terminal falls into a preset position range.
7. The method of any one of claims 1 to 6, wherein reversing the display color of the target area comprises at least one of:
performing reverse color processing on the background color of the target area;
and performing reverse color processing on the display content of the target area.
8. The reverse color processing of the display color of the target area as set forth in claim 7, the display control method further comprising:
when the background color of the target area is subjected to reverse color processing, the processed background color is converted into a gray-scale image of a first grade;
and when the display content of the target area is subjected to reverse color processing, converting the processed display content into a gray-scale image of a second grade.
9. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the display control method of the terminal according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the display control method of the terminal according to any one of claims 1 to 8.
CN202011386168.2A 2020-12-01 2020-12-01 Background adjusting method, terminal and computer readable storage medium Pending CN112507256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011386168.2A CN112507256A (en) 2020-12-01 2020-12-01 Background adjusting method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011386168.2A CN112507256A (en) 2020-12-01 2020-12-01 Background adjusting method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112507256A true CN112507256A (en) 2021-03-16

Family

ID=74969759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011386168.2A Pending CN112507256A (en) 2020-12-01 2020-12-01 Background adjusting method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112507256A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068290A (en) * 2021-03-17 2021-07-02 深圳市帝狼光电有限公司 Contrast intelligent regulation LED eyeshield desk lamp
CN113326016A (en) * 2021-08-04 2021-08-31 卡莱特云科技股份有限公司 Method and device for improving contrast of LED display screen and computer equipment
CN113781959A (en) * 2021-09-23 2021-12-10 Oppo广东移动通信有限公司 Interface processing method and device
CN113888657A (en) * 2021-12-08 2022-01-04 珠海视熙科技有限公司 Screen color acquisition method and device, camera equipment and storage medium
CN115145442A (en) * 2022-06-07 2022-10-04 杭州海康汽车软件有限公司 Environment image display method and device, vehicle-mounted terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107134272A (en) * 2017-06-26 2017-09-05 上海斐讯数据通信技术有限公司 A kind of control method of screen display, system and computer-processing equipment
CN109032741A (en) * 2018-07-25 2018-12-18 努比亚技术有限公司 Screen luminance of terminal adjusting method, mobile terminal and storage medium
CN109064998A (en) * 2018-06-28 2018-12-21 努比亚技术有限公司 A kind of screen luminance adjustment method, terminal and computer readable storage medium
CN111223432A (en) * 2020-01-10 2020-06-02 北京小米移动软件有限公司 Method and device for controlling screen display
CN111414114A (en) * 2020-03-18 2020-07-14 北京星网锐捷网络技术有限公司 Display adjustment method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107134272A (en) * 2017-06-26 2017-09-05 上海斐讯数据通信技术有限公司 A kind of control method of screen display, system and computer-processing equipment
CN109064998A (en) * 2018-06-28 2018-12-21 努比亚技术有限公司 A kind of screen luminance adjustment method, terminal and computer readable storage medium
CN109032741A (en) * 2018-07-25 2018-12-18 努比亚技术有限公司 Screen luminance of terminal adjusting method, mobile terminal and storage medium
CN111223432A (en) * 2020-01-10 2020-06-02 北京小米移动软件有限公司 Method and device for controlling screen display
CN111414114A (en) * 2020-03-18 2020-07-14 北京星网锐捷网络技术有限公司 Display adjustment method and device, electronic equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068290A (en) * 2021-03-17 2021-07-02 深圳市帝狼光电有限公司 Contrast intelligent regulation LED eyeshield desk lamp
CN113326016A (en) * 2021-08-04 2021-08-31 卡莱特云科技股份有限公司 Method and device for improving contrast of LED display screen and computer equipment
CN113781959A (en) * 2021-09-23 2021-12-10 Oppo广东移动通信有限公司 Interface processing method and device
CN113888657A (en) * 2021-12-08 2022-01-04 珠海视熙科技有限公司 Screen color acquisition method and device, camera equipment and storage medium
CN113888657B (en) * 2021-12-08 2022-03-29 珠海视熙科技有限公司 Screen color acquisition method and device, camera equipment and storage medium
CN115145442A (en) * 2022-06-07 2022-10-04 杭州海康汽车软件有限公司 Environment image display method and device, vehicle-mounted terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109348123B (en) Photographing method, mobile terminal and computer-readable storage medium
CN107093418B (en) Screen display method, computer equipment and storage medium
CN109639879B (en) Screen display control method, foldable terminal and computer readable storage medium
CN112507256A (en) Background adjusting method, terminal and computer readable storage medium
CN107731199B (en) Screen color temperature adjusting method, terminal and computer readable storage medium
CN110035176B (en) Brightness adjusting method of mobile terminal, mobile terminal and storage medium
CN109032741B (en) Terminal screen brightness adjusting method, mobile terminal and storage medium
CN110417999B (en) Screen brightness adjusting method, mobile terminal and computer readable storage medium
CN107995437B (en) Photo shooting and lighting method and mobile terminal
CN107295270B (en) Image brightness value determination method and device, terminal and computer-readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN107705247B (en) Image saturation adjusting method, terminal and storage medium
CN111708503A (en) Screen projection control method and device and computer readable storage medium
CN107506163B (en) Method for adjusting screen display, terminal and computer readable storage medium
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN110069122B (en) Screen control method, terminal and computer readable storage medium
CN111899695A (en) Backlight adjusting method, terminal device and readable storage medium
CN112114767A (en) Screen projection frame rate control method and device and computer readable storage medium
CN108307073B (en) Screen brightness adjusting method, mobile terminal and computer readable storage medium
CN112689191A (en) Screen projection control method, terminal and computer readable storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN109495639B (en) Flexible screen terminal, control method thereof, and computer-readable storage medium
CN109521979B (en) Display control method, terminal and computer-readable storage medium
CN107844353B (en) Display method, terminal and computer readable storage medium
CN112578985B (en) Display mode setting method, device and computer readable storage medium

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