Nursing area determination method, device and equipment and computer readable storage medium
By obtaining the image to be tested by the target of the nursing object and determining multiple sub -care areas, combined with the recognition results of the beauty instrument solve the problem of being unable to locate the user's face area by handheld beauty instrument, realize the rapid positioning and fool -style treatment of the nursing area and the fool -style type operate.
Patent Information
- Application Number
- CN202411452246.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-28
AI Technical Summary
Handheld beauty devices lack the function of autonomously and intelligently positioning the user's face area, making it difficult for new users to determine the current care area and are inconvenient to use.
By obtaining the image to be detected by the target to be nursing, determine multiple sub -care areas in the care area, and combine the recognition results of the beauty instrument to determine the target care area.
The rapid real -time positioning of the nursing area and the division of the child care area are achieved, helping new users to clarify the nursing area, reduce the difficulty of the beauty instrument, and achieve fool -style operations.
Smart Images

Figure CN119379977A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of beauty instruments, and in particular to a method, device, equipment and computer-readable storage medium for determining a care area. Background Art
[0002] At present, with the rapid development of the beauty industry, the use of beauty devices has exploded. Generally, beauty devices include handheld beauty devices for home use and beauty devices used in beauty salons. Beauty devices used in beauty salons usually require professional operation and the equipment is large in size, which makes it impossible for users to operate them at home. Therefore, handheld beauty devices came into being. However, handheld beauty devices do not have the function of autonomously and intelligently locating the user's facial area. New users do not know whether the current part is accurate, which makes it very unfriendly to new users. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application hope to provide a method, device, equipment and computer-readable storage medium for determining a care area, which can solve the problem in the related art that handheld beauty devices cannot autonomously locate the user's facial area.
[0004] The technical solution of this application is implemented as follows:
[0005] A method for determining a nursing area, the method comprising:
[0006] Acquire an image to be detected of the object to be cared for;
[0007] Based on the image to be detected, determining a plurality of sub-care areas in the area to be cared for of the object to be cared for;
[0008] When it is detected that the area to be cared for is cared for by a beauty instrument, an image to be cared for of the object to be cared for is acquired;
[0009] Identify the beauty device contained in the image to be cared for, and obtain an identification result;
[0010] Based on the multiple sub-care areas and the recognition result, a target care area for the care object is determined.
[0011] In the above scheme, the step of determining a plurality of sub-care areas in the area to be cared for of the object to be cared for based on the image to be detected includes:
[0012] Detecting the image to be detected, and determining the area to be cared for in the image to be detected;
[0013] Performing image processing on the area to be cared for to obtain a target area to be cared for with a target size;
[0014] Based on the target area to be cared for, the plurality of sub-care areas are determined.
[0015] In the above solution, the determining of the plurality of sub-care areas based on the target care area includes:
[0016] Performing key point detection on the target area to be cared for to obtain a plurality of key points;
[0017] The target area to be cared for is divided based on the key point positions of the key points to obtain the multiple sub-care areas.
[0018] In the above scheme, determining the target nursing area for the object to be cared for based on the multiple sub-nursing areas and the recognition result includes:
[0019] If the recognition result indicates that the image to be cared for has a target part of the beauty device, the target care area is determined from the plurality of sub-care areas based on the area of each of the sub-care areas and the area of the target part.
[0020] In the above scheme, determining the target nursing area for the object to be cared for based on the multiple sub-nursing areas and the recognition result includes:
[0021] If the recognition result indicates that the image to be cared for does not have the target part of the beauty device, the target care area is determined from the multiple sub-care areas based on the multiple positions to be screened of the target part.
[0022] In the above solution, determining the target care area from the multiple sub-care areas based on the area of each of the sub-care areas and the area of the target part includes:
[0023] Determining the overlapping area between each of the sub-care areas and the target part;
[0024] The target care area is determined from the plurality of sub-care areas based on the area of the overlapping region and the area of the sub-care areas.
[0025] In the above solution, determining the target care area from the multiple sub-care areas based on the area of the overlapping area and the area of the sub-care area includes:
[0026] For each of the sub-care areas, calculating the area of the overlapping area and the area of the sub-care area to obtain a value to be screened;
[0027] A target value is determined from the values to be screened, and a sub-care area corresponding to the target value is determined as the target care area.
[0028] In the above scheme, the step of determining the target nursing area from the multiple sub-nursing areas based on the multiple positions to be screened of the target part includes:
[0029] Determine a first category of positions and a second category of positions from the plurality of positions to be screened;
[0030] The target care area is determined from among the plurality of sub-care areas based on the relationship between the first-category locations and the second-category locations.
[0031] A nursing area determination device, the device comprising:
[0032] An acquisition unit, used for acquiring an image to be detected of the object to be cared for;
[0033] A processing unit, configured to determine a plurality of sub-care areas in the to-be-care area of the to-be-care object based on the to-be-detected image;
[0034] The acquisition unit is further configured to acquire the image of the object to be cared for when it is detected that the area to be cared for is cared for by a beauty device;
[0035] an identification unit, used for identifying the beauty instrument contained in the image to be cared for, and obtaining an identification result;
[0036] A determination unit is used to determine a target care area for the object to be cared for based on the multiple sub-care areas and the identification result.
[0037] A nursing area determination device, the device comprising: a processor, a memory, and a communication bus;
[0038] The communication bus is used to realize the communication connection between the processor and the memory;
[0039] The processor is used to execute the care area determination program stored in the memory to implement the steps of the above-mentioned care area determination method.
[0040] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the care area determination method as described above.
[0041] The care area determination method, device, equipment and computer-readable storage medium provided in the embodiments of the present application first obtain an image to be detected of the object to be cared for, and then determine multiple sub-care areas in the area to be cared for the object to be cared for based on the image to be detected. When it is detected that a beauty instrument is used to care for the area to be cared for, the image to be cared for of the object to be cared for is obtained, and then the beauty instrument contained in the image to be cared for is identified to obtain an identification result. Then, based on the multiple sub-care areas and the identification results, a target care area for the object to be cared for is determined. In this way, by detecting the image to be detected, the area to be cared for can be quickly located in real time and the detected area to be cared for can be divided into multiple sub-care areas. Then, combined with the identification result of the beauty instrument, it is jointly determined which sub-care area of the area to be cared for the current beauty instrument is located. In this way, the area division of the area to be cared for and the positioning function of the sub-care areas are realized, thereby solving the problem of new users clarifying the area to be cared for when using the beauty instrument, and realizing fool-proof operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of a nursing area determination method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of an image to be detected in a method for determining a nursing area provided in an embodiment of the present application;
[0044] Figure 3 A flowchart of another method for determining a nursing area provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of an area of interest in a method for determining a nursing area provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of key points of a face in a method for determining a nursing area provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of multiple sub-care areas in a care area determination method provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of multiple sub-care areas displayed on a care area determination device in a care area determination method provided in an embodiment of the present application;
[0049] Figure 8 A schematic diagram of a target part in an image to be cared for in a method for determining a nursing area provided in an embodiment of the present application;
[0050] Fig. 9A schematic diagram of a method for determining a nursing area provided in an embodiment of the present application showing that an image to be nursed does not have a target part;
[0051] Fig.10 A schematic diagram of multiple locations to be screened in a method for determining a nursing area provided in an embodiment of the present application;
[0052] Fig.11 A schematic diagram of the structure of a nursing area determination device provided in an embodiment of the present application;
[0053] Fig.12 A schematic diagram of the structure of a nursing area determination device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0055] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] It should be noted that the handheld beauty devices currently on the market do not have the function of autonomous intelligent positioning of the user's face, which is very unfriendly to novice users. Users do not know whether the current part is accurate. In addition, the beauty devices in beauty salons require professionals to operate and the equipment is large in size, making it impossible for users to operate them at home.
[0057] Based on this, the embodiment of the present application provides a nursing area determination method, which can be applied to a nursing area determination device, referring to Figure 1 As shown, the method comprises the following steps:
[0058] Step 101: Acquire an image to be detected of an object to be cared for.
[0059] In the embodiment of the present application, the image to be detected includes an object to be cared for, and the object to be cared for refers to an object to be cared for by a beauty device; the image to be detected may refer to an image of the object to be cared for obtained by a front camera, Figure 2 As shown; the image to be detected taken by the front camera can be obtained from the Apple (ios) platform or the Android (android) platform; it should be noted that the care area determination device and the beauty instrument can communicate with each other.
[0060] Step 102: Determine a plurality of sub-care areas in the to-be-care area of the object to be cared for based on the image to be detected.
[0061] In an embodiment of the present application, the area to be cared for may refer to an area of the object to be cared for that can be cared for by a beauty device, and since the care methods for different areas in the area to be cared for may be different, a plurality of sub-care areas may be obtained based on the area to be cared for, so that different sub-care areas may adopt different care methods; the area to be cared for may be first determined from the image to be detected, and then a plurality of sub-care areas may be obtained based on the area to be cared for.
[0062] Step 103: when it is detected that the area to be cared for is cared for by a beauty instrument, an image of the object to be cared for is obtained.
[0063] In an embodiment of the present application, the image to be cared for includes a beauty device and an object to be cared for; the object to be cared for uses the beauty device to care for an area to be cared for, that is, the object to be cared for places the beauty device in a sub-care area in the area to be cared for. When the object to be cared for places the beauty device in a sub-care area in the area to be cared for, the image to be cared for taken by the front camera can be obtained from an Apple (ios) platform or an Android (android) platform.
[0064] Step 104: Identify the beauty device included in the image to be cared for and obtain a recognition result.
[0065] In an embodiment of the present application, the recognition result may include the target part of the beauty instrument included in the image to be cared for and the target part not included in the beauty instrument, and the target part may refer to the beauty head of the beauty instrument, the screen boundary line of the beauty instrument, etc.; the image to be cared for can be identified to determine whether the image to be cared for contains the target part of the beauty instrument or does not contain the target part of the beauty instrument, so that a real-time beauty instrument device detection function can be realized; in a feasible implementation method, the beauty instrument can specifically be a handheld ultrasonic beauty instrument, and has the characteristics of small size and portability.
[0066] Step 105: Determine a target care area for the care object based on the multiple sub-care areas and the recognition results.
[0067] In an embodiment of the present application, the target care area refers to the area currently being cared for by the object to be cared for; when the recognition result includes that the target part of the beauty instrument is included in the image to be cared for, the target care area can be determined from multiple sub-care areas based on the area of each sub-care area and the area of the target part of the beauty instrument; when the recognition result includes that the image to be cared for does not include the target part of the beauty instrument, multiple positions to be screened of the target part of the beauty instrument can be determined, and the target care area can be determined from multiple sub-care areas based on the multiple positions to be screened. In this way, the positioning function of each recognition result to locate the sub-area of the face where the beauty instrument is located can be integrated, and the beauty instrument can be located in real time and quickly in which sub-care area of the face the beauty instrument is located, thereby reminding the object to be cared for whether care can be provided in the current sub-care area and how much care is required, which greatly reduces the difficulty of using handheld beauty instrument equipment and achieves fool-proof operation.
[0068] It should be noted that the target care area can be determined by an application installed in the care area determination device.
[0069] The care area determination device provided in the embodiment of the present application can quickly locate the area to be cared for in real time and divide the detected area to be cared for into multiple sub-care areas by detecting the image to be detected, and then determine in combination with the recognition result of the beauty instrument which sub-care area of the area to be cared for the current beauty instrument is located. In this way, the area division of the area to be cared for and the positioning function of the sub-care area are realized, thereby solving the problem of new users clarifying the area to be cared for when using the beauty instrument, and realizing fool-proof operation.
[0070] Based on the above embodiments, the present application provides another method for determining a nursing area. Figure 3 As shown, the method comprises the following steps:
[0071] Step 201: The nursing area determination device obtains an image to be detected of the object to be nursed.
[0072] Step 202: The nursing area determination device detects the image to be detected and determines the nursing area in the image to be detected.
[0073] In the embodiment of the present application, a target detection algorithm can be used to detect the image to be detected, so as to detect the following in the image to be detected: Figure 4 The region of interest (ROI) shown in the figure is captured from the image to be detected to obtain the region to be cared for, so that the real-time face detection function can be realized. In a feasible implementation, the region to be cared for may refer to the facial region of the object to be cared for.
[0074] Step 203: The nursing area determination device performs image processing on the area to be nursed to obtain a target area to be nursed with a target size.
[0075] In an embodiment of the present application, image processing may specifically refer to affine transformation; the target area to be cared for may refer to the care area obtained after the size of the area to be cared for is changed, that is, the care area with a target size; in a feasible implementation method, the affine transformation may be used to scale the area to be cared for to 80×80.
[0076] It should be noted that, since the input area size is a fixed size when performing key point detection later, the area to be cared for can be scaled to obtain the target care area to facilitate the subsequent key point detection.
[0077] Step 204: The nursing area determination device determines a plurality of sub-nursing areas based on the target area to be nursed.
[0078] In an embodiment of the present application, the target area to be cared for may be divided into regions based on key points in the target area to be cared for, and a plurality of sub-care regions may be obtained, thereby realizing a real-time face region division function.
[0079] It should be noted that step 204 can be implemented in the following ways:
[0080] Step 204A: The nursing area determination device performs key point detection on the target nursing area to obtain multiple key points.
[0081] In the embodiment of the present application, a key point detection algorithm can be used to perform key point detection on the target area to be cared for; for example, when the target area to be cared for is the facial area of the object to be cared for, face key point detection can be performed on the facial area to obtain the following: Figure 5 The 468 facial landmarks shown.
[0082] Step 204B: The nursing area determination device divides the target nursing area based on the key point positions of the key points to obtain a plurality of sub-nursing areas.
[0083] In a feasible implementation, the target care area may refer to the facial area of the object to be cared for. Then, the facial area may be divided into the following: Figure 6 The 11 sub-care areas shown are specifically forehead, chin, left mandible, right mandible, left cheek, right cheek, left eye periorbital area, right eye periorbital area, left temporal area, right temporal area, and T-zone area; and the 11 sub-care areas displayed in the application in the care area determination device are as follows Figure 7 shown.
[0084] Step 205: When the care area determination device detects that the care area is being cared for by the beauty device, the care area determination device acquires the care image of the care object.
[0085] Step 206: The care area determination device identifies the beauty device included in the image to be cared for and obtains a recognition result.
[0086] It should be noted that step 207 may be performed after step 206, and step 208 may also be performed after step 206;
[0087] Step 207: If the recognition result indicates that the image to be cared for has a target part of the beauty device, the care area determination device determines a target care area from the multiple sub-care areas based on the area of each sub-care area and the area of the target part.
[0088] In the embodiment of the present application, the image to be cared for has a schematic diagram of the target part of the beauty instrument as shown in FIG. Figure 8 As shown, in this case, the area of each sub-care area and the area of the target part can be calculated first, and then each calculation result is calculated with the area of its corresponding sub-care area, and then the target care area is determined from multiple sub-care areas based on multiple calculation results.
[0089] It should be noted that step 207 can be implemented in the following ways:
[0090] Step 207C: The care area determination device determines the overlapping area between each sub-care area and the target part based on the area of each sub-care area and the area of the target part.
[0091] In the embodiment of the present application, for each sub-care area, the overlapping area between the sub-care area and the target part is determined.
[0092] Step 207D: The care area determination device determines a target care area from multiple sub-care areas based on the area of the overlapping area and the area of the sub-care areas.
[0093] In an embodiment of the present application, the area of each overlapping region and the area corresponding to its corresponding sub-care region can be calculated to obtain multiple calculation results, and then the target care region is determined from the multiple sub-care regions based on the multiple calculation results.
[0094] It should be noted that step 207D can be implemented in the following ways:
[0095] Step 207d1, the nursing area determination device calculates the area of the overlapping area and the area of the sub-nursing area for each sub-nursing area to obtain a value to be screened.
[0096] In an embodiment of the present application, a division operation can be performed on the area of each overlapping region and the area of the sub-care region (wherein the area of the overlapping region can be represented by A) corresponding to the area of the overlapping region to obtain multiple values to be screened (wherein the values to be screened can be represented by Conf), that is, Conf=A / B.
[0097] Step 207d2: The nursing area determination device determines a target value from the values to be screened, and determines the sub-nursing area corresponding to the target value as the target nursing area.
[0098] In the embodiment of the present application, the target value may refer to the largest number among the values to be screened, and the larger the value to be screened, the larger the overlapping area between the target part of the beauty instrument and a sub-care area, which means that the target part of the beauty instrument may currently be in the sub-care area.
[0099] Step 208: If the recognition result indicates that the image to be cared for does not have the target part of the beauty instrument, the care area determination device determines the target care area from the multiple sub-care areas based on the multiple positions to be screened of the target part.
[0100] In the embodiment of the present application, the plurality of positions to be screened may include a first type of position and a second type of position; a schematic diagram of a target part of a beauty instrument not included in the image to be cared for is shown in FIG. Fig. 9 As shown, in this case, a target care area may be determined from a plurality of sub-care areas based on the first type of locations and the second type of locations.
[0101] It should be noted that step 208 can be implemented in the following ways:
[0102] Step 208E: The care area determination device determines a first category of locations and a second category of locations from a plurality of locations to be screened.
[0103] In an embodiment of the present application, if the target part of the beauty instrument is a regular quadrilateral, then the multiple positions to be screened may include multiple vertex positions of the target part of the beauty instrument and the center of mass position of the target part of the beauty instrument; and the first type of position may refer to two upper vertex positions among the multiple vertices (i.e., vertex 1 and vertex 2), or may refer to two lower vertex positions among the multiple vertices (i.e., vertex 3 and vertex 4); the second type of position may refer to the center of mass position of the target part of the beauty instrument, and the first type of position and the second type of position may be determined through image processing.
[0104] Step 208F: The care area determination device determines a target care area from multiple sub-care areas based on the relationship between the first type of locations and the second type of locations.
[0105] In the embodiments of the present application, Fig.10As shown, the center position of the first type of position can be determined first, and then the center position of the first type of position can be connected with the second type of position (i.e., the centroid position), and the center position of the target part of the beauty instrument can be determined based on the position of the connecting line, and then the sub-care area where the center position of the target part is located can be determined as the target care area. In a feasible implementation, one-third of the connecting line can be set as the center position of the target part of the beauty instrument.
[0106] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0107] The method for determining the care area provided in the embodiment of the present application can quickly locate the area to be cared for in real time and divide the detected area to be cared for into multiple sub-care areas by detecting the image to be detected, and then determine in combination with the recognition result of the beauty instrument which sub-care area of the area to be cared for the current beauty instrument is located. In this way, the regional division of the area to be cared for and the positioning function of the sub-care area are realized, thereby solving the problem of new users clarifying the area to be cared for when using the beauty instrument, and realizing fool-proof operation.
[0108] Based on the above embodiments, the present application provides a nursing area determination device, which can be applied to Figure 1 and Figure 3 In the nursing area determination method provided in the corresponding embodiment, referring to Fig.11 As shown, the nursing area determination device 3 may include: an acquisition unit 31, a processing unit 32, an identification unit 33 and a determination unit 34, wherein:
[0109] An acquisition unit 31 is used to acquire an image to be detected of the object to be cared for;
[0110] A processing unit 32, configured to determine a plurality of sub-care areas in a to-be-care area of the object to be cared for based on the image to be detected;
[0111] The acquisition unit 31 is further used to acquire the image of the object to be cared for when it is detected that the area to be cared for is cared for by the beauty instrument;
[0112] The recognition unit 33 is used to recognize the beauty device included in the image to be cared for and obtain a recognition result;
[0113] The determination unit 34 is used to determine a target care area for the care object based on the multiple sub-care areas and the recognition result.
[0114] In other embodiments of the present application, the processing unit 32 is further configured to perform the following steps:
[0115] Detect the image to be detected and determine the area to be cared for in the image to be detected;
[0116] Perform image processing on the area to be cared for, and obtain a target area to be cared for with a target size;
[0117] Based on the target area to be cared for, multiple sub-care areas are determined.
[0118] In other embodiments of the present application, the processing unit 32 is further configured to perform the following steps:
[0119] Perform key point detection on the target area to be cared for and obtain multiple key points;
[0120] The target area to be cared for is divided based on the key point positions of the key points to obtain multiple sub-care areas.
[0121] In other embodiments of the present application, the determining unit 34 is further configured to perform the following steps:
[0122] If the recognition result indicates that the image to be cared for has a target part of the beauty device, a target care area is determined from the plurality of sub-care areas based on the area of each sub-care area and the area of the target part.
[0123] In other embodiments of the present application, the determining unit 34 is further configured to perform the following steps:
[0124] If the recognition result indicates that the image to be cared for does not have the target part of the beauty device, the target care area is determined from the multiple sub-care areas based on the multiple positions to be screened of the target part.
[0125] In other embodiments of the present application, the determining unit 34 is further configured to perform the following steps:
[0126] Determine the overlapping area between each sub-care area and the target site;
[0127] A target care area is determined from the plurality of sub-care areas based on the overlapping area and the area of the sub-care areas.
[0128] In other embodiments of the present application, the determining unit 34 is further configured to perform the following steps:
[0129] For each sub-care area, the area of the overlapping area and the area of the sub-care area are calculated to obtain a value to be screened;
[0130] A target value is determined from the values to be screened, and a sub-care area corresponding to the target value is determined as the target care area.
[0131] In other embodiments of the present application, the determining unit 34 is further configured to perform the following steps:
[0132] Determine a first category of positions and a second category of positions from a plurality of positions to be screened;
[0133] Based on the relationship between the first type of locations and the second type of locations, a target care area is determined from the plurality of sub-care areas.
[0134] It should be noted that the specific implementation process of the steps performed by each module in the embodiment of the present application can be referred to Figure 1 and Figure 3 The implementation process of the nursing area determination method provided in the corresponding embodiment will not be repeated here.
[0135] The care area determination device provided in the embodiment of the present application can quickly and in real time locate the area to be cared for and divide the detected area to be cared for into multiple sub-care areas by detecting the image to be detected, and then determine in combination with the recognition result of the beauty instrument which sub-care area of the area to be cared for the current beauty instrument is located. In this way, the area division of the area to be cared for and the positioning function of the sub-care area are realized, thereby solving the problem of new users clarifying the area to be cared for when using the beauty instrument, and realizing fool-proof operation.
[0136] Based on the above embodiments, the embodiments of the present application provide a nursing area determination device, which can be applied to Figure 1 and Figure 3 In the nursing area determination method provided in the corresponding embodiment, referring to Fig.12 As shown, the nursing area determination device 4 may include: a processor 41, a memory 42 and a communication bus 43, wherein:
[0137] The communication bus 43 is used to realize the communication connection between the processor 41 and the memory 42;
[0138] The processor 41 is used to execute the nursing area determination program in the memory 42 to implement the following steps:
[0139] Acquire an image to be detected of the object to be cared for;
[0140] Based on the image to be detected, determining a plurality of sub-care areas in the to-be-care area of the object to be cared for;
[0141] When it is detected that the area to be cared for is cared for by the beauty device, an image to be cared for of the object to be cared for is obtained;
[0142] Identify the beauty device contained in the image to be treated and obtain an identification result;
[0143] Based on the multiple sub-care areas and the identification results, a target care area for the care object to be cared for is determined.
[0144] In other embodiments of the present application, the processor 41 is used to execute the care area determination program in the memory 42 to determine multiple sub-care areas in the to-be-care area of the object to be cared for based on the image to be detected, so as to implement the following steps:
[0145] Detect the image to be detected and determine the area to be cared for in the image to be detected;
[0146] Perform image processing on the area to be cared for, and obtain a target area to be cared for with a target size;
[0147] Based on the target area to be cared for, multiple sub-care areas are determined.
[0148] In other embodiments of the present application, the processor 41 is used to execute the nursing area determination program in the memory 42 to determine multiple sub-nursing areas based on the target nursing area to be nursed, so as to implement the following steps:
[0149] Perform key point detection on the target area to be cared for and obtain multiple key points;
[0150] The target area to be cared for is divided based on the key point positions of the key points to obtain multiple sub-care areas.
[0151] In other embodiments of the present application, the processor 41 is used to execute the nursing area determination program in the memory 42 to determine the target nursing area for the nursing object based on the multiple sub-nursing areas and the recognition results, so as to implement the following steps:
[0152] If the recognition result indicates that the image to be cared for has a target part of the beauty device, a target care area is determined from the plurality of sub-care areas based on the area of each sub-care area and the area of the target part.
[0153] In other embodiments of the present application, the processor 41 is used to execute the nursing area determination program in the memory 42 to determine the target nursing area for the nursing object based on the multiple sub-nursing areas and the recognition results, so as to implement the following steps:
[0154] If the recognition result indicates that the image to be cared for does not have the target part of the beauty device, the target care area is determined from the multiple sub-care areas based on the multiple positions to be screened of the target part.
[0155] In other embodiments of the present application, the processor 41 is used to execute the nursing area determination program in the memory 42 to determine the target nursing area from the multiple sub-nursing areas based on the area of each sub-nursing area and the area of the target part, so as to implement the following steps:
[0156] Determine the overlapping area between each sub-care area and the target site;
[0157] A target care area is determined from the plurality of sub-care areas based on the overlapping area and the area of the sub-care areas.
[0158] In other embodiments of the present application, the processor 41 is used to execute the care area determination program in the memory 42 to determine the target care area from multiple sub-care areas based on the overlapping area and the area of the sub-care area, so as to implement the following steps:
[0159] For each sub-care area, the area of the overlapping area and the area of the sub-care area are calculated to obtain a value to be screened;
[0160] A target value is determined from the values to be screened, and a sub-care area corresponding to the target value is determined as the target care area.
[0161] In other embodiments of the present application, the processor 41 is used to execute the multiple to-be-screened positions based on the target part in the nursing area determination program in the memory 42, and determine the target nursing area from the multiple sub-nursing areas to implement the following steps:
[0162] Determine a first category of positions and a second category of positions from a plurality of positions to be screened;
[0163] Based on the relationship between the first type of locations and the second type of locations, a target care area is determined from the plurality of sub-care areas.
[0164] It should be noted that the specific description of the steps executed by the processor can be referred to Figure 1 and Figure 3 The implementation process of the nursing area determination method provided in the corresponding embodiment will not be repeated here.
[0165] The care area determination device provided in the embodiment of the present application can quickly locate the area to be cared for in real time and divide the detected area to be cared for into multiple sub-care areas by detecting the image to be detected, and then determine in combination with the recognition result of the beauty instrument which sub-care area of the area to be cared for the current beauty instrument is located. In this way, the area division of the area to be cared for and the positioning function of the sub-care area are realized, thereby solving the problem of new users clarifying the area to be cared for when using the beauty instrument, and realizing fool-proof operation.
[0166] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 and Figure 3 The corresponding embodiment provides steps in the method for determining a care area.
[0167] It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0168] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0169] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0171] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0172] These computer program instructions may also be stored in a computer-readable memory capable of directing 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 an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0173] 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, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0174] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for determining a nursing area, characterized in that: The method comprises: Acquire an image to be detected of the object to be cared for; Based on the image to be detected, determining a plurality of sub-care areas in the area to be cared for of the object to be cared for; When it is detected that the area to be cared for is cared for by a beauty instrument, an image to be cared for of the object to be cared for is acquired; Identify the beauty device contained in the image to be cared for, and obtain an identification result; Based on the multiple sub-care areas and the recognition result, a target care area for the care object is determined.
2. The method according to claim 1, characterized in that The step of determining a plurality of sub-care areas in the to-be-care area of the object to be cared for based on the image to be detected includes: Detecting the image to be detected, and determining the area to be cared for in the image to be detected; Performing image processing on the area to be cared for to obtain a target area to be cared for with a target size; Based on the target area to be cared for, the plurality of sub-care areas are determined.
3. The method according to claim 2, characterized in that The determining the plurality of sub-care areas based on the target care area includes: Performing key point detection on the target area to be cared for to obtain a plurality of key points; The target area to be cared for is divided based on the key point positions of the key points to obtain the multiple sub-care areas.
4. The method according to claim 1, characterized in that: The step of determining a target nursing area for the object to be cared for based on the multiple sub-nursing areas and the recognition result includes: If the recognition result indicates that the image to be cared for has a target part of the beauty device, the target care area is determined from the plurality of sub-care areas based on the area of each of the sub-care areas and the area of the target part.
5. The method according to claim 1 or 4, characterized in that: The step of determining a target nursing area for the object to be cared for based on the multiple sub-nursing areas and the recognition result includes: If the recognition result indicates that the image to be cared for does not have the target part of the beauty device, the target care area is determined from the multiple sub-care areas based on the multiple positions to be screened of the target part.
6. The method according to claim 4, characterized in that The step of determining the target care area from the plurality of sub-care areas based on the area of each of the sub-care areas and the area of the target part comprises: Determining the overlapping area between each of the sub-care areas and the target part; The target care area is determined from the plurality of sub-care areas based on the area of the overlapping region and the area of the sub-care areas.
7. The method according to claim 6, characterized in that The determining the target care area from the plurality of sub-care areas based on the area of the overlapping area and the area of the sub-care area comprises: For each of the sub-care areas, calculating the area of the overlapping area and the area of the sub-care area to obtain a value to be screened; A target value is determined from the values to be screened, and a sub-care area corresponding to the target value is determined as the target care area.
8. The method according to claim 5, characterized in that The step of determining the target care area from the multiple sub-care areas based on the multiple to-be-screened positions of the target part includes: Determine a first category of positions and a second category of positions from the plurality of positions to be screened; The target care area is determined from among the plurality of sub-care areas based on the relationship between the first-category locations and the second-category locations.
9. A nursing area determination device, characterized in that: The device comprises: An acquisition unit, used for acquiring an image to be detected of the object to be cared for; A processing unit, configured to determine a plurality of sub-care areas in the to-be-care area of the to-be-care object based on the to-be-detected image; The acquisition unit is further configured to acquire the image of the object to be cared for when it is detected that the area to be cared for is cared for by a beauty device; an identification unit, used for identifying the beauty instrument contained in the image to be cared for, and obtaining an identification result; A determination unit is used to determine a target care area for the object to be cared for based on the multiple sub-care areas and the identification result.
10. A nursing area determination device, characterized in that: The device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the care area determination program stored in the memory to implement the steps of the care area determination method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the care area determination method according to any one of claims 1 to 8.