This application claims the benefit of Japanese Patent Application No. 2018-156282, filed on Aug. 23, 2018, the entire disclosure of which is incorporated by reference herein.
The present disclosure relates to a printing device, a printing system, a printing method, and a recording medium.
A manual scanning type printing device is known that prints a print subject, such as characters, symbols, logos, and marks, on a print medium by a user moving the printing device with its housing grasped. This type of printing device is provided with a print head at a bottom surface of the housing, and thus has difficulties in recognition of where the print subject is to be printed.
For easy recognition of the printing position, a manual scanning type printing device described in US Patent Application Publication No. 2007/0223982 includes a standard indicator arranged in the vicinity of the bottom surface of the housing, and a display that displays a relative positional relationship between the standard indicator and an image to be printed.
According to an aspect of the present disclosure, a printing device includes a housing, a print head, a scanner, and a processor. The print head includes print elements arranged linearly in a set direction in the housing. The scanner is disposed ahead of the print head in a scan direction that intersects the set direction and is a direction in which the housing is moved, and acquires an image of a print medium. The processor is configured to control, when determining that the image acquired by the scanner includes a reference pattern that serves as a reference of an intended position at which a print subject is to be printed, the print head to print the print subject at the intended position that is a set distance away from a position of the reference pattern in the scan direction and is adjusted in the set direction based on the position of the reference pattern.
A printing method according to another aspect of the present disclosure is performed for a printing device that includes a housing, a print head including print elements arranged linearly in a set direction in the housing, and a scanner disposed ahead of the print head in a scan direction that intersects the set direction and is a direction in which the housing is moved and configured to acquire an image of a print medium. The printing method includes controlling, when determining that the image acquired by the scanner includes a reference pattern that serves as a reference of an intended position at which a print subject is to be printed, the print head to print the print subject at the intended position that is a set distance away from a position of the reference pattern in the scan direction and is adjusted in the set direction based on the position of the reference pattern.
According to yet another aspect of the present disclosure, a non-transitory computer-readable recording medium stores a program for execution on a computer for controlling a printing device that including a housing, a printing head including print elements arranged linearly in a set direction in the housing, and a scanner disposed ahead of the print head in a scan direction that intersects the set direction and is a direction in which the housing is moved and configured to acquire an image of a print medium. The program causes the computer to execute controlling, when determining that the image acquired by the scanner includes a reference pattern that serves as a reference of an intended position at which a print subject is to be printed, the print head to print the print subject at the intended position that is a set distance away from a position of the reference pattern in the scan direction and is adjusted in the set direction based on the position of the reference pattern.
A more complete understanding of this application can be obtained when the following detailed description is considered in conjunction with the following drawings, in which:
A printing device according to an embodiment of the present disclosure is described below with reference to the drawings.
A handy printer (printing device) 100 according to an embodiment of the present disclosure includes a housing 101 sized to be easily grasped by a user by hand, as illustrated in
As illustrated in
As illustrated in
The image acquirer 130 includes a scanner including optical elements arranged linearly in a main scanning direction. The scanner scans the print medium R to acquire an image of the print medium R. The image acquirer 130 is disposed ahead of the print head 150 in the scan direction and acquires an image of the print medium R prior to printing by the print head 150. The main scanning direction is orthogonal to the sub-scanning direction.
The travel distance detector (sensor) 140 includes a light source such as an LED, and an optical sensor, and detects a distance by which the handy printer 100 is moved in the sub-scanning direction.
The print head 150 includes a magenta-color print head 150M that ejects magenta-color ink, a cyan-color print head 150C that ejects cyan-color ink, a yellow-color print head 150Y that ejects yellow-color ink, and non-illustrated ink tanks for the corresponding colors. Each of the print heads 150M, 150C, and 150Y has nozzles, which are print elements, arranged linearly in the main scanning direction (set direction). The print head 150 ejects ink selectively from the nozzles upon electrical energization corresponding to an image of the print subject. The magenta-color print head 150M is disposed apart by a reference distance d1 from the image acquirer 130 in the sub-scanning direction. The cyan-color print head 150C is disposed apart by a reference distance d2 from the image acquirer 130 in the sub-scanning direction. The yellow-color print head 150Y is disposed apart by a reference distance d3 from the image acquirer 130 in the sub-scanning direction.
As electrical components, the handy printer 100 includes the indicator 120, the image acquirer 130, the travel distance detector 140, and the print head 150, as described above, and further includes a controller 110, a communicator 160, a read only memory (ROM) 170, and a random access memory (RAM) 180, as illustrated in
The controller 110 includes a central processing unit (CPU). The controller 110 functions as a print subject acquirer 111, an indicator display controller 112, a determiner 113, and a print head controller 114 by executing programs stored in the ROM 170.
The print subject acquirer 111 acquires, via the communicator 160, data indicating the print subject transmitted by the terminal device 200, data indicating the reference pattern, and data indicating a relative position of the reference pattern with respect to an intended position at which the print subject is to be printed, and stores the acquired data in the RAM 180. The reference pattern is a characteristic pattern preprinted on the print medium R and serves as a reference of a printing position of the print subject. The relative position of the reference pattern with respect to the intended position at which the print subject is to be printed is, for example, represented by a sub-scanning-direction distance between the reference pattern and the print subject.
The indicator display controller 112 turns on lighting of the indicator 120 in accordance with the travel distance. Upon the print subject acquirer 111 acquiring data indicating the print subject, data indicating the reference pattern, and data indicating a relative position of the reference pattern with respect to the intended position at which the print subject is to be printed, the indicator display controller 112 changes a lighting color of the indicator 120 to green. Upon the later-described determiner 113 detecting the reference pattern, the indicator display controller 112 changes the lighting color of the indicator 120 to yellow. Upon start of printing, the indicator display controller 112 changes the lighting color of the indicator 120 to white. Upon completion of the printing, the indicator display controller 112 changes the lighting color of the indicator 120 to blue. Then after passage of a fixed period, lighting of the indicator 120 is turned off.
The determiner 113 determines whether the reference pattern that serves as a reference of the printing position of the print subject is included in an image acquired by the image acquirer 130 by scanning and whether a total distance of the reference distance d1 and a sub-scanning-direction distance between the reference pattern and the print subject has been traveled since detection of the reference pattern. Upon the handy printer 100 being moved by a user, the image acquirer 130 scans the print medium R and acquires the image of the print medium R. The determiner 113 extracts an amount of features from the image acquired by the image acquirer 130 and determines whether an amount by which the extracted features match features included in the reference pattern is equal to or greater than a reference value.
When the determiner 113 determines that the reference pattern is included, the print head controller 114 causes the print head 150 to print the print subject based on a travel distance that is a distance traveled in the sub-scanning direction and detected by the travel distance detector 140, using the position of the reference pattern as a reference of the printing position. Specifically, the print head controller 114 detects the travel distance L that has been traveled since detection of the reference pattern. Then the print head controller 114 causes ejection of ink from the magenta-color print head 150M to print a single line of dots for magenta color of the print subject corresponding to a position obtained by subtraction of a total distance the distance d4 and the reference distance d1 from the travel distance L, which can also be briefly expressed as L−(d4+d1). Then the print head controller 114 causes ejection of ink from the cyan-color print head 150C to print a single line of dots for cyan color of the print subject corresponding to a position obtained by subtraction of a total distance of the distance d4 and the reference distance d2 from the travel distance L, which can also be briefly expressed as L−(d4+d2). Then the print head controller 114 causes ejection of ink from the yellow-color print head 150Y to print a single line of dots for yellow color of the print subject corresponding to a position obtained by subtraction of a total distance of the distance d4 and the reference distance d3 from the travel distance L, which can also be briefly expressed as L−(d4+d3).
As described above, the travel distance detector 140 detects the travel distance L that is a distance by which the print head 150 is moved relative to the print medium R, and outputs to the controller 110 data indicating the detected travel distance L.
The print head 150 selectively ejects, in accordance with print data, ink onto the print medium R through nozzles included in the print head 150 under control of the print head controller 114, as described above. The ejected ink attaches to the print medium R and a single line of dots, which is a line of dots arranged in the main scanning direction of the print head 150, is printed.
The communicator 160 receives data indicating the print subject from the terminal device 200. Examples of the communicator 160 include wireless communication modules, such as wireless local area network (LAN) and Bluetooth (registered trademark) modules.
The ROM 170 is a non-volatile type of memory, such as a flash memory, and the ROM 170 stores data, such as the reference distances d1 to d3 and programs for implementing various functions by the controller 110, as described above. The RAM 180 is a volatile type of memory, and is used as working space for executing programs for processing by the controller 110. The RAM 180 stores information, such as image data for yellow (Y), magenta (M), and cyan (C) color of the print subject, a travel distance, a sub-scanning-direction distance d4 between the reference pattern and the print subject.
Next, the terminal device 200 illustrated in
The controller 210 includes the CPU. The controller 210 functions as a print subject acquirer 211, a reference pattern acquirer 212, and a print subject transmitter 213 by executing programs stored in the ROM 260.
The print subject acquirer 211 acquires data indicating the print subject received through the input receiver 250 or the communicator 230, and stores in the RAM 270 the acquired data indicating the print subject.
The reference pattern acquirer 212 acquires data indicating an image of the print medium R captured by the image capturer 220 and data indicating a distance between the image capturer 220 and the imaged print medium R, and displays on the display 240 the print subject as an overlay on the image of the print medium R. The distance between the image capturer 220 and the imaged print medium R can be determined from a focus adjustment stroke of a lens. In displaying the print subject, the reference pattern acquirer 212 adjusts the size of the print subject displayed on the display 240, based on the distance between the image capturer 220 and the imaged print medium R. The position and size of the print subject displayed on the display 240 can be adjusted through the input receiver 250 by a user operation. The reference pattern acquirer 212 specifies as the reference pattern a portion specified by a user operation, or extracts a characteristic portion from the image of the print medium R and specifies the extracted characteristic portion as the reference pattern. Specifically, the reference pattern acquirer 212 specifies as the reference pattern a characteristic pattern that is at a position through which the image acquirer 130 and the print head 150 pass before the print subject is printed (in
The print subject transmitter 213 transmits, via the communicator 230 to the handy printer 100, data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed.
The image capturer 220 includes a lens and an image sensor. The image capturer 220 captures an image of the print medium R and outputs to the controller 210 data indicating the captured image and data indicating the distance between the image capturer 220 and the imaged print medium R. The distance between the image capturer 220 and the imaged print medium R can be determined from a focus adjustment stroke of the lens that is a stroke for the image of the print medium R to be into focus.
The communicator 230 transmits to the handy printer 100 data indicating the print subject and the scan direction. Similarly to the aforementioned communicator 160, examples of the communicator 230 include wireless communication modules, such as wireless LAN and Bluetooth (registered trademark) modules.
The display 240 displays the image captured by the image capturer 220, the image of the input print subject, and an image necessary for operation. Examples of the display 240 include a liquid crystal display (LCD).
The input receiver 250 receives, in response to a user input, data indicating the print subject and instructions such as start and stop of printing processing. The input receiver 250 and the display 240 may together form a touch panel display device.
The ROM 260 is a non-volatile type of memory, such as a flash memory, and the ROM 260 stores programs for implementing various functions by the controller 210. The RAM 270 is a volatile type of memory, and is used as working space for executing programs for processing by the controller 210. The RAM 270 stores, for example, data indicating the image captured by the image capturer 220, data indicating the print subject and the reference pattern, and data indicating a relative position of the reference pattern with respect to the intended position at which the print subject is to be printed.
Next, an example process in which data indicating the print subject is transmitted to the handy printer 100 by the terminal device 200 configured as above and then the print subject is printed by the handy printer 100 is described, focusing on a printing process performed by the handy printer 100 and a print subject transmission process performed by the terminal device 200.
In response to a user instruction to start processing, the terminal device 200 starts a print subject transmission process illustrated in
As illustrated in
Then the reference pattern acquirer 212 specifies a portion in the image of the print medium R as a reference pattern that serves as a reference for printing the print subject (Step S104). Specifically, the reference pattern acquirer 212 specifies as the reference pattern a characteristic pattern that is at a position through which the image acquirer 130 and the print head 150 pass before the print subject is printed (the position is located leftward from the printing position of the print subject). Then the reference pattern acquirer 212 determines a relative position of the reference pattern with respect to an intended position at which the print subject is to be printed (Step S105). Specifically, the reference pattern acquirer 212 determines the relative position based on the sub-scanning-direction distance d4 between the reference pattern and the print subject.
The print subject transmitter 213 determines whether an instruction to transmit the data indicating the print subject is received (Step S106). When a determination is made that the instruction to transmit the data is not received (No in Step S106), the process repeats Step S106. When a determination is made that the instruction to transmit the data is received (Yes in Step S106), the print subject transmitter 213 transmits, via the communicator 230 to the handy printer 100, data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed (Step S107). Then the print subject transmitter 213 determines whether an instruction to end the print subject transmission process is received (Step S108).
When a determination is made that the instruction to end the print subject transmission process is not received (No in Step S108), the process returns to Step S101 and repeats Steps S101 to S108. When a determination is made that the instruction to end the print subject transmission process is received (Yes in Step S108), the print subject transmission process ends.
In response to transmission by the terminal device 200 of data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed, the print subject acquirer 111 of the handy printer 100, as illustrated in
Upon movement of the handy printer 100 by the user, the determiner 113 determines whether the reference pattern is included in the image acquired by the image acquirer 130 (Step S203). Specifically, upon the handy printer 100 being moved, the image acquirer 130 scans the print medium R and acquires the image of the print medium R. The determiner 113 extracts an amount of features from the image acquired by the image acquirer 130 and determines whether an amount by which the extracted features match features included in the reference pattern is equal to or greater than a reference value. When a determination is made that the reference pattern is not included (No in Step S203), the process repeats Step S203. When a determination is made that the reference pattern is included (Yes in Step S203), the indicator display controller 112 controls the indicator 120 to be lit yellow (Step S204).
The determiner 113 detects the travel distance L and determines whether a total distance of the distance d4 and the reference distance d1 has been traveled since detection of the reference pattern (Step S205). When a determination is made that the total distance of the distance d4 and the reference distance d1 has not been traveled (No in Step S205), the process repeats Step S205. When a determination is made that the total distance of the distance d4 and the reference distance d1 has been traveled (Yes in Step S205), the indicator display controller 112 controls the indicator 120 to be lit white (Step S206). Then the print head controller 114 starts a dot-line printing process (Step S207).
Upon start of the dot-line printing process, the print head controller 114, as illustrated in
The print head controller 114 determines whether a distance corresponding to one dot pitch has been traveled (Step S208). When a determination is made that the distance corresponding to one dot pitch has not been traveled (No in Step S208), the process repeats Step S208. When a determination is made that the distance corresponding to one dot pitch has been traveled (Yes in Step S208), the print head controller 114 determines whether printing of the print subject is complete (Step S209). When a determination is made that the printing of the print subject is not complete (No in Step S209), the process returns to Step S207, and repeats Steps S207 to S209 until the printing is complete.
When a determination is made that the printing of the print subject is complete (Yes in Step S209), the indicator display controller 112 controls the indicator 120 to be lit blue (Step S210). Then after passage of a fixed period, the indicator display controller 112 controls lighting of the indicator 120 to be tuned off (Step S211). Then the printing process ends.
Next, processing performed by the handy printer 100 and the terminal device 200 according to the embodiment is described using a specific example with reference to
This example describes printing of a print subject, “Off”, in a segment of July 6th on a calendar preprinted on the print medium R illustrated in
First, in response to a user instruction to start processing, the handy printer 100 starts a printing process and the terminal devices 200 starts a print subject transmission process. Upon start of the print subject transmission process by the terminal device 200, the print subject acquirer 211 acquires data indicating the print subject, “Off”, received through the input receiver 250 from a user (Step S101;
The reference pattern acquirer 212 specifies as the reference pattern a characteristic pattern included in the image of the print medium R (Step S104;
Upon reception of an instruction to transmit the data indicating the print subject (Yes in Step S106;
In response to transmission by the terminal device 200 of data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed, the print subject acquirer 111 of the handy printer 100 acquires the data indicating the print subject, the data indicating the reference pattern, and the data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed, all of which are received via the communicator 160 from the terminal device 200, and stores the acquired data in the RAM 180 (Step S201;
Then, as illustrated in
The determiner 113 detects the travel distance L and determines whether a total distance of the distance d4 and the reference distance d1 has been traveled since detection of the reference pattern (Step S205;
Upon start of the dot-line printing process, the print head controller 114 detects the travel distance L that has been traveled since detection of the reference pattern (Step S301;
When the print head controller 114 determines that a distance corresponding to one dot pitch has been traveled (Yes in Step S208;
As described above, according to the printing system 1 and the handy printer 100 according to the embodiment of the present disclosure, the print subject can be printed on the print medium R based on a relative position of a position at which the reference pattern is detected with respect to an intended position at which the print subject is to be printed. This can achieve printing of the print subject at an accurate position relative to the reference pattern. The terminal device 200 displays the print subject as an overlay on the image of the print medium R on the display 240 before printing. In displaying of the print subject, a user can adjust the position and size of the print subject displayed on the display 240 by operation of the input receiver 250. This enables the user to check the printing position beforehand and decide the position and size of the print subject not to be printed over the characters and the like preprinted on the print medium R.
The handy printer 100 according to the aforementioned embodiment is described with an example in which the print subject is printed upon by the total distance of the distance d4 and the reference distance d1 having been traveled since detection of the reference pattern. The relative position of the reference pattern with respect to the intended position at which the print subject is to be printed may be adjusted in accordance with a position of the reference pattern in the main scanning direction. Specifically, the print head controller 114 causes the print head 150 to print the print subject at a main-scanning-direction relative position of a pre-stored reference pattern with respect to the intended position at which the print subject is to be printed, based on the main-scanning-direction position of the reference pattern acquired by the image acquirer 130. An example in which the portion P is the reference pattern such as illustrated in
The handy printer 100 according to the aforementioned embodiment is described with an example in which the print subject is printed after detection of the reference pattern. When a user moves the handy printer 100, off-course movement of the handy printer 100 from the reference pattern may occur. In such a case, correction of the travel position is difficult unless the user knows a direction of deviation. The handy printer 100 may include a notifier that notifies a user of deviation of the travel position from the position of the reference pattern when the deviation is detected in the image acquired by the image acquirer 130. Specifically, when the controller 110 detects a portion of the reference pattern and detects deviation of the travel position, the notifier notifies a user of the travel position being deviated. For example, as illustrated in
The handy printer 100 according to the aforementioned embodiment is described with an example in which the handy printer 100 receives, from the terminal device 200, data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed. The handy printer 100 may prestore, in the ROM 170, data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed. For example, as illustrated in
The handy printer 100 according to the aforementioned embodiment is described with an example in which the image acquirer 130 includes the scanner having optical elements arranged linearly in the main scanning direction. The image acquirer 130 may be any image acquirer that can acquire an image of the print medium R prior to printing by the print head 150. The image acquirer 130, for example, may be a camera that captures an image of the print medium R.
The aforementioned embodiment is described with an example in which the terminal device 200 transmits data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed. The terminal device 200 may transmit any one of data indicating the print subject, data indicating the reference pattern, and data indicating the relative position of the reference pattern with respect to the intended position at which the print subject is to be printed.
The terminal device 200 according to the aforementioned embodiment is described with an example in which the reference pattern acquirer 212 acquires data indicating the image of the print medium R captured by the image capturer 220. The reference pattern acquirer 212 may acquire data indicating an image of the print medium R scanned by the image acquirer 130 of the handy printer 100. In this case, the handy printer 100 transmits, via the communicator 160, data indicating the image of the print medium R scanned by the image acquirer 130. The terminal device 200 receives, via the communicator 230, data indicating the image of the print medium R, and displays the image of the print medium R on the display 240. This enables accurate acquisition of the size of the reference pattern preprinted on the print medium R.
Although in the aforementioned embodiment, an example of ink ejection in which the print head 150 ejects magenta-color ink, cyan-color ink, and yellow-color ink from the corresponding nozzles is described, the print head 150 may be a print head that ejects one or two colors of ink or four or more colors of ink. In addition, the print head 150 is of an ink jet type with linearly arranged nozzles, but the print head 150 may be of a thermal type or another type.
The aforementioned embodiment is described with an example in which the travel distance detector 140 includes the light source such as an LED and the optical sensor. The travel distance detector 140 may be any detector that can detect a distance by which the handy printer 100 is traveled in the sub-scanning direction. The travel distance detector 140, for example, may include a roller that rotates upon movement and a sensor that counts the number of revolutions of the roller.
Although in the aforementioned embodiment, an example in which the handy printer 100 is separate from the terminal device 200 is described, the handy printer 100 may include components included in the terminal device 200.
A main part of the print subject transmission process and the printing process performed by the handy printer 100 and the terminal device 200, both of which include the CPU, the RAM, and the ROM, may be realized not by a dedicated system, but can be executed using a general personal digital assistant (a smartphone, a tablet PC, etc.), a personal computer, or the like, without use of a dedicated system. For example, an information terminal that executes the aforementioned processes may be realized by storing a computer program for executing the aforementioned operations in a computer-readable recording medium, such as a flexible disc, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), for distribution and installing the computer program into the personal digital assistant or the like. An information processing device may be configured, for example, by the general personal digital assistant or the like downloading the computer program stored in a storage included in a server device on a communication network, such as the Internet.
For example, in a case in which the functions of the handy printer 100 and the terminal device 200 are shared by an operating system (OS) and an application program or performed in cooperation between the OS and the application program, just the application program of those may be stored in a recording medium or a storage device.
The computer program may be superimposed on a carrier wave, and then may be distributed via a communication network. For example, this computer program may be posted to a bulletin board system (BBS) on a communication network, and may be distributed via the network. Then the computer program may be started and executed under control of an OS in the same manner as other application programs to execute the aforementioned processes.
The foregoing describes some example embodiments for explanatory purposes. Although the foregoing discussion has presented specific embodiments, persons skilled in the art will recognize that changes may be made in form and detail without departing from the broader spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense. This detailed description, therefore, is not to be taken in a limiting sense, and the scope of the invention is defined only by the included claims, along with the full range of equivalents to which such claims are entitled.
Number | Date | Country | Kind |
---|---|---|---|
2018-156282 | Aug 2018 | JP | national |