WO2022042502A1 - 美颜功能开启方法、装置及电子设备 - Google Patents

美颜功能开启方法、装置及电子设备 Download PDF

Info

Publication number
WO2022042502A1
WO2022042502A1 PCT/CN2021/114148 CN2021114148W WO2022042502A1 WO 2022042502 A1 WO2022042502 A1 WO 2022042502A1 CN 2021114148 W CN2021114148 W CN 2021114148W WO 2022042502 A1 WO2022042502 A1 WO 2022042502A1
Authority
WO
WIPO (PCT)
Prior art keywords
attribute information
target
beauty
enabling
user
Prior art date
Application number
PCT/CN2021/114148
Other languages
English (en)
French (fr)
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 WO2022042502A1 publication Critical patent/WO2022042502A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Definitions

  • the present application belongs to the field of communication technologies, and in particular, relates to a method, device and electronic device for enabling a beauty function.
  • the purpose of the embodiments of the present application is to provide a method, device and electronic device for enabling the beauty function, which can solve the problem that the method for enabling the beauty function in the prior art may turn on the redundant beauty function, resulting in some unnecessary power consumption and performance. cost issue.
  • an embodiment of the present application provides a method for enabling a beauty function, the method comprising:
  • the beauty function corresponding to the target attribute information is enabled.
  • an embodiment of the present application provides a device for enabling a beauty function, the device comprising:
  • the target attribute acquisition module is used to obtain the target attribute information of the target user in the preview image when the beauty mode is activated;
  • the beauty function enabling module is configured to enable the beauty function corresponding to the target attribute information when the target attribute information satisfies a preset condition.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method for enabling the beauty function according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the beauty function as described in the first aspect is implemented Steps to open the method.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect The method for enabling the beauty function.
  • the target attribute information of the target user in the preview image is obtained when the beauty mode is turned on, and the beauty function corresponding to the target attribute information is turned on when the target attribute information satisfies a preset condition.
  • the problem of enabling redundant beauty functions can be avoided, thereby saving the power consumption and performance overhead of the camera and improving the user experience.
  • FIG. 1 is a flow chart of steps of a method for enabling a beauty function provided by an application embodiment
  • FIG. 2 is a schematic structural diagram of a device for enabling a beauty function according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 a flowchart of steps of a method for enabling a beauty function provided by an embodiment of the present application is shown.
  • the method for enabling a beauty function may specifically include the following steps:
  • Step 101 When the beauty mode is activated, acquire target attribute information of the target user in the preview image.
  • the embodiments of the present application may be applied to a scene in which a matching beauty function is automatically enabled in combination with the attribute information of the user in the image in the beauty mode.
  • Beauty mode refers to the mode set in the electronic device to beautify the skin texture and skin tone of the user.
  • the user's skin in the image can be beautified, such as skin resurfacing and face reduction.
  • the target user refers to the user who needs to be beautified in the preview image.
  • the target user may be one user or multiple users. Specifically, it may be determined according to business requirements, which is not added in this embodiment. limit.
  • the target attribute information refers to the attribute information of the target user in the preview image.
  • the target attribute information may include at least one of skin quality attribute information, skin color attribute information, and face shape attribute information.
  • a preview image captured by the camera can be obtained, and the skin of the target user in the preview image can be identified to obtain the target attribute information of the target user.
  • step 102 After acquiring the target attribute information of the target user in the preview image, step 102 is performed.
  • Step 102 In the case that the target attribute information satisfies a preset condition, enable the beauty function corresponding to the target attribute information.
  • the preset conditions refer to the conditions preset by the business personnel to determine whether the target attribute meets the conditions for enabling the corresponding beauty function. It is understandable that different target attribute information may correspond to different preset conditions.
  • the preset condition may be a preset skin texture attribute condition
  • the preset condition may be a preset skin tone attribute condition and the like.
  • the beauty function refers to a function set in the electronic device to beautify the skin of the user in the image.
  • the beauty function may include: skin retouching function, skin color adjustment beauty function, face shape adjustment beauty function Wait.
  • the microdermabrasion and beauty function refers to the function for microdermabrasion of the user's skin.
  • the microdermabrasion and beauty function can make the user's skin more delicate and the outline of the character clearer.
  • the microdermabrasion and beauty function can remove images. Wrinkles, acne scars, etc. on the user's face in order to improve the delicateness of the user's face.
  • the skin tone adjustment and beauty function refers to the function used to adjust the skin tone of the user.
  • the skin tone adjustment and beauty function can be used to adjust the darkness and lightness of the user's skin. For darker skin, increase the brightness appropriately to improve the evenness of the skin tone.
  • the face shape adjustment and beauty function refers to the function used to adjust the user's face shape. Through the face shape adjustment and beauty function, the user's face shape can be properly adjusted, such as face-lifting, face-shaping, and chin-lifting.
  • the beauty function is not limited to the above three beauty functions, but can also include: dark circles removal, eye brightening, dark circle removal, rhinoplasty, nose thinning, eye distance adjustment and other beauty functions. Specifically, it may be determined according to the beauty function provided in the electronic device, which is not limited in this embodiment.
  • the target attribute information of the target user in the preview image After acquiring the target attribute information of the target user in the preview image, it can be determined whether the target attribute information satisfies the preset condition.
  • the beauty function corresponding to the target attribute information can be enabled. Specifically, detailed description may be made in conjunction with the following specific implementation manners.
  • the target attribute information may include skin quality attribute information
  • the above step 102 may include:
  • Sub-step S1 in the case that the skin quality attribute information satisfies the preset skin quality attribute condition, enable the microdermabrasion and beautifying function corresponding to the skin quality attribute information.
  • the preset skin quality attribute condition refers to a condition used by business personnel to determine whether the skin quality satisfies beautification.
  • the microdermabrasion beauty After obtaining the skin quality attribute information of the target user in the preview image, it can be judged whether the skin quality attribute information meets the preset skin quality attribute conditions, and when the skin quality attribute information meets the preset skin quality attribute conditions, the microdermabrasion beauty is enabled. If the skin texture attribute information does not meet the preset skin texture attribute conditions, the microdermabrasion and beauty function will not be enabled.
  • the microdermabrasion and beautification function when the microdermabrasion and beautification function is currently enabled, and it is detected that the skin quality attribute information of the target user's skin does not meet the preset skin quality attribute conditions, the microdermabrasion and beautification function can be automatically turned off, or the function and performance are improved.
  • a small simplified microdermabrasion function for example, when it is detected that the skin quality of the user's skin is already good, the microdermabrasion is automatically turned off, or a simplified version of the microdermabrasion function with less power consumption and performance is used.
  • the criterion for determining whether the skin is good or bad is mainly determined by detecting the number of spots and acne blemishes and color patches on the human face. It can be considered that the skin texture of the user's skin is good.
  • the simplified version of the microdermabrasion function refers to the function of microdermabrasion processing of the human face by using the microdermabrasion algorithm with lower algorithm complexity. The function only needs to perform microdermabrasion on the low-frequency part of the image, because the algorithm complexity is reduced, so the performance and power consumption will also be reduced.
  • the target attribute information may include skin color attribute information
  • the foregoing step 102 may include:
  • Sub-step S2 in the case that the skin color attribute information satisfies the preset skin color attribute condition, enable the skin color adjustment and beauty function corresponding to the skin color attribute information.
  • the preset skin color attribute condition refers to a condition used by business personnel to determine whether skin color satisfies beautification.
  • the skin color adjustment and beauty function After acquiring the skin color attribute information of the target user in the preview image, it can be judged whether the skin color attribute information satisfies the preset skin color attribute conditions, and when the skin color attribute information meets the preset skin color attribute conditions, the skin color adjustment and beauty function can be enabled, and when the skin color attribute information meets the preset skin color attribute conditions If the skin color attribute information does not meet the preset skin color attribute conditions, the skin color adjustment and beauty function is not enabled.
  • the skin color adjustment and beauty function when the skin color adjustment and beauty function is currently enabled, and it is detected that the skin color attribute information of the target user does not meet the preset skin color attribute conditions, the skin color adjustment and beauty function can be automatically turned off.
  • the skin tone adjustment and beauty function is automatically turned off.
  • the basis for judging whether the skin color is standard is the LAB (color model) median value, that is, the LAB median value of the skin area is counted, and then compared with the standard skin color value in the database. If the detected LAB median value is the same as the If the difference between the Euclidean distances of the standard skin color values in the database is within a certain range, the skin color of the current skin is considered to be standard.
  • the standard skin color values in the database are obtained by statistical induction of a large number of standard skin color images.
  • the target attribute information may include face shape attribute information
  • the foregoing step 102 may include:
  • Sub-step S3 in the case that the face shape attribute information satisfies the preset face shape attribute condition, enable the face shape adjustment and beauty function corresponding to the face shape attribute information.
  • the preset face shape attribute condition refers to a condition used by business personnel to determine whether the face shape satisfies the beautification condition.
  • the face shape adjustment and beauty function After obtaining the face shape attribute information of the target user in the preview image, it can be judged whether the face shape attribute information satisfies the preset face shape attribute conditions, and when the face shape attribute information meets the preset face shape attribute conditions, the face shape adjustment and beauty function can be enabled, and when the face shape attribute information meets the preset face shape attribute conditions If the face shape attribute information does not meet the preset face shape attribute conditions, the face shape adjustment and beauty function will not be enabled.
  • the face shape adjustment beauty function can be automatically turned off.
  • the face shape adjustment and beauty functions such as face reduction and big eyes are automatically turned off.
  • whether the face shape is standard can be determined by the industry general rule of three courts and five eyes.
  • the three courts refer to the length ratio of the human face, and the length of the human face is divided into three equal parts, starting from the forehead hairline To the brow bone, from the brow bone to the bottom of the nose, from the bottom of the nose to the chin, each occupies 1/3 of the length of the face
  • the five eyes refers to the width ratio of the face, and the width of the face is divided into five units with the length of the eye shape as the unit. Divide equally, from the left hairline to the right hairline, for the length of five eyes. There is the distance of one eye between the two eyes, and the distance between the outer side of the two eyes to the side hairline is the distance of one eye, each accounting for 1/5 of the proportion.
  • the user ID of the user in the image can also be recorded, and when it is detected again within a preset time period that the user with the same user ID needs to perform the beauty function, the beauty function that was turned on last time is automatically enabled. It can be described in detail in conjunction with the following specific implementation manners.
  • the method may further include:
  • Step M1 within a preset time period from turning off the beauty mode, and in the case of reactivating the beauty mode, acquire the target preview image.
  • the preset duration refers to the duration preset by the business personnel for determining whether to activate the beauty mode again, and the preset duration may be 10s, 10min, 5min, etc. Specifically, it may be determined according to business requirements , this embodiment does not limit the specific value of the preset duration.
  • the target preview image refers to the preview image obtained by the camera.
  • the target preview image may be acquired, and then step M2 is performed.
  • Step M2 In the case where it is determined that the shooting environment parameters of the target preview image and the preview image are the same, acquire the user ID of the user in the target preview image.
  • the shooting environment parameter refers to the environment parameter where the shot preview image is located.
  • the shooting environment parameter may include parameters such as the shooting scene and the shooting environment.
  • the shooting environment parameters of the target preview image and the preview image may be acquired respectively to determine whether the shooting environment parameters of the two are the same.
  • the user identification of the user in the target preview image can be acquired.
  • step M3 After acquiring the user ID of the user in the target preview image, step M3 is performed.
  • Step M3 In the case that the user ID is the same as the target user ID of the target user, enable the beauty function corresponding to the target attribute information.
  • the beauty function corresponding to the target attribute information can be enabled.
  • the system automatically binds the ID information of each face with the combination parameters of the beauty function. Due to the similar scene and environmental conditions, the user's skin quality, skin color and face shape and other attribute information will not change significantly in a short time. Therefore, when the user uses the beauty camera function again in a short time under similar scenes and environmental conditions, the system does not need to repeat the face attribute detection, but only needs to take out the combination parameters of the beauty function corresponding to the ID information. This further reduces power consumption and performance overhead.
  • the target attribute information of the target user in the preview image is obtained when the beauty mode is turned on, and when the target attribute information satisfies a preset condition, the corresponding target attribute information is turned on. beauty function.
  • the embodiments of the present application enable the corresponding beauty function in combination with the attribute information of the user in the preview image, so as to avoid the problem of enabling redundant beauty functions, thereby saving the power consumption and performance overhead of the camera and improving the user experience.
  • the execution subject may be a device for enabling the beauty function, or a control module in the device for enabling the beauty function for executing the method for enabling the beauty function.
  • the device for enabling a beautifying function provided by the embodiment of the present application is described by taking the method for enabling a beautifying function performed by a device for enabling a beautifying function as an example.
  • the device for enabling a beauty function 200 may specifically include the following modules:
  • the target attribute obtaining module 210 is configured to obtain target attribute information of the target user in the preview image when the beauty mode is activated;
  • the beauty function enabling module 220 is configured to enable the beauty function corresponding to the target attribute information when the target attribute information satisfies a preset condition.
  • the target attribute information includes skin quality attribute information
  • the beauty function enabling module 220 includes:
  • the microdermabrasion and beautifying function enabling unit is configured to enable the microdermabrasion and beautifying function corresponding to the skin quality attribute information under the condition that the skin quality attribute information satisfies the preset skin quality attribute conditions.
  • the target attribute information includes skin color attribute information
  • the beauty function enabling module 220 includes:
  • the skin color beautification function enabling unit is configured to enable the skin color adjustment and beautification function corresponding to the skin color attribute information under the condition that the skin color attribute information satisfies the preset skin color attribute condition.
  • the target attribute information includes face shape attribute information
  • the beauty function enabling module 220 includes:
  • a face shape beautifying function enabling unit configured to enable the face shape adjustment and beauty function corresponding to the face shape attribute information under the condition that the face shape attribute information satisfies the preset face shape attribute condition.
  • the device further includes:
  • a target image acquisition module configured to acquire a target preview image when the beautifying mode is activated again within a preset time period from turning off the beautifying mode
  • a user identification acquiring module configured to acquire the user identification of the user in the target preview image under the condition that the shooting environment parameters of the target preview image and the preview image are determined to be the same;
  • a target function enabling module configured to enable the beauty function corresponding to the target attribute information when the user ID is the same as the target user ID of the target user.
  • the device for enabling the beauty function acquires the target attribute information of the target user in the preview image when the beauty mode is turned on, and when the target attribute information satisfies a preset condition, enables the corresponding target attribute information beauty function.
  • the problem of enabling redundant beauty functions can be avoided, thereby achieving the purpose of saving the power consumption and performance overhead of the camera, and improving the user's experience. experience.
  • the device for enabling the beauty function in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for enabling the beauty function in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the device for enabling a beauty function provided in this embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 300, including a processor 301, a memory 302, a program or instruction stored in the memory 302 and executable on the processor 301,
  • an electronic device 300 including a processor 301, a memory 302, a program or instruction stored in the memory 302 and executable on the processor 301,
  • the program or instruction is executed by the processor 301, each process of the above-mentioned embodiment of the method for enabling the beauty function is realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
  • the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 410 is configured to acquire target attribute information of the target user in the preview image when the beauty mode is activated; when the target attribute information satisfies a preset condition, enable the corresponding target attribute information Beauty function.
  • the embodiments of the present application enable the corresponding beauty function in combination with the attribute information of the user in the preview image, so as to avoid the problem of enabling redundant beauty functions, thereby saving the power consumption and performance overhead of the camera and improving the user experience.
  • the processor 410 is further configured to enable the microdermabrasion and beautifying function corresponding to the skin quality attribute information when the skin quality attribute information satisfies a preset skin quality attribute condition.
  • the processor 410 is further configured to enable the skin color adjustment and beauty function corresponding to the skin color attribute information when the skin color attribute information satisfies a preset skin color attribute condition.
  • the processor 410 is further configured to enable a face shape adjustment and beautifying function corresponding to the face shape attribute information when the face shape attribute information satisfies a preset face shape attribute condition.
  • the processor 410 is further configured to obtain a target preview image when the beauty mode is activated again within a preset time period from turning off the beauty mode; after determining the target preview image and the beauty mode In the case where the shooting environment parameters of the preview image are the same, the user ID of the user in the target preview image is obtained; in the case where the user ID is the same as the target user ID of the target user, the corresponding target attribute information is enabled. beauty function.
  • the problem of enabling redundant beauty functions can be avoided, so as to achieve the purpose of saving the power consumption and performance overhead of the camera, and improve the user experience .
  • the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072 .
  • the touch panel 4071 is also called a touch screen.
  • the touch panel 4071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 410.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above embodiment of the method for enabling the beauty function is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the above method for enabling the beauty function In order to avoid repetition, the details are not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种美颜功能开启方法、装置及电子设备,所述方法包括:在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。

Description

美颜功能开启方法、装置及电子设备
相关申请的交叉引用
本申请主张在2020年8月26日提交国家知识产权局、申请号为202010874120.X、申请名称为“美颜功能开启方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,尤其涉及一种美颜功能开启方法、装置及电子设备。
背景技术
随着智能电子设备的不断普及,越来越多的人使用电子设备(如手机、平板电脑等)进行拍照,其中有一大部分人会使用美颜功能进行拍照,如磨皮,瘦脸,大眼,肤色美白等。
开启的美颜功能越多,对相机功耗和性能影响就会越大,目前,市场上的美颜软件中的美颜功能均是依靠用户手动控制的,而在此过程中,用户通常会开启多种美颜功能,此种情况可能存在开启多余的美颜功能,从而导致一些不必要的功耗和性能开销。
发明内容
本申请实施例的目的是提供一种美颜功能开启方法、装置及电子设备,能够解决现有技术中美颜功能开启方式可能会开启多余的美颜功能,导致一些不必要的功耗和性能开销的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种美颜功能开启方法,该方法包括:
在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;
在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
第二方面,本申请实施例提供了一种美颜功能开启装置,该装置包括:
目标属性获取模块,用于在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;
美颜功能开启模块,用于在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的美颜功能开启方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或 指令,所述程序或指令被处理器执行时实现如第一方面所述的美颜功能开启方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的美颜功能开启方法。
在本申请实施例中,通过在开启美颜模式的情况下,获取预览图像中目标用户的目标属性信息,在目标属性信息满足预设条件的情况下,开启目标属性信息对应的美颜功能。本申请实施例通过结合预览图像中用户的属性信息开启对应的美颜功能,可以避免开启多余美颜功能的问题,从而可以达到节省相机的功耗和性能开销的目的,提高了用户的体验。
附图说明
图1为申请实施例提供的一种美颜功能开启方法的步骤流程图;
图2为本申请实施例提供的一种美颜功能开启装置的结构示意图;
图3为本申请实施例提供的一种电子设备的结构示意图;
图4为本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的美颜功能开启方案进行详细地说明。
参照图1,示出了本申请实施例提供的一种美颜功能开启方法的步骤流程图,如图1所示,该美颜功能开启方法具体可以包括如下步骤:
步骤101:在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息。
本申请实施例可以应用于在美颜模式下,结合图像中用户的属性信息自动开启匹配的美颜功能的场景中。
美颜模式是指设置于电子设备内的用于对用户的肤质、肤色等进行美化的模式,在美颜模式下可以实现对图像中的用户皮肤进行美化,如磨皮、瘦脸等。
目标用户是指预览图像中需要进行美化的用户,在本实施例中,目标用户可以是一个用户,也可以是多个用户,具体地,可以根据业务需求而定,本实施例对此不加以限制。
目标属性信息是指预览图像中,目标用户的属性信息,在本实施例中,目标属性信息可以包括肤质属性信息、肤色属性信息和脸型属性信息等信息中的至少一种。
在电子设备启动美颜模式的情况下,可以获取通过相机拍摄的预览图像,并对预览图像中目标用户的皮肤进行识别,以获取目标用户的目标属性信息。
在获取到预览图像中目标用户的目标属性信息之后,执行步骤102。
步骤102:在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
预设条件是指由业务人员预先设置的用于判定目标属性是否满足开启对应美颜功能的条件,可以理解地,不同的目标属性信息可以对应于不同的预设条件,例如,在目标属性信息为肤质属性信息时,则预设条件可以为预设的肤质属性条件,在目标属性信息为肤色属性信息时,则预设条件可以为预设的肤色属性条件等。
美颜功能是指电子设备内设置的用于美化图像中用户的皮肤的功能,在本实施例中,美颜功能可以包括:磨皮美颜功能、肤色调整美颜功能、脸型调整美颜功能等。
其中,磨皮美颜功能是指用于对用户的皮肤进行磨皮的功能,通过磨皮美颜功能可以使用户皮肤更加细腻,人物轮廓更清晰,例如,通过磨皮美颜功能可以去除图像中用户脸部的皱纹、痘疤等,以提高用户脸部的细腻程度。
肤色调整美颜功能是指用于对用户的皮肤肤色进行调整的功能,通过肤色调整美颜功能可以实现对用户皮肤的暗亮程度进行调整,例如,对于肤色较亮的皮肤适当降低亮度,对于肤色较暗的皮肤适当提高亮度,以提高皮肤肤色的均匀程度。
脸型调整美颜功能是指用于对用户的脸型进行调整的功能,通过脸型调整美颜功能可以实现对用户的脸型进行适当调整,如瘦脸、削脸、瘦下巴等。
当然,在实际应用中,美颜功能并不仅局限于上述三种美颜功能,还可以包括:去黑眼圈、亮眼、祛黑眼圈、隆鼻、瘦鼻、眼距调整等美颜功能,具体地,可以根据电子设备中所能提供的美颜功能为定,本实施例对此不加以限制。
在获取到预览图像中目标用户的目标属性信息之后,可以判断目标属性信息是否满足预设条件。
在目标属性信息满足预设条件的情况下,可以开启目标属性信息对应的美颜功能。具体地,可以结合下述具体实现方式进行详细描述。
在本申请的一种具体实现方式中,目标属性信息可以包括肤质属性信息,上述步骤102可以包括:
子步骤S1:在所述肤质属性信息满足预设肤质属性条件的情况下,开启所述肤质属性信息对应的磨皮美颜功能。
在本实施例中,预设肤质属性条件是指由业务人员用于判定肤质是否满足美化的条件。
在获取预览图像中目标用户的肤质属性信息之后,则可以判断肤质属性信息是否满足预设肤质属性条件,可以在肤质属性信息满足预设肤质属性条件时,则开启磨皮美颜功能,而在肤质属性信息不满足预设肤质属性条件的情况下则不开启磨皮美颜功能。
当然,在当前已经开启了磨皮美颜功能,且检测到目标用户皮肤的肤质属性信息不满足预设肤质属性条件时,则可以自动关闭磨皮美颜功能,或使用功能和性能较小的简化版磨皮功能,例如,当检测到用户皮肤的肤质已经很好时,自动关闭磨皮,或使用功耗和性能均较小的简化版磨皮功能。
在本实施例中,肤质好坏的判定标准主要通过检测人脸上的斑痘瑕疵和色块数量进行判断,当检测当前皮肤的斑痘瑕疵和色块数量小于设定的阈值时,就可以认为用户皮肤的肤质较好。简化版磨皮功能是指采用算法复杂度较低的磨皮算法对人脸进行磨皮处理的功能,比如之前需要对人脸图像的高中低三个频段都进行磨皮处理,简化版磨皮功能则只需要对图像的低频部分进行磨皮处理即可,因为算法复杂度降低了,所以性能和功耗也会降低。
在本申请实施例的另一种具体实现方式中,目标属性信息可以包括肤色属性信息,上述步骤102可以包括:
子步骤S2:在所述肤色属性信息满足预设肤色属性条件的情况下,开启所述肤色属性信息对应的肤色调整美颜功能。
在本实施例中,预设肤色属性条件是指由业务人员用于判定肤色是否满足美化的条件。
在获取预览图像中目标用户的肤色属性信息之后,则可以判断肤色属性信息是否满足预设肤色属性条件,可以在肤色属性信息满足预设肤色属性条件时,则开启肤色调整美颜功能,而在肤色属性信息不满足预设肤色属性条件的情况下则不开启肤色调整美颜功能。
当然,在当前已经开启了肤色调整美颜功能,且检测到目标用户的肤色属性信息不满足预设肤色属性条件时,则可以自动关闭肤色调整美颜功能,例如,当检测到用户肤色已经很标准时,自动关闭肤色调整美颜功能。
在本实施例中,肤色是否标准的判断依据是LAB(颜色模型)中值,即统计皮肤区域的LAB中值,然后和数据库中的标准肤色值进行比对,如果检测到的LAB中值与数据库中的标准肤色值的欧氏距离的差值在一定的范围内,则认为当前皮肤的肤色是标准的。数据库中的标准肤色值是通过大量的标准肤色图像统计归纳得到的。
在本申请实施例的另一种具体实现方式中,目标属性信息可以包括脸型属性信息,上述步骤102可以包括:
子步骤S3:在所述脸型属性信息满足预设脸型属性条件的情况下,开启所述脸型属性信息对应的脸型调整美颜功能。
在本实施例中,预设脸型属性条件是指由业务人员用于判定脸型是否满足美化的条件。
在获取预览图像中目标用户的脸型属性信息之后,则可以判断脸型属性信息是否满足预设脸型属性条件,可以在脸型属性信息满足预设脸型属性条件时,则开启脸型调整美颜功能,而在脸型属性信息不满足预设脸型属性条件的情况下则不开启脸型调整美颜功能。
当然,在当前已经开启了脸型调整美颜功能,且检测到目标用户人脸的脸型属性信息不满足预设脸型属性条件时,则可以自动关闭脸型调整美颜功能,例如,当检测到用户脸型已经很标准时,自动关闭瘦脸大眼等脸型调整美颜功能。
在本实施例中,可以通过三庭五眼这个行业通用规则对脸型是否标准进行判定,三庭是指人脸的长度比例,把人脸的长度划分为三个等份,从前额发际线至眉骨,从眉骨至鼻底,从鼻底至下颏,各占脸长的1/3,五眼是指脸的宽度比例,以眼形长度为单位,把脸的宽度分成五个等分,从左侧发际至右侧发际,为五只眼形长度。两只眼睛之间有一只眼睛的间距,两眼外侧至侧发际各为一只眼睛的间距,各占比例的1/5。
在本实施例中,还可以记录图像中的用户的用户标识,在预设时长内再次检测到需要对同一用户标识的用户进行美颜功能时,则自动开启上次开启的美颜功能,具体地,可以结合下述具体实现方式进行详细描述。
在本申请的另一种具体实现方式中,所述方法还可以包括:
步骤M1:在距离关闭所述美颜模式的预设时长内,在再次启动美颜模式的情况下,获取目标预览图像。
在本实施例中,预设时长是指由业务人员预先设置的用于判定是否再次启动美颜模式的时长,预设时长可以为10s、10min、5min等,具体地,可以根据业务需求而定,本实施例对预设时长的具体数值不加以限制。
目标预览图像是指采用相机获取的预览图像。
在距离关闭美颜模式的预设时长内,在再次启动美颜模式的情况下,可以获取目标预览图像,进而,执行步骤M2。
步骤M2:在确定所述目标预览图像和所述预览图像的拍摄环境参数相同的情况下,获取所述目标预览图像中的用户的用户标识。
拍摄环境参数是指拍摄的预览图像所处的环境参数,在本实施例中,拍摄环境参数可以包括拍摄场景和拍摄的环境等参数。
在获取目标预览图像之后,可以分别获取目标预览图像和预览图像的拍摄环境参数,以判定二者的拍摄环境参数是否相同。
在目标预览图像和预览图像的拍摄环境参数相同的情况下,可以获取目标预览图像中的用户的用户标识。
在获取目标预览图像中的用户的用户标识之后,执行步骤M3。
步骤M3:在所述用户标识与所述目标用户的目标用户标识相同的情况下,开启所述目标属性信息对应的美颜功能。
在用户标识和目标用户的目标用户标识相同的情况下,则可以开启与目标属性信息对应的美颜功能。例如,系统自动将每个人脸的ID信息与美颜功能组合参数进行绑定,由于在相近的场景和环境条件下用户的肤质,肤色和脸型等属性信息短时间内不会发生较大变化,因此在相近的场景和环境条件下用户短时间内再次使用美颜相机功能时,系统不需要重复进行人脸属性检测,只需将该ID信息所对应的美颜功能组合参数取出即可,这样可以进一步减少功耗和性能开销。
本申请实施例提供的美颜功能开启方法,通过在开启美颜模式的情况下,获取预览图像中目标用户的目标属性信息,在目标属性信息满足预设条件的情况下,开启目标属性信息对应的美颜功能。本申请实施例通过结合预览图像中用户的属性信息开启对应的美颜功能,可以避免开启多余美颜功能的问题,从而可以达到节省相机的功耗和性能开销的目的,提高了用户的体验。
需要说明的是,本申请实施例提供的美颜功能开启方法,执行主体可以为美颜功能开启装置,或者该美颜功能开启装置中的用于执行的美颜功能开启方法的控制模块。本申请实施例中以美颜功能开启装置执行美颜功能开启方法为例,说明本申请实施例提供的美颜功能开启装置。
参照图2,示出了本申请实施例提供的一种美颜功能开启装置的结构示意图,如图2 所示,该美颜功能开启装置200具体可以包括如下模块:
目标属性获取模块210,用于在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;
美颜功能开启模块220,用于在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
可选地,所述目标属性信息包括肤质属性信息,所述美颜功能开启模块220包括:
磨皮美颜功能开启单元,用于在所述肤质属性信息满足预设肤质属性条件的情况下,开启所述肤质属性信息对应的磨皮美颜功能。
可选地,所述目标属性信息包括肤色属性信息,所述美颜功能开启模块220包括:
肤色美颜功能开启单元,用于在所述肤色属性信息满足预设肤色属性条件的情况下,开启所述肤色属性信息对应的肤色调整美颜功能。
可选地,所述目标属性信息包括脸型属性信息,所述美颜功能开启模块220包括:
脸型美颜功能开启单元,用于在所述脸型属性信息满足预设脸型属性条件的情况下,开启所述脸型属性信息对应的脸型调整美颜功能。
可选地,所述装置还包括:
目标图像获取模块,用于在距离关闭所述美颜模式的预设时长内,在再次启动美颜模式的情况下,获取目标预览图像;
用户标识获取模块,用于在确定所述目标预览图像和所述预览图像的拍摄环境参数相同的情况下,获取所述目标预览图像中的用户的用户标识;
目标功能开启模块,用于在所述用户标识与所述目标用户的目标用户标识相同的情况下,开启所述目标属性信息对应的美颜功能。
本申请实施例提供的美颜功能开启装置,通过在开启美颜模式的情况下,获取预览图像中目标用户的目标属性信息,在目标属性信息满足预设条件的情况下,开启目标属性信息对应的美颜功能。本申请实施例通过结合预览图像中用户的人脸属性信息开启对应的美颜功能,可以避免开启多余美颜功能的问题,从而可以达到节省相机的功耗和性能开销的目的,提高了用户的体验。
本申请实施例中的美颜功能开启装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的美颜功能开启装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的美颜功能开启装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图3所示,本申请实施例还提供一种电子设备300,包括处理器301,存 储器302,存储在存储器302上并可在所述处理器301上运行的程序或指令,该程序或指令被处理器301执行时实现上述美颜功能开启方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图4为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、以及处理器410等部件。
本领域技术人员可以理解,电子设备400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器410,用于在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
本申请实施例通过结合预览图像中用户的属性信息开启对应的美颜功能,可以避免开启多余美颜功能的问题,从而可以达到节省相机的功耗和性能开销的目的,提高了用户的体验。
可选地,处理器410,还用于在所述肤质属性信息满足预设肤质属性条件的情况下,开启所述肤质属性信息对应的磨皮美颜功能。
可选地,处理器410,还用于在所述肤色属性信息满足预设肤色属性条件的情况下,开启所述肤色属性信息对应的肤色调整美颜功能。
可选地,处理器410,还用于在所述脸型属性信息满足预设脸型属性条件的情况下,开启所述脸型属性信息对应的脸型调整美颜功能。
可选地,处理器410,还用于在距离关闭所述美颜模式的预设时长内,在再次启动美颜模式的情况下,获取目标预览图像;在确定所述目标预览图像和所述预览图像的拍摄环境参数相同的情况下,获取所述目标预览图像中的用户的用户标识;在所述用户标识与所述目标用户的目标用户标识相同的情况下,开启所述目标属性信息对应的美颜功能。
本申请实施例通过结合预览图像内用户皮肤的皮肤属性开启对应的美颜功能,可以避免开启多余美颜功能的问题,从而可以达到节省相机的功耗和性能开销的目的,提高了用户的体验。
应理解的是,本申请实施例中,输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元406可包括显示面板4061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板4061。用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其他输入设备4072可 以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器409可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述美颜功能开启方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述美颜功能开启方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种美颜功能开启方法,包括:
    在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;
    在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
  2. 根据权利要求1所述的方法,其中,所述目标属性信息包括肤质属性信息,所述在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能,包括:
    在所述肤质属性信息满足预设肤质属性条件的情况下,开启所述肤质属性信息对应的磨皮美颜功能。
  3. 根据权利要求1所述的方法,其中,所述目标属性信息包括肤色属性信息,所述在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能,包括:
    在所述肤色属性信息满足预设肤色属性条件的情况下,开启所述肤色属性信息对应的肤色调整美颜功能。
  4. 根据权利要求1所述的方法,其中,所述目标属性信息包括脸型属性信息,所述在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能,包括:
    在所述脸型属性信息满足预设脸型属性条件的情况下,开启所述脸型属性信息对应的脸型调整美颜功能。
  5. 根据权利要求1所述的方法,其中,在所述开启所述目标属性信息对应的美颜功能之后,还包括:
    在距离关闭所述美颜模式的预设时长内,再次启动美颜模式的情况下,获取目标预览图像;
    在确定所述目标预览图像和所述预览图像的拍摄环境参数相同的情况下,获取所述目标预览图像中的用户的用户标识;
    在所述用户标识与所述目标用户的目标用户标识相同的情况下,开启所述目标属性信息对应的美颜功能。
  6. 一种美颜功能开启装置,包括:
    目标属性获取模块,用于在启动美颜模式的情况下,获取预览图像中目标用户的目标属性信息;
    美颜功能开启模块,用于在所述目标属性信息满足预设条件的情况下,开启所述目标属性信息对应的美颜功能。
  7. 根据权利要求6所述的装置,其中,所述目标属性信息包括肤质属性信息,所述美颜功能开启模块包括:
    磨皮美颜功能开启单元,用于在所述肤质属性信息满足预设肤质属性条件的情况下,开启所述肤质属性信息对应的磨皮美颜功能。
  8. 根据权利要求6所述的装置,其中,所述目标属性信息包括肤色属性信息,所 述美颜功能开启模块包括:
    肤色美颜功能开启单元,用于在所述肤色属性信息满足预设肤色属性条件的情况下,开启所述肤色属性信息对应的肤色调整美颜功能。
  9. 根据权利要求6所述的装置,其中,所述目标属性信息包括脸型属性信息,所述美颜功能开启模块包括:
    脸型美颜功能开启单元,用于在所述脸型属性信息满足预设脸型属性条件的情况下,开启所述脸型属性信息对应的脸型调整美颜功能。
  10. 根据权利要求6所述的装置,其中,还包括:
    目标图像获取模块,用于在距离关闭所述美颜模式的预设时长内,在再次启动美颜模式的情况下,获取目标预览图像;
    用户标识获取模块,用于在确定所述目标预览图像和所述预览图像的拍摄环境参数相同的情况下,获取所述目标预览图像中的用户的用户标识;
    目标功能开启模块,用于在所述用户标识与所述目标用户的目标用户标识相同的情况下,开启所述目标属性信息对应的美颜功能。
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的美颜功能开启方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的美颜功能开启方法的步骤。
  13. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的美颜功能开启方法。
  14. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的美颜功能开启方法。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的美颜功能开启方法。
PCT/CN2021/114148 2020-08-26 2021-08-23 美颜功能开启方法、装置及电子设备 WO2022042502A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010874120.XA CN111953905B (zh) 2020-08-26 2020-08-26 美颜功能开启方法、装置、电子设备及可读存储介质
CN202010874120.X 2020-08-26

Publications (1)

Publication Number Publication Date
WO2022042502A1 true WO2022042502A1 (zh) 2022-03-03

Family

ID=73367457

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114148 WO2022042502A1 (zh) 2020-08-26 2021-08-23 美颜功能开启方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN111953905B (zh)
WO (1) WO2022042502A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953905B (zh) * 2020-08-26 2021-11-16 维沃移动通信有限公司 美颜功能开启方法、装置、电子设备及可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050057657A1 (en) * 2003-09-12 2005-03-17 Nintendo Co., Ltd. Photographed image composing apparatus and a storage medium storing a photographed image composing program
CN103605975A (zh) * 2013-11-28 2014-02-26 小米科技有限责任公司 一种图像处理的方法、装置及终端设备
CN105069007A (zh) * 2015-07-02 2015-11-18 广东欧珀移动通信有限公司 一种建立美颜数据库的方法及装置
CN105279487A (zh) * 2015-10-15 2016-01-27 广东欧珀移动通信有限公司 美颜工具筛选方法和系统
CN107274354A (zh) * 2017-05-22 2017-10-20 奇酷互联网络科技(深圳)有限公司 图像处理方法、装置和移动终端
CN107995415A (zh) * 2017-11-09 2018-05-04 深圳市金立通信设备有限公司 一种图像处理方法、终端及计算机可读介质
CN111953905A (zh) * 2020-08-26 2020-11-17 维沃移动通信有限公司 美颜功能开启方法、装置及电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5872834B2 (ja) * 2011-10-06 2016-03-01 オリンパス株式会社 撮像装置、撮像方法および撮像プログラム
CN104715236A (zh) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 一种美颜拍照方法及装置
CN104850342A (zh) * 2015-04-29 2015-08-19 努比亚技术有限公司 移动终端及其应用程序的快速启动方法和装置
CN106060581B (zh) * 2016-07-05 2019-05-07 广州华多网络科技有限公司 一种视频实时传输数据处理方法、装置及系统
CN108256500A (zh) * 2018-02-05 2018-07-06 广东欧珀移动通信有限公司 信息的推荐方法、装置、终端及存储介质
CN109831636B (zh) * 2019-01-28 2021-03-16 努比亚技术有限公司 互动视频控制方法、终端及计算机可读存储介质
CN111047511A (zh) * 2019-12-31 2020-04-21 维沃移动通信有限公司 一种图像处理方法及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050057657A1 (en) * 2003-09-12 2005-03-17 Nintendo Co., Ltd. Photographed image composing apparatus and a storage medium storing a photographed image composing program
CN103605975A (zh) * 2013-11-28 2014-02-26 小米科技有限责任公司 一种图像处理的方法、装置及终端设备
CN105069007A (zh) * 2015-07-02 2015-11-18 广东欧珀移动通信有限公司 一种建立美颜数据库的方法及装置
CN105279487A (zh) * 2015-10-15 2016-01-27 广东欧珀移动通信有限公司 美颜工具筛选方法和系统
CN107274354A (zh) * 2017-05-22 2017-10-20 奇酷互联网络科技(深圳)有限公司 图像处理方法、装置和移动终端
CN107995415A (zh) * 2017-11-09 2018-05-04 深圳市金立通信设备有限公司 一种图像处理方法、终端及计算机可读介质
CN111953905A (zh) * 2020-08-26 2020-11-17 维沃移动通信有限公司 美颜功能开启方法、装置及电子设备

Also Published As

Publication number Publication date
CN111953905B (zh) 2021-11-16
CN111953905A (zh) 2020-11-17

Similar Documents

Publication Publication Date Title
US11367307B2 (en) Method for processing images and electronic device
US11443462B2 (en) Method and apparatus for generating cartoon face image, and computer storage medium
US10438329B2 (en) Image processing method and image processing apparatus
US10489635B2 (en) Method for detecting skin region and apparatus for detecting skin region
CN107767333B (zh) 美颜拍照的方法、设备及计算机可存储介质
WO2016145830A1 (zh) 图像处理方法、终端及计算机存储介质
US11030733B2 (en) Method, electronic device and storage medium for processing image
CN106249508B (zh) 自动对焦方法和系统、拍摄装置
WO2022068806A1 (zh) 图像处理方法、装置及电子设备
WO2022143387A1 (zh) 显示控制方法、装置、电子设备及介质
CN112333385B (zh) 电子防抖控制方法及装置
WO2022089272A1 (zh) 图像处理方法及装置
WO2023010796A1 (zh) 图像处理方法及相关装置
CN109325924A (zh) 图像处理方法、装置、终端及存储介质
CN108920368A (zh) 数据测试的方法、装置及电子设备
CN107085823B (zh) 人脸图像处理方法及装置
WO2023056950A1 (zh) 图像处理方法和电子设备
WO2022042502A1 (zh) 美颜功能开启方法、装置及电子设备
WO2022143382A1 (zh) 图像处理方法及装置
CN113255396A (zh) 图像处理模型的训练方法及装置、图像处理方法及装置
CN114501144A (zh) 基于图像的电视控制方法、装置、设备及存储介质
CN114242023A (zh) 显示屏亮度调节方法、显示屏亮度调节装置和电子设备
CN112511890A (zh) 视频图像处理方法、装置及电子设备
WO2023103813A1 (zh) 图像处理方法、装置、设备、存储介质及程序产品
CN112785490B (zh) 图像处理方法、装置及电子设备

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: 21860337

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: 21860337

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01/08/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21860337

Country of ref document: EP

Kind code of ref document: A1