Cosmetic method, device, cosmetic apparatus and storage medium
By acquiring and processing skin image information through a beauty probe, identifying and planning beauty path trajectories, the problem of existing beauty equipment requiring manual operation is solved, realizing a self-care and highly automated beauty solution.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-02
- Publication Date
- 2026-04-10
AI Technical Summary
Existing beauty equipment requires manual operation, resulting in a heavy workload for medical staff and an inability to independently plan beauty care programs, with a low degree of automation.
The beauty probe acquires image information of the skin area, magnifies it, and controls the probe to move along a specific path to identify abnormal locations based on the magnified image information, plans the beauty path trajectory, and generates control commands to execute the beauty operation.
It reduces the workload of medical staff, enables them to independently plan beauty care programs, and improves the automation level of the equipment.
Smart Images

Figure CN115527251B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of cosmetic equipment, in particular to a cosmetic method, a cosmetic device, a cosmetic equipment and a storage medium. BACKGROUND
[0002] With the continuous improvement of people's living standards, people's requirements for facial and body care are also increasing; cosmetic equipment is a machine that adjusts and improves the body and face according to human physiological functions, which has many functions such as removing spots and removing acne according to functions; in the related art, the existing cosmetic equipment is usually operated in an artificial manner, resulting in a large amount of work for medical staff, and cannot automatically plan a cosmetic care plan for different users, and the degree of automation is low. SUMMARY
[0003] In a first aspect, the main purpose of the present application is to provide a cosmetic method applied to a cosmetic device, the cosmetic device having a cosmetic probe, the method comprising:
[0004] In response to a first operation of the user on the cosmetic probe, image information of a current skin area is obtained;
[0005] The image information is enlarged by a predetermined multiple, and the cosmetic probe is controlled to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path;
[0006] Path planning is performed on the abnormal positions to determine a cosmetic path trajectory of the abnormal positions, so as to determine a control instruction of the cosmetic probe according to the cosmetic path trajectory; the control instruction is used to control the cosmetic probe to perform a cosmetic operation according to the cosmetic path trajectory.
[0007] Preferably, the response to the first operation of the user on the cosmetic probe to obtain the image information of the current skin area comprises:
[0008] In response to a first operation of the user on the cosmetic probe, the cosmetic probe is controlled to move to a predetermined position;
[0009] When the cosmetic probe moves to the predetermined position, the position of the skin area corresponding to the person to be beautified in the predetermined position is determined;
[0010] The image information of the current skin area is obtained according to the position of the skin area.
[0011] Preferably, the image information is enlarged by a predetermined multiple, and the cosmetic probe is controlled to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path, comprising:
[0012] determining a preset distance between the cosmetic probe and the current skin region, and magnifying the image information by a predetermined multiple according to the preset distance;
[0013] determining whether the current skin region contains an abnormal position according to the magnified image information;
[0014] in a case where the current skin region does not contain an abnormal position, controlling the cosmetic probe to move along the first path and the second path in sequence to determine a first reference image corresponding to the first path and a second reference image corresponding to the second path; wherein the first reference image and the second reference image are in mutual exclusion and / or compatibility;
[0015] performing feature fusion on the first reference image and the second reference image, and performing feature detection on a target image after the feature fusion to determine an abnormal position in the target image.
[0016] Preferably, in the case where the current skin region does not contain an abnormal position, the cosmetic probe is controlled to move along the first path and the second path in sequence to determine the first reference image corresponding to the first path and the second reference image corresponding to the second path, comprising:
[0017] in the case where the current skin region does not contain an abnormal position, determining three marker points in the first path and the second path;
[0018] taking the three marker points as a starting point, a transfer point and an end point of the first path and the second path to control the movement of the cosmetic probe;
[0019] determining the first reference image and the second reference image according to a video stream captured by the cosmetic probe on the first path and the second path.
[0020] Preferably, after the feature fusion on the first reference image and the second reference image and the feature detection on the target image after the feature fusion to determine the abnormal position in the target image, comprising:
[0021] calculating the size of the abnormal position according to the abnormal position in the target image to obtain a size result of the abnormal position;
[0022] determining a control instruction of the cosmetic probe according to the size result and the cosmetic path trajectory.
[0023] Preferably, the determination of the control instruction of the cosmetic probe according to the size result and the cosmetic path trajectory comprises:
[0024] determine a residence time and a working parameter of the cosmetic probe for the abnormal position according to the size result; the working parameter includes light intensity, light time and liquid amount;
[0025] in response to a second operation of the user on the cosmetic probe, control the cosmetic probe according to the second operation, so that the cosmetic probe works on the cosmetic path trajectory with the residence time and the working parameter.
[0026] Preferably, the path planning for the abnormal position, the determination of the cosmetic path trajectory of the abnormal position, and the determination of the control instruction of the cosmetic probe according to the cosmetic path trajectory include:
[0027] determine a center point of the abnormal position;
[0028] connect the center points of the abnormal positions in sequence to construct the cosmetic path trajectory of the abnormal positions;
[0029] determine the control instruction of the cosmetic probe according to the cosmetic path trajectory.
[0030] In a second aspect, an embodiment of the present application provides a cosmetic device, comprising:
[0031] a response module, configured to obtain image information of a current skin area in response to a first operation of the user on the cosmetic probe;
[0032] a control module, configured to magnify the image information by a predetermined multiple, and control the cosmetic probe to move along a first path and a second path according to the magnified image information, so as to determine abnormal positions in the first path and the second path;
[0033] a determination module, configured to perform path planning for the abnormal positions, determine a cosmetic path trajectory of the abnormal positions, and determine a control instruction of the cosmetic probe according to the cosmetic path trajectory; the control instruction is used to control the cosmetic probe to perform a cosmetic operation according to the cosmetic path trajectory.
[0034] In a third aspect, an embodiment of the present application provides a cosmetic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the cosmetic method as described above when executing the computer program.
[0035] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable on a processor to implement the steps of the cosmetic method as described above.
[0036] The above scheme of the present application at least has the following beneficial effects:
[0037] The cosmetic method provided by the application can be applied to a cosmetic device having a cosmetic probe, and the cosmetic method comprises the following steps: firstly, acquiring image information of a current skin area in response to a first operation of a user on the cosmetic probe; then, magnifying the image information by a predetermined multiple, and controlling the cosmetic probe to move along a first path and a second path according to the magnified image information, so as to determine abnormal positions in the first path and the second path; finally, performing path planning on the abnormal positions, determining a cosmetic path trajectory of the abnormal positions, and determining a control instruction of the cosmetic probe according to the cosmetic path trajectory. Thus, the workload of medical staff can be reduced, and the cosmetic nursing scheme can be autonomously planned for different persons to be cosmetized, and the degree of automation is higher. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained according to the structures shown in the drawings without creative labor.
[0039] Figure 1 The overall flowchart of the cosmetic method provided by the embodiment of the present application is shown in the figure.
[0040] Figure 2 The application scene diagram of the cosmetic method provided by the embodiment of the present application is shown in the figure.
[0041] Figure 3 The structure block diagram of the cosmetic device provided by the embodiment of the present application is shown in the figure.
[0042] Figure 4 The structure block diagram of the cosmetic device provided by the embodiment of the present application is shown in the figure.
[0043] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments only constitute some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0045] The terms "first", "second", and "third" and the like in the description and in the claims of the present application and above-described drawings are used for distinguishing between similar objects, not necessarily described in a particular order. Also, the terms "comprises", "comprising", "includes", "including" and the like are to be construed open-ended, allowing for instances where there are equivalents. For example, a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to the listed steps or elements, but can include additional or fewer steps or elements, and that processes, methods, articles, or apparatuses that essentially consist of or essentially consist of the listed steps or elements are also contemplated.
[0046] The scheme of the embodiments of the present application will be described below by way of example in conjunction with the relevant drawings.
[0047] As shown in Figure 1 The cosmetic method provided by the specific embodiments of the present application is applied to a cosmetic device having a cosmetic probe, and the method comprises:
[0048] S10, in response to a first operation of the user on the cosmetic probe, acquiring image information of a current skin area;
[0049] In the embodiments, the first operation can be an opening operation of the user on the cosmetic probe, and the cosmetic probe can be provided with a camera and a treatment head, etc. When the cosmetic probe is opened, the current skin area of the person to be beautified can be photographed by the camera on the cosmetic probe, thereby obtaining the image information of the current skin area. Alternatively, the current skin area can be a skin area of a face or a skin area of a human body, and the image information can be in jpg format, PNG format, TIF format, BMP format, etc., or can be an RGB image, a YUV image, or an HSV image, etc.
[0050] Specifically, the above-mentioned acquiring the image information of the current skin area in response to the first operation of the user on the cosmetic probe comprises: in response to the first operation of the user on the cosmetic probe, controlling the cosmetic probe to move to a predetermined position; when the cosmetic probe moves to the predetermined position, determining the position of the skin area corresponding to the person to be beautified in the predetermined position; and acquiring the image information of the current skin area according to the position of the skin area.
[0051] In the embodiment, the predetermined position can be an initial position of the beauty probe, for example, when the face is beautified, the predetermined position can correspond to the face, and when the human body is beautified, the predetermined position can correspond to the human body; when the beauty probe moves to the predetermined position, by determining that the corresponding skin area in the predetermined position is a face skin area or a human body skin area, different beauty care programs are determined according to the face skin area or the human body skin area; it can be understood that, since the face skin area and the human body skin area are different in area, when the predetermined position is the face skin area, the corresponding beauty care program can be determined according to the image information corresponding to the face skin area in the subsequent process; when the predetermined position is the human body skin area, the corresponding beauty care program can be determined according to the image information corresponding to the human body skin area in the subsequent process.
[0052] S20, the image information is enlarged by a predetermined multiple, and the beauty probe is controlled to move along the first path and the second path according to the enlarged image information, so as to determine the abnormal position in the first path and the second path.
[0053] The predetermined multiple can be 5-10 times, when the skin area is a face skin area, the first path and the second path can be paths along the vertical direction of the face, and the first path can be the vertical direction of the left half of the face, and the second path can be the vertical direction of the right half of the face; when the skin area is a human body skin area, the first path and the second path can be paths along the height direction of the human body, and the first path can be the height direction along the left half of the human body, and the second path can be the height direction along the right half of the human body; it can be understood that, by enlarging the image information, the beauty probe can determine whether the skin area in the first path and the second path is abnormal, and when the abnormal position of the skin area in the first path and the second path is determined, the corresponding beauty care program can be autonomously planned according to the abnormal position.
[0054] Specifically, the above-mentioned enlarging the image information by a predetermined multiple, and controlling the beauty probe to move along the first path and the second path according to the enlarged image information, so as to determine the abnormal position in the first path and the second path, comprises: determining a preset distance between the beauty probe and the current skin area, and enlarging the image information by a predetermined multiple according to the preset distance; judging whether the current skin area contains an abnormal position according to the enlarged image information; in the case that the current skin area does not contain an abnormal position, controlling the beauty probe to move along the first path and the second path in turn, so as to determine a first reference image corresponding to the first path and a second reference image corresponding to the second path; performing feature fusion on the first reference image and the second reference image, and performing feature detection on the target image after the feature fusion, so as to determine the abnormal position in the target image.
[0055] In the embodiment, the preset distance can be artificially preset, i.e., the vertical distance between the beauty probe and the skin area of the person to be beautified. By magnifying the image information of the skin area, the skin state of the skin area corresponding to the first path and the second path can be accurately determined when the beauty probe moves along the first path and the second path, so as to determine the abnormal position. Wherein, when the first reference image and the second reference image are determined, the first reference image and the second reference image can be input into a feature extraction network model for image feature extraction, so as to determine the first image feature in the first reference image and the second image feature in the second reference image. After the feature fusion of the first reference image and the second reference image, the target image of the skin area of the person to be beautified can be obtained, and the target image is fused with the first image feature and the second image feature. Optionally, the first reference image and the second reference image are in mutual exclusion and / or compatibility. When the features are fused, the features in the compatible relationship in the first image feature and the second image feature can be deleted and fused, and the features in the mutual exclusion relationship in the first image feature and the second image feature can be supplemented each other. After the above processing is completed, the target image is determined. It can be understood that after the target image is determined, the feature detection of the target image is performed by the feature extraction network model, the skin state of each skin area corresponding to the target image is determined, and the abnormal position in the skin area is determined.
[0056] As shown in Figure 2 In the case that the current skin area does not contain the abnormal position, the beauty probe is controlled to move along the first path and the second path in sequence to determine the first reference image corresponding to the first path and the second reference image corresponding to the second path, including: in the case that the current skin area does not contain the abnormal position, three marker points in the first path and the second path are determined; the three marker points are taken as the starting point, the transfer point and the terminal point of the first path and the second path to control the movement of the beauty probe; according to the video stream photographed by the beauty probe along the first path and the second path, the first reference image and the second reference image are determined.
[0057] In the embodiment, the first path and the second path can be V-shaped, and the starting point can be a predetermined position when the beauty probe moves along the first path and the second path, so that when the video stream of the first path and the second path is shot, the video stream corresponding to the first path is first determined by moving from the current skin area to the transfer point, and then the video stream corresponding to the second path is determined by moving from the transfer point to the end point. It can be understood that by determining a plurality of continuous image frames in the video stream from the video stream corresponding to the first path and the video stream corresponding to the second path, and fusing the plurality of continuous image frames to obtain corresponding first reference image and second reference image; therefore, after determining the first reference image and the second reference image, the first path and the second path are determined by feature fusion of the first reference image and the second reference image; in an optional embodiment, the shooting width of the beauty probe can be set according to actual needs, for example, the shooting width after magnification can be 20-50 cm, so that most of the skin area can be shot to form the first reference image and the second reference image, ensuring more accurate images.
[0058] Specifically, after the above-mentioned feature fusion of the first reference image and the second reference image, and feature detection of the target image after feature fusion to determine the abnormal position in the target image, it includes: according to the abnormal position in the target image, calculating the size of the abnormal position to obtain the size result of the abnormal position; and determining the control instruction of the beauty probe according to the size result and the beauty path trajectory.
[0059] In the embodiment, the abnormal position can be a position different from the normal skin, such as different color, different volume, etc., so the size calculation can be to calculate the area size or volume size corresponding to the abnormal position, and the size calculation of the abnormal position is performed to control the beauty probe according to the size result; optionally, when the size result of the abnormal position is large, the working time of the beauty probe can be controlled to be longer; when the size result of the abnormal position is small, the working time of the beauty probe can be controlled to be shorter; for example, when acne is removed by the beauty probe, the volume size of each acne can be calculated, and the control instruction of the beauty probe is adjusted according to the position of each acne, so that the beauty care scheme can be dynamically adjusted.
[0060] Further, the above-mentioned determination of the control instruction of the beauty probe according to the size result and the beauty path trajectory includes: determining the dwell time and working parameters of the beauty probe for the abnormal position according to the size result; the working parameters include light intensity, light time and liquid amount; in response to the second operation of the user on the beauty probe, the beauty probe is controlled according to the second operation, so that the beauty probe works on the beauty path trajectory by the dwell time and the working parameters.
[0061] In the embodiment, the cosmetic probe can output laser, red and blue light, etc., and can also spray liquid medicine through the cosmetic probe; when determining the size result of the abnormal position, the residence time of the cosmetic probe can be determined according to the size result, when the size result is large, the residence time can be increased, and the light intensity, light time and liquid medicine amount can also be increased accordingly; when the size result is small, the residence time can be shortened, and the light intensity, light time and liquid medicine amount can also be reduced accordingly; therefore, after determining the residence time and working parameters of the cosmetic probe for each abnormal position, a prompt information can be output to inform the user, so that the user can perform a second operation on the cosmetic probe, and the second operation can be the start of the cosmetic operation of the cosmetic probe, for example, the user inputs an instruction through a key or the like to make the cosmetic probe perform autonomous cosmetic operation; so that the cosmetic probe can perform cosmetic operation on the person to be beautified according to the determined residence time and working parameters, and can autonomously complete the cosmetic operation according to the cosmetic path trajectory.
[0062] S30, path planning is performed on the abnormal position, a cosmetic path trajectory of the abnormal position is determined, and a control instruction of the cosmetic probe is determined according to the cosmetic path trajectory; the control instruction is used to control the cosmetic probe to perform a cosmetic operation according to the cosmetic path trajectory.
[0063] The cosmetic path trajectory is used to plan the moving route of the cosmetic probe, so that the cosmetic probe can perform a cosmetic operation on each abnormal position according to the cosmetic path trajectory, and when performing the cosmetic operation, the above-mentioned residence time and working parameters can be used to perform the cosmetic operation; it can be understood that the residence time and working parameters for each abnormal position can be the same or different; by dynamically planning the cosmetic operation of each abnormal position, the subsequent cosmetic effect can be better and the efficiency can be higher.
[0064] Specifically, the above-mentioned path planning on the abnormal position, the determination of the cosmetic path trajectory of the abnormal position, and the determination of the control instruction of the cosmetic probe according to the cosmetic path trajectory include: determining the center point of the abnormal position; connecting the center points of the abnormal positions in sequence to construct the cosmetic path trajectory of the abnormal positions; and determining the control instruction of the cosmetic probe according to the cosmetic path trajectory.
[0065] In the embodiment, the abnormal positions can be regular shapes or irregular shapes, and therefore the center points of each abnormal position in the target image can be determined, when the abnormal positions are regular shapes, a plurality of extension lines can be assigned to the edges of the abnormal positions towards the center, and after the plurality of extension lines intersect with each other, the point at which the extension lines intersect most is taken as the center point of the abnormal position; when the abnormal positions are irregular shapes, the edges of the abnormal positions can be filled with pixel points so that the edges can form regular shapes after being filled, and then a plurality of extension lines can be assigned to the edges of the abnormal positions towards the center, and after the plurality of extension lines intersect with each other, the point at which the extension lines intersect most is taken as the center point of the abnormal position; by determining the center points of each abnormal position, the center points can be sequentially constructed to form the beauty path trajectory, so that the beauty probe can take each center point as a reference and perform the beauty operation when performing the beauty operation, and it is ensured that each abnormal position can be covered, thereby completing the autonomous beauty operation.
[0066] The beauty method provided by the application can be applied to a beauty device having a beauty probe, first, in response to a first operation of the beauty probe by a user, image information of a current skin area is acquired; then the image information is enlarged by a predetermined multiple, and the beauty probe is controlled to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path; finally, the abnormal positions are path planned, a beauty path trajectory of the abnormal positions is determined, and a control instruction of the beauty probe is determined according to the beauty path trajectory. Therefore, the workload of medical staff can be reduced, and the beauty care scheme can be autonomously planned for different persons to be beautified, and the degree of automation is higher.
[0067] As shown in Figure 3 The beauty device 10 provided by the embodiment of the application comprises:
[0068] The response module 11 is configured to acquire image information of a current skin area in response to a first operation of the beauty probe by a user.
[0069] The control module 12 is configured to enlarge the image information by a predetermined multiple, and control the beauty probe to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path.
[0070] The determination module 13 is configured to path plan the abnormal positions, determine a beauty path trajectory of the abnormal positions, and determine a control instruction of the beauty probe according to the beauty path trajectory; the control instruction is configured to control the beauty probe to perform a beauty operation according to the beauty path trajectory.
[0071] The cosmetic device provided by the present application first acquires image information of a current skin area in response to a first operation of a user on a cosmetic probe; then the image information is enlarged by a predetermined multiple, and the cosmetic probe is controlled to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path; finally, the abnormal positions are path planned, the cosmetic path trajectories of the abnormal positions are determined, and the control instructions of the cosmetic probe are determined according to the cosmetic path trajectories. In this way, the workload of medical personnel can be reduced, and the cosmetic care scheme can be autonomously planned for different persons to be cosmetized, so that the degree of automation is higher.
[0072] It should be noted that the cosmetic device 10 provided by the embodiments of the present application is a device corresponding to the above-mentioned cosmetic method, and all embodiments of the above-mentioned cosmetic method are applicable to the cosmetic device 10. In the embodiments of the above-mentioned cosmetic device 10, there are corresponding modules corresponding to the steps in the above-mentioned cosmetic method, which can achieve the same or similar beneficial effects. To avoid too much repetition, each module in the cosmetic device 2 will not be described in detail here.
[0073] As shown in Figure 4 The embodiments of the present application also provide a cosmetic device 20, which includes a memory 202, a processor 201, and a computer program stored in the memory 202 and executable on the processor 201, and the processor 201 implements the steps of the above-mentioned cosmetic method when executing the computer program.
[0074] Specifically, the processor 201 is configured to invoke the computer program stored in the memory 202 and execute the following steps:
[0075] In response to a first operation of a user on a cosmetic probe, acquire image information of a current skin area;
[0076] Enlarge the image information by a predetermined multiple, and control the cosmetic probe to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path;
[0077] Path plan the abnormal positions, determine the cosmetic path trajectories of the abnormal positions, and determine the control instructions of the cosmetic probe according to the cosmetic path trajectories; the control instructions are used to control the cosmetic probe to perform cosmetic operations according to the cosmetic path trajectories.
[0078] Optionally, the processor 201, in response to a first operation of a user on a cosmetic probe, acquires image information of a current skin area, includes:
[0079] In response to a first operation of a user on a cosmetic probe, control the cosmetic probe to move to a predetermined position;
[0080] When the cosmetic probe moves to the predetermined position, a position of a skin area corresponding to the to-be-beautified person in the predetermined position is determined;
[0081] Image information of the current skin area is acquired according to the position of the skin area.
[0082] Optionally, the processor 201 performs amplification of the image information by a predetermined multiple, and controls the cosmetic probe to move along the first path and the second path according to the amplified image information, so as to determine the abnormal position in the first path and the second path, and the method comprises the following steps:
[0083] A preset distance between the cosmetic probe and the current skin area is determined, and the image information is amplified by a predetermined multiple according to the preset distance;
[0084] It is judged whether the current skin area contains an abnormal position according to the amplified image information;
[0085] In the case that the current skin area does not contain an abnormal position, the cosmetic probe is controlled to move along the first path and the second path in turn, so as to determine a first reference image corresponding to the first path and a second reference image corresponding to the second path; wherein the first reference image and the second reference image are in mutual exclusion and / or compatibility;
[0086] The first reference image and the second reference image are feature-fused, and feature detection is performed on a target image after the feature fusion, so as to determine an abnormal position in the target image.
[0087] Optionally, the processor 201 performs the following steps in the case that the current skin area does not contain an abnormal position:
[0088] In the case that the current skin area does not contain an abnormal position, three marker points in the first path and the second path are determined;
[0089] The three marker points are taken as starting points, transfer points and end points of the first path and the second path, so as to control the movement of the cosmetic probe;
[0090] The first reference image and the second reference image are determined according to video streams photographed by the cosmetic probe in the first path and the second path.
[0091] Optionally, after the processor 201 performs the feature fusion of the first reference image and the second reference image, and the feature detection on the target image after the feature fusion, so as to determine the abnormal position in the target image, the method further comprises the following steps:
[0092] According to the abnormal position in the target image, size calculation is performed on the abnormal position, so as to obtain a size result of the abnormal position;
[0093] determine the control instruction of the cosmetic probe according to the size result and the cosmetic path trajectory.
[0094] Optionally, the control instruction of the cosmetic probe according to the size result and the cosmetic path trajectory determined by the processor 201 comprises:
[0095] determine the residence time and the working parameter of the cosmetic probe for the abnormal position according to the size result; the working parameter comprises the light intensity, the light time and the liquid amount;
[0096] in response to the second operation of the user on the cosmetic probe, control the cosmetic probe according to the second operation, so that the cosmetic probe works on the cosmetic path trajectory with the residence time and the working parameter.
[0097] Optionally, the processor 201 performs the path planning on the abnormal position, determines the cosmetic path trajectory of the abnormal position, and determines the control instruction of the cosmetic probe according to the cosmetic path trajectory, which comprises:
[0098] determine the center point of the abnormal position;
[0099] connect the center points of the abnormal positions in sequence to construct the cosmetic path trajectory of the abnormal positions;
[0100] determine the control instruction of the cosmetic probe according to the cosmetic path trajectory.
[0101] That is, in the specific embodiments of the present application, the processor 201 of the cosmetic device 20 implements the steps of the above-mentioned cosmetic method when executing the computer program, thereby reducing the workload of medical personnel and enabling autonomous planning of cosmetic care programs for different people to be cosmetized, with higher automation.
[0102] It should be noted that, since the processor 201 of the cosmetic device 20 implements the steps of the above-mentioned cosmetic method when executing the computer program, all embodiments of the above-mentioned cosmetic method are applicable to the cosmetic device 20 and can achieve the same or similar beneficial effects.
[0103] The computer readable storage medium provided in the embodiments of the present application has a computer program stored thereon, the computer program is executed by the processor to implement each process of the cosmetic method or the application end cosmetic method provided by the embodiments of the present application, and the same technical effects can be achieved, to avoid repetition, which will not be repeated here.
[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, the program can include the processes of the above-mentioned embodiment methods. The storage medium can be a magnetic disc, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
[0105] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily mean the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0106] The above only describes the preferred embodiments of the present application, and does not limit the patent scope of the present application. Any equivalent structural transformation made according to the content of the present application specification and drawings, or direct / indirect application in other related technical fields is included in the patent protection scope of the present application.
Claims
1. A cosmetic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the following method when executing the computer program: In response to a first operation of a beauty probe by a user, image information of a current skin area is obtained; The image information is enlarged by a predetermined multiple, and the beauty probe is controlled to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path; Path planning is performed on the abnormal positions to determine a beauty path trajectory of the abnormal positions, so as to determine a control instruction of the beauty probe according to the beauty path trajectory; the control instruction is used to control the beauty probe to perform a beauty operation according to the beauty path trajectory; The image information is enlarged by a predetermined multiple, and the beauty probe is controlled to move along a first path and a second path according to the enlarged image information, so as to determine abnormal positions in the first path and the second path; A preset distance between the beauty probe and the current skin area is determined, and the image information is enlarged by a predetermined multiple according to the preset distance; It is judged whether the current skin area contains abnormal positions according to the enlarged image information; In the case that the current skin area does not contain abnormal positions, the beauty probe is controlled to move along the first path and the second path in turn, so as to determine a first reference image corresponding to the first path and a second reference image corresponding to the second path; wherein the first reference image and the second reference image are in mutual exclusion and / or compatibility; The first reference image and the second reference image are feature fused, and feature detection is performed on a target image after feature fusion, so as to determine abnormal positions in the target image.
2. The cosmetic device of claim 1, wherein, The processor implements the following method when executing the computer program: In response to a first operation of a beauty probe by a user, image information of a current skin area is obtained; In response to a first operation of a beauty probe by a user, the beauty probe is controlled to move to a predetermined position; When the beauty probe moves to the predetermined position, the position of a skin area corresponding to a person to be beautified in the predetermined position is determined; 3. The cosmetic device of claim 1, wherein, The image information of the current skin area is obtained according to the position of the skin area. The processor implements the following method when executing the computer program: In the case that the current skin area does not contain abnormal positions, three marker points in the first path and the second path are determined; The three marker points are used as starting points, transfer points and end points of the first path and the second path to control the movement of the beauty probe; 4. The cosmetic device of claim 1, wherein, According to the video stream photographed by the beauty probe in the first path and the second path, the first reference image and the second reference image are determined. The processor implements the following method when executing the computer program: According to the abnormal positions in the target image, the size of the abnormal positions is calculated to obtain a size result of the abnormal positions; According to the size result and the beauty path trajectory, a control instruction of the beauty probe is determined.
5. The cosmetic device of claim 4, wherein, The control instruction for determining the cosmetic probe according to the size result and the cosmetic path trajectory comprises: determining the residence time and the working parameter of the cosmetic probe for the abnormal position according to the size result; the working parameter comprises the light intensity, the light time and the liquid volume; in response to the second operation of the user on the cosmetic probe, controlling the cosmetic probe according to the second operation, so that the cosmetic probe works on the cosmetic path trajectory with the residence time and the working parameter.
6. The cosmetic device of claim 1, wherein, The processor performs path planning on the abnormal position, determines the cosmetic path trajectory of the abnormal position, and determines the control instruction for the cosmetic probe according to the cosmetic path trajectory, which comprises: determining the center point of the abnormal position; connecting the center points of the abnormal positions in sequence to construct the cosmetic path trajectory of the abnormal position; determining the control instruction for the cosmetic probe according to the cosmetic path trajectory.
7. A computer-readable storage medium storing a computer program, the computer-readable storage medium comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 6. The computer program is executed by the processor to realize the steps of the method performed by the cosmetic equipment according to any one of claims 1 to 6.
Citation Information
Patent Citations
System for automatic skin management based on 3D image
KR102053003B1