Disclosure of Invention
In view of the above, embodiments of the present invention are directed to a nail art device and a method thereof, which solve the above-mentioned problems of inaccurate nail art and poor appearance.
According to an aspect of the present invention, there is provided a nail decorating method of a nail decorating device including a nail decorating assembly for performing a nail decorating operation on the finger or toe, the method including: collecting images of fingers or toes; extracting a nail contour of the finger or toe in the image; forming a geometric figure according to the nail contour; acquiring position coordinates of a calibration point of the geometric figure on a calibration plate, wherein the calibration point is used for indicating the position of the geometric figure on the calibration plate; and determining the area of nail beautifying operation according to the position coordinates.
In one embodiment, the extracting the nail contour of the finger or toe in the image comprises: smoothing the image through an edge-preserving and denoising model; extracting the nail contour of the finger or toe in the image after the smoothing processing.
In one embodiment, the extracting the nail contour of the finger or toe in the image comprises: smoothing the image by a Gaussian algorithm; extracting the nail contour of the finger or toe in the image after the smoothing processing.
In one embodiment, said forming a geometric figure according to said nail contour comprises: and forming a corresponding elliptical figure according to the nail outline.
In one embodiment, said forming a geometric figure according to said nail contour comprises: and fitting the points forming the nail outline to form the corresponding geometric figure.
In one embodiment, the index point is the center of gravity of the geometric figure.
In one embodiment, the acquiring the image of the finger or toe comprises: providing ultraviolet light to illuminate the digit and capturing the image of the digit by an image capture device.
In one embodiment, the wavelength of the ultraviolet light is less than 400 microns.
In a further embodiment, the wavelength of the ultraviolet light is between 380 and 390 microns.
In an embodiment, the determining the area of the nail art operation according to the position coordinates includes: determining area information of the nail art according to the position coordinates, and transmitting the area information to a device performing the nail art through a universal serial bus.
According to another aspect of the present invention, there is provided a nail art device including: the bearing assembly is used for bearing the finger or toe; an image localization assembly configured to perform the steps of any of the methods described above; and the nail-beautifying component executes nail-beautifying operation on the finger or toe according to the area of the nail-beautifying operation determined by the image positioning component.
In one embodiment, the nail assembly includes: control means for controlling the nail assembly to perform a nail-beautifying operation on the finger or toe; and an executing means for executing a nail-beautifying operation on the finger or toe.
In a further embodiment, the actuator comprises a 3-axis robot.
In an embodiment, the nail assembly further comprises a driving member for providing the power required by the performing member to perform the nail-beautifying operation on the finger or toe.
In a further embodiment, the drive component comprises any one of the following drive mechanisms: stepper motors and servo motors.
In an embodiment, the nail assembly further comprises a correction part for correcting an initial position of the actuator part.
In a further embodiment, the correction means comprises any one of the following: a limiter and an angle sensor.
In an embodiment, the performing means comprises a painting module for painting nail polish on the finger or toe.
In a further embodiment, the smearing module comprises a steering engine for taking the nail polish.
According to the nail beautifying device and the nail beautifying method, the image is collected and the geometric figure is formed, and the area of nail beautifying operation is determined according to the position coordinates of the geometric figure on the calibration plate, so that accurate nail beautifying operation is realized.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a nail art method according to an embodiment of the present invention. The nail-beautifying device provided by the embodiment of the invention comprises a nail-beautifying component used for performing nail-beautifying operation on fingers or toes. As shown in fig. 1, the nail art method of the present invention specifically includes the following steps:
step 101: an image of the finger or toe is acquired. The image of the finger or toe can be acquired by an image acquisition device such as a camera.
Step 102: the nail contour of the finger or toe in the image is extracted. Nail contours requiring nail beautification are extracted from the acquired images of the fingers or toes.
Step 103: the geometric figure is formed according to the nail contour. The geometry is formed according to the nail contour, and may be a standard geometry in order to facilitate the subsequent nail art.
Step 104: and acquiring the position coordinates of the calibration point of the geometric figure on the calibration plate. Setting a calibration board, wherein the calibration board covers the range of the nail outline and the geometric figure, setting a coordinate system on the calibration board, acquiring the position coordinates of the calibration point of the geometric figure in the coordinate system and the parameters of the geometric figure, and determining the position of the geometric figure on the calibration board through the position coordinates of the calibration point and the parameters of the geometric figure.
Step 105: and determining the area of nail beautifying operation according to the position coordinates. And determining area information during nail beautifying operation according to the position coordinate information of the geometric figure so as to realize accurate nail beautifying operation.
The accurate nail art is realized by collecting an image of a finger or a toe and extracting a nail outline in the image, forming a geometric figure according to the nail outline, acquiring position coordinates of points constituting the geometric figure on a calibration plate, and determining area information of the nail art according to the position coordinates of the points constituting the geometric figure on the calibration plate.
Fig. 2 is a schematic flow chart of another embodiment of the nail art method of the present invention. As shown in fig. 2, the image may be smoothed by a gaussian algorithm after step 101. The method specifically comprises the following steps:
step 201: and smoothing the image through an edge-preserving denoising model.
Smoothing the acquired image through an edge-preserving and denoising model to realize image color channel separation, setting differences in hue, saturation and brightness channels to highlight the nail contour and accurately extract the nail contour.
In a further embodiment, the image may be smoothed by a gaussian algorithm in step 201. Smoothing the acquired image through a Gaussian algorithm to highlight the nail contour, thereby realizing accurate extraction of the nail contour.
It should be understood that, according to the embodiment of the present invention, different methods may be selected to process the acquired image according to requirements of different application scenarios, as long as the selected method can achieve extraction of the nail contour, and the method for processing the image is not limited in the embodiment of the present invention.
In one embodiment, a corresponding elliptical pattern may be formed according to the nail contour. The shape of the nail outline is relatively approximate to an ellipse, so that an ellipse figure is formed according to the extracted nail outline in the embodiment of the invention, so as to conveniently determine the area of the subsequent nail beautifying operation.
It should be understood that, in the embodiment of the present invention, different geometric figures may be selected according to requirements of different application scenarios to determine the area of nail beautifying operation, as long as the selected geometric figures can better reflect the nail contour, and the embodiment of the present invention does not limit the specific shape of the selected geometric figures.
In one embodiment, the points that will make up the nail outline may be fitted to form a corresponding geometric figure. By fitting the nail contour to form a corresponding geometric figure, a reference is provided for determining the area of the nail art. The points forming the nail outline are used for fitting to form a geometric figure, so that the shape of the nail outline can be accurately reflected. The fitting method adopted by the embodiment of the invention includes but is not limited to a least square method, a Lagrangian function method and other fitting algorithms.
In one embodiment, the position coordinates of all points constituting the entire geometry on the calibration plate may be determined by acquiring the position coordinates of the center of gravity of the geometry on the calibration plate. When the position coordinates of the points constituting the geometric figure on the calibration board are obtained, only the position coordinates of the center of gravity of the geometric figure on the calibration board can be obtained, and the position coordinates of all the points constituting the whole geometric figure on the calibration board can be determined according to other shape parameters of the geometric figure. It should be understood that the position coordinates of all points constituting the whole geometric figure on the calibration board can be determined by the shape parameters of the geometric figure and the position coordinates of one or more points of the geometric figure on the calibration board, therefore, the center of gravity of the geometric figure selected by the present invention is only an exemplary illustration, and the embodiment of the present invention does not limit the calibration point of the obtained position coordinates on the calibration board.
In one embodiment, ultraviolet light may be provided to illuminate the digit and an image of the digit is acquired under illumination by the ultraviolet light. For better capturing the image of the finger or toe, the light source in the above embodiment may be a special ultraviolet light source, and the nail and the skin of the finger or toe may show a larger difference under the irradiation of the ultraviolet light, which may further improve the precision of extracting the nail contour.
It should be understood that, in the embodiment of the present invention, different light sources and types of light emitted by the light sources may be selected according to requirements of different application scenarios, as long as the selected light sources and the light emitted by the light sources can meet the brightness required for collecting the finger or toe, and the embodiment of the present invention does not limit the selected light sources and the types of light emitted by the light sources.
In one embodiment, the wavelength of the light provided may be less than 400 microns of light. In a further embodiment, the light provided may have a wavelength of between 380 microns and 390 microns. For better acquisition of the image of the finger or toe, the wavelength of the light emitted by the light source may be adjusted to improve the accuracy of extracting the nail contour.
It should be understood that, in the embodiment of the present invention, light with different wavelengths may be selected according to requirements of different application scenarios, as long as the selected light can ensure the definition of the acquired image of the finger or toe, and the wavelength of the selected light is not limited in the embodiment of the present invention.
In one embodiment, in order to capture images of cleaner fingers or toes, high-definition cameras may be used to capture the images, and the sharpness of the captured images may be further improved by providing an ultraviolet filter.
In one embodiment, area information of the nail art is determined according to the position coordinates, and the area information is transmitted to a device performing the nail art through a universal serial bus. It should be understood that the USB transmission of the region information in the embodiment of the present invention is only an exemplary description, and the region information may also be transmitted by using other transmission methods.
Fig. 3 is a schematic structural view of an embodiment of the nail art device of the present invention. In order to better implement the method, an embodiment of the present invention further provides a nail art device, as shown in fig. 3, the nail art device may include a bearing assembly, a nail art assembly, and an image positioning assembly. The carrying assembly is used for carrying fingers or toes, the image positioning assembly is used for collecting and positioning the nail outlines of the fingers or toes on the carrying assembly, the image positioning assembly can execute the steps of any one of the methods, and the nail beautifying assembly is used for carrying out nail beautifying operation on the fingers or toes according to the nail beautifying operation area determined by the image positioning assembly. The finger or toe is carried by the carrying assembly, the image positioning assembly collects and positions the carried finger or toe, and then the nail beautifying assembly performs nail beautifying operation on the finger or toe according to the area information determined by the image positioning assembly. By the nail beautifying device provided by the embodiment of the invention, accurate nail beautifying operation can be realized.
Fig. 4 is a schematic structural view of a nail assembly according to an embodiment of the present invention. As shown in fig. 4, the nail art assembly may include a control part and an execution part. The control component is used for controlling the nail-beautifying component to perform nail-beautifying operation on the finger or toe, and the execution component is used for performing nail-beautifying operation on the finger or toe. The control component receives the area information transmitted by the image positioning component and controls the execution component to perform nail beautifying operation according to the area information so as to realize accurate nail beautifying.
In a further embodiment, the actuator may comprise a 3-axis robot. The 3-axis manipulator can realize free movement of the executing component in space, and nail beautifying operation is better realized.
It should be understood that, in the embodiment of the present invention, different execution components may be selected according to requirements of different application scenarios, as long as the selected execution component can freely move in space to implement nail art, and the selected execution component is not limited in the embodiment of the present invention.
Fig. 5 is a schematic structural view of another embodiment of the nail assembly of the present invention. As shown in fig. 5, the nail assembly further comprises a drivable member for providing the power required by the performing member to perform the nail-beautifying operation on the finger or toe. By arranging the driving part, the driving part drives the execution part to move, and automatic nail beautifying operation can be realized.
In further embodiments, the drive component may comprise any of the following drive mechanisms: stepper motors and servo motors. It should be understood that, in the embodiment of the present invention, different driving mechanisms may be selected according to requirements of different application scenarios, as long as the selected driving mechanism can drive the actuator to freely move in space to implement nail beautifying operation, and the type of the selected driving mechanism is not limited in the embodiment of the present invention.
In an embodiment, the nail assembly further may include a correcting part for correcting an initial position of the actuating part. In order to better achieve precise control, the position of the actuator is corrected to an initial position by the correcting means before each nail art operation is performed, to further improve the precision of the nail art operation.
In further embodiments, the correction component may comprise any one of the following: a limiter and an angle sensor. It should be understood that, in the embodiment of the present invention, different correction components may be selected according to requirements of different application scenarios, as long as the selected correction components can correct the execution component to the initial position, and the embodiment of the present invention is not limited to the type of the selected correction components.
In one embodiment, the performing means may comprise a painting module for painting nail polish on the fingers or toes. In a further embodiment, the application module may include a steering engine for effecting access to nail polish. Fig. 6 is a schematic structural view of another embodiment of the nail art device of the present invention. As shown in fig. 6, when the nail art is to apply nail polish, the executing component may include an applying module, and a steering engine for taking off nail polish may be included below the applying module, so as to achieve automatic taking off and automatic applying of nail polish.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and the like that are within the spirit and principle of the present invention are included in the present invention.