Method for generating emoji wallpaper, and electronic device
By automatically identifying the facial expressions of the characters in the picture and matching related emoticons to generate expression wallpapers, the problems of cumbersome and poor experience in the existing technology are solved, and the generation of expression wallpapers with higher quality and better experience is achieved.
Patent Information
- Application Number
- PCT/CN2024/117399
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-26
- Filing Date
- 2024-09-06
- Publication Date
- 2025-04-03
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 simplifies user operations, improves the exquisiteness and user experience of emoticon wallpapers, and makes emoticons better match the pictures.
Smart Images

Figure CN2024117399_03042025_PF_FP_ABST
Abstract
Description
Method for generating expression wallpaper and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 26, 2023, with application number 202311268146.X and application name “A method for generating emoticon wallpaper and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] 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
[0003] Emojis are an artistic expression of everyday life, often referred to as a third language, beyond speech and text. Creative, carefully crafted emojis for chat scenarios not only add to the user's enjoyment but also create unexpected expressive effects. Currently, users can use emojis not only in chat but also add them to wallpapers to enhance the visual experience. However, this method only allows users to manually select emojis from the emoji library, which is cumbersome and provides a poor user experience. Therefore, how to quickly generate high-quality emoji wallpapers has become a pressing issue.
[0004] Summary of the Invention
[0005] 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 enhanced.
[0006] 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 the 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.
[0007] 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 user having 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.
[0008] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: determining the color parameters of the first image, the color parameters including one or more of the following: hue, saturation, contrast, and brightness; and 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.
[0009] 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.
[0010] 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.
[0011] 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 factor and use color parameters as auxiliary information to determine emoticons.
[0012] In combination with the first aspect, in certain implementations of the first aspect, the method further 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.
[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 sophistication 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 further 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.
[0015] 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 sophistication of the wallpaper and help enhance the user experience.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the method further 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.
[0017] 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.
[0018] In combination with the first aspect, in certain implementations of the first aspect, the method further 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.
[0019] 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, 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.
[0020] 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.
[0021] 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.
[0022] In combination with the first aspect, in certain implementations of the first aspect, the method further 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.
[0023] 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.
[0024] In conjunction with the first aspect, in certain implementations of the first aspect, the method includes:
[0025] The placement styles of M emoticons among the N emoticons are determined based on the area ratio of the first person in the first picture and / or the posture of the first person, where M is ≥ 2 and is an integer. The placement styles of the M emoticons include: at least one of continuous arrangement and overlapping arrangement.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the placement style of P emoticons among the M emoticons is the continuous arrangement, the direction of the continuous arrangement is the first direction, the area of the P emoticons gradually increases or decreases along the first direction, and P ≥ 2 and is an integer.
[0027] In combination with the first aspect, in certain implementations of the first aspect, the P expressions are the same emoticon.
[0028] In a second aspect, a method for generating an emoticon 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 emoticons based on the posture of the first person; and generating a first emoticon wallpaper based on the first picture, the N emoticons, and the positions of the N emoticons.
[0029] In an embodiment of the present application, the electronic device can determine N emoticons based on the picture, and determine the position of the emoticons based on the posture of the person in the picture, so that the emoticons can better match the posture of the person in the picture, which can improve the sophistication 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 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.
[0031] 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 sophistication of the wallpaper and help enhance the user experience.
[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 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 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.
[0034] 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.
[0035] 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, 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.
[0036] 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.
[0037] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: determining the 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.
[0038] 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.
[0039] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: determining the placement styles of M emoticons among the N emoticons based on the area ratio of the first person in the first picture and / or the posture of the first person, M ≥ 2 and is an integer, and the placement styles of the M emoticons include: at least one of continuous arrangement and superimposed arrangement.
[0040] In combination with the second aspect, in certain implementations of the second aspect, the placement style of P emoticons among the M emoticons is the continuous arrangement, the direction of the continuous arrangement is the first direction, the area of the P emoticons gradually increases or decreases along the first direction, and P ≥ 2 and is an integer.
[0041] In combination with the second aspect, in certain implementations of the second aspect, the P emoticons are the same emoticons.
[0042] In a third aspect, a method for generating an emoticon wallpaper is provided, the method comprising: obtaining a first picture, the first picture corresponding to a first scene, determining N emoticons based on the first scene, where N ≥ 1 and is an integer; and generating a first emoticon wallpaper based on the first picture and the N emoticons.
[0043] 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 a grassland, a sea, a lake, a sky, a snowfield, or the like.
[0044] 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.
[0045] In combination with the third aspect, in certain implementations of the third aspect, the method further includes determining the color parameters of the first picture; 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 picture.
[0046] 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.
[0047] In combination with the third aspect, in certain implementations of the third aspect, the placement positions of the N emoticons are associated with the first scene.
[0048] 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: individual placement, continuous arrangement, and superimposed placement.
[0049] 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 the first direction, the area of the P emoticons gradually increases or decreases along the first direction, and P ≥ 2 and is an integer.
[0050] In combination with the third aspect, in certain implementations of the third aspect, the P emoticons are the same emoticons.
[0051] 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 aspect or any possible implementation of the above aspect to be executed.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] The eighth aspect is an electronic device according to 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 through hardware, or corresponding software can be implemented through hardware.
[0056] 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
[0057] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0058] FIG2 is a schematic diagram of the software system architecture of the electronic device provided in an embodiment of the present application.
[0059] FIG3 is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0060] FIG4 is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0061] FIG5 is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0062] FIG6 is a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0063] FIG7 is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0064] FIG8 is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0065] FIG9 is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0066] FIG10 is a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0067] FIG11 is a schematic flowchart of a method for generating an expression wallpaper provided in an embodiment of the present application.
[0068] FIG12 is a schematic flowchart of a method for generating an expression wallpaper provided in an embodiment of the present application.
[0069] FIG13 is a schematic flowchart of a method for generating an expression wallpaper provided in an embodiment of the present application.
[0070] FIG14 is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0072] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of this application and the appended claims, the singular expressions "a", "an", "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 can exist; for example, A and / or B can mean: 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 previous and subsequent associated objects are in an "or" relationship.
[0073] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0074] 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, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (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. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer.
[0075] 1 shows a schematic structural diagram of an 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 194, and a subscriber identification module (SIM) card interface 195. 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.
[0076] It should be understood that the structures illustrated in the embodiments of the present application do 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0077] 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 processing unit (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). The different processing units may be independent devices or integrated into one or more processors.
[0078] 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.
[0079] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0080] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.
[0081] 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.
[0082] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0083] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.
[0084] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the 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.
[0085] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0086] 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 a network and other devices through wireless communication technologies. The wireless communication technologies 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).
[0087] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0088] Display screen 194 is used to display images, videos, and the like. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0089] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0090] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0091] 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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.
[0092] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0093] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0094] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0095] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0096] 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 can 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 can 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.
[0097] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0098] 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 provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0099] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0100] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0101] Microphone 170C, also known as "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 the microphone 170C to input the sound signal into the 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 source of sound, realize directional recording function, etc.
[0102] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. 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. A capacitive pressure sensor can be a device comprising at least two parallel plates with 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 intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch 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, the instruction to create a new alarm is executed.
[0103] Fingerprint sensor 180H is used to collect fingerprints. Electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, and so on. For example, when the phone detects a user's touch operation on the lock screen, the phone can collect the user's fingerprint information through fingerprint sensor 180H and match the collected fingerprint information with the fingerprint information pre-set in the phone. If the match is successful, the phone can enter the non-lock screen interface from the lock screen interface.
[0104] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. 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 applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0105] Figure 2 is a software structure diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer, from top to bottom. The application layer can include a series of application packages.
[0106] As shown in Figure 2, 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.
[0107] The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer may include some predefined functions.
[0108] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0109] The window manager manages windowed applications. It can determine the display size, determine whether a status bar is present, lock the screen, and take screenshots. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books.
[0110] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0111] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0112] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0113] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0114] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0115] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0116] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0117] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).
[0118] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0119] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0120] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0121] A 2D graphics engine is a drawing engine for 2D drawings.
[0122] In addition, the system library can 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.
[0123] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0124] The hardware layer may include various sensors, such as the various sensors introduced in FIG. 1 , the acceleration sensor, gyroscope sensor, touch sensor, etc. involved in the embodiments of the present application.
[0125] Emoticons are artistic expressions of daily life and are likened to a third language besides voice and text. Emoticons can be a string of characters (for example, using “(︶^︶)” to express dissatisfaction), or they can be some patterns, or they can be a combination of characters and patterns, etc., and the embodiments of the present application do not limit this. Creative emoticons carefully made for chat scenes can not only increase the user's fun in chatting, 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, and the operation is relatively cumbersome, and the user experience is not good. 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.
[0126] 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 exquisiteness of the wallpaper.
[0127] The following first introduces the method for generating an expression wallpaper provided by an embodiment of the present application with reference to the schematic diagrams of generating an expression wallpaper shown in Figures 3 to 6.
[0128] FIG3 shows a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0129] As shown in Figure 3 (a), Picture #1 is a solid color picture of color #1, which is red. The electronic device can recognize the color of Picture #1 as color #1, and then the electronic device can determine the emoticon added to Picture #1 based on color #1. The determined emoticon is added to Picture #1 to generate Picture #2, as shown in Figure 3 (b). When Picture #2 is set as wallpaper, Picture #2 can also be called emoticon wallpaper.
[0130] Color affects the human visual system, transmitting it to the brain through the optic nerve. After being connected through thinking, past memories, and experience, it can form a series of psychological reactions. For example, when users see warm colors such as red, red-orange, orange, yellow-orange, yellow, and brown, they associate them with images of the sun, fire, and blood, generating feelings of warmth, passion, boldness, and danger. When users see cool colors such as green, blue, and purple, they associate them with images of the sky, ice, snow, and the ocean, generating feelings of coldness, openness, rationality, and calmness.
[0131] Similarly, emojis can also affect the human visual system. After being transmitted to the brain through the optic nerve, they are connected through thinking, past memories, and experience, forming a series of psychological reactions. For example, users can feel warmth and enthusiasm when seeing emojis such as a smiley face, a heart, and a sun, while seeing emojis such as a crying face or a frown can cause feelings of frustration and sadness.
[0132] Based on the above analysis, both colors and emojis trigger a range of psychological reactions in users. Therefore, it's possible to identify corresponding emojis based on the colors of an image. The colors in an image correspond to a series of color parameters. Electronic devices can analyze the image's colors to determine color parameters such as hue, saturation, brightness, and contrast. Based on these parameters, electronic devices can determine emojis.
[0133] 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. Several possible implementation methods are described below as examples.
[0134] In one possible implementation, the electronic device is pre-installed with an emoticon library. The emoticons in the emoticon library correspond to colors. Therefore, after determining the color of the picture, the electronic device can determine the emoticon corresponding to the color from the emoticon library.
[0135] In one possible implementation, the electronic device uses color as an input parameter and inputs it into a pre-trained model. The trained model can then output an emoji corresponding to the color. The trained model can be pre-installed in the electronic device or in a server.
[0136] In one possible implementation, the electronic device converts colors into prompts and then generates emoticons based on artificial intelligence generated content (AIGC).
[0137] It is understandable that the electronic device can determine the emoticon based on color, so the emoticon determined by the electronic device may be different for pictures of different colors.
[0138] FIG4 shows a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0139] As shown in Figure 4 (a), picture #1 is a solid color picture of color #2, which is blue. The electronic device can recognize the color of picture #1 as color #2. Then, the electronic device can determine the emoticon to be added to picture #1 based on color #2, and add the determined emoticon to picture #1 to generate picture #2. As shown in Figure 4 (b), when picture #2 is set as wallpaper, picture #2 can also be called emoticon wallpaper.
[0140] It should be noted that Figures 3 and 4 only take solid color pictures as examples, 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.
[0141] For example, if the color of area #1 of image #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 integers ≥ 1. The electronic device can add the N emoticons to area #1 and the M emoticons to area #2.
[0142] For another example, if the color of area #1 of picture #1 is color #1, the color of area #2 is color #2, and the area of area #2 is larger than the area of area #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 area #2 of picture #1, or to both area #1 and area #2 of picture #1.
[0143] In the examples shown in FIG. 3 and FIG. 4 , when the electronic device adds a determined emoticon to the original image, there are several implementation methods for placing the emoticon.
[0144] One possible implementation method is that the electronic device randomly places certain emojis.
[0145] A possible implementation method is: each color may correspond to one or more corresponding templates. The electronic device determines the color of the picture and may add emoticons to the picture according to the corresponding one or more templates.
[0146] A possible implementation method: When multiple different emoticons are determined, the multiple different emoticons can correspond to different templates. After the electronic device determines the multiple different emoticons, it can determine the corresponding template based on the combination of the multiple different emoticons, and then add the multiple different emoticons to the picture according to the corresponding template.
[0147] It is understood that different emoji combinations may correspond to different templates. For example, emoji combination #1 consisting of emoji #1, emoji #2, and emoji #3 may correspond to template #1, while emoji combination #2 consisting of emoji #1, emoji #3, emoji #4, and emoji #5 may correspond to template #2.
[0148] In the examples shown in Figures 3 and 4, the electronic device can determine the emoticon based on 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.
[0149] FIG5 shows a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0150] As shown in Figure 5 (a), Picture #1 is a picture of a grassland scene. 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 grassland, determines an emoji of a lamb associated with grassland, and adds the lamb emoji to Picture #1 to generate Picture #2. As shown in Figure 5 (b), when Picture #2 is set as wallpaper, Picture #2 can also be called an emoji wallpaper.
[0151] 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.
[0152] For example, taking FIG5 as an example, the electronic device determines the lamb emoticon as grassland according to the scene of picture #1, and the electronic device can place the lamb emoticon on the grassland.
[0153] For another example, taking Figure 5 as an example, the scene of picture #1 is grassland, and the grassland scene includes the sky. Therefore, the electronic device can also determine the eagle emoticon (not shown in Figure 5) and place the eagle emoticon in the sky.
[0154] It should also be noted that while the embodiments of this application use a grassland as an example, this embodiment of the application does not specifically limit the scene in the image. For example, in other embodiments of this application, the scene in the image can also be an ocean, a lake, a forest, etc. Taking the ocean scene as an example, the electronic device can determine a seagull emoji based on the ocean scene and add the seagull emoji to the surface of the ocean.
[0155] In the embodiments of the present application, there is no specific limitation on the method by which the electronic device determines emoticons based on the scene. Several possible implementation methods are exemplarily introduced below.
[0156] In one possible implementation, the electronic device is pre-installed with an emoticon library. The emoticons in the emoticon library correspond to 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.
[0157] In one possible implementation, the electronic device uses the scene as an input parameter and inputs it into a pre-trained model. The trained model can then output an emoticon corresponding to the scene. The trained model can be pre-installed in the electronic device or in a server.
[0158] One possible implementation method is that the electronic device converts the scene into a prompt and then generates emoticons based on AIGC.
[0159] 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 user having to manually select it, 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.
[0160] Different colors can produce different psychological reactions in users for the same scene. For example, a grassland during the day and at night can produce different user experiences. It's easy to understand that a picture of a grassland during the day and a picture of a grassland at night have significantly different color parameters. Therefore, in some embodiments of the present application, the electronic device can identify both the scene and the color parameters in the image, thereby determining an emoticon based on the scene and color parameters.
[0161] For example, assuming that the color parameter corresponding to a grassland during the day is color parameter #1 and the color parameter corresponding to a grassland at night is color parameter #2, the electronic device recognizes that the scene in the image is grassland and can also recognize the color parameters in the image. If the color parameter is determined to be color parameter #1, a lamb emoji is generated. If the color parameter is determined to be color parameter #2, a firefly emoji is generated.
[0162] It should be understood that the method for an electronic device to determine an emoticon based on scene information and color parameters can be found above, and for the sake of brevity, it will not be repeated here.
[0163] 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.
[0164] The above description in conjunction with FIG. 3 to FIG. 5 introduces that the electronic device can determine an expression based on scene information and / or color parameters. The following description will introduce that the electronic device can also determine an expression corresponding to an object based on a person in a picture.
[0165] FIG6 shows a schematic diagram of generating an expression wallpaper provided in an embodiment of the present application.
[0166] The picture #1 shown in FIG6 includes a person #1. The electronic device can use image recognition technology to identify that the picture #1 includes the person #1. In the case where the picture #1 includes the person #1, the electronic device can include the following possible implementations when determining the emoticon.
[0167] In one possible implementation, facial expressions reflect a person's emotions. 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.
[0168] For example, as shown in (a) and (b) in Figure 6, 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 emoticon wallpaper.
[0169] 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 based on the facial expression of person #1 and the color parameters of picture #1.
[0170] For example, as shown in (c) and (d) of Figure 6, the electronic device determines that person #1 is happy by recognizing the facial expression of person #1 in picture #1. The electronic device may also recognize color parameters in picture #1, such as the color parameters of areas such as person #1's clothing, hair, and the background of picture #1. After determining person #1's expression and the color parameters of picture #1, the electronic device may determine an expression based on the expression and the color parameters of picture #1 and add an emoticon to picture #1 to generate picture #2, which may also be called an expression wallpaper.
[0171] 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.
[0172] For example, assuming that the hair color of person #1 in picture #1 is red, the emoticon generated by the electronic device can be based on red.
[0173] 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.
[0174] 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 it can first recognize the posture of person #1 and then determine the position of the emoticon based on the posture of person #1.
[0175] For example, as shown in (e) in FIG6 , after the electronic device recognizes the posture of person #1, it can place the determined smiling face emoticon at the position of the head of person #1.
[0176] For another example, as shown in (f) in FIG6 , after the electronic device recognizes the posture of person #1, it can place the determined heart emoticon at the position of the raised hand of person #1.
[0177] For another example, as shown in (g) in FIG6 , after the electronic device recognizes the posture of person #1, it can place the determined heart emoticon at the position of the raised foot of person #1.
[0178] 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 people in the picture may partially block the emoticons.
[0179] In other embodiments, the electronic device may also obstruct the person in the image when placing emoticons. However, in these embodiments, the electronic device will still avoid placing the emoticons on the person's face when placing the emoticons. In other words, when the image includes a person, the electronic device will avoid placing the emoticons on the person's face when placing the emoticons, but may place them on other parts of the person, such as the hands or legs.
[0180] 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.
[0181] When an electronic device adds a certain emoticon to a picture, there are many ways to place it. The following will exemplarily introduce several emoticon placement styles with reference to Figures 7 to 10.
[0182] FIG7 shows a schematic diagram of an emoticon placement style provided in an embodiment of the present application.
[0183] As shown in Figure 7, when placing emoticons, the electronic device can place the emoticons separately. When the electronic device places emoticons separately, the positions of the emoticons can be determined according to the characters in the picture (for example, the posture of the characters in the picture).
[0184] When an electronic device places emoticons, in addition to placing emoticons individually, it can arrange multiple emoticons in a continuous arrangement, wherein the continuous arrangement can include continuous parallel arrangement and continuous staggered arrangement. Continuous parallel arrangement can be understood as the line connecting the center points of multiple emoticons placed continuously in parallel is a straight line, and continuous staggered arrangement can be understood as the line connecting the center points of multiple emoticons placed continuously in staggered order is a broken line or a curve. When an electronic device arranges multiple emoticons in a continuous arrangement, 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). For an electronic device, arranging multiple emoticons in a continuous arrangement can include the following possible implementation methods.
[0185] FIG8 shows a schematic diagram of another emoticon placement style provided in an embodiment of the present application.
[0186] In one possible implementation, as shown in (a) of FIG8 , the electronic device may place multiple emoticons in a row and in parallel, and the multiple emoticons may be the same emoticons.
[0187] In one possible implementation, as shown in (b) of FIG8 , the electronic device may place multiple emoticons in a row and in parallel, and the multiple emoticons may be different emoticons.
[0188] In one possible implementation, as shown in (c) of FIG8 , the electronic device may place multiple emoticons in a row and in parallel, where the multiple emoticons include the same emoticon and different emoticons.
[0189] In one possible implementation, as shown in (d) of FIG8 , the electronic device may place multiple emoticons in a staggered manner, and the multiple emoticons may be the same emoticons.
[0190] It is understandable that when the electronic device places multiple emoticons in a staggered manner, the multiple emoticons may also be different emoticons, or include the same emoticons and different emoticons.
[0191] Since there are gaps between multiple emoticons when an electronic device arranges them consecutively, in some embodiments of the present application, the electronic device may further 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.
[0192] In the examples (a)-(d) in Figure 8, 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.
[0193] When the electronic device arranges multiple emoticons in a row, it can also gradually increase or decrease along the direction of arrangement.
[0194] As shown in (e) of FIG8 , the electronic device places multiple emoticons side by side vertically, and gradually reduces the size of the emoticons from bottom to top.
[0195] As shown in (f) of FIG8 , the electronic device places multiple emoticons side by side vertically, and gradually increases the size of the emoticons from bottom to top.
[0196] In the example shown in Figure 8, the electronic device can arrange multiple emoticons in a row. In other embodiments of the present application, the electronic device can also superimpose multiple emoticons. Similar to arranging multiple emoticons in a row, 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 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 implementation methods can be included for the electronic device to superimpose multiple emoticons.
[0197] FIG9 shows a schematic diagram of another emoticon placement style provided in an embodiment of the present application.
[0198] In one possible implementation, as shown in (a) of FIG9 , the electronic device may place multiple emoticons in parallel and stacked together, and the multiple emoticons may be the same emoticons.
[0199] In one possible implementation, as shown in (b) of FIG9 , the electronic device may place multiple emoticons in parallel and stacked together, and the multiple emoticons may be different emoticons.
[0200] In one possible implementation, as shown in (c) of FIG9 , the electronic device may place multiple emoticons in parallel and stacked together, where the multiple emoticons include the same emoticons and different emoticons.
[0201] In one possible implementation, as shown in (d) in FIG9 , the electronic device may stack and arrange multiple emoticons in a staggered manner, and the multiple emoticons may be the same emoticons.
[0202] It is understandable that when the electronic device places multiple emoticons in a staggered and stacked manner, the multiple emoticons may also be different emoticons, or include the same emoticons and different emoticons.
[0203] In the examples (a)-(d) in Figure 9, multiple emoticons are stacked horizontally as an example, but the embodiments of the present application do not limit the direction of the stacking. For example, the electronic device can also stack multiple emoticons vertically or diagonally.
[0204] 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 based on the person in the picture.
[0205] FIG10 shows a schematic diagram of another emoticon placement style provided in an embodiment of the present application.
[0206] As shown in Figure 10 (a), picture #1 includes a person, and the electronic device can place emoticons around the person. As shown in Figure 10, when placing emoticons around the person, the electronic device can place emoticons individually, arrange multiple emoticons in a row, or stack multiple emoticons.
[0207] In some embodiments, the electronic device may determine whether to place emoticons around objects in the image based on the area ratio of the objects in the image.
[0208] In some embodiments, when the electronic device determines that the area of a person in the image is less than or equal to a threshold, the emoticons may be placed around the person in the image. In other words, when the person in the image is relatively small, i.e., when the blank area in the image is relatively large, the electronic device may adopt the emoticon placement styles shown in Figures 7-9 and place the emoticons around the object in the image based on their corresponding positions, as shown in Figure 10 (a).
[0209] In some embodiments, when the electronic device determines that the area 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 is large, that is, the blank area in the picture is small, the electronic device can adopt the emoticon placement style shown in Figures 7 to 9, and place the emoticons according to their corresponding positions, but not around the person in the picture, that is, as shown in (b) in Figure 10, the electronic device can place the emoticons individually, or arrange multiple emoticons in a row, or stack multiple emoticons, but the emoticons in Figure 10 (b) do not surround the person.
[0210] The above introduces the method for generating expression wallpaper provided in the embodiment of the present application in combination with the schematic diagram of generating expression wallpaper and the schematic diagram of expression placement style. The following will introduce the method for generating expression wallpaper provided in the embodiment of the present application in combination with the schematic flow chart of the method for generating expression wallpaper shown in Figures 11-13.
[0211] FIG11 shows a schematic flow chart of a method for generating an expression wallpaper provided in an embodiment of the present application. As shown in FIG11 , the method includes:
[0212] S1101, obtain the first picture.
[0213] In some embodiments, the first picture includes a first person. For example, as shown in FIG6 , picture #1 includes person #1.
[0214] In the embodiment of the present application, there is no limitation on the manner in which the electronic device obtains the first image. Several possible implementation methods are exemplarily introduced below.
[0215] 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 picture.
[0216] 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.
[0217] 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.
[0218] 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.
[0219] S1102, determining the facial expression of the first person.
[0220] The electronic device may recognize the facial expression of the first person through techniques such as image recognition, and the facial expression of the first person may reflect the emotion of the first person.
[0221] S1103: Determine N emoticons according to the facial expression of the first person.
[0222] After the electronic device recognizes the facial expression of the first person, it determines the emotion of the first person, and thus can determine N emoticons based on the facial expression of the first person, where N is ≥ 1 and is an integer.
[0223] 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.
[0224] One possible implementation method is that the electronic device is pre-installed with an emoticon library. The emoticons in the emoticon library have a corresponding relationship with the facial expression characteristics or emotional information of the characters. Therefore, after determining the facial expression characteristics or emotional information of the characters in the picture, the electronic device can determine the corresponding emoticon from the emoticon library.
[0225] In one possible implementation, an electronic device uses facial expression features or emotional information as input parameters and feeds them into a pre-trained model, which then outputs the corresponding emoticon. The trained model can be pre-installed in the electronic device or in a server.
[0226] 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.
[0227] S1104: Generate a first emoticon wallpaper according to the first picture and N emoticons.
[0228] After determining the N emoticons, the electronic device may add the N emoticons to the first picture to generate a first emoticon wallpaper.
[0229] In some embodiments, when the electronic device adds N emoticons to the first picture, the electronic device may randomly arrange the N emoticons.
[0230] 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. Then, when adding the N emoticons to the first picture, the electronic device can place the N emoticons 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 head, shoulders, and arms of the first person's body parts. The electronic device can determine the body parts of the first person as the positions of the N expressions.
[0232] 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. Then, when adding the N emoticons to the first picture, the N emoticons can be placed according to the positions of the N emoticons.
[0233] Specifically, the electronic device can recognize the posture of the first person, thereby determining the position information of the first person's head, shoulders, and arms. The electronic device can establish an association relationship between emoticons and body parts of the first person according to a preset rule (for example, a smiley face is associated with the head, and a heart is associated with the hands), thereby determining the positions of N emoticons.
[0234] In an embodiment of the present application, the electronic device can determine the expression associated with 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 sophistication of the wallpaper and help enhance the user experience.
[0235] In some embodiments, the electronic device may further determine a posture of the first person, and then determine the positions of the N emoticons based on the posture of the first person 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 first person's head, shoulders, and arms. When the electronic device places the N emoticons at the aforementioned positions, it also considers the blank areas near the aforementioned positions. When the blank areas are large, the electronic device can place more emoticons. When the blank areas are small, the electronic device can place fewer or no emoticons.
[0237] In some embodiments, the electronic device may also determine a posture of the first person, and then 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.
[0238] Specifically, the electronic device can recognize the posture of the first person, thereby determining the position information of the first person's head, shoulders, and arms. The electronic device can establish an association relationship between emoticons and the first person's body parts according to preset rules (for example, a smiley face is associated with the head, and a heart is associated with the hands). When placing the emoticons corresponding to each body part, the electronic device also considers the blank areas near the aforementioned locations. When the blank areas are large, the electronic device can place more emoticons. When the blank areas are small, the electronic device can place fewer or no emoticons.
[0239] In some embodiments, the method further comprises:
[0240] Determine color parameters of the first image, where the color parameters include but are not limited to: hue, saturation, contrast, and brightness.
[0241] S1103, determining N emoticons based on the facial expression of the first person, including:
[0242] N emoticons are determined according to the facial expression of the first person and the color parameters of the first image.
[0243] 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.
[0244] 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.
[0245] For example, if the overall color tone of the first image is red, the color tones of the N emoticons determined by the electronic device may also be red, or the color tone may be mainly red.
[0246] In some embodiments, the facial expression of the first person and the color parameters of the first image 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 image is mainly cold colors such as blue, which can give the user a cold feeling. In these embodiments, the color parameters of the first image correspond to the first priority, and 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 given to the user by the facial expression of the first person and the color parameters of the first image conflict, the facial expression of the first person can be given priority, so that N emoticons are determined based on the facial expression of the first person.
[0247] In other embodiments, although the first person's facial expression and the color parameters of the first image may produce different psychological experiences in the user, and the color parameters of the first image may be assigned a first priority and the first person's facial expression may be assigned a second priority, with the second priority being higher than the first priority, for example, the first person's facial expression may be smiling, which may give the user a warm feeling, while the first image may be composed primarily of cool colors such as blue, which may give the user a cold feeling, the electronic device may still consider the color parameters of the first image as an influencing factor in determining the emoticon.
[0248] For example, if the facial expression of the first person is smiling, if the color tone of the first picture is mainly yellow, the smiling face determined by the electronic device can be yellow as the main color tone. If the color tone of the first picture is mainly blue, the smiling face determined by the electronic device can choose a neutral color as the main color tone, such as light green.
[0249] In some embodiments, the N emoticons may be arranged around the first character.
[0250] In some embodiments, the method further comprises:
[0251] Determine the area ratio of the first person in the first picture;
[0252] Determine that the area ratio is less than or equal to a threshold, and place the N emoticons around the first person.
[0253] When the first person occupies a smaller proportion in the image, the electronic device may arrange the N emoticons around the first person to better highlight the first person.
[0254] It should be noted that when the electronic device places the N emoticons around the first person, the positions of the N emoticons can be random, or determined according to the posture of the first person, or determined according to the posture of the first person and the N expressions.
[0255] 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.
[0256] In some embodiments, the method further comprises:
[0257] The placement styles of M emoticons among the N emoticons are determined based on the area ratio of the first person in the first picture and / or the posture of the first person, where M is ≥ 2 and is an integer. The placement styles of the M emoticons include: at least one of continuous arrangement and overlapping arrangement.
[0258] 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 consecutively and / or superimposed.
[0259] For another example, the posture of the first character may indicate the range of movement of the first character. When the range of movement of the first character is large, M expressions of the N expressions may be arranged continuously and / or superimposed.
[0260] In some embodiments, the arrangement 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 is an integer.
[0261] 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 placement direction of the 5 emoticons is a first direction, and the areas of the 5 emoticons gradually increase or decrease along the first direction.
[0262] For another example, taking N=10, M=8, and P=5 as an example, the electronic device determines 10 emoticons, 5 of which are arranged consecutively and 3 are superimposed, and the placement 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.
[0263] FIG12 shows a schematic flow chart of a method for generating an expression wallpaper provided in an embodiment of the present application. As shown in FIG12 , the method includes:
[0264] S1201, obtain the first picture.
[0265] Specifically, the first picture includes a first person.
[0266] S1202: Determine the posture of the first person.
[0267] 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.
[0268] S1203: Determine N emoticons according to the first picture.
[0269] Specifically, the electronic device may determine N emoticons based on the content of the first image. For example, taking hue as an example, when the primary hue of the first image is determined to be red, emoticons #1 and #2 associated with red may be determined. When the primary hue of the first image is determined to be blue, emoticons #3 and #4 associated with blue may be determined.
[0270] S1204: Determine positions of N emoticons according to the posture of the first person.
[0271] S1205 : Generate a first emoticon wallpaper according to the first picture, N emoticons, and positions of the N emoticons.
[0272] It should be understood that for the description of step S1204 and step S1205, please refer to the above text, which is omitted for brevity.
[0273] 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.
[0274] In some embodiments, S1203, determining the positions of N emoticons according to the posture of the first person includes:
[0275] Positions of the N emoticons are determined according to the posture of the first person and the N emoticons.
[0276] In some embodiments, the N emoticons are placed around the first character.
[0277] In some embodiments, the method further comprises:
[0278] Determine the area ratio of the first person in the first picture;
[0279] Determine that the area ratio is less than or equal to a threshold, and place the N emoticons around the first person.
[0280] In some embodiments, the method further comprises:
[0281] The placement styles of M emoticons among the N emoticons are determined based on the area ratio of the first person in the first picture and / or the posture of the first person, where M is ≥ 2 and is an integer. The placement styles of the M emoticons include: at least one of continuous arrangement and overlapping arrangement.
[0282] 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 consecutively and / or superimposed.
[0283] For another example, the posture of the first character may indicate the range of movement of the first character. When the range of movement of the first character is large, M expressions of the N expressions may be arranged continuously and / or superimposed.
[0284] In some embodiments, the arrangement 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 is an integer.
[0285] FIG13 shows a schematic flow chart of a method for generating an expression wallpaper provided in an embodiment of the present application. As shown in FIG13 , the method includes:
[0286] S1301, obtain the first picture.
[0287] Specifically, the first picture corresponds to the first scene.
[0288] For example, the first scene may be a grassland, a sea, a lake, etc.
[0289] S1302: Determine N emoticons according to the first scenario.
[0290] The electronic device may determine N emoticons associated with the first scene according to the first scene.
[0291] 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.
[0292] For another example, when the first scene is the sea, the N emoticons may include an emoticon of a seagull.
[0293] S1303: Generate a first emoticon wallpaper according to the first picture and N emoticons.
[0294] 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.
[0295] 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.
[0296] In some embodiments, the method further comprises:
[0297] Color parameters of the first image are determined.
[0298] S1302, determining N emoticons according to the first scenario, including:
[0299] N emoticons are determined according to the first scene and the color parameters of the first picture.
[0300] For example, assuming that the color parameter corresponding to a grassland during the day is color parameter #1 and the color parameter corresponding to a grassland at night is color parameter #2, the electronic device recognizes that the scene in the image is grassland and can also recognize the color parameters in the image. If the color parameter is determined to be color parameter #1, a lamb emoji is generated. If the color parameter is determined to be color parameter #2, a firefly emoji is generated.
[0301] 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.
[0302] 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.
[0303] In some embodiments, the arrangement of P expressions among N 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 is an integer.
[0304] 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 be beyond the scope of this application.
[0305] The embodiment of the present application can divide the functional modules (or units) of the processor in the electronic device 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 and is only a logical function division. There may be other division methods in actual implementation.
[0306] In the case of dividing each functional module (or unit) corresponding to each function, Figure 14 shows a schematic diagram of the composition of an electronic device 1400 provided in an embodiment of the present application. As shown in Figure 14, the electronic device 1400 includes: an acquisition module 1410 and a processing module 1420.
[0307] In some embodiments, the acquisition module 1410 is configured to acquire a first picture, wherein the first picture includes a first person;
[0308] The processing module 1420 is configured to: determine the facial expression of the first person;
[0309] Determine N emoticons based on the facial expression of the first person;
[0310] A first emoticon wallpaper is generated according to the first picture and the N emoticons.
[0311] In some embodiments, the processing module 1420 is further configured to determine a color parameter of the first image;
[0312] 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.
[0313] 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.
[0314] In some embodiments, the processing module 1420 is further configured to determine the posture of the first person;
[0315] The processing module 1420 is specifically configured to: determine positions of the N emoticons according to the posture of the first person, or determine positions of the N emoticons according to the posture of the first person and the N emoticons;
[0316] A first emoticon wallpaper is generated according to the first picture, N emoticons, and positions of the N emoticons.
[0317] In some embodiments, the processing module 1420 is further configured to: determine an area ratio of the first person in the first picture;
[0318] Make sure the area ratio is less than or equal to the threshold, and place N expressions around the first character.
[0319] In some embodiments, the processing module 1420 is further used to determine the placement styles of M emoticons among N emoticons based on 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 superimposed arrangement.
[0320] In some embodiments, the arrangement 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 is an integer.
[0321] In some embodiments, the P expressions are the same expression.
[0322] In some embodiments, the acquisition module 1410 is configured to acquire a first picture, wherein the first picture includes a first person;
[0323] The processing module 1420 is configured to: determine the posture of the first person;
[0324] Determine N emoticons based on the first picture;
[0325] Determine positions of N emoticons based on the posture of the first person;
[0326] A first emoticon wallpaper is generated according to the first picture, N emoticons, and positions of the N emoticons.
[0327] In some embodiments, the acquisition module 1410 is configured to acquire a first image, where the first image corresponds to a first scene;
[0328] The processing module 1420 is configured to: determine N emoticons according to the first scenario;
[0329] A first emoticon wallpaper is generated according to the first picture and N emoticons.
[0330] In some embodiments, the processing module 1420 is further configured to determine a color parameter of the first image;
[0331] The processing module 1420 is specifically configured to determine the N emoticons according to the color parameters of the first scene and the first image.
[0332] In some embodiments, the placement positions of the N emoticons are associated with the first scene.
[0333] The present application provides a computer program product that, when executed on an electronic device, enables the electronic device to execute the technical solution in the above embodiment. The implementation principle and technical effects are similar to those of the above method-related embodiments and will not be described in detail here.
[0334] The embodiment of the present application provides a readable storage medium, which contains instructions. When the instructions are executed on 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.
[0335] The present application provides a chip for executing instructions. When the chip is running, the technical solution of the above embodiment is executed. The implementation principle and technical effect are similar and will not be described here.
[0336] Those skilled 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 this application.
[0337] Those skilled in the art will 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.
[0338] In the several embodiments provided in this 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 merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, 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.
[0339] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0340] 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.
[0341] If the functions are implemented in the form of software functional units and sold or used as independent products, they 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 for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0342] The above description is merely a specific implementation of the embodiments of the present application, but the scope of protection of the embodiments of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the embodiments of the present application should be included in the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection 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.
Citation Information
Patent Citations
Cartoon expression based auxiliary entertainment system for video chatting
CN102455898A
Facial expression recognition method and device, storage medium and electronic device
CN110263681A
Facial expression recognition method, device and apparatus and storage medium
CN112580458A
Video generation method and device, terminal equipment and storage medium
CN115811665A
Apparatus and method for image communication inserting emoticon
KR1020080057030A