Method for generating expression wallpaper and electronic equipment
By automatically identifying the facial expressions of the characters in the picture and matching related emojis, the problem of users' cumbersome selection of emojis manually is solved, and high-quality emoji wallpaper generation is achieved, improving the user experience.
Patent Information
- Application Number
- CN202311268146.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, users need to manually select emojis from the emoji library to add them to the wallpaper. The operation is cumbersome, the user experience is poor, and it is difficult to quickly generate high-quality emoji wallpaper.
By obtaining the facial expressions of the characters in the picture, the emojis associated with them are automatically determined, and emojis are generated based on the pictures and emojis, without the user's manual selection.
It achieves better matching of emojis and pictures, improves the exquisiteness of the wallpaper, simplifies user operations, and improves user experience.
Smart Images

Figure CN119722827A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic devices, and more specifically, to a method for generating an expression wallpaper and an electronic device. Background Art
[0002] Emoticons are an artistic expression of daily life and are known as the third language besides voice and text. Creative and carefully crafted emoticons for chat scenarios can not only increase the fun of users in chat, but also achieve unexpected expression effects. At present, in addition to using emoticons in chat, users can also add emoticons to wallpapers to enhance the visual experience of wallpapers. However, this method only supports users to manually select emoticons in the emoticon library, which is cumbersome and the user experience is not good. Therefore, how to quickly generate high-quality emoticon wallpapers has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides a method for generating an emoticon wallpaper and an electronic device, which can determine the emoticon associated with a picture based on the picture, without the user having to manually select the emoticon, so that the emoticon can be better matched with the picture, the sophistication of the wallpaper can be improved, and the user experience can be improved.
[0004] In a first aspect, a method for generating an expression wallpaper is provided, the method comprising: obtaining a first picture, wherein the first picture includes a first person; determining a facial expression of the first person; determining N expression symbols based on the facial expression of the first person, where N ≥ 1 and is an integer; and generating a first expression wallpaper based on the first picture and the N expression symbols.
[0005] In an embodiment of the present application, the electronic device can determine the emoticons associated with the facial expressions of the characters in the picture, without the need for the user to manually select the emoticons, thereby simplifying the user's operation steps. The emoticons can better match the facial expressions of the characters in the picture, which can improve the sophistication of the wallpaper and help enhance the user experience.
[0006] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: determining color parameters of the first image, the color parameters including one or more of the following: hue, saturation, contrast, brightness; determining N emoticons based on the facial expression of the first person, including: determining the N emoticons based on the facial expression of the first person and the color parameters of the first image.
[0007] In an embodiment of the present application, the electronic device may also consider the color parameters of the picture when determining the emoticon, so that the determined emoticon can match the color of the picture, thereby improving the overall harmony of the emoticon wallpaper and helping to enhance the user experience.
[0008] In combination with the first aspect, in certain implementations of the first aspect, the color parameter of the first image corresponds to a first priority, the facial expression of the first person corresponds to a second priority, and the second priority is higher than the first priority.
[0009] In an embodiment of the present application, the priority of facial expressions and color parameters can be defined. Even if facial expressions and color parameters conflict, the electronic device can use facial expressions as the main information and use color parameters as auxiliary information to determine emoticons.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: determining the posture of the first character; generating a first expression wallpaper based on the first picture and the N emoticons, including: determining the positions of the N emoticons based on the posture of the first character; generating the first expression wallpaper based on the first picture, the N emoticons and the positions of the N emoticons.
[0011] In an embodiment of the present application, when placing the emoticon, the electronic device can place it according to the posture of the object in the picture, so that the emoticon can better match the posture of the person in the picture, which can improve the refinement of the wallpaper and help enhance the user experience.
[0012] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: determining the posture of the first character; generating a first expression wallpaper based on the first picture and the N emoticons, including: determining the positions of the N emoticons based on the posture of the first character and the N emoticons; generating the first expression wallpaper based on the first picture, the N emoticons and the positions of the N emoticons.
[0013] In an embodiment of the present application, when placing the emoticon, the electronic device can place it according to the posture of the object in the picture, so that the emoticon can better match the posture of the person in the picture, which can improve the refinement of the wallpaper and help enhance the user experience.
[0014] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: determining the posture of the first character; generating a first expression wallpaper based on the first picture and the N emoticons, including: determining the positions of the N emoticons based on the posture of the first character and the blank area in the first picture; generating the first expression wallpaper based on the first picture, the N emoticons and the positions of the N emoticons.
[0015] In an embodiment of the present application, the electronic device can determine the positions of N emoticons based on the posture of the first person and the blank area in the first picture. The electronic device can place more emoticons in areas with larger blank areas and fewer emoticons in areas with smaller blank areas, so that the emoticons can match the posture of the person in the picture, but the emoticon wallpaper will not appear messy due to the placement of the emoticons.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: determining the posture of the first character; generating a first expression wallpaper based on the first picture and the N emoticons, including: determining the positions of the N emoticons based on the posture of the first character, the N emoticons and the blank area in the first picture; generating the first expression wallpaper based on the first picture, the N emoticons and the positions of the N emoticons.
[0017] In an embodiment of the present application, the electronic device can determine the positions of the N emoticons based on the posture of the first person, the N emoticons, and the blank area in the first picture. The electronic device can place more emoticons in areas with larger blank areas and fewer emoticons in areas with smaller blank areas, so that the emoticons can match the posture of the person in the picture, but the emoticon wallpaper will not appear messy due to the placement of the emoticons.
[0018] In combination with the first aspect, in certain implementations of the first aspect, N≥2, and the N emoticons are placed around the first character.
[0019] In an embodiment of the present application, the electronic device can place N emoticons around the first person, so as to better highlight the first person in the picture.
[0020] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: determining an area ratio of the first character in the first picture; determining that the area ratio is less than or equal to a threshold, and placing the N emoticons around the first character.
[0021] In an embodiment of the present application, when the area of the first person in the picture is relatively small, the electronic device can place emoticons around the first person, so as to better highlight the first person in the picture.
[0022] In conjunction with the first aspect, in some implementations of the first aspect, the method includes:
[0023] The placement styles of M emoticons among the N emoticons are determined according to the area ratio of the first person in the first picture and / or the posture of the first person, where M≥2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superposition.
[0024] In combination with the first aspect, in certain implementations of the first aspect, the placement style of P of the M emoticons is the continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P emoticons gradually increase or decrease along the first direction, and P ≥ 2 and is an integer.
[0025] In combination with the first aspect, in certain implementations of the first aspect, the P expressions are the same emoticon.
[0026] In a second aspect, a method for generating an expression wallpaper is provided, the method comprising: obtaining a first picture, wherein the first picture includes a first person; determining a posture of the first person; determining positions of the N expression symbols according to the posture of the first person; and generating a first expression wallpaper according to the first picture, the N expression symbols and the positions of the N expression symbols.
[0027] In an embodiment of the present application, the electronic device can determine N emoticons based on a picture, and determine the positions of the emoticons based on the postures of the characters in the picture, so that the emoticons can better match the postures of the characters in the picture, which can improve the sophistication of the wallpaper and help enhance the user experience.
[0028] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: determining the positions of the N emoticons based on the posture of the first character, including: determining the positions of the N emoticons based on the posture of the first character and the N emoticons.
[0029] In an embodiment of the present application, when placing the emoticon, the electronic device can place it according to the posture of the object in the picture, so that the emoticon can better match the posture of the person in the picture, which can improve the refinement of the wallpaper and help enhance the user experience.
[0030] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: determining the posture of the first character; generating a first expression wallpaper based on the first picture and the N emoticons, including: determining the positions of the N emoticons based on the posture of the first character and the blank area in the first picture; generating the first expression wallpaper based on the first picture, the N emoticons and the positions of the N emoticons.
[0031] In an embodiment of the present application, the electronic device can determine the positions of N emoticons based on the posture of the first person and the blank area in the first picture. The electronic device can place more emoticons in areas with larger blank areas and fewer emoticons in areas with smaller blank areas, so that the emoticons can match the posture of the person in the picture, but the emoticon wallpaper will not appear messy due to the placement of the emoticons.
[0032] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: determining the posture of the first character; generating a first expression wallpaper based on the first picture and the N emoticons, including: determining the positions of the N emoticons based on the posture of the first character, the N emoticons and the blank area in the first picture; generating the first expression wallpaper based on the first picture, the N emoticons and the positions of the N emoticons.
[0033] In an embodiment of the present application, the electronic device can determine the positions of the N emoticons based on the posture of the first person, the N emoticons, and the blank area in the first picture. The electronic device can place more emoticons in areas with larger blank areas and fewer emoticons in areas with smaller blank areas, so that the emoticons can match the posture of the person in the picture, but the emoticon wallpaper will not appear messy due to the placement of the emoticons.
[0034] In combination with the second aspect, in certain implementations of the second aspect, N≥2, and the N emoticons are placed around the first character.
[0035] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: determining a proportion of an area of the first character in the first picture; determining that the proportion of the area is less than or equal to a threshold, and placing the N emoticons around the first character.
[0036] In an embodiment of the present application, when the area of the first person in the picture is relatively small, the electronic device can place emoticons around the first person, so as to better highlight the first person in the picture.
[0037] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: determining the placement styles of M emoticons among the N emoticons based on the area ratio of the first character in the first picture and / or the posture of the first character, M ≥ 2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superimposed arrangement.
[0038] In combination with the second aspect, in certain implementations of the second aspect, the placement style of P of the M emoticons is the continuous arrangement, the direction of the continuous arrangement is the first direction, the areas of the P emoticons gradually increase or decrease along the first direction, and P ≥ 2 and is an integer.
[0039] In combination with the second aspect, in certain implementations of the second aspect, the P emoticons are the same emoticons.
[0040] In a third aspect, a method for generating an expression wallpaper is provided, the method comprising: obtaining a first picture, the first picture corresponding to a first scene, determining N expression symbols based on the first scene, where N≥1 and is an integer; and generating a first expression wallpaper based on the first picture and the N expression symbols.
[0041] Exemplarily, the first scene may also be referred to as a first scenery or a first geographical scene. For example, the first scene may be grassland, sea, lake, sky, snow, etc.
[0042] In an embodiment of the present application, the electronic device can determine emoticons based on the scene in the picture, and determine the position of the emoticons based on the scene, so that the emoticons can better match the scene in the picture, which can improve the sophistication of the wallpaper and help enhance the user experience.
[0043] In combination with the third aspect, in certain implementations of the third aspect, the method also includes determining color parameters of the first image; and determining N emoticons based on the first scene includes: determining the N emoticons based on the first scene and the color parameters of the first image.
[0044] In an embodiment of the present application, the electronic device may also consider the color parameters of the picture when determining the emoticon, so that the determined emoticon can match the color of the picture, thereby improving the overall harmony of the emoticon wallpaper and helping to enhance the user experience.
[0045] In combination with the third aspect, in certain implementations of the third aspect, placement positions of the N emoticons are associated with the first scene.
[0046] In combination with the third aspect, in certain implementations of the third aspect, the N emoticons correspond to one or more emoticon placement styles, and the one or more emoticon placement styles include one or more of the following: single placement, continuous arrangement, and superimposed placement.
[0047] In combination with the third aspect, in certain implementations of the third aspect, the placement style of P of the N emoticons is the continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P emoticons gradually increase or decrease along the first direction, and P ≥ 2 and is an integer.
[0048] In combination with the third aspect, in certain implementations of the third aspect, the P emoticons are the same emoticons.
[0049] In a fourth aspect, an electronic device is provided, which includes one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the above aspects or any possible implementation of the above aspects to be executed.
[0050] In a fifth aspect, a computer-readable storage medium is provided, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the first aspect and any possible implementation method of the first aspect are executed.
[0051] In a sixth aspect, a computer program product is provided, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the first aspect and any possible implementation method of the first aspect are executed.
[0052] In a seventh aspect, a computer program is provided, which, when executed on a computer, enables the method in the first aspect and any possible implementation thereof to be executed.
[0053] The eighth aspect is an electronic device of an embodiment of the present application, which includes modules / units for executing the above aspects or any possible design method of the above aspects; these modules / units can be implemented by hardware, or the corresponding software can be implemented by hardware.
[0054] Among them, for the beneficial effects of the fourth to eighth aspects, please refer to the beneficial effects of the first to third aspects and will not be repeated. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0056] Figure 2 It is a schematic diagram of the software system architecture of the electronic device provided in an embodiment of the present application.
[0057] Figure 3 It is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0058] Figure 4 It is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0059] Figure 5 It is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0060] Figure 6 It is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0061] Figure 7 It is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0062] Figure 8 It is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0063] Fig. 9 It is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0064] Fig.10 It is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0065] Fig.11 It is a schematic flowchart of the method for generating expression wallpaper provided in an embodiment of the present application.
[0066] Fig.12 It is a schematic flowchart of the method for generating expression wallpaper provided in an embodiment of the present application.
[0067] Fig.13 It is a schematic flowchart of the method for generating expression wallpaper provided in an embodiment of the present application.
[0068] Fig.14 It is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0070] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0071] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0072] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer, etc. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer.
[0073] For example, Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0074] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0075] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0076] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0077] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0078] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0079] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0080] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0081] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0082] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0083] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0084] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-CDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0085] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0086] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0087] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0088] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0089] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0090] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0091] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0092] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0093] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0094] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0095] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0096] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0097] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0098] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0099] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0100] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the alarm application icon, an instruction to create a new alarm is executed.
[0101] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. For example, when the mobile phone detects a user's touch operation on the lock screen interface, the mobile phone can collect the user's fingerprint information through the fingerprint sensor 180H, and match the collected fingerprint information with the fingerprint information preset in the mobile phone. If the match is successful, the mobile phone can enter the non-lock screen interface from the lock screen interface.
[0102] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0103] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.
[0104] like Figure 2 As shown, the application layer may include camera, settings, third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0105] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions.
[0106] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0107] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0108] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0109] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0110] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0111] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0112] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0113] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0114] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0115] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0116] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0117] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0118] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0119] A 2D graphics engine is a drawing engine for 2D drawings.
[0120] In addition, the system library may also include status monitoring service modules, such as a physical status recognition module for analyzing and identifying user gestures; a sensor service module for monitoring sensor data uploaded by various sensors at the hardware layer to determine the physical status of the electronic device 100.
[0121] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0122] The hardware layer can include various types of sensors, such as Figure 1 The various types of sensors introduced in the present application include acceleration sensors, gyroscope sensors, touch sensors, etc.
[0123] Emoticons are artistic expressions of daily life and are regarded as the third language besides voice and text. Emoticons can be a string of characters (for example, "(︶^︶)" can be used to express dissatisfaction), or some patterns, or a combination of characters and patterns, etc., which are not limited in the embodiments of the present application. Creative emoticons carefully made for chat scenes can not only increase the fun of users in chats, but also achieve unexpected expression effects. At present, in addition to using emoticons in chats, users can also add emoticons to wallpapers to enhance the visual effects of wallpapers. However, this method only supports users to select emoticons from the emoticon library, which is cumbersome to operate and provides poor user experience. Emoticon wallpaper can be understood as adding emoticons to a picture, and setting the picture with the added emoticons as wallpaper. At this time, the wallpaper can be called emoticon wallpaper. Emoticon wallpaper can also be called emoticon wallpaper.
[0124] Based on this, an embodiment of the present application provides a method for generating an expression wallpaper, which can automatically generate an expression wallpaper based on a picture selected by a user. The generated expression wallpaper is consistent with the picture selected by the user, which can improve the user experience and enhance the sophistication of the wallpaper.
[0125] Let's first combine Figure 3-Figure 6 The schematic diagram of generating an expression wallpaper is exemplarily shown to introduce the method for generating an expression wallpaper provided in an embodiment of the present application.
[0126] Figure 3 A schematic diagram of generating an expression wallpaper provided in an embodiment of the present application is shown.
[0127] like Figure 3 As shown in (a) of FIG. 1 , picture #1 is a pure color picture of color #1, which is red. The electronic device can recognize that the color of picture #1 is color #1, and then the electronic device can determine the emoticon added to picture #1 based on color #1, and add the determined emoticon to picture #1 to generate picture #2, that is, Figure 3 As shown in (b) in the figure, when picture #2 is set as wallpaper, picture #2 can also be called expression wallpaper.
[0128] Color acts on the human visual organ, and after being transmitted to the brain through the visual nerve, it is connected through thinking, past memory and experience, thus forming a series of psychological reactions. For example, when users see warm colors such as red, red-orange, orange, yellow-orange, yellow, and brown, they will associate them with the sun, flames, hot blood, and other objects, and produce feelings of warmth, enthusiasm, boldness, and danger. When seeing cold colors such as green, blue, and purple, they will associate them with the sky, ice and snow, and the ocean, and produce feelings of coldness, openness, rationality, and calmness.
[0129] Similarly, emoticons can also act on people's visual organs. After being transmitted to the brain through the optic nerve, they are connected through thinking, past memories and experiences, thus forming a series of psychological reactions. For example, when users see emoticons such as smiley faces, hearts, and sun, they can feel warm and enthusiastic, and when they see emoticons such as crying faces and frowning faces, they can feel frustrated and sad.
[0130] Based on the above analysis, both colors and emoticons will cause users to have a series of psychological reactions, so the emoticons that match the colors can be determined based on the colors of the picture. The colors in the picture correspond to a series of color parameters, and the electronic device can analyze the color of the picture to obtain color parameters such as hue, saturation, brightness, contrast, etc. The electronic device can determine the emoticon based on the above parameters.
[0131] In the embodiments of the present application, there is no specific limitation on the method by which an electronic device determines an emoticon based on color, and several possible implementation methods are described below as examples.
[0132] In a possible implementation, the electronic device is pre-installed with an emoticon library, and the emoticons in the emoticon library have a corresponding relationship with colors. Therefore, after determining the color of the picture, the electronic device can determine the emoticon corresponding to the color from the emoticon library.
[0133] In a possible implementation, the electronic device uses color as an input parameter and inputs it into a pre-trained model, and the trained model can output an emoticon corresponding to the color. The trained model can be pre-set in the electronic device or in a server.
[0134] In one possible implementation, the electronic device converts colors into prompts and then generates emoticons based on artificial intelligence generated content (AIGC).
[0135] It is understandable that the electronic device can determine the emoticon based on the color, so the emoticon determined by the electronic device may be different for pictures of different colors.
[0136] Figure 4 A schematic diagram of generating an expression wallpaper provided in an embodiment of the present application is shown.
[0137] like Figure 4 As shown in (a) of FIG. 1 , picture #1 is a pure color picture of color #2, which is blue. The electronic device can recognize that the color of picture #1 is color #2, and then the electronic device can determine the emoticon added to picture #1 based on color #2, and add the determined emoticon to picture #1 to generate picture #2, that is, Figure 4 As shown in (b), when the picture #2 is set as a wallpaper, the picture #2 can also be called an expression wallpaper.
[0138] It should be noted that Figure 3 and Figure 4 Only a solid color picture is taken as an example, but the embodiments of the present application are not limited to this. When the picture includes multiple colors, the electronic device can also determine one or more emoticons based on the multiple colors, and then add the one or more emoticons to the picture to generate an emoticon wallpaper.
[0139] For example, the color of area #1 of picture #1 is color #1, and the color of area #2 is color #2. The electronic device can determine N emoticons based on color #1 and M emoticons based on color #2, where N and M are ≥ 1 and are integers. The electronic device can add the N emoticons to area #1 and the M emoticons to area #2.
[0140] For another example, if the color of region #1 of picture #1 is color #1, the color of region #2 is color #2, and the area of region #2 is larger than the area of region #1, the electronic device can determine M emoticons based on color #2, and then add the M emoticons to picture #1. In this case, the M emoticons can be added to region #2 of picture #1, or can also be added to region #1 and region #2 of picture #1.
[0141] exist Figure 3 and Figure 4 In the example shown, when the electronic device adds a determined emoticon to the original image, there are several implementation methods for placing the emoticon.
[0142] One possible implementation method is that the electronic device randomly places certain emojis.
[0143] A possible implementation method: each color may correspond to one or more corresponding templates, and the electronic device determines the color of the picture and may add emoticons to the picture according to the corresponding one or more templates.
[0144] A possible implementation method: When multiple different emojis are determined, the multiple different emojis can correspond to different templates. After the electronic device determines the multiple different emojis, it can determine the corresponding templates according to the combination of the multiple different emojis, and then add the multiple different emojis to the picture according to the corresponding templates.
[0145] It is understandable that the templates corresponding to the emoji combinations composed of different emojis may be different. For example, emoji combination #1 composed of emoji #1, emoji #2 and emoji #3 may correspond to template #1, and emoji combination #2 composed of emoji #1, emoji #3, emoji #4 and emoji #5 may correspond to template #2.
[0146] exist Figure 3 and Figure 4 In the example shown, the electronic device can determine the emoticon based on the color. In other cases, the picture selected by the user may include concrete content, such as some scenes (such as grassland, sky, lake, sea, snow) and people. Therefore, in other embodiments of the present application, the electronic device can also determine the corresponding expression based on the content indicated by the picture and the people in the picture.
[0147] Figure 5 A schematic diagram of generating an expression wallpaper provided in an embodiment of the present application is shown.
[0148] like Figure 5As shown in (a) of FIG. 1 , picture #1 is a picture of a grassland. The electronic device can use image recognition technology to identify the scene in picture #1. The electronic device determines that the scene in picture #1 is a grassland, determines an emoticon of a lamb related to the grassland, and adds the emoticon of the lamb to picture #1 to generate picture #2, that is, Figure 5 As shown in (b), when the picture #2 is set as a wallpaper, the picture #2 can also be called an expression wallpaper.
[0149] It should be noted that after the electronic device determines the emoticon corresponding to the scene according to the scene in picture #1, the position corresponding to the emoticon may be related to the emoticon and the scene.
[0150] For example, Figure 5 For example, the electronic device determines an emoji of a lamb for grassland according to the scene in picture #1, and the electronic device can place the emoji of the lamb on the grassland.
[0151] For example, Figure 5 For example, the scene of picture #1 is grassland, and the grassland scene includes the sky. Therefore, the electronic device can also determine the emoticon of an eagle ( Figure 5 ), and the eagle emoticon can be placed in the sky.
[0152] It should also be noted that the embodiments of the present application take the scene in the picture as a grassland as an example, but the embodiments of the present application do not specifically limit the scene in the picture. For example, in other embodiments of the present application, the scene in the picture can also be the sea, lake, forest, etc. Taking the scene as the sea as an example, the electronic device can determine the emoticon of a seagull based on the scene being the sea, and add the emoticon of the seagull on the surface of the sea.
[0153] In the embodiments of the present application, there is no specific limitation on the method by which the electronic device determines emoticons according to the scene, and several possible implementation methods are introduced as examples below.
[0154] In a possible implementation, the electronic device is pre-installed with an emoticon library, and the emoticons in the emoticon library have a corresponding relationship with scenes. Therefore, after determining the scene indicated by the picture, the electronic device can determine the emoticon corresponding to the scene from the emoticon library.
[0155] In a possible implementation, the electronic device uses the scene as an input parameter and inputs it into a pre-trained model, and the trained model can output an emoticon corresponding to the scene. The trained model can be pre-set in the electronic device or in a server.
[0156] One possible implementation method is that the electronic device converts the scene into a prompt and then generates emoticons based on AIGC.
[0157] In an embodiment of the present application, the electronic device can determine the corresponding emoticon based on the scene information of the picture, and then add the determined emoticon to the picture to generate an emoticon wallpaper, without the need for the user to manually select it, thus saving the user's operation steps. The determined emoticon is consistent with the scene in the picture, which can enhance the sophistication of the wallpaper and help improve the user experience.
[0158] For the same scene, different colors will bring different psychological reactions to the user. For example, taking the same grassland as an example, the grassland in the daytime and the grassland at night may give the user different feelings. It is not difficult to understand that the color parameters of a picture of a grassland in the daytime and a picture of a grassland at night are very different. Therefore, in some embodiments of the present application, the electronic device can recognize the scene and the color parameters in the picture, so as to determine the emoticon according to the scene and the color parameters.
[0159] For example, assuming that the color parameter corresponding to the grassland during the day is color parameter #1, and the color parameter corresponding to the grassland at night is color parameter #2, the electronic device recognizes that the scene in the picture is grassland and can also recognize the color parameter in the picture. When the color parameter is determined to be color parameter #1, a lamb emoticon is generated, and when the color parameter is determined to be color parameter #2, a firefly emoticon is generated.
[0160] It should be understood that the method for an electronic device to determine emoticons based on scene information and color parameters can be found above, and for the sake of brevity, it will not be repeated here.
[0161] In an embodiment of the present application, the electronic device can determine the corresponding emoticon based on the scene information and color parameters of the picture, and then add the determined emoticon to the picture to generate an emoticon wallpaper without the need for manual selection by the user. The determined emoticon is consistent with the color and scene of the picture, which can enhance the sophistication of the wallpaper and help improve the user experience.
[0162] Combination of the above Figure 3-Figure 5 It is introduced that the electronic device can determine the expression according to the scene information and / or the color parameter. It will be introduced below that the electronic device can also determine the expression corresponding to the object according to the person in the picture.
[0163] Figure 6 A schematic diagram of generating an expression wallpaper provided in an embodiment of the present application is shown.
[0164] Figure 6 The picture #1 shown includes person #1. The electronic device can use image recognition technology to identify that the picture #1 includes person #1. In the case that the picture #1 includes person #1, the electronic device can include the following possible implementations when determining the emoticon.
[0165] In one possible implementation, facial expressions reflect a person's emotions, and the electronic device can recognize the facial expression of person #1 and determine an emoticon corresponding to the facial expression of person #1 based on the facial expression of person #1.
[0166] For example, Figure 6 As shown in (a) and (b), the electronic device determines that the emotion of person #1 is happy by recognizing the facial expression of person #1 in picture #1. The electronic device can then determine the emoticon corresponding to happiness (for example, the emoticon of a smiling face) and add the emoticon to picture #1 to generate picture #2, which can also be called an expression wallpaper.
[0167] In one possible implementation, the electronic device may recognize the facial expression of person #1 and the color parameters of picture #1, and determine an emoticon according to the facial expression of person #1 and the color parameters of picture #1.
[0168] For example, Figure 6 As shown in (c) and (d) in the figure, the electronic device determines that the emotion of person #1 is happy by recognizing the facial expression of person #1 in picture #1. The electronic device can also recognize the color parameters of picture #1, such as the color parameters of the clothes, hair, background and other areas of person #1. After the electronic device determines the expression of person #1 and the color parameters of picture #1, it can determine the expression according to the expression of person #1 and the color parameters of picture #1, and add the emoticon to picture #1 to generate picture #2, which can also be called an expression wallpaper.
[0169] It is not difficult to understand that in this possible implementation, the emoticon determined by the electronic device can be associated with the color parameters of picture #1.
[0170] For example, assuming that the hair color of person #1 in picture #1 is red, the emoticon generated by the electronic device can have red as the main color.
[0171] For another example, assuming that the clothes of person #1 in picture #1 are orange, the emoticon generated by the electronic device can be mainly orange.
[0172] After the electronic device determines the emoticon, it can add the emoticon to picture #1 to generate an emoticon wallpaper. When adding the emoticon to picture #1, the electronic device can randomly add the emoticon to picture #1, or first recognize the posture of person #1 and then determine the position of the emoticon according to the posture of person #1.
[0173] For example, Figure 6As shown in (e), after the electronic device recognizes the posture of person #1, it can place the determined smiling face emoticon at the head position of person #1.
[0174] For example, Figure 6 As shown in (f), after the electronic device recognizes the posture of person #1, it can place the determined love emoticon at the position of the raised hand of person #1.
[0175] For example, Figure 6 As shown in (g), after the electronic device recognizes the posture of person #1, it can place the determined love emoticon at the position of the raised foot of person #1.
[0176] In some embodiments, in order to avoid emoticons blocking people in the picture, or to avoid blocking key parts of people in the picture, such as the face of the person, when the electronic device places emoticons, the emoticons and the objects in the picture may not belong to the same layer, and the layer to which the objects in the picture belong may be higher than the layer to which the emoticons belong, and in some cases, the person in the picture may partially block the expression.
[0177] In other embodiments, the electronic device may also block the person in the picture when placing the emoticons, but in these embodiments, the electronic device will still avoid the emoticons blocking the person's face when placing the emoticons. That is, when the picture includes a person, the electronic device will avoid placing the emoticons on the person's face when placing the emoticons, but can place them on other parts of the person, such as hands, legs, etc.
[0178] In an embodiment of the present application, the electronic device can determine the emoticons associated with the characters in the picture, and when placing the emoticons, it can be placed according to the posture of the objects in the picture, so that the expressions can better match the characters in the picture, which can improve the sophistication of the wallpaper and help enhance the user experience.
[0179] Electronic devices can be placed in many different ways when adding certain emojis to a picture. Figure 7-10 Here are some examples of how to place emoticons.
[0180] Figure 7 A schematic diagram of an emoticon placement style provided in an embodiment of the present application is shown.
[0181] like Figure 7 As shown, when the electronic device places the emoticons, the emoticons can be placed separately. When the electronic device places the emoticons separately, the positions of the emoticons can be determined according to the characters in the picture (for example, the postures of the characters in the picture).
[0182] When placing emoticons, in addition to placing emoticons individually, an electronic device may arrange multiple emoticons in a continuous arrangement, wherein the continuous arrangement may include continuous parallel arrangement and continuous staggered arrangement. Continuous parallel arrangement may be understood as a line connecting the center points of multiple emoticons placed continuously in parallel being a straight line, and continuous staggered arrangement may be understood as a line connecting the center points of multiple emoticons placed continuously in staggered rows being a broken line or a curve. When an electronic device arranges multiple emoticons in a continuous arrangement, the positions of the multiple emoticons may be determined according to the characters in the picture (for example, the postures of the characters in the picture). For an electronic device, arranging multiple emoticons in a continuous arrangement may include the following possible implementations.
[0183] Figure 8 A schematic diagram showing another emoticon placement style provided in an embodiment of the present application is shown.
[0184] A possible implementation is Figure 8 As shown in (a), the electronic device can place multiple emoticons in a row and side by side, and the multiple emoticons can be the same emoticons.
[0185] A possible implementation is Figure 8 As shown in (b), the electronic device can place multiple emoticons in a row and side by side, and the multiple emoticons can be different emoticons.
[0186] A possible implementation is Figure 8 As shown in (c), the electronic device can place multiple emoticons in a row and side by side, and the multiple emoticons include the same emoticons and different emoticons.
[0187] A possible implementation is Figure 8 As shown in (d), the electronic device can arrange multiple emoticons in a staggered manner, and the multiple emoticons can be the same emoticons.
[0188] It is understandable that when the electronic device places multiple emoticons in a staggered manner in succession, the multiple emoticons may also be different emoticons, or may include the same emoticons and different emoticons.
[0189] Because there are gaps between multiple emoticons when the electronic device arranges them consecutively, in some embodiments of the present application, the electronic device may also limit the number of emoticons that are arranged consecutively, for example, limiting the number of emoticons that are arranged consecutively to a maximum of 3.
[0190] Figure 8In the examples (a)-(d) in FIG. 1 , multiple emoticons are arranged vertically in a row. However, the embodiment of the present application does not limit the direction of the continuous arrangement. For example, the electronic device can also arrange multiple emoticons horizontally in a row, or can arrange multiple emoticons diagonally in a row.
[0191] When an electronic device arranges multiple emoticons in a row, it can also gradually increase or decrease the size along the direction of arrangement.
[0192] like Figure 8 As shown in (e) in the figure, the electronic device places multiple emoticons side by side vertically, and gradually reduces the size of the emoticons from bottom to top.
[0193] like Figure 8 As shown in (f) in the figure, the electronic device places multiple emoticons side by side vertically, and gradually increases the size of the emoticons from bottom to top.
[0194] Figure 8 In the example shown, the electronic device can arrange multiple emoticons in succession. In other embodiments of the present application, the electronic device can also superimpose multiple emoticons. Similar to arranging multiple emoticons in succession, the electronic device superimposing multiple emoticons can include parallel superimposition and staggered superimposition. Parallel superimposition can be understood as the center points of the multiple emoticons placed in parallel are located on a straight line, and staggered superimposition can be understood as the center points of the multiple emoticons placed in staggered superimposition are a broken line or a curve. When the electronic device superimposes multiple emoticons, the positions of the multiple emoticons can be determined according to the characters in the picture (for example, the postures of the characters in the picture). The following possible implementations can be included for the electronic device to superimpose multiple emoticons.
[0195] Fig. 9 A schematic diagram showing another emoticon placement style provided in an embodiment of the present application is shown.
[0196] A possible implementation is Fig. 9 As shown in (a), the electronic device can place multiple emoticons side by side and stack them up, and the multiple emoticons can be the same emoticons.
[0197] A possible implementation is Fig. 9 As shown in (b), the electronic device can place multiple emoticons side by side and overlap each other, and the multiple emoticons can be different emoticons.
[0198] A possible implementation is Fig. 9 As shown in (c), the electronic device can place multiple emoticons side by side and overlap each other, and the multiple emoticons include the same emoticons and different emoticons.
[0199] A possible implementation is Fig. 9 As shown in (d), the electronic device can place multiple emoticons in a staggered and stacked manner, and the multiple emoticons can be the same emoticons.
[0200] It is understandable that when the electronic device arranges multiple emoticons in a staggered and stacked manner, the multiple emoticons may also be different emoticons, or may include the same emoticons and different emoticons.
[0201] Fig. 9 In the examples (a)-(d) in FIG. 1 , multiple emoticons are stacked horizontally as an example, but the embodiment of the present application does not limit the direction of the stacking. For example, the electronic device can also stack multiple emoticons vertically or diagonally.
[0202] The electronic device may also be placed around the person in the picture. Similarly, when the electronic device places expressions around the person in the picture, the positions of the expressions may be determined according to the person in the picture.
[0203] Fig.10 A schematic diagram showing another emoticon placement style provided in an embodiment of the present application is shown.
[0204] like Fig.10 As shown in (a) in FIG. 1 , picture #1 includes a person, and the electronic device can place emoticons around the person. Fig.10 It can be seen that when the electronic device places emoticons around the character, the emoticons can be placed individually, multiple emoticons can be arranged in a row, or multiple emoticons can be placed in superposition.
[0205] In some embodiments, the electronic device may determine whether to place emoticons around objects in the picture based on the area ratio of the objects in the picture.
[0206] In some embodiments, when the electronic device determines that the area ratio of the person in the picture is less than or equal to the threshold, the emoticons can be placed around the person in the picture. In other words, when the person in the picture is small, that is, the blank area in the picture is large, the electronic device can take Figure 7-Figure 9 , and place the emojis around the objects in the picture according to their corresponding positions, as shown in Fig.10 As shown in (a) in .
[0207] In some embodiments, when the electronic device determines that the area ratio of the person in the picture is greater than a threshold, the emoticons may not be placed around the person in the picture. In other words, when the person in the picture has a larger area, that is, the blank area in the picture is smaller, the electronic device may take Figure 7-Figure 9 , and place the emojis according to their corresponding positions, but not around the people in the picture, such as Fig.10 As shown in (b) in the figure, the electronic device can place emoticons individually, or arrange multiple emoticons in a row, or place multiple emoticons in a superimposed manner, but Fig.10 The (b) emoticons in the figure do not surround the person.
[0208] The above describes the method for generating an expression wallpaper provided by the embodiment of the present application in combination with the schematic diagram of generating an expression wallpaper and the schematic diagram of expression placement style. Figure 11-13 The schematic flowchart of the method for generating an expression wallpaper shown introduces the method for generating an expression wallpaper provided in an embodiment of the present application.
[0209] Fig.11 A schematic flow chart of a method for generating an expression wallpaper provided in an embodiment of the present application is shown. Fig.11 As shown, the method includes:
[0210] S1101, obtain the first picture.
[0211] In some embodiments, the first picture includes a first person. Figure 6 As shown, picture #1 includes person #1.
[0212] In the embodiment of the present application, the manner in which the electronic device obtains the first image is not limited, and several possible implementation methods are exemplarily introduced below.
[0213] Exemplarily, in response to an operation of a user taking a photo and setting the taken photo as wallpaper, the electronic device determines the photo taken by the user as the first photo.
[0214] Exemplarily, in response to an operation in which a user selects a picture in a gallery and sets the selected picture as a wallpaper, the electronic device determines the photo selected by the user as the first picture.
[0215] Exemplarily, in response to an operation in which a user uploads a picture and sets the uploaded picture as a wallpaper, the electronic device determines the picture uploaded by the user as the first picture.
[0216] Exemplarily, in response to an operation in which a user selects a picture from a third-party application such as a browser and sets the selected picture as a wallpaper, the electronic device determines the picture selected by the user as the first picture.
[0217] S1102, determining the facial expression of the first person.
[0218] The electronic device may recognize the facial expression of the first person through image recognition and other technologies, and the facial expression of the first person may reflect the emotion of the first person.
[0219] S1103, determining N emoticons according to the facial expression of the first person.
[0220] After the electronic device recognizes the facial expression of the first person, the emotion of the first person is determined, and thus N emoticons can be determined according to the facial expression of the first person, where N≥1 and is an integer.
[0221] In the embodiments of the present application, there is no specific limitation on the method by which an electronic device determines an emoticon based on a person's facial expression. The electronic device may determine an emoticon based on facial expression features, or may convert the facial expression into emotional information and then determine an emoticon based on the emotional information. Several possible implementation methods are described below as examples.
[0222] In one possible implementation, the electronic device is pre-installed with an emoticon library, in which the emoticons in the emoticon library correspond to the facial expression features or emotional information of the person. Therefore, after determining the facial expression features or emotional information of the person in the picture, the electronic device can determine the corresponding emoticon from the emoticon library.
[0223] In one possible implementation, the electronic device uses facial expression features or emotion information as input parameters and inputs them into a pre-trained model, and the trained model can output corresponding emoticons. The trained model can be pre-set in the electronic device or in a server.
[0224] One possible implementation method is that the electronic device converts facial expression features or emotional information into prompts and then generates emoticons based on AIGC.
[0225] S1104: Generate a first emoticon wallpaper according to the first picture and N emoticons.
[0226] After the electronic device determines the N emoticons, it can add the N emoticons to the first picture to generate a first emoticon wallpaper.
[0227] In some embodiments, when adding N emoticons to the first picture, the electronic device may randomly arrange the N emoticons.
[0228] In some embodiments, the electronic device can also recognize the posture of the first person, and then determine the positions of N emoticons based on the posture of the first person, and then when adding the N emoticons to the first picture, the N emoticons can be placed according to the positions of the N emoticons.
[0229] Specifically, the electronic device can recognize the posture of the first person, thereby determining the position information of the body parts of the first person's head, shoulders, and arms. The electronic device can determine that the body parts of the first person are the positions of the N expressions.
[0230] In some embodiments, the electronic device can also recognize the posture of the first person, and then determine the positions of the N emoticons based on the posture of the first person and the N emoticons, and then when adding the N emoticons to the first picture, the N emoticons can be placed according to the positions of the N emoticons.
[0231] Specifically, the electronic device can recognize the posture of the first person, thereby determining the position information of the body parts of the first person's head, shoulders, and arms. The electronic device can establish an association relationship between emoticons and the body parts of the first person according to a preset rule (for example, a smiley face expression is associated with the head, and a love expression is associated with the hand), thereby determining the positions of the N expressions.
[0232] In an embodiment of the present application, the electronic device can determine the expression associated with the person in the picture based on the person in the picture, and when placing the expression, it can be placed according to the posture of the person in the picture, so that the expression can better match the person in the picture, which can improve the refinement of the wallpaper and help improve the user experience.
[0233] In some embodiments, the electronic device may also determine a posture of the first person, and then the electronic device determines the positions of the N emoticons according to the posture of the first person and a blank area in the first picture.
[0234] Specifically, the electronic device can recognize the posture of the first person, thereby determining the position information of the body parts of the first person's head, shoulders, and arms. When the electronic device places the N emoticons at the above positions, it will also consider the blank areas near the above positions. When the blank areas are large, the electronic device can place more emoticons, and when the blank areas are small, the electronic device can place fewer or no emoticons.
[0235] In some embodiments, the electronic device may also determine a posture of the first person, and then the electronic device determines the positions of the N emoticons according to the posture of the first person, the N emoticons, and a blank area in the first picture.
[0236] Specifically, the electronic device can recognize the posture of the first person, thereby determining the position information of the body parts of the first person's head, shoulders, and arms. The electronic device can establish an association relationship between emoticons and the body parts of the first person according to preset rules (for example, a smiley face is associated with the head, and a love heart is associated with the hands). When placing the emoticons corresponding to each part, the electronic device will also consider the blank areas near the above positions. When the blank area is large, the electronic device can place more emoticons, and when the blank area is small, the electronic device can place fewer or no emoticons.
[0237] In some embodiments, the method further comprises:
[0238] Determine color parameters of the first image, where the color parameters include but are not limited to: hue, saturation, contrast, and brightness.
[0239] S1103, determining N emoticons according to the facial expression of the first person, including:
[0240] N emoticons are determined according to the facial expression of the first person and the color parameters of the first picture.
[0241] After the electronic device determines the facial expression of the first person and the color parameters of the first picture, it can determine N emoticons according to the facial expression of the first person and the color parameters of the first picture.
[0242] In some embodiments, the color parameters of the N emoticons determined by the electronic device are associated with the color parameters of the first picture.
[0243] For example, if the overall hue of the first image is red, the hues of the N emoticons determined by the electronic device may also be red, or the hues may be mainly red.
[0244] In some embodiments, the facial expression of the first person and the color parameters of the first picture may give different psychological feelings to the user. For example, the facial expression of the first person is a smile, which can give the user a warm feeling, and the color tone of the first picture is mainly blue and other cold colors, which can give the user a cold feeling. In these embodiments, the color parameters of the first picture correspond to the first priority, the facial expression of the first person corresponds to the second priority, and the second priority is higher than the first priority. In other words, when the psychological feelings brought to the user by the facial expression of the first person and the color parameters of the first picture conflict, the facial expression of the first person can be given priority, so as to determine N emoticons according to the facial expression of the first person.
[0245] In other embodiments, although the facial expression of the first person and the color parameters of the first picture may give different psychological feelings to the user, and the color parameters of the first picture correspond to the first priority, the facial expression of the first person corresponds to the second priority, and the second priority is higher than the first priority. For example, the facial expression of the first person is a smile, which can give the user a warm feeling, and the color tone of the first picture is mainly cold colors such as blue, which can give the user a cold feeling. However, when the electronic device determines the emoticon, it will still use the color parameters of the first picture as an influencing factor for determining the emoticon.
[0246] For example, the facial expression of the first person is smiling. If the tone of the first picture is mainly yellow, the smiling face determined by the electronic device can be yellow as the main tone. If the tone of the first picture is mainly blue, the smiling face determined by the electronic device can choose a neutral color as the main tone, such as light green.
[0247] In some embodiments, the N emoticons may be arranged around the first character.
[0248] In some embodiments, the method further comprises:
[0249] Determine the area ratio of the first person in the first picture;
[0250] Determine that the area ratio is less than or equal to a threshold, and place the N emoticons around the first person.
[0251] When the first person occupies a smaller proportion in the image, the electronic device may place the N emoticons around the first person to better highlight the first person.
[0252] It should be noted that when the electronic device places the N emoticons around the first person, the positions of the N emoticons may be random, or may be determined based on the posture of the first person, or may be determined based on the posture of the first person and the N emoticons.
[0253] In some embodiments, the N expressions correspond to one or more expression placement styles, and the one or more expression placement styles include but are not limited to: single placement, continuous arrangement, and superimposed placement.
[0254] In some embodiments, the method further comprises:
[0255] The placement styles of M emoticons among the N emoticons are determined according to the area ratio of the first person in the first picture and / or the posture of the first person, where M≥2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superposition.
[0256] For example, when the area of the first person in the first picture is relatively small, M expressions of the N expressions may be arranged in a continuous manner and / or superimposed.
[0257] For another example, the posture of the first character may indicate the range of motion of the first character. When the range of motion of the first character is large, M expressions of the N expressions may be arranged continuously and / or superimposed.
[0258] In some embodiments, the arrangement style of P expressions among the M expressions is continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P expressions gradually increase or decrease along the first direction, and P≥2 and is an integer.
[0259] For example, taking N=10, M=5, and P=5 as an example, the electronic device determines 10 emoticons, 5 of which are arranged consecutively, and the arrangement direction of the 5 emoticons is a first direction, and the areas of the 5 emoticons gradually increase or decrease along the first direction.
[0260] For another example, taking N=10, M=8, and P=5 as an example, the electronic device determines 10 emoticons, of which 5 emoticons are arranged consecutively, 3 emoticons are arranged superimposed, and the arrangement direction of the 5 emoticons arranged consecutively is a first direction, and the areas of the 5 emoticons gradually increase or decrease along the first direction.
[0261] Fig.12 A schematic flow chart of a method for generating an expression wallpaper provided in an embodiment of the present application is shown. Fig.12 As shown, the method includes:
[0262] S1201, obtain the first picture.
[0263] Specifically, the first picture includes the first person.
[0264] S1202: Determine the posture of the first person.
[0265] It should be understood that for the description of step S1201 and step S1202, please refer to the above text, and for the sake of brevity, they will not be repeated here.
[0266] S1203: Determine N emoticons according to the first picture.
[0267] Specifically, the electronic device may determine N emoticons according to the content of the first picture. For example, taking the color parameter as hue, when it is determined that the main hue of the first picture is red, emoticon #1 and emoticon #2 associated with red may be determined, and when it is determined that the main hue of the first picture is blue, emoticon #3 and emoticon #4 associated with blue may be determined.
[0268] S1204: Determine positions of N emoticons according to the posture of the first person.
[0269] S1205: Generate a first emoticon wallpaper according to the first picture, N emoticons, and positions of the N emoticons.
[0270] It should be understood that the description of step S1204 and step S1205 can be found above, which is for simplicity and will not be repeated here.
[0271] In an embodiment of the present application, the electronic device can determine the emoticon based on the content of the picture, and determine the position of the emoticon based on the posture of the person in the picture, so that the emoticon can be better matched with the person in the picture, which can improve the sophistication of the wallpaper and help enhance the user experience.
[0272] In some embodiments, S1203, determining the positions of N emoticons according to the posture of the first character includes:
[0273] Positions of the N emoticons are determined according to the posture of the first person and the N emoticons.
[0274] In some embodiments, the N emoticons are placed around the first character.
[0275] In some embodiments, the method further comprises:
[0276] Determine the area ratio of the first person in the first picture;
[0277] Determine that the area ratio is less than or equal to a threshold, and place the N emoticons around the first person.
[0278] In some embodiments, the method further comprises:
[0279] The placement styles of M emoticons among the N emoticons are determined according to the area ratio of the first person in the first picture and / or the posture of the first person, where M≥2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superposition.
[0280] For example, when the area of the first person in the first picture is relatively small, M expressions of the N expressions may be arranged in a continuous manner and / or superimposed.
[0281] For another example, the posture of the first character may indicate the range of motion of the first character. When the range of motion of the first character is large, M expressions of the N expressions may be arranged continuously and / or superimposed.
[0282] In some embodiments, the arrangement style of P expressions among the M expressions is continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P expressions gradually increase or decrease along the first direction, and P≥2 and is an integer.
[0283] Fig.13 A schematic flow chart of a method for generating an expression wallpaper provided in an embodiment of the present application is shown. Fig.13 As shown, the method includes:
[0284] S1301, obtain the first picture.
[0285] Specifically, the first picture corresponds to the first scene.
[0286] For example, the first scene may be a grassland, a sea, a lake, etc.
[0287] S1302: Determine N emoticons according to the first scenario.
[0288] The electronic device may determine N emoticons associated with the first scene according to the first scene.
[0289] For example, when the first scene is a grassland, the N emoticons may include an emoticon of a lamb and an emoticon of a calf.
[0290] For another example, when the first scene is the sea, the N emoticons may include an emoticon of a seagull.
[0291] S1303: Generate a first emoticon wallpaper according to the first picture and N emoticons.
[0292] Specifically, when adding the N emoticons to the first picture, the electronic device can determine the positions of the N emoticons according to the first scene, and then add the N emoticons to the first picture according to the positions of the N emoticons to generate a first emoticon wallpaper.
[0293] In an embodiment of the present application, the electronic device can determine emoticons based on the scene in the picture, and determine the position of the emoticons based on the scene, so that the emoticons can better match the scene in the picture, which can improve the sophistication of the wallpaper and help enhance the user experience.
[0294] In some embodiments, the method further comprises:
[0295] Color parameters of the first picture are determined.
[0296] S1302, determining N emoticons according to the first scenario, including:
[0297] N emoticons are determined according to the first scene and the color parameters of the first picture.
[0298] For example, assuming that the color parameter corresponding to the grassland during the day is color parameter #1, and the color parameter corresponding to the grassland at night is color parameter #2, the electronic device recognizes that the scene in the picture is grassland and can also recognize the color parameter in the picture. When the color parameter is determined to be color parameter #1, a lamb emoticon is generated, and when the color parameter is determined to be color parameter #2, a firefly emoticon is generated.
[0299] In some embodiments, the color parameters of the N emoticons determined by the electronic device are associated with the color parameters of the first picture.
[0300] In some embodiments, the N expressions correspond to one or more expression placement styles, and the one or more expression placement styles include but are not limited to: single placement, continuous arrangement, and superimposed placement.
[0301] In some embodiments, the arrangement style of P expressions among N expressions is continuous arrangement, the direction of continuous arrangement is a first direction, the areas of the P expressions gradually increase or decrease along the first direction, and P≥2 is an integer.
[0302] The above mainly introduces a method for generating emoticon wallpaper provided by an embodiment of the present application from the perspective of an electronic device. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0303] The embodiment of the present application can divide the processor in the electronic device into functional modules (or units) according to the above method example. For example, each functional module (or unit) can be divided corresponding to each function, or two or more functions can be integrated into one processing module (or unit). The above-mentioned integrated module (or unit) can be implemented in the form of hardware or in the form of software functional modules (or units). It should be noted that the division of modules (or units) in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0304] In the case where each functional module (or unit) is divided according to each function, Fig.14 FIG. 1 shows a schematic diagram of a composition of an electronic device 1400 provided in an embodiment of the present application. Fig.14As shown, the electronic device 1400 includes: an acquisition module 1410 and a processing module 1420 .
[0305] In some embodiments, the acquisition module 1410 is used to acquire a first picture, wherein the first picture includes a first person;
[0306] The processing module 1420 is used to: determine the facial expression of the first person;
[0307] Determine N emoticons according to the facial expression of the first person;
[0308] A first emoticon wallpaper is generated according to the first picture and N emoticons.
[0309] In some embodiments, the processing module 1420 is further configured to determine a color parameter of the first image;
[0310] The processing module 1420 is specifically configured to determine N emoticons according to the facial expression of the first person and the color parameters of the first image.
[0311] In some embodiments, the color parameter of the first image corresponds to a first priority, the facial expression of the first person corresponds to a second priority, and the second priority is higher than the first priority.
[0312] In some embodiments, the processing module 1420 is further used to determine the posture of the first person;
[0313] The processing module 1420 is specifically configured to: determine the positions of the N emoticons according to the posture of the first person, or determine the positions of the N emoticons according to the posture of the first person and the N emoticons;
[0314] A first emoticon wallpaper is generated according to the first picture, N emoticons, and positions of the N emoticons.
[0315] In some embodiments, the processing module 1420 is further used to: determine the area ratio of the first person in the first picture;
[0316] Make sure that the area ratio is less than or equal to the threshold, and place N expressions around the first character.
[0317] In some embodiments, the processing module 1420 is also used to determine the placement styles of M emoticons among N emoticons based on the area ratio of the first character in the first picture and / or the posture of the first character, where M ≥ 2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superimposed arrangement.
[0318] In some embodiments, the arrangement style of P expressions among the M expressions is continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P expressions gradually increase or decrease along the first direction, and P≥2 and is an integer.
[0319] In some embodiments, the P expressions are the same expression.
[0320] In some embodiments, the acquisition module 1410 is used to acquire a first picture, wherein the first picture includes a first person;
[0321] The processing module 1420 is used to: determine the posture of the first person;
[0322] Determine N emoticons according to the first picture;
[0323] Determine positions of N emoticons according to the posture of the first person;
[0324] A first emoticon wallpaper is generated according to the first picture, N emoticons, and positions of the N emoticons.
[0325] In some embodiments, the acquisition module 1410 is used to acquire a first picture, where the first picture corresponds to a first scene;
[0326] The processing module 1420 is used to: determine N emoticons according to the first scene;
[0327] A first emoticon wallpaper is generated according to the first picture and N emoticons.
[0328] In some embodiments, the processing module 1420 is further configured to determine a color parameter of the first image;
[0329] The processing module 1420 is specifically configured to determine the N emoticons according to the color parameters of the first scene and the first picture.
[0330] In some embodiments, the placement positions of the N emoticons are associated with the first scene.
[0331] The embodiment of the present application provides a computer program product, when the computer program product is run on an electronic device, the electronic device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
[0332] The embodiment of the present application provides a readable storage medium, the readable storage medium contains instructions, when the instructions are executed in an electronic device, the electronic device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar, and will not be repeated here.
[0333] The embodiment of the present application provides a chip, the chip is used to execute instructions, when the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar, and will not be repeated here.
[0334] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0335] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0336] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0337] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0338] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0339] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0340] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A method for generating an expression wallpaper, characterized in that: The method comprises: Acquire a first picture, wherein the first picture includes a first person; determining a facial expression of the first person; Determine N emoticons according to the facial expression of the first person, where N is ≥ 1 and is an integer; A first emoticon wallpaper is generated according to the first picture and the N emoticons.
2. The method according to claim 1, characterized in that The method further comprises: Determine color parameters of the first picture, where the color parameters include one or more of the following: hue, saturation, contrast, and brightness; The determining N emoticons according to the facial expression of the first person includes: The N emoticons are determined according to the facial expression of the first person and the color parameters of the first picture.
3. The method according to claim 2, characterized in that The color parameter of the first picture corresponds to a first priority, the facial expression of the first person corresponds to a second priority, and the second priority is higher than the first priority.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: determining a posture of the first person; The step of generating a first emoticon wallpaper according to the first picture and the N emoticons includes: Determining positions of the N emoticons according to the posture of the first character; A first emoticon wallpaper is generated according to the first picture, the N emoticons, and the positions of the N emoticons.
5. The method according to claim 4, characterized in that The determining the positions of the N emoticons according to the posture of the first character includes: The positions of the N emoticons are determined according to the posture of the first character and the N emoticons.
6. The method according to any one of claims 1 to 5, characterized in that N≥2, place the N emoticons around the first character.
7. The method according to claim 6, characterized in that The method further comprises: Determine the area ratio of the first person in the first picture; Determine that the area ratio is less than or equal to a threshold, and place the N emoticons around the first character.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Determine the placement styles of M emoticons among the N emoticons based on the area ratio of the first character in the first picture and / or the posture of the first character, where M≥2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superposition.
9. The method according to claim 8, characterized in that The arrangement style of P emoticons among the M emoticons is the continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P emoticons gradually increase or decrease along the first direction, and P≥2 and is an integer.
10. The method according to claim 9, characterized in that The P emojis are the same emoji.
11. A method for generating an expression wallpaper, characterized in that: The method comprises: Acquire a first picture, wherein the first picture includes a first person; determining a posture of the first person; Determine N emoticons according to the first picture, where N ≥ 1 and is an integer; Determining positions of the N emoticons according to the posture of the first character; A first emoticon wallpaper is generated according to the first picture, the N emoticons, and the positions of the N emoticons.
12. The method according to claim 11, characterized in that The determining the positions of the N emoticons according to the posture of the first character includes: The positions of the N emoticons are determined according to the posture of the first character and the N emoticons.
13. The method according to claim 11 or 12, characterized in that: N≥2, place the N emoticons around the first character.
14. The method according to claim 13, characterized in that The method further comprises: Determine the area ratio of the first person in the first picture; Determine that the area ratio is less than or equal to a threshold, and place the N emoticons around the first character.
15. The method according to any one of claims 11 to 14, characterized in that The method further comprises: Determine the placement styles of M emoticons among the N emoticons based on the area ratio of the first character in the first picture and / or the posture of the first character, where M≥2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superposition.
16. The method according to claim 15, characterized in that The arrangement style of P emoticons among the M emoticons is the continuous arrangement, the direction of the continuous arrangement is a first direction, the areas of the P emoticons gradually increase or decrease along the first direction, and P≥2 and is an integer.
17. The method according to claim 16, characterized in that The P emojis are the same emoji.
18. An electronic device, characterized in that: The method comprises one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, and when the instructions are executed by the one or more processors, the method according to any one of claims 1 to 17 is executed.
19. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method according to any one of claims 1 to 17 is executed.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the method according to any one of claims 1 to 17 is executed.