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

Background picture switching method and electronic equipment Download PDF

Info

Publication number
CN111045769A
CN111045769A CN201911205957.9A CN201911205957A CN111045769A CN 111045769 A CN111045769 A CN 111045769A CN 201911205957 A CN201911205957 A CN 201911205957A CN 111045769 A CN111045769 A CN 111045769A
Authority
CN
China
Prior art keywords
picture
target
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.)
Granted
Application number
CN201911205957.9A
Other languages
Chinese (zh)
Other versions
CN111045769B (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

Images

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

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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is 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
Along with the popularization of electronic equipment, electronic equipment gradually becomes a necessary tool for people to live and work.
For a more vivid UI visual effect, the user may set the taken picture as desktop wallpaper or change the taken picture to the current theme style.
Currently, the theme or wallpaper of the system usually adopts icon resources with different resolutions, and is preset in the system to adapt to the changes of the system desktop and the common third party application icons. For desktop wallpaper selected by a user, due to the difference of chromatic aberration, hue and contrast, application icons with different designs cannot be considered, and the problem that some application icons are not displayed clearly is often caused.
Disclosure of Invention
The embodiment of the invention provides a background picture switching method and electronic equipment, and aims to solve the problem that icons are not clear due to the adoption of self-selection wallpaper in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a background picture switching method, 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 identified tone primary color 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 for the user to select and switch.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: 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 the picture parameter of the target picture and the identification parameter of the target identification in the screen of the electronic equipment; the first generation module is used for generating an identification tone base 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 base color 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 on the memory and executable 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 on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the background picture switching method are implemented.
In the embodiment of the invention, the target picture is displayed on the 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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is avoided, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a background picture switching method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating steps 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 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.
Example one
Referring to fig. 1, a flowchart illustrating steps 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 equipment.
Wherein the target picture comprises any one of the following: desktop wallpaper, chat interface background and desktop theme pictures, and the target picture is a switched new background picture.
The target picture can be a picture taken by a 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 parameter of the target picture and the identification parameter of the target identification in the screen of the electronic equipment.
The target identification comprises an icon of an application program on a standby desktop of the electronic equipment or a chat head portrait in an application program chat interface.
In the 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 primary color tone of the target picture and the third primary color tone of the application icon circumscribing the pixel matrix. The identification parameters of the target identification may be: icons of application programs in a desktop in a screen or a second tone base color of a chat head portrait in an application program chat interface. The first, second, and third tone primaries are all composed of RGBA, for example: the first color primary includes a pixel average value of a red channel, a pixel average value of a green channel, a pixel average value of a blue channel, and a pixel average value of a transparency. The difference between the first, second and third hues is that the obtained number of pixels is different, resulting in different pixel mean values.
The icon circumscribed pixel matrix is: such as an icon pixel matrix size of 64x64, where the icon is in the center of the circumscribed pixel matrix, and a circumscribed pixel matrix size of 128x 128.
Step 103: and generating the identification tone base color according to the picture parameter and the identification parameter.
The finally switched target background picture needs to be matched with the icon in terms of color difference, tone and contrast, so that the problem that the icon is not displayed clearly when being displayed in the wallpaper is avoided, and therefore, the picture parameter of the background picture to be switched and the identification parameter of the target identification need to be adjusted, so that the target background picture can be matched with each application icon or chat head portrait.
Step 104: and adjusting the target picture based on the identified 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 stacking manner, or displaying the target background pictures on the second screen in a tiled manner, so that the user can select and switch the target background pictures.
In the embodiment of the invention, a target picture is displayed through 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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is avoided, and the use experience of the user is improved.
Example two
Referring to fig. 2, a flowchart illustrating 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 equipment.
Wherein the target picture comprises any one of the following: desktop wallpaper, chat interface background, and desktop theme pictures.
The target picture can be a picture taken by a 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 the first tone primary color of the target picture, the 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 point is represented in RGBA form, and represents information such as red, green, blue, transparency, and the like, respectively, and is represented by Q (R, G, B, a).
In particular, the mean value of all pixel values in the target picture, such as the mean value of red R,
Figure BDA0002296936390000051
Figure BDA0002296936390000052
mean value of green G
Figure BDA0002296936390000053
Mean value of blue B
Figure BDA0002296936390000054
Average value of the degree of transparency A
Figure BDA0002296936390000055
Where n is the number of pixels 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, QbAnd QaDetermined as the first tonal base color.
Mean of all pixel values of the target identification, red
Figure BDA0002296936390000056
Mean value of green G
Figure BDA0002296936390000057
Figure BDA0002296936390000058
Mean value of blue B
Figure BDA0002296936390000059
Mean value of transparency
Figure BDA00022969363900000510
Wherein m is the pixel number of all pixels of the target mark, and Ir, Ig and I arebAnd IaThe second shade primary is determined.
Calculating the mean value of all pixel values of the external pixel matrix of the target identifier, red
Figure BDA00022969363900000511
Mean value of green G
Figure BDA00022969363900000512
Mean value of blue B
Figure BDA00022969363900000513
Average value of the degree of transparency A
Figure BDA00022969363900000514
Figure BDA00022969363900000515
Wherein s is the number of all pixels of the external pixel matrix of the target identifier, and is one of Or, Og and ObAnd OaA third tonal base color is determined.
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 the second color shade primary and a second pixel value of a fourth pixel channel in the third color shade primary.
Specifically, the first contrast difference value is calculated by the following formula:
Figure BDA00022969363900000516
step 205: and under the condition that the first contrast score value is larger than a preset threshold value, determining a first mark tone base color of the target mark based on the first model.
And comparing the first comparison score difference value with a preset threshold value, and determining a first identification tone base color of the target identification by using the first model under the condition that the first comparison score difference value is greater than the preset threshold value. And determining to use a third model when the first comparison score difference value is smaller than or equal to a preset threshold value, wherein the first model and the third model are different in specific values of Wq, Wi and Wo.
The method specifically comprises the following steps: da ═ Qr × Wq + Ir × Wi-Or × Wo, where Wq, Wi, and Wo are coefficients, and Wq, Wi, and Wo may be set by the user. Da is the first marker hue primary of the target marker calculated using the first model.
And adjusting the target picture based on the tone base color of the first icon to generate a first target background picture.
Step 206: a second contrast difference value is calculated for a third pixel value of the second pixel channel in the second color-shade primary and a second pixel value of a fourth pixel channel in the third color-shade primary.
Specifically, the second contrast difference value is calculated by the following formula:
Figure BDA0002296936390000061
step 207: and under the condition that the second contrast score difference value is larger than a preset threshold value, determining a second identification tone base color of the target identification based on the second model.
And comparing the second contrast difference value with a preset threshold value, and determining a second identification tone base color of the target identification by using the second model under the condition that the second contrast difference value is greater than the preset threshold value. And determining to use a fourth model when the first comparison score difference value is smaller than or equal to a preset threshold value, wherein the first model and the third model are different in specific values of Wq, Wi and Wo.
The method specifically comprises the following steps: db ═ Qb × Wq + Ib × Wi-Ob × Wo, where Wq, Wi, and Wo are coefficients, and Wq, Wi, and Wo can be set by the user. Db is a second identified hue primary calculated using the second model.
Step 208: and adjusting the target picture based on the first identification tone base color to generate a first target background picture.
Step 209: and adjusting the target picture based on the second identification tone base 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 different target background pictures according to preference.
And when the first target background picture and the second target background picture exist at the same time, the first target background picture and the second target background picture are displayed in a second screen of the electronic equipment in a stacking mode.
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 the first target background picture as desktop wallpaper, a chat interface or a desktop theme picture; detecting folding operations of a user on a first screen and a second screen; gradually stretching the first target background picture according to the change of the folding angle corresponding to the folding operation when the electronic equipment is unfolded by the folding operation instruction; when the folding operation indicates to fold the electronic device, the first target background picture is gradually shrunk according to the change of the folding angle corresponding to the folding operation.
In the process of unfolding or folding the folding screen of the electronic equipment, the target background picture dynamically presents the flexible effect of unfolding or stretching according to the change of the folding angle.
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 folds the folding screen, the target background picture is contracted from outside to inside according to the reduction process of the folding angle of the screen, the contraction speed depends on the contraction speed of the folding screen, and when the folding angle reaches a certain threshold value T and a target wallpaper user cannot see the target wallpaper, 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 the 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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is 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; an obtaining module 302, configured to obtain a picture parameter of the target picture and an identifier parameter of a target identifier in a screen of the electronic device; a first generating module 303, configured to generate a base color of a mark hue according to the picture parameter and the mark parameter; a second generating module 304, configured to adjust the target picture based on the identified hue primary color, and generate at least one target background picture; a second display module 305, configured to display at least one target background picture on a second screen of the electronic device, so that a user can select switching.
In the embodiment of the invention, the target picture is displayed on the 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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is avoided, and the use experience of the user is improved.
Example four
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 identifier parameter of a target identifier in a screen of the electronic device; a first generating module 403, configured to generate an identification hue base 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 hue primary color, and generate at least one target background picture; a second display module 405, configured to display at least one target background picture on a second screen of the electronic device, so that a user can select switching.
Preferably, the obtaining module 402 comprises: the first obtaining sub-module 4021 is configured to obtain a first hue primary color of the target picture, a second hue primary color of the target identifier, and a third hue primary color of an external pixel matrix of the target identifier; a first determining sub-module 4022, configured to use the first color tone primary and the third color tone primary as picture parameters of the target picture.
Preferably, the first generating module 403 includes: a first calculation submodule 4031 for calculating a first contrast value of a first pixel channel in the second color-shade primary and a second pixel value of a fourth pixel channel in the third color-shade primary; a second determining submodule 4032, configured to determine, based on the first model, a first identifier hue primary color of the target identifier when the first contrast difference is greater than a preset threshold.
Preferably, the first generating module 403 includes: a second calculation submodule 4033 for calculating a second contrast difference value of a third pixel value of a second pixel channel in the second color-shade primary color and a second pixel value of a fourth pixel channel in the third color-shade primary color; a third determining sub-module 4034, configured to determine, based on the second model, a second identifier hue primary color of the target identifier when the second contrast score value is greater than a preset threshold.
Preferably, the second display module 405 includes: a first generation sub-module 4051, configured to adjust the target picture based on the first identified hue primary color, and generate a first target background picture; a second generating sub-module 4052, configured to adjust the target picture based on the second identified hue primary color, and generate a second target background picture; the electronic device further includes: a receiving module 406, configured to receive a selection operation of a user on the first target background picture after the second display module 404 displays at least one target background picture on a second screen of the electronic device for the user to select a switch; 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 detecting module 408, configured to detect a folding operation of the first screen and the second screen by a user; a stretching module 409, 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 unfold the electronic device; a shrinking module 410, 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 embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, the target picture is displayed on the 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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is avoided, and the use experience of the user is improved.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of an electronic device for implementing various embodiments of the present invention is shown.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device 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 electronic device 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.
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 for the user to select and switch.
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 hue base color according to the picture parameter and the identification parameter; and adjusting the target picture based on the identified tone primary colors to generate at least one target background picture.
In the embodiment of the invention, the target picture is displayed on the 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 parameter and the identification parameter; adjusting the target picture based on the identified tone primary color to generate at least one target background picture; the method has the advantages that at least one target background picture is displayed on the second screen of the electronic equipment for the user to select and switch, when the user selects the optional target picture, the third-party application program icon can be matched with the target picture or the chat head portrait of the chat interface background can be matched with the target picture, the problem that the icon is not clear or the chat head portrait is not clear is 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 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 510; in addition, the uplink data is transmitted to the base station. In general, 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 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
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 related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture 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 graphic 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. The microphone 5042 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 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, 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 a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 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 506 is used to display information input by the 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 (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and 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 by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 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 a resistive type, a capacitive type, an infrared ray, and a 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, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, 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 nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement 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, and 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 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 508 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 electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
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 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 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 whole electronic device by using various interfaces and lines, 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, 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 processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the above-mentioned embodiment of the background picture switching method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
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 background picture switching 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. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, groups, integers, operations, elements, components, groups, operations, elements, groups, components, groups, integers, operations, elements, groups, integers, operations, elements, groups.
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 (10)

1. A background picture switching method is applied to an electronic device with at least two screens, and is characterized by comprising the following steps:
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 identified tone primary color 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 for the user to select and switch.
2. The method according to claim 1, wherein the step of obtaining the picture parameter of the target picture and the identification parameter of the target identifier in the screen of the electronic device comprises:
acquiring a first tone base color of the target picture, a second tone base color of the target identifier and a third tone base color of an external pixel matrix of the target identifier;
and taking the first tone primary color and the third tone primary color as picture parameters of the target picture.
3. The method of claim 2, wherein the step of generating the identified hue base color according to the picture parameter and the identification parameter comprises:
calculating a first contrast difference value of a first pixel channel in the second color shade primary and a second pixel value of a fourth pixel channel in the third color shade primary;
and under the condition that the first contrast difference value is larger than a preset threshold value, determining a first identification tone base color of the target identification based on a first model.
4. The method according to claim 1, wherein said step of generating an identification tone primary according to said picture parameter and said identification parameter comprises:
calculating a second contrast difference value of a third pixel value of a second pixel channel in the second color shade primary and a second pixel value of a fourth pixel channel in the third color shade primary;
and under the condition that the second contrast score difference value is larger than a preset threshold value, determining a second identification tone base color of the target identification based on a second model.
5. The method according to claims 3-4, wherein said step of adjusting said target picture based on said identified hue primary colors to generate at least one target background picture comprises:
adjusting the target picture based on the first identification tone base color to generate a first target background picture;
adjusting the target picture based on the second identification tone base 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 a switch, the method further comprises:
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 a folding operation of a user on the first screen and the second screen;
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 unfold the electronic device;
and when the folding operation indicates to fold the electronic equipment, gradually shrinking the first target background picture according to the change of the folding angle corresponding to the folding operation.
6. An electronic device, characterized in that the electronic device comprises:
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 the picture parameter of the target picture and the identification parameter of the target identification in the screen of the electronic equipment;
the first generation module is used for generating an identification tone base 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 base color 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.
7. The electronic device of claim 6, wherein the obtaining module comprises:
the first obtaining submodule is used for obtaining a first tone primary color of the target picture, a second tone primary color of the target identifier and a third tone primary color of an external pixel matrix of the target identifier;
a first determining sub-module, configured to use the first color tone primary and the third color tone primary as picture parameters of the target picture.
8. The electronic device of claim 6, wherein the second display module comprises:
the first generation submodule is used for adjusting the target picture based on the first identification tone base color to generate a first target background picture;
the second generation submodule is used for adjusting the target picture based on the second identification tone base color 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 for the user to select and switch;
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 the folding operation of a user on the first screen and the second screen;
a stretching module, 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 unfold the electronic device;
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 that the electronic equipment is folded.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the background picture switching method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the background picture switching method according to any one of claims 1 to 5.
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 true CN111045769A (en) 2020-04-21
CN111045769B 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)

Cited By (2)

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

Citations (5)

* 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
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

Patent Citations (5)

* 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
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

Cited By (2)

* 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

Also Published As

Publication number Publication date
CN111045769B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN107957839B (en) Display control method and mobile terminal
CN107093418B (en) Screen display method, computer equipment and storage medium
US11451706B2 (en) Photographing method and mobile terminal
CN107908383B (en) Screen color adjusting method and device and mobile terminal
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN109361867B (en) Filter processing method and mobile terminal
WO2021104321A1 (en) Image display method and electronic device
CN108492246B (en) Image processing method and device and mobile terminal
CN110365907B (en) Photographing method and device and electronic equipment
CN111459233B (en) Display method, electronic device and storage medium
CN107153500B (en) Method and equipment for realizing image display
CN111090408A (en) Display method and electronic equipment
CN109727212B (en) Image processing method and mobile terminal
CN109656636B (en) Application starting method and device
CN109413264B (en) Background picture adjusting method and terminal equipment
CN111443765A (en) Electronic equipment and screen display method
CN108174109B (en) Photographing method and mobile terminal
CN110928407B (en) Information display method and device
CN111045769B (en) Background picture switching method and electronic equipment
CN107729100B (en) Interface display control method and mobile terminal
CN111459447A (en) Volume adjustment display method and electronic equipment
CN111061407A (en) Video program operation control method, electronic device, and storage medium
CN110781331A (en) Picture display method, electronic equipment and computer readable storage medium
CN111258531B (en) Audio processing method and electronic equipment
CN111324263B (en) Screen capture method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant