This application claims priority from Japanese Patent Application No. 2019-178791 filed Sep. 30, 2019. The entire content of the priority application is incorporated herein by reference.
This disclosure relates to an inkjet recording apparatus configured to record an image and a storage medium storing program.
The standard for one-dimensional codes (bar codes) defines the ratio of the width of a bar and the space between two adjacent bars. If the ratio of the width of the bar and the space of the printed barcode image is out of the reference range, a reading error will occur. In order to prevent a reading error, when printing a barcode image on a recording medium such as paper, it is necessary to ensure the recording quality of the barcode image so that the ratio of the width of the bar and the space is within the reference range. This also applies to the two-dimensional code.
For example, there is disclosed an inkjet recording apparatus that performs printing while selecting a head for recording large dots for a solidly recorded area and selecting a head for recording small dots for a finely recorded area such as a barcode, based on information read from a recording medium. In addition, there is disclosed an inkjet printing apparatus including control means for reducing the amount of ink ejection of an inkjet print head when the presence of barcode information in print image information is detected. These techniques reduce the amount of ink ejection for a barcode image and suppress the bars from becoming excessively thick, thereby securing the recording quality of barcode images.
According to one aspect, this specification discloses an inkjet recording apparatus. The inkjet recording apparatus includes a head, a carriage, a conveyor, a memory, and a controller. The head has a plurality of nozzles configured to eject ink droplets onto a recording medium. The head is mounted on the carriage. The carriage is configured to reciprocate in a first direction such that the head moves relative to the recording medium. The conveyor is configured to convey the recording medium in a second direction perpendicular to the first direction. The controller is configured to: extract an image resolution in the first direction of image data stored in the memory; determine, based on the image data, whether a straight line portion is included in a boundary between a recorded region and a non-recorded region of an image to be recorded on the recording medium; in response to determining that the straight line portion is included, determine whether the first direction is perpendicular to an extending direction of the straight line portion; determine whether a recording resolution in the first direction is lower than the extracted image resolution, the recording resolution being stored in the memory; in response to determining that the first direction is perpendicular to the extending direction and that the recording resolution is lower than the extracted image resolution, determine whether at least part of a predicted landing region is located outside a reference line, the predicted landing region being a landing region on the recording medium of an ink droplet forming an edge of the straight line portion of the recorded region assuming that the image is recorded with the recording resolution, the reference line being defined by ink droplets forming the edge of the straight line portion assuming that the image is recorded with a higher resolution than the recording resolution stored in the memory; and in response to determining that the at least part of the predicted landing region is located outside the reference line, control the head and the carriage to adjust ejection timing of the ink droplet forming the edge of the straight line portion such that a protruding area of an actual landing region of the ink droplet is smaller than a protruding area of the predicted landing region, the protruding area being an area located outside the reference line.
According to another aspect, this specification also discloses a non-transitory computer-readable storage medium storing a set of program instructions for a computer of an electronic device that controls an inkjet recording apparatus. The set of program instructions, when executed by the computer, causing the electronic device to: extract an image resolution in a first direction of image data stored in a memory of the electronic device, the inkjet recording apparatus including a head having a plurality of nozzles for ejecting ink droplets onto a recording medium and a movement mechanism configured to cause at least one of the head and the recording medium to move in the first direction such that the head moves relative to the recording medium; determine, based on the image data, whether a straight line portion is included in a boundary between a recorded region and a non-recorded region of an image to be recorded on the recording medium; in response to determining that the straight line portion is included, determine whether the first direction is perpendicular to an extending direction of the straight line portion; determine whether a recording resolution in the first direction is lower than the extracted image resolution, the recording resolution being stored in the memory; in response to determining that the first direction is perpendicular to the extending direction and that the recording resolution is lower than the extracted image resolution, determine whether at least part of a predicted landing region is located outside a reference line, the predicted landing region being a landing region on the recording medium of an ink droplet forming an edge of the straight line portion of the recorded region assuming that the image is recorded with the recording resolution, the reference line being defined by ink droplets forming the edge of the straight line portion assuming that the image is recorded with a higher resolution than the recording resolution stored in the memory; and in response to determining that the at least part of the predicted landing region is located outside the reference line, control the head and the carriage to adjust ejection timing of the ink droplet forming the edge of the straight line portion such that a protruding area of an actual landing region of the ink droplet is smaller than a protruding area of the predicted landing region, the protruding area being an area located outside the reference line.
According to still another aspect, this specification also discloses an inkjet recording apparatus. The inkjet recording apparatus includes a head, a conveyor, a memory, and a controller. The head is configured to eject ink onto a recording medium. The head extends in a width direction of the recording medium. The conveyor is configured to convey the recording medium in a conveyance direction perpendicular to the width direction. The controller is configured to: extract an image resolution in the conveyance direction of image data stored in the memory; determine, based on the image data, whether a straight line portion is included in a boundary between a recorded region and a non-recorded region of an image to be recorded on the recording medium; in response to determining that the straight line portion is included, determine whether the conveyance direction is perpendicular to an extending direction of the straight line portion; determine whether a recording resolution in the conveyance direction is lower than the extracted image resolution, the recording resolution being stored in the memory; in response to determining that the conveyance direction is perpendicular to the extending direction and that the recording resolution is lower than the extracted image resolution, determine whether at least part of a predicted landing region is located outside a reference line, the predicted landing region being a landing region on the recording medium of an ink droplet forming an edge of the straight line portion of the recorded region assuming that the image is recorded with the recording resolution, the reference line being defined by ink droplets forming the edge of the straight line portion assuming that the image is recorded with a higher resolution than the recording resolution stored in the memory; and in response to determining that the at least part of the predicted landing region is located outside the reference line, control the head to adjust ejection timing of the ink droplet forming the edge of the straight line portion such that a protruding area of an actual landing region of the ink droplet is smaller than a protruding area of the predicted landing region, the protruding area being an area located outside the reference line.
Embodiments in accordance with this disclosure will be described in detail with reference to the following figures wherein:
There is a case that the recording resolution of the image actually recorded by a printer on a recording medium is lower than the image resolution of an original image data created and stored by a PC (personal computer) or stored in the memory of the printer. The inventor of this disclosure found that, in this case, a dot row forming an edge of a bar (recorded region) extending in the direction (second direction) perpendicular to the direction (first direction) having a recording resolution lower than the image resolution is sometimes formed to protrude outside the position where the dot row should be. If the dot row forming the edge of the bar is formed outside the position where it should be, the width ratio of the bar and the space of the bar code image in the recorded image is out of the reference range, and a reading error may occur. Further, when a straight line such as a ruled line is recorded other than the code image, deterioration of the image quality may occur.
In view of the foregoing, an example of an object of the present disclosure is to provide an inkjet recording apparatus that secures the recording quality of straight line portions in the recorded region of an image and a storage medium storing program.
A printer as an inkjet recording apparatus of an embodiment of this disclosure will be described while referring to the accompanying drawings.
[Overall Configuration of Printer]
First, a printer 10 according to the present embodiment will be described. As shown in
The paper feed tray 4 is configured to support and accommodate a plurality of papers of paper 9 in a stacked state. The paper feed tray 4 is configured to be inserted into and removed from the housing 11 in the front-rear direction. The paper feed tray 4 has a support surface 4 that supports the paper 9. An inclined plate 4b is provided at the rear end of the paper feed tray 4.
The paper discharge tray 5 accommodates the paper 9 on which an image is recorded by a head 62 of the printing unit 6 described later. The paper discharge tray 5 is arranged above the front side of the paper feed tray 4, and is configured to move as the paper feed tray 4 is inserted into and removed from the housing 11.
The printing unit 6 includes a carriage 61 and the head 62. The carriage 61 is supported by two guide rails 65a and 65b. The two guide rails 65a and 65b are arranged to be separated from each other in the front-rear direction, and each of the guide rails 65a and 65b extends in the left-right direction. The carriage 61 is arranged to straddle the two guide rails 65a and 65b. The carriage 61 is driven by a carriage motor 31 (see
The head 62 is mounted on the carriage 61 and reciprocates in the scanning direction together with the carriage 61. As shown in
The conveyance unit 7 conveys the paper 9 inside the printer 10, and includes a paper feed roller 70, a pair of conveyance rollers 71, a pair of discharge rollers 72, a platen 73, and a guide member 74. The paper feed roller 70 is disposed above the paper feed tray 4, and is rotated by being applied with a driving force from a paper feed motor 32 (see
The platen 73 is arranged below the printing unit 6 so as to face the nozzle surface 66 of the printing unit 6. The guide member 74 defines a conveyance path 14 for sending the paper 9 sent out from the paper feed tray 4 by the paper feed roller 70 to a region facing the nozzle surface 66 of the head 62. The guide member 74 extends from a position near the rear end of the paper feed tray 4 to a position near the pair of conveyance rollers 71.
The paper 9 fed rearward from the paper feed tray 4 by the paper feed roller 70 is directed obliquely upward by the inclined plate 4b provided at the rear end of the paper feed tray 4, passes through the conveyance path 14 defined by the guide member 74, and reaches a position where the paper 9 is nipped by the pair of conveyance rollers 71. The paper 9 nipped by the pair of conveyance rollers 71 is conveyed to the region facing the nozzle surface 66 of the head 62 by the rotation of the pair of conveyance rollers 71. In a state where the paper 9 conveyed by the pair of conveyance rollers 71 is supported by the platen 73, ink is ejected from nozzles 67 provided on the nozzle surface 66 of the head 62 that moves in the scanning direction so that an image is recorded on the paper 9. The paper 9 on which the image is recorded is conveyed forward by the pair of discharge rollers 72 and is discharged onto the discharge tray 5.
[Controller]
The controller 8 controls the entire printer 10, and as shown in
The controller 8 includes a CPU (Central Processing Unit) 81, a ROM (Read Only Memory) 82, a RAM (Random Access Memory) 83, an ASIC (Applicant Specific Integrated Circuit) 84, and so on. At least part of the ROM 82 is an electrically erasable and rewritable EEPROM (Electrically Erasable Programmable Read-Only Memory). The ROM 82 stores programs executed by the CPU 81 and the ASIC 84, various fixed data, and so on. Further, the ROM 82 includes a resolution storage section 82a that preliminarily stores information on a plurality of recording resolutions, that is, printing resolutions (for example, 300 dpi, 600 dpi, 1200 dpi, 2400 dpi, and so on) in each of the conveyance direction and the scanning direction recorded by the printer 10. In an initial state, one of the plurality of recording resolutions for each of the conveyance direction and the scanning direction is set as the default recording resolution that is to be used during recording. The RAM 83 includes an image data storage section 83a that temporarily stores image data and so on necessary for executing the programs. The PC 20 has a CPU, a ROM, a RAM, and an HDD (Hard Disk Drive), which are not shown. An OS (Operation System) and a printer driver are installed in the HDD. The CPU controls the operation of the printer 10 by executing the printer driver. The printer driver may be also installed in the ROM of the mobile terminal.
When image data is inputted from a USB memory connected to the USB interface 41 or from the PC 20, the controller 8 causes the CPU 81 and the ASIC 84 to execute recording processing based on the program stored in the ROM 82 and on the image data temporarily stored in the RAM 83. With this operation, an image relating to the image data is recorded on the paper 9. In the recording processing, the controller 8 controls driving of the carriage motor 31 and the head 62 so as to perform a pass recording operation of ejecting ink from the nozzles 67 of the head 62 while moving the carriage 61 in the scanning direction based on the recording resolution stored in the ROM 82 and on the image data stored in the RAM 83. Further, the controller 8 controls driving of the conveyance motor 33 such that, after the pass recording operation is performed twice, the conveyance unit 7 conveys the paper 9 by a particular distance in the conveyance direction. In the printer 10 according to this embodiment, in order to record the image 50 relating to inputted image data on the paper 9, the pass recording operation by the printing unit 6 and the conveyance operation of the paper 9 by the conveyance unit 7 are repeatedly executed.
[Ink Dots Forming Bars]
Image data which is the target of the present embodiment will be described. As shown in
A case will be described below where, as shown in
In such a case,
In
With respect to the ink dots within the dot rows 210a and 210d forming the edges of the bar, half of each dot is located outside reference lines 221 and 222 drawn by the double-dot chain lines indicating reference landing positions and extending in the conveyance direction. In the present embodiment, the reference landing positions refer to landing positions on the paper 9 by the ink droplets forming the edges of the bar when it is assumed that the one-dimensional code image 100 is recorded with the same recording resolution as the image resolution (1200 dpi) of the image data in the scanning direction.
The reference landing positions will be described in more detail with reference to
In
Since in the comparative example as described above, as shown in
In a first recording example of the present embodiment, when at least part of the predicted landing positions (predicted landing regions) of the ink droplets forming the left and right edges of the recorded regions 100a are located outside the lines 221 and 222, the ejection timing of the ink droplets is adjusted, such that the dots belonging to the dot rows 210a and 210d are located inside the lines 221 and 222.
A more detailed description will be given based on
As is understood from
In a modification of the first recording example, by the ejection timing adjustment, the ink dot Dp1 belonging to the dot row 210a may be moved rightward by a distance corresponding to four dots at 1200 dpi, and the ink dot Dp2 belonging to the dot row 210d may be moved leftward by the distance corresponding to four dots at 1200 dpi. In this way, as shown in
In another modification of the first recording example, the position of the ink dot Dp1 belonging to the dot row 210a after the ejection timing adjustment may be in such a position as to be located rightward of the ink dot Dp1 and leftward of the ink dot Db1, and the position of the ink dot Dp2 belonging to the dot row 210d after the ejection timing adjustment may be in such a position as to be located leftward of the ink dot Dp2 and rightward of the ink dot Db2. In other words, the positions of the ink dots after the ejection timing adjustment are preferably moved toward inside the lines 221 and 222 as compared with the ink dots Dp1 and Dp2 before the ejection timing adjustment. Even in such a case, the amount of ejection timing adjustment is calculated by dividing the amount of movement of the ink dot by the carriage movement speed. The two modifications of the first recording example described above may also be applied to a second recording example and a third recording example, which will be described later.
Next, the second recording example of the present embodiment will be described further with reference to
Next, the third recording example of the present embodiment will be described further with reference to
[Printer Operation Based on Third Recording Example]
Next, the operation of the printer 10 according to the present embodiment when the printer 10 records the image 50 on paper 9 will be described with reference to the flowchart of
First, a recording command relating to the image data is supplied to the printer 10 based on the operation of an operation interface (not shown) of the printer 10 or the operation of the PC 20 by a user. The image data is supplied from a USB memory or the PC 20 to the printer 10 accordingly and is temporarily stored in the RAM 83. For each of the conveyance direction and the scanning direction, one recording resolution included in the recording command may be set as the recording resolution to be used, instead of a default value. In step S1 (“step” will be hereinafter abbreviated as “S”), the controller 8 executes extraction processing of extracting the image resolution in the scanning direction relating to the image data stored in the RAM 83. The extraction processing may include, for example, referring to header information in an image file. Then, in S2, the controller 8 executes first determination processing of determining, based on the image data, whether the one-dimensional code image 100 is included in the image 50 to be recorded on the paper 9.
In response to determining that the one-dimensional code image 100 is not included in the image 50 to be recorded on the paper 9 (S2: NO), in S7, the controller 8 executes recording processing of recording the image 50 relating to the image data on the paper 9 by repeatedly performing a pass recording operation using the printing unit 6 and an operation of conveying the paper 9 with the conveyance unit 7, based on the recording resolution to be used for recording for each of the conveyance direction and the scanning direction and that is previously stored in the ROM 82. In response to determining that the one-dimensional code image 100 is included in the image 50 to be recorded on the paper 9 (S2: YES), in S3, the controller 8 executes second determination processing of determining in which one of the orientations shown in
In response to determining that the facing direction in which adjacent recorded regions 100a face each other is the same as the scanning direction (S3: YES), in S4, the controller 8 executes third determination processing of determining whether the recording resolution in the scanning direction previously stored in the ROM 82 is lower than the image resolution in the scanning direction extracted in the extraction processing (S1). When the recording resolution in the scanning direction is higher than or equal to the image resolution in the scanning direction (S4: NO), the controller 8 executes the recording processing described above (S7).
In response to determining that the recording resolution in the scanning direction is lower than the image resolution in the scanning direction (S4: YES), in S5, the controller 8 derives the predicted landing positions and the reference landing positions. The predicted landing positions are landing positions of the ink droplets forming the edges of the recorded region on the paper 9 when the one-dimensional code image 100 is recorded with the recording resolution in the scanning direction previously stored in the ROM 82. As described above, the reference landing positions are the lines 221 and 222 that are drawn in
In response to determining that the predicted landing positions are located outside the reference landing positions (S5: YES), in S6, the controller 8 executes ejection timing adjustment and dot addition processing, which has been described with reference to
The details of the ejection timing adjustment and the dot addition processing in S6 will be described with reference to
In S62, as described with reference to
Finally, the controller 8 derives an adjustment value for ejection timing such that the ink dots belonging to the dot row 210b are moved rightward so as to form the dot row 210b′, the ink dots belonging to the dot row 210c are moved leftward so as to form the dot row 210c′, and thus the landing positions of the ink droplets belonging to the four dot rows 210a′, 210b′, 210c′, and 210d′ are located at equal intervals in the scanning direction. Then, the controller 8 stores the ejection timing that is adjusted with the adjustment value or the adjustment value itself in the RAM 83.
With reference back to
After executing the recording processing (S7), in S8, the controller 8 executes discharge processing in which the paper 9 is discharged to the discharge tray 5 by the pair of discharge rollers 72. In this way, the printer 10 according to the present embodiment completes the operation of recording the image 50 on the paper 9.
As described above, in the present embodiment, when the one-dimensional code image 100 is included in the image 50 to be recorded on the paper 9, the recording quality of the bar is secured. Because the recording resolution of the entire image is not increased, the recording speed is not decreased. Further, because the recording resolution in the scanning direction (the first direction) is not increased, the recording speed is not decreased.
While the disclosure has been described in detail with reference to the above aspects thereof, it would be apparent to those skilled in the art that various changes and modifications may be made therein without departing from the scope of the claims.
Although the first to third recording examples have been described with respect to the above-described embodiment, other dot arrangements may be adopted. For example, the four dot rows 210a′, 210b′, 210c′, 210d′ may be arranged at equal intervals in the scanning direction without adding the ink dots Di1, Di2. This corresponds to an arrangement in which the ink dots Di1, Di2 are omitted in
The reference landing positions may be the landing positions on a recording medium of ink droplets forming an edge of a straight line portion of the recorded region when an image is recorded with a resolution other than the image resolution (1200 dpi) of image data in the scanning direction, the resolution being a recording resolution higher than the recording resolution in the scanning direction that is stored in the resolution storage section 82a.
In the above-described embodiment, the entirety of each ink dot Da1, Da2 after adjusting ejection timing is located inside the lines 221 and 222. Alternatively, a part of each ink dot Da1, Da2 may be located outside the lines 221 and 222 as long as the area of the part of each ink dot Da1, Da2 located outside the lines 221 and 222 (the protruding area) is smaller than the area of the part of each ink dot Dp1, Dp2 located outside the lines 221 and 222 (the protruding area) before adjustment of ejection timing.
The order of S62 and S63 described in
In the above-described embodiment, the printer 10 is a serial printer including the carriage 61 that reciprocates in the scanning direction along the two guide rails 65a and 65b, the head 62 being mounted on the carriage 61. Alternatively, as shown in
In the above-described embodiment, the one-dimensional code image is recorded on paper, but a two-dimensional code image such as a QR Code™ may be recorded. In that case, the effect of ensuring the recording quality applies to the scanning direction in the case of a serial printer, and applies to the conveyance direction in the case of a line printer.
The present disclosure may be applied not only to a code image but also to an image that includes a straight line portion at the boundary between a recorded region and a non-recorded region (for example, an image that includes ruled lines). In that case, in the first determination processing, it is determined whether a straight line portion is included at the boundary between the recorded region and the non-recorded region of the image to be recorded on a recording medium, instead of determining whether a code image formed by a plurality of recorded regions and a plurality of non-recorded regions is included in the image to be recorded on the recording medium.
In the above-described embodiment, the controller 8 provided in the printer 10 executes the extraction processing, the first to fourth determination processing, the recording processing, and so on, but the present disclosure is not limited to this. For example, a printer driver installed in the HDD of the PC 20 connected to the printer 10 or in the ROM of the mobile terminal may cause the PC 20 or the mobile terminal to execute some or all of these processing.
In the above-described embodiment, the present disclosure is applied to the printer 10, but the present disclosure is not limited to this. The present disclosure may also be applied to any inkjet recording apparatus that ejects ink from a head, such as a multifunction peripheral and a copier.
Number | Date | Country | Kind |
---|---|---|---|
2019-178791 | Sep 2019 | JP | national |