Printing device, printing control method and program
The printing device uses image capture to monitor print head movement, addressing real-time detection of abnormalities and ensuring safe, efficient printing by comparing actual and derived positional information, thereby reducing motor failure risks.
Patent Information
- Application Number
- JP2020197076
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-11-27
AI Technical Summary
Conventional printing devices using stepping motors face challenges in detecting abnormalities in real-time, leading to potential motor failures, increased printing time, and safety risks due to discrepancies in motor movement and actual movement of the printing means, such as a print head.
The printing device incorporates a photographing means to capture images of the print head and its movable area, enabling real-time detection of positional information through comparison with derived positional information based on motor movement, allowing for immediate response to abnormalities and foreign object interference.
This approach allows for real-time detection and response to abnormalities, reducing the risk of motor failure and ensuring safe, efficient printing operations by quickly identifying and addressing issues with the print head movement.
Smart Images

Figure 0007552298000003 
Figure 0007552298000008 
Figure 0007552298000009
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing apparatus, a print control method, and a program. [Background technology]
[0002] 2. Description of the Related Art Printing devices are known that use various motors to move printing means such as a print head and perform printing on a print target. For example, Patent Document 1 discloses a configuration in which a stepping motor is used as a drive source for moving a printing unit. A stepping motor rotates in synchronization with input pulses during normal operation. Therefore, by determining the number of input pulses required for the motor to rotate once and the amount of movement (movement distance) obtained when the motor rotates once, it is possible to calculate the total number of pulses required to move a specified distance. Then, based on the "movement information" such as how many input pulses have been input to the motor, it becomes possible to perform accurate movement control of the printing means.
[0003] However, when using a stepping motor, the actual movement amount of the printing means (print head) cannot be detected in real time, as is the case with control using an encoder. Therefore, even if the motor is not rotating correctly by an amount corresponding to the number of input pulses, for example, it is not possible to detect an abnormality in the motor rotation until a position sensor that detects the printing means cannot detect the printing means for a certain period of time.
[0004] There are various possible causes for abnormal rotation of a stepping motor. For example, when there is an overload or a sudden change in speed, the input pulse and the motor rotation can lose synchronization (this condition is called "loss of synchronization"). If the step-out is left unnoticed for a certain period of time, the stepping motor will produce abnormal noise and heat, resulting in a decrease in the reliability of the movement mechanism driven by the motor. Therefore, when using a stepping motor, in addition to maintaining a specified torque value during normal operation, it is common to perform a slow-up sequence (slow-up control) at startup to gradually increase the motor rotation speed from a low frequency in stages to avoid loss of synchronization. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2018-153940 A Summary of the Invention [Problem to be solved by the invention]
[0006] When the motor is started gradually in the slow-up sequence as described above, the motor torque increases, so that the risk of loss of synchronization is reduced. However, it takes longer for the printing means to move than when the printing means is accelerated to the steady speed in one go, and this results in a longer printing time. On the other hand, if a sequence is used to quickly start the motor, the motor torque decreases, increasing the risk of loss of synchronization due to mechanical torque variations or fluctuations in the shaft. If loss of synchronization actually occurs, it will be impossible to perform rapid printing.
[0007] In addition, for example, if there is a foreign object such as a finger on the path along which the printing means (print head) moves and this hinders the movement of the printing means, a discrepancy may arise between the amount of movement of the printing means derived from the movement information in the motor control and the actual amount of movement. Even in such a case, if the actual amount of movement of the printing means cannot be detected in real time and the abnormality is left unattended, there is a risk that the user may injure their fingers, the safety of the device may be compromised, or various parts of the device may be damaged.
[0008] The present invention has been made in consideration of the above-mentioned circumstances, and aims to provide a printing device, a printing control method, and a program that can detect abnormalities during movement of the printing means in real time and respond appropriately. [Means for solving the problem]
[0009] In order to solve the above problems, one aspect of the printing device of the present invention is to A printing means for printing on a print target; a moving means for moving the printing means; an imaging means for imaging the printing means and an area within which the printing means can move; a position information detection means for detecting first position information of the printing means based on an image captured by the photographing means; a position information deriving means for deriving second position information of the printing means based on movement information of the printing means by the movement means; a movement control means for controlling the movement of the printing means by the movement means based on a result of a comparison between the first position information and the second position information; The present invention is characterized by the following: Effect of the Invention
[0010] According to the present invention, an effect is achieved in that an abnormality occurring during the movement of the printing means can be detected in real time and an appropriate response can be taken. [Brief description of the drawings]
[0011] [Figure 1] FIG. 2 is a perspective view showing a configuration of a main part of a printing device according to the embodiment. [Diagram 2] 2 is a block diagram showing the control configuration of a printing device and a terminal device linked thereto in the present embodiment; FIG. [Diagram 3] 1 is a schematic diagram showing the internal configuration of a printing device according to an embodiment of the present invention as viewed from above the device, with the print head positioned at the home position. [Figure 4]2 is a schematic diagram showing the internal configuration of the printing device according to the embodiment, as viewed from the rear of the device. FIG. [Diagram 5] 4 is a flowchart illustrating a print control process according to the present embodiment. [Figure 6] 1 is a schematic diagram showing the internal configuration of a printing device according to this embodiment as viewed from above the device, illustrating a state in which the print head has been moved to the origin position in the Y direction. [Figure 7] 1 is a schematic diagram showing the internal configuration of a printing device according to an embodiment of the present invention as viewed from above the device, illustrating a state in which a print head has been moved to the origin position in the X direction. [Figure 8] 3A and 3B are explanatory diagrams showing an image of a print area and a print start position, and also showing a schematic diagram of the movement of a print head during a printing operation. [Figure 9] 1 is a schematic diagram showing the internal configuration of a printing device according to an embodiment of the present invention as viewed from above the device, illustrating a state in which a print head has moved to a printing start position. [Figure 10] 6 is a flowchart showing the printing operation in FIG. 5. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] An embodiment of a printing apparatus, a printing control method, and a program according to the present invention will be described with reference to FIGS. In addition, the embodiments described below are subject to various limitations that are technically preferable for implementing the present invention, but the scope of the present invention is not limited to the following embodiments and illustrated examples. In the following embodiment, a printing device that prints on fingernails as a printing target will be described as an example, but the printing target of the printing device in the present invention is not limited to fingernails, and may be, for example, toenails, etc. Furthermore, nail-like objects other than human nails, such as nail tips and the surfaces of various accessories, may be printed on.
[0013] FIG. 1 is a perspective view showing the external configuration of a main part of a printing device according to this embodiment. In the following embodiments, up / down, left / right, and front / rear refer to the directions shown in Fig. 1. Also, the X direction and the Y direction refer to the directions shown in Fig. 1.
[0014] As shown in FIG. 1, the printing device 1 has a housing 2 formed in a substantially box shape. The housing 2 has an opening 21 formed over almost the entire surface in the left-right direction (the lateral direction of the printing device 1, the left-right direction in FIG. 1, the X direction) in the lower part on the front side (the front side of the printing device 1, the front side in FIG. 1). Also, a notch 22 is formed in the approximate center in the left-right direction of the housing 2, continuing to the upper side of the opening 21. The notch 22 functions as an entrance and exit when the print head 41, which will be described later, is attached to and detached from the device.
[0015] Additionally, an operation unit 12 of the printing device 1 is provided on the top surface (top panel) of the housing 2. The operation unit 12 is, for example, an operation button (power switch button) that turns the power of the printing device 1 ON / OFF. When the operation unit 12 is operated, an operation signal is output to the control device 30, and the control device 30 performs control according to the operation signal to operate each part of the printing device 1. For example, if the operation unit 12 is a power switch button, the power of the printing device 1 is turned ON / OFF in response to button operation. Instead of the operation unit 12, each unit of the printing device 1 may be operated in accordance with an operation signal input from an operation unit 71 of a terminal device 7, which will be described later. The shape and arrangement of each part of the housing 2 are not limited to the illustrated example and can be set as appropriate. For example, the operation unit 12 may be provided on the side or back of the housing 2 instead of on the top surface of the housing 2. In addition, the housing 2 may be provided with various other operation buttons as the operation unit 12, and may be provided with various display units, indicators, and the like.
[0016] Inside the housing 2, a device main body 10 is housed. The device main body 10 includes a base 11, and a finger holder 6, a printing unit 40, and the like, which are attached to the base 11. Inside the housing 2, an imaging section 50 is provided.
[0017] The finger holding section 6 is located approximately in the center in the left-right direction (X direction) on the front side of the device on the base 11, and is a finger holding means that holds a finger U with a nail T, which is the printing target in this embodiment, within an area suitable for printing. The finger holding portion 6 has an opening 61 on the front side of the device. Inside the finger holding portion 6, a finger fixing member 62 is provided for pushing up and supporting a finger U inserted from the opening 61 from below. A window 63 is formed on the upper surface of the finger holding part 6. When a finger U having a nail T, which is the printing target in this embodiment, is inserted from the opening 61 to a predetermined position in the finger holding part 6, the nail T of the finger U is exposed from the window 63.
[0018] The printing unit 40 includes a print head 41, which is a printing means for printing on the nail T that is the printing target, and a head moving mechanism 49 (see FIG. 2). FIG. 3 is a schematic diagram showing the internal configuration of the printing device in this embodiment as viewed from above the device, and FIG. 4 is a schematic diagram showing the internal configuration of the printing device in this embodiment as viewed from the rear of the device. 3, the movable area Ar1 of the print head 41 (printing means), which will be described later, is indicated by a thick dashed line. The area indicated by a dotted line on the far side (rear side) of the base 11 is a standby area (home position) Ar2 of the print head 41 (printing means), and the area indicated by a dotted line almost in the center (center in the X direction) on the near side (front side) of the base 11 is a printable area Ar3 where the print head 41 (printing means) performs a printing operation.
[0019] The print head 41 of this embodiment is an inkjet head that uses an inkjet system in which the surface facing the nail surface is an ink ejection surface (neither of which is shown) equipped with multiple nozzle openings that eject ink, and prints by atomizing the ink and spraying the ink from the ink ejection surface directly onto the nail surface, which is the surface to be printed on the print target (nail T). The configuration of the print head 41 is not particularly limited, but for example, it is a cartridge-integrated head in which an ejection mechanism such as the ink ejection surface is integrated with an ink cartridge (neither of which is shown) that stores ink. The print head 41 is capable of ejecting ink of, for example, cyan (C; CYAN), magenta (M; MAGENTA), and yellow (Y; YELLOW). However, the types of ink provided in the print head 41 are not limited to these.
[0020] The print head 41 is provided with an identification part M at a position where it can be photographed by the photographing device 51, which is a photographing means. The identification part M is, for example, a mark printed in a color different from the color of the print head 41 (for example, a color opposite to the color of the print head 41). Note that the method of providing the identification part M is not limited to printing, and it may be a sticker or the like attached, or may be formed three-dimensionally. In this embodiment, as shown in FIG. 3 and other figures, a round shape is printed as the identification portion M on the upper surface of the print head 41.
[0021] The head moving mechanism 49 is a moving means for moving the print head 41 . The printing device 1 of this embodiment performs ink ejection operation and printing while moving the print head 41 in the X direction (X direction in FIG. 1, left and right direction of the device) and the Y direction (Y direction in FIG. 1, front and back direction of the device). For this reason, as shown in Figures 3 and 4, the head movement mechanism 49 has a two-axis configuration having an X-direction movement mechanism 45 for moving the print head 41 in the left-right direction of the device (X direction), and a Y-direction movement mechanism 47 for moving the print head 41 in the front-rear direction of the device (Y direction).
[0022] The print head 41 is mounted on a carriage 451 of the X-direction movement mechanism 45 while being supported by a holder 42. In this embodiment, the holder 42 is a moving body that moves integrally with the print head 41, which is a printing means. The carriage 451 extends in the left-right direction (X direction) of the device, and both sides of the extension direction of the carriage 451 (in this embodiment, the left-right direction of the device, the X direction) are supported by a pair of guide shafts 475 of a Y-direction moving mechanism 47, which will be described later, and are engaged with a drive belt (not shown). As a result, the carriage 451 moves along the guide shaft 475 in the extension direction of the guide shaft 475 (in this embodiment, the front-rear direction of the device, the Y direction) as the drive belt is driven.
[0023] Pulleys (not shown) are provided inside carriage 451 at both ends in the extension direction. A drive belt (not shown) is wound around the pair of pulleys. A guide shaft 455 is provided inside carriage 451 and extends in the left-right direction (X direction) of the device in parallel with the drive belt. An X-direction origin sensor (hereinafter referred to as "X-direction origin sensor") 411 is provided on one end side of the guide shaft 455 (in this embodiment, on the left side in the X-direction as shown in FIG. 3 and the like).
[0024] One of the pulleys is a drive pulley that can move forward and backward, and the X-direction movement mechanism 45 is equipped with an X-direction drive motor 46 that operates the drive pulley. As the X-direction drive motor 46, for example, a DC motor (brushless DC motor) or an AC motor is used. The print head 41 is engaged with a drive belt, and is movable in the left-right direction (X direction) of the device by the operation of the drive belt while being guided by a guide shaft 455.
[0025] Furthermore, the X-direction moving mechanism 45 has an encoder (encoder sensor (X-direction position sensor) 413 and slit plate 414) as a means for acquiring X-direction movement information (position information) of the print head 41 (printing means) by the head moving mechanism 49, which is a moving means. By applying feedback control to the X-direction drive motor 46, which is a DC motor, AC motor, or the like, based on the information obtained by the encoder sensor 413, the position, movement speed, etc. in the X-direction of the print head 41 can be accurately controlled.
[0026] The encoder sensor 413 is, for example, a sensor configured with a photointerrupter or the like that has opposing light emitting and receiving parts (neither shown) and determines the position of an object by detecting with the light receiving part that the object blocks the light from the light emitting part. The encoder sensor 413 is attached to the back (rear) side of the holder 42 that holds the print head 41, for example, as shown in Figure 4.
[0027] Furthermore, a slit plate 414 is provided at a position corresponding to the encoder sensor 413 on the carriage 451 on which the print head 41 is mounted (see FIG. 4). The encoder sensor 413 of this embodiment is for acquiring movement information (position information) of the print head 41 in the X direction, so the slit plate 414 is disposed so as to extend along the guide shaft 455 in the X direction.
[0028] The slit plate 414 has slits formed by, for example, printing on a transparent material, in which transmissive portions that transmit light and non-transmissive portions that do not transmit light are alternately formed at approximately equal intervals along the longitudinal direction of the slit plate 414. The encoder sensor 413 reads the slits in the slit plate 414 and outputs the detection result to a control unit 31 (described later) functioning as a position confirmation unit 316. The position confirmation unit 316 detects the amount of movement (movement distance) of the print head 41, etc. in the X direction based on the detection result by the encoder sensor 413. That is, the encoder sensor 413 counts the number of times the print head 41 passes through the slits (transmissive and non-transmissive portions) formed in the slit plate 414. From this count result, the position confirmation unit 316 calculates the amount of movement of the print head 41, and further determines the real-time position of the print head 41 based on the movement distance from an origin position or the like in the X direction (a position serving as a reference in the X direction).
[0029] In this embodiment, the X-direction movement mechanism 45 is configured by a carriage 451, a drive belt wound around a pair of pulleys provided within the carriage 451, an X-direction drive motor 46, a guide shaft 455 provided in parallel with the drive belt, and an encoder (encoder sensor 413 and slit plate 414).
[0030] The Y-direction movement mechanism 47 comprises a pair of pulleys arranged on the front and rear sides (front and rear in the Y direction) of the base 11, a drive belt (neither shown) wrapped around the pulleys, and a guide shaft 475 arranged parallel to the drive belt along the Y direction, on the left and right sides of the device. One of the pulleys is a drive pulley that can move forward and backward, and the Y-direction moving mechanism 47 includes a Y-direction drive motor 48 that operates the drive pulley. In this embodiment, a stepping motor is used as the Y-direction drive motor 48. A Y-direction origin sensor (hereinafter referred to as "Y-direction origin sensor") 412 is provided on one end side of the guide shaft 475 (in this embodiment, the front side in the Y direction as shown in FIG. 3 and the like).
[0031] In this embodiment, the guide shaft 475 extends in the movement direction of the carriage 451 carrying the print head 41 (Y direction in this embodiment) and guides the carriage 451. The carriage 451 is engaged with a drive belt, and is movable in the front-rear direction (Y direction) of the apparatus by the operation of the drive belt while being guided by a guide shaft 475.
[0032] The operations of the X-direction movement motor 46, the Y-direction movement motor 48 of the head movement mechanism 49, and the print head 41 (the ejection mechanism of the print head 41) are controlled by a print control unit 315 of the control device 30 (see FIG. 2). Furthermore, information acquired by the X-direction origin sensor 411, the Y-direction origin sensor 412, and the encoder sensor 413 is sent to the print control unit 315 (position confirmation unit 316, see FIG. 2).
[0033] As shown in FIG. 2, the photographing section 50 includes a photographing device 51 and a lighting device 52. The photographing device 51 is, for example, a small camera equipped with a solid-state photographing element having about 2 million pixels or more, a lens, etc. The lighting device 52 is, for example, an illumination lamp such as a white LED.
[0034] The photographing section 50 (photographing device 51 of the photographing section 50) in this embodiment is a photographing means capable of continuously photographing the print head 41, which is the printing means, and the movable area Ar1 (see FIG. 3, etc.) of the print head 41. The photographing device 51 is equipped with a lens (not shown) with a relatively wide angle of view (shown by a dotted line in FIG. 4, for example) that can cover the entire movable area Ar1 shown by a thick dashed line in FIG. 3, etc. The photographing unit 50 also illuminates the nail T of the finger U held by the finger holding unit 6 with the lighting device 52. Then, the photographing device 51 photographs the finger U to obtain a nail image (an image of the finger including a nail image) which is an image of the nail T of the finger U.
[0035] The photographing section 50 is connected to a photographing control section 312 (see FIG. 2) of the control device 30, which will be described later, and is controlled by the photographing control section 312. The image data of the image captured by the imaging unit 50 may be stored in the storage unit 32 described later. The nail image acquired by the imaging unit 50 may be sent to the terminal device 7 via the communication unit 13.
[0036] The photographing unit 50 is only required to be provided at a position where it can photograph the finger U and its nail T held in the finger holding unit 6, and the specific arrangement is not particularly limited. In this embodiment, the photographing device 51 and the lighting device 52 are fixedly arranged on the inside of the top surface of the housing 2 at positions where they can face the nail T (surface of the nail T) of the finger U held in the finger holding unit 6. The photographing unit 50 may be configured to be movable in the X and Y directions by a movement mechanism such as a head movement mechanism 49 that moves the print head 41.
[0037] FIG. 2 is a block diagram showing a control configuration of this embodiment. The control device 30 installed in the printing device 1 is a computer having a control unit 31 (see FIG. 2) composed of a processor such as a CPU (Central Processing Unit) not shown, and a memory unit 32 (see FIG. 2) composed of a ROM (Read Only Memory), a RAM (Random Access Memory), etc. (neither shown). The control device 30 is mounted on a board or the like (not shown) that is arranged on the inside (lower surface side) of the upper surface (top plate) of the housing 2, for example.
[0038] The storage unit 32 has a program storage area 321 in which various programs for operating the printing device 1 are stored. Specifically, the memory unit 32 stores various programs such as a printing program for performing printing processing, and the control unit 31 expands these programs, for example, into a working area of RAM, and the programs are executed in the control unit 31, thereby providing overall control of each part of the printing device 1. The storage unit 32 also has a nail information storage area 322. In the nail information storage area 322, various types of information related to the nail T detected by a nail information detection unit 313 described later is stored. The storage unit 32 may store data such as nail images acquired by the photographing unit 50, and may also store various other data.
[0039] From a functional perspective, the control unit 31 includes a communication control unit 311, an imaging control unit 312, a nail information detection unit 313, a print data generation unit 314, a print control unit 315, etc. The functions of the communication control unit 311, the imaging control unit 312, the nail information detection unit 313, the print data generation unit 314, the print control unit 315, etc. are realized by cooperation between the control unit 31 and a program stored in a program storage area 321 of the storage unit 32.
[0040] The communication control unit 311 controls the operation of the communication unit 13 of the printing device 1 . The communication unit 13 is equipped with a wireless communication module etc. capable of communicating with the communication unit 73 of the terminal device 7, and the communication control unit 311 controls the operation of the communication unit 13 when transmitting and receiving various data etc. between the printing device 1 and the terminal device 7. The printing device 1 of this embodiment is configured to print nail designs (hereinafter, simply referred to as "designs") in cooperation with a terminal device 7 described later. For example, data of a design to be printed on a nail T is stored on the terminal device 7 side, and the communication control unit 311 appropriately controls communication by the communication unit 13 and acquires the design data from the terminal device 7 side via the communication unit 13.
[0041] The photographing control unit 312 controls the photographing device 51 and the lighting device 52 of the photographing unit 50 to perform photographing and obtain an image. In this embodiment, the photography control unit 312 causes the photography unit 50 (photographing device 51 of the photography unit 50) to photograph the print head 41 and the inside of the movable area Ar1 of the print head 41 (see FIG. 3, etc.). Particularly in this embodiment, photography of the print head 41 and the inside of the movable area Ar1 of the print head 41 is continuously performed. The photographing by the photographing device 51 may be either still image photographing or video photographing. In other words, the above-mentioned "continuous" photographing may be intermittent still image photographing or continuous video photographing. Furthermore, the photographing control unit 312 causes the photographing device 51 to photograph the finger U placed on the finger holding unit 6, including an image of the nail T of the finger U, and obtains an image (nail image) of the finger U including the image of the nail T. The photographing in this case may be either a still image or a video. When capturing a moving image, the image capture control unit 312 extracts appropriate frames from the captured moving image and acquires them as still images.
[0042] The captured images of the print head 41 and the area within which the print head 41 can move, and the image of the nail T (nail image) captured by the capturing unit 50 are sent to and captured by the capturing control unit 312. The capturing control unit 312 may store data of such images in the storage unit 32.
[0043] , The nail information detection unit 313 detects nail information about the nail T of the finger U based on the image of the nail T (nail image) acquired by the photography control unit 312. The nail information acquired by the nail information detection unit 313 is, for example, a nail contour TL (see FIG. 8) that defines the area of the nail T by separating the nail T from other parts (such as the skin part of the finger U). It should be noted that the nail information detected by the nail information detection unit 313 is not limited to the nail contour TL. The nail information detected by the nail information detection unit 313 may include, for example, the inclination angle of the surface of the nail T with respect to the XY plane (the inclination angle of the nail T, the nail curvature), etc. In addition, when the height of the nail T (the vertical position of the nail T) can be acquired from the image captured by the imaging device 51, the height of the nail T may also be included in the nail information.
[0044] The print data generating unit 314 functions as a print area setting means for setting a print area to be printed based on the nail contour TL etc. detected by the nail information detecting unit 313. That is, the print data generating unit 314 generates print data by fitting a desired design to the nail contour TL detected by the nail information detecting unit 313 and stored in the nail information storage area 322. Specifically, the print data generation unit 314 cuts out image data of the nail design selected by the user, appropriately enlarges or reduces it, adjusts the position, etc., and fits it within the nail contour TL detected from the image of the nail T. When the nail information detection unit 313 acquires the curvature etc. of the nail T, the print data generation unit 314 may perform appropriate curve correction on the print data based on the curvature etc. of the nail T. When the curve correction is performed, print data that is more suited to the shape of the nail T can be generated.
[0045] The print control unit 315 controls the printing unit 40 to perform printing on the nail T according to the print data generated by the print data generating unit 314. Specifically, the print control unit 315 outputs a control signal to the print unit 40 based on the print data, and controls the X-direction movement motor 46, the Y-direction movement motor 48, the print head 41, etc. of the print unit 40 so as to print on the nail T in accordance with the print data. Furthermore, the print control unit 315 of this embodiment includes a position confirmation unit 316 that functions as a position information detection unit and a position information derivation unit. The print control unit 315 functions as a movement control unit that controls the movement of the print head 41 by the head movement mechanism 49 based on a comparison result between the "first position information" obtained by the position confirmation unit 316 and the "second position information" obtained by the position confirmation unit 316 as a position information derivation unit.
[0046] The position confirmation unit 316 functions as a position information detection unit that detects "first position information" of the print head 41, which is a printing unit, based on an image acquired by the imaging unit 50, which is an imaging unit. The position confirmation unit 316 of this embodiment detects the position of the print head 41 in the image as the "first position information." In this embodiment, as described above, the print head 41 is provided with an identification unit M. The position confirmation unit 316 obtains “first position information” of the print head 41 by detecting the identification unit M from the captured image of the print head 41 and the area within the movable area Ar1 of the print head 41 through various image processing.
[0047] The position confirmation unit 316 also functions as a position information derivation means that derives (e.g., acquires by calculation, etc.) "second position information" of the print head 41 based on movement information of the print head 41 by the head movement mechanism 49, which is a movement means. The position confirmation unit 316 regards the position of the print head 41 derived based on movement information (information of input pulses input to the Y-direction movement motor 48) from a reference position (e.g., the origin position in the XY directions (see FIG. 7) or the print start position (see FIG. 8)) as "second position information." In other words, it derives virtual position information of the print head 41 when the motor is normally driven by the number of input pulses.
[0048] The position of the print head 41 in the X direction can be acquired in real time based on the detection result by the X direction origin sensor 411 and movement information from the encoder sensor 413. On the other hand, the only sensor that detects the position of the print head 41 in the Y direction is the Y direction origin sensor 412, and the real-time position of the print head 41 cannot be determined from the output information from the sensor.
[0049] That is, when the Y-direction movement motor 48, which is a stepping motor, is operating normally, it rotates in synchronization with the input pulses. Therefore, by determining the number of input pulses required for the motor to rotate once and the amount of movement (movement distance) obtained when the motor rotates once, it is possible to determine the total number of pulses required to move a specified distance. Then, based on "movement information" such as how many input pulses have been input to the motor, it is possible to determine how far the print head 41 has moved and where it is currently located. However, if for some reason the input pulse and the motor rotation lose synchronization, that is, if a so-called "out-of-step" state occurs, the actual amount of movement of the print head 41 cannot be detected in real time.
[0050] If a step-out is left unnoticed for a certain period of time, the stepping motor will produce abnormal noise, heat, etc. For this reason, if a step-out occurs, it is desirable to quickly stop the motor and restart it. Loss of synchronization often occurs, for example, when there is an overload or a sudden change in speed. Therefore, when restarting the motor after loss of synchronization, it is preferable to perform a slow-up sequence (slow-up control) in which the input pulse input at startup is increased in stages from a low frequency to a higher frequency in order to increase the drive torque, gradually increasing the motor rotation speed and reaching a steady-state speed.
[0051] In this embodiment, the position confirmation unit 316 serves as a position information deriving means and derives "second position information" of the print head 41 based on movement information of the print head 41 (in the case of the Y-direction movement motor 48, which is a stepping motor, information on input pulses input to the motor). The "second position information" is virtual position information of the print head 41 when the motor is normally driven by the number of input pulses. Furthermore, the position confirmation unit 316, as a position information detection means, detects "first position information" of the print head 41, which is the printing means, based on an image acquired by the photographing device 51 of the photographing unit 50. The "first position information" is real-time position information of the print head 41 that captures the actual movement of the print head 41. Furthermore, the position confirmation unit 316 compares the "first position information" with the "second position information" and outputs the comparison result to the print control unit 315, which serves as a movement control means. If the "first position information" and the "second position information" match, this means that the motor is normally driven by the number of input pulses, and it is considered that no loss of synchronism or the like has occurred. The movement control of the print head 41 based on the comparison result by the position confirmation unit 316 will be described in detail later.
[0052] As described above, the printing device 1 of the present embodiment performs printing on the nail T in cooperation with the terminal device 7. The terminal device 7 is, for example, a mobile terminal device such as a smartphone. The terminal device 7 is not limited to a smartphone. For example, the terminal device 7 may be a tablet personal computer (hereinafter referred to as a "PC"), a notebook PC, a desktop PC, a game terminal device, or the like. As shown in FIG. 2, the terminal device 7 includes an operation unit 71, a display unit 72, a communication unit 73, a control device 80, and the like.
[0053] The operation unit 71 is capable of performing various inputs, settings, etc. in response to user operations, and is, for example, a touch panel integrally provided on the surface of the display unit 72. When the operation unit 71 is operated, an input signal corresponding to the operation is transmitted to the control unit 81. Various operation screens are displayed on the touch panel configured in the display unit 72 under the control of a display control unit 812 described later, and the user can perform various input / setting and other operations by touching the touch panel. Note that the operation unit 71 for performing various input / setting and other operations is not limited to being a touch panel.
[0054] In this embodiment, when a user operates the operation unit 71, various instructions such as starting printing are output from the terminal device 7 to the printing device 1, and the terminal device 7 also functions as an operation unit for the printing device 1. In addition, the user can operate the operation unit 71 to select a nail design to be printed on the nail T, for example.
[0055] The display unit 72 is configured with, for example, a liquid crystal display (LCD), an organic electroluminescence display, or another flat display. As described above, a touch panel for performing various inputs may be integrally configured on the surface of the display unit 72. In this case, the touch panel functions as the operation unit 71. In this embodiment, the display unit 72 can display a nail design input / selected by the user via the operation unit 71, various guide screens, warning display screens, and the like. The display unit 72 also functions as a notification unit that notifies the user of an error when the printing device 1 is unable to continue the printing operation and makes an emergency stop, as will be described later. It should be noted that the content displayed on the display unit 72 is not limited to this.
[0056] The communication unit 73 is configured to be able to communicate with the communication unit 13 of the printing device 1 . The communication between the printing device 1 and the terminal device 7 may be either a wireless connection method or a wired connection method, and there is no specific limitation on the method. The communication unit 73 may be any device that can communicate with the printing device 1, and a communication standard that matches the communication standard of the communication unit 13 of the printing device 1 is applied.
[0057] As shown in FIG. 2, the control device 80 of the terminal device 7 of this embodiment is a computer including a control unit 81 constituted by a processor such as a CPU (Central Processing Unit) not shown, and a memory unit 82 constituted by a ROM (Read Only Memory) and a RAM (Random Access Memory) not shown.
[0058] The storage unit 82 stores various programs for operating each unit of the terminal device 7, various data, and the like. Specifically, the ROM etc. of this embodiment stores various programs such as an operating program 821a for controlling each part of the terminal device 7, as well as a nail print application program 821b (hereinafter referred to as "nail print AP") for performing nail printing using the printing device 1, and the control unit 81 expands these programs, for example, in a working area of RAM, and the programs are executed in the control unit 81, thereby controlling each part of the terminal device 7.
[0059] The storage unit 82 of this embodiment is also provided with a design storage area 822 for storing nail design (design) data. The nail design (design) stored in the design storage area 822 may be an existing design prepared in advance, or may be a design created by the user. In addition, if the terminal device 7 is connectable to various networks, it may be possible to import a nail design (design) stored in a network-connectable server device (not shown) or the like.
[0060] From a functional perspective, the control unit 81 of the terminal device 7 includes a communication control unit 811, a display control unit 812, etc. The functions of the communication control unit 811, the display control unit 812, etc. are realized by cooperation between the CPU of the control unit 81 and a program stored in the ROM of the storage unit 82. Note that the functions of the control unit 81 of the terminal device 7 are not limited to these, and the control unit 81 may include various other functional units. The communication control unit 811 controls the operation of the communication unit 73 . Furthermore, the display control unit 812 controls the display unit 72 to cause the display unit 72 to display various display screens.
[0061] Next, the print control method of the present embodiment will be described with reference to FIGS. FIG. 5 is a flowchart showing the print control process in this embodiment. When performing nail printing using the printing device 1 of this embodiment, a user operates the operation unit 12 (operation buttons) of the printing device 1 to turn on the power and start it up (step S1). The terminal device 7 is also turned on and the execution of nail print processing is selected from the operation unit 71 of the terminal device 7. This starts up the nail print AP 821b.
[0062] When the nail print AP821b is started in the terminal device 7, the display control unit 812 of the terminal device 7 displays on the display unit 72 a design selection screen (not shown) from which a design can be selected, and when an operation to select one of the designs is performed, the selected design is set as the design to be printed on the nail T.
[0063] Furthermore, when the power is turned on, a printing preparation operation is started in which the print head 41 is moved from the initial state of the printer 1 (the state shown in FIG. 3) in which the print head 41 is in the standby area Ar2. First, the print control unit 315 as a movement control means operates the Y direction movement motor 48 of the head movement mechanism 49 to start moving the print head 41 in the Y direction (step S2). Specifically, the print control unit 315 inputs a predetermined input pulse to the Y-direction movement motor 48, which is a stepping motor. Furthermore, the control unit 31 operates the photographing unit 50 to cause the photographing device 51 to continuously photograph the interior of the movable area Ar1, thereby acquiring an image (photographed image).
[0064] The control unit 31 (position confirmation unit 316) constantly determines whether or not the Y-direction origin sensor 412 has detected the guide shaft 455 (referred to as the "X shaft" in FIG. 5) of the X-direction movement mechanism (step S3). If the Y-direction origin sensor 412 does not detect the X-shaft (guide shaft 455), the control unit 31 (position confirmation unit 316) judges whether or not the movement of the print head 41 in the Y-direction has been detected from the captured image (step S4). Specifically, the control unit 31 (position confirmation unit 316) analyzes the captured image acquired by the photographing device 51 as a position information detection means, and detects the print head 41 (the identification unit M attached to the print head 41 in this embodiment) from the image. Then, when it is detected that the print head 41 is moving from the continuously captured images (step S4; YES), the process returns to step S3 and repeats the process until the Y-direction origin sensor 412 detects the X-shaft (guide shaft 455).
[0065] On the other hand, if the movement of the print head 41 is not detected from the continuously captured images (step S4; NO), the control unit 31 (position confirmation unit 316) further determines whether the lack of movement of the print head 41 is due to interference such as a collision with a foreign object (step S5). In other words, by analyzing the images captured continuously, it is determined whether there is anything obstructing the movement of the print head 41, such as the user's hand or finger, on the path of movement of the print head 41, that is, in this case, downstream in the direction of movement (the near side in the Y direction in Figures 1 and 3).
[0066] If there is nothing downstream in the movement direction of the print head 41 that would hinder the movement of the print head 41 (if it is not reflected in the image), the control unit 31 (position confirmation unit 316) determines that the reason the print head 41 does not move is not due to a collision with a foreign object, etc. (Step S5; NO). In this case, the control unit 31 (position confirmation unit 316) further judges whether the start-up sequence of the Y-direction movement motor 48 is the slowest slow-up control in terms of the device performance (step S6). If the start-up sequence of the Y-direction movement motor 48 is not the slowest slow-up control in terms of the device performance, that is, if an even slower slow-up control can be selected (step S6; NO), the Y-direction movement motor 48 is immediately stopped and the motor is restarted with the start-up sequence of the slower slow-up (step S7).
[0067] In other words, if an input pulse is sent to the Y-direction movement motor 48 but there is no corresponding movement of the print head 41 and this is not due to interference with a foreign object, it is likely that the Y-direction movement motor 48, which is a stepping motor, has lost synchronization. Step-out occurs, for example, when there is an overload or a sudden change in speed. For this reason, if a slow-up sequence is applied in which the frequency of the input pulses applied at startup is lowered and then gradually increased, the motor torque at startup increases, making step-out less likely to occur. Therefore, if the slow-up sequence is not applied at the initial startup, slow-up control is performed to start the motor from an input pulse with a frequency one step lower than the input pulse input when rotating the motor at a steady speed. Also, if the slow-up sequence is applied at the initial startup, slow-up control is performed to start the motor from an input pulse with a frequency one step lower than the slow-up sequence applied at the initial startup. Then, the process returns to step S3 and is repeated. By gradually starting the Y-direction movement motor 48 from an input pulse with a lower frequency, it is possible to prevent a sudden speed change or a large load from being applied to the Y-direction movement motor 48, and it is expected that the Y-direction movement motor 48 can be returned to a normal driving state while preventing loss of synchronism.
[0068] On the other hand, if the start-up sequence of the Y-direction movement motor 48 is the slow-up control, which is the slowest in terms of device performance (step S6; YES), the control unit 31 (position confirmation unit 316) emergency stops the Y-direction movement motor 48 and notifies the user of the error (step S8). The method of notifying the error is not particularly limited, but for example, a message to the effect that a problem has occurred and the printer cannot be operated properly is displayed on the display unit 72 of the terminal device 7. If the printer 1 has a display unit, an error message may be displayed on the display unit, and if the printer 1 has a lamp, indicator, or the like, the error may be notified by turning the lamp, indicator, or the like on or off. Also, if the printer 1 has an audio output unit, the error may be notified by an alert, audio, or the like.
[0069] In addition, with respect to the input pulses input when rotating the motor at a steady speed, the input pulses at the time of starting should have a low frequency, which is a matter that is set appropriately. Also, the angle at which the frequency of the input pulses is increased from the time when the Y-direction movement motor 48 is started until the motor reaches a steady speed, and the type of curve of the slow-up control (pulse control) to be performed are also matters that are set appropriately. Furthermore, in the case where the performance of the printing device 1 is such that the start-up sequence at the initial start-up to the slowest slow-up sequence can be adjusted in, for example, 10 steps, it is not necessarily necessary to repeat the process in step S7 one step at a time 10 times until the normal driving state is achieved. For example, if the slow-up sequence that can be adjusted in 10 steps is divided into 3 or 5 steps, and the situation is not improved even after repeating the process 3 or 5 times, the process may proceed to step S8 and notify the user of an error.
[0070] In step S5, if the reason why the print head 41 does not move is due to a collision with a foreign object or the like (step S5; NO), the situation will not improve unless the foreign object interfering with the print head 41 is removed. Therefore, in this case as well, the control unit 31 (position confirmation unit 316) urgently stops the Y-direction movement motor 48 and notifies the user of the error (step S8). In this case, it is preferable to also indicate that the cause of the abnormality is not a loss of synchronism of the motor or the like (i.e., interference with some kind of foreign object). This allows the user to understand the cause of the printing device 1 stopping, and enables them to take appropriate measures, such as removing anything (hands, fingers, etc.) interfering with the print head 41. Note that the captured image captured by the photographing device 51 may be displayed on the display unit 72, etc. This allows the user to more accurately grasp the situation.
[0071] On the other hand, if the Y-direction origin sensor 412 detects the X-shaft (guide shaft 455) (state shown in FIG. 6, step S3; YES), the control unit 31 (position confirmation unit 316) stops the Y-direction movement motor 48 to stop the movement of the print head 41 in the Y direction, and operates the X-direction movement motor 46 to start the movement of the print head 41 in the X direction (step S9). Furthermore, the control unit 31 (position confirmation unit 316) determines whether the X-direction origin sensor 411 has detected the print head 41 (step S10). If the X-direction origin sensor 411 does not detect the print head 41 (step S10; NO), the control unit 31 (position confirmation unit 316) further determines whether the encoder sensor 413 has detected the movement of the print head 41 (step S11).
[0072] If the encoder sensor 413 detects the movement of the print head 41 (step S11; YES), the process returns to step S10 and the determination is repeated until the X-direction origin sensor 411 detects the print head 41. On the other hand, if the encoder sensor 413 does not detect the movement of the print head 41 (step S11; NO), it is assumed that some abnormality has occurred. Therefore, the control unit 31 (position confirmation unit 316) urgently stops the X-direction movement motor 46 and notifies the user of the error (step S8). In this case, if it is determined from the analysis of the captured image acquired by the photographing device 51 that a foreign object is present on the path of movement of the print head 41 and that this foreign object is interfering with the movement of the print head 41, it is preferable to also inform the user that the cause of the emergency stop of the X-direction movement motor 46 was interference with the foreign object. This allows the user to understand the cause of the stop of the printing device 1 and to take appropriate measures, such as removing the object (hand, finger, etc.) interfering with the print head 41. The captured image acquired by the photographing device 51 may be displayed on the display unit 72, etc.
[0073] On the other hand, if the X-direction origin sensor 411 detects the print head 41 (state shown in FIG. 7, step S10; YES), the control unit 31 (position confirmation unit 316) stops the X-direction movement motor 46 to stop the movement of the print head 41 in the X direction, and causes the print head 41 to wait at the origin position in the X and Y directions (see the position of the print head 41 in FIG. 7) (step S12). Then, the control unit 31 (print control unit 315) judges whether or not there is print data (step S13), and if there is no print data (step S13; NO), the judgment of step S13 is repeated.
[0074] On the other hand, if there is print data (step S13; YES), the control unit 31 (photography control unit 312) controls the photography unit 50 to photograph the finger U (finger U including the nail T) held in the finger holding unit 6 and obtain a nail image (step S14). When the nail image is acquired, the control unit 31 sets a print area and a print start position based on the nail image (step S15). 8 is an explanatory diagram showing an image of the print area and print start position set based on the nail image. As shown in Fig. 8, the printable area Ar3 is set wider than the print area that is actually set so that it can accommodate nails T of various sizes, and is approximately the same as the window portion 63 of the finger holding part 6.
[0075] When a nail image is acquired, first, the control unit 31 (nail information detection unit 313) detects nail information such as a nail contour TL from the nail image. When the nail contour TL is detected, the control unit 31 (print data generation unit 314) matches the design data to the nail contour TL and performs appropriate corrections to generate print data based on the design data. Note that, in cases where the user's nail contour TL and the like have been acquired in advance and stored in the storage unit 32 or the like, the timing for generating the print data may be at an earlier stage than the process of aligning the origin position of the print head 41 in the XY directions. The control unit 31 (print data generating unit 314) also sets a rectangular frame FL that circumscribes the nail contour TL, and sets the inner area of this rectangular frame FL as the printing area, and sets one of the corners of the rectangular frame FL (the upper left corner in FIG. 8) as the printing start position (x0, y0). The printing start position (x0, y0) becomes the reference position in the printing operation, as described later. Once the print area and print start position are set, the printing operation is performed (step S16).
[0076] FIG. 10 is a flow chart showing the printing operation shown in FIG. As shown in FIG. 10, in the printing operation (step S16 in FIG. 5), the control unit 31 (print control unit 315) first sets the Y coordinate ("y0" shown in FIG. 8) of the print start position (see FIG. 8) as the target Y direction position (step S21), and starts moving the print head 41 to the target Y direction position (step S22). Specifically, a predetermined input pulse is input to the Y-direction movement motor 48 to drive the Y-direction movement motor 48 .
[0077] The control unit 31 (position confirmation unit 316) derives "second position information" of the print head 41 (the movement amount of the input pulse, virtual position information of the print head 41 when moved by the input pulse from the print start position) from the information of the input pulse input to the Y-direction movement motor 48 (movement information of the print head 41) (step S23). In this embodiment, the image capturing device 51 continuously captures the print head 41 and the movable area Ar1 of the print head 41 even during printing, and captured images are acquired at any time. The control unit 31 (position confirmation unit 316) analyzes the captured images to detect "first position information," which is the real-time position of the print head 41. Then, the "first position information" of the print head 41 is compared with the "second position information."
[0078] Specifically, the control unit 31 (position confirmation unit 316) determines whether or not the movement of the print head 41 by the input pulses input to the Y-direction movement motor 48 can be detected from the captured image (step S24). If the movement of the input pulses input to the Y-direction movement motor 48 cannot be detected from the captured image (step S24; NO), the control unit 31 (position confirmation unit 316) further determines whether the lack of movement of the print head 41 is due to interference such as a collision with a foreign object (step S25). In other words, by analyzing the images captured continuously, it is determined whether there is something obstructing the movement of the print head 41, such as a user's hand or finger, downstream in the movement direction of the print head 41 (the rear side in the Y direction in Figures 1, 7, etc.).
[0079] If there is nothing downstream in the movement direction of the print head 41 that would hinder the movement of the print head 41 (it is not reflected in the image), the control unit 31 (position confirmation unit 316) determines that the reason why the print head 41 does not move is not due to a collision with a foreign object or the like (step S25; NO). Note that if the finger U is properly positioned, it is not appropriate for the finger U to be recognized as a "foreign object reflected in the image" and an error to occur. For this reason, for example, while the nail recognition is being performed normally, it is possible to perform judgment and control such as treating the printable area Ar3 as not having a foreign object, or not treating the finger U in this case as a "foreign object."
[0080] If it is determined that the print head 41 does not move due to a collision with a foreign object or the like, the control unit 31 (position confirmation unit 316) further determines whether the start-up sequence of the Y-direction movement motor 48 is the slowest slow-up control in terms of the device performance (step S26). If the start-up sequence of the Y-direction movement motor 48 is not the slowest slow-up control in terms of the device performance, that is, if an even slower slow-up control can be selected (step S26; NO), the Y-direction movement motor 48 is immediately stopped and restarted with the slower slow-up start-up sequence (step S27), and the processes from step S23 onwards are repeated. Note that the specific content of the slow-up start-up sequence is the same as step S7 in FIG. 5, and therefore a description thereof will be omitted.
[0081] On the other hand, if the start-up sequence of the Y-direction movement motor 48 is the slow-up control, which is the slowest in terms of device performance (step S26; YES), the control unit 31 (position confirmation unit 316) emergency stops the Y-direction movement motor 48 and notifies the user of the error (step S28). The method of notifying an error is the same as that in step S8 of FIG. 5, and therefore description thereof will be omitted. In addition, in step S25, if the reason why the print head 41 does not move is a collision with a foreign object or the like (step S25; YES), the control unit 31 (position confirmation unit 316) will bring the Y-direction movement motor 48 to an emergency stop, as in the case of "step S5; YES" in Figure 5, and notify the user of the error (step S28). In this case, it is also preferable to indicate that the problem is not a loss of synchronism of the motor (i.e., that the problem is interference with some foreign object).
[0082] On the other hand, if the movement of the input pulses input to the Y-direction movement motor 48 can be detected from the captured image (step S24; YES), the control unit 31 (position confirmation unit 316) (step S28) further determines whether the print head 41 has reached the target Y-direction position (step S29). Specifically, based on the "second position information" of the print head 41 calculated from the number of input pulses input to the Y-direction movement motor 48 and the "first position information" detected from the captured image, it is determined whether the print head 41 has moved to the Y-direction print start position "y0", which is the target Y-direction position. Then, if the print head 41 has not reached the target position in the Y direction (step S29; NO), the process returns to step S23 and is repeated.
[0083] On the other hand, if the print head 41 has reached the desired Y direction position (step S29; YES), the control unit 31 (position confirmation unit 316) stops the Y direction movement motor 48 to stop the movement of the print head 41 in the Y direction, and operates the X direction movement motor 46 to start moving the print head 41 to the desired X direction position (the X direction printing start position "x0" shown in FIG. 8) (step S30). The control unit 31 (position confirmation unit 316) determines whether the print head 41 has moved to a target position in the X direction based on the detection information from the encoder sensor 413 (step S31). If the print head 41 has not moved to the target X-direction position (step S31; NO), the control unit 31 (position confirmation unit 316) further determines whether the encoder sensor 413 has detected the movement of the print head 41 (step S32).
[0084] If the encoder sensor 413 detects the movement of the print head 41 (step S32; YES), the process returns to step S31 and the determination is repeated until the print head 41 moves to the desired position in the X direction. On the other hand, if the encoder sensor 413 does not detect the movement of the print head 41 (step S32; NO), it is assumed that some abnormality has occurred. Therefore, the control unit 31 (position confirmation unit 316) urgently stops the X-direction movement motor 46 and notifies the user of the error (step S28). In this case, if it is determined from analysis of the captured image acquired by the photographing device 51 that a foreign object is present in the direction of travel of the print head 41 and that this foreign object is obstructing the movement of the print head 41, it is preferable to also inform the user that the cause of the emergency stop of the X-direction movement motor 46 was interference with the foreign object. Note that the specific response is the same as that shown in step S8 of Fig. 5, and therefore a description thereof will be omitted.
[0085] On the other hand, if the print head 41 has moved to the desired X-direction position (step S31; YES), the print head 41 is positioned at the print start position (x0, y0) as shown in Fig. 9. The control unit 31 (print control unit 315) then operates the X-direction movement motor 46 to move the print head 41 a predetermined amount in the X-direction, while controlling the ink ejection operation of the print head 41 to print one line according to the print data (step S33). For example, in the example shown in Fig. 8, the print head 41 moves from the print start position (x0, y0) to the right along the X direction. Within the rectangular frame FL, which is the print area, there are areas with the nail T to be printed and areas without it (for example, the four corners of the rectangular frame FL shown in Fig. 8), and depending on the design, printing may not be done on the entire surface of the nail T. The control unit 31 (print control unit 315) controls the ejection of ink from the print head 41 according to the print data so that printing is appropriately performed on the necessary areas. Even during printing, the control unit 31 constantly checks whether the print head 41 is moving to the appropriate position at an appropriate speed based on information obtained from the encoder sensor 413 and the analysis results of the captured images, and takes appropriate measures such as an emergency stop if an abnormality is detected.
[0086] When the print head 41 moves from one end to the other end in the X direction within the rectangular frame FL, which is the print area, and printing of one line is completed, the control unit 31 (print control unit 315) judges whether printing for that nail T is complete (step S34). Then, if it is judged that printing is complete in light of the print data (step S34; YES), the print operation ends. At this time, the control unit 31 may operate the head movement mechanism 49 to move the print head 41 to the origin position in the XY directions (for example, the position shown in FIG. 7). This makes it possible to grasp the movement distance of the print head 41 from the reference position (origin position in the XY directions) again based on the number of input pulses input to the motor and the detection result by the encoder sensor 413 when there is another nail T of a finger U on which printing is to be performed. In addition, when the printing process has been completed for all the nails T of the fingers U to be printed, such as the nails T of both hands, the control unit 31 may operate the head moving mechanism 49 to move the print head 41 to a waiting area Ar2 or the like, and then terminate the printing operation.
[0087] On the other hand, if it is determined that printing on the nail T is not complete based on the print data (step S34; NO), the print start position of the next line (for example, the start position of the line indicated by the second arrow from the top in FIG. 8) is set as the target Y-direction position (step S35), and the process returns to step S23 and repeats the subsequent processes. That is, when the print head moves to the end of the rectangular frame FL in the X-direction as shown in FIG. 8, the print head moves in the Y-direction by a predetermined line width in the printing operation, and then returns to the end on the opposite side in the X-direction to perform printing. In this embodiment, as shown in Fig. 8, a case where printing is performed both in the forward and backward directions (bidirectionally) when moving back and forth in the X direction has been exemplified, but printing may be performed on either the forward or backward direction. In this case, the print start position in the X direction for the next line will be the same as that of the first line (the left end of the rectangular frame FL in Fig. 8), so the control unit 31 returns the print head 41 to the left end of the rectangular frame FL and moves it in the Y direction by a predetermined line width before starting printing of the next line.
[0088] Thus, in this embodiment, when the print head 41 moves in the X direction, the movement status of the print head 41 caused by the X-direction movement motor 46 can be grasped in real time by the encoder sensor 413. Also, when the print head 41 moves in the Y direction, by comparing the "second position information" derived from the movement status of the print head 41 caused by the Y-direction movement motor 48 based on information about input pulses input to the motor with the "first position information" detected from images continuously captured within the movable area Ar1, it can be grasped in real time whether the print head 41 is moving correctly. Furthermore, by analyzing the captured image, if the print head 41 is not moving correctly, it is possible to determine whether the cause of the abnormal condition is interference with a foreign object, and the abnormal condition can be quickly and appropriately resolved.
[0089] As described above, the printing device 1 of this embodiment includes the print head 41 that prints on the nail T that is the printing target, the head moving mechanism 49 (the motors 46, 48 that constitute the head moving mechanism 49) as a moving means for moving the print head 41, the photographing device (camera) 51 as a photographing means that is capable of photographing the print head 41 and the movable area Ar1 of the print head 41, a position information detection means that detects "first position information" of the print head 41 based on the image acquired by the photographing device 51, a position confirmation unit 316 that functions as a position information derivation means that derives "second position information" of the print head 41 based on the movement information of the print head 41 by the head moving mechanism 49, and a print control unit 315 as a movement control means that controls the movement of the print head 41 by the head moving mechanism 49 based on the result of comparing the "first position information" and "second position information" of the print head 41. This makes it possible to detect in real time any abnormalities that occur during the movement of the print head 41. As a result, for example, when stepping motors are used as the motors 46, 48 that make up the head movement mechanism 49, even if step-out occurs, it becomes possible to quickly grasp the occurrence of step-out and respond appropriately. Furthermore, the movement status of the print head 41 can be grasped using images taken of the print head 41 and the movable area Ar1, so if an abnormality occurs during the movement of the print head 41, it is possible to grasp the cause of the abnormality and respond appropriately.
[0090] Furthermore, the head moving mechanism 49 (the motors 46, 48 that constitute the head moving mechanism 49) in this embodiment includes a stepping motor, and the movement information for the print head 41 is information on input pulses input to the stepping motor. Therefore, it is possible to easily calculate (derive) from the number of input pulses how far the print head 41 has moved from a reference position, such as the origin position in the Y direction (i.e., the amount of movement, the distance moved) and where the print head 41 is currently located as a result of that movement. Furthermore, by comparing the "second position information" derived from the input pulse information with the "first position information" detected from the captured image, the actual movement status of the print head 41 can be accurately grasped, making it possible to respond quickly when an abnormality occurs. Furthermore, since the stepping motor rotates in synchronization with the number of input pulses, there is no need to provide a position sensor such as an encoder (encoder sensor 413 and slit plate 414) as in a DC motor, and the stepping motor can be constructed at low cost.
[0091] Furthermore, in this embodiment, when the print control unit 315, which serves as a movement control means, detects loss of synchronism of the stepping motor (Y-direction movement motor 48 in this embodiment) from the comparison result between "second position information" derived from the input pulse information and "first position information" detected from the captured image, it applies a slow-up control different from the sequence before the loss of synchronism and restarts the stepping motor (Y-direction movement motor 48). By performing slow-up control when starting the stepping motor (Y-direction movement motor 48), the motor torque increases, making it difficult for step-out to occur. It should be noted that the slower the motor start-up at startup, the less likely it is that step-out will occur; however, the slower the motor start-up, the longer it will take for the print head 41 to move, and the longer the printing time (the time required to complete printing) will be. In this regard, in this embodiment, the real-time position of the print head 41 is grasped based on the captured image, thereby enabling early detection of the occurrence of abnormalities such as step-out, and when step-out occurs, an attempt is made to improve the situation by implementing appropriate slow-up control. Therefore, the printing process can be performed more quickly than when slow-up control is performed by reducing the speed to a level at which step-out does not occur from the beginning.
[0092] Furthermore, in this embodiment, the position confirmation unit 316, which serves as a position information detection unit, detects the position of the print head 41 in the image captured by the photographing device 51 as "first position information." Therefore, the real-time position of the print head 41 can be properly determined from the images that are continuously acquired.
[0093] Furthermore, in this embodiment, the position confirmation unit 316, which serves as a position information derivation means, regards the position of the print head 41 derived based on movement information from a reference position (for example, the origin position in the XY directions (see FIG. 7) or the print start position (see FIG. 8)) as "second position information." Therefore, it is possible to accurately grasp the virtual movement position of the print head 41 if it were moving normally.
[0094] Furthermore, in this embodiment, the print control unit 315, which is a movement control means, stops the head movement mechanism 49 (each of the motors 46, 48 that constitute the head movement mechanism 49) when it detects a foreign object that hinders the movement of the print head 41 from an image within the movable area Ar1 of the print head 41. If a foreign object is preventing the movement of the print head 41, there is no solution other than to remove the foreign object, and if left unattended, there is a risk of damage to the device or injury to the user's fingers, posing a safety hazard. In this regard, as in this embodiment, if the motors 46 and 48 constituting the head moving mechanism 49 are stopped when a foreign object is present, damage to the device can be avoided.
[0095] Furthermore, in this embodiment, the print head 41 or a moving body (e.g., the holder 42) that moves integrally with the print head 41 has an identification unit M provided at a position where it can be photographed by the photographing device 51, and the position confirmation unit 316, which serves as a position information detection means, detects the "first position information" by detecting the identification unit M from the image. With this configuration, the position of the print head 41 can be easily detected from the image.
[0096] Furthermore, in this embodiment, the photographing device 51 photographs the print head 41 and the area Ar1 within which the print head 41 can move continuously or intermittently. By continuously taking photographs in this manner, the positional changes and movement status of the print head 41 can be ascertained from the photographed images. Therefore, if an abnormality occurs during the movement of the print head 41, it is possible to quickly and accurately grasp the cause of the abnormality and take appropriate action.
[0097] Furthermore, in this embodiment, the photographing device 51 is capable of photographing the print head 41 and the area Ar1 within which the print head 41 can move, as well as photographing the nail T, which is the printing target, to obtain a nail image. Therefore, the nail contour TL can be accurately detected and high-quality nail printing can be performed. Also, by using the same photographing device 51 to take photographs for detecting the "first position information" and for obtaining the nail image, excellent printing can be achieved with a simple device configuration without increasing costs.
[0098] Although the embodiment of the present invention has been described above, it goes without saying that the present invention is not limited to such an embodiment, and various modifications are possible without departing from the gist of the present invention.
[0099] For example, in the present embodiment, the case has been exemplified where only the Y-direction movement motor 48 of the motors 46, 48 constituting the head movement mechanism 49 is a stepping motor, but the stepping motor is not limited to being used as the Y-direction movement motor 48, and the X-direction movement motor 46 may be a stepping motor. Also, both the X-direction movement motor 46 and the Y-direction movement motor 48 may be stepping motors. If the X-direction movement motor 46 is a stepping motor, the "first position information" for the X-direction movement motor 46 is also detected based on the captured image, and the movement of the print head 41 is controlled.
[0100] In addition, in this embodiment, an example is given of the case where the movement information of the print head 41 is information on input pulses input to the stepping motor, but the movement information of the print head 41 may be information that can be acquired by the control unit 31, and is not limited to information on input pulses.
[0101] In addition, in this embodiment, an example has been shown in which, when out-of-step of the Y-direction movement motor 48, which is a stepping motor, is detected, slow-up control is applied to restart the stepping motor (Y-direction movement motor 48). However, applying slow-up control to restart the motor is not limited to cases of out-of-step, and slow-up control may also be attempted in the case of other abnormalities. Furthermore, the response when loss of synchronism is detected is not limited to slow-up control, and other responses may be applied.
[0102] In addition, in this embodiment, an example is given of a case where the position of the print head 41 in the image is the "first position information", but the "first position information" is not limited to this and may be various types of information that can be detected based on the captured image.
[0103] In addition, in this embodiment, an example is given of a case where an identification portion M is provided on the print head 41, but the identification portion M may also be provided on a holder 42 (a moving body that moves integrally with the print head 41) that holds the print head 41. In addition, in this embodiment, an example has been given of the case where the position confirmation unit 316 detects the “first position information” by detecting the identification portion M from an image, but the method by which the position confirmation unit 316 detects the “first position information” is not limited to this. For example, if the external shapes of the print head 41 and holder 42 are known on the device side, the position of the print head 41 in the image may be known by detecting an object in the image whose shape matches the external shapes of the print head 41 and holder 42, and the "first position information" may be detected. In this case, it is preferable to make the print head 41 and holder 42 a color (e.g., red) that is easily distinguishable from the color inside the device (e.g., black) so that they can be easily detected in the captured image by distinguishing them from the background.
[0104] In addition, in the present embodiment, the same photographing device 51 performs photographing for detecting the "first position information" and photographing for obtaining nail images, but the configuration of the photographing means is not limited to this. For example, a photographing means for photographing for detecting the "first position information" and a photographing means for photographing for obtaining nail images may be provided separately. In this case, for example, one may be configured to be movable and the other may be fixedly arranged within the device, and the location and arrangement method may be optimized according to the subject to be photographed.
[0105] Furthermore, in this embodiment, the printing device 1 is configured to include an inkjet type print head 41 as the print head 41, but the configuration of the print head 41 is not limited to this. The print head 41 may have a different configuration from the inkjet type print head 41, such as a syringe type head or a pen type head.
[0106] In addition, in this embodiment, an example is given of the printing device 1 working in cooperation with the terminal device 7 to print on nails, but the printing device 1 is not limited to the one shown here and may be configured to complete the printing operation on its own. For example, in the present embodiment, input of a command to start printing and selection of a nail design (design) are performed from the operation unit 71 on the terminal device 7 side, but input of various commands may be performed on the operation unit 12 on the printing device 1 side. In this case, the printing device 1 may be provided with a touch panel type operation unit. Also, the printing device 1 may be provided with a display unit, in which case the touch panel may be provided integrally with the display unit.
[0107] In addition, in this embodiment, an example is given of a case where the nail design memory area 822 for storing nail design (design) data is provided in the memory unit 82 of the terminal device 7, but the nail design data is not limited to being stored in the memory unit 82 of the terminal device 7, and may be stored in the memory unit 32 of the printing device 1. Also, image data of the nail design may be stored in a server device or the like that can be connected via a network line, etc., and the nail design data may be made accessible by accessing the server device or the like. In this way, it becomes possible to select the design to be printed from a larger number of nail designs without increasing the capacity of the storage unit 82 or the like.
[0108] In this embodiment, the nail information detection unit 313 and the print data generation unit 314 are provided in the printing device 1, and the control device 30 of the printing device 1 is configured to detect nail information from nail images and generate print data, but the configuration of the printing device 1 is not limited to this. For example, the printing device 1 may include only the printing unit 40 and the photographing unit 50, and detection of nail information and generation of print data may be performed by an external terminal (for example, the terminal device 7, which is a smartphone or the like). In this case, when the nail T is photographed by the photographing device 51 of the photographing section 50 and a nail image (an image of the nail T including the finger U) is acquired, the nail image acquired by the photographing section 50 is sent to the control device 80 of the terminal device 7 via the communication section 13. In this case, the configuration of the printing device 1 can be simplified.
[0109] Although several embodiments of the present invention have been described above, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and its equivalents. The inventions described in the claims originally attached to this application are set forth below. The claim numbers in the appended claims are the same as those in the claims originally attached to this application. [Additional Notes] <Claim 1> A printing means for printing on a print target; a moving means for moving the printing means; an imaging means for imaging the printing means and an area within which the printing means can move; a position information detection means for detecting first position information of the printing means based on an image captured by the photographing means; a position information deriving means for deriving second position information of the printing means based on movement information of the printing means by the movement means; a movement control means for controlling the movement of the printing means by the movement means based on a result of a comparison between the first position information and the second position information; A printing device comprising: <Claim 2> The moving means includes a stepping motor, 2. The printing apparatus according to claim 1, wherein the movement information of the printing means is information on input pulses input to the stepping motor. <Claim 3> The printing device according to claim 2, characterized in that, when loss of synchronism of the stepping motor is detected from the comparison result, the movement control means restarts the stepping motor by applying a slow-up control different from the sequence before the loss of synchronism. <Claim 4> 4. The printing device according to claim 1, wherein the position information detection means detects a position of the printing means in the image as the first position information. <Claim 5> 5. The printing device according to claim 1, wherein the position information deriving unit determines the second position information as the position of the printing unit derived based on the movement information from a reference position. <Claim 6> 6. The printing device according to claim 1, wherein the movement control means stops the movement means when a foreign object that obstructs the movement of the printing means is detected from an image within a movable area of the printing means. <Claim 7> an identification unit is provided on the printing means or on a moving body that moves integrally with the printing means at a position where the image can be captured by the image capturing means; 7. The printing device according to claim 1, wherein the position information detection unit detects the first position information by detecting the identification portion from the image. <Claim 8> 8. The printing device according to claim 1, wherein the image capturing means captures images of the printing means and an area within which the printing means can move continuously or intermittently. <Claim 9> 9. The printing device according to claim 1, wherein the image capturing device is capable of capturing an image of the printing target in addition to capturing an image of the printing device. <Claim 10> an imaging step of imaging a printing means that prints on a printing object and an area within which the printing means can move; a position information detection step of detecting first position information of the printing means based on the image acquired in the photographing step; a position information deriving step of deriving second position information of the printing means based on movement information for moving the printing means; a movement control step of controlling the movement of the printing means based on a comparison result between the first position information and the second position information; A printing control method comprising: <Claim 11> On the computer, a position information detection function that detects first position information of the printing means based on an image acquired by photographing the printing means and a region within which the printing means can move; a position information deriving function that derives second position information of the printing means based on movement information for moving the printing means; a movement control function that controls the movement of the printing means based on a comparison result between the first position information and the second position information; A program for realizing the above. [Explanation of symbols]
[0110] 1 Printing device 7 Terminal Equipment 31 Control Unit 32 Storage section 40 Printing Department 41 Print Head 46 X-direction movement motor 48 Y-direction movement motor 49 Head movement mechanism 50 Photography Department 51 Imaging Equipment 315 Printing control unit 316 Position confirmation part 411 X-direction origin sensor 412 Y-direction origin sensor 413 Encoder Sensor T-claw U finger
Claims
1. A printing means for printing on a print target; a moving means for moving the printing means; an imaging means for imaging the printing means and an area within which the printing means can move; a position information detection means for detecting first position information of the printing means based on an image captured by the photographing means; a position information deriving means for deriving second position information of the printing means based on movement information of the printing means by the movement means; a movement control means for controlling the movement of the printing means by the movement means based on a result of a comparison between the first position information and the second position information; A printing device comprising:
2. The moving means includes a stepping motor, 2. The printing apparatus according to claim 1, wherein the movement information of the printing means is information on input pulses input to the stepping motor.
3. The printing device according to claim 2, characterized in that, when loss of synchronism of the stepping motor is detected from the comparison result, the movement control means restarts the stepping motor by applying a slow-up control different from the sequence before the loss of synchronism.
4. 4. The printing apparatus according to claim 1, wherein the position information detection means detects a position of the printing means in the image as the first position information.
5. 5. The printing device according to claim 1, wherein the position information deriving unit sets the position of the printing unit derived based on the movement information from a reference position as the second position information.
6. 6. The printing device according to claim 1, wherein the movement control means stops the movement means when a foreign object that obstructs the movement of the printing means is detected from an image within a movable area of the printing means.
7. an identification unit is provided on the printing means or on a moving body that moves integrally with the printing means at a position where the image can be captured by the image capturing means; 7. The printing apparatus according to claim 1, wherein the position information detection unit detects the first position information by detecting the identification portion from the image.
8. 8. The printing apparatus according to claim 1, wherein the image capturing means captures images of the printing means and an area within which the printing means can move continuously or intermittently.
9. 9. The printing apparatus according to claim 1, wherein the image capturing means is capable of capturing an image of the printing object in addition to capturing an image of the printing means.
10. an imaging step of imaging a printing means that prints on a printing object and an area within which the printing means can move; a position information detection step of detecting first position information of the printing means based on the image acquired in the photographing step; a position information deriving step of deriving second position information of the printing means based on movement information for moving the printing means; a movement control step of controlling the movement of the printing means based on a comparison result between the first position information and the second position information; A printing control method comprising:
11. On the computer, a position information detection function for detecting first position information of the printing means based on an image acquired by photographing the printing means and an area within which the printing means can move; a position information deriving function for deriving second position information of the printing means based on movement information for moving the printing means; a movement control function that controls the movement of the printing means based on a comparison result between the first position information and the second position information; A program for realizing the above.
Citation Information
Patent Citations
Measure for head position of serial printer
JP1983053471A
Nail art device
JP2000194838A
Recorder
JP2003080784A
Form processing system
JP2014162193A
Nail printing equipment, and printing method for nail printing equipment
JP2015054153A
