[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111045769B - Background picture switching method and electronic equipment - Google Patents

Background picture switching method and electronic equipment Download PDF

Info

Publication number
CN111045769B
CN111045769B CN201911205957.9A CN201911205957A CN111045769B CN 111045769 B CN111045769 B CN 111045769B CN 201911205957 A CN201911205957 A CN 201911205957A CN 111045769 B CN111045769 B CN 111045769B
Authority
CN
China
Prior art keywords
target
picture
identification
screen
background picture
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
CN201911205957.9A
Other languages
Chinese (zh)
Other versions
CN111045769A (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 CN201911205957.9A priority Critical patent/CN111045769B/en
Publication of CN111045769A publication Critical patent/CN111045769A/en
Application granted granted Critical
Publication of CN111045769B publication Critical patent/CN111045769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a background picture switching method and electronic equipment, wherein the method comprises the following steps: displaying a target picture on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or a chat head image of the chat interface background can be matched with the target picture, the problems of unclear icons or unclear chat head images are avoided, and the use experience of the user is improved.

Description

Background picture switching method and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a background picture switching method and an electronic device.
Background
With popularization and popularization of electronic devices, the electronic devices gradually become necessary tools for life and work of people.
For more vivid UI visual effects, the user will set the photographed picture to desktop wallpaper or change the photographed picture to the current theme style.
Currently, the self-contained theme or wallpaper of the system usually adopts icon resources with different resolutions, and the icon resources are preset in the system to adapt to the changes of the desktop of the system and the common third party application icons. For the desktop wallpaper selected by the user, the application icons with different designs cannot be considered due to uneven chromatic aberration, hue and contrast, and the problem that some application icons are displayed unevenly is often caused.
Disclosure of Invention
The embodiment of the invention provides a background picture switching method and electronic equipment, which are used for solving the problem that icons are unclear due to the adoption of self-selected wallpaper in the prior art.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for switching a background picture, including: displaying a target picture on a first screen of the electronic equipment; acquiring picture parameters of the target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameter and the identification parameter; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; and displaying the at least one target background picture on a second screen of the electronic equipment so as to be selected and switched by a user.
In a second aspect, an embodiment of the present invention further provides an electronic device, including: the first display module is used for displaying a target picture on a first screen of the electronic equipment; the acquisition module is used for acquiring picture parameters of the target picture and identification parameters of a target identification in the screen of the electronic equipment; the first generation module is used for generating an identification tone primary color according to the picture parameter and the identification parameter; the second generation module is used for adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; and the second display module is used for displaying at least one target background picture on a second screen of the electronic equipment so as to be selected and switched by a user.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including 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 the steps of the background picture switching method.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps of the background picture switching method.
In the embodiment of the invention, the target picture is displayed on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or a chat head image of the chat interface background can be matched with the target picture, the problems of unclear icons or unclear chat head images are avoided, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart of a background picture switching method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a background picture switching method according to a second embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to a third embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a step flowchart of a background picture switching method according to a first embodiment of the present invention is shown.
The background picture switching method provided by the embodiment of the invention comprises the following steps:
step 101: and displaying the target picture on a first screen of the electronic device.
Wherein the target picture comprises any one of the following: desktop wallpaper, chat interface background and desktop theme picture, and the target picture is a new background picture switched.
The target picture may be a picture shot by the user or a picture downloaded from the internet, and the target picture is displayed on a first screen of the electronic device.
Step 102: and acquiring the picture parameters of the target picture and the identification parameters of the target identification in the screen of the electronic equipment.
Wherein the target identifier comprises an icon of an application on a standby desktop of the electronic device or a chat avatar in an application chat interface.
In imaging, transparency, saturation, and hue are three elements of color, and if a certain element plays a dominant role, it is called a certain hue. The picture parameters of the target picture may be: the first color primary of the target picture and the application icon circumscribe the third color primary of the pixel matrix. The identification parameters of the target identification may be: icons of various applications in a desktop in a screen or a second tone base color of chat head images in an application chat interface. The first, second and third tonal primaries are all composed of RGBA, for example: the first color primary comprises a pixel average of the red channel, a pixel average of the green channel, a pixel average of the blue channel, and a pixel average of the transparency. The first, second and third color primary are different in that the number of pixels acquired is different, resulting in different pixel averages.
The icon circumscribes the pixel matrix as follows: for example, the icon pixel matrix size is 64x64, and the circumscribed pixel matrix size is 128x128, wherein the icon is at the center of the circumscribed pixel matrix.
Step 103: generating the identification tone base color according to the picture parameter and the identification parameter.
The final switched target background picture is required to be matched with the icon in color difference, color tone and contrast, so that the problem of unclear display when the icon is displayed in wallpaper is avoided, and therefore, the picture parameters of the background picture to be switched and the identification parameters of the target identification are required to be adjusted, so that the target background picture can be matched with each application icon or chat head image.
Step 104: and adjusting the target picture based on the identification tone primary colors to generate at least one target background picture.
Step 105: and displaying at least one target background picture on a second screen of the electronic equipment for the user to select and switch.
And if the number of the target background pictures is two or more, displaying the target background pictures on a second screen of the electronic equipment in a layered manner, or displaying the target background pictures on the second screen in a tiled manner for the user to select and switch.
In the embodiment of the invention, the target picture is displayed on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or a chat head image of the chat interface background can be matched with the target picture, the problems of unclear icons or unclear chat head images are avoided, and the use experience of the user is improved.
Example two
Referring to fig. 2, a step flowchart of a background picture switching method according to a second embodiment of the present invention is shown.
The background picture switching method provided by the embodiment of the invention comprises the following steps:
step 201: and displaying the target picture on a first screen of the electronic device.
Wherein the target picture comprises any one of the following: desktop wallpaper, chat interface background, and desktop theme pictures.
The target picture may be a picture shot by the user or a picture downloaded from the internet, and the target picture is displayed on a first screen of the electronic device.
Step 202: and acquiring a first tone primary color of the target picture, a second tone primary color of the target mark and a third tone primary color of an external pixel matrix of the target mark.
Specifically, each pixel is represented in RGBA form, and represents information such as red, green, blue, transparency, and the like, and is represented by Q (R, G, B, a).
Specifically, calculate what is in the target pictureThere is a mean value of the pixel values, such as the mean value of red R, mean value of green G->Mean>Mean value of transparency A>Wherein n is the pixel number of all pixels in the target picture, pr, pg, pb and Pa are the pixel values of red, green, blue and transparency, and Qr, qg and Q b Q and a is determined as the first color primary.
Calculating the average value of all pixel values of the target mark, redMean value of green G-> Mean>Mean value of transparency->Wherein m is the pixel number of all pixels of the target mark, ir, ig and I b I a Is determined to be the second hue primary.
Calculating the average value of all pixel values of the target identification external pixel matrix, and obtaining red colorMean value of green G->Mean>Mean value of transparency A> Wherein s is the number of all pixels of the external pixel matrix of the target mark, and Or, og and O are calculated b O and O a Is determined to be the third color-tuning primary.
Step 203: and taking the first tone primary color and the third tone primary color as picture parameters of the target picture.
Step 204: a first contrast difference value is calculated for a first pixel value of a first pixel channel in a second tone primary color and a second pixel value of a fourth pixel channel in a third tone primary color.
Specifically, the first contrast difference value is calculated by the following formula:
step 205: and determining a first identification tone base color of the target identification based on the first model under the condition that the first contrast difference value is larger than a preset threshold value.
And comparing the first contrast difference value with a preset threshold value, and determining a first identification tone primary color of the target identification by using a first model under the condition that the first contrast difference value is larger than the preset threshold value. When the first contrast score value is less than or equal to the preset threshold value, it is determined that a third model is used, the first model and the third model differing in specific numerical values of Wq, wi, and Wo.
The method comprises the following steps: da=qr+wq+ir Wi-Or Wo, where Wq, wi, and Wo are coefficients and can be set by the user himself. Da is a first logo hue base color of the target logo calculated using the first model.
And adjusting the target picture based on the first icon tone primary colors to generate a first target background picture.
Step 206: a second contrast difference value is calculated for a third pixel value of a second pixel channel in the second hue primary and a second pixel value of a fourth pixel channel in the third hue primary.
Specifically, the second contrast difference value is calculated by the following formula:
step 207: and determining a second identification tone base color of the target identification based on a second model under the condition that the second contrast difference value is larger than a preset threshold value.
And comparing the second contrast difference value with a preset threshold value, and determining a second identification tone primary color of the target identification by using a second model under the condition that the second contrast difference value is larger than the preset threshold value. When the first contrast score value is less than or equal to the preset threshold value, it is determined that the fourth model is used, and the first model and the third model differ in specific numerical values of Wq, wi, and Wo.
The method comprises the following steps: db=qb+wq+ib Wi-Ob Wo, wherein Wq, wi, and Wo are coefficients, and Wq, wi, and Wo can be set by the user himself. Db is a second identified hue primary calculated using a second model.
Step 208: and adjusting the target picture based on the first identification tone primary color to generate a first target background picture.
Step 209: and adjusting the target picture based on the second identification tone primary color to generate a second target background picture.
Different target background pictures are generated based on different identification tone primary colors, and a user can select according to preference aiming at the target background pictures.
And when the first target background picture and the second target background picture exist at the same time, displaying the first target background picture and the second target background picture in a layered manner in a second screen of the electronic equipment.
Step 210: and displaying at least one target background picture on a second screen of the electronic equipment for the user to select and switch.
After step 210, the following steps may also be performed:
receiving a selection operation of a user on a first target background picture; setting a first target background picture as desktop wallpaper, a chat interface or a desktop theme picture; detecting folding operation of a user on the first screen and the second screen; when the folding operation indicates to expand the electronic equipment, gradually stretching the first target background picture according to the change of the folding angle corresponding to the folding operation; when the folding operation indicates to fold the electronic device, the first target background picture is gradually contracted according to the change of the folding angle corresponding to the folding operation.
In the unfolding or folding process of the folding screen of the electronic equipment, according to the change of the folding angle, the target background picture dynamically presents the unfolding or stretching flexible effect.
Specifically, when the folding screen is unfolded, the target background picture is stretched from inside to outside according to the increasing process of the folding angle of the screen, and the stretching speed depends on the speed of the folding screen of the user.
When a user packs up the folding screen, according to the reduction process of the folding angle of the screen, the target background picture is contracted from outside to inside, the contraction speed depends on the packing speed of the folding screen, and when the folding angle reaches a certain threshold T, the target wallpaper user cannot see, and the contraction process of the target wallpaper from outside to inside is stopped.
In the embodiment of the invention, the target picture is displayed on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or the chat head image of the chat interface background can be matched with the target picture, the problems that the icon is unclear or the chat head image is unclear are avoided, and the use experience of the user is improved.
Example III
Referring to fig. 3, a block diagram of an electronic device according to a third embodiment of the present invention is shown.
The electronic equipment provided by the embodiment of the invention comprises: a first display module 301, configured to display a target picture on a first screen of the electronic device; the acquiring module 302 is configured to acquire a picture parameter of the target picture and an identification parameter of a target identification in the screen of the electronic device; a first generating module 303, configured to generate an identification tone primary color according to the picture parameter and the identification parameter; a second generating module 304, configured to adjust the target picture based on the identification tone primary color, and generate at least one target background picture; and the second display module 305 is configured to display at least one target background picture on a second screen of the electronic device, so that a user can select to switch.
In the embodiment of the invention, the target picture is displayed on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or a chat head image of the chat interface background can be matched with the target picture, the problems of unclear icons or unclear chat head images are avoided, and the use experience of the user is improved.
Example IV
Referring to fig. 4, a block diagram of an electronic device according to a fourth embodiment of the present invention is shown.
The electronic equipment provided by the embodiment of the invention comprises: a first display module 401, configured to display a target picture on a first screen of the electronic device; an obtaining module 402, configured to obtain a picture parameter of the target picture and an identification parameter of a target identification in the screen of the electronic device; a first generating module 403, configured to generate an identification tone primary color according to the picture parameter and the identification parameter; a second generating module 404, configured to adjust the target picture based on the identified tone primary color, and generate at least one target background picture; and the second display module 405 is configured to display at least one target background picture on a second screen of the electronic device, so that a user can select to switch.
Preferably, the obtaining module 402 includes: a first obtaining submodule 4021, configured to obtain a first color tone primary color of the target picture, a second color tone primary color of the target identifier, and a third color tone primary color of an external pixel matrix of the target identifier; a first determination submodule 4022 is configured to take the first color primary color and the third color primary color as picture parameters of the target picture.
Preferably, the first generating module 403 includes: a first calculation submodule 4031 for calculating a first contrast difference value of a first pixel channel in the second hue primary and a second pixel value of a fourth pixel channel in the third hue primary; a second determining submodule 4032, configured to determine, based on a first model, a first identification tone base color of the target identification if the first contrast score value is greater than a preset threshold.
Preferably, the first generating module 403 includes: a second calculation submodule 4033 configured to calculate a second contrast difference value of a third pixel value of a second pixel channel in the second tone base color and a second pixel value of a fourth pixel channel in the third tone base color; a third determining submodule 4034, configured to determine a second identification tone color primary of the target identification based on a second model if the second contrast score value is greater than a preset threshold.
Preferably, the second display module 405 includes: a first generating sub-module 4051, configured to adjust the target picture based on the first identification tone primary color, and generate a first target background picture; a second generating submodule 4052, configured to adjust the target picture based on the second identification tone primary color, and generate a second target background picture; the electronic device further includes: a receiving module 406, configured to receive, after the second display module 404 displays at least one target background picture on the second screen of the electronic device for the user to select and switch, a selection operation of the user on the first target background picture; a setting module 407, configured to set the first target background picture as a desktop wallpaper, a chat interface, or a desktop theme picture; a detection module 408, configured to detect a folding operation of the first screen and the second screen by a user; the stretching module 409 is configured to gradually stretch the first target background picture according to a change of a folding angle corresponding to the folding operation when the folding operation indicates to expand the electronic device; and the shrinking module 410 is configured to gradually shrink the first target background picture according to a change of a folding angle corresponding to the folding operation when the folding operation indicates to fold the electronic device.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 1 to 2, and in order to avoid repetition, a description is omitted here.
In the embodiment of the invention, the target picture is displayed on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or a chat head image of the chat interface background can be matched with the target picture, the problems of unclear icons or unclear chat head images are avoided, and the use experience of the user is improved.
Example five
Referring to fig. 5, a hardware structure of an electronic device for implementing various embodiments of the present invention is shown.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power source 511. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, 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.
A display unit 506, configured to display a target picture on a first screen of the electronic device; and displaying the at least one target background picture on a second screen of the electronic equipment so as to be selected and switched by a user.
A processor 510, configured to obtain a picture parameter of the target picture and an identification parameter of a target identifier in the screen of the electronic device, and generate an identification tone primary color according to the picture parameter and the identification parameter; and adjusting the target picture based on the identification tone primary colors to generate at least one target background picture.
In the embodiment of the invention, the target picture is displayed on a first screen of the electronic equipment; acquiring picture parameters of a target picture and identification parameters of a target identification in a screen of the electronic equipment; generating an identification tone base color according to the picture parameters and the identification parameters; adjusting the target picture based on the identification tone primary colors to generate at least one target background picture; at least one target background picture is displayed on a second screen of the electronic equipment for selection and switching of a user, when the user selects the target picture, the third party application program icon can be matched with the target picture or a chat head image of the chat interface background can be matched with the target picture, the problems of unclear icons or unclear chat head images are avoided, and the use experience of the user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 510; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 501 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 501 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 502, such as helping the user to send and receive e-mail, browse web pages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 500. The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used for receiving an audio or video signal. The input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, the graphics processor 5041 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 506. The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. Microphone 5042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 501 in case of a phone call mode.
The electronic device 500 also includes at least one sensor 505, 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 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or the backlight when the electronic device 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 505 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 506 is used to display information input by a user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on touch panel 5071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). Touch panel 5071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (e.g., volume control keys, switch keys, etc.), trackballs, mice, joysticks, and so forth, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 510 to determine a type of touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external devices may include a wired or wireless headset port, an external power (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 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and an external device.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for 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, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory 509 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 510 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509, and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The electronic device 500 may also include a power supply 511 (e.g., a battery) for powering the various components, and preferably the power supply 511 may be logically connected to the processor 510 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 500 includes some functional modules, which are not shown, and will not be described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program when executed by the processor 510 implements each process of the above embodiment of the background picture switching method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements each process of the above background picture switching method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (7)

1. A background picture switching method applied to an electronic device having at least two screens, the method comprising:
displaying a target picture on a first screen of the electronic equipment;
acquiring picture parameters of the target picture and identification parameters of a target identification in a screen of the electronic equipment;
generating an identification tone base color according to the picture parameter and the identification parameter;
adjusting the target picture based on the identification tone primary colors to generate at least one target background picture;
displaying the at least one target background picture on a second screen of the electronic equipment so as to be selected and switched by a user;
the step of obtaining the picture parameter of the target picture and the identification parameter of the target identification in the screen of the electronic device comprises the following steps:
acquiring a first tone primary color of the target picture, a second tone primary color of the target mark and a third tone primary color of an external pixel matrix of the target mark;
taking the first tone primary color and the third tone primary color as picture parameters of the target picture;
the step of generating the identification tone primary color according to the picture parameter and the identification parameter comprises the following steps:
calculating a first contrast difference value of a first pixel channel in the second hue primary and a second pixel value of a fourth pixel channel in the third hue primary;
and determining a first identification tone primary color of the target identification based on a first model under the condition that the first contrast difference value is larger than a preset threshold value.
2. The method of claim 1, wherein the step of generating the identified hue primary from the picture parameter and the identification parameter comprises:
calculating a second contrast difference value of a third pixel value of a second pixel channel in the second tone primary color and a second pixel value of a fourth pixel channel in the third tone primary color;
and determining a second identification tone primary color of the target identification based on a second model under the condition that the second contrast difference value is larger than a preset threshold value.
3. The method of claim 2, wherein the step of generating at least one target background picture by adjusting the target picture based on the identified hue primary colors comprises:
adjusting the target picture based on the first identification tone primary color to generate a first target background picture;
adjusting the target picture based on the second identification tone primary color to generate a second target background picture;
after the step of displaying the at least one target background picture on the second screen of the electronic device for the user to select switching, the method further includes:
receiving a selection operation of a user on the first target background picture;
setting the first target background picture as desktop wallpaper, a chat interface or a desktop theme picture;
detecting folding operation of a user on the first screen and the second screen;
when the folding operation indicates to expand the electronic equipment, gradually stretching the first target background picture according to the change of the folding angle corresponding to the folding operation;
when the folding operation indicates to fold the electronic equipment, the first target background picture is gradually contracted according to the change of the folding angle corresponding to the folding operation.
4. An electronic device, the electronic device comprising:
the first display module is used for displaying a target picture on a first screen of the electronic equipment;
the acquisition module is used for acquiring picture parameters of the target picture and identification parameters of a target identification in the screen of the electronic equipment;
the first generation module is used for generating an identification tone primary color according to the picture parameter and the identification parameter;
the second generation module is used for adjusting the target picture based on the identification tone primary colors to generate at least one target background picture;
the second display module is used for displaying at least one target background picture on a second screen of the electronic equipment so as to be selected and switched by a user;
the acquisition module comprises:
a first obtaining sub-module, configured to obtain a first color tone primary color of the target picture, a second color tone primary color of the target identifier, and a third color tone primary color of an external pixel matrix of the target identifier;
a first determining sub-module, configured to use the first color primary and the third color primary as picture parameters of the target picture;
the first generation module includes:
a first calculation sub-module for calculating a first contrast difference value of a first pixel channel in the second hue primary and a second pixel value of a fourth pixel channel in the third hue primary;
and the second determining submodule is used for determining a first identification tone primary color of the target identification based on a first model under the condition that the first contrast difference value is larger than a preset threshold value.
5. The electronic device of claim 4, wherein the second display module comprises:
the first generation sub-module is used for adjusting the target picture based on the first identification tone primary color to generate a first target background picture;
the second generation sub-module is used for adjusting the target picture based on the second identification tone primary colors to generate a second target background picture;
the electronic device further includes:
the receiving module is used for receiving the selection operation of the user on the first target background picture after the second display module displays at least one target background picture on a second screen of the electronic equipment so as to be selected and switched by the user;
the setting module is used for setting the first target background picture as desktop wallpaper, a chat interface or a desktop theme picture;
the detection module is used for detecting folding operation of a user on the first screen and the second screen;
the stretching module is used for gradually stretching the first target background picture according to the change of the folding angle corresponding to the folding operation when the folding operation indicates to expand the electronic equipment;
and the contraction module is used for gradually contracting the first target background picture according to the change of the folding angle corresponding to the folding operation when the folding operation indicates to fold the electronic equipment.
6. A mobile terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the background picture switching method of any one of claims 1 to 3.
7. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the background picture switching method according to any one of claims 1 to 3.
CN201911205957.9A 2019-11-29 2019-11-29 Background picture switching method and electronic equipment Active CN111045769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911205957.9A CN111045769B (en) 2019-11-29 2019-11-29 Background picture switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911205957.9A CN111045769B (en) 2019-11-29 2019-11-29 Background picture switching method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111045769A CN111045769A (en) 2020-04-21
CN111045769B true CN111045769B (en) 2024-02-06

Family

ID=70234249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911205957.9A Active CN111045769B (en) 2019-11-29 2019-11-29 Background picture switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111045769B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554116A (en) * 2020-11-27 2022-05-27 西安诺瓦星云科技股份有限公司 Background image switching method and device, video output card and video processing equipment
CN113065019A (en) * 2021-02-26 2021-07-02 当趣网络科技(杭州)有限公司 Background display control method, device, electronic equipment and medium
CN113778278A (en) * 2021-08-27 2021-12-10 维沃移动通信有限公司 Parameter adjusting method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122097A (en) * 2017-04-21 2017-09-01 维沃移动通信有限公司 The recommendation method and mobile terminal of a kind of mobile terminal wallpaper
CN109189281A (en) * 2018-06-29 2019-01-11 努比亚技术有限公司 Color adaptation method, terminal and the computer storage medium of wallpaper and icon
CN109491741A (en) * 2018-10-31 2019-03-19 维沃移动通信有限公司 A kind of method and terminal switching background skin
WO2019095392A1 (en) * 2017-11-20 2019-05-23 华为技术有限公司 Method and device for dynamically displaying icon according to background image

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246475A1 (en) * 2015-02-22 2016-08-25 Microsoft Technology Licensing, Llc Dynamic icon recoloring to improve contrast

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122097A (en) * 2017-04-21 2017-09-01 维沃移动通信有限公司 The recommendation method and mobile terminal of a kind of mobile terminal wallpaper
WO2019095392A1 (en) * 2017-11-20 2019-05-23 华为技术有限公司 Method and device for dynamically displaying icon according to background image
CN109189281A (en) * 2018-06-29 2019-01-11 努比亚技术有限公司 Color adaptation method, terminal and the computer storage medium of wallpaper and icon
CN109491741A (en) * 2018-10-31 2019-03-19 维沃移动通信有限公司 A kind of method and terminal switching background skin

Also Published As

Publication number Publication date
CN111045769A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN107957839B (en) Display control method and mobile terminal
US11451706B2 (en) Photographing method and mobile terminal
CN109361867B (en) Filter processing method and mobile terminal
CN110365907B (en) Photographing method and device and electronic equipment
CN107621738B (en) Control method of mobile terminal and mobile terminal
CN109461117B (en) Image processing method and mobile terminal
CN108492246B (en) Image processing method and device and mobile terminal
CN108924414B (en) Shooting method and terminal equipment
CN107846583B (en) Image shadow compensation method and mobile terminal
US12027138B2 (en) Screen illuminance control method for photo shooting and electronic device
CN110928407B (en) Information display method and device
CN108174109B (en) Photographing method and mobile terminal
CN111045769B (en) Background picture switching method and electronic equipment
CN111459233B (en) Display method, electronic device and storage medium
CN107153500B (en) Method and equipment for realizing image display
CN109727212B (en) Image processing method and mobile terminal
CN109819166B (en) Image processing method and electronic equipment
CN109656636B (en) Application starting method and device
CN109587334B (en) Display method of flexible terminal, flexible terminal and computer readable storage medium
CN107729100B (en) Interface display control method and mobile terminal
CN110221754A (en) A kind of control method, control device and terminal device
CN111459447B (en) Volume adjustment display method and electronic equipment
CN110636225B (en) Photographing method and electronic equipment
CN109462727B (en) Filter adjusting 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
TG01 Patent term adjustment