CN107908383B - Screen color adjusting method and device and mobile terminal - Google Patents

Screen color adjusting method and device and mobile terminal Download PDF

Info

Publication number
CN107908383B
CN107908383B CN201711122235.8A CN201711122235A CN107908383B CN 107908383 B CN107908383 B CN 107908383B CN 201711122235 A CN201711122235 A CN 201711122235A CN 107908383 B CN107908383 B CN 107908383B
Authority
CN
China
Prior art keywords
color
display area
content display
area
background color
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.)
Active
Application number
CN201711122235.8A
Other languages
Chinese (zh)
Other versions
CN107908383A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711122235.8A priority Critical patent/CN107908383B/en
Publication of CN107908383A publication Critical patent/CN107908383A/en
Application granted granted Critical
Publication of CN107908383B publication Critical patent/CN107908383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a screen color adjusting method and device and a mobile terminal. The method comprises the following steps: detecting whether the background color of a fixed content display area in a display interface of a screen is matched with the background color of a variable content display area; if not, acquiring the background color of a preset area in the variable content display area; carrying out color taking processing on the background color of the preset area to obtain a target color; replacing the background color of the fixed content display area with the target color. The method and the device can coordinate and unify the background color of the display interface of the whole screen, improve the display effect of the screen interface, bring full-screen immersive experience of the large-screen mobile terminal, and improve the visual experience of a user.

Description

Screen color adjusting method and device and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of terminal display, in particular to a screen color adjusting method and device and a mobile terminal.
Background
With the continuous development of large-screen display technology, the screen of a mobile terminal (such as a mobile phone) is larger and larger, and the display content is richer and richer. With the advent of the full-screen mobile phone era, in order to pursue an ultra-high screen occupation ratio, a virtual navigation bar is also incorporated into a screen.
In general, the virtual navigation bar area on the existing mobile phone screen interface is displayed in a fixed color, such as black, white, etc. The color of the main display area on the mobile phone screen interface changes along with specific display contents, so that the situation that the color of the virtual navigation bar area is inconsistent with that of the main display area often occurs, the display of the mobile phone screen interface is inconsistent, the content has a split feeling, the use experience of a user is influenced, the advantages of a large-screen mobile phone cannot be brought into play, and the full-screen immersive experience of the user on the large-screen mobile phone is met.
Disclosure of Invention
The embodiment of the invention provides a screen color adjusting method and device and a mobile terminal, and aims to solve the problem of inconsistent display of a screen interface caused by inconsistent colors of a virtual navigation bar area and a main display area on the screen interface of an existing mobile phone.
In order to solve the technical problem, the invention is realized as follows: a screen color adjustment method, comprising:
detecting whether the background color of a fixed content display area in a display interface of a screen is matched with the background color of a variable content display area;
if not, acquiring the background color of a preset area in the variable content display area;
carrying out color taking processing on the background color of the preset area to obtain a target color;
replacing the background color of the fixed content display area with the target color.
The embodiment of the present invention further provides a device for adjusting screen color, including:
the detection module is used for detecting whether the background color of the fixed content display area is matched with the background color of the variable content display area in the display interface of the screen;
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the background color of a preset area in a variable content display area when the background color of a fixed content display area in a display interface is not matched with the background color of the variable content display area;
the color taking processing module is used for carrying out color taking processing on the background color of the preset area to obtain a target color;
a color replacement module to replace a background color of the fixed content display area with the target color.
An embodiment of the present invention provides a mobile terminal, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screen color adjustment method as described above.
In the embodiment of the invention, when the background color of the fixed content display area in the display interface of the screen is detected to be not matched with the background color of the variable content display area, the target color is obtained by performing color taking processing on the obtained background color of the preset area in the variable content display area, and the background color of the fixed content display area is replaced by the target color, so that the background color of the display interface of the whole screen is coordinated and uniform, the display effect of the screen interface is improved, full-screen immersive experience of the large-screen mobile terminal is brought, and the visual experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart illustrating a method for adjusting screen color according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart of step 101 in FIG. 1;
FIG. 3 is a schematic view of the detailed process of step 103 in FIG. 1;
FIG. 4 is a schematic structural diagram of a screen color adjustment apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a screen color adjustment apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a screen color adjustment method according to an embodiment of the present invention, which is applied to a mobile terminal. The implementation of the method is described in detail below with reference to this figure.
Step 101, detecting whether the background color of a fixed content display area in a display interface of a screen is matched with the background color of a variable content display area.
Here, the mobile terminal has an ultra-high screen occupation ratio. It can also be understood that the screen of the mobile terminal is a full screen.
Here, it is preferable that the fixed content display area is an area where the virtual navigation bar is located. That is, the virtual navigation bar is provided within the screen, not below the screen.
It should be noted that, the two regions are color matched, which means that the color values of the pixels of the two regions are the same or the difference between the color values is within a predetermined range.
Here, the color values of the pixels include: RGB (Red Green Blue) color values, CMY (Cyan Magenta Yellow) color values, and the like.
For example, when the difference between the color value of the R component of the first region pixel and the color value of the R component of the second region pixel is within a first threshold range, the difference between the color value of the G component and the color value of the G component of the second region pixel is within a second threshold range, and the difference between the color value of the B component and the color value of the B component of the second region pixel is within a third threshold range, the two region colors match.
Here, the specific processing procedure based on the CMY color values as the judgment basis for determining whether the colors of the two areas match is referred to the above example, and details thereof are omitted here.
And 102, if the background color is not matched with the preset color, acquiring the background color of the preset area in the variable content display area.
Here, the preset area is an adjacent area of the fixed display area. Therefore, the background color of the preset area is the background color of the adjacent area of the fixed display area, the subsequent adjustment of the background color of the fixed display area according to the background color of the adjacent area is facilitated, the smooth transition of the color is facilitated, and the coordination and the unification of the whole screen display are ensured.
Here, further, when the background color of the fixed content display area matches the background color of the variable content display area, no processing is performed on the background color of the fixed content display area within the display interface. That is, the background color of the fixed content display area within the display area is maintained.
And 103, carrying out color taking processing on the background color of the preset area to obtain a target color.
Here, the background color of the preset area may be a single color or a variable color. And the color of the background color of the preset area is taken, so that the optimal color, namely the target color, is obtained, and the display effect of the whole screen is coordinated and unified after the subsequent screen color is adjusted according to the optimal color.
And 104, replacing the background color of the fixed content display area with the target color.
According to the screen color adjusting method provided by the embodiment of the invention, when the situation that the background color of the fixed content display area in the display interface of the screen is not matched with the background color of the variable content display area is detected, the target color is obtained by performing color taking processing on the obtained background color of the preset area in the variable content display area, and the background color of the fixed content display area is replaced by the target color, so that the background color of the display interface of the whole screen is coordinated and unified, the display effect of the screen interface is improved, full-screen immersive experience of a large-screen mobile terminal is brought, and the visual experience of a user is improved.
On the basis of the embodiment shown in fig. 1, as a preferred implementation manner, as shown in fig. 2, step 101 of the present invention may include:
step 1011, a first partial area screenshot of the fixed content display area and a second partial area screenshot of the variable content display area are obtained.
Specifically, the area sizes of the fixed content display area and the variable content display area to be subjected to screenshot can be set through software; and then, acquiring a first partial area screenshot of the fixed content display area and a second partial area screenshot of the variable content display area according to the set area size.
The area sizes of the first partial area screenshot and the second partial area screenshot correspond to the area sizes set by the software.
Step 1012, determining whether a difference value between a first color value of the first partial screenshot and a second color value of the second partial screenshot is within a preset threshold range.
Here, preferably, the first color value and the second color value are both RGB color values.
Step 1013, if the difference between the first color value and the second color value is greater than the preset threshold range, determining that the background color of the fixed content display area is not matched with the background color of the variable content display area.
On the basis of the embodiment shown in fig. 1, as a preferred implementation manner, step 102 of the present invention may include:
identifying a preset area within the variable content display area, which is greater than zero and less than or equal to a preset pixel height from the fixed content display area; and acquiring the background color of the preset area.
Here, the preset region is preferably a region within the variable content display region that is greater than zero and equal to or less than 2 pixels high from the fixed content display region.
Of course, the height of the preset area is not limited to 2 pixel heights, and can be set according to specific situations.
On the basis of the embodiment shown in fig. 1, as a preferred implementation manner, as shown in fig. 3, step 103 of the present invention may include:
step 1031, obtaining color values of each sampling pixel in the preset area;
specifically, the preset area is uniformly divided into a plurality of sub-areas, and pixels in each sub-area are sampled; and acquiring the color value of each sampling pixel in each sub-area.
Here, the sampling pixel is a discrete pixel point in the preset region.
It should be noted that the color values of the sampling pixels are RGB color values.
And 1032, performing color sampling processing on the background color of the preset area based on the normal distribution function of the color value of each sampling pixel to obtain a target color.
Here, the random variable of the normal distribution function is a color value of the sampling pixel.
Preferably, the step may specifically include:
calculating the average value and the variance of the color values of the sampling pixels according to the color values of the sampling pixels;
here, the variance of the color value of each sampling pixel may be calculated from a difference between the average value and the color value of each sampling pixel.
Here, the variance of the color value of each sampling pixel refers to an average of a sum of squares of differences between the color value of each sampling pixel and an average of the color values of all sampling pixels.
That is, the difference between the average and the color value of each sampled pixel is calculated, squared separately, summed, and averaged.
And determining the background color corresponding to the region with the preset probability falling in the normal distribution function interval in the preset region as the target color according to the normal distribution function of the color values of the sampling pixels corresponding to the average value and the variance.
Here, it is preferable that the preset value is 80%.
Here, by the color extraction processing procedure of the above-described steps 1031 to 1032, an optimum color for replacing the fixed display region, that is, a target color is obtained. After the subsequent screen colors are adjusted according to the optimal colors, the display effect of the whole screen is coordinated and unified.
In summary, according to the screen color adjusting method provided in the embodiment of the present invention, when it is detected that the background color of the fixed content display area in the display interface of the screen is not matched with the background color of the variable content display area, the target color is obtained by performing color extraction processing on the obtained background color of the preset area in the variable content display area, and the background color of the fixed content display area is replaced with the target color, so that the background colors of the display interface of the whole screen are coordinated and uniform, the display effect of the screen interface is improved, full-screen immersive experience of the large-screen mobile terminal is brought, and the visual experience of the user is improved.
Fig. 4 is a schematic structural diagram of a screen color adjusting apparatus according to an embodiment of the present invention. Wherein the apparatus 200 comprises:
a detecting module 201, configured to detect whether a background color of a fixed content display area in a display interface of a screen matches a background color of a variable content display area;
an obtaining module 202, configured to obtain a background color of a preset area in a variable content display area when a background color of a fixed content display area in a display interface is not matched with a background color of the variable content display area;
the color extracting processing module 203 is configured to perform color extracting processing on the background color of the preset area to obtain a target color;
a color replacement module 204, configured to replace the background color of the fixed content display area with the target color.
On the basis of fig. 4, preferably, as shown in fig. 5, the detection module 201 includes:
a first obtaining sub-module 2011, configured to obtain a first partial area screenshot of the fixed content display area and a second partial area screenshot of the variable content display area;
the judging submodule 2012 is configured to judge whether a difference between a first color value of the first partial area screenshot and a second color value of the second partial area screenshot is within a preset threshold range;
a detection determining submodule 2013, configured to determine that the background color of the fixed content display area does not match the background color of the variable content display area when the difference between the first color value and the second color value is within the preset threshold range.
Preferably, the obtaining module 202 includes:
a region identification submodule 2021, configured to identify a preset region in the variable content display region, where a distance from the fixed content display region is greater than or equal to zero and less than or equal to a preset pixel height;
the second obtaining sub-module 2022 is configured to obtain a background color of the preset area.
Preferably, the color extraction processing module 203 includes:
a third obtaining submodule 2031, configured to obtain color values of each sampled pixel in the preset region;
the color sampling processing sub-module 2032 is configured to perform color sampling processing on the background color of the preset region based on the normal distribution function of the color value of each sampling pixel to obtain a target color.
Preferably, the color sampling processing sub-module 2032 includes:
a calculating unit 20321 configured to calculate an average value and a variance of color values of each sampled pixel according to the color value of each sampled pixel;
the color-taking unit 20322 is configured to determine, as the target color, a background color corresponding to a region in the preset region that falls within the normal distribution function interval and has a preset probability, according to the normal distribution function of the color values of the sampling pixels corresponding to the average value and the variance.
Preferably, the fixed content display area is an area where the virtual navigation bar is located.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 5, and is not described herein again to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, when the detection module detects that the background color of the fixed content display area in the display interface of the screen is not matched with the background color of the variable content display area, the color-taking processing module is used for carrying out color-taking processing on the background color of the preset area in the variable content display area obtained by the obtaining module to obtain the target color, and the color-replacing module is used for replacing the background color of the fixed content display area with the target color, so that the background colors of the display interface of the whole screen are coordinated and unified, the display effect of the screen interface is improved, full-screen immersive experience of the large-screen mobile terminal is brought, and the visual experience of a user is improved.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 300 includes but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 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. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 310 is configured to detect whether a background color of a fixed content display area in a display interface of a screen matches a background color of a variable content display area; if not, acquiring the background color of a preset area in the variable content display area; carrying out color taking processing on the background color of the preset area to obtain a target color; replacing the background color of the fixed content display area with the target color.
The mobile terminal 300 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
The mobile terminal 300 of the embodiment of the invention can coordinate and unify the background color of the display interface of the whole screen, improve the display effect of the screen interface, bring full-screen immersive experience of the large-screen mobile terminal and improve the visual experience of a user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 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 301 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 302, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the mobile terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (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 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 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 307 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 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 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 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 6 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the mobile terminal 300. 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 308 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 300 or may be used to transmit data between the mobile terminal 300 and external devices.
The memory 309 may be used to store software programs as well as various data. The memory 309 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 309 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 310 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 309 and calling data stored in the memory 309, thereby performing overall monitoring of the mobile terminal. Processor 310 may include one or more processing units; preferably, the processor 310 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 310.
The mobile terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 300 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned screen color adjustment method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned screen color adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as 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 (5)

1. A screen color adjusting method is applied to a mobile terminal and is characterized by comprising the following steps:
detecting whether the background color of a fixed content display area in a display interface of a screen is matched with the background color of a variable content display area;
if not, acquiring the background color of a preset area in the variable content display area;
carrying out color taking processing on the background color of the preset area to obtain a target color;
replacing a background color of the fixed content display area with the target color;
the fixed content display area is an area where the virtual navigation bar is located; the variable content display area is a main display area of a screen;
the step of obtaining the target color by performing color extraction processing on the background color of the preset area comprises the following steps:
acquiring color values of sampling pixels in the preset area;
performing color sampling treatment on the background color of the preset area based on a normal distribution function of the color value of each sampling pixel to obtain a target color;
and based on the normal distribution function of the color value of each sampling pixel, performing color sampling treatment on the background color of the preset area to obtain a target color, wherein the step comprises the following steps of:
calculating the average value and the variance of the color values of the sampling pixels according to the color values of the sampling pixels;
determining a background color corresponding to a region with a preset probability in the preset region falling in the normal distribution function interval as a target color according to a normal distribution function of color values of the sampling pixels corresponding to the average value and the variance;
the step of detecting whether the background color of the fixed content display area matches the background color of the variable content display area within the display interface of the screen includes:
acquiring a screenshot of a first partial area of the fixed content display area and a screenshot of a second partial area of the variable content display area;
judging whether the difference value of the first color value of the first partial area screenshot and the second color value of the second partial area screenshot is within a preset threshold range;
and if the difference value of the first color value and the second color value is within the preset threshold range, determining that the background color of the fixed content display area is not matched with the background color of the variable content display area.
2. The screen color adjustment method of claim 1, wherein the step of obtaining the background color of the preset area within the variable content display area comprises:
identifying a preset area within the variable content display area, which is greater than zero and less than or equal to a preset pixel height from the fixed content display area;
and acquiring the background color of the preset area.
3. A screen color adjustment device, comprising:
the detection module is used for detecting whether the background color of the fixed content display area is matched with the background color of the variable content display area in the display interface of the screen;
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the background color of a preset area in a variable content display area when the background color of a fixed content display area in a display interface is not matched with the background color of the variable content display area;
the color taking processing module is used for carrying out color taking processing on the background color of the preset area to obtain a target color;
a color replacement module for replacing a background color of the fixed content display area with the target color;
the fixed content display area is an area where the virtual navigation bar is located; the variable content display area is a main display area of a screen;
the color sampling processing module comprises:
the third obtaining submodule is used for obtaining the color value of each sampling pixel in the preset area;
the color sampling processing submodule is used for carrying out color sampling processing on the background color of the preset area based on the normal distribution function of the color value of each sampling pixel to obtain a target color;
the color sampling processing submodule comprises:
the calculation unit is used for calculating the average value and the variance of the color value of each sampling pixel according to the color value of each sampling pixel;
the color taking unit is used for determining a background color corresponding to a region with a preset probability in the preset region falling in the normal distribution function interval as a target color according to a normal distribution function of the color values of the sampling pixels corresponding to the average value and the variance;
the detection module comprises:
the first acquisition sub-module is used for acquiring a first partial area screenshot of the fixed content display area and a second partial area screenshot of the variable content display area;
the judgment submodule is used for judging whether the difference value of the first color value of the first partial area screenshot and the second color value of the second partial area screenshot is within a preset threshold range;
a detection determining submodule, configured to determine that a background color of the fixed content display area does not match a background color of the variable content display area when a difference between the first color value and the second color value is within the preset threshold range.
4. The apparatus of claim 3, wherein the obtaining module comprises:
the area identification submodule is used for identifying a preset area which is more than or equal to zero and less than or equal to the height of a preset pixel from the fixed content display area in the variable content display area;
and the second obtaining submodule is used for obtaining the background color of the preset area.
5. A mobile terminal, comprising: processor, memory and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the screen color adjustment method according to any one of claims 1 to 2.
CN201711122235.8A 2017-11-14 2017-11-14 Screen color adjusting method and device and mobile terminal Active CN107908383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711122235.8A CN107908383B (en) 2017-11-14 2017-11-14 Screen color adjusting method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711122235.8A CN107908383B (en) 2017-11-14 2017-11-14 Screen color adjusting method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107908383A CN107908383A (en) 2018-04-13
CN107908383B true CN107908383B (en) 2020-07-07

Family

ID=61845350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711122235.8A Active CN107908383B (en) 2017-11-14 2017-11-14 Screen color adjusting method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107908383B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460272A (en) * 2018-09-11 2019-03-12 广州优视网络科技有限公司 For the application display method and device of Android system
CN111104193A (en) * 2018-10-25 2020-05-05 北京奇虎科技有限公司 Application program active interface display method and device, storage medium and terminal equipment
CN109451110B (en) * 2018-11-28 2021-08-10 维沃移动通信有限公司 Display method and mobile terminal
CN109299310A (en) * 2018-12-05 2019-02-01 王相军 A kind of screen picture takes color and searching method and system
CN109901897B (en) * 2019-01-11 2022-07-08 珠海天燕科技有限公司 Method and device for matching view colors in application
WO2020165088A1 (en) * 2019-02-13 2020-08-20 Signify Holding B.V. Determining a light effect based on an average color after a detected transition in content
CN110119260B (en) * 2019-04-28 2023-04-18 维沃移动通信有限公司 Screen display method and terminal
CN110109725A (en) * 2019-04-30 2019-08-09 努比亚技术有限公司 A kind of interface color method of adjustment and wearable device
CN112783459A (en) * 2019-11-08 2021-05-11 北京汉美奥科节能设备有限公司 Device for changing color of designated position of screen by transmitting position data through screen and receiving position information point by point
CN113407133A (en) * 2020-03-17 2021-09-17 宏碁股份有限公司 Electronic device and color configuration adjustment method
CN111429538A (en) * 2020-03-19 2020-07-17 政采云有限公司 Method, system and equipment for playing carousel pictures and readable storage medium
CN111488191A (en) * 2020-04-13 2020-08-04 Oppo广东移动通信有限公司 Screen display method, electronic device and storage medium
CN111639205B (en) * 2020-05-27 2023-09-12 广西三方大供应链技术服务有限公司 Image processing method, device, storage medium and mobile terminal
CN112512184B (en) * 2020-12-02 2023-09-26 深圳市智岩科技有限公司 Color-taking illumination control method, device, system and storage medium
CN113793395B (en) * 2021-09-15 2024-05-03 湖南快乐阳光互动娱乐传媒有限公司 Key color extraction method and device
CN115145442B (en) * 2022-06-07 2024-06-11 杭州海康汽车软件有限公司 Method and device for displaying environment image, vehicle-mounted terminal and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100468398C (en) * 2005-03-29 2009-03-11 腾讯科技(深圳)有限公司 User interface display method
CN102955803B (en) * 2011-08-26 2016-04-20 腾讯科技(深圳)有限公司 A kind of website display method and browser
CN103440326A (en) * 2013-09-02 2013-12-11 百度在线网络技术(北京)有限公司 Method and apparatus for providing representation information
CN105204807B (en) * 2015-09-24 2018-05-25 北京金山安全软件有限公司 Method and device for adjusting color of display content at front end of screen
CN106201535B (en) * 2016-07-14 2019-08-23 广州神马移动信息科技有限公司 The method and apparatus that toolbar background color is converted with the domain color of picture
CN106569678A (en) * 2016-11-16 2017-04-19 努比亚技术有限公司 Display adjusting method and device of suspending operation board and terminal
CN107315515A (en) * 2017-06-20 2017-11-03 努比亚技术有限公司 Color change method, terminal and the computer-readable recording medium of status bar icon

Also Published As

Publication number Publication date
CN107908383A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107908383B (en) Screen color adjusting method and device and mobile terminal
CN108182043B (en) Information display method and mobile terminal
CN108182019B (en) Suspension control display processing method and mobile terminal
CN107943551B (en) Screen display method and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN108492246B (en) Image processing method and device and mobile terminal
CN109831585B (en) Operation parameter adjusting method and mobile terminal
CN110209313B (en) Icon moving method and terminal equipment
CN107886321B (en) Payment method and mobile terminal
CN110012143B (en) Telephone receiver control method and terminal
CN110399000B (en) Mobile terminal and temperature control method thereof
CN107153500B (en) Method and equipment for realizing image display
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN110069311B (en) Application window display method and device, mobile terminal and readable storage medium
CN110069122B (en) Screen control method, terminal and computer readable storage medium
CN111031178A (en) Video stream clipping method and electronic equipment
CN110312070B (en) Image processing method and terminal
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN109727212B (en) Image processing method and mobile terminal
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN107977947B (en) Image processing method and mobile terminal
CN107908342B (en) Method for displaying message and mobile terminal
CN110740265B (en) Image processing method and terminal equipment
CN109189517B (en) Display switching method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant