WO2020015489A1 - 一种基于手指位置识别的美甲彩绘机控制方法 - Google Patents

一种基于手指位置识别的美甲彩绘机控制方法 Download PDF

Info

Publication number
WO2020015489A1
WO2020015489A1 PCT/CN2019/091321 CN2019091321W WO2020015489A1 WO 2020015489 A1 WO2020015489 A1 WO 2020015489A1 CN 2019091321 W CN2019091321 W CN 2019091321W WO 2020015489 A1 WO2020015489 A1 WO 2020015489A1
Authority
WO
WIPO (PCT)
Prior art keywords
finger
edge
nail
contour
line
Prior art date
Application number
PCT/CN2019/091321
Other languages
English (en)
French (fr)
Inventor
吴宁
Original Assignee
吴宁
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 吴宁 filed Critical 吴宁
Publication of WO2020015489A1 publication Critical patent/WO2020015489A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34098Slope fitting, fairing contour, curve fitting, transition

Definitions

  • the invention relates to a nail painting machine control method based on finger position recognition.
  • Manicure machines for nail painting usually include camera parts for viewing the nail surface, identifying the shape and size of the nail surface; finger positioning parts for placing fingers, inkjet parts for spraying patterns on the nail surface, and printer holders These constitute a printing mechanism, in which a finger positioning member is fixed on a printer frame and placed under an inkjet member to form a printing site; an electronic circuit component for controlling printing and the like.
  • the print mechanism of the nail painting machine on the market is based on the shape of the above parts.
  • the finger is placed on the finger positioning part and under the inkjet part.
  • the inkjet port is away from the hand due to the ink cartridge's back and forth movement
  • the shortest distance of the nail surface is no more than 2mm.
  • the technical problem to be solved by the present invention is to provide a method for controlling a nail painter based on finger position recognition, so as to overcome the problem that the user's finger may be placed in the wrong position when using the existing nail painter and affect the painting effect.
  • a nail painting machine control method based on finger position recognition The nail painting machine to which the method is applied is provided with a finger positioning part for placing a finger, an inkjet part for spraying on a nail piece of the finger, and a driving device.
  • the method for controlling a nail painting machine includes:
  • Step S1. Receiving a detection image captured by the side camera, and performing a nail detection step based on the detection image, including:
  • Step S11 Establish a plane rectangular coordinate system OXY based on the detection image, wherein an X-axis of the plane rectangular coordinate system OXY extends in a width direction of the detection image, and a Y-axis extends in a height direction of the detection image;
  • Step S12 In the detection image, identify the contour line on the finger of the finger, and read the coordinate (X H , of the highest point H of the finger along the contour line in the plane rectangular coordinate system OXY).
  • Y H in a case where the direction of the Y axis is downward, the highest point H is a point on the finger where Y H is the smallest along the contour line, and in a case where the direction of the Y axis is upward , The highest point H is a point on the finger along the contour line where Y H is the largest;
  • Step S13 Determine whether the highest point H along the contour line on the finger is between the upper detection line and the lower detection line, wherein the upper detection line is the nozzle edge of the detection image capable of representing the inkjet component.
  • the track line segment during the longitudinal movement, the lower detection line is parallel to the upper detection line and is located below the upper detection line, and the distance between the lower detection line and the upper detection line is preset Effective printing distance ⁇ D; if the determination result is yes, it is determined that the placement position of the finger is correct; if the determination result is no, it is determined that the placement position of the finger is wrong.
  • the upper detection line is obtained by the nail painter through a calibration step
  • the calibration step is: first, the inkjet member is moved to the middle position in the lateral direction by the driving mechanism. ; Secondly, on the premise of ensuring that the nozzle of the inkjet member falls within the shooting range of the side camera, the driving mechanism moves the inkjet member along the longitudinal direction to the front end, and the center of the nozzle is The position in the detection image is marked as the front point P1; then, on the premise of ensuring that the nozzle of the inkjet member falls within the shooting range of the side camera, the drive mechanism moves the inkjet member along the The longitudinal movement to the rear end marks the position of the center of the nozzle in the detection image at this time as the rear end point P2; finally, the connection between the front end point P1 and the rear end point P2 is taken as the On the test line
  • the calibration step is: in the detection image, a straight line where the lower edge of the inkjet member is located As the upper detection line.
  • the shooting centerline of the side camera is located between the inkjet member and the finger positioning member.
  • a method of identifying contour lines on the fingers of the fingers is:
  • Step S12-1 Perform noise reduction processing and edge enhancement processing on the detected image to obtain a grayscale image
  • Step S12-2 detecting edge line segments in the grayscale image
  • step S12-3 the edge line segments detected in step S12-2 are supplemented by breaking, that is, for two adjacent edge line segments, if the distance between the end portions of the two edge line segments is between Within the preset maximum breaking distance, the ends of the two line segments are connected to obtain at least one continuous edge contour line segment;
  • Step S12-4 Each edge contour line segment is truncated into at least one contour edge segment, and two ends of the contour edge segment are the points with the largest and smallest X-axis coordinates on the corresponding edge contour segment;
  • Step S12-5 The contour edge segments obtained in step S12-4 are filtered according to the following conditions to exclude contour edge segments that are not along the contour line of the finger, and identify the remaining contour edge segments as the upper edge of the finger outline;
  • Condition 2 If the difference between the brightness of the upper region of a contour edge segment and the brightness of the lower region exceeds a preset brightness threshold, the contour edge segment is excluded, wherein the brightness of the upper region and the brightness of the lower region are respectively Is the average brightness within a range of preset areas located above and below the corresponding contour edge segment.
  • each edge contour line segment is scanned first, and then each scanned edge contour line segment is truncated into at least one contour edge line segment; wherein, The scanning method is:
  • the preset X-axis coordinates for starting scanning are recorded as starting coordinates X S , and each edge contour line segment passing through the starting coordinate is scanned, that is, the edge contour line segment is located at the starting coordinate
  • the point on X S is the starting point of the contour edge line segment.
  • the edge contour line segment is scanned in the direction of the fingertip of the finger, and when the bifurcation point on the edge contour line segment is scanned, Scanning is continued along the uppermost bifurcated segment of the multiple bifurcated segments until the point on the corresponding segment where the X-axis coordinate is closest to the X-axis coordinate of the fingertip of the finger and the point is used as the contour edge
  • the end points of the line segment are such that the points located at the starting point and the end point and scanned during the above scanning process constitute the contour edge line segment.
  • step S12-5 the conditions for filtering the contour edge segments obtained in step S12-4 further include:
  • Condition three If the color of the lower region of a contour edge segment is within a preset range of multiple skin color colors, the contour edge segment is excluded, where the lower region color is located below the corresponding contour edge segment The average color over a range of preset areas on the side.
  • step S1 a detection image captured by the side camera is extracted according to a preset sampling frequency, and each extracted detection image is executed once. Describe the nail detection steps.
  • the method for controlling a nail painting machine further includes:
  • Step S2 During the operation of the nail painting machine, when it is determined that the finger placement position is correct, control the nail painting machine to work normally; when it is determined that the finger placement position is incorrect, control the nail painting Machine stops working.
  • the method for controlling a nail painting machine further includes:
  • Step S3 Detect the detection image to determine whether there is a reflective area, and the average brightness and area of the reflective area are above a preset brightness threshold and area threshold, respectively. If the determination result is yes, it is determined that the finger is not placed on On the finger positioning member, if the determination result is no, it is determined that the finger has been placed on the finger positioning member.
  • the method for controlling a nail painting machine further includes:
  • Step S4 When it is determined in step S3 that the finger is not placed on the finger positioning member, control the nail painter to stop working.
  • the method for controlling a nail painting machine is implemented in one of the following two ways:
  • the nail painting machine is provided with a communication module, and the communication module can send a detection image captured by the side camera to an external control device, and the external control device can send the control image through the communication module for control.
  • the control instruction of the nail painting machine, and the method of controlling the nail painting machine is implemented on the external control device;
  • Manner 2 The nail painting machine is provided with a control system, and the nail painting machine control method is implemented on the control system.
  • the present invention has the following beneficial effects:
  • the present invention captures a detection image through a side camera, and based on the captured detection image, analyzes and determines whether the highest point H along the contour line on the finger of the user's finger is between the upper detection line and the lower detection line. This detects whether the placement position of the user's finger is correct, that is, whether the nail of the user's finger is too high and may collide with the inkjet part, or whether the nail of the user's finger is too low, which may cause the nail on the nail.
  • the inkjet image is not clear. Therefore, the present invention can prevent the inkjet effect on nails from being affected due to incorrect placement of the user's finger based on the detection and judgment.
  • the present invention determines the positions of the upper detection line and the lower detection line in the detection image through a calibration step, so that the present invention can be applied to a nail painting machine with different assembly errors, reducing the assembly accuracy requirements of the opposite camera, and the implementation cost. Be reduced.
  • the present invention obtains the contour edge segment by scanning the edge contour line segment in a specific scanning manner in step S12-4, and adds condition three in step S12-5, which can more reliably filter the contour line on the finger. In order to adapt to the application environment of the finger in the nail painting machine.
  • FIG. 1 is a schematic structural diagram of a front view of a nail painting machine according to the present invention
  • FIG. 2 is a schematic top plan view of a nail painting machine according to the present invention.
  • FIG. 3 is a schematic diagram of positions of a side camera and a fill light in the present invention.
  • FIG. 4 is a schematic diagram of a detection image in the present invention.
  • the present invention discloses a method for controlling a nail painter based on finger position recognition.
  • the nail painter to which the method is applied is provided with a finger positioning member 1 for placing a finger 3, and
  • the inkjet part 2 for spraying on the nail of the finger 3 and the driving mechanism for driving the inkjet part 2 to move in the longitudinal and lateral directions are respectively perpendicular to the pointing direction of the finger 3 when it is placed on the finger positioning part 1.
  • the inventive concept of the present invention is:
  • the nail painter of the present invention is further provided with a side camera 4 and a fill light 5; the shooting direction of the side camera 4 is parallel to the lateral direction, and the fill light 5 provides illumination for the finger 3 placed on the finger positioning member 1 and the fill light 5 LED lights are preferred, but other suitable types of light sources can also be used;
  • the method for controlling a nail painting machine includes:
  • a detection image 6 captured by the receiving-side camera 4 and performing a nail detection step based on the detection image 6 includes:
  • Step S11 Based on the detection image 6, a plane rectangular coordinate system OXY is established, wherein the X axis of the plane rectangular coordinate system OXY extends in the width direction of the detection image 6, and the Y axis extends in the height direction of the detection image 6.
  • Step S12 In the detection image 6, the contour line on the finger of the finger 3 is identified, and the coordinates (X H , Y H ) of the highest point H of the finger along the contour line in the plane rectangular coordinate system OXY are read. Among them, when the direction of the Y axis is downward, the highest point H is the point where Y H is the smallest along the contour line on the finger, and when the direction of the Y axis is upward, the highest point H is the Y along the contour line of the finger. H maximum point
  • Step S13 Determine whether the highest point H along the contour line of the finger is between the upper detection line L1 and the lower detection line L2, where the upper detection line L1 is the nozzle 21 in the detection image 6 capable of representing the inkjet member 2 moving in the longitudinal direction
  • the lower detection line L2 is parallel to the upper detection line L1 and is located below the upper detection line L1
  • the distance between the lower detection line L2 and the upper detection line L1 is a preset effective printing distance ⁇ D.
  • the effective printing distance ⁇ D is generally 2.5mm to 2.8mm, but it can also be set according to actual needs; if the judgment result is yes, it is judged that the placement position of finger 3 is correct; if the judgment result is no, it is judged that the placement position of finger 3 is incorrect. .
  • the upper detection line L1 is obtained by a nail painter through a calibration step
  • the calibration step is: first, the inkjet member 2 is moved to the middle position in the lateral direction by a driving mechanism; second, the inkjet member is ensured On the premise that the nozzle 21 of 2 falls within the shooting range of the side camera 4, the inkjet member 2 is moved to the front end by the driving mechanism in the longitudinal direction, and the position of the center of the nozzle 21 in the detection image 6 at this time is marked as the front point P1.
  • the inkjet member 2 is moved longitudinally to the rear end by the driving mechanism, and the center of the nozzle 21 is now detecting the image
  • the position in 6 is marked as the rear end point P2; finally, the connection between the front end point P1 and the rear end point P2 is taken as the upper detection line L1;
  • the calibration step is: In the detection image 6, the straight line where the lower edge of the inkjet member 2 is located is the upper detection line L1, and here In this case, the upper detection line L1 is parallel to the X axis.
  • the shooting centerline 4 a of the side camera 4 is located between the inkjet member 2 and the finger positioning member 1.
  • step S1 a detection image 6 captured by the side camera 4 is extracted at a preset sampling frequency, and a nail detection step is performed once for each of the extracted detection images 6. Therefore, during the entire nail painting process of the nail color machine, whether the user's finger 3 is placed at the correct position can be detected.
  • a method for controlling a nail painting machine further comprising:
  • Step S2 During the operation of the nail painting machine, when it is determined that the placement position of the finger 3 is correct, control the nail painting machine to work normally; when it is determined that the placement position of the finger 3 is incorrect, control the nail painting machine to stop working, and also issue The alarm prompts the user to adjust the finger 3 to the correct placement position.
  • a method for controlling a nail painting machine further comprising:
  • Step S3 The detection image 6 is detected to determine whether there is a reflective area, and the average brightness and area of the reflective area are above a preset brightness threshold and area threshold, respectively. If the determination result is yes, it is determined that the finger 3 is not placed on the finger positioning On the component 1, if the determination result is no, it is determined that the finger 3 has been placed on the finger positioning component 1.
  • a method for controlling a nail painting machine further comprising:
  • Step S4 When it is determined in step S3 that the finger 3 is not placed on the finger positioning member 1, the nail paint control machine is controlled to stop working, and an alarm prompt may be issued to remind the user.
  • the method for controlling a nail painter is implemented in one of the following two ways:
  • the nail painting machine is provided with a communication module, which can send the detection image 6 captured by the side camera 4 to an external control device, and the external control device can send a control instruction for controlling the nail painting machine through the communication module.
  • the method of controlling the nail painter is implemented on an external control device.
  • the external control device can be a mobile device such as a mobile phone, a tablet computer, or a personal computer, a server, etc.
  • the communication module can adopt a wireless communication method or a priority communication method.
  • Method 2 The nail painting machine is provided with a control system, and the method of controlling the nail painting machine is implemented on the control system.
  • the method for identifying the contour line on the finger of the finger 3 may adopt one of the following two embodiments:
  • the method for identifying the contour line on the finger of the finger 3 in the above step S12 is:
  • Step S12-1 Perform noise reduction processing and edge enhancement processing on the detection image 6 to obtain a grayscale image
  • Step S12-2 detecting edge line segments in the grayscale image
  • the detection method may be an existing edge detection algorithm such as Canny and Sobel.
  • step S12-3 the edge segments detected in step S12-2 are supplemented by breaking, that is, for two adjacent edge segments, if the distance between the ends of the two edge segments is at a preset maximum Within the break distance, the ends of the two line segments are connected to obtain at least one continuous edge contour line segment;
  • the nails need to be coated with nail polish, such as PP or PG glue. This makes the nails on the side illuminated by the fill light 5.
  • the detection image 6 captured by the camera 4 is in a highlighted state.
  • the edge contour line segment obtained must include the nail edge contour line 3a of the user's finger 3
  • the edge contour line segment obtained in step S12-3 may also include the contour line 3b of the user's finger 3 and the contour line of the user's finger 3
  • the contour line 3c on the finger and the interference contour line 2a located in the background of the detection image 6 are the edge contours generated by the fill light 5 illuminating the internal structure of the nail painting machine such as the shadow formed by the inkjet part 2.
  • Step S12-4 Each edge contour line segment is truncated into at least one contour edge segment, and two ends of the contour edge segment are the points with the largest and smallest X-axis coordinates on the corresponding edge contour segment;
  • the nail edge contour line 3a is truncated to the nail segment along the line segment 3a1
  • Two contour edge segments of the lower edge line segment 3a2, the finger belly contour line 3b and the interference contour line 2a are the contour edge segments, respectively; while the user's finger 3 penetrates into the nail painting machine more, and the contour of the upper edge of the finger
  • the contour line 3a of the nail edge and the contour line 3c on the finger are regarded as a contour edge line segment.
  • Step S12-5 The contour edge segments obtained in step S12-4 are filtered according to the following conditions to exclude contour edge segments that are not along the contour line of the finger, and identify the remaining contour edge segments as the top contour line of the finger;
  • condition one If the length of a contour edge segment is shorter than the preset minimum nail segment length, the contour edge segment is excluded; that is, the length of the contour edge segment obtained in step S12-4 is too short to be excluded. May contain a line segment along line segment 3a1 on the nail.
  • Condition 2 If the difference between the brightness of the upper region of a contour edge segment and the brightness of the lower region is above a preset brightness threshold, the contour edge segment is excluded, where the brightness of the upper region and the brightness of the lower region are respectively located at Corresponds to the average brightness in a preset area range corresponding to the upper and lower sides of the contour edge segment; that is, the interference contour line 2a generated by the shadow formed by the fill light 5 illumination is eliminated.
  • the edge contour line segment obtained in step S12-3 includes a nail edge contour line 3a, a finger belly contour line 3b, and an interference contour line 2a
  • the highest point H (X H , Y on the finger) along the contour line H ) is located on the nail segment along the line segment 3a1; and when the user's finger 3 penetrates into the nail painting machine more so that the contour line 3c on the finger is also obtained in step S12-3, the highest point along the contour line on the finger
  • the point H (X H , Y H ) is located on the finger along the contour line 3 c.
  • the method of identifying the contour line on the finger of the finger 3 in step S12 described above, based on the first embodiment further includes:
  • each edge contour line segment is scanned first, and then each scanned edge contour line segment is truncated into at least one contour edge segment; wherein, the scanning method is:
  • the preset X-axis coordinates for starting the scan are recorded as the starting coordinates X S , and each edge contour line segment that passes through the starting coordinates is scanned, that is, the point at which the edge contour line segment is located at the starting coordinate X S is taken as The starting point of the contour edge line segment. From this starting point, scan the edge of the edge contour line segment starting coordinate X S according to the actual application needs. For example: according to different starting coordinate X S setting, The points on the edge contour line segment can be the points (X S , Y S 1) and (X S , Y S 2), or the points (X S , Y S 3) in Figure 4.
  • the top bifurcation segment is located That is, the line segment 3a1) on the nail, and give up scanning the other branch line segments below, until the point on the corresponding line segment whose X-axis coordinate is closest to the X-axis coordinate of the fingertip of finger 3 is used as the contour edge line segment. End point, so that it is located at the start point and the end point and above Describe the process of being scanned edge contour line dots.
  • step S12-5 the conditions for filtering the contour edge segments obtained in step S12-4 further include:
  • Condition three If the color of the lower region of a contour edge segment is within a preset range of multiple skin color colors, the contour edge segment is excluded, where the color of the lower region is respectively located on the lower side of the corresponding contour edge segment The average color within the preset area; that is, exclude the line segment 3a2 below the nail.
  • the present invention is not limited to the specific embodiments described above. According to the foregoing, according to the common technical knowledge and conventional means in the art, the present invention can also make other various forms of equivalents without departing from the basic technical idea of the present invention. Modifications, replacements or changes all fall within the protection scope of the present invention.
  • the inkjet member 2 may be an ink cartridge integrated with the nozzle 21, or may be an inkjet-specific member separate from the ink cartridge.
  • the fill light 5 is preferably arranged on the side of the side camera 4, but it can also be arranged at other suitable positions, which can be used to provide illumination for the finger 3.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Coating Apparatus (AREA)
  • Image Analysis (AREA)

Abstract

一种基于手指位置识别的美甲彩绘机控制方法,通过在美甲彩绘机上增设有侧摄像头(4)和补光灯(5);并通过接收侧摄像头(4)所拍摄的检测图像(6),以基于检测图像(6)执行甲片检测步骤。通过侧摄像头(4)抓取检测图像(6),并基于抓取到的检测图像(6),分析判断出用户手指(3)的手指上沿轮廓线的最高点H是否在上检测线(L1)与下检测线(L2)之间,以此检测出用户手指(3)的放置位置是否正确,即检测出:用户手指(3)的甲片是否过高而有可能与喷墨部件发生碰撞,或者,用户手指(3)的甲片是否过低而有可能导致甲片上的喷绘图像不清晰,从而,依据此检测判断能够避免甲片上的喷绘效果因用户手指(3)的放置位置不正确而受到影响。

Description

一种基于手指位置识别的美甲彩绘机控制方法 技术领域
本发明涉及一种基于手指位置识别的美甲彩绘机控制方法。
背景技术
用于美甲彩绘的美甲机通常包含用于观察手指甲面、识别甲面形状和大小的摄像头部件;用于放置手指的手指定位部件、用于将图案喷绘在指甲表面的喷墨部件和打印机架,这些组成打印机构,其中手指定位部件固定于打印机架上并置于喷墨部件的下方,形成打印部位;用于控制打印的电子电路部件等。
目前,市面上已有的美甲彩绘机打印机构基于以上部件的形状,其中手指放置于手指定位部件上并置于喷墨部件的下面,彩绘过程中由于墨盒的来回移动,而喷墨口距离手指甲面的最短距离不超过2mm,一旦手指放置的位置不是在最准确的彩绘位置,易与墨盒相互碰撞而导致彩绘效果不佳,或者距离墨盒过远而导致彩绘效果不佳。
发明内容
本发明所要解决的技术问题是:提供一种基于手指位置识别的美甲彩绘机控制方法,以克服现有美甲彩绘机使用时用户的手指可能会放置在错误位置而影响彩绘效果的问题。
解决上述技术问题,本发明所采用的技术方案如下:
一种基于手指位置识别的美甲彩绘机控制方法,该方法所适用的美甲彩绘机设有用于放置手指的手指定位部件、用于在所述手指的甲片上进行喷绘的喷墨部件和用于带动所述喷墨部件分别沿纵向和横向移动的驱动机构,所述横向垂直于所述手指放置在所述手指定位部件上时的指向方向,其特征在于:所述的美甲彩绘机还设有侧摄像头和补光灯;所述侧摄像头的拍摄方向平行于所述横向,所述补光灯为放置在所述手指定位部件上的手指提供照明;
所述的美甲彩绘机控制方法,包括:
步骤S1、接收所述侧摄像头所拍摄的检测图像,并能基于该检测图像执行甲片检测步骤,包括:
步骤S11、基于所述检测图像,建立平面直角坐标系OXY,其中,该平面直角坐标系OXY的X轴沿所述检测图像的宽度方向延伸,Y轴沿所述检测图像的高度方向延伸;
步骤S12、在所述检测图像中,识别出所述手指的手指上沿轮廓线,并读取该手指上沿轮廓线的最高点H在所述平面直角坐标系OXY中的坐标(X H,Y H),其中,在所述Y轴的方向向下的情况下,所述最高点H为所述手指上沿轮廓线中Y H最小的点,在所述Y轴的方向向上的情况下,所述最高点H为所述手指上沿轮廓线中Y H最大的点;
步骤S13、判断所述手指上沿轮廓线的最高点H是否在上检测线与下检测线之间,其中,所述上检测线为所述检测图像中能够表示所述喷墨部件的喷嘴沿所述纵向移动时的轨迹线段,所述下检测线与所述上检测线相平行并位于所述上检测线的下方,且所述下检测线与上检测线之间的距离为预设的有效打印距离△D;如果判断结果为是,则判定所述手指的放置位置正确,如果判断结果为否,则判定所述手指的放置位置错误。
作为本发明的优选实施方式:所述上检测线为所述美甲彩绘机经过校准步骤得到;
在所述侧摄像头能够拍摄到所述喷墨部件位于其底面上的喷嘴的情况下,所述校准步骤为:首先,通过所述驱动机构将所述喷墨部件沿所述横向移动至中间位置;其次,在确保喷墨部件的喷嘴落在所述侧摄像头的拍摄范围内的前提下,通过所述驱动机构将所述喷墨部件沿所述纵向移动至前端,将所述喷嘴的中心此时在所述检测图像中的位置标记为前端点P1;然后,在确保喷墨部件的喷嘴落在所述侧摄像头的拍摄范围内的前提下,通过所述驱动机构将所述喷墨部件沿所述纵向移动至后端,将所述喷嘴的中心此时在所述检测图像中的位置标记为后端点P2;最后,将所述前端点P1与所述后端点P2的连线作为所述上检测线;
在所述侧摄像头所拍摄的所述喷墨部件的底面平行于所述X轴的情况下,所述校准步骤为:在所述检测图像中,将所述喷墨部件的下边沿所在的直线作为所述上检测线。
为了减少因检测图像的图像变形而带来的检测误差,作为本发明的优选实施方式:所述侧摄像头的拍摄中心线位于所述喷墨部件与所述手指定位部件之间。
作为本发明的优选实施方式:所述步骤S12中,识别所述手指的手指上沿轮廓线的方法为:
步骤S12-1、对所述检测图像进行降噪处理和边缘增强处理,以得到灰度图像;
步骤S12-2、检测出所述灰度图像中的边缘线段;
步骤S12-3、对所述步骤S12-2检测出的边缘线段进行断裂补齐,即:对于相邻的两段所述边缘线段,如果该两段边缘线段的线段端部之间的距离在预设的最大断裂间距以内,则将该两个线段端部连接起来,以获得至少一条连续的边缘轮廓线段;
步骤S12-4、将每一条所述边缘轮廓线段均截断为至少一条轮廓边沿线段,该轮廓边沿线段的两端为对应边缘轮廓线段上X轴坐标最大和最小的点;
步骤S12-5、通过以下条件对步骤S12-4得到的轮廓边沿线段进行筛选,以排除并非所述手指上沿轮廓线的轮廓边沿线段,并将剩余的轮廓边沿线段认定为所述手指上沿轮廓线;
条件一、如果某一轮廓边沿线段的长度小于预设的最小甲片上沿线段长度,则排除该轮廓边沿线段;
条件二、如果某一轮廓边沿线段的上侧区域亮度超过下侧区域亮度的差值在预设亮度阈值以上,则排除该轮廓边沿线段,其中,所述上侧区域亮度和下侧区域亮度分别为位于对应轮廓边沿线段的上侧和下侧的预设区域范围内的平均亮度。
作为本发明的优选实施方式:所述步骤S12-4中,先对各条所述边缘轮廓线段进行扫描,再将每一条被扫描到的边缘轮廓线段均截断为至少一条轮廓边沿线段;其中,所述扫描方式为:
预设用于启动扫描的X轴坐标,记为起始坐标X S,对每一条经过该起始坐标的所述边缘轮廓线段进行扫描,即:以所述边缘轮廓线段位于所述起始坐标 X S上的点作为所述轮廓边沿线段的起始点,从该起始点开始,向所述手指的指尖方向扫描该边缘轮廓线段,且在扫描到该边缘轮廓线段上的分叉点时,沿多根分叉线段中位于最上方的分叉线段继续进行扫描,直至扫描至相应线段上X轴坐标最靠近所述手指的指尖所在X轴坐标的点并以该点作为所述轮廓边沿线段的末端点,使得位于所述起始点与末端点并在上述扫描过程中被扫描到的点组成所述轮廓边沿线段。
所述步骤S12-5中,对步骤S12-4得到的轮廓边沿线段进行筛选的条件还包括:
条件三、如果某一轮廓边沿线段的下侧区域颜色在预设的多种肤色颜色范围值以内,则排除该轮廓边沿线段,其中,所述下侧区域颜色分别为位于对应轮廓边沿线段的下侧的预设区域范围内的平均颜色。
作为本发明的优选实施方式:所述的步骤S1中,按预设的采样频率提取所述侧摄像头所拍摄的检测图像,并且,对所提取的每一幅所述检测图像,均执行一次所述甲片检测步骤。
作为本发明的优选实施方式:所述的美甲彩绘机控制方法,还包括:
步骤S2、在所述美甲彩绘机的工作过程中,当判定所述手指的放置位置正确时,控制所述美甲彩绘机正常工作,当判定所述手指的放置位置错误时,控制所述美甲彩绘机停止工作。
作为本发明的优选实施方式:所述的美甲彩绘机控制方法,还包括:
步骤S3、检测所述检测图像,判断是否存在反光区域,该反光区域的平均亮度和面积分别在预设的亮度阈值和面积阈值以上,如果判断判断结果为是,则判定所述手指未放置在手指定位部件上,如果判断结果为否,则判定所述手指已放置在手指定位部件上。
作为本发明的优选实施方式:所述的美甲彩绘机控制方法,还包括:
步骤S4、当所述步骤S3判定所述手指未放置在手指定位部件上时,控制所述美甲彩绘机停止工作。
作为本发明的优选实施方式:所述的美甲彩绘机控制方法按照以下两种方式之一实施:
方式一、所述的美甲彩绘机设有通信模块,该通信模块能够将所述侧摄像头所拍摄的检测图像发送给外部控制设备,且所述外部控制设备能够通过所述通信模块发送用于控制所述美甲彩绘机的控制指令,所述美甲彩绘机控制方法在所述外部控制设备上实施;
方式二、所述的美甲彩绘机设有控制系统,所述美甲彩绘机控制方法在所述控制系统上实施。
与现有技术相比,本发明具有以下有益效果:
第一,本发明通过侧摄像头抓取检测图像,并基于抓取到的检测图像,分析判断出用户手指的手指上沿轮廓线的最高点H是否在上检测线与下检测线之间,以此检测出用户手指的放置位置是否正确,即检测出:用户手指的甲片是否过高而有可能与喷墨部件发生碰撞,或者,用户手指的甲片是否过低而有可能导致甲片上的喷绘图像不清晰,从而,本发明依据此检测判断能够避免甲片上的喷绘效果因用户手指的放置位置不正确而受到影响。
第二,本发明通过校准步骤确定上检测线和下检测线在检测图像中的位置,使得本发明能够适用于存在不同装配误差的美甲彩绘机,降低了对侧摄像头的装配精度要求,实施成本得以降低。
第三,本发明通过在步骤S12-4中以特定的扫描方式扫描边缘轮廓线段来获得轮廓边沿线段,并在步骤S12-5中增设条件三,能够更为可靠的筛选出手指上沿轮廓线,以适应于手指在美甲彩绘机中的应用环境。
附图说明
下面结合附图和具体实施例对本发明作进一步的详细说明:
图1为本发明的美甲彩绘机的主视结构示意图;
图2为本发明的美甲彩绘机的俯视结构示意图;
图3为本发明中侧摄像头和补光灯的位置示意图;
图4为本发明中检测图像的示意图。
具体实施方式
如图1至图4所示,本发明公开的是一种基于手指位置识别的美甲彩绘机控制方法,该方法所适用的美甲彩绘机设有用于放置手指3的手指定位部件1、 用于在手指3的甲片上进行喷绘的喷墨部件2和用于带动喷墨部件2分别沿纵向和横向移动的驱动机构,横向垂直于手指3放置在手指定位部件1上时的指向方向。
本发明的发明构思为:
本发明的美甲彩绘机还设有侧摄像头4和补光灯5;侧摄像头4的拍摄方向平行于横向,补光灯5为放置在手指定位部件1上的手指3提供照明,补光灯5优选采用LED灯,但也可采用其它合适类型的光源;
所述的美甲彩绘机控制方法,包括:
步骤S1、接收侧摄像头4所拍摄的检测图像6,并基于该检测图像6执行甲片检测步骤,包括:
步骤S11、基于检测图像6,建立平面直角坐标系OXY,其中,该平面直角坐标系OXY的X轴沿检测图像6的宽度方向延伸,Y轴沿检测图像6的高度方向延伸;
步骤S12、在检测图像6中,识别出手指3的手指上沿轮廓线,并读取该手指上沿轮廓线的最高点H在平面直角坐标系OXY中的坐标(X H,Y H),其中,在Y轴的方向向下的情况下,最高点H为手指上沿轮廓线中Y H最小的点,在Y轴的方向向上的情况下,最高点H为手指上沿轮廓线中Y H最大的点;
步骤S13、判断手指上沿轮廓线的最高点H是否在上检测线L1与下检测线L2之间,其中,上检测线L1为检测图像6中能够表示喷墨部件2的喷嘴21沿纵向移动时的轨迹线段,下检测线L2与上检测线L1相平行并位于上检测线L1的下方,且下检测线L2与上检测线L1之间的距离为预设的有效打印距离△D,该有效打印距离△D一般在2.5mm至2.8mm,但也可按实际需要设置;如果判断结果为是,则判定手指3的放置位置正确,如果判断结果为否,则判定手指3的放置位置错误。
在上述发明构思的基础上,本发明采用以下优选的结构:
作为本发明的优选实施方式:上检测线L1为美甲彩绘机经过校准步骤得到;
在侧摄像头4能够拍摄到喷墨部件2位于其底面上的喷嘴21的情况下,校 准步骤为:首先,通过驱动机构将喷墨部件2沿横向移动至中间位置;其次,在确保喷墨部件2的喷嘴21落在侧摄像头4的拍摄范围内的前提下,通过驱动机构将喷墨部件2沿纵向移动至前端,将喷嘴21的中心此时在检测图像6中的位置标记为前端点P1;然后,在确保喷墨部件2的喷嘴21落在侧摄像头4的拍摄范围内的前提下,通过驱动机构将喷墨部件2沿纵向移动至后端,将喷嘴21的中心此时在检测图像6中的位置标记为后端点P2;最后,将前端点P1与后端点P2的连线作为上检测线L1;
在侧摄像头4所拍摄的喷墨部件2的底面平行于X轴的情况下,校准步骤为:在检测图像6中,将喷墨部件2的下边沿所在的直线作为上检测线L1,在此情况下,该上检测线L1平行于X轴。
为了减少因检测图像6的图像变形而带来的检测误差,作为本发明的优选实施方式:侧摄像头4的拍摄中心线4a位于喷墨部件2与手指定位部件1之间。
作为本发明的优选实施方式:步骤S1中,按预设的采样频率提取侧摄像头4所拍摄的检测图像6,并且,对所提取的每一幅检测图像6,均执行一次甲片检测步骤。从而,在美甲彩机的整个美甲彩绘过程中,均能对用户的手指3是否放置在正确的位置进行检测。
作为本发明的优选实施方式:美甲彩绘机控制方法,还包括:
步骤S2、在美甲彩绘机的工作过程中,当判定手指3的放置位置正确时,控制美甲彩绘机正常工作,当判定手指3的放置位置错误时,控制美甲彩绘机停止工作,且还可发出报警提示,以提示用户调整手指3至正确的放置位置。
作为本发明的优选实施方式:美甲彩绘机控制方法,还包括:
步骤S3、检测检测图像6,判断是否存在反光区域,该反光区域的平均亮度和面积分别在预设的亮度阈值和面积阈值以上,如果判断判断结果为是,则判定手指3未放置在手指定位部件1上,如果判断结果为否,则判定手指3已放置在手指定位部件1上。
作为本发明的优选实施方式:美甲彩绘机控制方法,还包括:
步骤S4、当步骤S3判定手指3未放置在手指定位部件1上时,控制美甲彩绘机停止工作,且还可发出报警提示,以提示用户。
作为本发明的优选实施方式:美甲彩绘机控制方法按照以下两种方式之一实施:
方式一、美甲彩绘机设有通信模块,该通信模块能够将侧摄像头4所拍摄的检测图像6发送给外部控制设备,且外部控制设备能够通过通信模块发送用于控制美甲彩绘机的控制指令,美甲彩绘机控制方法在外部控制设备上实施;其中,外部控制设备可以是手机、平板电脑等移动设备,也可以是个人电脑、服务器等,通信模块可以采用无线通信方式也可以采用优先通信方式。
方式二、美甲彩绘机设有控制系统,美甲彩绘机控制方法在控制系统上实施。
上述步骤S12中,识别手指3的手指上沿轮廓线的方法,可以采用以下两种实施例之一:
实施例一
本实施例一中,上述步骤S12识别手指3的手指上沿轮廓线的方法为:
步骤S12-1、对检测图像6进行降噪处理和边缘增强处理,以得到灰度图像;
步骤S12-2、检测出灰度图像中的边缘线段;
其中,该检测方法可以是Canny、Sobel等现有的边缘检测算法。
步骤S12-3、对步骤S12-2检测出的边缘线段进行断裂补齐,即:对于相邻的两段边缘线段,如果该两段边缘线段的线段端部之间的距离在预设的最大断裂间距以内,则将该两个线段端部连接起来,以获得至少一条连续的边缘轮廓线段;
其中,由于美甲彩绘机对用户手指3的甲片进行美甲彩绘时,甲片上需要涂上指甲油可以PP或PG胶等,这就使得:在补光灯5的照亮下,甲片在侧摄像头4所拍摄的检测图像6中呈现出高亮的状态,因此,经过步骤S12-1至步骤S12-3的处理,得到的边缘轮廓线段中必然包含有用户手指3的甲片边缘轮廓线3a;而且,基于侧摄像头4的拍摄范围、美甲彩绘机的内部结构等不同影响因素,步骤S12-3得到的边缘轮廓线段中还可能包含有用户手指3的指腹轮廓线3b、用户手指3的指头上沿轮廓线3c和位于检测图像6背景中的干扰轮 廓线2a,该干扰轮廓线2a是补光灯5照射美甲彩绘机的内部结构如喷墨部件2所形成阴影产生的边缘轮廓。
步骤S12-4、将每一条边缘轮廓线段均截断为至少一条轮廓边沿线段,该轮廓边沿线段的两端为对应边缘轮廓线段上X轴坐标最大和最小的点;
举例来说:在步骤S12-3获得的边缘轮廓线段包括甲片边缘轮廓线3a、指腹轮廓线3b和干扰轮廓线2a的情况下,甲片边缘轮廓线3a被截断为甲片上沿线段3a1和甲片下沿线段3a2两条轮廓边沿线段,指腹轮廓线3b和干扰轮廓线2a分别为轮廓边沿线段;而在用户的手指3伸入美甲彩绘机内较多而使指头上沿轮廓线3c也被步骤S12-3获得的情况下,甲片边缘轮廓线3a和指头上沿轮廓线3c作为一条轮廓边沿线段。
步骤S12-5、通过以下条件对步骤S12-4得到的轮廓边沿线段进行筛选,以排除并非手指上沿轮廓线的轮廓边沿线段,并将剩余的轮廓边沿线段认定为手指上沿轮廓线;
条件一、如果某一轮廓边沿线段的长度小于预设的最小甲片上沿线段长度,则排除该轮廓边沿线段;也即:排除掉步骤S12-4得到的轮廓边沿线段中,长度过短而不可能包含甲片上沿线段3a1的线段。
条件二、如果某一轮廓边沿线段的上侧区域亮度超过下侧区域亮度的差值在预设亮度阈值以上,则排除该轮廓边沿线段,其中,上侧区域亮度和下侧区域亮度分别为位于对应轮廓边沿线段的上侧和下侧的预设区域范围内的平均亮度;也即:排除掉因补光灯5照明形成阴影所产生的干扰轮廓线2a。
举例来说:在步骤S12-3获得的边缘轮廓线段包括甲片边缘轮廓线3a、指腹轮廓线3b和干扰轮廓线2a的情况下,手指上沿轮廓线的最高点H(X H,Y H)位于甲片上沿线段3a1上;而在用户的手指3伸入美甲彩绘机内较多而使指头上沿轮廓线3c也被步骤S12-3获得的情况下,手指上沿轮廓线的最高点H(X H,Y H)位于指头上沿轮廓线3c上。
实施例二
本实施例二中,上述步骤S12识别手指3的手指上沿轮廓线的方法,在上述实施例一的基础上,还包括:
步骤S12-4中,先对各条边缘轮廓线段进行扫描,再将每一条被扫描到的边缘轮廓线段均截断为至少一条轮廓边沿线段;其中,扫描方式为:
预设用于启动扫描的X轴坐标,记为起始坐标X S,对每一条经过该起始坐标的边缘轮廓线段进行扫描,即:以边缘轮廓线段位于起始坐标X S上的点作为轮廓边沿线段的起始点,从该起始点开始,向手指3的指尖方向扫描该边缘轮廓线段起始坐标X S可根据实际应用需要设置,例如:根据起始坐标X S的不同设置,前述边缘轮廓线段上的点可以是图4中的点(X S,Y S1)和点(X S,Y S2),也可以是点(X S,Y S3);,且在扫描到该边缘轮廓线段上的分叉点时,沿多根分叉线段中位于最上方的分叉线段继续进行扫描(例如:扫描到图4中的分叉点F时,位于最上方的分叉线段即为甲片上沿线段3a1),放弃扫描位于下方的其它分叉线段,直至扫描至相应线段上X轴坐标最靠近手指3的指尖所在X轴坐标的点并以该点作为轮廓边沿线段的末端点,使得位于起始点与末端点并在上述扫描过程中被扫描到的点组成轮廓边沿线段。
步骤S12-5中,对步骤S12-4得到的轮廓边沿线段进行筛选的条件还包括:
条件三、如果某一轮廓边沿线段的下侧区域颜色在预设的多种肤色颜色范围值以内,则排除该轮廓边沿线段,其中,下侧区域颜色分别为位于对应轮廓边沿线段的下侧的预设区域范围内的平均颜色;也即:排除掉甲片下沿线段3a2。
本发明不局限于上述具体实施方式,根据上述内容,按照本领域的普通技术知识和惯用手段,在不脱离本发明上述基本技术思想前提下,本发明还可以做出其它多种形式的等效修改、替换或变更,均落在本发明的保护范围之中。例如:喷墨部件2可以是与喷嘴21一体的墨盒,也可以是与墨盒分体的喷墨专用部件。又如:补光灯5优选布置在侧摄像头4的侧方,但也可布置在其他合适的位置,以能够为手指3提供照明为准。

Claims (10)

  1. 一种基于手指位置识别的美甲彩绘机控制方法,该方法所适用的美甲彩绘机设有用于放置手指(3)的手指定位部件(1)、用于在所述手指(3)的甲片上进行喷绘的喷墨部件(2)和用于带动所述喷墨部件(2)分别沿纵向和横向移动的驱动机构,所述横向垂直于所述手指(3)放置在所述手指定位部件(1)上时的指向方向;
    其特征在于:所述的美甲彩绘机还设有侧摄像头(4)和补光灯(5);所述侧摄像头(4)的拍摄方向平行于所述横向,所述补光灯(5)为放置在所述手指定位部件(1)上的手指(3)提供照明;
    所述的美甲彩绘机控制方法,包括:
    步骤S1、接收所述侧摄像头(4)所拍摄的检测图像(6),并基于该检测图像(6)执行甲片检测步骤,包括:
    步骤S11、基于所述检测图像(6),建立平面直角坐标系OXY,其中,该平面直角坐标系OXY的X轴沿所述检测图像(6)的宽度方向延伸,Y轴沿所述检测图像(6)的高度方向延伸;
    步骤S12、在所述检测图像(6)中,识别出所述手指(3)的手指上沿轮廓线,并读取该手指上沿轮廓线的最高点H在所述平面直角坐标系OXY中的坐标(X H,Y H),其中,在所述Y轴的方向向下的情况下,所述最高点H为所述手指上沿轮廓线中Y H最小的点,在所述Y轴的方向向上的情况下,所述最高点H为所述手指上沿轮廓线中Y H最大的点;
    步骤S13、判断所述手指上沿轮廓线的最高点H是否在上检测线(L1)与下检测线(L2)之间,其中,所述上检测线(L1)为所述检测图像(6)中能够表示所述喷墨部件(2)的喷嘴(21)沿所述纵向移动时的轨迹线段,所述下检测线(L2)与所述上检测线(L1)相平行并位于所述上检测线(L1)的下方,且所述下检测线(L2)与上检测线(L1)之间的距离为预设的有效打印距离△D;如果判断结果为是,则判定所述手指(3)的放置位置正确,如果判断结果为否,则判定所述手指(3)的放置位置错误。
  2. 根据权利要求1所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述上检测线(L1)为所述美甲彩绘机经过校准步骤得到;
    在所述侧摄像头(4)能够拍摄到所述喷墨部件(2)位于其底面上的喷嘴(21)的情况下,所述校准步骤为:首先,通过所述驱动机构将所述喷墨部件(2)沿所述横向移动至中间位置;其次,在确保喷墨部件(2)的喷嘴(21)落在所述侧摄像头(4)的拍摄范围内的前提下,通过所述驱动机构将所述喷墨部件(2)沿所述纵向移动至前端,将所述喷嘴(21)的中心此时在所述检测图像(6)中的位置标记为前端点P1;然后,在确保喷墨部件(2)的喷嘴(21)落在所述侧摄像头(4)的拍摄范围内的前提下,通过所述驱动机构将所述喷墨部件(2)沿所述纵向移动至后端,将所述喷嘴(21)的中心此时在所述检测图像(6)中的位置标记为后端点P2;最后,将所述前端点P1与所述后端点P2的连线作为所述上检测线(L1);
    在所述侧摄像头(4)所拍摄的所述喷墨部件(2)的底面平行于所述X轴的情况下,所述校准步骤为:在所述检测图像(6)中,将所述喷墨部件(2)的下边沿所在的直线作为所述上检测线(L1)。
  3. 根据权利要求1所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述侧摄像头(4)的拍摄中心线(4a)位于所述喷墨部件(2)与所述手指定位部件(1)之间。
  4. 根据权利要求1至3任意一项所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述步骤S12中,识别所述手指(3)的手指上沿轮廓线的方法为:
    步骤S12-1、对所述检测图像(6)进行降噪处理和边缘增强处理,以得到灰度图像;
    步骤S12-2、检测出所述灰度图像中的边缘线段;
    步骤S12-3、对所述步骤S12-2检测出的边缘线段进行断裂补齐,即:对于相邻的两段所述边缘线段,如果该两段边缘线段的线段端部之间的距离在预设的最大断裂间距以内,则将该两个线段端部连接起来,以获得至少一条连续的边缘轮廓线段;
    步骤S12-4、将每一条所述边缘轮廓线段均截断为至少一条轮廓边沿线段,该轮廓边沿线段的两端为对应边缘轮廓线段上X轴坐标最大和最小的点;
    步骤S12-5、通过以下条件对步骤S12-4得到的轮廓边沿线段进行筛选, 以排除并非所述手指上沿轮廓线的轮廓边沿线段,并将剩余的轮廓边沿线段认定为所述手指上沿轮廓线;
    条件一、如果某一轮廓边沿线段的长度小于预设的最小甲片上沿线段长度,则排除该轮廓边沿线段;
    条件二、如果某一轮廓边沿线段的上侧区域亮度超过下侧区域亮度的差值在预设亮度阈值以上,则排除该轮廓边沿线段,其中,所述上侧区域亮度和下侧区域亮度分别为位于对应轮廓边沿线段的上侧和下侧的预设区域范围内的平均亮度。
  5. 根据权利要求4所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述步骤S12-4中,先对各条所述边缘轮廓线段进行扫描,再将每一条被扫描到的边缘轮廓线段均截断为至少一条轮廓边沿线段;其中,所述扫描方式为:
    预设用于启动扫描的X轴坐标,记为起始坐标X S,对每一条经过该起始坐标的所述边缘轮廓线段进行扫描,即:以所述边缘轮廓线段位于所述起始坐标X S上的点作为所述轮廓边沿线段的起始点,从该起始点开始,向所述手指(3)的指尖方向扫描该边缘轮廓线段,且在扫描到该边缘轮廓线段上的分叉点时,沿多根分叉线段中位于最上方的分叉线段继续进行扫描,直至扫描至相应线段上X轴坐标最靠近所述手指(3)的指尖所在X轴坐标的点并以该点作为所述轮廓边沿线段的末端点,使得位于所述起始点与末端点并在上述扫描过程中被扫描到的点组成所述轮廓边沿线段。
    所述步骤S12-5中,对步骤S12-4得到的轮廓边沿线段进行筛选的条件还包括:
    条件三、如果某一轮廓边沿线段的下侧区域颜色在预设的多种肤色颜色范围值以内,则排除该轮廓边沿线段,其中,所述下侧区域颜色分别为位于对应轮廓边沿线段的下侧的预设区域范围内的平均颜色。
  6. 根据权利要求1至3任意一项所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述的步骤S1中,按预设的采样频率提取所述侧摄像头(4)所拍摄的检测图像(6),并且,对所提取的每一幅所述检测图像(6),均执行一次所述甲片检测步骤。
  7. 根据权利要求1至3任意一项所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述的美甲彩绘机控制方法,还包括:
    步骤S2、在所述美甲彩绘机的工作过程中,当判定所述手指(3)的放置位置正确时,控制所述美甲彩绘机正常工作,当判定所述手指(3)的放置位置错误时,控制所述美甲彩绘机停止工作。
  8. 根据权利要求1至3任意一项所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述的美甲彩绘机控制方法,还包括:
    步骤S3、检测所述检测图像(6),判断是否存在反光区域,该反光区域的平均亮度和面积分别在预设的亮度阈值和面积阈值以上,如果判断判断结果为是,则判定所述手指(3)未放置在手指定位部件(1)上,如果判断结果为否,则判定所述手指(3)已放置在手指定位部件(1)上。
  9. 根据权利要求8所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述的美甲彩绘机控制方法,还包括:
    步骤S4、当所述步骤S3判定所述手指(3)未放置在手指定位部件(1)上时,控制所述美甲彩绘机停止工作。
  10. 根据权利要求1至3任意一项所述基于手指位置识别的美甲彩绘机控制方法,其特征在于:所述的美甲彩绘机控制方法按照以下两种方式之一实施:
    方式一、所述的美甲彩绘机设有通信模块,该通信模块能够将所述侧摄像头(4)所拍摄的检测图像(6)发送给外部控制设备,且所述外部控制设备能够通过所述通信模块发送用于控制所述美甲彩绘机的控制指令,所述美甲彩绘机控制方法在所述外部控制设备上实施;
    方式二、所述的美甲彩绘机设有控制系统,所述美甲彩绘机控制方法在所述控制系统上实施。
PCT/CN2019/091321 2018-07-17 2019-06-14 一种基于手指位置识别的美甲彩绘机控制方法 WO2020015489A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810786100.X 2018-07-17
CN201810786100.XA CN109085795B (zh) 2018-07-17 2018-07-17 一种基于手指位置识别的美甲彩绘机控制方法

Publications (1)

Publication Number Publication Date
WO2020015489A1 true WO2020015489A1 (zh) 2020-01-23

Family

ID=64837686

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091321 WO2020015489A1 (zh) 2018-07-17 2019-06-14 一种基于手指位置识别的美甲彩绘机控制方法

Country Status (2)

Country Link
CN (1) CN109085795B (zh)
WO (1) WO2020015489A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109085795B (zh) * 2018-07-17 2020-01-21 广州天河高新技术产业开发区太极电子有限公司 一种基于手指位置识别的美甲彩绘机控制方法
CN109766063A (zh) * 2019-01-21 2019-05-17 深圳市邻友通科技发展有限公司 一种美甲机打印校准方法、装置、美甲机及存储介质
JP6973437B2 (ja) * 2019-03-25 2021-11-24 カシオ計算機株式会社 印刷装置、印刷方法及びプログラム

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101326063A (zh) * 2005-12-06 2008-12-17 罗春晖 多用途喷墨打印机
CN105212499A (zh) * 2014-06-30 2016-01-06 卡西欧计算机株式会社 描绘装置以及描绘装置的描绘控制方法
CN105433577A (zh) * 2014-09-22 2016-03-30 卡西欧计算机株式会社 指甲信息检测装置、描画装置以及指甲信息检测方法
CN105455389A (zh) * 2014-09-26 2016-04-06 卡西欧计算机株式会社 美甲设计显示控制装置、美甲打印装置及美甲设计显示控制方法
JP2017018456A (ja) * 2015-07-14 2017-01-26 船井電機株式会社 塗布装置、及び塗布方法
CN109085795A (zh) * 2018-07-17 2018-12-25 广州天河高新技术产业开发区太极电子有限公司 一种基于手指位置识别的美甲彩绘机控制方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5375894B2 (ja) * 2011-08-10 2013-12-25 カシオ計算機株式会社 ネイルプリント装置及び印刷制御方法
JP5831441B2 (ja) * 2012-12-17 2015-12-09 カシオ計算機株式会社 ネイルプリント装置及びネイルプリント装置の印刷方法
JP6167728B2 (ja) * 2013-07-26 2017-07-26 カシオ計算機株式会社 ネイルプリント装置及びネイルプリント装置の制御方法
JP6561462B2 (ja) * 2014-12-19 2019-08-21 カシオ計算機株式会社 ネイルプリント装置及びネイルプリント装置の描画方法
CN105892767A (zh) * 2014-12-24 2016-08-24 南京优触电子科技有限公司 一种基于超声波的交互设施实现方法
JP6699176B2 (ja) * 2016-01-06 2020-05-27 カシオ計算機株式会社 描画装置、その描画制御方法及び描画制御プログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101326063A (zh) * 2005-12-06 2008-12-17 罗春晖 多用途喷墨打印机
CN105212499A (zh) * 2014-06-30 2016-01-06 卡西欧计算机株式会社 描绘装置以及描绘装置的描绘控制方法
CN105433577A (zh) * 2014-09-22 2016-03-30 卡西欧计算机株式会社 指甲信息检测装置、描画装置以及指甲信息检测方法
CN105455389A (zh) * 2014-09-26 2016-04-06 卡西欧计算机株式会社 美甲设计显示控制装置、美甲打印装置及美甲设计显示控制方法
JP2017018456A (ja) * 2015-07-14 2017-01-26 船井電機株式会社 塗布装置、及び塗布方法
CN109085795A (zh) * 2018-07-17 2018-12-25 广州天河高新技术产业开发区太极电子有限公司 一种基于手指位置识别的美甲彩绘机控制方法

Also Published As

Publication number Publication date
CN109085795B (zh) 2020-01-21
CN109085795A (zh) 2018-12-25

Similar Documents

Publication Publication Date Title
WO2020015489A1 (zh) 一种基于手指位置识别的美甲彩绘机控制方法
US10420267B2 (en) Electronic component mounting apparatus
CN109123989B (zh) 描绘系统、终端装置及记录介质
EP1646502A1 (en) Method and device for accurately positioning a pattern on a substrate
EP3154327A1 (en) Component mounting device
WO2014106892A1 (ja) 部品実装機及び部品実装方法
JP5158686B2 (ja) 吸着部品表裏判定装置及び吸着部品表裏判定方法
KR101122356B1 (ko) 기판 위치 결정 장치 및 기판 위치 결정 방법
EP3328180B1 (en) Component-mounting machine
JP4792331B2 (ja) 電子部品装着装置
CN111728344B (zh) 印刷装置以及印刷方法
JP3074382B1 (ja) トラッキング搬送によるマーキング装置
JP4309221B2 (ja) 電子部品実装装置
JP6678178B2 (ja) 作業機
JPH07263897A (ja) 部品認識装置及び部品実装装置
JPH06134967A (ja) ペーストカバー付きスクリーン印刷装置
CN110301172B (zh) 元件安装系统及元件安装方法
WO2021166230A1 (ja) 画像処理装置および実装装置、画像処理方法
JP4437607B2 (ja) 表面実装機
EP3267146B1 (en) Recognition device and recognition method
EP4250892A1 (en) Image processing device, mounting device, mounting system, image processing method, and mounting method
JP7130779B2 (ja) 部品実装機のバックアップピン状態確認システム
JP3807154B2 (ja) 電子部品の実装方法および位置認識用の標体
JP2022159725A (ja) ネイル記録装置及びネイル記録装置の制御方法
CN115771339A (zh) 电子设备、判定方法以及记录介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19837602

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19837602

Country of ref document: EP

Kind code of ref document: A1