Visual-based face area positioning method, apparatus, and wearable device

Through the camera and image recognition technology on the wearable device, the target face area of ​​the beauty care device is automatically located, which solves the problems of cumbersome operation and incompatibility of traditional beauty care devices, and improves the automatic switching of beauty care modes and skin care experience.

WO2024198082A1PCT designated stage expired Publication Date: 2024-10-03FLOSSOM (GD) BEAUTY TECH CO LTD

Patent Information

Application Number
PCT/CN2023/098402
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2023-06-05
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Traditional medical beauty care equipment cannot realize automatic switching of beauty care modes. Users need to manually operate the buttons, which results in cumbersome use, easy confusion, and increased user fatigue. In addition, due to individual differences and usage habits, the button configuration is inconsistent, which reduces the user-friendliness of the product. .

Method used

Using a vision-based face area positioning method, the camera on the wearable device collects images of beauty care equipment, uses image recognition algorithms to identify preset identifiable logos, determines the posture information of the beauty care equipment and the three-dimensional face model, and automatically locates the target. Face area, realize automatic switching of beauty care mode.

Benefits of technology

It reduces user operation difficulty and cost, improves skin care experience, eliminates the need to coordinate the relative positions of users and devices, increases compatibility with different beauty care devices, and simplifies the image collection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023098402_03102024_PF_FP_ABST
    Figure CN2023098402_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a visual-based face area positioning method, an apparatus, and a wearable device, the method comprising: obtaining an image of a beauty care device captured by a camera on the wearable device and performing recognition by means of using an image recognition algorithm; determining spatial orientation information of the beauty care device relative to the wearable device according to an image recognition result; according to the spatial orientation information of the beauty care device relative to the wearable device and a preset face key point, determining the spatial orientation information of a three-dimensional face model relative to the wearable device; according to the spatial orientation information of the beauty care device and the three-dimensional face model relative to the wearable device, determining a target face area of the beauty care device. In the present application, the face area is positioned by means of utilizing a visual positioning technology realized by the wearable device, so as to provide a basis for automatic switching a beauty mode without requiring to coordinate relative position of a user and the device, thereby reducing user operation difficulty and improving user experience of skin care.
Need to check novelty before this filing date? Find Prior Art

Description

Vision-based facial region positioning method, device, and wearable device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 31, 2023, with application number 202310345021.6, and entitled “Vision-based face region positioning method, device and wearable device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of beauty care technology, and in particular to a vision-based facial region positioning method, apparatus, and wearable device. Background Art

[0004] Traditional medical beauty devices mainly switch between different beauty modes by setting buttons for different facial areas. This solution is relatively reliable, but the user experience is poor. The main reasons are:

[0005] 1) Users need to first familiarize themselves with the beauty and care modes corresponding to each button and need to switch when the beauty instrument head reaches the corresponding area of ​​the face. This process is relatively cumbersome and users are prone to confuse the buttons. At the same time, manually switching modes back and forth can easily increase user fatigue; 2) Due to individual differences and different usage habits of users, the consistent button configuration causes problems for some users' usual grip posture. Users need some time to get used to using the product, which reduces the product's friendliness.

[0006] In order to solve the problem that traditional medical beauty care equipment cannot achieve automatic switching of beauty care modes, automatic positioning of the facial area where the beauty care equipment works becomes the entry point. The main solution provided in the existing technology is to realize the positioning of the facial area through the interaction between the user, terminal devices such as mobile phones and beauty care equipment. By pointing the camera on the terminal device at the user's face, a facial image containing the beauty care equipment working is captured, and then the image recognition technology and a pre-generated facial map are used to determine the facial area where the beauty care equipment is currently working.

[0007] However, in order to ensure the accuracy of image recognition, this visual positioning solution needs to coordinate the relative positions between the user and the terminal device and the beauty care device, which increases the difficulty of operation for the user and the device, and thus affects the user's skin care experience.

[0008] Summary of the Invention

[0009] The embodiments of the present application provide a vision-based facial region positioning method, apparatus, and wearable device, which use simultaneous visual recognition technology to achieve automatic positioning of the facial region, reduce user operation difficulty and cost, and improve the user's skin care experience.

[0010] The embodiments of this application adopt the following technical solutions:

[0011] In a first aspect, an embodiment of the present application provides a vision-based face region positioning method, the vision-based face region positioning method comprising:

[0012] Acquire an image of the beauty care device captured by a camera on the wearable device and recognize the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable identifier;

[0013] Determining the spatial posture information of the beauty care device in the wearable device coordinate system according to the image recognition result;

[0014] Determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points;

[0015] According to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system, the target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined.

[0016] Optionally, the preset identifiable identifier includes a preset coding identifier, and the acquiring of the image of the beauty care device captured by the camera on the wearable device and identifying the image of the beauty care device using an image recognition algorithm to obtain the image recognition result includes:

[0017] Converting the image of the beauty care device into a grayscale image and a target channel image respectively;

[0018] Detecting the preset coding mark in the grayscale image and the preset coding mark in the target channel image respectively using an image detection algorithm;

[0019] A coding mark recognition result is determined according to the preset coding mark in the grayscale image and the preset coding mark in the target channel image, where the coding mark recognition result includes at least three 2D feature points.

[0020] Optionally, the image recognition result includes 2D feature points of a target identifiable identifier, and determining the spatial posture information of the beauty care device in the wearable device coordinate system according to the image recognition result includes:

[0021] Obtaining a correspondence between 2D feature points and 3D feature points of a preset identifiable mark, wherein the 3D feature points are 3D feature points of the preset identifiable mark in the coordinate system of the beauty care device;

[0022] Determining the 3D feature points corresponding to the 2D feature points of the target identifiable marker according to the correspondence between the 2D feature points and the 3D feature points of the preset identifiable marker;

[0023] Determine the spatial posture information of the camera in the coordinate system of the beauty care device using a camera posture solution algorithm based on the 3D feature points corresponding to the 2D feature points of the target identifiable mark;

[0024] According to the spatial posture information of the camera in the coordinate system of the beauty protection device, the spatial posture information of the beauty protection device in the coordinate system of the wearable device is determined.

[0025] Optionally, determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and preset facial key points includes:

[0026] Tracking the spatial posture information of the beauty and protection device in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points;

[0027] The spatial posture information of the three-dimensional face model in the wearable device coordinate system is determined according to the tracked spatial posture information of the beauty protection device in the wearable device coordinate system.

[0028] Optionally, determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the tracked spatial posture information of the beauty and protection device in the wearable device coordinate system includes:

[0029] Determining the spatial posture information of the preset facial key points in the wearable device coordinate system based on the tracked spatial posture information of the beauty and protection device in the wearable device coordinate system;

[0030] According to the spatial posture information of the preset facial key points in the wearable device coordinate system, a facial three-dimensional model fitting algorithm is used to fit the facial three-dimensional model to obtain the spatial posture information of the facial three-dimensional model in the wearable device coordinate system.

[0031] Optionally, determining the target face area corresponding to the beauty care device in the wearable device coordinate system according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system includes:

[0032] Determining a three-dimensional overlapping area corresponding to the beauty care device and the three-dimensional face model according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system;

[0033] The target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined according to the three-dimensional overlapping area corresponding to the beauty and protection device and the three-dimensional face model.

[0034] Optionally, the image of the beauty care device is captured by a camera in real time, and determining the target face area corresponding to the beauty care device in the wearable device coordinate system based on the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system includes:

[0035] updating the spatial posture information of the beauty care device in the wearable device coordinate system according to the image recognition result corresponding to the image of the beauty care device collected by the camera in real time;

[0036] Obtaining spatial posture change information of preset facial key points, and updating spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture change information of the preset facial key points;

[0037] According to the updated spatial posture information of the beauty and protection device in the wearable device coordinate system and the updated spatial posture information of the three-dimensional face model in the wearable device coordinate system, the target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined.

[0038] Optionally, the target face partition is one of a plurality of face partitions, and the plurality of face partitions include at least one of five partitions and seven partitions.

[0039] In a second aspect, an embodiment of the present application further provides a vision-based facial region positioning device, wherein the vision-based facial region positioning device includes:

[0040] an identification unit, configured to obtain an image of the beauty care device captured by a camera on the wearable device and identify the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device includes a preset identifiable identifier;

[0041] A first determining unit is configured to determine the spatial posture information of the beauty and protection device in the coordinate system of the wearable device according to the image recognition result;

[0042] a second determining unit, configured to determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and preset facial key points;

[0043] The third determining unit is used to determine the target face area corresponding to the beauty care device in the wearable device coordinate system based on the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0044] In a third aspect, an embodiment of the present application further provides a wearable device, comprising:

[0045] A camera for capturing images of the beauty care equipment;

[0046] processor; and

[0047] A memory arranged to store computer-executable instructions, wherein when the instructions are executed, the processor performs any of the aforementioned vision-based face region localization methods.

[0048] In a fourth aspect, an embodiment of the present application further provides a beauty care system, which includes a beauty care device and the wearable device as described above.

[0049] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a wearable device including multiple applications, the wearable device executes any of the aforementioned methods.

[0050] At least one of the above-mentioned technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: the vision-based face area positioning method in the embodiments of the present application first obtains the image of the beauty care device captured by the camera on the wearable device and uses the image recognition algorithm to recognize the image of the beauty care device to obtain an image recognition result, and the image of the beauty care device contains a preset identifiable logo; then, the spatial posture information of the beauty care device in the wearable device coordinate system is determined according to the image recognition result; then, the spatial posture information of the beauty care device in the wearable device coordinate system and the preset facial key points are determined; finally, the target face area corresponding to the beauty care device in the wearable device coordinate system is determined according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system. The embodiment of the present application utilizes visual positioning technology implemented by a wearable device worn by the user to automatically locate the facial area, providing a basis for automatic switching of beauty care modes and precise skin care. There is no need to coordinate the relative positions between the user, the wearable device, and the beauty care device, which reduces the difficulty of image acquisition and does not require additional hardware structure on the beauty care device, thereby improving compatibility with different beauty care devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0052] FIG1 is a flow chart of a method for locating a face region based on vision in an embodiment of the present application;

[0053] FIG2 is a schematic diagram of face area division in an embodiment of the present application;

[0054] FIG3 is a schematic diagram of key points of a face according to an embodiment of the present application;

[0055] FIG4 is a schematic diagram of a preset identifiable mark in an embodiment of the present application;

[0056] FIG5 is a schematic diagram of an image recognition process in an embodiment of the present application;

[0057] FIG6 is a schematic diagram of constructing a coordinate system for a beauty care device according to an embodiment of the present application;

[0058] FIG7 is a schematic diagram of a process for reconstructing the three-dimensional appearance of a human face in an embodiment of the present application;

[0059] FIG8 is a schematic diagram of a process for determining a target face area according to an embodiment of the present application;

[0060] FIG9 is a schematic structural diagram of a vision-based face region positioning device according to an embodiment of the present application;

[0061] FIG10 is a schematic structural diagram of a wearable device in an embodiment of the present application. DETAILED DESCRIPTION

[0062] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0063] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.

[0064] In view of the problem that existing solutions increase the burden on users in order to switch modes of beauty care devices, an embodiment of the present application provides a method for locating a facial region based on vision. As shown in FIG1 , a flow chart of a method for locating a facial region based on vision in an embodiment of the present application is provided. The method for locating a facial region based on vision includes at least the following steps S110 to S140:

[0065] Step S110, obtaining an image of the beauty care device captured by the camera on the wearable device and identifying the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable mark.

[0066] The "face area" defined in the embodiment of the present application can be a facial skin area divided according to the functional requirements of the beauty care device. As shown in Figure 2, a schematic diagram of the face area division in the embodiment of the present application is provided, which may include, for example, the forehead area, eye area and cheek area.

[0067] When locating the facial area, the user needs to wear a wearable device first to obtain the image of the beauty care device captured by the camera on the wearable device. The wearable device of the embodiment of the present application can be regarded as an auxiliary positioning device independent of the beauty care device. A wearable device in any form such as a headband, hairpin, hairpin, necklace, neck ring, bracelet, or wristband can be used to fix it on the user's head, neck, or wrist. A camera is set at a specific position of the wearable device. The specific position only needs to ensure that the camera can capture the beauty care device in front of the entire facial area. For example, if a wearable device in the form of a headband is used, the camera can be set directly above the forehead corresponding to the wearable device, or it can be set on both sides of the forehead. The number of cameras can be one or more. Therefore, how to set the camera on the wearable device can be flexibly set by those skilled in the art according to needs, and no specific limitation is made here.

[0068] It should be noted that since the specific structure of the wearable device is designed in advance based on the user's wearing method, for example, if the wearable device is in the form of a headband, the user can simply wear it normally according to the habit of wearing a headband. After wearing it, the relative position between the user and the wearable device is fixed, and there is no need to consider or coordinate the user's position relative to the wearable device during the image acquisition link, which reduces the user's operation difficulty.

[0069] After obtaining the image of the beauty care device, the image recognition algorithm can be used to identify the preset identifiable identifier in the image of the beauty care device. The "preset identifiable identifier" refers to a specific identifier that is pre-set on the body of the beauty care device and has determined the position information. Its main function is to provide a basis for determining the spatial posture information of the beauty care device in the coordinate system of the wearable device. The specific form of expression can be flexibly determined by those skilled in the art in combination with existing technologies, and is not specifically limited here.

[0070] Step S120: determining the spatial posture information of the beauty care device in the wearable device coordinate system according to the image recognition result.

[0071] The image recognition algorithm can identify preset identifiable markers contained in the image and determine the corresponding two-dimensional position information of the preset identifiable markers. Then, based on the three-dimensional position information corresponding to the predetermined two-dimensional position information of the preset identifiable markers, it can solve the camera pose in the beauty care device coordinate system. Finally, it can reversely calculate the spatial pose information of the beauty care device in the wearable device coordinate system, thus calibrating the spatial pose of the beauty care device to the wearable device coordinate system. The reason for calibrating the spatial pose of the beauty care device to the wearable device coordinate system is mainly due to the fact that the wearable device is relatively fixed relative to the user's head.

[0072] The coordinate system of the wearable device in the embodiment of the present application can be flexibly defined according to actual needs. For example, the origin of the coordinate system and the corresponding axis directions can be defined according to any point on the wearable device, or the camera coordinate system can be directly constructed with the camera position on the wearable device as the origin. The spatial posture information of the beauty care device in the wearable device coordinate system can specifically refer to the six-degree-of-freedom information of the beauty care device relative to the wearable device. The six degrees of freedom refer to the degrees of freedom of a rigid body in three-dimensional space, and in particular, the rigid body can translate on three mutually perpendicular coordinate axes: front and back, up and down, and left and right, and can also rotate its direction on three perpendicular axes. The three rotation directions are called pitch, yaw, and roll.

[0073] Step S130: determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points.

[0074] After determining the spatial posture information of the beauty and protection device in the coordinate system of the wearable device, it is necessary to further determine the spatial posture information of the three-dimensional shape of the face in the coordinate system of the wearable device. For this purpose, the embodiment of the present application predefines the facial key points. The facial key points here mainly refer to the facial features of areas such as eyebrows, eyelids, lips, and nose. As shown in Figure 3, a schematic diagram of facial key points in the embodiment of the present application is provided. The black dots in the figure are the defined facial key points. The detection of facial key points is the basis for other face-related tasks such as face recognition, expression analysis, and three-dimensional face reconstruction. In the embodiment of the present application, the three-dimensional shape of the face is restored mainly based on the preset facial key points.

[0075] Since the spatial posture information of the beauty protection device in the wearable device coordinate system is calculated in the above steps, the three-dimensional position of the facial key points in the wearable device coordinate system can be determined based on the relative movement of the beauty protection device on each preset facial key point, so that the three-dimensional face model in the wearable device coordinate system can be fitted, that is, the spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0076] In the embodiment of the present application, the determination of the spatial posture of the three-dimensional face model does not require the installation of an additional camera facing the face area on the beauty care device, which reduces the hardware modification cost of the beauty care device and also improves the compatibility with other different types of beauty care devices, that is, achieving the purpose of a wearable device being able to connect to multiple different beauty care devices at the same time.

[0077] Step S140: determining a target face region corresponding to the beauty care device in the wearable device coordinate system according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0078] The spatial posture information of the beauty protection device and the three-dimensional facial model in the coordinate system of the wearable device indicates that the three-dimensional position and posture information of the two are unified in the same coordinate system. Then, the spatial overlapping area can be calculated through the spatial posture information of the two in the same coordinate system, thereby determining the target facial area that the beauty protection device is currently acting on.

[0079] Since the spatial posture information will change with the real-time acquisition and recognition of camera images, the corresponding calculated target face area will also be updated in real time. This can control the beauty protection device to switch to different beauty protection modes for different target face areas.

[0080] The vision-based face area positioning method of the embodiment of the present application uses the visual positioning technology implemented by the wearable device worn by the user to automatically locate the face area, providing a basis for automatic switching of beauty care modes and precise skin care. There is no need to coordinate the relative positions between the user, wearable device and beauty care device, which reduces the difficulty of image acquisition and does not require additional hardware structure on the beauty care device, thereby improving compatibility with different beauty care devices.

[0081] In some embodiments of the present application, the preset identifiable identifier includes a preset coding identifier, and the image of the beauty care device captured by the camera on the wearable device is obtained and the image of the beauty care device is identified by using an image recognition algorithm to obtain an image recognition result, including: converting the image of the beauty care device into a grayscale image and a target channel image respectively; using an image detection algorithm to detect the preset coding identifier in the grayscale image and the preset coding identifier in the target channel image respectively; determining the coding identifier recognition result based on the preset coding identifier in the grayscale image and the preset coding identifier in the target channel image, and the coding identifier recognition result includes at least three 2D feature points.

[0082] In order to facilitate the extraction of coding marks and improve recognition accuracy, the embodiment of the present application designs a binary square coding mark. Each coding mark can be in the form of four circles embedded in a rectangular frame, one of which is black and the others are white. This is mainly because the subsequent PnP (Perspective-n-Point) solution algorithm requires at least three feature points. The coding mark is designed as four circles because the rectangle recognition and dot recognition algorithms are relatively mature. On the other hand, the four circles have directional issues, and a special circle can indicate the directionality.

[0083] It should be noted that the aforementioned coded markers can be implemented based on conventional computer vision coding methods such as Aurco markers, or one can independently design their own coded markers based on their own needs. The coding requirement is that the code surrounding the body of the beauty care device has a unique minimum identification unit at any viewing angle. Since the relative spatial positions of the various coded markers are predefined, simply identifying one coded marker from any viewing angle can reveal the spatial positions of the others. Furthermore, the use of these recognizable coded markers eliminates the need for additional hardware on the beauty care device, making it compatible with a wider range of beauty care devices.

[0084] Considering that the user's grip on the beauty care device can affect the recognition of the coded markers, multiple rectangular coded markers can be arranged in a spiral pattern around the body of the beauty care device to ensure that at least one coded marker is recognized, but generally 3 to 4 coded markers will be recognized. In addition, a ring-shaped marker can be placed at one end of the beauty care device body to locate the recognition of the rectangular coded marker. As shown in Figure 4, a schematic diagram of a preset identifiable marker in an embodiment of the present application is provided.

[0085] Based on the coding identifier defined by the above implementation, when performing coding identifier recognition, the image of the beauty device can be first converted into a grayscale image and an image of the target channel color. The target channel color mainly depends on the color of the annular identifier, for example, it can be set to green. Then, based on morphological detection and binary differentiation, the annular identifier in the green channel image and the coding identifier and annular identifier in the grayscale image are extracted respectively. After removing the annular identifier code from the green channel image, a rectangle that meets the requirements of all four circles and the corresponding circular position are obtained, thereby identifying a coding identifier. If there are other identifiers that meet the conditions, they can be processed in the same way. Subsequently, the three-dimensional spatial position and two-dimensional image position of the four circles in a single coding identifier can be solved through PnP, so at least one coding identifier can be identified. As shown in Figure 5, a schematic diagram of an image recognition process in an embodiment of the present application is provided.

[0086] In some embodiments of the present application, the image recognition result includes 2D feature points of a target identifiable identifier, and determining the spatial posture information of the beauty protection device in the wearable device coordinate system based on the image recognition result includes: obtaining the correspondence between the 2D feature points and 3D feature points of a preset identifiable identifier, and the 3D feature points are the 3D feature points of the preset identifiable identifier in the beauty protection device coordinate system; determining the 3D feature points corresponding to the 2D feature points of the target identifiable identifier based on the correspondence between the 2D feature points and the 3D feature points of the preset identifiable identifier; determining the spatial posture information of the camera in the beauty protection device coordinate system using a camera pose solution algorithm based on the 3D feature points corresponding to the 2D feature points of the target identifiable identifier; and determining the spatial posture information of the beauty protection device in the wearable device coordinate system based on the spatial posture information of the camera in the beauty protection device coordinate system.

[0087] In the embodiment of the present application, the calculation of the spatial posture information of the beauty care device in the wearable device coordinate system can be obtained based on a camera pose solving algorithm such as the PnP algorithm. The PnP algorithm is an algorithm that solves the camera pose by combining the coordinates of a given 3D point, the corresponding 2D point coordinates, and the camera intrinsic parameter matrix. The camera intrinsic parameters generally include the focal length value, principal point value, coordinate axis tilt parameters, and camera distortion parameters of the pointer hole camera model, which can be calibrated in advance.

[0088] Based on this, the embodiment of the present application has clarified the three-dimensional spatial coordinates of the feature points in the preset identifiable identifier in the world coordinate system, that is, the beauty protection device coordinate system, during the stage of defining the preset identifiable identifier. Therefore, the correspondence between the 2D feature points and the 3D feature points is also determined accordingly. Then, based on the correspondence between the 2D feature point values ​​and the 3D feature points and the 2D feature points of the target identifiable identifier currently identified from the image, the 3D feature points corresponding to the 2D feature points of the target identifiable identifier can be determined. The PnP algorithm can be further used to calculate the camera pose, that is, the spatial change of the current camera relative to the beauty protection device coordinate system. Finally, the spatial change of the beauty protection device relative to the wearable device coordinate system can be obtained by conversion, that is, the six-degree-of-freedom information of the current beauty protection device is obtained, which also provides a basis for the subsequent detection of facial key points and the establishment of a three-dimensional facial model.

[0089] To facilitate understanding of the embodiments of the present application, a schematic diagram of constructing a beauty care device coordinate system in accordance with an embodiment of the present application is provided as shown in FIG6 . For example, assuming that the body of the beauty care device is a cylinder, then when the body of the beauty care device is parallel to the ground, the center of the bottom surface of the body can be used as the origin of the coordinate system, the direction parallel to the ground and horizontally backward is the X-axis, the direction perpendicular to the ground and upward is the Y-axis, and the direction parallel to the ground and horizontally to the right is the Z-axis. Of course, this is merely an exemplary description of the beauty care device coordinate system in accordance with an embodiment of the present application. The specific construction of the beauty care device coordinate system can be flexibly adjusted by those skilled in the art based on actual conditions, and is not specifically limited here.

[0090] In some embodiments of the present application, determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the preset facial key points includes: tracking the spatial posture information of the beauty protection device in the wearable device coordinate system based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the preset facial key points; determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the tracked spatial posture information of the beauty protection device in the wearable device coordinate system.

[0091] Since the camera in the embodiment of the present application is set to face the beauty and protection device, and there is no camera facing the facial area, it is impossible to directly determine the spatial posture information of each facial key point in the facial area in the coordinate system of the wearable device through image recognition. However, since the forehead area is less distributed in the facial muscles, the spatial changes caused by facial muscle movement in the camera bound to the forehead area of ​​the face can be ignored. Based on the stable spatial relationship formed between the forehead camera and the three-dimensional appearance of the face, the spatial posture information of the beauty and protection device in the coordinate system of the wearable device can be tracked, and the spatial posture information of the facial key points in the coordinate system of the wearable device can be indirectly determined through the tracking results of the spatial posture information of the beauty and protection device.

[0092] For example, when a user first uses a beauty care device, they can control the device's movement so that the device's sensing head sequentially lands on each preset facial landmark in the facial area. When the sensing head contacts a preset facial landmark, the tracked spatial pose information of the beauty care device in the wearable device's coordinate system is equivalent to the spatial pose information of the facial landmark in the wearable device's coordinate system. Based on this, the spatial pose information of each preset facial landmark in the wearable device's coordinate system can be obtained, and the three-dimensional appearance of the face in the wearable device's coordinate system can be restored.

[0093] The above process can be regarded as a face calibration link. Based on the tracking of the spatial posture information of the beauty and protection device in the wearable device coordinate system, the spatial posture information of the key points of the face in the wearable device coordinate system is indirectly calculated, thereby calibrating the three-dimensional shape of the face to the wearable device coordinate system, which serves as the basis for the subsequent calculation of the spatial overlapping area between the three-dimensional shape of the face and the beauty and protection device in the wearable device coordinate system.

[0094] In some embodiments of the present application, determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the tracked beauty and protection device in the wearable device coordinate system includes: determining the spatial posture information of the preset face key points in the wearable device coordinate system based on the spatial posture information of the tracked beauty and protection device in the wearable device coordinate system; fitting the spatial posture information of the preset face key points in the wearable device coordinate system using a three-dimensional face model fitting algorithm to obtain the spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0095] When the sensing head of the beauty protection device contacts the preset facial key points, a feedback signal will be generated, that is, the feedback signal indicates that the beauty protection device has currently contacted the preset facial key points. At this moment, the spatial positions of the beauty protection device and the preset facial key points in the wearable device coordinate system coincide with each other. Therefore, the spatial posture information of the beauty protection device tracked at this time in the wearable device coordinate system is the spatial posture information of the facial key points in the wearable device coordinate system.

[0096] After obtaining the spatial pose information of the preset facial key points in the wearable device coordinate system, a facial 3D model fitting algorithm can be used to fit the facial 3D model based on the spatial pose information of the preset facial key points in the wearable device coordinate system, thereby restoring the facial 3D appearance in the wearable device coordinate system. To facilitate understanding of the embodiments of the present application, a schematic diagram of the 3D facial appearance reconstruction process in the embodiments of the present application is provided as shown in FIG7. The facial 3D model fitting algorithm can be implemented based on existing 3D facial reconstruction models such as 3D MM and Flame. The specific implementation process can be determined in combination with existing technologies and is not described in detail here.

[0097] In some embodiments of the present application, determining the target facial area corresponding to the beauty protection device in the wearable device coordinate system based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional facial model in the wearable device coordinate system includes: determining the three-dimensional overlapping area corresponding to the beauty protection device and the three-dimensional facial model based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional facial model in the wearable device coordinate system; determining the target facial area corresponding to the beauty protection device in the wearable device coordinate system based on the three-dimensional overlapping area corresponding to the beauty protection device and the three-dimensional facial model.

[0098] Based on the spatial pose information of the beauty care device and the 3D facial model obtained in the wearable device coordinate system in the aforementioned embodiment, the 3D shape of the beauty care device and the 3D facial shape are determined. By calculating the overlapping area between the beauty care device and the 3D facial shape, the target facial region of the current beauty care device's sensing head is determined, providing a basis for automatically switching beauty care modes. Figure 8 shows a schematic diagram of the process for determining the target facial region in an embodiment of the present application.

[0099] Since the beauty care device and the three-dimensional appearance of the face can be regarded as a three-dimensional point cloud composed of multiple 3D points, the calculation of the overlapping area can be implemented based on an algorithm for the overlapping area of ​​the three-dimensional point cloud, such as the PCL algorithm. Of course, technical personnel in this field can flexibly choose how to calculate the overlapping area according to actual needs, and no specific limitation is made here.

[0100] In some embodiments of the present application, the image of the beauty protection device is captured by a camera in real time, and determining the target face area corresponding to the beauty protection device in the wearable device coordinate system based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system includes: updating the spatial posture information of the beauty protection device in the wearable device coordinate system according to the image recognition result corresponding to the image of the beauty protection device captured by the camera in real time; obtaining spatial posture change information of preset face key points, and updating the spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture change information of the preset face key points; determining the target face area corresponding to the beauty protection device in the wearable device coordinate system according to the updated spatial posture information of the beauty protection device in the wearable device coordinate system and the updated spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0101] The three-dimensional facial shape in the aforementioned embodiments is obtained when the face does not make any changes in expression, or the impact of changes in facial expression on the subsequent determination of the target facial area is ignored. However, in fact, when the user uses the beauty care device, the movement of facial muscles is random, and the key points of the face will also change during this process, which will cause the corresponding three-dimensional facial shape to change.

[0102] Based on this, in order to further improve the accuracy of facial area positioning, the embodiment of the present application can update the relative spatial relationship between the beauty care device and the three-dimensional facial appearance in the wearable device coordinate system in real time, thereby providing more accurate input for the subsequent positioning of the facial area where the beauty care device is located.

[0103] Real-time updates of the beauty device's spatial posture information can be achieved using a camera that's always on. Spatial posture changes of preset facial key points can be achieved using a myoelectric device. This device, for example, can be located in areas such as the forehead and outer ear, integrated with the camera into a device similar to a headband, and operate in parallel with the camera in a multi-threaded mode. The myoelectric device detects the electromyography generated by facial muscle movement, and uses an algorithm to calculate the spatial posture change information of the current facial key points. This information then updates the spatial posture information of the three-dimensional facial model in the wearable device's coordinate system, ultimately updating the three-dimensional facial shape.

[0104] Furthermore, since the beauty care device itself generates myoelectricity, the signals captured by the myoelectric device may be subject to interference. Therefore, further consideration can be given to eliminating interference from the myoelectric signals generated by the beauty care device itself. The closer the distance between the beauty care device and the myoelectric device, the greater the interference. Therefore, the relative distance between the beauty care device and the myoelectric device can be detected to control the myoelectric device and turn it on and off. This ensures that the myoelectric device detects changes in facial key points only when interference is minimal or negligible, thereby ensuring the accuracy of the facial 3D shape update.

[0105] For example, the myoelectric device can be set to pause working after the beauty care device touches the facial skin, and start working after the beauty care device leaves the face, to ensure that the myoelectric device can detect changes in facial key points as undisturbed as possible or when interference can be ignored. At the same time, the power consumption of the overall system is also taken into consideration, and unnecessary calculations are avoided by dynamically controlling the switching of the myoelectric device.

[0106] In some embodiments of the present application, the target face partition is one of a plurality of face partitions, and the plurality of face partitions include at least one of five partitions and seven partitions.

[0107] As shown in FIG2 , the face partitions of the embodiment of the present application may include the forehead, eye, and cheek regions. This partitioning method specifically corresponds to five partitions, including the forehead, left eye, right eye, left cheek, and right cheek regions. Of course, the face region can be further divided into more detailed regions. For example, the cheek region can be further divided into the jawline region and the apple muscle region. This partitioning method corresponds to seven partitions. Of course, the specific division method can be flexibly defined by those skilled in the art according to actual needs and is not specifically limited here.

[0108] The more detailed the division of facial areas, the higher the accuracy requirement for area positioning. The facial area positioning solution based on vision in the embodiment of the present application can support sufficiently fine-grained facial area division, providing strong support for the user's precise zone skin care.

[0109] This application utilizes a facial region positioning method based on visual positioning technology, enabling beauty care devices to automatically switch beauty care modes based on the current facial region, freeing the user's hands while achieving precise skin care. Furthermore, facial region positioning can also provide beauty care devices with greater application value, such as real-time temperature, humidity, and impedance detection at any location within the facial region. This partitioned data can be used to establish personalized facial care data for the user, thereby automatically providing personalized instrument parameters and modes, as well as care recommendations, for precise care.

[0110] It should be noted that the drawings mentioned in each embodiment of this application are for reference only, and some detailed information is not fully shown.

[0111] The present application also provides a vision-based facial region positioning device 900. As shown in FIG9 , a schematic structural diagram of a vision-based facial region positioning device according to the present application is provided. The vision-based facial region positioning device 900 includes at least: an identification unit 910, a first determination unit 920, a second determination unit 930, and a third determination unit 940, wherein:

[0112] The recognition unit 910 is configured to obtain an image of the beauty care device captured by the camera on the wearable device and recognize the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable identifier;

[0113] A first determining unit 920 is configured to determine the spatial posture information of the beauty and protection device in the wearable device coordinate system according to the image recognition result;

[0114] The second determining unit 930 is configured to determine the spatial pose information of the three-dimensional face model in the wearable device coordinate system based on the spatial pose information of the beauty and protection device in the wearable device coordinate system and the preset facial key points;

[0115] The third determining unit 940 is used to determine the target face area corresponding to the beauty care device in the wearable device coordinate system based on the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0116] In some embodiments of the present application, the preset identifiable identifier includes a preset coding identifier, and the identification unit is specifically used to: convert the image of the beauty care device into a grayscale image and a target channel image respectively; use an image detection algorithm to detect the preset coding identifier in the grayscale image and the preset coding identifier in the target channel image respectively; determine a coding identifier recognition result based on the preset coding identifier in the grayscale image and the preset coding identifier in the target channel image, and the coding identifier recognition result includes at least three 2D feature points.

[0117] In some embodiments of the present application, the image recognition result includes 2D feature points of the target identifiable identifier, and the first determination unit 920 is specifically used to: obtain the correspondence between the 2D feature points and 3D feature points of the preset identifiable identifier, and the 3D feature points are the 3D feature points of the preset identifiable identifier in the beauty protection device coordinate system; determine the 3D feature points corresponding to the 2D feature points of the target identifiable identifier based on the correspondence between the 2D feature points and the 3D feature points of the preset identifiable identifier; determine the spatial posture information of the camera in the beauty protection device coordinate system using a camera pose solution algorithm based on the 3D feature points corresponding to the 2D feature points of the target identifiable identifier; and determine the spatial posture information of the beauty protection device in the wearable device coordinate system based on the spatial posture information of the camera in the beauty protection device coordinate system.

[0118] In some embodiments of the present application, the second determination unit 930 is specifically used to: track the spatial posture information of the beauty protection device in the wearable device coordinate system based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the preset facial key points; determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the tracked spatial posture information of the beauty protection device in the wearable device coordinate system.

[0119] In some embodiments of the present application, the second determination unit 930 is specifically used to: determine the spatial posture information of the preset facial key points in the wearable device coordinate system based on the spatial posture information of the tracked beauty care device in the wearable device coordinate system; and use the facial three-dimensional model fitting algorithm to fit the spatial posture information of the preset facial key points in the wearable device coordinate system to obtain the spatial posture information of the facial three-dimensional model in the wearable device coordinate system.

[0120] In some embodiments of the present application, the third determination unit 940 is specifically used to: determine the three-dimensional overlapping area corresponding to the beauty protection device and the three-dimensional facial model based on the spatial posture information of the beauty protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional facial model in the wearable device coordinate system; determine the target facial area corresponding to the beauty protection device in the wearable device coordinate system based on the three-dimensional overlapping area corresponding to the beauty protection device and the three-dimensional facial model.

[0121] In some embodiments of the present application, the image of the beauty protection device is captured by a camera in real time, and the third determination unit 940 is specifically used to: update the spatial posture information of the beauty protection device in the wearable device coordinate system according to the image recognition result corresponding to the image of the beauty protection device captured by the camera in real time; obtain the spatial posture change information of the preset facial key points, and update the spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture change information of the preset facial key points; determine the target face area corresponding to the beauty protection device in the wearable device coordinate system according to the updated spatial posture information of the beauty protection device in the wearable device coordinate system and the updated spatial posture information of the three-dimensional face model in the wearable device coordinate system.

[0122] It can be understood that the above-mentioned vision-based face area positioning device can implement the various steps of the vision-based face area positioning method provided in the aforementioned embodiment. The relevant explanations about the vision-based face area positioning method are applicable to the vision-based face area positioning device and will not be repeated here.

[0123] The embodiment of the present application further provides a wearable device, the wearable device comprising: a camera for collecting images of a beauty care device; a processor; and

[0124] A memory arranged to store computer-executable instructions, wherein when the instructions are executed, the processor performs any of the aforementioned vision-based face region localization methods.

[0125] In some embodiments of the present application, the wearable device further includes an electromyographic device for detecting change information of key points of a human face.

[0126] The wearable device of the aforementioned embodiment can be regarded as an auxiliary device for switching the modes of the beauty care device. To facilitate user use, the wearable device can adopt a head-mounted device similar to a "headband", which integrates a camera facing the beauty care device and the vision-based facial area positioning device of the aforementioned embodiments, and can also be provided with an electromyographic device. The camera can be one or more RGB cameras or infrared cameras, etc., and can be set at a location such as the forehead as needed to collect images of the beauty care device with preset identifiable marks. The vision-based facial area positioning device can be regarded as a processor, which mainly calculates the spatial posture of the beauty care device and the three-dimensional appearance of the face, as well as the target facial area. The electromyographic device can be set at areas such as the forehead and outer ear of the face, mainly for real-time detection of dynamic facial expression changes and obtaining information on changes in key facial points.

[0127] When using the beauty care device, users only need to wear the wearable device on their head or neck. The subsequent facial area positioning and beauty care mode switching are all automatic processes, which greatly reduces the user's usage burden and improves the user experience.

[0128] An embodiment of the present application further provides a beauty care system, which includes a beauty care device and the wearable device as described above.

[0129] FIG10 is a schematic diagram of the structure of a wearable device according to an embodiment of the present application. Referring to FIG10 , at the hardware level, the wearable device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage device. Of course, the wearable device may also include hardware required for other services.

[0130] The processor, network interface, and memory can be interconnected via an internal bus, such as an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. These buses can be classified as address buses, data buses, and control buses. For ease of illustration, FIG10 shows only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.

[0131] The memory is used to store programs. Specifically, the program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0132] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, forming a visual-based face area positioning device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0133] Acquire an image of the beauty care device captured by a camera on the wearable device and recognize the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable identifier;

[0134] Determining the spatial posture information of the beauty care device in the wearable device coordinate system according to the image recognition result;

[0135] Determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points;

[0136] According to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system, the target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined.

[0137] The method performed by the vision-based face region localization device disclosed in the embodiment shown in FIG1 of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor or by software instructions. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0138] The wearable device can also execute the method executed by the vision-based face area positioning device in Figure 1, and realize the functions of the vision-based face area positioning device in the embodiment shown in Figure 1, and the embodiments of this application will not be repeated here.

[0139] The present application also provides a computer-readable storage medium that stores one or more programs. The one or more programs include instructions that, when executed by a wearable device that includes multiple application programs, enable the wearable device to execute the method performed by the vision-based face region positioning apparatus in the embodiment shown in FIG1 , and are specifically configured to execute:

[0140] Acquire an image of the beauty care device captured by a camera on the wearable device and recognize the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable identifier;

[0141] Determining the spatial posture information of the beauty care device in the wearable device coordinate system according to the image recognition result;

[0142] Determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points;

[0143] According to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system, the target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined.

[0144] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0146] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0148] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0149] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0150] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0151] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0153] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for locating a face region based on vision, wherein: The vision-based face region positioning method comprises: Acquire an image of the beauty care device captured by a camera on the wearable device and recognize the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable mark; Determine the spatial posture information of the beauty care device in the coordinate system of the wearable device according to the image recognition result; Determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points; According to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system, the target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined.

2. The method for locating a face region based on vision according to claim 1, wherein: The preset identifiable mark includes a preset coding mark, and the image of the beauty care device captured by the camera on the wearable device is obtained and the image recognition algorithm is used to recognize the image of the beauty care device to obtain the image recognition result, which includes: Converting the image of the beauty care device into a grayscale image and a target channel image respectively; Using an image detection algorithm to detect the preset coding mark in the grayscale image and the preset coding mark in the target channel image respectively; A coding mark recognition result is determined according to a preset coding mark in the grayscale image and a preset coding mark in the target channel image, wherein the coding mark recognition result includes at least three 2D feature points.

3. The method for locating a face region based on vision according to claim 1, wherein: The image recognition result includes 2D feature points of the target identifiable mark, and the spatial posture information of the beauty care device in the wearable device coordinate system determined according to the image recognition result includes: Obtaining the correspondence between the 2D feature points and the 3D feature points of the preset identifiable mark, wherein the 3D feature points are the 3D feature points of the preset identifiable mark in the coordinate system of the beauty care device; Determine the 3D feature points corresponding to the 2D feature points of the target identifiable mark according to the correspondence between the 2D feature points and the 3D feature points of the preset identifiable mark; According to the 3D feature points corresponding to the 2D feature points of the target identifiable mark, the spatial posture information of the camera in the beauty care device coordinate system is determined by using a camera posture solving algorithm; According to the spatial posture information of the camera in the coordinate system of the beauty care device, the spatial posture information of the beauty care device in the coordinate system of the wearable device is determined.

4. The method for locating a face region based on vision according to claim 1, wherein: Determining the spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points includes: Tracking the spatial posture information of the beauty and protection device in the wearable device coordinate system based on the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points; The spatial posture information of the three-dimensional face model in the wearable device coordinate system is determined according to the tracked spatial posture information of the beauty protection device in the wearable device coordinate system.

5. The method for locating a face region based on vision according to claim 4, wherein: The step of determining the spatial posture information of the three-dimensional face model in the coordinate system of the wearable device according to the spatial posture information of the beauty and protection device in the coordinate system of the wearable device that is tracked includes: Determine the spatial posture information of the preset facial key points in the wearable device coordinate system according to the tracked spatial posture information of the beauty and protection device in the wearable device coordinate system; According to the spatial posture information of the preset facial key points in the wearable device coordinate system, a facial three-dimensional model fitting algorithm is used to perform fitting to obtain the spatial posture information of the facial three-dimensional model in the wearable device coordinate system.

6. The method for locating a face region based on vision according to claim 1, wherein: The step of determining the target face region corresponding to the beauty care device in the wearable device coordinate system according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system comprises: Determine a three-dimensional overlapping area corresponding to the beauty care device and the three-dimensional face model according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system; The target face area corresponding to the beauty protection device in the wearable device coordinate system is determined according to the three-dimensional overlapping area corresponding to the beauty protection device and the three-dimensional face model.

7. The method for locating a face region based on vision according to claim 1, wherein: The image of the beauty care device is collected by a camera in real time, and the determining of the target face area corresponding to the beauty care device in the wearable device coordinate system according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system includes: updating the spatial posture information of the beauty care device in the coordinate system of the wearable device according to the image recognition result corresponding to the image of the beauty care device collected by the camera in real time; Acquire spatial posture change information of preset facial key points, and update spatial posture information of the three-dimensional face model in the coordinate system of the wearable device according to the spatial posture change information of the preset facial key points; According to the updated spatial posture information of the beauty and protection device in the wearable device coordinate system and the updated spatial posture information of the three-dimensional face model in the wearable device coordinate system, the target face area corresponding to the beauty and protection device in the wearable device coordinate system is determined.

8. The method for locating a face region based on vision according to any one of claims 1 to 7, wherein: The target face partition is one of a plurality of face partitions, and the plurality of face partitions include at least one of five partitions and seven partitions.

9. A vision-based face region positioning device, wherein: The vision-based face area positioning device comprises: An identification unit, used for acquiring an image of the beauty care device captured by a camera on the wearable device and identifying the image of the beauty care device using an image recognition algorithm to obtain an image recognition result, wherein the image of the beauty care device contains a preset identifiable mark; A first determining unit, configured to determine the spatial posture information of the beauty and protection device in the coordinate system of the wearable device according to the image recognition result; A second determining unit is used to determine the spatial posture information of the three-dimensional face model in the wearable device coordinate system according to the spatial posture information of the beauty and protection device in the wearable device coordinate system and the preset facial key points; The third determining unit is used to determine the target face area corresponding to the beauty care device in the wearable device coordinate system according to the spatial posture information of the beauty care device in the wearable device coordinate system and the spatial posture information of the three-dimensional face model in the wearable device coordinate system.

10. A wearable device, wherein: The wearable device comprises: A camera for capturing images of beauty care equipment; Processor; and A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the vision-based face region localization method according to any one of claims 1 to 8.

11. A beauty care system, wherein: The beauty care system comprises a beauty care device and the wearable device as claimed in claim 10.

Citation Information

Patent Citations

  • Human body posture detection method and electronic equipment

    CN112527094A

  • Beauty equipment control method, device and system

    CN115205938A

  • Control method and device of beauty and care equipment, wearable equipment and beauty and care system

    CN116978533A

  • Control method and device of beauty and care equipment, wearable equipment and beauty and care system

    CN116978534A

  • Deep Image Localization

    US20180005393A1

Cited By

  • Face attitude angle detection device, method and device and storage medium

    CN119152168A