WO2022001882A1 - Information prompting method and terminal device - Google Patents

Information prompting method and terminal device Download PDF

Info

Publication number
WO2022001882A1
WO2022001882A1 PCT/CN2021/102440 CN2021102440W WO2022001882A1 WO 2022001882 A1 WO2022001882 A1 WO 2022001882A1 CN 2021102440 W CN2021102440 W CN 2021102440W WO 2022001882 A1 WO2022001882 A1 WO 2022001882A1
Authority
WO
WIPO (PCT)
Prior art keywords
makeup
terminal device
target
user
image
Prior art date
Application number
PCT/CN2021/102440
Other languages
French (fr)
Chinese (zh)
Inventor
董辰
卢曰万
赵琳
陈宜欣
郜文美
杨帆
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022001882A1 publication Critical patent/WO2022001882A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to an information prompting method and a terminal device.
  • the present application provides an information prompting method and a terminal device, which are used to instruct a user to make makeup, so as to beautify a real person.
  • an embodiment of the present invention provides an information prompting method, which is suitable for a terminal device with a makeup guidance function.
  • the method includes the following steps:
  • the terminal device After determining the target makeup part, acquires the image of the user's target makeup part, and displays the acquired image of the target makeup part in the first display area of the display screen; then the terminal device determines the target makeup part The target reference model image of the part is displayed, and the target reference model image is displayed in the second display area of the display screen; secondly, the terminal device displays the image of the target makeup part according to the first display area. and the target reference model image displayed in the second display area to determine makeup instruction information for instructing the user to apply makeup to the target makeup part displayed in the first display area; finally, the terminal device prompts the user to Makeup instructions.
  • the terminal device can generate makeup guidance information according to the target makeup part in the user image and the target part in the target reference model image, and prompt the user.
  • the user can perform a makeup operation on the target makeup part of himself step by step according to the makeup guide information displayed by the terminal device, so as to ensure that the user's modified state of the target makeup part of himself and the target reference model image are in the image.
  • the target sites are basically the same.
  • the terminal device before the terminal device determines the target makeup part, the terminal device also needs to receive a first instruction from the user, and then start the makeup guide function according to the first instruction; finally, the terminal device The target makeup site is determined after the makeup guidance function is activated.
  • the terminal device before the terminal device determines the user image of the target makeup part from the image collected by the camera, the terminal device should also receive the user's instruction, and according to the user's instruction, first start the makeup guidance function of the terminal device , so as to carry out makeup guidance in the interface of the makeup guidance function; and, determine the target makeup part that the user needs to modify, so that the terminal device can guide the user in the makeup guidance interface of the target makeup part in a targeted manner.
  • the target makeup part of the user is modified, so as to effectively beautify the target makeup part of the user.
  • the terminal device when the terminal device determines the target makeup site, the terminal device may display multiple makeup sites on the display screen, and apply makeup on one of the displayed multiple makeup sites When the part is selected, the selected makeup part is determined as the target makeup part; or the terminal device displays a face image on the display screen, and a part in the displayed face image is When selected, the selected part is determined as the target makeup part.
  • the user can use any of the methods to determine the target makeup part in the display screen, so that the user's experience can be improved.
  • the terminal device may further acquire a makeup effect image, where the makeup effect image is obtained after the user performs makeup on the target makeup part displayed in the first display area according to the makeup guide information. image, the terminal device may also display the acquired makeup effect image in the third display area of the display screen.
  • the terminal device displays the makeup effect image in the third display area of the display screen, so that the user can clearly view the overall modification of the target makeup part in real time, and the user experience is improved.
  • the terminal device may receive a second instruction for instructing the terminal device to automatically select a reference model image, and then according to The second instruction determines the target reference model image from among the stored multiple reference model images corresponding to the target makeup part; or the terminal device may also receive the first instruction for instructing the user to manually select the reference model image.
  • three instructions and then display the stored multiple reference model images corresponding to the target makeup part in the second display area, and determine the selected reference model image among the displayed multiple reference model images as the target reference model image.
  • the terminal device can not only match the most similar target reference model image for the target makeup part of the user, so as to automatically determine the target reference model image for the user; the terminal device can also determine the target reference model image according to the user's own choice. The target reference model image, thereby improving the user experience.
  • the terminal device determines the similarity between the image of the target makeup part displayed in the first display area and the image of the target reference model displayed in the second display area; Then, the terminal device determines similarity information according to the similarity; finally, the terminal device prompts the user for the similarity information.
  • the terminal device automatically calculates the similarity between the user's target makeup part and the target makeup part in the target reference model image, and prompts the user with the similarity information. Therefore, the terminal device can intuitively inform the user of the proximity of the modified target makeup part and the target makeup part in the target reference model image, so that the user can know the modified target makeup part according to the similarity information Whether there are improvements to ensure the user experience.
  • the terminal device when the terminal device prompts the user with the makeup guide information, the terminal device may display the makeup guide information in the first display area; or the terminal device may also The makeup instruction information is played by voice.
  • the terminal device can intuitively inform the user of the makeup instruction information in a display mode, and can also play the makeup instruction information to the user in a voice manner.
  • This flexible prompt method can not only ensure that the user can accurately After receiving the makeup instruction information, the user's experience can also be improved.
  • the makeup instruction information may include at least one of the following: grooming tools, grooming positions, grooming directions, and precautions during grooming.
  • grooming tools may include at least one of the following: grooming tools, grooming positions, grooming directions, and precautions during grooming.
  • the user can know the specific modification tool, modification position, modification direction, and any at least one of the precautions in the modification process, so that the user can modify his own target makeup part according to the specific prompt information to ensure that the user
  • the accurate modification of the target makeup part of the user also avoids unnecessary mistakes that may occur in the modification process for the user.
  • an embodiment of the present application further provides a terminal device, including a display screen, one or more processors, and one or more memories; wherein, the one or more memories store one or more computer programs and data, the one or more computer programs include instructions that, when executed by the one or more processors, cause the terminal device to perform the method provided in the first aspect of the present application.
  • an embodiment of the present application further provides a computer storage medium, where a software program is stored in the storage medium, and when the software program is read and executed by one or more processors, the first aspect or any one of them can be implemented method provided by a design.
  • embodiments of the present application further provide a computer program product including instructions, which, when run on a computer, enables the computer to execute the method provided by the first aspect or any one of the designs.
  • an embodiment of the present application provides a chip system, where the chip system includes a processor for supporting a terminal device to implement the functions involved in the first aspect above.
  • the chip system further includes a memory for storing necessary program instructions and data of the terminal device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • an embodiment of the present application further provides an interface on a terminal device, wherein the terminal device has a display screen, a memory, and a processor, and the processor is configured to execute a computer program stored in the memory , the graphical user interface includes an interface displayed when the terminal device executes the method of the first aspect.
  • FIG. 1 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a software structure of a terminal device according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for prompting information provided by the present invention.
  • 4A is a terminal device for makeup guidance provided by an embodiment of the present invention.
  • FIG. 4B is another terminal device for makeup guidance provided by an embodiment of the present invention.
  • 5A is a schematic diagram of an initialization interface of a makeup guide provided by an embodiment of the present invention.
  • 5B is a schematic diagram of an initialization interface of a makeup guide provided by an embodiment of the present invention.
  • 5C is a schematic diagram of an initial display interface of an eyebrow makeup guide provided by an embodiment of the present invention.
  • 5D is a schematic diagram of a display interface for selecting target eyebrows according to an embodiment of the present invention.
  • 5E is a schematic diagram of another display interface for selecting target eyebrows provided by an embodiment of the present invention.
  • 5F is a schematic diagram of a completed display interface for eyebrow makeup guidance provided by an embodiment of the present invention.
  • 5G is a schematic diagram of a display interface for eyebrow trimming guidance information provided by an embodiment of the present invention.
  • 5H is a schematic diagram of a display interface for eyebrow drawing guidance information provided by an embodiment of the present invention.
  • 5I is a schematic diagram of an eyebrow drawing instruction information display interface provided by an embodiment of the present invention.
  • 5J is a schematic diagram of an eyebrow makeup guide completion display interface provided by an embodiment of the present invention.
  • FIG. 6A is a schematic diagram of a display interface of a lip makeup guide provided by an embodiment of the present invention.
  • 6B is a schematic diagram of a display interface for selecting a target lip according to an embodiment of the present invention.
  • 6C is a schematic diagram of another display interface for selecting a target lip according to an embodiment of the present invention.
  • 6D is a schematic diagram of a complete display interface of a lip makeup guide provided by an embodiment of the present invention.
  • 6E is a schematic diagram of a display interface for lip makeup guidance information provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a terminal device device for information prompting according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal device for information prompting according to an embodiment of the present invention.
  • the terminal equipment involved in the embodiments of the present application may also be called user equipment (UE), for example, smart phones, tablet computers, smart mirrors, smart home equipment and other smart devices with cameras and display screens. equipment, etc.
  • UE user equipment
  • applications application, app for short
  • a function of guiding makeup can be installed in the terminal device.
  • FIG. 1 shows a schematic diagram of the hardware structure of a possible terminal device.
  • the terminal device 100 may include: a processor 110 , an internal memory 121 , an external memory interface 122 , a camera 130 , a display screen 140 , a sensor module 150 , an audio module 160 , a speaker 161 , a receiver 162 , and a microphone 163 , earphone interface 164, subscriber identification module (SIM) card interface 171, universal serial bus (USB) interface 172, charging management module 180, power management module 181, battery 182, mobile communication module 191 and wireless communication module 192 and other components.
  • SIM subscriber identification module
  • USB universal serial bus
  • the structure of the terminal device shown in FIG. 1 does not constitute a limitation on the terminal device, and the terminal device provided in this embodiment of the present application may include more or less components than those shown in the figure, or a combination of certain components may be included. some components, or a different arrangement of components.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • Each component of the terminal device 100 will be specifically introduced below with reference to FIG. 1 :
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a video codec, digital signal processing A digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • DSP digital signal processing A digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices, or may be integrated in one or more devices.
  • a buffer may also be provided in the processor 110 for storing programs and/or data.
  • the programs in the embodiments of the present application may also be referred to as program instructions, computer programs, code instructions, instructions, etc., which are not limited thereto.
  • the buffer in the processor 110 may be a cache memory.
  • the buffer may be used to store programs and/or data that have just been used, generated, or recycled by the processor 110 . If the processor 110 needs to use the program and/or data, it can be called directly from the buffer. It helps to reduce the time for the processor 110 to acquire programs or data, thereby improving the efficiency of the system.
  • Internal memory 121 may be used to store programs and/or data.
  • the internal memory 121 includes a stored program area and a stored data area.
  • the program storage area may be used to store an operating system (such as an operating system such as Android, IOS, etc.), a program required for at least one function (such as a makeup instruction function), and the like.
  • the storage data area may be used to store data created, preset and/or acquired during the use of the terminal device 100 (such as a reference face model image, an image received through a network), and the like.
  • the processor 110 may cause the terminal device 100 to execute a corresponding method by calling programs and/or data stored in the internal memory 121, thereby implementing one or more functions.
  • the processor 110 invokes certain programs and/or data in the internal memory, so that the terminal device 100 executes the makeup guidance method provided in the embodiments of the present application, and automatically detects the face position or automatically matches the target by using the video tracking technology.
  • Reference part images, etc. do not require manual operation by the user, which helps to improve the user experience.
  • the internal memory 121 may adopt a high-speed random access memory, and/or a non-volatile memory, or the like.
  • the non-volatile memory may include at least one of one or more magnetic disk storage devices, flash memory devices, and/or universal flash storage (UFS), among others.
  • the external memory interface 122 can be used to connect an external memory card (eg, a Micro SD card), so as to expand the storage capacity of the terminal device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function.
  • the terminal device 100 may save the collected user images and other contents in an external memory card through the external memory interface 122 .
  • the camera 130 can be used to capture moving and still images, etc., to realize the shooting function of the terminal device 100 .
  • the camera 130 includes a lens and an image sensor.
  • the optical image generated by the object through the lens is projected onto the image sensor, and then converted into an electrical signal for subsequent processing.
  • the image sensor may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the image sensor converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • the terminal device 100 may include one or more cameras 130 , which is not limited.
  • the display screen 140 may include a display panel.
  • the display screen 140 is the display system of the terminal device 100, and is used for presenting an interface and realizing human-computer interaction.
  • the display screen 140 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device 100 , in addition, the display screen can also be used to display the picture captured by the camera 130 .
  • the display panel may adopt a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode.
  • liquid crystal display liquid crystal display
  • OLED organic light-emitting diode
  • active matrix organic light emitting diode active matrix organic light emitting diode or an active matrix organic light emitting diode.
  • active-matrix organic light emitting diode, AMOLED flexible light emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the terminal device 100 may implement a display function through a GPU, a display screen 140, an application processor, and the like.
  • Sensor module 150 may include one or more sensors. For example, touch sensor 150A, pressure sensor 150B, and the like. In other embodiments, the sensor module 150 may further include a gyroscope, an acceleration sensor, a fingerprint sensor, an ambient light sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, a temperature sensor, a positioning sensor (eg, a global positioning system). system, GPS) sensor), etc., which are not limited.
  • the touch sensor 150A may also be referred to as a "touch panel” and may be used to collect user touch operations on or near it (such as the user using a finger, a stylus, etc., any suitable object or accessory on the touch sensor 150A or at any location). operation near the touch sensor 150A described above), and drive the corresponding connection device according to the preset program.
  • the touch sensor 150A may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. to the processor 110, and can receive and execute commands sent by the processor 110.
  • the touch sensor 150A can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the touch sensor 150A When the touch sensor 150A is disposed on the display screen 140, the touch sensor 150A and the display screen 140 form a touch screen, which may also be referred to as a "touch screen".
  • the touch sensor 150A is used to detect a touch operation on or near it.
  • the touch sensor 150A can transmit the detected touch operation to the application processor to determine the type of touch event, so that the terminal device 100 can provide visual output related to the touch operation and the like through the display screen 140 .
  • the terminal device 100 may perform interface switching in response to detecting a touch operation on or near the touch device 150A, and display the switched interface on the display screen 140 .
  • the touch sensor 150A may also be disposed on the surface of the terminal device 100 , which is different from the position where the display screen 140 is located.
  • the pressure sensor 150B is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 150B may be disposed on the display screen 140 . Among them, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • the terminal device 100 may implement audio functions through an audio module 160, a speaker 161, a receiver 162, a microphone 163, an earphone interface 164, an application processor, and the like. For example, audio playback function, voice recording function, etc.
  • the audio module 160 may be used to perform digital-to-analog conversion and/or analog-to-digital conversion on audio data, and may also be used to encode and/or decode audio data.
  • the audio module 160 may be provided in the processor 110 , or some functional modules of the audio module 160 may be provided in the processor 110 .
  • the speaker 161 also called “speaker” is used to convert audio data into sound and play the sound.
  • the terminal device 100 may receive the user's voice instruction through the speaker 161, or send out a voice prompt or the like.
  • the receiver 162 also referred to as an "earpiece" is used to convert audio data into sound and to play back the sound. For example, when the terminal device 100 answers a call, it can be answered by placing the receiver 162 close to the human ear.
  • the microphone 163, also called “microphone” or “microphone”, is used to collect sound (eg, ambient sound, including sounds made by people, sounds made by equipment, etc.), and convert the sound into audio electrical data. When the user makes a sound through the human mouth close to the microphone 163, the microphone 163 collects the sound made by the user.
  • the terminal device 100 may be provided with at least one microphone 163 .
  • two microphones 163 are provided in the terminal device 100, which can implement a noise reduction function in addition to collecting sound.
  • three, four or more microphones 163 may be provided in the terminal device 100, so that on the basis of sound collection and noise reduction, sound source identification or directional recording functions can also be implemented.
  • the earphone jack 164 is used to connect wired earphones.
  • the earphone interface 164 may be a USB interface 170, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface, etc. .
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the SIM card interface 171 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the terminal device 100 by inserting the SIM card interface 171 or pulling it out from the SIM card interface 115 .
  • the terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the USB interface 172 is an interface that conforms to the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 172 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play sound through the headphones.
  • the USB interface 172 can be used to connect other terminal devices, such as AR devices, computers, and the like, in addition to the headphone interface 164 .
  • the charging management module 180 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 180 may receive charging input from the wired charger through the USB interface 170 .
  • the charging management module 180 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 180 charges the battery 182 , the terminal device 100 can also be powered by the power management module 180 .
  • the power management module 181 is used for connecting the battery 182 , the charging management module 180 and the processor 110 .
  • the power management module 181 receives input from the battery 182 and/or the charging management module 180, and supplies power to the processor 110, the internal memory 121, the camera 130, the display screen 140, and the like.
  • the power management module 181 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 181 may also be provided in the processor 110 .
  • the power management module 181 and the charging management module 180 may also be provided in the same device.
  • the mobile communication module 191 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the terminal device 100 .
  • the mobile communication module 191 may include a filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • LNA low noise amplifier
  • the wireless communication module 192 is mainly used to communicate with other devices through wireless communication standards or protocols. Described wireless communication standard or agreement, including but not limited to global system of mobile communication (global system of mobile communication, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA) ), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • the wireless communication module 192 may include, but is not limited to, at least one or a combination of: an RF circuit, a WiFi module, and a Bluetooth module.
  • the physical communication interface is used to realize the physical connection between the terminal device 100 and other devices. For example, the physical communication interface and the communication interface of the other device are connected through a cable to realize the terminal device 100 and other devices. data transfer between.
  • the wireless communication module 192 may be one or more devices integrating at least one communication processing module.
  • the antenna 1 of the terminal device 100 is coupled with the mobile communication module 191, and the antenna 2 is coupled with the wireless communication module 192, so that the terminal device 100 can communicate with other devices.
  • the mobile communication module 191 can communicate with other devices through the antenna 1
  • the wireless communication module 191 can communicate with other devices through the antenna 2 .
  • FIG. 2 shows a software structural block diagram of a terminal device provided by an embodiment of the present application.
  • the software structure of the terminal device may be a layered architecture, for example, the software may be divided into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer (framework, FWK), an Android runtime (Android runtime) and system libraries, and a kernel layer.
  • the application layer can include a series of applications. As shown in Figure 2, the application layer may include settings, phone, gallery, LED lights, and third-party applications, among others. Among them, third-party applications can include navigation, music, video, smart mirrors, etc.
  • the application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer.
  • the application framework layer can include some predefined functions. As shown in Figure 2, the application framework layer may include: window manager, content provider, view system, telephony manager, resource manager, notification manager, and so on.
  • Window manager which provides window manager service for windows.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • An interface can consist of one or more controls.
  • the interface including the SMS notification icon may include controls for displaying text and controls for displaying pictures.
  • the telephony manager is used to provide the communication function of the terminal device. For example, the management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, images, layout files, etc.
  • the Android runtime includes core libraries and a virtual machine.
  • Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of the Android system.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: display module, template matching module, image matching module, makeup instruction module, media libraries, image processing libraries, etc.
  • the display module is used for displaying on the display screen after receiving the image display instruction, so that the user can see it intuitively, thereby realizing human-computer interaction.
  • the display module displays the reference model image stored by the terminal device through the display screen, or the user image detected from the image collected by the camera device; for example, the display module displays the makeup guidance interface through the display screen, including: menu and makeup guidance information, etc.
  • the template matching module is used for matching the stored reference model images of multiple target makeup parts to obtain a target reference model image that is most similar to the user image containing the user's target makeup parts.
  • the image matching module is used for matching the user image and the target reference model image to obtain a matching result, and the matching result is used to determine the similarity information of the two and determine the makeup guide information.
  • the makeup guidance module is used for determining makeup guidance information according to the matching result of the image matching module.
  • the media library supports playback and recording of audio and video in multiple formats, and supports opening of still images in multiple formats.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer at least includes display drivers, sensor drivers, camera drivers, audio drivers, etc., which are used to drive the hardware in the hardware layer.
  • the hardware layer can include various sensors, displays, cameras, etc.
  • FIG. 3 it is a flowchart of an information prompting method provided by an embodiment of the present application.
  • the methods provided in the embodiments of the present application may be, but are not limited to, applicable to the hardware architecture of the terminal device 100 shown in FIG. 1 and the software architecture of the terminal device shown in FIG. 2 .
  • the process of the method includes:
  • the processor in the terminal device determines a target makeup part, acquires an image of the user's target makeup part through a camera device, and controls a first display area of the display screen to display the acquired image of the target makeup part.
  • the camera device may be a camera built in the terminal device, or may be an external camera device that establishes a communication connection with the terminal device, which is not limited in this application.
  • the processor needs to receive the image collected by the camera through a mobile communication module or a wireless communication module.
  • the processor may use a video tracking technology to ensure that the image captured by the camera device includes the image of the target makeup part.
  • the processor may start the makeup guide function according to the first instruction when receiving the first instruction of the user; then, the processor determines the target makeup part according to the user's selection, or When the makeup guide function is only for the target makeup part, the processor may directly determine the target makeup part according to the makeup guide function.
  • the processor determines the target makeup part according to the user's selection, including: the processor displays a plurality of makeup parts on the display screen, and When one of the displayed makeup parts is selected by the user, the selected makeup part is determined as the target makeup part; or the processor displays a face image on the display screen, and When a part in the displayed face image is selected by the user, the selected part is determined as the target makeup part.
  • the terminal device may also display a makeup effect image through a third display area of the display screen, where the makeup effect image is all the makeup effect images displayed by the user on the first display area according to the makeup guide information.
  • the image after makeup is applied to the target makeup site.
  • S302 The processor determines a target reference model image of the target makeup part, and displays the target reference model image in the second display area of the display screen.
  • the processor may, but is not limited to, determine the target reference model image of the target makeup part in the following two ways:
  • Manner 1 the processor receives a second instruction, the second instruction is used to instruct to automatically select a reference model image; the processor stores a plurality of reference models corresponding to the target makeup part according to the second instruction In the image, the target reference model image is determined.
  • the processor automatically matches the target makeup part with the target parts in the multiple reference model images stored in the internal memory according to the second instruction received. , determining a reference model image that best matches the image of the target makeup part from the plurality of reference model images, and using the best matching reference model image as the target reference model image.
  • Manner 2 the processor receives a third instruction, the third instruction is used to instruct to manually select a reference model image; the processor displays a plurality of stored references corresponding to the target makeup part through the second display area The model image, the reference model image selected by the user among the displayed multiple reference model images is determined as the target reference model image.
  • the display screen displays the reference model images of the plurality of target makeup parts stored in the internal memory
  • the user may manually select any one of the reference model images from the plurality of reference model images displayed in the second display area of the display screen, and the processor may use the reference model image manually selected by the user as the target reference model image.
  • the processor determines the similarity between the image of the target makeup part displayed in the first display area and the image of the target reference model displayed in the second display area; and then the The processor determines similarity information according to the similarity; finally, the processor displays the similarity information on the display screen, and/or plays the voice containing the similarity information through the speaker, so as to It is implemented to prompt the similarity information and the like to the user.
  • the processor can calculate the target makeup part of the user and the target makeup part in the target reference model image in real time according to the image of the user's target makeup part and the target reference model image The similarity is obtained, and the similarity score is obtained, and the similarity score is displayed on the display screen to prompt the similarity information and the like to the user.
  • the processor may, but is not limited to, calculate the similarity score between the target makeup part of the user and the target makeup part in the target reference model image by the following method:
  • the processor calculates the color similarity according to the color of the target makeup part of the user and the color of the target makeup part in the target reference model image;
  • the processor calculates the shape similarity according to the shape of the target makeup part of the user and the shape of the target makeup part in the target reference model image;
  • the processor calculates the similarity score according to the color similarity and the shape similarity. For example, the terminal device calculates the weighted sum of color similarity and shape similarity to obtain the similarity score, where the weight of color similarity may be 10%, and the weight of shape similarity may be 90%.
  • the processor determines makeup instruction information according to the image of the target makeup part displayed in the first display area of the display screen and the target reference model image displayed in the second display area of the display screen, The makeup instruction information is used to instruct the user to apply makeup to the target makeup part displayed in the first display area.
  • the makeup instruction information includes at least one of the following items: modification tools, modification positions, modification directions, and precautions during modification.
  • the processor may execute S303 after receiving the makeup instruction instruction from the user. For example, after the processor determines the target reference model image in S302, the instruction button is displayed on the display screen; when After the user clicks the opening guide button, S303 is executed.
  • S304 The terminal device prompts the user with the makeup guide information.
  • the terminal device displays the makeup guide information in the first display area of the display screen, and/or plays a voice containing the makeup guide information through the speaker to prompt the user.
  • a beauty-shaped frame of the target makeup part in the image of the target reference model is displayed to enhance the contrast.
  • the makeup guidance information may be directly displayed around the target makeup site in the image of the target makeup site, or the display screen further includes a display area for displaying the makeup guidance information. After the processor generates the makeup instruction information, the makeup instruction information is displayed in the display area.
  • the user performs each step of makeup according to the makeup instruction information prompted by the terminal device; the terminal device collects the user image modified by the user in real time through the camera device, and updates the display to the display Then, the terminal device updates the makeup effect image displayed on the display screen in S301 and the score displayed on the display screen in S302, and continues to generate the next makeup guide information according to the updated user image and the target reference model image prompt to the user.
  • the processor determines that the display screen shows that the similarity score of the target makeup part in the user image and the target reference model image is 100, or the processor receives the end of the user.
  • the makeup guide function is turned off.
  • the embodiment of the present application provides an information prompting method.
  • the terminal device acquires the image of the user's target makeup part, and displays the collected image of the target makeup part in the first display area of the display screen; then, the terminal device Determine the target reference model image of the target makeup part, and display the target reference model image in the second display area of the display screen; finally, the terminal device can be based on the user's target makeup image and target reference model image, determine the makeup guide information, and present the makeup guide information to the user.
  • the terminal device can determine specific makeup instruction information for the user according to the actual situation of the user's own target makeup site, and prompt the user with makeup instruction information in a flexible manner, so that the user can make makeup according to the makeup instruction information.
  • the guidance information modifies one's own target makeup parts step by step, so that not only can the user's own target makeup parts be effectively beautified, but also the user's use experience can be improved.
  • the present application also provides an example of eyebrow makeup guidance.
  • the terminal device involved in this example may be the smart mirror shown in FIG. 4A (for example, Amiro smart makeup mirror, Tmall Elf Queen, etc.), or the smart phone shown in FIG. 4B with the makeup guidance function installed.
  • the terminal device includes a camera (the front camera shown in FIG. 4A or 4B ), or the terminal device can be connected to an external camera device. The following only takes the smartphone as shown in FIG. 4B as an example, and the specific flow of the example will be described with reference to FIGS. 5A to 5J .
  • the terminal device receives an instruction for starting the makeup guidance function from the user, and starts the makeup guidance function of the terminal device according to the instruction. Wherein, after the terminal device starts the makeup guidance function, an initialization interface of makeup guidance is displayed on the display screen.
  • the terminal device can directly open a makeup guide application according to the user's instruction, thereby starting the makeup guide function; or the terminal device can open an application (for example, a smart mirror application, a camera application, etc.) Then, activate the makeup guide function in the application.
  • the terminal device can open the smart mirror application, the main interface of the smart mirror is displayed, and when the user clicks the makeup guidance function button, the terminal device can open the makeup guidance function in the application.
  • two menus of gender and makeup parts may be displayed in the initialization interface, as shown in FIG. 5A .
  • the user can select the gender of the user object who needs makeup guidance according to actual needs.
  • the user can select the target makeup parts that need makeup guidance, such as eyes, eyebrows, nose, lips, cheeks, etc., according to the makeup part menu.
  • the initialization interface can also display a gender menu and an image of a face model displaying multiple makeup parts. As shown in FIG. 5B, the user can click the gender menu to select the gender of the user object, and then the face model can be displayed on the face model. Select the target makeup parts that need makeup guidance in the image.
  • the user selects the gender of the user object as female as an example.
  • the terminal device obtains the gender and the target makeup part input by the user in the initialization interface, then displays the makeup guide interface of the target makeup part on the display screen, and turns on the camera above the terminal device, and collects data through the camera image.
  • the following description will be given by taking the eyebrows as the target makeup site selected by the user as an example.
  • the user can click on the makeup parts menu displayed on the display screen through a finger, a stylus or an input device, and then select the eyebrows among the multiple makeup parts displayed, so that the terminal device receives the After this operation, the target makeup site can be determined to be the eyebrows.
  • the user can click on the eyebrows in the face model image on the display screen, so that the terminal device can determine that the target makeup part is the eyebrows after receiving the operation.
  • the eyebrow makeup guidance interface is shown in FIG. 5C , and the makeup guidance interface at least includes the following parts: a first display area for displaying the user’s eyebrows collected by the camera, and a first display area for displaying the target eyebrows as a reference for makeup guidance. Second display area.
  • the makeup guidance interface may further include a third display area for displaying the overall makeup effect.
  • the makeup guidance interface may further include a fourth display area for displaying the real-time scores of the user's eyebrows after makeup.
  • the target eyebrows can be automatically matched by the terminal device or the user can select two schemes, therefore, in the eyebrow makeup guidance interface shown in FIG. 5C , two buttons are displayed in the second display area—the automatic matching button and the manual selection button.
  • the terminal device can match the collected eyebrows of the user with multiple stored reference eyebrow models, and then select the reference eyebrow model most similar to the user's eyebrows among the multiple reference eyebrow models as the Target eyebrows.
  • the terminal device may display multiple reference eyebrow models stored in the second display area or on the display screen for the user to select. After the user selects a certain reference eyebrow model, the reference The eyebrow model serves as the target eyebrow.
  • the terminal device After the terminal device detects the user's eyebrows in the image collected by the camera, the terminal device displays the user's eyebrows in the first display area in the eyebrow makeup guidance interface, as shown in FIG. 5C .
  • the terminal device may use a video tracking technology to continuously, real-time and stably display the user's eyebrows in the first display area.
  • the terminal device may display the overall makeup effect in the third display area.
  • the image of the overall makeup effect may be the face in the picture collected by the camera; or include the user's eyebrows displayed in real time in the first display area and the virtual eyebrows obtained by horizontally flipping the user's eyebrows; or include the camera A pair of user eyebrows in the captured picture, as shown in Figure 5C.
  • the terminal device determines the target eyebrow, and displays the target eyebrow in the second display area in the eyebrow makeup guidance interface.
  • the target eyebrows can be determined by means of automatic matching. That is, in the eyebrow makeup guidance interface shown in FIG. 5C, when the user clicks the automatic matching button, the terminal device matches the user's eyebrows detected in real time with the stored multiple reference eyebrow models, and then matches the multiple reference eyebrow models in the multiple reference eyebrow models. The reference eyebrow model most similar to the user's eyebrow is selected as the target eyebrow.
  • the target eyebrows may be determined by manual selection. That is, in the eyebrow makeup guidance interface shown in FIG. 5C , when the user clicks the manual selection button, the terminal device can display a plurality of pictures of reference eyebrow models in the second display area, as shown in FIG. 5D . The user can view all the pictures of the reference eyebrow model through the sliding operation, and select the reference eyebrow model as the target eyebrow by clicking on any picture of the reference eyebrow model.
  • the terminal device may jump to a new target eyebrow selection interface, in which only pictures of the multiple reference eyebrow models are displayed, as shown in FIG. 5E .
  • the user can select the reference eyebrow model as the target eyebrow by clicking on any picture of the reference eyebrow model and by clicking the OK button. After the user selects the target eyebrow, the user returns to the eyebrow makeup guide interface through the return button.
  • the eyebrow makeup guide interface displaying the target eyebrow in the second display area may be as shown in FIG. 5F .
  • the terminal device may perform a similarity calculation in real time according to the user's eyebrows displayed in the first display area and the target eyebrows displayed in the second display area to obtain a similarity score, and calculate the similarity.
  • the score is displayed in the fourth display area in the eyebrow makeup guidance interface, as shown in FIG. 5F .
  • the terminal device may calculate the similarity score between the user's eyebrows and the target eyebrows by, but not limited to, the following methods:
  • the terminal device calculates the color similarity according to the color of the user's eyebrows and the color of the target eyebrows;
  • the terminal device calculates the shape similarity according to the shape of the user's eyebrows and the shape of the target eyebrows;
  • the terminal device calculates the similarity score according to the color similarity and the shape similarity. For example, the terminal device calculates the weighted sum of color similarity and shape similarity to obtain the similarity score, where the weight of color similarity may be 10%, and the weight of shape similarity may be 90%.
  • the terminal device generates makeup guide information according to the user's eyebrows displayed in the first display area and the target eyebrows displayed in the second display area, and sends the makeup guide information to the user by voice and/or display. prompt.
  • the terminal device may execute b5 after receiving the user's makeup instruction instruction. For example, after b4 determines the target eyebrow, the terminal device displays a makeup button, as shown in FIG. 5F ; when the user clicks the makeup button, execute b5.
  • the terminal device may display the beauty-shaped frame of the target eyebrow at the position of the user's eyebrow in the first display area to enhance the contrast, as shown in FIG. 5G .
  • the makeup instruction information may include, but is not limited to, at least one or a combination of the following: modification tools, modification positions, modification directions, and precautions during modification.
  • the tools may include: eyebrow knife, eyebrow pencil, eyebrow brush, eyebrow trimmer. If the tool contains an eyebrow pencil or eyebrow brush, it also contains information such as the color of the eyebrow pencil or the color of the eyebrow powder.
  • the makeup guide information may be directly displayed around the user's eyebrows in the first display area, as shown in FIG. 5G .
  • the eyebrow makeup guidance interface further includes a fifth display area for displaying makeup guidance information. After the terminal device generates the makeup guidance information, the makeup guidance is displayed in the fifth display area. information.
  • the terminal device collects the user's modified eyebrows in real time through the camera, and updates and displays them in the first display area; then the terminal device updates the image and score of the overall makeup effect, and according to the updated user's eyebrows And the target eyebrow continues to generate the next makeup guide information to prompt the user, as shown in FIG. 5H and FIG. 5I .
  • the terminal device collects the user's modified eyebrows in real time through the camera, and updates and displays them in the first display area; then the terminal device updates the image and score of the overall makeup effect, and according to the updated user's eyebrows And the target eyebrow continues to generate the next makeup guide information to prompt the user, as shown in FIG. 5H and FIG. 5I .
  • FIG. 5H and FIG. 5I For the above process, reference may be made to the description of the above steps, which will not be repeated here.
  • the user performs each step of makeup according to the makeup guidance information displayed in the first display area, and the first display area is updated and displayed in real time and detected from the images collected by the camera.
  • the eyebrows of the user are updated, and the score displayed in the fourth display area of the makeup guidance interface is updated in real time, and the score displayed in the fourth display area increases with each step of makeup by the user.
  • the first display area displays makeup guidance information for eyebrow trimming—please use an eyebrow knife to trim the eyebrows beyond the boundary, and the user can watch the first section of the eyebrow makeup guidance interface.
  • a display area displays makeup instruction information for eyebrow trimming, or repairs one's own eyebrows by hearing the voice of the terminal device playing the makeup instruction information.
  • the terminal device captures the image of the user's eyebrows in real time through the camera, updates and displays the makeup eyebrows in the first display area in real time, and updates the score in the fourth display area in real time.
  • the whole eyebrow is updated and displayed in real time in the third display area.
  • the first display area displays makeup guidance information for thrushes—please use an eyebrow pencil to draw eyebrow peaks and eyebrow tails, and the user can watch the first page of the eyebrow makeup guidance interface.
  • a display area displays the makeup instruction information of the thrush, or hears the voice of the terminal device playing the makeup instruction information, and processes the own eyebrows.
  • the terminal device captures the image of the user's eyebrows in real time through the camera, and updates and displays the makeup eyebrows in the first display area in real time, and updates the score in the fourth display area in real time.
  • the whole eyebrow is updated and displayed in real time in the third display area. As shown in Figure 5H.
  • the first display area displays makeup guidance information for thrushes—please continue to draw the eyebrows with an eyebrow pencil, and the user can watch the first display of the eyebrow makeup guidance interface.
  • the makeup guidance information of the thrush is displayed in the area, or the terminal device plays the voice of the makeup guidance information, and the eyebrows are processed.
  • the terminal device collects the image of the user's eyebrows in real time through the camera, and updates and displays the makeup eyebrows in the first display area in real time, and updates the score in real time in the fourth display area.
  • the three display areas update and display the entire eyebrows in real time until the first display area no longer displays makeup guide information. As shown in Figure 5J.
  • the terminal device determines the eyebrows as the target makeup site, collects the image of the user's eyebrows through the camera, and displays it in the first display area of the eyebrow makeup guidance interface The collected image of the eyebrows; then, in the second display area of the eyebrow makeup interface, display the target eyebrows automatically matched by the terminal device for the user, or display the target eyebrows selected by the user in the second display area; and, The similarity score between the user's eyebrows and the target eyebrows is also displayed in the eyebrow makeup guidance interface, so that the user can intuitively understand the degree of difference between his own eyebrows and the target eyebrows.
  • the overall makeup effect can also be displayed in the user interface, so that the user can view the overall effect after makeup, so as to ensure the symmetry and integrity of the eyebrows after makeup by the user; finally, makeup guidance information and/or makeup guidance information are displayed in the eyebrow makeup guidance interface. Or prompt the user through voice playback, so that the user can modify his eyebrows after receiving the makeup instruction information, which can not only effectively beautify the user's own eyebrows, but also improve the user's use experience.
  • the present application also provides an example of lip makeup instruction. Same as the above example of eyebrow makeup instruction, this example continues to take the smartphone shown in FIG. 4B as an example for description, and the specific process of this example is described below with reference to FIGS. 6A-6E .
  • step c1 Referring to the specific implementation of step b1 in the embodiment of instructing eyebrow drawing, the terminal device directly opens the makeup guidance application according to the user instruction, and a makeup guidance initialization interface is displayed on the display screen of the terminal device. As shown in Figure 5A.
  • the user may determine the gender of the user object who needs makeup instruction according to actual needs.
  • the user can specifically select the target makeup parts that need makeup guidance, such as eyebrows, eyes, nose, lips, etc., through the makeup parts menu in the makeup guidance interface or the face model image.
  • the terminal device obtains the gender and the target makeup part input by the user in the initialization interface, then displays the makeup guide interface of the target makeup part on the display screen, and turns on the camera above the terminal device, and collects data through the camera image.
  • the following description will be given by taking the target makeup part selected by the user as the lips as an example.
  • the terminal device may determine that the target makeup part is the lips.
  • the terminal device After the terminal device detects the user's lips in the image collected by the camera, the terminal device displays the user's lips in the first display area in the lip makeup guidance interface, as shown in FIG. 6A .
  • the terminal device may use a video tracking technology to continuously, real-time and stably display the user's lips in the first display area.
  • the terminal device may display the overall makeup effect in the third display area.
  • the image of the overall makeup effect may be the face in the picture collected by the camera; or the user's lips displayed in real time in the first display area, and the parts associated with it, as shown in FIG. 6A , including the user's lips and the user nose.
  • the terminal device determines a target lip, and displays the target lip in the second display area in the lip makeup guidance interface.
  • the terminal device can also select the target lips through two methods of automatic matching and manual selection.
  • the terminal device can select the reference lip model most similar to the user's lips from among the saved reference lip models as the target lip .
  • the terminal device may display a plurality of pictures of the reference lip model in the second display area, as shown in FIG. 6B .
  • the user can view all the pictures of the reference lip model by sliding operation, and select the reference lip model as the target lip by clicking on any picture of the reference lip model.
  • the terminal device may jump to a new target lip selection interface, where only pictures of the multiple reference lip models are displayed, as shown in FIG. 6C .
  • the user can select the reference lip model as the target lip by clicking on any picture of the reference lip model and clicking the OK button. After the user selects the lips, the user returns to the lip makeup guide interface through the return button.
  • the lip makeup guide interface displaying the target lip in the second display area may be as shown in FIG. 6D .
  • the terminal device may, according to the user's lips displayed in the first display area and the target lips displayed in the second display area, The similarity is calculated in real time, and the similarity score is obtained, and the similarity score is displayed in the fourth display area in the lip makeup guidance interface, as shown in FIG. 6D .
  • the terminal device generates makeup instruction information according to the user's lips displayed in the first display area and the target lips displayed in the second display area, and sends the makeup instruction information to the user by voice and/or display. prompt.
  • the terminal device may display the beauty-shaped border of the target lip at the position of the user's lips in the first display area of the lip makeup instruction interface, so as to For enhanced contrast, see Figure 6E.
  • the makeup guide information may be directly displayed around the user's lips in the first display area, as shown in FIG. 6E .
  • the lip makeup guidance interface further includes a fifth display area for displaying makeup guidance information, and after the terminal device generates the makeup guidance information, the makeup guidance is displayed in the fifth display area information.
  • the terminal device captures the user's modified lips in real time through the camera, and updates and displays them in the first display area; then the terminal device updates the image and score of the overall makeup effect, and according to the updated user's lips And the lips continue to generate the next makeup guide information to prompt the user.
  • the terminal device captures the user's modified lips in real time through the camera, and updates and displays them in the first display area; then the terminal device updates the image and score of the overall makeup effect, and according to the updated user's lips And the lips continue to generate the next makeup guide information to prompt the user.
  • the terminal device determines the lips as the target makeup part, captures an image including the user's lips through a camera, and displays it in the first display area of the lip makeup interface an image of the user's lips; then, the terminal device displays the target lips automatically matched by the user in the second display area of the lip makeup interface, or displays the target lips manually selected by the user in the second display area; and , the lip makeup guidance interface also displays the similarity score between the user's lips and the target lips, so that the user can intuitively understand the degree of difference between his own lips and the target eyebrows, in the lip makeup guidance interface
  • the overall makeup effect can also be displayed in the user interface, so that the user can view the overall makeup effect after makeup, so as to ensure the integrity and symmetry of the user's lips after makeup.
  • the methods provided by the embodiments of the present application have been introduced from the perspective of a terminal device as an execution subject.
  • the terminal device may include hardware structures and/or software modules, and implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • FIG. 7 shows a terminal device 700 according to an embodiment of the present application, where the terminal device can execute the methods in the above embodiments and examples.
  • the terminal device 700 includes: a display unit 701 , a processing unit 702 , and a prompt unit 703 .
  • the terminal device 700 may further include a camera and a communication unit. The function of each unit is described below.
  • the camera device is used to collect images of the current environment.
  • the communication unit is used to communicate with other devices. For example, when the terminal device 700 does not contain a camera, the terminal device 700 may receive images sent by an external camera through the communication unit.
  • the display unit 701 is used for displaying an interface.
  • the processing unit 702 is configured to determine the target makeup part, control the camera to collect the image of the target makeup part of the user, and control the display unit 701 to display the collected image of the target makeup part; determine the target makeup and control the display unit 701 to display the target reference model image; and determine makeup guide information according to the image of the target makeup part and the target reference model image displayed by the display unit 701 ; the makeup instruction information is used to instruct the user to apply makeup to the target makeup part displayed by the display unit 701;
  • the prompting unit 703 is used for prompting the makeup guide information to the user.
  • the processing unit 702 is further configured to: before determining the target makeup part, receive a first instruction, where the first instruction is used to instruct the terminal device to start a makeup guidance function; The first instruction activates the makeup guide function.
  • processing unit 702 determines the target makeup part, it is specifically configured to:
  • the display unit 701 is controlled to display a face image, and when a part in the displayed face image is selected, the selected part is determined as the target makeup part.
  • the processing unit 702 is further configured to: control the display unit 701 to display a makeup effect image, where the makeup effect image is all displayed on the display unit by the user according to the makeup guide information. The image after makeup is applied to the target makeup site.
  • the processing unit 702 when determining the target reference model image of the target makeup part, is specifically configured to: receive a second instruction, where the second instruction is used to instruct to automatically select a reference model image; The second instruction determines the target reference model image from among the stored multiple reference model images corresponding to the target makeup part; or
  • the third instruction is used to instruct manual selection of a reference model image; controlling the display unit 701 to display a plurality of stored reference model images corresponding to the target makeup part; The selected reference model image is determined as the target reference model image.
  • the processing unit 702 is further configured to: determine that the image of the target makeup part displayed on the display unit 701 is similar to the image of the target reference model displayed on the display unit 701 degree; according to the similarity, determine similarity information;
  • the prompting unit 703 is further configured to prompt the similarity information to the user.
  • the prompting unit 703 when the prompting unit 703 prompts the user with the makeup guidance information, it is specifically configured to: display the makeup guidance information through the display unit 701; or play the makeup guidance information by voice .
  • the makeup guide information includes at least one of the following items: grooming tools, grooming positions, grooming directions, and precautions during grooming.
  • FIG. 8 shows a terminal device 800 provided by an embodiment of the present application.
  • the terminal device can execute the methods in the above embodiments and examples, and has the functions of the terminal device 700 shown in FIG. 7 .
  • the terminal device 800 includes: a processor 801 , a memory 802 , a display screen 803 , and a transceiver 804 .
  • the processor 801 is interconnected with the memory 802 , the display screen 803 and the transceiver 804 .
  • the processor 801, the memory 802, the display screen 803 and the transceiver 804 can be connected to each other through a bus;
  • the bus can be a peripheral component interconnect (PCI) bus or an extended industry standard structure. (extended industry standard architecture, EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
  • the terminal device may further include a camera 805
  • the processor 801 may collect an image of the scene where the user is currently located through the camera 805 in the terminal device 800 .
  • the transceiver 804 is used to communicate and interact with other devices. For example, when the terminal device 800 collects the image of the scene where the user is currently located by using an external camera, the terminal device 800 acquires the image of the scene where the user is currently located by the external camera device through the transceiver 804 .
  • the transceiver 804 may be a Bluetooth module, a WiFi module, an RF circuit, or the like.
  • the processor 801 is configured to implement the methods provided by the foregoing embodiments and examples. For details, reference may be made to the descriptions in the foregoing embodiments, which will not be repeated here.
  • the display screen 803 is used to display a user interface.
  • the terminal device 800 may further include an audio circuit 806 for receiving and sending voice signals.
  • the memory 802 is used to store program instructions and data (for example, a reference model image of a makeup part) and the like.
  • the program instructions may include program code, which includes instructions for computer operation.
  • the memory 802 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
  • the processor 801 executes the program stored in the memory 802, and implements the above functions through the above components, thereby finally implementing the methods provided by the above embodiments.
  • the embodiments of the present application further provide a computer program, which when the computer program runs on a computer, causes the computer to execute the methods provided by the above embodiments.
  • the embodiments of the present application further provide a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a computer, the computer executes the methods provided by the above embodiments.
  • an embodiment of the present application further provides a chip, where the chip is used to read a computer program stored in a memory to implement the methods provided by the above embodiments.
  • the embodiments of the present application provide a chip system, where the chip system includes a processor for supporting a computer apparatus to implement the functions involved in the terminal device in the methods provided by the above embodiments.
  • the chip system further includes a memory for storing necessary programs and data of the computer device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the embodiments of the present application provide an information prompting method and a terminal device.
  • the image of the user's target makeup part is collected by the camera device, and the image is displayed on the display.
  • the collected image of the target makeup part is displayed in the first display area of the screen;
  • the terminal device determines the target reference model image of the target makeup part, and displays the target reference model image in the second display area of the display screen;
  • the image of the target makeup part and the target reference model image are described, and the makeup guide information for instructing the user to perform makeup treatment on the target makeup part is determined.
  • the terminal device can flexibly provide the user with accurate makeup guidance information according to the situation of the user's own target makeup site, so that the user can modify their own target makeup site according to the makeup guidance information, not only can It can effectively beautify the user's own target makeup parts, and can also improve the user's use experience.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that a computer can access.
  • the computer readable medium may include RAM, ROM, electrically erasable programmable read only memory (EEPROM), compact disc read-Only memory (CD- ROM) or other optical disk storage, magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer. also. Any connection can be appropriately made into a computer-readable medium.
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • CD- ROM compact disc read-Only memory
  • Any connection can be appropriately made into a computer-readable medium.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, wherein Disks usually reproduce data magnetically, while discs use lasers to reproduce data optically. Combinations of the above should also be included within the scope of computer-readable media.

Landscapes

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

Abstract

An information prompting method and a terminal device, which relate to the technical field of terminals. The method comprises: after a terminal device determines a target makeup part, acquiring an image of the target makeup part of a user, and displaying, in a first display area, the acquired image of the target makeup part; the terminal device determining a target reference model image of the target makeup part, and displaying the target reference model image in a second display area; and the terminal device determining, according to the image of the target makeup part and the target reference model image, makeup guidance information for guiding the user to apply makeup to the target makeup part, and prompting the user for the makeup guidance information. Therefore, by means of the method, a terminal device can provide accurate makeup guidance information to a user according to the condition of a target makeup part of the user, so that the user modifies the target makeup part thereof, such that not only can the user's own target makeup part be effectively beautified, but the user experience can also be improved.

Description

一种信息提示方法和终端设备Information prompting method and terminal device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2020年06月28日提交中国专利局、申请号为202010595130.X、申请名称为“一种信息提示方法和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 28, 2020 with the application number 202010595130.X and the application name "An information prompting method and terminal device", the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种信息提示方法和终端设备。The present application relates to the field of terminal technologies, and in particular, to an information prompting method and a terminal device.
背景技术Background technique
随着人们生活质量的提高,良好的容颜在日常生活和工作中起着越来越重要的作用,因此,越来越多的用户开始通过护肤、化妆、修眉等手段来提高自己的容颜。其中,存在很多美妆类的智能软件,用户可以通过这些智能软件对包含人脸的照片进行调整或化妆,从而美化照片中的人脸,然而,这些智能软件并不能实现对真人脸的美化。With the improvement of people's quality of life, good appearance plays an increasingly important role in daily life and work. Therefore, more and more users begin to improve their appearance through skin care, makeup, eyebrow trimming and other means. Among them, there are many intelligent software for beauty and makeup, through which users can adjust or make up photos containing human faces, so as to beautify the faces in the photos. However, these intelligent software cannot realize the beautification of real faces.
发明内容SUMMARY OF THE INVENTION
本申请提供一种信息提示方法和终端设备,用于指导用户进行化妆,从而美化真人。The present application provides an information prompting method and a terminal device, which are used to instruct a user to make makeup, so as to beautify a real person.
第一方面,本发明实施例提供一种信息提示方法,该方法适用于具有化妆指导功能的终端设备。该方法包括以下步骤:In a first aspect, an embodiment of the present invention provides an information prompting method, which is suitable for a terminal device with a makeup guidance function. The method includes the following steps:
终端设备确定目标化妆部位后,获取用户的所述目标化妆部位的图像,并在显示屏的第一显示区域中显示获取的所述目标化妆部位的图像;然后所述终端设备确定所述目标化妆部位的目标参考模型图像,并在所述显示屏的第二显示区域中显示所述目标参考模型图像;其次,所述终端设备再根据所述第一显示区域显示的所述目标化妆部位的图像和所述第二显示区域中显示的所述目标参考模型图像,确定指导用户对所述第一显示区域显示的目标化妆部位进行化妆的化妆指导信息;最后,所述终端设备向用户提示所述化妆指导信息。After determining the target makeup part, the terminal device acquires the image of the user's target makeup part, and displays the acquired image of the target makeup part in the first display area of the display screen; then the terminal device determines the target makeup part The target reference model image of the part is displayed, and the target reference model image is displayed in the second display area of the display screen; secondly, the terminal device displays the image of the target makeup part according to the first display area. and the target reference model image displayed in the second display area to determine makeup instruction information for instructing the user to apply makeup to the target makeup part displayed in the first display area; finally, the terminal device prompts the user to Makeup instructions.
通过该方法,终端设备可以根据用户图像中的目标化妆部位和目标参考模型图像中的目标部位,生成化妆指导信息,并向所述用户提示。所述用户可以根据所述终端设备显示的所述化妆指导信息,一步步对自身的该目标化妆部位进行化妆操作,从而保证所述用户修饰后的自身该目标化妆部位状态和目标参考模型图像中的目标部位基本一致。Through this method, the terminal device can generate makeup guidance information according to the target makeup part in the user image and the target part in the target reference model image, and prompt the user. The user can perform a makeup operation on the target makeup part of himself step by step according to the makeup guide information displayed by the terminal device, so as to ensure that the user's modified state of the target makeup part of himself and the target reference model image are in the image. The target sites are basically the same.
在一个可能的设计中,所述终端设备确定所述目标化妆部位之前,所述终端设备还需要接收到用户的第一指令,然后根据所述第一指令启动化妆指导功能;最后所述终端设备在启动化妆指导功能之后确定所述目标化妆部位。In a possible design, before the terminal device determines the target makeup part, the terminal device also needs to receive a first instruction from the user, and then start the makeup guide function according to the first instruction; finally, the terminal device The target makeup site is determined after the makeup guidance function is activated.
通过该设计,所述终端设备在摄像装置采集的图像确定目标化妆部位的用户图像之前,所述终端设备还应该接收到用户的指令,根据所述用户的指令,先启动终端设备的化妆指导功能,以便在该化妆指导功能的界面中进行化妆指导;并且,确定所述用户需要修饰的目标化妆部位,使得所述终端设备在该目标化妆部位的化妆指导界面中,针对性的指导用 户对自身的目标化妆部位进行修饰,从而有效的美化用户自身的该目标化妆部位。Through this design, before the terminal device determines the user image of the target makeup part from the image collected by the camera, the terminal device should also receive the user's instruction, and according to the user's instruction, first start the makeup guidance function of the terminal device , so as to carry out makeup guidance in the interface of the makeup guidance function; and, determine the target makeup part that the user needs to modify, so that the terminal device can guide the user in the makeup guidance interface of the target makeup part in a targeted manner. The target makeup part of the user is modified, so as to effectively beautify the target makeup part of the user.
在一个可能的设计中,所述终端设备确定所述目标化妆部位时,所述终端设备可以在所述显示屏中显示多个化妆部位,以及在显示的所述多个化妆部位中的一个化妆部位被选中时,确定被选中的所述化妆部位作为所述目标化妆部位;或者所述终端设备在所述显示屏中显示人脸图像,以及在显示的所述人脸图像中的一个部位被选中时,确定被选中的所述部位作为所述目标化妆部位。In a possible design, when the terminal device determines the target makeup site, the terminal device may display multiple makeup sites on the display screen, and apply makeup on one of the displayed multiple makeup sites When the part is selected, the selected makeup part is determined as the target makeup part; or the terminal device displays a face image on the display screen, and a part in the displayed face image is When selected, the selected part is determined as the target makeup part.
通过该设计,用户可以采用其中任意一种方式在所述显示屏中确定目标化妆部位,从而可以提高用户的使用体验。Through this design, the user can use any of the methods to determine the target makeup part in the display screen, so that the user's experience can be improved.
在一个可能的设计中,所述终端设备还可以获取化妆效果图像,该化妆效果图像为所述用户根据所述化妆指导信息对所述第一显示区域显示的所述目标化妆部位进行化妆后的图像,所述终端设备还可以在所述显示屏的第三显示区域中显示获取的所述化妆效果图像。In a possible design, the terminal device may further acquire a makeup effect image, where the makeup effect image is obtained after the user performs makeup on the target makeup part displayed in the first display area according to the makeup guide information. image, the terminal device may also display the acquired makeup effect image in the third display area of the display screen.
通过该设计,所述终端设备通过在显示屏的第三显示区域显示化妆效果图像,以便用户可以实时清晰的观看自身目标化妆部位的整体修饰情况,提高了用户的使用体验。Through this design, the terminal device displays the makeup effect image in the third display area of the display screen, so that the user can clearly view the overall modification of the target makeup part in real time, and the user experience is improved.
在一个可能的设计中,所述终端设备确定所述目标化妆部位的目标参考模型图像时,所述终端设备可能通过接收用于指示所述终端设备自动选择参考模型图像的第二指令,然后根据所述第二指令在存储的对应所述目标化妆部位的多个参考模型图像中,确定所述目标参考模型图像;或者所述终端设备还可能通过接收用于指示用户手动选择参考模型图像的第三指令,然后在所述第二显示区域中显示存储的对应所述目标化妆部位的多个参考模型图像,将显示的多个参考模型图像中被选中的参考模型图像确定为所述目标参考模型图像。In a possible design, when the terminal device determines the target reference model image of the target makeup part, the terminal device may receive a second instruction for instructing the terminal device to automatically select a reference model image, and then according to The second instruction determines the target reference model image from among the stored multiple reference model images corresponding to the target makeup part; or the terminal device may also receive the first instruction for instructing the user to manually select the reference model image. three instructions, and then display the stored multiple reference model images corresponding to the target makeup part in the second display area, and determine the selected reference model image among the displayed multiple reference model images as the target reference model image.
通过该设计,所述终端设备既可以为用户的目标化妆部位匹配最相似的目标参考模型图像,实现自动为用户确定所述目标参考模型图像;所述终端设备还可以根据用户自身的选择,确定所述目标参考模型图像,从而提高用户的使用体验。Through this design, the terminal device can not only match the most similar target reference model image for the target makeup part of the user, so as to automatically determine the target reference model image for the user; the terminal device can also determine the target reference model image according to the user's own choice. The target reference model image, thereby improving the user experience.
在一个可能的设计中,所述终端设备确定所述第一显示区域中显示的所述目标化妆部位的图像,与在所述第二显示区域中显示的所述目标参考模型图像的相似度;然后所述终端设备根据所述相似度,确定相似度信息;最后所述终端设备向用户提示所述相似度信息。In a possible design, the terminal device determines the similarity between the image of the target makeup part displayed in the first display area and the image of the target reference model displayed in the second display area; Then, the terminal device determines similarity information according to the similarity; finally, the terminal device prompts the user for the similarity information.
通过该设计,所述终端设备自动计算用户的目标化妆部位和所述目标参考模型图像中目标化妆部位的相似度,将该相似度信息提示给用户。因此,所述终端设备可以直观的告知所述用户修饰后的自身的目标化妆部位和目标参考模型图像中的目标化妆部位的接近程度,使得用户根据该相似度信息知晓修饰后的自身目标化妆部位是否有改善,从而保证用户的使用体验。Through this design, the terminal device automatically calculates the similarity between the user's target makeup part and the target makeup part in the target reference model image, and prompts the user with the similarity information. Therefore, the terminal device can intuitively inform the user of the proximity of the modified target makeup part and the target makeup part in the target reference model image, so that the user can know the modified target makeup part according to the similarity information Whether there are improvements to ensure the user experience.
在一个可能的设计中,所述终端设备向所述用户提示所述化妆指导信息时,所述终端设备可以通过在所述第一显示区域显示所述化妆指导信息;或者所述终端设备还可以通过语音方式播放所述化妆指导信息。In a possible design, when the terminal device prompts the user with the makeup guide information, the terminal device may display the makeup guide information in the first display area; or the terminal device may also The makeup instruction information is played by voice.
通过该设计,所述终端设备可以以显示的方式直观告知用户所述化妆指导信息,还可以通过语音方式向用户播放所述化妆指导信息,这种灵活的提示方式,既能保证用户能准确的接收到所述化妆指导信息,也可提高用户的使用体验。Through this design, the terminal device can intuitively inform the user of the makeup instruction information in a display mode, and can also play the makeup instruction information to the user in a voice manner. This flexible prompt method can not only ensure that the user can accurately After receiving the makeup instruction information, the user's experience can also be improved.
在一个可能的设计中,所述化妆指导信息可以包括以下至少一项:修饰工具、修饰位置、修饰方向,以及修饰过程中的注意事项。通过该方法,用户可以获知具体的修饰工具、 修饰位置、修饰方向,以及修饰过程中的注意事项中任意至少一项,从而用户可以根据具体的提示信息对自身的目标化妆部位进行修饰,保证用户对自身目标化妆部位进行准确的修饰,也为用户避免了修饰过程中很可能产生的不必要的失误。In a possible design, the makeup instruction information may include at least one of the following: grooming tools, grooming positions, grooming directions, and precautions during grooming. Through this method, the user can know the specific modification tool, modification position, modification direction, and any at least one of the precautions in the modification process, so that the user can modify his own target makeup part according to the specific prompt information to ensure that the user The accurate modification of the target makeup part of the user also avoids unnecessary mistakes that may occur in the modification process for the user.
第二方面,本申请实施例还提供了一种终端设备,包括显示屏、一个或多个处理器,一个或多个存储器;其中,所述一个或多个存储器存储有一个或多个计算机程序和数据,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述终端设备执行本申请第一方面中提供的方法。In a second aspect, an embodiment of the present application further provides a terminal device, including a display screen, one or more processors, and one or more memories; wherein, the one or more memories store one or more computer programs and data, the one or more computer programs include instructions that, when executed by the one or more processors, cause the terminal device to perform the method provided in the first aspect of the present application.
第三方面,本申请实施例中还提供一种计算机存储介质,该存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时可实现第一方面或其中任意一种设计提供的方法。In a third aspect, an embodiment of the present application further provides a computer storage medium, where a software program is stored in the storage medium, and when the software program is read and executed by one or more processors, the first aspect or any one of them can be implemented method provided by a design.
第四方面,本申请实施例还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或其中任一种设计提供的方法。In a fourth aspect, embodiments of the present application further provide a computer program product including instructions, which, when run on a computer, enables the computer to execute the method provided by the first aspect or any one of the designs.
第五方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持终端设备实现上述第一方面中所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存终端设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。In a fifth aspect, an embodiment of the present application provides a chip system, where the chip system includes a processor for supporting a terminal device to implement the functions involved in the first aspect above. In a possible design, the chip system further includes a memory for storing necessary program instructions and data of the terminal device. The chip system may be composed of chips, or may include chips and other discrete devices.
第六方面,本申请实施例还提供了一种终端设备上的界面,其中,所述终端设备具有显示屏、存储器,以及处理器,所述处理器用于执行存储在所述存储器中的计算机程序,所述图形用户界面包括所述终端设备执行第一方面所述的方法时显示的界面。In a sixth aspect, an embodiment of the present application further provides an interface on a terminal device, wherein the terminal device has a display screen, a memory, and a processor, and the processor is configured to execute a computer program stored in the memory , the graphical user interface includes an interface displayed when the terminal device executes the method of the first aspect.
附图说明Description of drawings
图1为本发明一实施例提供的一种终端设备的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention;
图2为本发明一实施例提供的一种终端设备的软件结构示意图;FIG. 2 is a schematic diagram of a software structure of a terminal device according to an embodiment of the present invention;
图3为本发明提供的一种信息提示方法的流程图;3 is a flowchart of a method for prompting information provided by the present invention;
图4A为本发明一实施例提供的一种化妆指导的终端设备;4A is a terminal device for makeup guidance provided by an embodiment of the present invention;
图4B为本发明一实施例提供的另一种化妆指导的终端设备;FIG. 4B is another terminal device for makeup guidance provided by an embodiment of the present invention;
图5A为本发明一实施例提供的一种化妆指导的初始化界面的示意图;5A is a schematic diagram of an initialization interface of a makeup guide provided by an embodiment of the present invention;
图5B为本发明一实施例提供的一种化妆指导的初始化界面的示意图;5B is a schematic diagram of an initialization interface of a makeup guide provided by an embodiment of the present invention;
图5C为本发明一实施例提供的一种眉毛化妆指导的初始显示界面的示意图;5C is a schematic diagram of an initial display interface of an eyebrow makeup guide provided by an embodiment of the present invention;
图5D为本发明一实施例提供的一种选择目标眉毛显示界面的示意图;5D is a schematic diagram of a display interface for selecting target eyebrows according to an embodiment of the present invention;
图5E为本发明一实施例提供的另一种选择目标眉毛显示界面的示意图;5E is a schematic diagram of another display interface for selecting target eyebrows provided by an embodiment of the present invention;
图5F为本发明一实施例提供的一种眉毛化妆指导的完成显示界面的示意图;5F is a schematic diagram of a completed display interface for eyebrow makeup guidance provided by an embodiment of the present invention;
图5G为本发明一实施例提供的一种眉毛修剪指导信息显示界面的示意图;5G is a schematic diagram of a display interface for eyebrow trimming guidance information provided by an embodiment of the present invention;
图5H为本发明一实施例提供的一种眉毛描画指导信息显示界面的示意图;5H is a schematic diagram of a display interface for eyebrow drawing guidance information provided by an embodiment of the present invention;
图5I为本发明一实施例提供的一种眉毛描画指导信息显示界面的示意图;5I is a schematic diagram of an eyebrow drawing instruction information display interface provided by an embodiment of the present invention;
图5J为本发明一实施例提供的一种眉毛化妆指导完成显示界面的示意图;5J is a schematic diagram of an eyebrow makeup guide completion display interface provided by an embodiment of the present invention;
图6A为本发明一实施例提供的一种嘴唇化妆指导的显示界面的示意图;6A is a schematic diagram of a display interface of a lip makeup guide provided by an embodiment of the present invention;
图6B为本发明一实施例提供的一种选择目标嘴唇显示界面的示意图;6B is a schematic diagram of a display interface for selecting a target lip according to an embodiment of the present invention;
图6C为本发明一实施例提供的另一种选择目标嘴唇显示界面的示意图;6C is a schematic diagram of another display interface for selecting a target lip according to an embodiment of the present invention;
图6D为本发明一实施例提供的一种嘴唇化妆指导的完整显示界面的示意图;6D is a schematic diagram of a complete display interface of a lip makeup guide provided by an embodiment of the present invention;
图6E为本发明一实施例提供的一种嘴唇化妆指导信息的显示界面的示意图;6E is a schematic diagram of a display interface for lip makeup guidance information provided by an embodiment of the present invention;
图7为本发明一实施例提供的一种信息提示的终端设备装置示意图;FIG. 7 is a schematic diagram of a terminal device device for information prompting according to an embodiment of the present invention;
图8为本发明一实施例提供的一种信息提示的终端设备结构示意图。FIG. 8 is a schematic structural diagram of a terminal device for information prompting according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the embodiments of the present application will be explained, so as to facilitate the understanding of those skilled in the art.
1)、本申请实施例涉及的终端设备,又可以称为用户设备(user equipment,UE),例如,智能手机、平板电脑、智能镜子,智能家居设备等各类同时具备摄像头和显示屏的智能设备等。终端设备中可以安装各种具有指导化妆功能的应用(application,简称app)。1) The terminal equipment involved in the embodiments of the present application may also be called user equipment (UE), for example, smart phones, tablet computers, smart mirrors, smart home equipment and other smart devices with cameras and display screens. equipment, etc. Various applications (application, app for short) with a function of guiding makeup can be installed in the terminal device.
2)、本申请实施例涉及的多个,是指大于或等于两个。2) The multiple involved in the embodiments of the present application refers to greater than or equal to two.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should it be understood as indicating or implied order.
本申请实施例提供了一种信息提示方法,该方法适用于终端设备中。图1示出了一种可能的终端设备的硬件结构示意图。参阅图1所示,所述终端设备100可以包括:处理器110、内部存储器121、外部存储器接口122、摄像头130、显示屏140、传感器模块150、音频模块160、扬声器161、受话器162、麦克风163、耳机接口164、用户标识模块(subscriber identification module,SIM)卡接口171、通用串行总线(universal serial bus,USB)接口172、充电管理模块180、电源管理模块181、电池182、移动通信模块191和无线通信模块192等部件。The embodiment of the present application provides an information prompting method, which is applicable to a terminal device. FIG. 1 shows a schematic diagram of the hardware structure of a possible terminal device. Referring to FIG. 1 , the terminal device 100 may include: a processor 110 , an internal memory 121 , an external memory interface 122 , a camera 130 , a display screen 140 , a sensor module 150 , an audio module 160 , a speaker 161 , a receiver 162 , and a microphone 163 , earphone interface 164, subscriber identification module (SIM) card interface 171, universal serial bus (USB) interface 172, charging management module 180, power management module 181, battery 182, mobile communication module 191 and wireless communication module 192 and other components.
本领域技术人员可以理解,图1中示出的终端设备的结构并不构成对终端设备的限定,本申请实施例提供的终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Those skilled in the art can understand that the structure of the terminal device shown in FIG. 1 does not constitute a limitation on the terminal device, and the terminal device provided in this embodiment of the present application may include more or less components than those shown in the figure, or a combination of certain components may be included. some components, or a different arrangement of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
下面结合图1对所述终端设备100的各个构成部件进行具体的介绍:Each component of the terminal device 100 will be specifically introduced below with reference to FIG. 1 :
其中,处理器110可以包括一个或多个处理单元。例如,处理器110可以包括应用处理器(application processor,AP)、调制解调器、图像处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。在具体实现时,不同的处理单元可以是独立的器件,也可以集成在一个或多个器件中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a video codec, digital signal processing A digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. During specific implementation, different processing units may be independent devices, or may be integrated in one or more devices.
在一些实施例中,处理器110中还可以设置缓存器,用于存储程序和/或数据。需要说明的是,本申请实施例中的程序又可以称之为程序指令、计算机程序、代码指令、指令等,对此不作限定。示例的,处理器110中的缓存器可以为高速缓冲存储器。该缓存器可以用于保存处理器110刚用过的、生成的、或循环使用的程序和/或数据。如果处理器110需要使用该程序和/或数据,可从该缓存器中直接调用。有助于减少处理器110获取程序或数据的时间,从而提高系统的效率。In some embodiments, a buffer may also be provided in the processor 110 for storing programs and/or data. It should be noted that the programs in the embodiments of the present application may also be referred to as program instructions, computer programs, code instructions, instructions, etc., which are not limited thereto. For example, the buffer in the processor 110 may be a cache memory. The buffer may be used to store programs and/or data that have just been used, generated, or recycled by the processor 110 . If the processor 110 needs to use the program and/or data, it can be called directly from the buffer. It helps to reduce the time for the processor 110 to acquire programs or data, thereby improving the efficiency of the system.
内部存储器121可以用于存储程序和/或数据。在一些实施例中,内部存储器121包括存储程序区和存储数据区。其中,存储程序区可以用于存储操作系统(如Android、IOS等操作系统)、至少一个功能所需的程序(比如化妆指导功能)等。存储数据区可以用于存储终端设备100使用过程中所创建、预先设置和/或获取的数据(比如参考人脸部位模型 图像、通过网络接收到的图像)等。示例的,处理器110可以通过调用内部存储器121中存储的程序和/或数据,使得终端设备100执行相应的方法,从而实现一种或多种功能。例如,处理器110调用内部存储器中的某些程序和/或数据,使得终端设备100执行本申请实施例中所提供的化妆指导方法,采用视频跟踪技术自动检测人脸部位、或者自动匹配目标参考部位图像等,无需用户手动操作,有助于提高用户体验。其中,内部存储器121可以采用高速随机存取存储器、和/或非易失性存储器等。例如,非易失性存储器可以包括一个或多个磁盘存储器件、闪存器件、和/或通用闪存存储器(universal flash storage,UFS)等中的至少一个。Internal memory 121 may be used to store programs and/or data. In some embodiments, the internal memory 121 includes a stored program area and a stored data area. The program storage area may be used to store an operating system (such as an operating system such as Android, IOS, etc.), a program required for at least one function (such as a makeup instruction function), and the like. The storage data area may be used to store data created, preset and/or acquired during the use of the terminal device 100 (such as a reference face model image, an image received through a network), and the like. For example, the processor 110 may cause the terminal device 100 to execute a corresponding method by calling programs and/or data stored in the internal memory 121, thereby implementing one or more functions. For example, the processor 110 invokes certain programs and/or data in the internal memory, so that the terminal device 100 executes the makeup guidance method provided in the embodiments of the present application, and automatically detects the face position or automatically matches the target by using the video tracking technology. Reference part images, etc., do not require manual operation by the user, which helps to improve the user experience. Wherein, the internal memory 121 may adopt a high-speed random access memory, and/or a non-volatile memory, or the like. For example, the non-volatile memory may include at least one of one or more magnetic disk storage devices, flash memory devices, and/or universal flash storage (UFS), among others.
外部存储器接口122可以用于连接外部存储卡(例如,Micro SD卡),实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口122与处理器110通信,实现数据存储功能。例如,终端设备100可以通过外部存储器接口122将采集的用户图像等内容保存在外部存储卡中。The external memory interface 122 can be used to connect an external memory card (eg, a Micro SD card), so as to expand the storage capacity of the terminal device 100 . The external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function. For example, the terminal device 100 may save the collected user images and other contents in an external memory card through the external memory interface 122 .
摄像头130可以用于捕获动、静态图像等,实现所述终端设备100的拍摄功能。通常情况下,摄像头130包括镜头和图像传感器。其中,物体通过镜头生成的光学图像投射到图像传感器上,然后转换为电信号进行后续处理。示例的,图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。需要说明的是,本申请实施例中,终端设备100可以包括一个或多个摄像头130,对此不作限定。The camera 130 can be used to capture moving and still images, etc., to realize the shooting function of the terminal device 100 . Typically, the camera 130 includes a lens and an image sensor. Among them, the optical image generated by the object through the lens is projected onto the image sensor, and then converted into an electrical signal for subsequent processing. Illustratively, the image sensor may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The image sensor converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. It should be noted that, in this embodiment of the present application, the terminal device 100 may include one or more cameras 130 , which is not limited.
显示屏140可以包括显示面板。所述显示屏140即为所述终端设备100的显示系统,用于呈现界面,实现人机交互。例如,所述显示屏140可用于显示由用户输入的信息或提供给用户的信息以及所述终端设备100的各种菜单,另外,所述显示屏还用于显示所述摄像头130采集到的画面。The display screen 140 may include a display panel. The display screen 140 is the display system of the terminal device 100, and is used for presenting an interface and realizing human-computer interaction. For example, the display screen 140 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device 100 , in addition, the display screen can also be used to display the picture captured by the camera 130 .
可选的,所述显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。示例的,终端设备100可以通过GPU、显示屏140、应用处理器等实现显示功能。Optionally, the display panel may adopt a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode. (active-matrix organic light emitting diode, AMOLED), flexible light emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (quantum dot light emitting diodes, QLED) and so on. For example, the terminal device 100 may implement a display function through a GPU, a display screen 140, an application processor, and the like.
传感器模块150可以包括一个或多个传感器。例如,触摸传感器150A、压力传感器150B等。在另一些实施例中,传感器模块150还可以包括陀螺仪、加速度传感器、指纹传感器、环境光传感器、距离传感器、接近光传感器、骨传导传感器、温度传感器、定位传感器(如全球定位系统(global positioning system,GPS)传感器)等中的一个或多个,对此不作限定。 Sensor module 150 may include one or more sensors. For example, touch sensor 150A, pressure sensor 150B, and the like. In other embodiments, the sensor module 150 may further include a gyroscope, an acceleration sensor, a fingerprint sensor, an ambient light sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, a temperature sensor, a positioning sensor (eg, a global positioning system). system, GPS) sensor), etc., which are not limited.
触摸传感器150A也可称为“触控面板”,可用于收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸传感器150A上或在所述触摸传感器150A附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,所述触摸传感器150A可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给所述处理器110,并能接 收所述处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸传感器150A。The touch sensor 150A may also be referred to as a "touch panel" and may be used to collect user touch operations on or near it (such as the user using a finger, a stylus, etc., any suitable object or accessory on the touch sensor 150A or at any location). operation near the touch sensor 150A described above), and drive the corresponding connection device according to the preset program. Optionally, the touch sensor 150A may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch sensor 150A can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
当触摸传感器150A设置于显示屏140时,由触摸传感器150A与显示屏140组成触摸屏,也可以称为“触控屏”。触摸传感器150A用于检测作用于其上或附近的触摸操作。触摸传感器150A可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型,从而终端设备100可以通过显示屏140提供与触摸操作相关的视觉输出等。例如,终端设备100可以响应于触摸器150A检测到作用于其上或附近的触摸操作,进行界面切换,并在显示屏140上显示切换后的界面。在另一些实施例中,触摸传感器150A也可以设置于终端设备100的表面,与显示屏140所处的位置不同。When the touch sensor 150A is disposed on the display screen 140, the touch sensor 150A and the display screen 140 form a touch screen, which may also be referred to as a "touch screen". The touch sensor 150A is used to detect a touch operation on or near it. The touch sensor 150A can transmit the detected touch operation to the application processor to determine the type of touch event, so that the terminal device 100 can provide visual output related to the touch operation and the like through the display screen 140 . For example, the terminal device 100 may perform interface switching in response to detecting a touch operation on or near the touch device 150A, and display the switched interface on the display screen 140 . In other embodiments, the touch sensor 150A may also be disposed on the surface of the terminal device 100 , which is different from the position where the display screen 140 is located.
压力传感器150B用于感受压力信号,可以将压力信号转换成电信号。示例的,压力传感器150B可以设置于显示屏140。其中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 150B is used to sense pressure signals, and can convert the pressure signals into electrical signals. For example, the pressure sensor 150B may be disposed on the display screen 140 . Among them, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
终端设备100可以通过音频模块160、扬声器161、受话器162、麦克风163、耳机接口164以及应用处理器等实现音频功能。例如,音频播放功能、语音录用功能等。The terminal device 100 may implement audio functions through an audio module 160, a speaker 161, a receiver 162, a microphone 163, an earphone interface 164, an application processor, and the like. For example, audio playback function, voice recording function, etc.
音频模块160可以用于对音频数据进行数模转换、和/或模数转换,还可以用于对音频数据进行编码和/或解码。示例的,音频模块160可以设置于处理器110中,或将音频模块160的部分功能模块设置于处理器110中。The audio module 160 may be used to perform digital-to-analog conversion and/or analog-to-digital conversion on audio data, and may also be used to encode and/or decode audio data. For example, the audio module 160 may be provided in the processor 110 , or some functional modules of the audio module 160 may be provided in the processor 110 .
扬声器161,也称“喇叭”,用于将音频数据转换为声音,并播放声音。例如,终端设备100可以通过扬声器161接收用户语音指示、或者发出语音提示等。The speaker 161, also called "speaker", is used to convert audio data into sound and play the sound. For example, the terminal device 100 may receive the user's voice instruction through the speaker 161, or send out a voice prompt or the like.
受话器162,也称“听筒”,用于将音频数据转换成声音,并播放声音。例如,当终端设备100接听电话时,可以通过将受话器162靠近人耳进行接听。The receiver 162, also referred to as an "earpiece", is used to convert audio data into sound and to play back the sound. For example, when the terminal device 100 answers a call, it can be answered by placing the receiver 162 close to the human ear.
麦克风163,也称“话筒”、“传声器”,用于采集声音(例如周围环境声音,包括人发出的声音、设备发出的声音等),并将声音转换为音频电数据。当用户通过人嘴靠近麦克风163发出声音时,麦克风163采集用户发出的声音。需要说明的是,终端设备100可以设置至少一个麦克风163。例如,终端设备100中设置两个麦克风163,除了采集声音,还可以实现降噪功能。又示例如,终端设备100中还可以设置三个、四个或更多个麦克风163,从而可以在实现声音采集、降噪的基础上,还可以实现声音来源的识别、或定向录音功能等。The microphone 163, also called "microphone" or "microphone", is used to collect sound (eg, ambient sound, including sounds made by people, sounds made by equipment, etc.), and convert the sound into audio electrical data. When the user makes a sound through the human mouth close to the microphone 163, the microphone 163 collects the sound made by the user. It should be noted that the terminal device 100 may be provided with at least one microphone 163 . For example, two microphones 163 are provided in the terminal device 100, which can implement a noise reduction function in addition to collecting sound. For another example, three, four or more microphones 163 may be provided in the terminal device 100, so that on the basis of sound collection and noise reduction, sound source identification or directional recording functions can also be implemented.
耳机接口164用于连接有线耳机。耳机接口164可以是USB接口170,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口、美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。The earphone jack 164 is used to connect wired earphones. The earphone interface 164 may be a USB interface 170, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface, etc. .
SIM卡接口171用于连接SIM卡。SIM卡可以通过插入SIM卡接口171,或从SIM卡接口115拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。The SIM card interface 171 is used to connect a SIM card. The SIM card can be contacted and separated from the terminal device 100 by inserting the SIM card interface 171 or pulling it out from the SIM card interface 115 . The terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
USB接口172是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口172可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放声音。示例的,USB接口172除了可以为耳机接口164以外,还可以用于连接其他终端设备,例如AR设备、计算机等。The USB interface 172 is an interface that conforms to the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 172 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play sound through the headphones. Exemplarily, the USB interface 172 can be used to connect other terminal devices, such as AR devices, computers, and the like, in addition to the headphone interface 164 .
充电管理模块180用于从充电器接收充电输入。其中,充电器可以是无线充电器,也 可以是有线充电器。在一些有线充电的实施例中,充电管理模块180可以通过USB接口170接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块180可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块180为电池182充电的同时,还可以通过电源管理模块180为终端设备100供电。The charging management module 180 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 180 may receive charging input from the wired charger through the USB interface 170 . In some wireless charging embodiments, the charging management module 180 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 180 charges the battery 182 , the terminal device 100 can also be powered by the power management module 180 .
电源管理模块181用于连接电池182、充电管理模块180与处理器110。电源管理模块181接收电池182和/或充电管理模块180的输入,为处理器110、内部存储器121、摄像头130、显示屏140等供电。电源管理模块181还可以用于监测电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块181也可以设置于处理器110中。在另一些实施例中,电源管理模块181和充电管理模块180也可以设置于同一个器件中。The power management module 181 is used for connecting the battery 182 , the charging management module 180 and the processor 110 . The power management module 181 receives input from the battery 182 and/or the charging management module 180, and supplies power to the processor 110, the internal memory 121, the camera 130, the display screen 140, and the like. The power management module 181 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 181 may also be provided in the processor 110 . In other embodiments, the power management module 181 and the charging management module 180 may also be provided in the same device.
移动通信模块191可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块191可以包括滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 191 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the terminal device 100 . The mobile communication module 191 may include a filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
所述无线通信模块192主要用于通过无线通信标准或协议,与其他设备进行通信。所述无线通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。示例性的,所述无线通信模块192可以但不限于包含至少一项或组合:RF电路、WiFi模块、蓝牙模块。其中物理通信接口,用于实现所述终端设备100与其他设备的物理连接,例如,所述物理通信接口与所述其他设备的通信接口通过电缆进行连接,以实现所述终端设备100和其他设备之间的数据传输。所述无线通信模块192可以是集成至少一个通信处理模块的一个或多个器件。The wireless communication module 192 is mainly used to communicate with other devices through wireless communication standards or protocols. Described wireless communication standard or agreement, including but not limited to global system of mobile communication (global system of mobile communication, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA) ), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc. Exemplarily, the wireless communication module 192 may include, but is not limited to, at least one or a combination of: an RF circuit, a WiFi module, and a Bluetooth module. The physical communication interface is used to realize the physical connection between the terminal device 100 and other devices. For example, the physical communication interface and the communication interface of the other device are connected through a cable to realize the terminal device 100 and other devices. data transfer between. The wireless communication module 192 may be one or more devices integrating at least one communication processing module.
在一些实施例中,终端设备100的天线1和移动通信模块191耦合,天线2和无线通信模块192耦合,使得终端设备100可以与其他设备通信。具体的,移动通信模块191可以通过天线1与其它设备通信,无线通信模块191可以通过天线2与其它设备通信。In some embodiments, the antenna 1 of the terminal device 100 is coupled with the mobile communication module 191, and the antenna 2 is coupled with the wireless communication module 192, so that the terminal device 100 can communicate with other devices. Specifically, the mobile communication module 191 can communicate with other devices through the antenna 1 , and the wireless communication module 191 can communicate with other devices through the antenna 2 .
图2示出了本申请实施例提供的终端设备的软件结构框图。如图2所示,终端设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),安卓运行时(Android runtime)和系统库,以及内核层。FIG. 2 shows a software structural block diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 2 , the software structure of the terminal device may be a layered architecture, for example, the software may be divided into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer (framework, FWK), an Android runtime (Android runtime) and system libraries, and a kernel layer.
应用程序层可以包括一系列应用程序。如图2中所示,应用程序层可以包括设置、电话、图库、LED灯以及三方应用程序等。其中,三方应用程序可以包括导航,音乐,视频、智能镜子等。The application layer can include a series of applications. As shown in Figure 2, the application layer may include settings, phone, gallery, LED lights, and third-party applications, among others. Among them, third-party applications can include navigation, music, video, smart mirrors, etc.
应用程序框架层为应用程序层中的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。如图2所示,应用程序框架层可以包括:窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer can include some predefined functions. As shown in Figure 2, the application framework layer may include: window manager, content provider, view system, telephony manager, resource manager, notification manager, and so on.
窗口管理器,为窗口提供窗口管理服务(window manager service)。窗口管理器可以 获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。Window manager, which provides window manager service for windows. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。界面可以由一个或多个控件组成的。例如,包括短信通知图标的界面,可以包括显示文字的控件以及显示图片的控件。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. An interface can consist of one or more controls. For example, the interface including the SMS notification icon may include controls for displaying text and controls for displaying pictures.
电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The telephony manager is used to provide the communication function of the terminal device. For example, the management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件等等。The resource manager provides various resources for the application, such as localization strings, icons, images, layout files, etc.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。其中,核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The Android runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system. Among them, the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of the Android system. The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:显示模块、模板匹配模块、图像匹配模块、化妆指导模块、媒体库(media libraries),图像处理库等。A system library can include multiple functional modules. For example: display module, template matching module, image matching module, makeup instruction module, media libraries, image processing libraries, etc.
显示模块,用于接收到图像显示指令后,在显示屏中进行显示,使得用户可以直观看到,从而实现人机交互。例如显示模块通过显示屏显示终端设备存储的参考模型图像,或者从摄像装置采集的图像中检测到的用户图像;又例如显示模块通过所述显示屏显示化妆指导界面,包括:菜单和化妆指导的提示信息等等。The display module is used for displaying on the display screen after receiving the image display instruction, so that the user can see it intuitively, thereby realizing human-computer interaction. For example, the display module displays the reference model image stored by the terminal device through the display screen, or the user image detected from the image collected by the camera device; for example, the display module displays the makeup guidance interface through the display screen, including: menu and makeup guidance information, etc.
模板匹配模块,用于在存储的多个目标化妆部位的参考模型图像中,匹配得到与包含用户的目标化妆部位的用户图像最相似的目标参考模型图像。The template matching module is used for matching the stored reference model images of multiple target makeup parts to obtain a target reference model image that is most similar to the user image containing the user's target makeup parts.
图像匹配模块,用于将用户图像与目标参考模型图像进行匹配,得到匹配结果,所述匹配结果用于确定二者的相似度信息以及确定化妆指导信息。The image matching module is used for matching the user image and the target reference model image to obtain a matching result, and the matching result is used to determine the similarity information of the two and determine the makeup guide information.
化妆指导模块,用于根据图像匹配模块的匹配结果,确定化妆指导信息。The makeup guidance module is used for determining makeup guidance information according to the matching result of the image matching module.
媒体库支持多种格式的音频、视频的回放和录制,以及支持打开多种格式的静态图像等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of audio and video in multiple formats, and supports opening of still images in multiple formats. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,传感器驱动、摄像头驱动,音频驱动等,用于驱动硬件层中的硬件。The kernel layer is the layer between hardware and software. The kernel layer at least includes display drivers, sensor drivers, camera drivers, audio drivers, etc., which are used to drive the hardware in the hardware layer.
硬件层可以包括各类传感器、显示屏、摄像头等。The hardware layer can include various sensors, displays, cameras, etc.
如图3所示,为本申请实施例提供的一种信息提示方法的流程图。本申请实施例提供的方法可以但不限于适用于图1所示的终端设备100的硬件架构中和图2所示的终端设备的软件架构中。如图3所示,该方法的流程包括:As shown in FIG. 3 , it is a flowchart of an information prompting method provided by an embodiment of the present application. The methods provided in the embodiments of the present application may be, but are not limited to, applicable to the hardware architecture of the terminal device 100 shown in FIG. 1 and the software architecture of the terminal device shown in FIG. 2 . As shown in Figure 3, the process of the method includes:
S301:终端设备中处理器确定目标化妆部位,通过摄像装置获取用户的所述目标化妆部位的图像,并控制显示屏的第一显示区域显示获取的所述目标化妆部位的图像。S301: The processor in the terminal device determines a target makeup part, acquires an image of the user's target makeup part through a camera device, and controls a first display area of the display screen to display the acquired image of the target makeup part.
其中,所述摄像装置可以为内置于所述终端设备内部的摄像头,还可以为与所述终端设备建立通信连接的外部摄像装置,本申请对此不作限定。另外,当所述摄像装置为外部摄像装置时,所述处理器需要通过移动通信模块或无线通信模块等接收所述摄像装置采集的图像。The camera device may be a camera built in the terminal device, or may be an external camera device that establishes a communication connection with the terminal device, which is not limited in this application. In addition, when the camera is an external camera, the processor needs to receive the image collected by the camera through a mobile communication module or a wireless communication module.
具体的,所述处理器可以采用视频跟踪技术,以确保所述摄像装置采集的图像中包含所述目标化妆部位的图像。Specifically, the processor may use a video tracking technology to ensure that the image captured by the camera device includes the image of the target makeup part.
在本申请实施例中,所述处理器可以在接收到用户的第一指令时,根据所述第一指令启动化妆指导功能;然后,所述处理器根据用户的选择确定目标化妆部位,或者所述处理器在所述化妆指导功能仅针对所述目标化妆部位时,所述处理器可以根据所述化妆指导功能,直接确定目标化妆部位。In this embodiment of the present application, the processor may start the makeup guide function according to the first instruction when receiving the first instruction of the user; then, the processor determines the target makeup part according to the user's selection, or When the makeup guide function is only for the target makeup part, the processor may directly determine the target makeup part according to the makeup guide function.
在实际应用中,所述终端设备开始化妆指导功能之后,所述处理器根据用户的选择确定所述目标化妆部位,包括:所述处理器在所述显示屏中显示多个化妆部位,以及在显示的所述多个化妆部位中的一个化妆部位被用户选中时,确定被选中的所述化妆部位作为所述目标化妆部位;或者所述处理器在所述显示屏中显示人脸图像,以及在显示的所述人脸图像中的一个部位被用户选中时,确定被选中的所述部位作为所述目标化妆部位。In an actual application, after the terminal device starts the makeup guidance function, the processor determines the target makeup part according to the user's selection, including: the processor displays a plurality of makeup parts on the display screen, and When one of the displayed makeup parts is selected by the user, the selected makeup part is determined as the target makeup part; or the processor displays a face image on the display screen, and When a part in the displayed face image is selected by the user, the selected part is determined as the target makeup part.
可选的,所述终端设备还可以通过所述显示屏的第三显示区域显示化妆效果图像,所述化妆效果图像为所述用户根据所述化妆指导信息对所述第一显示区域显示的所述目标化妆部位进行化妆后的图像。Optionally, the terminal device may also display a makeup effect image through a third display area of the display screen, where the makeup effect image is all the makeup effect images displayed by the user on the first display area according to the makeup guide information. The image after makeup is applied to the target makeup site.
S302:所述处理器确定所述目标化妆部位的目标参考模型图像,并在所述显示屏的第二显示区域中显示所述目标参考模型图像。S302: The processor determines a target reference model image of the target makeup part, and displays the target reference model image in the second display area of the display screen.
在本申请实施例中,所述处理器可以但不限于通过以下两种方式,确定所述目标化妆部位的目标参考模型图像:In this embodiment of the present application, the processor may, but is not limited to, determine the target reference model image of the target makeup part in the following two ways:
方式一:所述处理器接收第二指令,所述第二指令用于指示自动选择参考模型图像;所述处理器根据所述第二指令在存储的对应所述目标化妆部位的多个参考模型图像中,确定所述目标参考模型图像。Manner 1: the processor receives a second instruction, the second instruction is used to instruct to automatically select a reference model image; the processor stores a plurality of reference models corresponding to the target makeup part according to the second instruction In the image, the target reference model image is determined.
示例性的,在所述处理器确定目标化妆部位后,所述处理器根据接收到的第二指令,自动将目标化妆部位与内部存储器中存储的多个参考模型图像中的目标部位分别进行匹配,从所述多个参考模型图像中确定与所述目标化妆部位的图像最匹配的参考模型图像,将所述最匹配的参考模型图像作为所述目标参考模型图像。Exemplarily, after the processor determines the target makeup part, the processor automatically matches the target makeup part with the target parts in the multiple reference model images stored in the internal memory according to the second instruction received. , determining a reference model image that best matches the image of the target makeup part from the plurality of reference model images, and using the best matching reference model image as the target reference model image.
方式二:所述处理器接收第三指令,所述第三指令用于指示手动选择参考模型图像;所述处理器通过所述第二显示区域显示存储的对应所述目标化妆部位的多个参考模型图像,将显示的多个参考模型图像中被用户选中的参考模型图像确定为所述目标参考模型图像。Manner 2: the processor receives a third instruction, the third instruction is used to instruct to manually select a reference model image; the processor displays a plurality of stored references corresponding to the target makeup part through the second display area The model image, the reference model image selected by the user among the displayed multiple reference model images is determined as the target reference model image.
示例性的,在所述处理器确目标化妆部位后,所述处理器接收到第三指令后,在所述显示屏中显示所述内部存储器中存储的多个目标化妆部位的参考模型图像,所述用户可以在所述显示屏的第二显示区域显示的多个参考模型图像中手动选择任意一个参考模型图像,所述处理器将该所述用户手动选择的参考模型图像作为目标参考模型图像。Exemplarily, after the processor determines the target makeup part, after the processor receives the third instruction, the display screen displays the reference model images of the plurality of target makeup parts stored in the internal memory, The user may manually select any one of the reference model images from the plurality of reference model images displayed in the second display area of the display screen, and the processor may use the reference model image manually selected by the user as the target reference model image. .
可选的,所述处理器确定所述第一显示区域中显示的所述目标化妆部位的图像,与在所述第二显示区域中显示的所述目标参考模型图像的相似度;然后所述处理器根据所述相似度,确定相似度信息;最后,所述处理器通过在所述显示屏中显示所述相似度信息,和/或,通过扬声器播放包含所述相似度信息的语音,以实现向用户提示所述相似度信息等。Optionally, the processor determines the similarity between the image of the target makeup part displayed in the first display area and the image of the target reference model displayed in the second display area; and then the The processor determines similarity information according to the similarity; finally, the processor displays the similarity information on the display screen, and/or plays the voice containing the similarity information through the speaker, so as to It is implemented to prompt the similarity information and the like to the user.
具体的,所述处理器根据用户的所述目标化妆部位的图像和所述目标参考模型图像,可以实时的计算用户的所述目标化妆部位和所述目标参考模型图像中的所述目标化妆部位的相似度,得到相似度分值,通过将该相似度分值显示在所述显示屏中,以向用户提示 所述相似度信息等。Specifically, the processor can calculate the target makeup part of the user and the target makeup part in the target reference model image in real time according to the image of the user's target makeup part and the target reference model image The similarity is obtained, and the similarity score is obtained, and the similarity score is displayed on the display screen to prompt the similarity information and the like to the user.
示例性的,所述处理器可以但不限于通过以下方法,计算用户的所述目标化妆部位和所述目标参考模型图像中的目标化妆部位的相似度分值:Exemplarily, the processor may, but is not limited to, calculate the similarity score between the target makeup part of the user and the target makeup part in the target reference model image by the following method:
a1:所述处理器根据所述用户的所述目标化妆部位的颜色和所述目标参考模型图像中的目标化妆部位的颜色,计算颜色相似度;a1: the processor calculates the color similarity according to the color of the target makeup part of the user and the color of the target makeup part in the target reference model image;
a2:所述处理器根据所述用户的所述目标化妆部位的形状和所述目标参考模型图像中的目标化妆部位的形状,计算形状相似度;a2: the processor calculates the shape similarity according to the shape of the target makeup part of the user and the shape of the target makeup part in the target reference model image;
a3:所述处理器根据所述颜色相似度和所述形状相似度,计算所述相似度分值。例如,所述终端设备计算颜色相似度和形状相似度的加权和,得到所述相似度分值,其中,颜色相似度的权重可以为10%,形状相似度的权重可以为90%。a3: The processor calculates the similarity score according to the color similarity and the shape similarity. For example, the terminal device calculates the weighted sum of color similarity and shape similarity to obtain the similarity score, where the weight of color similarity may be 10%, and the weight of shape similarity may be 90%.
S303:所述处理器根据所述显示屏的第一显示区域显示的所述目标化妆部位的图像和所述显示屏的第二显示区域中显示的所述目标参考模型图像,确定化妆指导信息,所述化妆指导信息用于指导用户对所述第一显示区域显示的所述目标化妆部位进行化妆。S303: The processor determines makeup instruction information according to the image of the target makeup part displayed in the first display area of the display screen and the target reference model image displayed in the second display area of the display screen, The makeup instruction information is used to instruct the user to apply makeup to the target makeup part displayed in the first display area.
可选的,所述化妆指导信息包括以下至少一项:修饰工具、修饰位置、修饰方向,以及修饰过程中的注意事项。Optionally, the makeup instruction information includes at least one of the following items: modification tools, modification positions, modification directions, and precautions during modification.
示例性的,所述处理器可以在接收到所述用户的化妆指导指令后,执行S303,例如,所述处理器在S302确定目标参考模型图像之后,通过在显示屏中显示开启指导按钮;当所述用户点击该开启指导按钮后,执行S303。Exemplarily, the processor may execute S303 after receiving the makeup instruction instruction from the user. For example, after the processor determines the target reference model image in S302, the instruction button is displayed on the display screen; when After the user clicks the opening guide button, S303 is executed.
S304:所述终端设备向用户提示所述化妆指导信息。S304: The terminal device prompts the user with the makeup guide information.
可选,所述终端设备在所述显示屏的第一显示区域显示所述化妆指导信息,和/或通过所述扬声器播放包含所述化妆指导信息的语音,向所述用户进行提示。Optionally, the terminal device displays the makeup guide information in the first display area of the display screen, and/or plays a voice containing the makeup guide information through the speaker to prompt the user.
示例性的,在所述第一显示区域显示的目标化妆部位的图像中的目标化妆部位位置,显示目标参考模型图像中目标化妆部位的美型边框,用以加强对比。Exemplarily, at the position of the target makeup part in the image of the target makeup part displayed in the first display area, a beauty-shaped frame of the target makeup part in the image of the target reference model is displayed to enhance the contrast.
又示例性的,所述化妆指导信息可以直接显示在所述目标化妆部位的图像中目标化妆部位的周围,或者,所述显示屏中还包含用于显示所述化妆指导信息的显示区域,当所述处理器生成所述化妆指导信息后,在所述显示区域中显示所述化妆指导信息。In another example, the makeup guidance information may be directly displayed around the target makeup site in the image of the target makeup site, or the display screen further includes a display area for displaying the makeup guidance information. After the processor generates the makeup instruction information, the makeup instruction information is displayed in the display area.
在本申请实施例中,所述用户根据所述终端设备提示的所述化妆指导信息,进行每一步化妆;所述终端设备通过摄像装置,实时采集用户修饰后的用户图像,并更新显示到显示屏中;然后,所述终端设备更新S301中显示屏显示的化妆效果图像以及S302中显示屏显示的分值,以及根据更新后的用户图像以及所述目标参考模型图像继续生成下一个化妆指导信息提示给用户。In the embodiment of the present application, the user performs each step of makeup according to the makeup instruction information prompted by the terminal device; the terminal device collects the user image modified by the user in real time through the camera device, and updates the display to the display Then, the terminal device updates the makeup effect image displayed on the display screen in S301 and the score displayed on the display screen in S302, and continues to generate the next makeup guide information according to the updated user image and the target reference model image prompt to the user.
可选的,当所述处理器确定显示屏显示所述目标化妆部位在所述用户图像和所述目标参考模型图像中的相似度分值为100后,或者所述处理器接收到用户的结束指令后,又或者所述处理器确定用户无操作的时间超过设定时长后,关闭所述化妆指导功能。Optionally, after the processor determines that the display screen shows that the similarity score of the target makeup part in the user image and the target reference model image is 100, or the processor receives the end of the user. After the instruction is given, or after the processor determines that the user does not operate for more than a set period of time, the makeup guide function is turned off.
本申请实施例提供了一种信息提示方法。在该方法中,首先,终端设备确定目标化妆部位后,获取用户的目标化妆部位的图像,并在显示屏的第一显示区域显示采集的所述目标化妆部位的图像;然后,所述终端设备确定所述目标化妆部位的目标参考模型图像,并在所述显示屏的第二显示区域显示所述目标参考模型图像;最后所述终端设备可以根据用户的所述目标化妆的图像和目标参考模型图像,确定化妆指导信息,并向用户提示化妆指导信息。因此,通过该方法,所述终端设备可以根据用户自身的目标化妆部位的实际情况, 为所述用户确定具体的化妆指导信息,并且以灵活的方式向用户提示化妆指导信息,使得用户根据该化妆指导信息对自身的目标化妆部位,一步步的进行修饰,从而不仅可以有效美化用户自身的目标化妆部位,也可以提高用户的使用体验。The embodiment of the present application provides an information prompting method. In this method, firstly, after determining the target makeup part, the terminal device acquires the image of the user's target makeup part, and displays the collected image of the target makeup part in the first display area of the display screen; then, the terminal device Determine the target reference model image of the target makeup part, and display the target reference model image in the second display area of the display screen; finally, the terminal device can be based on the user's target makeup image and target reference model image, determine the makeup guide information, and present the makeup guide information to the user. Therefore, through this method, the terminal device can determine specific makeup instruction information for the user according to the actual situation of the user's own target makeup site, and prompt the user with makeup instruction information in a flexible manner, so that the user can make makeup according to the makeup instruction information. The guidance information modifies one's own target makeup parts step by step, so that not only can the user's own target makeup parts be effectively beautified, but also the user's use experience can be improved.
基于以上实施例提供的信息提示的方法,本申请还提供了一种眉毛化妆指导的实例。可选的,本实例中涉及的终端设备可以为图4A所示的智能镜子(例如,Amiro智能化妆镜、天猫精灵Queen等),或者为图4B所示的安装有化妆指导功能的智能手机,需要说明的是,该终端设备中包含有摄像头(如图4A或4B所示的前置摄像头),或者该终端设备能够连接外部摄像装置。下面仅以如图4B所示的智能手机为例,并结合附图5A-图5J对该实例的具体流程进行说明。Based on the information prompting method provided by the above embodiments, the present application also provides an example of eyebrow makeup guidance. Optionally, the terminal device involved in this example may be the smart mirror shown in FIG. 4A (for example, Amiro smart makeup mirror, Tmall Elf Queen, etc.), or the smart phone shown in FIG. 4B with the makeup guidance function installed. , it should be noted that the terminal device includes a camera (the front camera shown in FIG. 4A or 4B ), or the terminal device can be connected to an external camera device. The following only takes the smartphone as shown in FIG. 4B as an example, and the specific flow of the example will be described with reference to FIGS. 5A to 5J .
b1:终端设备接收用户的化妆指导功能启动指令,根据所述指令启动所述终端设备的化妆指导功能。其中,所述终端设备启动化妆指导功能后,在显示屏中显示化妆指导的初始化界面。b1: The terminal device receives an instruction for starting the makeup guidance function from the user, and starts the makeup guidance function of the terminal device according to the instruction. Wherein, after the terminal device starts the makeup guidance function, an initialization interface of makeup guidance is displayed on the display screen.
可选的,所述终端设备可以直接根据用户的指令,打开化妆指导应用,从而启动所述化妆指导功能;或者所述终端设备可以在打开某个应用(例如,智能镜子应用、相机应用等)后,启动该应用中的所述化妆指导功能。例如,如图4B所示,当所述终端设备打开智能镜子应用后,显示智能镜子主界面,当用户点击化妆指导功能按钮时,所述终端设备可以打开该应用中的化妆指导功能。Optionally, the terminal device can directly open a makeup guide application according to the user's instruction, thereby starting the makeup guide function; or the terminal device can open an application (for example, a smart mirror application, a camera application, etc.) Then, activate the makeup guide function in the application. For example, as shown in FIG. 4B , when the terminal device opens the smart mirror application, the main interface of the smart mirror is displayed, and when the user clicks the makeup guidance function button, the terminal device can open the makeup guidance function in the application.
示例性的,所述初始化界面中可以显示性别和化妆部位两个菜单,如图5A所示。用户可以按照实际需求选择需要化妆指导的用户对象的性别。用户可以根据化妆部位菜单选择具体需要化妆指导的目标化妆部位,例如,眼睛、眉毛、鼻子,嘴唇、脸颊等。Exemplarily, two menus of gender and makeup parts may be displayed in the initialization interface, as shown in FIG. 5A . The user can select the gender of the user object who needs makeup guidance according to actual needs. The user can select the target makeup parts that need makeup guidance, such as eyes, eyebrows, nose, lips, cheeks, etc., according to the makeup part menu.
又例如,所述初始化界面还可以显示性别菜单和一个显示有多个化妆部位的人脸模型图像,如图5B所示,用户可以点击性别菜单选择用户对象的性别后,可以在该人脸模型图像中选择具体需要化妆指导的目标化妆部位。For another example, the initialization interface can also display a gender menu and an image of a face model displaying multiple makeup parts. As shown in FIG. 5B, the user can click the gender menu to select the gender of the user object, and then the face model can be displayed on the face model. Select the target makeup parts that need makeup guidance in the image.
本实施例以用户选择用户对象的性别为女为例。In this embodiment, the user selects the gender of the user object as female as an example.
b2:所述终端设备在初始化界面中获取用户输入的性别和目标化妆部位,然后在显示屏中显示该目标化妆部位的化妆指导界面,并打开所述终端设备上方的摄像头,通过所述摄像头采集图像。以下以用户选择的目标化妆部位为眉毛为例进行说明。b2: The terminal device obtains the gender and the target makeup part input by the user in the initialization interface, then displays the makeup guide interface of the target makeup part on the display screen, and turns on the camera above the terminal device, and collects data through the camera image. The following description will be given by taking the eyebrows as the target makeup site selected by the user as an example.
以图5A所示的初始化界面为例,用户可以通过手指、触笔或输入设备点击显示屏中显示的化妆部位菜单,然后在显示的多个化妆部位中选中眉毛,这样所述终端设备接收到该操作后,可以确定目标化妆部位为眉毛。Taking the initialization interface shown in FIG. 5A as an example, the user can click on the makeup parts menu displayed on the display screen through a finger, a stylus or an input device, and then select the eyebrows among the multiple makeup parts displayed, so that the terminal device receives the After this operation, the target makeup site can be determined to be the eyebrows.
再以图5B所示的初始化界面为例,用户可以通过点击显示屏中人脸模型图像中的眉毛,这样所述终端设备在接收到该操作后,可以确定目标化妆部位为眉毛。Taking the initialization interface shown in FIG. 5B as an example again, the user can click on the eyebrows in the face model image on the display screen, so that the terminal device can determine that the target makeup part is the eyebrows after receiving the operation.
示例性的,眉毛化妆指导界面如图5C所示,该化妆指导界面中至少包含以下部分:用于显示摄像头采集的用户眉毛的第一显示区域,用于显示作为化妆指导参考的目标眉毛的第二显示区域。可选的,为了便于用户可以实时观看整体化妆效果,该化妆指导界面中还可以包含用于显示整体化妆效果的第三显示区域。另外,为了直观的为用户显示用户眉毛与目标眉毛的相似程度,该化妆指导界面中还可以包含用于显示化妆后的用户眉毛实时分值的第四显示区域。Exemplarily, the eyebrow makeup guidance interface is shown in FIG. 5C , and the makeup guidance interface at least includes the following parts: a first display area for displaying the user’s eyebrows collected by the camera, and a first display area for displaying the target eyebrows as a reference for makeup guidance. Second display area. Optionally, in order to facilitate the user to view the overall makeup effect in real time, the makeup guidance interface may further include a third display area for displaying the overall makeup effect. In addition, in order to intuitively display the degree of similarity between the user's eyebrows and the target eyebrows for the user, the makeup guidance interface may further include a fourth display area for displaying the real-time scores of the user's eyebrows after makeup.
由于目标眉毛可以通过终端设备自动匹配或用户选择两种方案,因此,在图5C所示的眉毛化妆指导界面中,所述第二显示区域中显示有两个按钮——自动匹配按钮和手动选 择按钮。Since the target eyebrows can be automatically matched by the terminal device or the user can select two schemes, therefore, in the eyebrow makeup guidance interface shown in FIG. 5C , two buttons are displayed in the second display area—the automatic matching button and the manual selection button.
其中,当用户选择自动匹配按钮时,终端设备可以将采集的用户眉毛与存储的多个参考眉毛模型进行匹配,然后在多个参考眉毛模型中选择与用户眉毛最相似的参考眉毛模型为所述目标眉毛。Wherein, when the user selects the automatic matching button, the terminal device can match the collected eyebrows of the user with multiple stored reference eyebrow models, and then select the reference eyebrow model most similar to the user's eyebrows among the multiple reference eyebrow models as the Target eyebrows.
当用户选择手动选择按钮时,所述终端设备可以在所述第二显示区域内或显示屏中显示存储的多个参考眉毛模型供用户选择,在用户选择某个参考眉毛模型后,将该参考眉毛模型作为目标眉毛。When the user selects the manual selection button, the terminal device may display multiple reference eyebrow models stored in the second display area or on the display screen for the user to select. After the user selects a certain reference eyebrow model, the reference The eyebrow model serves as the target eyebrow.
b3:所述终端设备在所述摄像头采集的图像中检测到用户眉毛后,并在眉毛化妆指导界面中的第一显示区域显示用户眉毛,如图5C所示。b3: After the terminal device detects the user's eyebrows in the image collected by the camera, the terminal device displays the user's eyebrows in the first display area in the eyebrow makeup guidance interface, as shown in FIG. 5C .
可选的,所述终端设备在检测到用户眉毛后,可以采用视频跟踪技术,持续、实时且稳定地在第一显示区域内显示用户眉毛。Optionally, after detecting the user's eyebrows, the terminal device may use a video tracking technology to continuously, real-time and stably display the user's eyebrows in the first display area.
另外,为了便于用户可以实时观看整体化妆效果,所述终端设备可以在所述第三显示区域内显示整体化妆效果。其中,所述整体化妆效果的图像可以为摄像头采集的图片中的人脸;或者包含在第一显示区域内实时显示的用户眉毛和对该用户眉毛进行水平翻转得到的虚拟眉毛;又或者包含摄像头采集的图片中的一双用户眉毛,如图5C中所示。In addition, in order to facilitate the user to view the overall makeup effect in real time, the terminal device may display the overall makeup effect in the third display area. Wherein, the image of the overall makeup effect may be the face in the picture collected by the camera; or include the user's eyebrows displayed in real time in the first display area and the virtual eyebrows obtained by horizontally flipping the user's eyebrows; or include the camera A pair of user eyebrows in the captured picture, as shown in Figure 5C.
b4:所述终端设备确定目标眉毛,并在所述眉毛化妆指导界面中的第二显示区域中显示所述目标眉毛。b4: The terminal device determines the target eyebrow, and displays the target eyebrow in the second display area in the eyebrow makeup guidance interface.
示例性的,所述目标眉毛可以通过自动匹配的方式确定。即在图5C所示的眉毛化妆指导界面中,当用户点击自动匹配按钮时,所述终端设备将实时检测到的用户眉毛与存储的多个参考眉毛模型进行匹配,然后在多个参考眉毛模型中选择与用户眉毛最相似的参考眉毛模型为所述目标眉毛。Exemplarily, the target eyebrows can be determined by means of automatic matching. That is, in the eyebrow makeup guidance interface shown in FIG. 5C, when the user clicks the automatic matching button, the terminal device matches the user's eyebrows detected in real time with the stored multiple reference eyebrow models, and then matches the multiple reference eyebrow models in the multiple reference eyebrow models. The reference eyebrow model most similar to the user's eyebrow is selected as the target eyebrow.
又示例性的,所述目标眉毛可以通过手动选择的方式确定。即在图5C所示的眉毛化妆指导界面中,当用户点击手动选择按钮时,所述终端设备可以在第二显示区域中显示多个参考眉毛模型的图片,如图5D所示。用户可以通过滑动操作查看所有的参考眉毛模型的图片,通过点击任一个参考眉毛模型的图片,选择该参考眉毛模型为目标眉毛。In another example, the target eyebrows may be determined by manual selection. That is, in the eyebrow makeup guidance interface shown in FIG. 5C , when the user clicks the manual selection button, the terminal device can display a plurality of pictures of reference eyebrow models in the second display area, as shown in FIG. 5D . The user can view all the pictures of the reference eyebrow model through the sliding operation, and select the reference eyebrow model as the target eyebrow by clicking on any picture of the reference eyebrow model.
又或者,当用户点击手动选择按钮时,所述终端设备可以跳转到一个新的目标眉毛选择界面,在该界面中仅显示所述多个参考眉毛模型的图片,如图5E所示。用户可以通过点击任一个参考眉毛模型的图片,并通过点击确定按钮,选择该参考眉毛模型为目标眉毛。当用户选择目标眉毛后,在通过返回按钮返回到眉毛化妆指导界面。Alternatively, when the user clicks the manual selection button, the terminal device may jump to a new target eyebrow selection interface, in which only pictures of the multiple reference eyebrow models are displayed, as shown in FIG. 5E . The user can select the reference eyebrow model as the target eyebrow by clicking on any picture of the reference eyebrow model and by clicking the OK button. After the user selects the target eyebrow, the user returns to the eyebrow makeup guide interface through the return button.
示例性的,第二显示区域中显示所述目标眉毛的眉毛化妆指导界面可以如图5F所示。Exemplarily, the eyebrow makeup guide interface displaying the target eyebrow in the second display area may be as shown in FIG. 5F .
可选的,所述终端设备可以根据所述第一显示区域中显示的用户眉毛,和第二显示区域中显示的目标眉毛,实时进行相似度计算,得到相似度分值,并将该相似度分值显示在眉毛化妆指导界面中的第四显示区域,如图5F所示。Optionally, the terminal device may perform a similarity calculation in real time according to the user's eyebrows displayed in the first display area and the target eyebrows displayed in the second display area to obtain a similarity score, and calculate the similarity. The score is displayed in the fourth display area in the eyebrow makeup guidance interface, as shown in FIG. 5F .
示例性的,所述终端设备可以但不限于通过以下方法,计算用户眉毛和目标眉毛的相似度分值:Exemplarily, the terminal device may calculate the similarity score between the user's eyebrows and the target eyebrows by, but not limited to, the following methods:
所述终端设备根据用户眉毛的颜色和目标眉毛的颜色,计算颜色相似度;The terminal device calculates the color similarity according to the color of the user's eyebrows and the color of the target eyebrows;
所述终端设备根据用户眉毛的形状和目标眉毛的形状,计算形状相似度;The terminal device calculates the shape similarity according to the shape of the user's eyebrows and the shape of the target eyebrows;
所述终端设备根据颜色相似度和形状相似度,计算所述相似度分值。例如,所述终端设备计算颜色相似度和形状相似度的加权和,得到所述相似度分值,其中,颜色相似度的权重可以为10%,形状相似度的权重可以为90%。The terminal device calculates the similarity score according to the color similarity and the shape similarity. For example, the terminal device calculates the weighted sum of color similarity and shape similarity to obtain the similarity score, where the weight of color similarity may be 10%, and the weight of shape similarity may be 90%.
b5:所述终端设备根据第一显示区域中显示的用户眉毛与第二显示区域中显示的目标眉毛,生成化妆指导信息,并将所述化妆指导信息通过语音和/或显示的方式,向用户进行提示。b5: The terminal device generates makeup guide information according to the user's eyebrows displayed in the first display area and the target eyebrows displayed in the second display area, and sends the makeup guide information to the user by voice and/or display. prompt.
示例性的,所述终端设备可以在接收到用户的化妆指导指令后,执行b5。例如,所述终端设备在b4确定目标眉毛之后,显示化妆按钮,如图5F所示;当用户点击该化妆按钮后,执行b5。Exemplarily, the terminal device may execute b5 after receiving the user's makeup instruction instruction. For example, after b4 determines the target eyebrow, the terminal device displays a makeup button, as shown in FIG. 5F ; when the user clicks the makeup button, execute b5.
示例性的,所述终端设备可以在第一显示区域中的用户眉毛的位置显示目标眉毛的美型边框,用以加强对比,参阅图5G所示。Exemplarily, the terminal device may display the beauty-shaped frame of the target eyebrow at the position of the user's eyebrow in the first display area to enhance the contrast, as shown in FIG. 5G .
可选的,所述化妆指导信息中可以但不限于包含以下至少一项或组合:修饰工具、修饰位置、修饰方向,以及修饰过程中的注意事项。例如,所述工具可以包括:眉刀、眉笔、眉刷,修眉剪。如果工具包含眉笔或眉刷的情况下,还包含眉笔颜色或眉粉颜色等信息。Optionally, the makeup instruction information may include, but is not limited to, at least one or a combination of the following: modification tools, modification positions, modification directions, and precautions during modification. For example, the tools may include: eyebrow knife, eyebrow pencil, eyebrow brush, eyebrow trimmer. If the tool contains an eyebrow pencil or eyebrow brush, it also contains information such as the color of the eyebrow pencil or the color of the eyebrow powder.
示例性的,所述化妆指导信息可以直接显示在第一显示区域中所述用户眉毛的周围,如图5G所示。又例如,所述眉毛化妆指导界面中还包含用于显示化妆指导信息的第五显示区域,当所述终端设备生成所述化妆指导信息后,在所述第五显示区域中显示所述化妆指导信息。Exemplarily, the makeup guide information may be directly displayed around the user's eyebrows in the first display area, as shown in FIG. 5G . For another example, the eyebrow makeup guidance interface further includes a fifth display area for displaying makeup guidance information. After the terminal device generates the makeup guidance information, the makeup guidance is displayed in the fifth display area. information.
b6:所述终端设备通过摄像头,实时采集用户修饰后的用户眉毛,并更新显示到第一显示区域中;然后所述终端设备更新整体化妆效果的图像、分值,以及根据更新后的用户眉毛以及所述目标眉毛继续生成下一个化妆指导信息提示给用户,参阅图5H和图5I所示。以上过程可以参考以上步骤的描述,此处不再赘述。b6: The terminal device collects the user's modified eyebrows in real time through the camera, and updates and displays them in the first display area; then the terminal device updates the image and score of the overall makeup effect, and according to the updated user's eyebrows And the target eyebrow continues to generate the next makeup guide information to prompt the user, as shown in FIG. 5H and FIG. 5I . For the above process, reference may be made to the description of the above steps, which will not be repeated here.
可选的,在所述眉毛化妆指导界面中,用户根据第一显示区域中显示的化妆指导信息进行每一步化妆,所述第一显示区域实时更新显示从所述摄像头采集的图像中检测到的用户眉毛,并实时更新所述化妆指导界面的第四显示区域中显示的分值,所述第四显示区域中显示的分值随着用户每化妆一步,随之增高。Optionally, in the eyebrow makeup guidance interface, the user performs each step of makeup according to the makeup guidance information displayed in the first display area, and the first display area is updated and displayed in real time and detected from the images collected by the camera. The eyebrows of the user are updated, and the score displayed in the fourth display area of the makeup guidance interface is updated in real time, and the score displayed in the fourth display area increases with each step of makeup by the user.
示例性的,如图5H所示,在所述眉毛指导化妆界面中,第一显示区域显示修眉的化妆指导信息——请用眉刀修剪边界以外的眉毛,用户可以观看眉毛化妆指导界面的第一显示区域中显示修眉的化妆指导信息,或者听到所述终端设备播放该化妆指导信息的语音,对自身的眉毛进行修理。Exemplarily, as shown in FIG. 5H , in the eyebrow makeup guidance interface, the first display area displays makeup guidance information for eyebrow trimming—please use an eyebrow knife to trim the eyebrows beyond the boundary, and the user can watch the first section of the eyebrow makeup guidance interface. A display area displays makeup instruction information for eyebrow trimming, or repairs one's own eyebrows by hearing the voice of the terminal device playing the makeup instruction information.
用户修理自身眉毛的每一步,所述终端设备通过摄像头实时采集用户眉毛的图像,并在所述第一显示区域上实时更新显示化妆眉毛,在所述第四显示区域实时更新分值。可选的,在第三显示区域实时更新显示整体眉毛。如图5I所示。In each step of repairing the user's eyebrows, the terminal device captures the image of the user's eyebrows in real time through the camera, updates and displays the makeup eyebrows in the first display area in real time, and updates the score in the fourth display area in real time. Optionally, the whole eyebrow is updated and displayed in real time in the third display area. As shown in Figure 5I.
示例性的,如图5H所示,在所述眉毛指导化妆界面中,第一显示区域显示画眉的化妆指导信息——请用眉笔描画眉峰和眉尾,用户可以观看眉毛化妆指导界面的第一显示区域中显示画眉的化妆指导信息,或者听到所述终端设备播放该化妆指导信息的语音,对自身的眉毛进行处理。Exemplarily, as shown in FIG. 5H , in the eyebrow makeup guidance interface, the first display area displays makeup guidance information for thrushes—please use an eyebrow pencil to draw eyebrow peaks and eyebrow tails, and the user can watch the first page of the eyebrow makeup guidance interface. A display area displays the makeup instruction information of the thrush, or hears the voice of the terminal device playing the makeup instruction information, and processes the own eyebrows.
用户描画自身眉峰和眉尾的每一步,所述终端设备通过摄像头实时采集用户眉毛的图像,并在第一显示区域上实时更新显示化妆眉毛,在所述第四显示区域实时更新分值。可选的,在第三显示区域实时更新显示整体眉毛。如图5H所示。At each step of the user's drawing of the eyebrow peak and eyebrow tail, the terminal device captures the image of the user's eyebrows in real time through the camera, and updates and displays the makeup eyebrows in the first display area in real time, and updates the score in the fourth display area in real time. Optionally, the whole eyebrow is updated and displayed in real time in the third display area. As shown in Figure 5H.
示例性的,如图5I所示,在所述眉毛指导化妆界面中,第一显示区域显示画眉的化妆指导信息——请用眉笔继续描画眉头,用户可以观看眉毛化妆指导界面的第一显示区域中显示画眉的化妆指导信息,或者听到所述终端设备播放该化妆指导信息的语音,对自身的 眉毛进行处理。Exemplarily, as shown in FIG. 5I , in the eyebrow makeup guidance interface, the first display area displays makeup guidance information for thrushes—please continue to draw the eyebrows with an eyebrow pencil, and the user can watch the first display of the eyebrow makeup guidance interface. The makeup guidance information of the thrush is displayed in the area, or the terminal device plays the voice of the makeup guidance information, and the eyebrows are processed.
用户描画自身眉头的每一步,所述终端设备通过摄像头实时采集用户眉毛的图像,并在第一显示区域上实时更新显示化妆眉毛,在第四显示区域实时更新分值,可选的,在第三显示区域实时更新显示整体眉毛,直至所述第一显示区域不再显示化妆指导信息。如图5J所示。For each step of the user drawing his own eyebrows, the terminal device collects the image of the user's eyebrows in real time through the camera, and updates and displays the makeup eyebrows in the first display area in real time, and updates the score in real time in the fourth display area. The three display areas update and display the entire eyebrows in real time until the first display area no longer displays makeup guide information. As shown in Figure 5J.
b7:当所述终端设备确定眉毛化妆指导界面中用户眉毛的分值为100后,或者所述终端设备接收到用户的结束指令后,又或者用户对所述终端设备无操作超过设定时长后,关闭所述眉毛化妆指导界面。b7: After the terminal device determines that the score of the user's eyebrows in the eyebrow makeup guidance interface is 100, or after the terminal device receives the user's end instruction, or after the user does not operate the terminal device for a set period of time to close the eyebrow makeup guide interface.
本实施例中,用户在开启所述终端设备的化妆指导功能后,所述终端设备确定眉毛作为目标化妆部位,通过摄像头采集用户的眉毛的图像,并在眉毛化妆指导界面的第一显示区域显示采集的眉毛的图像;然后,在眉毛化妆界面的第二显示区域显示所述终端设备为所述用户自动匹配目标眉毛,或者在所述第二显示区域显示所述用户选择的目标眉毛;并且,在所述眉毛化妆指导界面中还显示所述用户的眉毛和所述目标眉毛的相似度分值,使得所述用户可以直观了解自身的眉毛与目标眉毛的差别程度,在所述眉毛化妆指导界面中还可显示整体化妆效果,使得用户可以查看化妆后的整体效果,以保证所述用户化妆后的眉毛的对称性和完整性;最后,在所述眉毛化妆指导界面中显示化妆指导信息和/或通过语音播放的方式向用户进行提示,使得所述用户接收到该化妆指导信息后,对自身的眉毛进行修饰,不仅可以有效美化用户自身的眉毛,也可以提高用户的使用体验。In this embodiment, after the user enables the makeup guidance function of the terminal device, the terminal device determines the eyebrows as the target makeup site, collects the image of the user's eyebrows through the camera, and displays it in the first display area of the eyebrow makeup guidance interface The collected image of the eyebrows; then, in the second display area of the eyebrow makeup interface, display the target eyebrows automatically matched by the terminal device for the user, or display the target eyebrows selected by the user in the second display area; and, The similarity score between the user's eyebrows and the target eyebrows is also displayed in the eyebrow makeup guidance interface, so that the user can intuitively understand the degree of difference between his own eyebrows and the target eyebrows. In the eyebrow makeup guidance interface The overall makeup effect can also be displayed in the user interface, so that the user can view the overall effect after makeup, so as to ensure the symmetry and integrity of the eyebrows after makeup by the user; finally, makeup guidance information and/or makeup guidance information are displayed in the eyebrow makeup guidance interface. Or prompt the user through voice playback, so that the user can modify his eyebrows after receiving the makeup instruction information, which can not only effectively beautify the user's own eyebrows, but also improve the user's use experience.
基于图3所示的信息提示的方法,本申请还提供了一种嘴唇化妆指导实例。同以上眉毛化妆指导实例,本实例中继续以图4B所示的智能手机为例进行说明,下面结合图6A-图6E,对本实例的具体流程进行说明。Based on the information prompting method shown in FIG. 3 , the present application also provides an example of lip makeup instruction. Same as the above example of eyebrow makeup instruction, this example continues to take the smartphone shown in FIG. 4B as an example for description, and the specific process of this example is described below with reference to FIGS. 6A-6E .
c1:参考上述指导画眉毛的实施例中步骤b1的具体实现方式,所述终端设备直接根据用户指令打开化妆指导应用,所述终端设备的显示屏中显示化妆指导初始化界面。如图5A所示。c1: Referring to the specific implementation of step b1 in the embodiment of instructing eyebrow drawing, the terminal device directly opens the makeup guidance application according to the user instruction, and a makeup guidance initialization interface is displayed on the display screen of the terminal device. As shown in Figure 5A.
示例性的,用户可以按照实际需求确定需要化妆指导的用户对象的性别。用户可以通过在化妆指导界面中的化妆部位菜单或者人脸模型图像中,具体选择需要化妆指导的目标化妆部位,例如眉毛、眼睛、鼻子、嘴唇等。Exemplarily, the user may determine the gender of the user object who needs makeup instruction according to actual needs. The user can specifically select the target makeup parts that need makeup guidance, such as eyebrows, eyes, nose, lips, etc., through the makeup parts menu in the makeup guidance interface or the face model image.
c2:所述终端设备在初始化界面中获取用户输入的性别和目标化妆部位,然后在显示屏中显示该目标化妆部位的化妆指导界面,并打开所述终端设备上方的摄像头,通过所述摄像头采集图像。以下以用户选择的目标化妆部位为嘴唇为例进行说明。c2: The terminal device obtains the gender and the target makeup part input by the user in the initialization interface, then displays the makeup guide interface of the target makeup part on the display screen, and turns on the camera above the terminal device, and collects data through the camera image. The following description will be given by taking the target makeup part selected by the user as the lips as an example.
参考上述眉毛化妆指导实例中步骤b2的具体实现方式,在图5A或5B所示的初始化界面中,所述终端设备可以确定目标化妆部位为嘴唇。Referring to the specific implementation of step b2 in the above example of eyebrow makeup instruction, in the initialization interface shown in FIG. 5A or 5B, the terminal device may determine that the target makeup part is the lips.
c3:所述终端设备在所述摄像头采集的图像中检测到用户嘴唇后,并在嘴唇化妆指导界面中的第一显示区域显示用户嘴唇,如图6A所示。c3: After the terminal device detects the user's lips in the image collected by the camera, the terminal device displays the user's lips in the first display area in the lip makeup guidance interface, as shown in FIG. 6A .
可选的,所述终端设备在检测到用户嘴唇后,可以采用视频跟踪技术,持续、实时且稳定地在第一显示区域内显示用户嘴唇。Optionally, after detecting the user's lips, the terminal device may use a video tracking technology to continuously, real-time and stably display the user's lips in the first display area.
另外,为了便于用户可以实时观看整体化妆效果,所述终端设备可以在所述第三显示区域内显示整体化妆效果。其中,所述整体化妆效果的图像可以为摄像头采集的图片中的人脸;或者包含在第一显示区域内实时显示的用户嘴唇,以及与其关联的部位,如图6A中所示,包含用户嘴唇和用户鼻子。In addition, in order to facilitate the user to view the overall makeup effect in real time, the terminal device may display the overall makeup effect in the third display area. Wherein, the image of the overall makeup effect may be the face in the picture collected by the camera; or the user's lips displayed in real time in the first display area, and the parts associated with it, as shown in FIG. 6A , including the user's lips and the user nose.
c4:所述终端设备确定目标嘴唇,并在所述嘴唇化妆指导界面中的第二显示区域中显示所述目标嘴唇。c4: The terminal device determines a target lip, and displays the target lip in the second display area in the lip makeup guidance interface.
同以上眉毛化妆实例,所述终端设备也可以通过自动匹配和手动选择两种方式,选择所述目标嘴唇。Similar to the above eyebrow makeup example, the terminal device can also select the target lips through two methods of automatic matching and manual selection.
例如,在图6A所示的嘴唇化妆指导界面中,用户选择自动匹配按钮后,所述终端设备可以在保存的多个参考嘴唇模型中选择与用户嘴唇最相似的参考嘴唇模型为所述目标嘴唇。For example, in the lip makeup guidance interface shown in FIG. 6A, after the user selects the automatic matching button, the terminal device can select the reference lip model most similar to the user's lips from among the saved reference lip models as the target lip .
又例如,当用户点击手动选择按钮时,所述终端设备可以在第二显示区域中显示多个参考嘴唇模型的图片,如图6B所示。用户可以通过滑动操作查看所有的参考嘴唇模型的图片,通过点击任一个参考嘴唇模型的图片,选择该参考嘴唇模型为目标嘴唇。For another example, when the user clicks the manual selection button, the terminal device may display a plurality of pictures of the reference lip model in the second display area, as shown in FIG. 6B . The user can view all the pictures of the reference lip model by sliding operation, and select the reference lip model as the target lip by clicking on any picture of the reference lip model.
又或者,当用户点击手动选择按钮时,所述终端设备可以跳转到一个新的目标嘴唇选择界面,在该界面中仅显示所述多个参考嘴唇模型的图片,如图6C所示。用户可以通过点击任一个参考嘴唇模型的图片,并通过点击确定按钮,选择该参考嘴唇模型为目标嘴唇。当用户选择嘴唇后,在通过返回按钮返回到嘴唇化妆指导界面。Alternatively, when the user clicks the manual selection button, the terminal device may jump to a new target lip selection interface, where only pictures of the multiple reference lip models are displayed, as shown in FIG. 6C . The user can select the reference lip model as the target lip by clicking on any picture of the reference lip model and clicking the OK button. After the user selects the lips, the user returns to the lip makeup guide interface through the return button.
示例性的,第二显示区域中显示所述目标嘴唇的嘴唇化妆指导界面可以如图6D所示。Exemplarily, the lip makeup guide interface displaying the target lip in the second display area may be as shown in FIG. 6D .
可选的,参考上述指导画眉毛的实施例中步骤b4的相似度计算方式,所述终端设备可以根据所述第一显示区域中显示的用户嘴唇,和第二显示区域中显示的目标嘴唇,实时进行相似度计算,并得到相似度分值,并将该相似度分值显示在嘴唇化妆指导界面中的第四显示区域,如图6D所示。Optionally, with reference to the similarity calculation method in step b4 in the above-mentioned embodiment of guiding eyebrow drawing, the terminal device may, according to the user's lips displayed in the first display area and the target lips displayed in the second display area, The similarity is calculated in real time, and the similarity score is obtained, and the similarity score is displayed in the fourth display area in the lip makeup guidance interface, as shown in FIG. 6D .
c5:所述终端设备根据第一显示区域中显示的用户嘴唇与第二显示区域中显示的目标嘴唇,生成化妆指导信息,并将所述化妆指导信息通过语音和/或显示的方式,向用户进行提示。c5: The terminal device generates makeup instruction information according to the user's lips displayed in the first display area and the target lips displayed in the second display area, and sends the makeup instruction information to the user by voice and/or display. prompt.
示例性的,参考上述指导画眉毛的实施例中步骤b5的具体实现方式,所述终端设备可以嘴唇化妆指导界面的第一显示区域中的用户嘴唇的位置显示目标嘴唇的美型边框,用以加强对比,参阅图6E所示。Exemplarily, with reference to the specific implementation of step b5 in the above-mentioned embodiment of instructing eyebrow drawing, the terminal device may display the beauty-shaped border of the target lip at the position of the user's lips in the first display area of the lip makeup instruction interface, so as to For enhanced contrast, see Figure 6E.
示例性的,所述化妆指导信息可以直接显示在第一显示区域中所述用户嘴唇的周围,如图6E所示。又例如,所述嘴唇化妆指导界面中还包含用于显示化妆指导信息的第五显示区域,当所述终端设备生成所述化妆指导信息后,在所述第五显示区域中显示所述化妆指导信息。Exemplarily, the makeup guide information may be directly displayed around the user's lips in the first display area, as shown in FIG. 6E . For another example, the lip makeup guidance interface further includes a fifth display area for displaying makeup guidance information, and after the terminal device generates the makeup guidance information, the makeup guidance is displayed in the fifth display area information.
c6:所述终端设备通过摄像头,实时采集用户修饰后的用户嘴唇,并更新显示到第一显示区域中;然后所述终端设备更新整体化妆效果的图像、分值,以及根据更新后的用户嘴唇以及所述嘴唇继续生成下一个化妆指导信息提示给用户,以上过程可以参考以上步骤的描述,此处不再赘述。c6: The terminal device captures the user's modified lips in real time through the camera, and updates and displays them in the first display area; then the terminal device updates the image and score of the overall makeup effect, and according to the updated user's lips And the lips continue to generate the next makeup guide information to prompt the user. For the above process, reference may be made to the description of the above steps, which will not be repeated here.
c7:当所述终端设备确定嘴唇化妆指导界面中用户嘴唇的分值为100后,或者所述终端设备接收到用户的结束指令后,又或者用户对所述终端设备无操作超过设定时长后,关闭所述嘴唇化妆指导界面。c7: After the terminal device determines that the score of the user's lips in the lip makeup guidance interface is 100, or after the terminal device receives the user's end instruction, or after the user does not operate the terminal device for a set period of time to close the lip makeup guide interface.
本实施例中,用户在开启所述终端设备的化妆指导功能后,所述终端设备确定嘴唇作为目标化妆部位,通过摄像装置采集用户包含嘴唇的图像,并在嘴唇化妆界面的第一显示区域显示用户嘴唇的图像;然后,所述终端设备在嘴唇化妆界面的第二显示区域显示为所述用户自动匹配的目标嘴唇,或者在所述第二显示区域显示所述用户手动选择的目标嘴唇; 并且,所述嘴唇化妆指导界面中还显示所述用户的嘴唇和所述目标嘴唇的相似度分值,使得所述用户可以直观了解自身的嘴唇与目标眉毛的差别程度,在所述嘴唇化妆指导界面中还可显示整体化妆效果,使得用户可以查看化妆后的整体化妆效果,以保证所述用户化妆后的嘴唇的完整性和对称性。最后,通过在所述嘴唇化妆指导界面中显示化妆指导信息和/或通过语音播放的方式向用户进行提示,使得所述用户接收到该化妆指导信息后,对自身的嘴唇进行修饰,不仅有效的美化了用户自身的嘴唇,也提高了用户的使用体验。In this embodiment, after the user turns on the makeup guidance function of the terminal device, the terminal device determines the lips as the target makeup part, captures an image including the user's lips through a camera, and displays it in the first display area of the lip makeup interface an image of the user's lips; then, the terminal device displays the target lips automatically matched by the user in the second display area of the lip makeup interface, or displays the target lips manually selected by the user in the second display area; and , the lip makeup guidance interface also displays the similarity score between the user's lips and the target lips, so that the user can intuitively understand the degree of difference between his own lips and the target eyebrows, in the lip makeup guidance interface The overall makeup effect can also be displayed in the user interface, so that the user can view the overall makeup effect after makeup, so as to ensure the integrity and symmetry of the user's lips after makeup. Finally, by displaying makeup instruction information in the lip makeup instruction interface and/or prompting the user through voice playback, so that the user can modify his own lips after receiving the makeup instruction information, which is not only effective It beautifies the user's own lips and improves the user's experience.
上述本申请提供的实施例中,从终端设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,终端设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above embodiments provided by the present application, the methods provided by the embodiments of the present application have been introduced from the perspective of a terminal device as an execution subject. In order to implement the functions in the methods provided by the above embodiments of the present application, the terminal device may include hardware structures and/or software modules, and implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
基于相同的构思,图7所示为本申请实施例提供的一种终端设备700,所述终端设备可以执行上述实施例和实例中的方法。如图7所示,所述终端设备700包括:显示单元701,处理单元702、提示单元703。所述终端设备700中还可以包括摄像装置、通信单元。下面分别对各个单元的功能进行说明。Based on the same concept, FIG. 7 shows a terminal device 700 according to an embodiment of the present application, where the terminal device can execute the methods in the above embodiments and examples. As shown in FIG. 7 , the terminal device 700 includes: a display unit 701 , a processing unit 702 , and a prompt unit 703 . The terminal device 700 may further include a camera and a communication unit. The function of each unit is described below.
所述摄像装置,用于采集当前环境的图像。The camera device is used to collect images of the current environment.
所述通信单元,用于与其他设备进行通信。例如,当所述终端设备700内部不包含摄像装置时,所述终端设备700可以通过所述通信单元接收外部的摄像装置发送的图像。The communication unit is used to communicate with other devices. For example, when the terminal device 700 does not contain a camera, the terminal device 700 may receive images sent by an external camera through the communication unit.
所述显示单元701,用于显示界面。The display unit 701 is used for displaying an interface.
所述处理单元702,用于确定目标化妆部位,控制摄像装置采集用户的所述目标化妆部位的图像,并控制所述显示单元701显示采集的所述目标化妆部位的图像;确定所述目标化妆部位的目标参考模型图像,并控制所述显示单元701显示所述目标参考模型图像;以及根据所述显示单元701显示的所述目标化妆部位的图像和所述目标参考模型图像,确定化妆指导信息;所述化妆指导信息用于指导用户对所述显示单元701显示的所述目标化妆部位进行化妆;The processing unit 702 is configured to determine the target makeup part, control the camera to collect the image of the target makeup part of the user, and control the display unit 701 to display the collected image of the target makeup part; determine the target makeup and control the display unit 701 to display the target reference model image; and determine makeup guide information according to the image of the target makeup part and the target reference model image displayed by the display unit 701 ; the makeup instruction information is used to instruct the user to apply makeup to the target makeup part displayed by the display unit 701;
所述提示单元703,用于向用户提示所述化妆指导信息。The prompting unit 703 is used for prompting the makeup guide information to the user.
在一个实现方式中,所述处理单元702,还用于:在确定所述目标化妆部位之前,接收第一指令,所述第一指令用于指示所述终端设备启动化妆指导功能;根据所述第一指令启动化妆指导功能。In an implementation manner, the processing unit 702 is further configured to: before determining the target makeup part, receive a first instruction, where the first instruction is used to instruct the terminal device to start a makeup guidance function; The first instruction activates the makeup guide function.
在一个实现方式中,所述处理单元702在确定所述目标化妆部位时,具体用于:In an implementation manner, when the processing unit 702 determines the target makeup part, it is specifically configured to:
控制所述显示单元701显示多个化妆部位,以及在显示的所述多个化妆部位中的一个化妆部位被选中时,确定被选中的所述化妆部位作为所述目标化妆部位;或者Controlling the display unit 701 to display a plurality of makeup parts, and when one of the displayed makeup parts is selected, determine the selected makeup part as the target makeup part; or
控制所述显示单元701显示人脸图像,以及在显示的所述人脸图像中的一个部位被选中时,确定被选中的所述部位作为所述目标化妆部位。The display unit 701 is controlled to display a face image, and when a part in the displayed face image is selected, the selected part is determined as the target makeup part.
在一个实现方式中,所述处理单元702,还用于:控制所述显示单元701显示化妆效果图像,所述化妆效果图像为所述用户根据所述化妆指导信息对所述显示单元显示的所述目标化妆部位进行化妆后的图像。In an implementation manner, the processing unit 702 is further configured to: control the display unit 701 to display a makeup effect image, where the makeup effect image is all displayed on the display unit by the user according to the makeup guide information. The image after makeup is applied to the target makeup site.
在一个实现方式中,所述处理单元702,在确定所述目标化妆部位的目标参考模型图像时,具体用于:接收第二指令,所述第二指令用于指示自动选择参考模型图像;根据所述第二指令在存储的对应所述目标化妆部位的多个参考模型图像中,确定所述目标参考模 型图像;或者In an implementation manner, when determining the target reference model image of the target makeup part, the processing unit 702 is specifically configured to: receive a second instruction, where the second instruction is used to instruct to automatically select a reference model image; The second instruction determines the target reference model image from among the stored multiple reference model images corresponding to the target makeup part; or
接收第三指令,所述第三指令用于指示手动选择参考模型图像;控制所述显示单元701显示存储的对应所述目标化妆部位的多个参考模型图像;将显示的多个参考模型图像中被选中的参考模型图像确定为所述目标参考模型图像。receiving a third instruction, the third instruction is used to instruct manual selection of a reference model image; controlling the display unit 701 to display a plurality of stored reference model images corresponding to the target makeup part; The selected reference model image is determined as the target reference model image.
在一个实现方式中,所述处理单元702,还用于:确定在所述显示单元701显示的所述目标化妆部位的图像,与在所述显示单元701显示的所述目标参考模型图像的相似度;根据所述相似度,确定相似度信息;In an implementation manner, the processing unit 702 is further configured to: determine that the image of the target makeup part displayed on the display unit 701 is similar to the image of the target reference model displayed on the display unit 701 degree; according to the similarity, determine similarity information;
所述提示单元703,还用于向用户提示所述相似度信息。The prompting unit 703 is further configured to prompt the similarity information to the user.
在一个实现方式中,所述提示单元703向所述用户提示所述化妆指导信息时,具体用于:通过所述显示单元701显示所述化妆指导信息;或者通过语音方式播放所述化妆指导信息。In an implementation manner, when the prompting unit 703 prompts the user with the makeup guidance information, it is specifically configured to: display the makeup guidance information through the display unit 701; or play the makeup guidance information by voice .
在一个实现方式中,所述化妆指导信息包括以下至少一项:修饰工具、修饰位置、修饰方向,以及修饰过程中的注意事项。In an implementation manner, the makeup guide information includes at least one of the following items: grooming tools, grooming positions, grooming directions, and precautions during grooming.
基于相同的构思,图8所示为本申请实施例提供的一种终端设备800,所述终端设备可以执行上述实施例和实例中的方法,具有如图7所示的终端设备700的功能。参阅图8所示,所述终端设备800中包括:处理器801、存储器802、显示屏803,以及收发器804。Based on the same concept, FIG. 8 shows a terminal device 800 provided by an embodiment of the present application. The terminal device can execute the methods in the above embodiments and examples, and has the functions of the terminal device 700 shown in FIG. 7 . Referring to FIG. 8 , the terminal device 800 includes: a processor 801 , a memory 802 , a display screen 803 , and a transceiver 804 .
处理器801与存储器802、显示屏803和收发器804之间相互连接。可选的,所述处理器801与存储器802、显示屏803和收发器804可以通过总线相互连接;所述总线可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The processor 801 is interconnected with the memory 802 , the display screen 803 and the transceiver 804 . Optionally, the processor 801, the memory 802, the display screen 803 and the transceiver 804 can be connected to each other through a bus; the bus can be a peripheral component interconnect (PCI) bus or an extended industry standard structure. (extended industry standard architecture, EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
可选的,所述终端设备内还可以包含摄像头805,所述处理器801可以通过终端设备800内的摄像头805采集用户当前所在场景的图像。Optionally, the terminal device may further include a camera 805 , and the processor 801 may collect an image of the scene where the user is currently located through the camera 805 in the terminal device 800 .
收发器804,用于与其他设备进行通信交互。例如,当所述终端设备800通过外部的摄像装置采集用户当前所在场景的图像时,所述终端设备800通过所述收发器804,获取该外部的摄像装置采集的用户当前所在场景的图像。可选的,所述收发器804可以为蓝牙模块、WiFi模块,RF电路等。The transceiver 804 is used to communicate and interact with other devices. For example, when the terminal device 800 collects the image of the scene where the user is currently located by using an external camera, the terminal device 800 acquires the image of the scene where the user is currently located by the external camera device through the transceiver 804 . Optionally, the transceiver 804 may be a Bluetooth module, a WiFi module, an RF circuit, or the like.
所述处理器801,用于实现上述实施例和实例提供的方法,具体可以参见上述实施例中的描述,此处不再赘述。The processor 801 is configured to implement the methods provided by the foregoing embodiments and examples. For details, reference may be made to the descriptions in the foregoing embodiments, which will not be repeated here.
所述显示屏803,用于显示用户界面。The display screen 803 is used to display a user interface.
可选的,所述终端设备800还可以包括音频电路806,用于接收和发出语音信号。Optionally, the terminal device 800 may further include an audio circuit 806 for receiving and sending voice signals.
所述存储器802,用于存放程序指令和数据(例如化妆部位的参考模型图像)等。具体地,程序指令可以包括程序代码,该程序代码包括计算机操作的指令。存储器802可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。所述处理器801执行所述存储器802所存放的程序,并通过上述各个部件,实现上述功能,从而最终实现以上实施例提供的方法。The memory 802 is used to store program instructions and data (for example, a reference model image of a makeup part) and the like. Specifically, the program instructions may include program code, which includes instructions for computer operation. The memory 802 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The processor 801 executes the program stored in the memory 802, and implements the above functions through the above components, thereby finally implementing the methods provided by the above embodiments.
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算 机上运行时,使得所述计算机执行以上实施例提供的方法。Based on the above embodiments, the embodiments of the present application further provide a computer program, which when the computer program runs on a computer, causes the computer to execute the methods provided by the above embodiments.
基于以上实施例,本申请实施例还提供了一种计算机存储介质,该计算机存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行以上实施例提供的方法。Based on the above embodiments, the embodiments of the present application further provide a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a computer, the computer executes the methods provided by the above embodiments.
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现以上实施例提供的方法。Based on the above embodiments, an embodiment of the present application further provides a chip, where the chip is used to read a computer program stored in a memory to implement the methods provided by the above embodiments.
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现以上实施例提供的方法中终端设备所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, the embodiments of the present application provide a chip system, where the chip system includes a processor for supporting a computer apparatus to implement the functions involved in the terminal device in the methods provided by the above embodiments. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system may be composed of chips, or may include chips and other discrete devices.
综上所述,本申请实施例提供了一种信息提示的方法及终端设备,该方案中,终端设备确定目标化妆部位后,通过摄像装置采集用户的所述目标化妆部位的图像,并在显示屏的第一显示区域中显示采集的所述目标化妆部位的图像;终端设备确定目标化妆部位的目标参考模型图像,并在显示屏的第二显示区域中显示目标参考模型图像;终端设备根据所述目标化妆部位的图像和目标参考模型图像,确定用于指导用户对目标化妆部位进行化妆处理的化妆指导信息。因此,通过这种技术方案,终端设备可以根据用户自身的目标化妆部位的情况,灵活的向用户提供准确的化妆指导信息,使得用户根据该化妆指导信息对自身的目标化妆部位进行修饰,不仅可以有效的美化用户自身的目标化妆部位,也可提高用户的使用体验。To sum up, the embodiments of the present application provide an information prompting method and a terminal device. In this solution, after the terminal device determines the target makeup part, the image of the user's target makeup part is collected by the camera device, and the image is displayed on the display. The collected image of the target makeup part is displayed in the first display area of the screen; the terminal device determines the target reference model image of the target makeup part, and displays the target reference model image in the second display area of the display screen; The image of the target makeup part and the target reference model image are described, and the makeup guide information for instructing the user to perform makeup treatment on the target makeup part is determined. Therefore, through this technical solution, the terminal device can flexibly provide the user with accurate makeup guidance information according to the situation of the user's own target makeup site, so that the user can modify their own target makeup site according to the makeup guidance information, not only can It can effectively beautify the user's own target makeup parts, and can also improve the user's use experience.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。From the description of the above embodiments, those skilled in the art can clearly understand that the embodiments of the present application may be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that a computer can access. Taking this as an example but not limited to: the computer readable medium may include RAM, ROM, electrically erasable programmable read only memory (EEPROM), compact disc read-Only memory (CD- ROM) or other optical disk storage, magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer. also. Any connection can be appropriately made into a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fusing of the pertinent medium. As used in the embodiments of the present application, disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, wherein Disks usually reproduce data magnetically, while discs use lasers to reproduce data optically. Combinations of the above should also be included within the scope of computer-readable media.
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In a word, the above descriptions are merely examples of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included within the protection scope of this application.

Claims (17)

  1. 一种信息提示方法,其特征在于,所述方法包括:An information prompting method, characterized in that the method comprises:
    终端设备确定目标化妆部位,获取用户的所述目标化妆部位的图像,并在显示屏的第一显示区域中显示获取的所述目标化妆部位的图像;The terminal device determines the target makeup part, acquires the image of the target makeup part of the user, and displays the acquired image of the target makeup part in the first display area of the display screen;
    所述终端设备确定所述目标化妆部位的目标参考模型图像,并在所述显示屏的第二显示区域中显示所述目标参考模型图像;The terminal device determines a target reference model image of the target makeup part, and displays the target reference model image in the second display area of the display screen;
    所述终端设备根据所述第一显示区域显示的所述目标化妆部位的图像和所述第二显示区域中显示的所述目标参考模型图像,确定化妆指导信息,所述化妆指导信息用于指导用户对所述第一显示区域显示的所述目标化妆部位进行化妆;The terminal device determines makeup guidance information according to the image of the target makeup part displayed in the first display area and the target reference model image displayed in the second display area, and the makeup guidance information is used for guidance The user applies makeup to the target makeup part displayed in the first display area;
    所述终端设备向所述用户提示所述化妆指导信息。The terminal device prompts the user with the makeup instruction information.
  2. 如权利要求1所述的方法,其特征在于,所述终端设备确定所述目标化妆部位之前,还包括:The method according to claim 1, wherein before the terminal device determines the target makeup part, the method further comprises:
    所述终端设备接收第一指令,所述第一指令用于指示所述终端设备启动化妆指导功能;The terminal device receives a first instruction, where the first instruction is used to instruct the terminal device to activate a makeup guide function;
    所述终端设备根据所述第一指令启动化妆指导功能。The terminal device starts the makeup guide function according to the first instruction.
  3. 如权利要求1或2所述的方法,其特征在于,所述终端设备确定所述目标化妆部位,包括:The method according to claim 1 or 2, wherein determining the target makeup part by the terminal device comprises:
    所述终端设备在所述显示屏中显示多个化妆部位,以及在显示的所述多个化妆部位中的一个化妆部位被选中时,确定被选中的所述化妆部位作为所述目标化妆部位;或者The terminal device displays a plurality of makeup parts on the display screen, and when one of the displayed makeup parts is selected, determines the selected makeup part as the target makeup part; or
    所述终端设备在所述显示屏中显示人脸图像,以及在显示的所述人脸图像中的一个部位被选中时,确定被选中的所述部位作为所述目标化妆部位。The terminal device displays a face image on the display screen, and when a part in the displayed face image is selected, determines the selected part as the target makeup part.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    所述终端设备在所述显示屏的第三显示区域中显示化妆效果图像,所述化妆效果图像为所述用户根据所述化妆指导信息对所述第一显示区域显示的所述目标化妆部位进行化妆后的图像。The terminal device displays a makeup effect image in the third display area of the display screen, where the makeup effect image is the target makeup part displayed in the first display area by the user according to the makeup guide information. Image after makeup.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述终端设备确定所述目标化妆部位的目标参考模型图像,包括:The method according to any one of claims 1-4, wherein the terminal device determines the target reference model image of the target makeup part, comprising:
    所述终端设备接收第二指令,所述第二指令用于指示自动选择参考模型图像;所述终端设备根据所述第二指令在存储的对应所述目标化妆部位的多个参考模型图像中,确定所述目标参考模型图像;或者The terminal device receives a second instruction, where the second instruction is used to instruct the automatic selection of a reference model image; the terminal device stores a plurality of reference model images corresponding to the target makeup part according to the second instruction, determining the target reference model image; or
    所述终端设备接收第三指令,所述第三指令用于指示手动选择参考模型图像;所述终端设备在所述第二显示区域中显示存储的对应所述目标化妆部位的多个参考模型图像;所述终端设备将显示的多个参考模型图像中被选中的参考模型图像确定为所述目标参考模型图像。The terminal device receives a third instruction, where the third instruction is used to instruct to manually select a reference model image; the terminal device displays a plurality of stored reference model images corresponding to the target makeup part in the second display area ; the terminal device determines the selected reference model image among the displayed multiple reference model images as the target reference model image.
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    所述终端设备确定所述第一显示区域中显示的所述目标化妆部位的图像,与在所述第二显示区域中显示的所述目标参考模型图像的相似度;The terminal device determines the similarity between the image of the target makeup part displayed in the first display area and the image of the target reference model displayed in the second display area;
    所述终端设备根据所述相似度,确定相似度信息;The terminal device determines similarity information according to the similarity;
    所述终端设备向用户提示所述相似度信息。The terminal device prompts the similarity information to the user.
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述终端设备向所述用户提示所 述化妆指导信息,包括:The method according to any one of claims 1-6, wherein the terminal device prompts the user for the makeup instruction information, comprising:
    所述终端设备在所述第一显示区域显示所述化妆指导信息;或者The terminal device displays the makeup guide information in the first display area; or
    所述终端设备通过语音方式播放所述化妆指导信息。The terminal device plays the makeup guide information by voice.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述化妆指导信息包括以下至少一项:修饰工具、修饰位置、修饰方向,以及修饰过程中的注意事项。The method according to any one of claims 1 to 7, wherein the makeup instruction information includes at least one of the following: a modification tool, modification position, modification direction, and precautions during modification.
  9. 一种终端设备,其特征在于,包括显示屏、一个或多个处理器,一个或多个存储器;A terminal device, characterized in that it includes a display screen, one or more processors, and one or more memories;
    所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令;the one or more memories store one or more computer programs including instructions;
    所述一个或多个处理器,用于执行所述指令,实现如下步骤:The one or more processors, configured to execute the instructions, implement the following steps:
    确定目标化妆部位,获取用户的所述目标化妆部位的图像,并在所述显示屏的第一显示区域中显示获取的所述目标化妆部位的图像;determining a target makeup part, acquiring an image of the user's target makeup part, and displaying the acquired image of the target makeup part in the first display area of the display screen;
    确定所述目标化妆部位的目标参考模型图像,并在所述显示屏的第二显示区域中显示所述目标参考模型图像;determining a target reference model image of the target makeup part, and displaying the target reference model image in the second display area of the display screen;
    根据所述第一显示区域显示的所述目标化妆部位的图像和所述第二显示区域中显示的所述目标参考模型图像,确定化妆指导信息,所述化妆指导信息用于指导用户对所述第一显示区域显示的所述目标化妆部位进行化妆;Makeup guidance information is determined according to the image of the target makeup part displayed in the first display area and the target reference model image displayed in the second display area, and the makeup guidance information is used to instruct the user on the Putting makeup on the target makeup part displayed in the first display area;
    向所述用户提示所述化妆指导信息。The makeup instruction information is presented to the user.
  10. 如权利要求9所述的终端设备,其特征在于,所述一个或多个处理器还用于:The terminal device of claim 9, wherein the one or more processors are further configured to:
    在确定所述目标化妆部位之前,接收第一指令,所述第一指令用于指示所述终端设备启动化妆指导功能;Before determining the target makeup site, receive a first instruction, where the first instruction is used to instruct the terminal device to activate a makeup guidance function;
    根据所述第一指令启动化妆指导功能。The makeup guide function is activated according to the first instruction.
  11. 如权利要求9或10所述的终端设备,其特征在于,所述一个或多个处理器,在确定所述目标化妆部位时,具体用于:The terminal device according to claim 9 or 10, wherein the one or more processors, when determining the target makeup part, are specifically configured to:
    控制所述显示单元显示多个化妆部位,以及在显示的所述多个化妆部位中的一个化妆部位被选中时,确定被选中的所述化妆部位作为所述目标化妆部位;或者Controlling the display unit to display a plurality of makeup parts, and when one of the displayed makeup parts is selected, determining the selected makeup part as the target makeup part; or
    控制所述显示单元显示人脸图像,以及在显示的所述人脸图像中的一个部位被选中时,确定被选中的所述部位作为所述目标化妆部位。The display unit is controlled to display a face image, and when a part in the displayed face image is selected, the selected part is determined as the target makeup part.
  12. 如权利要求9-11任一项所述的终端设备,其特征在于,所述一个或多个处理器,还用于:The terminal device according to any one of claims 9-11, wherein the one or more processors are further configured to:
    在所述显示屏的第三显示区域中显示化妆效果图像,所述化妆效果图像为所述用户根据所述化妆指导信息对所述第一显示区域显示的所述目标化妆部位进行化妆后的图像。A makeup effect image is displayed in the third display area of the display screen, and the makeup effect image is an image after the user applies makeup to the target makeup part displayed in the first display area according to the makeup guide information .
  13. 如权利要求9-12任一项所述的终端设备,其特征在于,所述一个或多个处理器,在确定所述目标化妆部位的目标参考模型图像时,具体用于:The terminal device according to any one of claims 9-12, wherein when determining the target reference model image of the target makeup part, the one or more processors are specifically configured to:
    接收第二指令,所述第二指令用于指示自动选择参考模型图像;根据所述第二指令在存储的对应所述目标化妆部位的多个参考模型图像中,确定所述目标参考模型图像;或者receiving a second instruction, where the second instruction is used to instruct the automatic selection of a reference model image; according to the second instruction, the target reference model image is determined from the stored multiple reference model images corresponding to the target makeup part; or
    接收第三指令,所述第三指令用于指示手动选择参考模型图像;控制所述显示单元显示存储的对应所述目标化妆部位的多个参考模型图像;将显示的多个参考模型图像中被选中的参考模型图像确定为所述目标参考模型图像。Receiving a third instruction, the third instruction is used to instruct manual selection of a reference model image; controlling the display unit to display a plurality of stored reference model images corresponding to the target makeup part; The selected reference model image is determined as the target reference model image.
  14. 如权利要求9-13任一项所述的终端设备,其特征在于,所述一个或多个处理器,还用于:The terminal device according to any one of claims 9-13, wherein the one or more processors are further configured to:
    确定所述第一显示区域中显示的所述目标化妆部位的图像,与在所述第二显示区域中显示的所述目标参考模型图像的相似度;determining the similarity between the image of the target makeup part displayed in the first display area and the image of the target reference model displayed in the second display area;
    根据所述相似度,确定相似度信息;According to the similarity, determine similarity information;
    向用户提示所述相似度信息。The similarity information is prompted to the user.
  15. 如权利要求9-14任一项所述的终端设备,其特征在于,所述一个或多个处理器,在向所述用户提示所述化妆指导信息时,具体用于:The terminal device according to any one of claims 9-14, wherein the one or more processors, when prompting the user with the makeup guide information, are specifically configured to:
    在所述第一显示区域显示所述化妆指导信息;或者displaying the makeup instruction information in the first display area; or
    通过扬声器以语音方式播放所述化妆指导信息。The makeup instruction information is played by voice through a speaker.
  16. 如权利要求9-15任一项所述的终端设备,其特征在于,所述化妆指导信息包括以下至少一项:修饰工具、修饰位置、修饰方向,以及修饰过程中的注意事项。The terminal device according to any one of claims 9-15, wherein the makeup guide information includes at least one of the following items: a modification tool, modification position, modification direction, and precautions during modification.
  17. 一种计算机存储介质,其特征在于,所述计算机存储介质中存储有计算机程序,当所述计算机程序在终端设备上运行时,使得所述终端设备执行如权利要求1-8任一项所述的方法。A computer storage medium, characterized in that, a computer program is stored in the computer storage medium, and when the computer program runs on a terminal device, the terminal device is made to execute the execution of any one of claims 1-8. Methods.
PCT/CN2021/102440 2020-06-28 2021-06-25 Information prompting method and terminal device WO2022001882A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010595130.XA CN113850724A (en) 2020-06-28 2020-06-28 Information prompting method and terminal equipment
CN202010595130.X 2020-06-28

Publications (1)

Publication Number Publication Date
WO2022001882A1 true WO2022001882A1 (en) 2022-01-06

Family

ID=78972298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102440 WO2022001882A1 (en) 2020-06-28 2021-06-25 Information prompting method and terminal device

Country Status (2)

Country Link
CN (1) CN113850724A (en)
WO (1) WO2022001882A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293362A (en) * 2015-05-20 2017-01-04 福建省辉锐电子技术有限公司 A kind of guiding cosmetic equipment
US20170187988A1 (en) * 2015-12-23 2017-06-29 Optim Corporation System and method for image processing
CN106960187A (en) * 2017-03-17 2017-07-18 合肥龙图腾信息技术有限公司 Cosmetic navigation system, apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293362A (en) * 2015-05-20 2017-01-04 福建省辉锐电子技术有限公司 A kind of guiding cosmetic equipment
US20170187988A1 (en) * 2015-12-23 2017-06-29 Optim Corporation System and method for image processing
CN106960187A (en) * 2017-03-17 2017-07-18 合肥龙图腾信息技术有限公司 Cosmetic navigation system, apparatus and method

Also Published As

Publication number Publication date
CN113850724A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
KR102470275B1 (en) Voice control method and electronic device
EP3952263A1 (en) Notification message preview method and electronic device
US10402625B2 (en) Intelligent electronic device and method of operating the same
US20170236330A1 (en) Novel dual hmd and vr device with novel control methods and software
WO2015143875A1 (en) Method for presenting content, method for pushing content presentation mode and intelligent terminal
CN116564304A (en) Voice interaction method and device
KR20200017249A (en) Apparatus and method for providing feedback for confirming intent of a user in an electronic device
CN110569094B (en) Display method and electronic equipment
JP2016507815A (en) Image processing method, image processing device, terminal device, program, and recording medium
CN108958587B (en) Split screen processing method and device, storage medium and electronic equipment
CN112578982A (en) Electronic equipment and operation method thereof
WO2022042766A1 (en) Information display method, terminal device, and computer readable storage medium
CN112698756A (en) Display method of user interface and electronic equipment
CN114077365A (en) Split screen display method and electronic equipment
CN110559645A (en) Application operation method and electronic equipment
CN110471604A (en) A kind of more application switching methods and relevant apparatus
JP7215813B2 (en) METHOD AND ELECTRONIC DEVICE TO LOCK TOUCH OPERATION
US20230328172A1 (en) Call Prompt Method, Call Device, Readable Storage Medium, and Chip System
CN114756785A (en) Page display method and device, electronic equipment and readable storage medium
WO2022001882A1 (en) Information prompting method and terminal device
WO2022222688A1 (en) Window control method and device
CN109040427B (en) Split screen processing method and device, storage medium and electronic equipment
CN113963091A (en) Image processing method, mobile terminal and storage medium
CN115268737A (en) Information processing method and device
WO2024001972A1 (en) Interaction method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21833585

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21833585

Country of ref document: EP

Kind code of ref document: A1