Printing device, print quality determination method, and print quality determination program

The printing device accurately determines barcode print quality by reading, modifying, and notifying users of adherence to standards, addressing the uncertainty in existing systems.

JP7600821B2Active Publication Date: 2024-12-17BROTHER KOGYO KK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2021057506
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-12-17
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

Printing devices that judge the printing quality of barcodes cannot accurately determine if the print quality meets predetermined standards, leading to uncertainty in user verification.

Method used

A printing device with a control unit that reads printed barcodes, acquires determination image data, modifies it if necessary, and notifies the user if the print quality meets predetermined criteria through a notification unit.

Benefits of technology

Enables users to confirm whether the print quality of barcodes is appropriately determined, reducing the risk of erroneous OK judgments on substandard prints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007600821000001
    Figure 0007600821000001
  • Figure 0007600821000002
    Figure 0007600821000002
  • Figure 0007600821000003
    Figure 0007600821000003
Patent Text Reader

Abstract

To provide a printer, printing quality determination method and printing quality determination program which allow a user to determine whether determination on the printing quality of a printed bar code is properly performed in comparison to a prior technique.SOLUTION: A printer comprises: a supply unit; a printing unit; a conveyance unit; a conveyance drive unit; a display unit; a control unit; and a reading unit. The control unit of the printer acquires image data for determination that does not satisfy a prescribed standard used for determination of the printing quality of a bar code (S7). The control unit prints an image for determination on a medium M on the basis of the image data for determination by controlling the printing unit (S8). The control unit determines whether the read image data for determination output by reading the image for determination by the reading unit satisfies the prescribed standard (S11). The control unit controls a notification unit to notify of an error (S18) when it is determined that the read image data for determination satisfies the prescribed standard (S15: NO).SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a printing device, a print quality determination method, and a print quality determination program. [Background technology]

[0002] Conventionally, a printing device that prints an image on a long medium prints a barcode, reads the printed image, and determines whether the read image matches the image to be printed (see, for example, Patent Document 1). If the read image information does not match the image information to be printed, the printing device prints a defect mark and notifies an error. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2017-7111 A Summary of the Invention [Problem to be solved by the invention]

[0004] Conventional printing devices that judge the print quality of barcodes will determine that the print quality of all barcodes meets a specified standard when there is no dirt or other impurities inside the printing device, and the user cannot determine whether the printing device is properly judging the print quality of the barcodes.

[0005] The present invention aims to provide a printing device, a print quality judgment method, and a print quality judgment program that allow a user to judge whether the print quality of a printed barcode is being judged more appropriately than in the past. [Means for solving the problem]

[0006] A printing device according to a first aspect of the present invention includes a supply unit that supplies a long medium, a printing unit that prints an image on the medium fed from the supply unit, a transport unit that transports the medium in a transport direction from the supply unit to the printing unit, a transport drive unit that drives the transport unit, an alarm unit, a control unit that controls the printing unit, the transport drive unit, and the alarm unit, and a reading unit that reads the image printed by the printing unit and outputs read image data to the control unit, wherein the control unit functions as a judgment image data acquisition unit that acquires judgment image data that does not satisfy a predetermined standard used to judge the print quality of a barcode, a printing control unit that controls the printing unit to print a judgment image on the medium based on the judgment image data, a quality judgment unit that judges whether the read judgment image data read and output by the reading unit satisfies the predetermined standard, and a notification control unit that controls the alarm unit to report an error when the quality judgment unit judges that the read judgment image data satisfies the predetermined standard. When the printing device determines that the read judgment image data meets a predetermined standard used to judge the print quality of the barcode, the printing device controls the notification unit to notify an error. Therefore, the printing device can notify the user whether the print quality of the printed barcode has been properly judged based on whether the print quality of the judgment image can be properly judged.

[0007] A print quality judgment method according to a second aspect of the present invention is a print quality judgment method executed by a control unit of a printing device including a supply unit that supplies a long medium, a printing unit that prints an image on the medium unwound from the supply unit, a transport unit that transports the medium in a transport direction from the supply unit toward the printing unit, a transport drive unit that drives the transport unit, an alarm unit, a control unit that controls the printing unit, the transport drive unit, and the alarm unit, and a reading unit that reads the image printed by the printing unit and outputs read image data to the control unit, the print quality judgment method comprising the following steps: a judgment image data acquisition step of acquiring judgment image data that does not satisfy a specified standard used to judge the print quality of a barcode; a printing control step of controlling the printing unit to print a judgment image on the medium based on the judgment image data; a quality judgment step of judging whether the read judgment image data read and output by the reading unit satisfies the specified standard; and a notification control step of controlling the alarm unit to report an error if it is determined in the quality judgment step that the read judgment image data satisfies the specified standard. When the control unit of the printing device executes the print quality judgment method, if the printing device judges that the read judgment image data meets the predetermined criteria used to judge the print quality of the barcode, the printing device controls the notification unit to notify an error. Therefore, the printing device can notify the user whether the print quality of the printed barcode has been judged appropriately based on whether the print quality of the judgment image can be judged appropriately.

[0008] A print quality judgment program according to a third aspect of the present invention is a print quality judgment program including instructions to be executed by a control unit of a printing device including a supply unit that supplies a long-sized medium, a printing unit that prints an image on the medium fed from the supply unit, a transport unit that transports the medium in a transport direction from the supply unit toward the printing unit, a transport drive unit that drives the transport unit, a notification unit, a control unit that controls the printing unit, the transport drive unit, and the notification unit, and a reading unit that reads the image printed by the printing unit and outputs read image data to the control unit, the print quality judgment program including instructions to be executed by the control unit of the printing device including instructions to be executed by the control unit of the printing device, The program includes instructions to cause the control unit of the printing device to execute a judgment image data acquisition process for acquiring judgment image data that does not satisfy a predetermined standard used for judgment, a print control process for controlling the printing unit to print a judgment image on the medium based on the judgment image data, a quality judgment process for judging whether the read judgment image data read and output by the reading unit satisfies the predetermined standard, and a notification control process for controlling the notification unit to notify an error if the quality judgment process judges that the read judgment image data satisfies the predetermined standard. When the control unit of the printing device executes the print quality judgment program, the printing device controls the notification unit to notify an error if it is judged that the read judgment image data satisfies the predetermined standard used for judging the print quality of a barcode. Therefore, the printing device can notify the user whether the print quality of the printed barcode has been judged appropriately based on whether the print quality of the judgment image can be judged appropriately. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a perspective view of a printing device 1. [Diagram 2] FIG. 2 is a cross-sectional view showing the internal configuration of the printing device 1. [Diagram 3] 2 is a block diagram showing the electrical configuration of the printing device 1. FIG. [Figure 4] 1 is an explanatory diagram of a reference image 60 including a one-dimensional barcode 66 of specific example 1, and determination images 61 to 63, which are printed on a medium M. FIG. [Diagram 5]FIG. 13 is an explanatory diagram of table 79. [Figure 6] 10 is a flowchart of a print quality determination process. [Figure 7] 1 is an explanatory diagram of a reference image 90 including a two-dimensional code 96 of a specific example 2, and judgment images 91 to 93, which are printed on a medium M. FIG. [Figure 8] 13 is a flowchart of a print quality determination process according to a modified example. [Figure 9] FIG. 13 is an explanatory diagram of an image 68 printed based on the first data of the third specific example. [Figure 10] FIG. 13 is an explanatory diagram of an image 69 printed based on the second data of the fourth specific example. [Figure 11] 13 is a flowchart of a print quality determination process according to a modified example. [Figure 12] FIG. 13 is an explanatory diagram of a judgment image 81 of a specific example 5. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] A printing device 1 according to an embodiment of the present invention will be described in order with reference to the drawings. The drawings are used to explain technical features that the present invention can employ, and the configuration of the device described is not intended to be limited to the drawings, but is merely an explanatory example. In the description of this embodiment, the lower left, upper right, lower right, upper left, upper side, and lower side of FIG. 1 are respectively the front, rear, right, left, upper side, and lower side of the printing device 1.

[0011] The physical configuration of the printing device 1 will be described with reference to FIGS. 1 and 2. As shown in FIG. 1, the printing device 1 includes a housing 2, a display unit 3, and an operation unit 4. The housing 2 includes a front wall 24, a right wall 25, a rear wall 26, a left wall 29, a lower wall 27, an upper wall 28, and a cover 23. The housing 2 is a rectangular parallelepiped of a size that can be placed on a table. The housing 2 is formed with an outlet 21 and an opening 22. The outlet 21 is formed in the front wall 24 of the housing 2 in a rectangular shape that is long in the left-right direction when viewed from the front. The opening 22 is formed in the rear lower part of the right wall 25 of the housing 2 in a rectangular shape when viewed from the right side. The cover 23 is a plate that is rectangular when viewed from the right side, and is supported at the rear lower part of the right side of the housing 2 so as to be rotatable between a closed position that closes the opening 22, which is shown by a solid line in FIG. 1, and an open position that opens the opening 22, which is shown by a dashed line in FIG. 1. The display unit 3 is provided on the upper right part of the front surface of the front wall 24 of the housing 2, and displays images. The operation unit 4 is provided below the display unit 3 in the upper right part of the front surface of the front wall 24 of the housing 2, and consists of a number of buttons for inputting various instructions. The display unit 3 and the operation unit 4 are provided above the discharge port 21.

[0012] As shown in FIG. 2, the printer 1 accommodates a supply unit 5, conveying units 7, 10, 15, 19, 48, a partition wall 55, a tension applying unit 8, a medium detection unit 53, a printing unit 6, a fixing unit 40, a reading unit 45, and a cutting unit 50 inside a housing 2. The printer 1 is an inkjet printer that prints on a long medium M. The medium M is long and wound in a roll shape around a cylindrical paper tube K, for example. The supply unit 5 is provided in a space surrounded by the partition wall 55 and the rear wall 26 shown in FIG. 2 to the left of the cover 23 in the closed position shown by the solid line in FIG. 1 and at the rear lower part of the printer 1. The supply unit 5 holds a roll R. The supply unit 5 of this embodiment includes a shaft unit 51 and a magazine 52. The shaft unit 51 extends in the left-right direction and is inserted into the paper tube K of the roll R. The magazine 52 is a support base that is U-shaped when viewed from the front. The magazine 52 supports both left and right ends of the shaft portion 51 so that the shaft portion 51 can rotate around an axis extending in the left-right direction. The shaft portion 51 is removably supported by the magazine 52. The magazine 52 is removably supported by the printing device 1. When replacing the roll R, a user places the cover 23 shown in FIG. 1 in the open position, removes the magazine 52 shown in FIG. 2 from inside the housing 2, and performs the replacement work of the roll R. The partition wall 55 has a first wall portion 56 extending upward from the bottom wall 27 of the housing 2 and a second wall portion 57 extending rearward from the upper end of the first wall portion 56, and divides the internal space of the housing 2. The second wall portion 57 is separated from the rear wall 26 of the housing 2 in the front-rear direction.

[0013] The printing unit 6 prints an image on the medium M supplied from the supply unit 5. The printing unit 6 in this embodiment is an inkjet head that includes a plurality of nozzles 70 that discharge liquid G in a discharge direction, and prints an image on the medium M by discharging the liquid G from the plurality of nozzles 70. The discharge direction in this embodiment is downward, and the printing unit 6 is provided above a transport path Q of the medium M with the plurality of nozzles 70 facing downward. The transport path Q is a path along which the medium M is transported from the supply unit 5 until it is discharged from the discharge port 21 to the outside of the housing 2. The liquid G is supplied to the printing unit 6 from a tank 20 arranged inside the housing 2 via a tube (not shown).

[0014] The conveying unit 7 conveys the medium M in a conveying direction F from the supply unit 5 toward the printing unit 6 and a return direction B opposite to the conveying direction F. The conveying direction F is a direction along the conveying path Q from the supply unit 5 toward the printing unit 6. The conveying direction F is a direction intersecting with the left-right direction in which the rotation axis of the roll R extends, and is a direction that changes depending on the position on the conveying path Q. The conveying direction F from the supply unit 5 to the tension applying unit 8 is a direction that changes depending on the remaining amount of the medium M, and is generally upward when the remaining amount of the medium M is the initial value, that is, the remaining amount value immediately after the roll R is replaced, as shown in FIG. 2. The conveying direction F from the tension applying unit 8 to the discharge port 21 is generally forward. That is, in the printing device 1, the conveying path Q is bent at the portion where the medium M abuts against the tension applying unit 8, and the conveying direction F changes from upward to forward.

[0015] The transport unit 7 is provided upstream of the printing unit 6 in the transport direction and downstream of the supply unit 5 in the transport direction. In other words, the transport unit 7 is provided between the printing unit 6 and the supply unit 5 in the transport path Q of the medium M. The transport unit 7 in this embodiment has a transport roller 71 that rotates about an axis extending in the left-right direction, and a pinch roller 72, and nip transport is performed by sandwiching the medium M between the transport roller 71 and the pinch roller 72 from above and below.

[0016] The medium detection unit 53 outputs the detection result of the medium M to the control unit 30 of FIG. 3. The medium detection unit 53 of this embodiment is a transmission type sensor or a reflection type sensor. When the medium detection unit 53 is a reflection type sensor, the medium detection unit 53 detects the leading edge of the label M2, for example, based on the difference in reflectance between the backing sheet M1 and the label M2. When the backing sheet M1 has a plurality of holes arranged at a predetermined interval in the conveyance direction F and the medium detection unit 53 is a transmission type sensor, the medium detection unit 53 detects the leading edge of the label M2, for example, based on whether or not the light passes through the plurality of holes in the backing sheet M1.

[0017] The transport unit 10 is provided downstream in the transport direction from the transport unit 7, and transports the medium M in the transport direction F and the return direction B. The transport unit 10 of this embodiment rotates the roll R held in the supply unit 5 to transport the medium M in the return direction B and wind it up onto the roll R. The transport unit 10 of this embodiment removably engages with the shaft portion 51 of the supply unit 5. The transport unit 10 rotates the roll R held in the supply unit 5 to transport the medium M in the transport direction F and unwinds the medium M from the roll R towards the printing unit 6.

[0018] The tension applying unit 8 applies tension to the medium M between the supply unit 5 and the conveying unit 7 in the conveying path Q. The tension applies in the opposite direction to the traveling direction of the medium M. The tension applying unit 8 is disposed downstream in the conveying direction from the conveying unit 7 and upstream in the conveying direction from the conveying unit 10, and contacts the medium M to urge the medium M in a direction intersecting the conveying direction F. In other words, the tension applying unit 8 is provided between the conveying unit 7 and the conveying unit 10 in the conveying path Q. The tension applying unit 8 is provided behind the conveying unit 7 and above the supply unit 5.

[0019] The conveying unit 15 is provided below the printing unit 6 and downstream of the conveying unit 7 in the conveying direction, and conveys the medium M in the conveying direction F. The conveying unit 15 includes a driving roller 13, a driven roller 14, and an endless belt 16. The driving roller 13 and the driven roller 14 are spaced apart from each other in the front-rear direction. The endless belt 16 is stretched between the driving roller 13 and the driven roller 14. The driven roller 14 rotates with the rotation of the endless belt 16. The upper end of the outer peripheral surface of the endless belt 16 is approximately the same as the upper and lower positions of the portion where the medium M is nipped by the conveying unit 7, and faces the multiple nozzles 70 of the printing unit 6. The upper end of the outer peripheral surface of the endless belt 16 conveys the medium M conveyed between the conveying unit 7 and the conveying unit 19 in the conveying direction F, from below, in a state where the medium M is attracted to the endless belt 16 by static electricity or negative pressure.

[0020] The fixing unit 40 is disposed downstream in the transport direction relative to the printing unit 6 and upstream in the transport direction relative to the transport unit 19. The fixing unit 40 is a halogen heater, and includes a halogen lamp 41, a reflector 42, and a housing 43. An opening 44 is formed in the bottom wall of the housing 43 along the left-right direction. The fixing unit 40 radiates infrared light through the opening 44, and heats the medium M passing directly below the opening 44. As a result, the liquid G ejected onto the medium M by the printing unit 6 is fixed to the medium M.

[0021] The transport unit 19 is provided downstream in the transport direction with respect to the printing unit 6 and the fixing unit 40, and upstream in the transport direction with respect to the reading unit 45, the cutting unit 50, and the discharge port 21, and transports the medium M in the transport direction F and the return direction B. The transport unit 19 has a transport roller 17 that rotates about an axis extending in the left-right direction, and a pinch roller 18, and performs nip transport by sandwiching the medium M between the transport roller 17 and the pinch roller 18 from above and below.

[0022] The reading unit 45 is provided downstream in the conveying direction from the printing unit 6 and the conveying unit 19, and upstream in the conveying direction from the cutting unit 50 and the discharge port 21. The reading unit 45 is located directly above the conveying path Q. It optically reads an image printed on the surface of the label M2 of the medium M, and outputs an image signal indicating the read image. The reading unit 45 is, for example, a line image sensor such as a Contact Image Sensor (CIS) that is long in the width direction of the medium M, that is, in the left-right direction.

[0023] The transport unit 48 is provided downstream in the transport direction from the reading unit 45 and upstream in the transport direction from the cutting unit 50 and the discharge port 21, and transports the medium M in the transport direction F and the return direction B. The transport unit 48 has a transport roller 46 that rotates about an axis extending in the left-right direction, and a pinch roller 47, and nip transport is performed by sandwiching the medium M between the transport roller 46 and the pinch roller 47 from above and below.

[0024] The cutting unit 50 is provided downstream in the transport direction with respect to the reading unit 45 and the transport unit 48 and upstream in the transport direction with respect to the discharge opening 21, and is located directly above the transport path Q. The cutting unit 50 has a blade 59 that extends downward. The blade 59 is movable between a cutting position and a standby position, and cuts the medium M at a position on the transport path Q immediately after the discharge opening 21. As shown by the solid line in FIG. 2, the cutting position is a position where the blade 59 intersects with the transport path Q. As shown by the dotted line in FIG. 2, the standby position is a position where the blade 59 is separated from the transport path Q and is located directly above the transport path Q.

[0025] The electrical configuration of the printing device 1 will be described with reference to Fig. 3. The printing device 1 includes a control unit 30, a storage unit 31 electrically connected to the control unit 30, an operation unit 4, a display unit 3, transport drive units 9, 11, 38, 39, 49, a printing unit 6, a halogen lamp 41, encoders 33 to 37, a medium detection unit 53, a tension detection unit 54, a reading unit 45, and a cutting unit 50. The control unit 30 is responsible for controlling the printing device 1, and controls the printing unit 6, the halogen lamp 41, the transport drive units 9, 11, 38, 39, 49, the display unit 3, and the cutting unit 50. The storage unit 31 includes a ROM, a RAM, a flash memory, and the like that store various parameters and the like required when the control unit 30 executes various programs.

[0026] The conveyance drive unit 9 rotates the conveyance unit 7 under the control of the control unit 30. The conveyance drive unit 11 rotates the conveyance unit 10 under the control of the control unit 30. The conveyance drive unit 38 rotates the drive roller 13 of the conveyance unit 15 to rotate the endless belt 16 of the conveyance unit 15 under the control of the control unit 30. The conveyance drive unit 39 rotates the conveyance unit 19 under the control of the control unit 30. The conveyance drive unit 49 rotates the conveyance unit 48 under the control of the control unit 30. Each of the conveyance drive units 9, 11, 38, 39, and 49 is, for example, a stepping motor capable of forward and reverse rotation. The encoder 33 inputs a value corresponding to the drive amount to the conveyance drive unit 9 to the control unit 30. The encoder 34 inputs a value corresponding to the drive amount to the conveyance drive unit 11 to the control unit 30. The encoder 35 inputs a value corresponding to the drive amount to the conveyance drive unit 38 to the control unit 30. The encoder 36 inputs a value corresponding to the drive amount to the transport drive unit 39 to the control unit 30. The encoder 37 inputs a value corresponding to the drive amount to the transport drive unit 49 to the control unit 30. The tension detection unit 54 outputs a detection result corresponding to the tension applied by the tension application unit 8 to the medium M between the tension application unit 8 and the transport unit 7 to the control unit 30.

[0027] The configuration of the medium M will be described with reference to Fig. 4. As shown in Fig. 4, the medium M includes a long backing sheet M1 and a plurality of labels M2 affixed to the backing sheet M1. Each label M2 is rectangular, with a length L in the longitudinal direction of the medium M and a width W in the width direction perpendicular to the longitudinal direction. The plurality of labels M2 are affixed to the backing sheet M1 at equal intervals in the transport direction F with a gap J therebetween.

[0028] With reference to FIG. 5, the table 79 stored in the storage unit 31 will be described. As shown in FIG. 5, the table 79 stores the correspondence between the type of barcode, the judgment item, and the modification element. The judgment item is an item set to judge whether the read image data outputted by reading the printed barcode satisfies a predetermined standard for judging the print quality of the barcode. The table 79 stores the judgment item used to judge the print quality of the barcode for each type of barcode. The types of barcodes in this embodiment are two types, a one-dimensional barcode and a two-dimensional code. When the barcode is a one-dimensional barcode, the judgment items are six items, namely, symbol contrast, minimum reflectance, minimum edge contrast, modulation, defect, and decodability. When the reference barcode is a two-dimensional code, the judgment items are seven items, namely, symbol contrast, modulation, reflectance margin, fixed pattern damage, axis non-uniformity, lattice non-uniformity, and unused error correction. The modification element indicates the modification added to the reference image data in order to judge whether the printing device can appropriately judge the read image data for each judgment item. Table 79 stores the modification elements in association with the read-out order. When the barcode is a one-dimensional barcode, the modification elements are three elements: gradation defect, partial loss / stain addition, and line non-uniformity addition. When the barcode is a two-dimensional code, the modification elements are three elements: gradation defect, partial loss / stain addition, and position deviation addition.

[0029] With reference to FIG. 4 to FIG. 7, the print quality judgment process executed by the control unit 30 of the printing device 1 will be described using a specific example 1 in which the reference image 60 in FIG. 4 is printed and a specific example 2 in which the reference image 90 in FIG. 7 is printed. The print quality judgment process is executed when an instruction to execute the print quality judgment process is detected in the printing device 1. The instruction includes a command to execute the print quality judgment process, print data, and an instruction to execute the print process based on the print data. In the following description, each process step is abbreviated as "S". At the start of the print quality judgment process, the medium M is sandwiched between the conveying unit 7, and the attributes of the medium M are input to the printing device 1 by the user. The print quality judgment process of the specific example 1 and the print quality judgment process of the specific example 2 are executed at different times, but for simplicity of description, the print quality judgment process of the specific example 1 and the print quality judgment process of the specific example 2 will be described in parallel.

[0030] As shown in FIG. 6, the control unit 30 acquires reference image data (S1). The reference image data is data used to print a reference barcode. The reference barcode is a barcode used to judge print quality. The reference image data of the specific example 1 is data stored in advance in the storage unit 31 for judging print quality. In the specific example 1, reference image data of a reference image 60 having a one-dimensional barcode 66 as a reference barcode, which is stored in advance in the storage unit 31, is acquired. The reference image 60 includes the one-dimensional barcode 66. The reference image data of the specific example 2 is data used in a print process designated by a user. In the specific example 2, the reference image data of a reference image 90 input as print data and having a two-dimensional code 96 as a reference code is acquired. The reference image 90 includes a two-dimensional code 96 and character strings 97 and 98. The character string 97 is arranged to the right of the two-dimensional code 96. The character string 98 is arranged to the left of the two-dimensional code 96.

[0031] The control unit 30 controls the printing unit 6, the transport driving units 9, 11, 38, 39, 49, and the halogen lamp 41 based on the reference image data acquired in S1 to print a reference image on the medium M based on the reference image data acquired in S1 (S2). In specific example 1, the reference image 60 is printed on the label M2, and in specific example 2, the reference image 90 is printed on the label M2. The control unit 30 controls the transport driving units 9, 11, 38, 39, 49 to transport the label M2 on which the reference image is printed to a position below the reading unit 45, and acquires read reference image data outputted by reading the reference image by the reading unit 45 (S3).

[0032] The control unit 30 judges whether the read reference image data acquired in S3 meets the predetermined criteria used to judge the print quality of the barcode (S4). In this example, the control unit 30 judges whether the predetermined criteria are met for each judgment item stored in table 79 of FIG. 5 according to the type of reference barcode. The control unit 30 stores an OK judgment when all judgment items meet the predetermined criteria, and stores an NG judgment when at least any item does not meet the predetermined criteria. In specific examples 1 and 2, the control unit 30 stores an OK judgment indicating that the predetermined criteria are met as the read reference image data judgment result.

[0033] The control unit 30 judges whether the judgment result of S4 is an OK judgment (S5). That is, the control unit 30 judges whether the read reference image data is an OK judgment that satisfies a predetermined standard. If the judgment result of S4 is not an OK judgment (S5: NO), the control unit 30 performs the process of S18 described later. Since the judgment results of the read reference image data of the reference image 60 of the specific example 1 and the read reference image data of the reference image 90 of the specific example 2 are each an OK judgment (S5: YES), the control unit 30 performs the process of S6 to S15 to judge whether an NG judgment can be given to the read image data that does not satisfy the predetermined standard. Specifically, the control unit 30 sets 1 to a variable N for sequentially reading out the modification elements stored in the table 79 (S6). The control unit 30 performs modification of the Nth modification element in the read order on the reference image data acquired in S1, generates image data for determination, and acquires the generated image data for determination (S7). When the reference barcode is a one-dimensional barcode, the control unit 30 acquires the determination image data by performing any one of the following modifications on the reference image data: modification to change the gradation of the reference barcode, modification to make the reference barcode partially missing, modification to add a specific image to the reference barcode, and modification to change the uniformity of the lines of the reference barcode. In specific example 1, when the variable N is 1, the control unit 30 acquires "gradation loss" corresponding to the read order 1 as the modification element based on the table 79 in Fig. 5. The control unit 30 generates the determination image data by performing modifications on the reference image data acquired in S1 to change the gradation of the one-dimensional barcode 66, and acquires the generated determination image data.

[0034] When the reference barcode is a two-dimensional code, the control unit 30 acquires the judgment image data by modifying the reference image data to change the gradation of the reference barcode, to make the reference barcode partially missing, to add a specific image to the reference barcode, or to cause a positional shift of the reference barcode. In the specific example 2, when the variable N is 1, the control unit 30 acquires "gradation loss" corresponding to the read order 1 as the modification element based on the table 79 in FIG. 5. The control unit 30 generates the judgment image data by modifying the reference image data acquired in S1 to change the gradation of the two-dimensional code 96, and acquires the generated judgment image data. In this embodiment, the control unit 30 modifies the two-dimensional code 96, but does not modify the character strings 97 and 98.

[0035] The control unit 30 controls the transport drive units 9, 11, 38, 39, and 49 to transport the medium M in the return direction B, and then prints a determination image on the medium M based on the determination image data acquired in S7 (S8). In specific example 1, when the variable N is 1, the control unit 30 prints a determination image 61 on the label M2 based on the determination image data acquired in S7. In specific example 2, when the variable N is 1, the control unit 30 prints a determination image 91 on the label M2 based on the determination image data acquired in S7. The control unit 30 controls the transport drive units 9, 11, 38, 39, and 49 to transport the label M2 on which the determination image is printed to a position below the reading unit 45, and acquires the read determination image data that is read and output by the reading unit 45 (S10).

[0036] The control unit 30 judges whether the read judgment image data acquired in S10 satisfies a predetermined standard, and stores the judgment result in association with the variable N (S11). As in S4, the control unit 30 judges whether the predetermined standard is satisfied for each judgment item stored in the table 79 of FIG. 5 according to the type of the reference barcode. When the reference barcode is a one-dimensional barcode, if the print quality of the read judgment image data of the judgment image to which the modification of "tonal loss" corresponding to the read order 1 as the modification element is added is appropriately judged, the predetermined standard is not satisfied for the symbol contrast and the minimum reflectance, and therefore an NG judgment is given. If the print quality of the read judgment image data of the judgment image to which the modification of "partial loss / addition of dirt" corresponding to the read order 2 as the modification element is added is appropriately judged, the predetermined standard is not satisfied for the minimum edge contrast, modulation, and defects, and therefore an NG judgment is given. When the print quality of the read judgment image data of the judgment image to which the modification of "adding line non-uniformity" corresponding to read order 3 has been added as a modification element is appropriately judged, an NG judgment is given because the predetermined standard for ease of decoding is not met.

[0037] When the reference barcode is a two-dimensional code, if the print quality of the read judgment image data of the judgment image to which the modification of "tone loss" corresponding to the read order 1 is added as an alteration element is appropriately determined, the symbol contrast does not meet the predetermined standard, and an NG judgment is given. If the print quality of the read judgment image data of the judgment image to which the modification of "partial loss / stain addition" corresponding to the read order 2 is added as an alteration element is appropriately determined, the modulation, reflectance margin, and fixed pattern damage do not meet the predetermined standards, and an NG judgment is given. If the print quality of the read judgment image data of the judgment image to which the modification of "position shift addition" corresponding to the read order 3 is added as an alteration element is appropriately determined, the axis non-uniformity and lattice non-uniformity do not meet the predetermined standards, and an NG judgment is given. Unused error correction is determined by comprehensively taking into consideration the alteration elements of "tone loss," "partial loss / stain addition," and "position shift addition."

[0038] The control unit 30 judges whether the variable N is the number of the modification elements (S14). The number of the modification elements in this example is 3 regardless of the type of barcode. If the variable N is not the number of the modification elements (S14: NO), the control unit 30 increments the variable N by 1 (S13) and returns the process to S7. In the specific example 1, when the variable N is 2, the modification element is "addition of partial loss / stain" corresponding to the reading order 2, and the control unit 30 acquires the judgment image data by modifying the reference image data acquired in S1 by adding a specific image 67 to the one-dimensional barcode 66 (S7). The shape, size, arrangement, etc. of the specific image 67 are appropriately set. The specific image 67 is an ellipse having a diameter larger than the thickness of the thickest line included in the one-dimensional barcode 66. The control unit 30 prints the judgment image 62 based on the judgment image data (S8), and judges the print quality of the read judgment image data of the printed judgment image 62 (S10, S11). In specific example 1, when the variable N is 3, the modification element is "adding non-uniformity to lines" corresponding to read order 3, and the control unit 30 applies an enlargement / reduction algorithm to the reference image data acquired in S1 to modify the line thickness of the one-dimensional barcode 66, thereby acquiring the judgment image data (S7). The control unit 30 partially applies the modification to change the line thickness to the one-dimensional barcode 66, modifying the second line from the right to be thinner. The control unit 30 prints the judgment image 63 based on the judgment image data (S8), and judges the print quality of the read judgment image data of the printed judgment image 63 (S10, S11).

[0039] In the specific example 2, when the variable N is 2, the modification element is "addition of partial loss / stain" corresponding to the read order 2, and the control unit 30 obtains the judgment image data by modifying the reference image data obtained in S1 to make the two-dimensional code 96 partially missing (S7). The control unit 30 in this example obtains the judgment image data in which the right center part of the two-dimensional code 96 is partially missing. The control unit 30 prints the judgment image 92 based on the judgment image data (S8), and determines the print quality of the read judgment image data of the printed judgment image 92 (S10, S11). In the specific example 2, when the variable N is 3, the modification element is "addition of positional deviation" corresponding to the read order 3, and the control unit 30 obtains the judgment image data by modifying the reference image data obtained in S1 to change the magnification of the two-dimensional code 96 in a predetermined direction (S7). The control unit 30 in this example obtains the judgment image data in which the two-dimensional code 96 is enlarged in the conveying direction F. The control unit 30 prints the determination image 93 based on the determination image data (S8), and judges the print quality of the read determination image data of the printed determination image 93 (S10, S11).

[0040] When the variable N is the number of the modification elements, 3 (S14: YES), the control unit 30 judges whether all the judgment results of S11 associated with the variable N are NG judgments (S15). When the judgment of S11 is properly executed, the judgment results of the print quality of the read judgment image data are given NG judgments due to the modification elements. Therefore, when all the judgment results of S11 are NG judgments (S15: YES), the control unit 30 displays "print quality judgment normal" on the display unit 3 as a process of notifying the judgment result of the barcode print quality, and then performs normal printing processing based on the print data (S17). In this way, the printing device 1 can notify the user that the print quality judgment is being performed appropriately from the first viewpoint of whether an OK judgment can be given to the read image data that meets the predetermined standard, without increasing the burden on the user, and also from the second viewpoint of whether an NG judgment can be given to the read image data that does not meet the predetermined standard. Based on the notification result, the user can determine that the printing device 1 has properly judged the print quality from both the first and second perspectives, and that the OK judgment is not an erroneous judgment by the printing device 1, but a result of the scanned image data being judged to meet the specified criteria.

[0041] On the other hand, if an OK judgment is given to the read judgment image data in S11, this is a case where the control unit 30 has not been able to properly judge the print quality of the read judgment image data. Therefore, if at least one of the judgment results in S11 is not an NG judgment (S15: NO), the control unit 30 displays "print quality judgment abnormality" on the display unit 3 as a process to notify an error in the judgment result of the barcode print quality (S18). Based on the notification result, the user can determine that the printing device 1 has not been able to properly judge the print quality of the read image data. Following S17 or S18, the control unit 30 ends the print quality judgment process.

[0042] A print quality judgment process of a modification of the print quality judgment process of the specific examples 3 and 4 will be described with reference to Figs. 8 to 10. In Fig. 8, the same step numbers are given to the processes similar to those in the print quality judgment process of Fig. 6. As shown in Fig. 8, the print quality judgment process of the modification is different from the print quality judgment process of Fig. 6 in that the processes from S2 to S5 are omitted, the process of S21 is performed between the processes of S6 and S14, and the processes from S22 to S28 are performed between S14 and S15. Hereinafter, the description of the processes similar to those in the print quality judgment process of Fig. 6 will be omitted or simplified, and the processes different from those in the print quality judgment process of Fig. 6 will be described. In the specific example 3, a reference image 60 and judgment images 61 to 63 are printed on a label M3 in a line in the transport direction F based on the reference image data of a one-dimensional barcode 66 similar to that in the specific example 1, and the print quality is judged. Specific example 4 is a case in which a reference image 60 and judgment images 61 to 63 are printed on a label M4 in a width direction perpendicular to the conveying direction F based on reference image data of a one-dimensional barcode 66 similar to that of specific example 1, and the print quality is judged.

[0043] In S21 of the print quality judgment process in FIG. 8, the control unit 30 generates judgment image data by modifying the N-th modification element for the reference image data acquired in S1, similar to the process of S7 in FIG. 5, and stores the generated judgment image data in the storage unit 31 (S21). In specific examples 3 and 4, judgment image data for judgment images 61 to 63 are acquired in order. In S22, it is determined whether the reference image and the judgment image are arranged in the transport direction F (S22). The control unit 30 determines that the reference image and the judgment image are arranged in the transport direction F in the case of a label whose longitudinal direction is the transport direction F, such as the label M3 in FIG. 9, and determines that the reference image and the judgment image are not arranged in the transport direction F in the case of a label whose longitudinal direction is a direction perpendicular to the transport direction F, such as the label M4 in FIG. 10.

[0044] When the reference image and the image for determination are arranged in the transport direction F (S22: YES), the control unit 30 generates first data for printing one or more images for determination and a reference image of a reference barcode side by side in the transport direction F (S23). In the specific example 3, the control unit 30 generates first data for printing a reference image 60 of a one-dimensional barcode 66 and images for determination 61 to 63 side by side in the transport direction F, as shown in FIG. 9. The control unit 30 enlarges or reduces the images 60 to 63 depending on the size of the label M3. When the reference image and the image for determination are not arranged in the transport direction F (S22: NO), the control unit 30 generates second data for printing one or more images for determination and a reference image of a reference barcode side by side in the width direction perpendicular to the transport direction F (S24). In the fourth specific example, the control unit 30 generates second data for printing a reference image 60 of a one-dimensional barcode 66 and determination images 61 to 63 side-by-side in the left-right direction as shown in Fig. 10. The control unit 30 enlarges or reduces the images 60 to 63 depending on the size of the label M4.

[0045] The control unit 30 prints a reference image and a judgment image on the medium M based on the first data generated in S23 or the second data generated in S24 (S25). In the specific example 3, as shown in FIG. 9, an image 68 including images 60 to 63 is printed on the label M3, and in the specific example 4, as shown in FIG. 10, an image 69 including images 60 to 63 is printed on the label M3. The control unit 30 controls the transport drive units 9, 11, 38, 39, and 49 to transport the label M2 on which the judgment image is printed to a position below the reading unit 45, and obtains the read reference image data and the read judgment image data outputted by reading the image 68 by the reading unit 45 (S26). In the specific example 3, the control unit 30 regards the data outputted by reading the image 60 of the image 68 as the read reference image data. The control unit 30 regards the data outputted by reading the images 61 to 63 of the image 68 as the read judgment image data. In the specific example 4, the control unit 30 sets the data outputted by reading the image 60 out of the image 69 as the read reference image data. The control unit 30 sets the data outputted by reading each of the images 61 to 63 out of the image 69 as the read judgment image data.

[0046] The control unit 30 judges whether the read judgment image data acquired in S26 meets a predetermined standard as in the process of S4, and judges whether the read reference image data meets a predetermined standard as in the process of S11 (S27). The control unit 30 judges whether the judgment result of the read reference image data in S27 is an OK judgment as in the process of S5 (S28). If the judgment result of the read reference image data is an OK judgment (S28: YES), the control unit 30 judges whether the judgment results of the read judgment image data in S27 are all NG judgments as in the process of S5 (S15). If the judgment results of the read judgment image data are all NG judgments (S15: YES), the control unit 30 reports normality (S16), and then performs normal printing processing (S17), and ends the print quality judgment process. As a result, the printing device 1 of the modified example can notify the user that the print quality is appropriately judged from the second viewpoint of whether the printing device 1 can give an NG judgment to the read image data that does not meet the predetermined standard, in addition to the first viewpoint of whether the printing device 1 can give an OK judgment to the read image data that meets the predetermined standard, without increasing the burden on the user. Based on the result of the notification, the user can determine that the printing device 1 can appropriately judge the print quality from both the first viewpoint and the second viewpoint, and that the OK judgment is not an erroneous judgment by the printing device 1, but is a result of the reading image data being judged to meet the predetermined standard. If the judgment result of the read reference image data is not an OK judgment (S27: NO), or if any of the judgment results of the read judgment image data is not an NG judgment (S15: NO), the control unit 30 notifies the user of an error (S18). As a result, the user can determine that the printing device 1 cannot appropriately judge the print quality of the read image data based on the result of the notification. Following S17 or S18, the control unit 30 ends the print quality judgment process of the modified example.

[0047] A print quality judgment process of a modification of the print quality judgment process of the concrete example 5 will be described with reference to FIG. 11 and FIG. 12. In FIG. 11, the same step numbers are given to the processes similar to those of the print quality judgment process of FIG. 6. As shown in FIG. 11, the print quality judgment process of the modification is different from the print quality judgment process of FIG. 6 in that the processes from S2 to S5 are omitted, the process of S31 is performed between the processes of S6 and S14, and the processes from S32 to S36 are performed between S14 and S16. Hereinafter, the description of the processes similar to those of the print quality judgment process of FIG. 6 will be omitted or simplified, and the processes different from those of the print quality judgment process of FIG. 6 will be described. The concrete example 5 is a case where the print quality is judged by acquiring the judgment image data of the judgment image 81 of FIG. 12 based on the reference image data of the one-dimensional barcode 66 similar to that of the concrete example 1, and printing the judgment image 81 on the label M5.

[0048] In S31 of the print quality judgment process in FIG. 11, the control unit 30 assigns the Nth modification element to the Nth modification location of the reference image data acquired in S1 (S31). The corners of the reference barcode are assigned to the Nth modification location in a predetermined order. For example, the control unit 30 assigns the Nth modification location to the right front corner, the left front corner, the left rear corner, and the right rear corner of the reference barcode in that order. In the specific example 5, when the variable N is 1, a modification 82 of gradation is added to the right front corner of the one-dimensional barcode 66 in FIG. 4, when the variable N is 2, a modification 83 of adding a specific image 67 to the left front corner of the one-dimensional barcode 66 is added, and when the variable N is 3, a modification 84 of changing the line thickness is added to the left rear corner of the one-dimensional barcode 66.

[0049] In S32, the control unit 30 generates the judgment image data to which the modification element is added in S31, and acquires the generated judgment image data (S32). The control unit 30 prints the judgment image 81 based on the judgment image data acquired in S32, similar to S8 of FIG. 5 (S33). The control unit 30 acquires the read judgment image data of the judgment image 81, similar to S10 (S34). The control unit 30 judges whether the read judgment image data acquired in S33 satisfies a predetermined standard (S35). The control unit 30 judges whether the judgment result of the read judgment image data is NG judgment for all judgment items stored in the table 79 of FIG. 5 (S36). If the judgment result of the read judgment image data is NG judgment for all items (S36: YES), the control unit 30 reports normality (S16), and then performs normal printing processing (S17), and ends the print quality judgment processing. This allows the printing device 1 of the modified example to inform the user that the print quality judgment is being performed appropriately from the viewpoint of whether the printing device 1 can give an NG judgment to scanned image data that does not meet the predetermined criteria, without increasing the burden on the user. If the judgment result of the read judgment image data is an OK judgment for one or more items (S36: NO), the control unit 30 notifies the user of an error (S18). Based on the notification result, the user can determine that the printing device 1 has not been able to properly judge the print quality of the scanned image data. Following S17 or S18, the control unit 30 ends the print quality judgment process.

[0050] In the above embodiment, the printing device 1, the display unit 3, the supply unit 5, the control unit 30, and the reading unit 45 are examples of the printing device, the notification unit, the supply unit, the control unit, and the reading unit of the present invention, respectively. The transport units 7, 10, 15, 19, and 48 are examples of the transport unit of the present invention. The transport drive units 9, 11, 38, 39, and 49 are examples of the transport drive unit of the present invention. The control unit 30 that executes S7, S21, and S32 is an example of the judgment image data acquisition unit. S7, S21, and S32 are examples of the judgment image data acquisition step and the judgment image data acquisition process. The control unit 30 that executes S11, S27, and S35 is an example of the quality judgment unit of the present invention. S11, S27, and S35 are examples of the quality judgment step and the quality judgment process of the present invention. The control unit 30 that executes S8, S25, and S33 is an example of the print control unit of the present invention. S8, S25, and S33 are examples of the print control step and the print control process of the present invention. The control unit 30 that executes S18 is an example of a notification control unit of the present invention. S18 is an example of a notification control step and a notification control process of the present invention. The control unit 30 that performs the process of S23 is an example of a first generation unit of the present invention. The control unit 30 that performs the process of S24 is an example of a second generation unit of the present invention.

[0051] The printing device 1 of the above embodiment includes a supply unit 5, a printing unit 6, a conveying unit 7, 10, 15, 19, 48, a conveying drive unit 9, 11, 38, 39, 49, a display unit 3, a control unit 30, and a reading unit 45. The supply unit 5 supplies a long medium M. The printing unit 6 prints an image on the medium M fed from the supply unit 5. The conveying units 7, 10, 15, 19, 48 convey the medium M in a conveying direction F from the supply unit 5 toward the printing unit 6. The conveying drive units 9, 11, 38, 39, 49 drive the conveying units 7, 10, 15, 19, 48, respectively. The control unit 30 controls the printing unit 6, the conveying drive units 9, 11, 38, 39, 49, and the display unit 3. The reading unit 45 reads the image printed by the printing unit 6 and outputs the read image data to the control unit 30. The control unit 30 acquires image data for judgment that does not meet the predetermined standard used to judge the print quality of the barcode (S7, S21, S32). The control unit 30 controls the printing unit 6 to print the image for judgment on the medium M based on the image data for judgment (S8, S25, S33). The control unit 30 judges whether the read image data for judgment, which is read and output by the reading unit 45, meets the predetermined standard (S11, S27, S35). If the control unit 30 judges that the read image data for judgment meets the predetermined standard, it controls the display unit 3 to notify an error (S18). In order to appropriately judge the print quality, the printing device 1 needs to be able to give an NG judgment to read image data that does not meet the predetermined standard. However, the conventional printing device judges whether the print quality judgment is performed appropriately from the viewpoint of whether an OK judgment can be given to read image data that meets the predetermined standard, and therefore cannot detect a case where the control unit 30 erroneously gives an OK judgment to read image data that should be judged as NG. In response to this, the printing device 1 performs a process to determine in S15 whether an NG judgment can be given to the read image data that does not satisfy the predetermined criteria, and if it is determined that the read judgment image data satisfies the predetermined criteria used to judge the print quality of the barcode, an error is notified since this is a case in which an NG judgment cannot be given to the read image data that does not satisfy the predetermined criteria. Therefore, the printing device 1 can notify the user whether the print quality of the printed barcode has been appropriately judged based on whether the print quality of the judgment image can be judged as NG.

[0052] The control unit 30 of the printing device 1 acquires the image data for determination by modifying the reference image data by adding a specific image to the reference barcode or by changing a specific value of the reference image data of the reference barcode (S7, S21, S32). The printing device 1 can notify the user whether the print quality has been appropriately determined based on the determination result of the print quality of the image for determination when the reference image data is modified by adding a specific image to the reference barcode or by changing a specific value of the reference image data.

[0053] The reference barcode includes a one-dimensional barcode, and the control unit 30 acquires the judgment image data by modifying the reference image data by changing the gradation of the reference barcode, modifying the reference barcode by making it partially missing, modifying the reference barcode by adding a specific image, or modifying the uniformity of the lines of the reference barcode (S7, S21, S32).The printing device 1 can notify the user whether the print quality has been appropriately judged based on the judgment result of the print quality of the judgment image when the reference image data representing the one-dimensional barcode has been modified.

[0054] The reference barcode includes a two-dimensional code, and the control unit 30 acquires the judgment image data by modifying the reference image data by changing the gradation of the reference barcode, modifying the reference barcode by making it partially missing, modifying the reference barcode by adding a specific image to the reference barcode, or modifying the reference barcode by shifting its position (S7, S21, S32).The printing device 1 can notify the user whether the print quality has been appropriately judged based on the judgment result of the print quality of the judgment image when the reference image data representing the two-dimensional code has been modified.

[0055] The control unit 30 acquires the judgment image data by modifying the reference image data by adding a specific image to the reference barcode (S7, S21, S32). The printing device 1 can notify the user whether the print quality judgment has been performed appropriately based on the judgment result of the print quality of the judgment image in which the specific image is added to the reference barcode.

[0056] When the barcode is a one-dimensional barcode or a two-dimensional code and the reading order is 1, the control unit 30 acquires judgment image data by modifying the reference image data to change the gradation of the reference barcode (S7, S21, S32). The printing device 1 can notify the user whether the print quality judgment has been performed appropriately based on the judgment result of the print quality of the judgment image in which the gradation of the reference barcode has been changed.

[0057] When the barcode is a one-dimensional barcode or a two-dimensional code and the reading order is 2, the control unit 30 obtains the judgment image data by modifying the reference image data by partially missing the reference barcode (S7, S21, S32). The printing device 1 can inform the user whether the print quality judgment has been performed appropriately based on the print quality judgment result in which the reference barcode is partially missing.

[0058] When the barcode is a one-dimensional barcode and the reading order is 3, the control unit 30 applies a scaling algorithm to the reference image data to modify the line thickness of the reference barcode to obtain the judgment image data (S7, S21, S32). Based on the print quality judgment result after the line thickness of the reference barcode is changed, the printing device 1 can notify the user whether the print quality judgment has been performed appropriately.

[0059] When the barcode is a two-dimensional code and the reading order is 3, the control unit 30 acquires judgment image data by modifying the reference image data to change the magnification of the reference barcode in a predetermined direction (S7, S21, S32). The printing device 1 can notify the user whether the print quality judgment has been performed appropriately based on the judgment result of the print quality after the magnification of the reference barcode in the predetermined direction has been changed.

[0060] The control unit 30 generates first data for printing one or more determination images and a reference image of a reference barcode side by side in the transport direction F (S23). The control unit 30 controls the printing unit 6 to print the reference image and one or more determination images on the medium M based on the first data (S25), and determines whether the read determination image data of each of the one or more determination images meets a predetermined standard, and determines whether the read reference image data read by the reading unit 45 and outputted meets the predetermined standard (S27). When the control unit 30 determines in S27 that the read determination image data meets the predetermined standard (S15: YES), or when the control unit 30 determines in S27 that the read reference image data does not meet the predetermined standard (S28: YES), the control unit 3 controls the display unit 3 as a notification unit to notify an error (S18). The printing device 1 can notify the user whether the print quality has been appropriately determined based on the result of the print quality determination between the reference image printed based on the first data and one or more determination images. The printing device 1 can notify the user that the print quality determination has been appropriately performed from the first perspective of whether an OK judgment can be given to scanned image data that meets a predetermined standard, without increasing the burden on the user, as well as from the second perspective of whether an NG judgment can be given to scanned image data that does not meet the predetermined standard. Based on the notification result, the user can determine that the printing device 1 has appropriately determined the print quality from both the first perspective and the second perspective, and that the OK judgment is not an erroneous judgment by the printing device 1, but is a result of the scanned image data being determined to meet the predetermined standard.

[0061] The control unit 30 acquires judgment image data by performing multiple types of modifications on the reference image data (S31, S32). The printing device 1 can notify the user whether the print quality has been appropriately determined based on the judgment result of the print quality of the judgment image that has been subjected to multiple types of modifications. The printing device 1 can reduce the number of prints of the judgment image and the time required to determine the print quality, compared to when multiple judgment images are generated for each modification and the print quality is determined.

[0062] The control unit 30 generates second data for printing one or more judgment images and a reference image of a reference barcode in a width direction perpendicular to the transport direction F (S24). The control unit 30 controls the printing unit 6 to print a reference image and one or more judgment images on the medium M based on the second data (S25), judges whether the read judgment image data of each of the one or more judgment images meets a predetermined standard, and judges whether the read reference image data read by the reading unit 45 and outputted meets the predetermined standard (S27). When it is judged in S27 that the read judgment image data meets the predetermined standard (S15: NO), or when it is judged in S27 that the read reference image data does not meet the predetermined standard (S28: NO), the control unit 30 controls the display unit 3 as a notification unit to notify an error. The printing device 1 can notify the user whether the print quality has been appropriately judged based on the result of the print quality judgment between the reference image printed based on the second data and one or more judgment images. The printing device 1 can notify the user that the print quality has been appropriately judged from the first perspective of whether an OK judgment can be given to scanned image data that meets the predetermined criteria, without increasing the burden on the user, and also from the second perspective of whether an NG judgment can be given to scanned image data that does not meet the predetermined criteria. Based on the notification result, the user can determine that the printing device 1 has appropriately judged the print quality from both the first and second perspectives, and that the OK judgment is not an erroneous judgment by the printing device 1, but a result of the scanned image data being judged to meet the predetermined criteria.

[0063] The control unit 30 acquires the pre-stored image data for determination. The printing device 1 does not need to perform a process for generating the image data for determination, and can simplify the process up to printing the image for determination.

[0064] The control unit 30 controls the display unit 3 as a notification unit to display an error. When it is determined that the image data for reading judgment satisfies a predetermined standard, the printing device 1 controls the display unit 3 as a notification unit to display an error.

[0065] The supply unit 5 supplies the medium M wound in a roll. The transport units 7, 10, 15, 19, and 48 are belts or rollers that transport the medium M. The printing unit 6 has an inkjet head and prints an image on the medium M by ejecting liquid from the inkjet head. When the printing device 1 determines that the print quality when printing a determination image on the medium M wound in a roll by the inkjet method satisfies a predetermined standard, it controls the display unit 3 as a notification unit to display an error.

[0066] The printing device, the print quality judgment method, and the print quality judgment program of the present invention are not limited to the above-described embodiment, and various modifications may be made without departing from the spirit of the present invention. For example, the following modifications may be made as appropriate.

[0067] The supply unit 5 may be configured as appropriate as long as it can supply the long medium M. The medium M may be fanfold paper that is folded along perforations engraved in the paper. The transport unit 7 may transport the medium M by another transport member such as a transport belt. The transport unit 10 may be capable of transporting the medium M in the return direction B, and the configuration of the transport unit 10 may be changed or omitted depending on the configuration of the supply unit 5. The notification unit may be an audio output unit such as a speaker, and the notification control unit may notify of an error in a manner depending on the configuration of the notification unit.

[0068] The configuration of the printing unit 6 may be changed as appropriate, and may be an inkjet head capable of color printing, or an electrophotographic or thermal head. The fixing unit 40 may be omitted or the configuration may be changed depending on the printing method of the printing device 1. The printing device 1 may omit the cutting unit 50. The cutting unit 50 may cut the medium M by a manual operation by the user. At least one of the conveying units 15, 19, 48 may be omitted or the configuration may be changed as necessary. The reading unit 45 may be another device, such as a CCD (Charge Coupled Devices).

[0069] A program including instructions for executing the print quality judgment process of Fig. 6 may be stored in a storage device of the printing device 1 before the control unit 30 executes the program. Therefore, the method and route of acquiring the program and the device that stores the program may each be changed as appropriate. The program executed by the control unit 30 may be received from another device via a cable or wireless communication and stored in a storage device such as a flash memory. The other device may include, for example, a PC and a server connected via a network.

[0070] Each step of the print quality judgment process of the printing device 1 is not limited to being executed by the control unit 30, and some or all of the steps may be executed by other electronic devices (e.g., ASIC). Each step of the print quality judgment process may be distributed among multiple electronic devices (e.g., multiple CPUs). The order of each step of the print quality judgment process may be changed, steps may be omitted, or steps may be added, as necessary. The scope of the present invention also includes an embodiment in which an operating system (OS) running on the printing device 1 performs some or all of the print quality judgment process based on a command from the control unit 30. For example, the following modifications may be made to the print quality judgment process as appropriate.

[0071] The judgment items of the print quality, the contents, number, type, etc. of the modification elements may be changed as appropriate. When the barcode is a one-dimensional barcode, the modification elements may be one or more elements selected from gradation defects, partial loss / stain addition, and line nonuniformity addition, or may be elements other than the three elements. Similarly, when the barcode is a two-dimensional code, the modification elements may be one or more elements selected from gradation defects, partial loss / stain addition, and position deviation addition, or may be elements other than the three elements. The printing device 1 may set the same modification elements regardless of the type of barcode. The reference barcode includes either a one-dimensional barcode or a two-dimensional code, and may not include characters, figures, etc. When the judgment image data is stored, the control unit 30 may omit the process of acquiring the reference image data and the process of modifying the reference image data to generate the judgment image data. When the printing device 1 performs the process of acquiring the reference image data and the process of modifying the reference image data to generate the judgment image data, the judgment image data may not be stored in advance. The process of modifying the reference image data to generate the image data for determination may be changed as appropriate depending on the modification element. The control unit 30 may generate and acquire the image data for determination in which a modification element designated by the user among a plurality of types of modification elements is modified. The arrangement of each image when printing the image for determination and the reference image of the reference barcode side by side may be changed as appropriate. For example, the control unit 30 may arrange the image for determination and the reference image in a matrix with a predetermined number of rows and a predetermined number of columns.

[0072] In S24, when the barcode is a one-dimensional barcode, the control unit 30 may arrange the image for judgment and the reference image so that the direction of the line between them is the width direction perpendicular to the conveying direction F. In at least one of S4, S11, S27, and S35, the control unit 30 may store an OK judgment when a predetermined criterion is met for each judgment item, and may store an NG judgment when the predetermined criterion is not met for each judgment item. In S18, the control unit 30 may notify whether the error judgment is for the read reference image data or the read judgment image data. When the print quality of the read reference image data is judged to be normal and the print quality of the read judgment image data is judged to be abnormal, the user can identify that the printing device 1 has erroneously given an OK judgment to the read image data that should have been judged to be NG. In S18, the control unit 30 may notify the judgment item that was judged to be an error. In S7, the control unit 30 may make the same modification to the character strings 97 and 98 as the two-dimensional code 96. In S22, the control unit 30 may determine whether to align the images in the transport direction F based on the presence or absence of a user instruction, or may determine the determination based on the attributes of the medium M. If the modification element is "adding non-uniformity to lines," in S7, modification such as changing the line thickness may be applied to the entire reference barcode, or may be applied to parts of the reference barcode. In S23 or S24, the control unit 30 may not change the size of the reference image and the judgment image depending on the size of the label. [Explanation of symbols]

[0073] 1: printing device, 5: supply unit, 6: printing unit, 7, 10, 15, 19, 48: conveying unit, 9, 11, 38, 39, 49: conveying drive unit, 30: control unit, 45: reading unit

Claims

1. A supply unit that supplies a long medium; a printing unit that prints an image on the medium fed from the supply unit; a transport unit that transports the medium in a transport direction from the supply unit toward the printing unit; A transport drive unit that drives the transport unit; A notification section; A control unit that controls the printing unit, the transport drive unit, and the notification unit; a reading unit that reads the image printed by the printing unit and outputs read image data to the control unit; The control unit is a judgment image data acquisition unit that acquires judgment image data that does not satisfy a predetermined standard used for judging the print quality of a barcode; a print control unit that controls the printing unit to print a determination image on the medium based on the determination image data; a quality determination unit that determines whether the read image data for judgment, which is output by reading the image for judgment by the reading unit, satisfies the predetermined standard; a notification control unit that controls the notification unit to notify an error when the quality determination unit determines that the read judgment image data satisfies the predetermined standard; A printing apparatus comprising:

2. The printing device according to claim 1, characterized in that the determination image data acquisition unit acquires the determination image data by modifying the reference image data by adding a specific image to a reference barcode or by changing a specific value of the reference image data of the reference barcode.

3. the reference barcode comprises a one-dimensional barcode; The printing device described in claim 2, characterized in that the judgment image data acquisition unit acquires the judgment image data by making any of the following modifications to the reference image data: a modification to change the gradation of the reference barcode, a modification to make the reference barcode partially missing, a modification to add the specific image to the reference barcode, and a modification to change the uniformity of the lines of the reference barcode.

4. the reference barcode includes a two-dimensional code; The printing device described in claim 2, characterized in that the judgment image data acquisition unit acquires the judgment image data by making any of the following modifications to the reference image data: a modification that changes the gradation of the reference barcode, a modification that makes the reference barcode partially missing, a modification that adds the specific image to the reference barcode, and a modification that causes a positional shift of the reference barcode.

5. The printing device according to any one of claims 2 to 4, characterized in that the determination image data acquisition unit acquires the determination image data by modifying the reference image data by adding the specific image to the reference barcode.

6. 5. The printing device according to claim 3, wherein the determination image data acquisition unit acquires the determination image data by modifying the reference image data to change the gradation of the reference barcode.

7. 7. The printing device according to claim 2, wherein the determination image data acquisition unit acquires the determination image data by modifying the reference image data by partially missing the reference barcode.

8. A printing device as described in any one of claims 2 to 7, characterized in that the judgment image data acquisition unit acquires the judgment image data by applying an enlargement / reduction algorithm to the reference image data to modify the line thickness of the reference barcode.

9. The printing device according to any one of claims 2 to 8, characterized in that the determination image data acquisition unit acquires the determination image data by modifying the reference image data to change the magnification of the reference barcode in a specified direction.

10. The control unit is a first generating unit that generates first data for printing one or more of the determination images and a reference image of the reference barcode side by side in the transport direction; the print control unit controls the printing unit to print the reference image and the one or more determination images on the medium based on the first data; The quality determination unit determining whether the read judgment image data of each of the one or more judgment images satisfies the predetermined standard; determining whether the read reference image data outputted by the reading unit after reading the reference image satisfies the predetermined standard; A printing device as described in any one of claims 2 to 9, characterized in that the notification control unit controls the notification unit to notify of the error when the quality judgment unit judges that the reading judgment image data meets the specified standard, or when the quality judgment unit judges that the reference image data does not meet the specified standard.

11. 11. The printing apparatus according to claim 2, wherein the determination image data acquisition unit acquires the determination image data by performing a plurality of types of modifications on the reference image data.

12. The control unit is a second generation unit that generates second data for printing one or more of the determination images and a reference image of the reference barcode in a width direction perpendicular to the transport direction; the print control unit controls the printing unit to print the reference image and the one or more determination images on the medium based on the second data; The quality determination unit determining whether the read judgment image data of each of the one or more judgment images satisfies the predetermined standard; determining whether the read reference image data outputted by the reading unit after reading the reference image satisfies a predetermined standard; A printing device as described in any one of claims 2 to 9, characterized in that the notification control unit controls the notification unit to notify of the error when the quality judgment unit judges that the judgment image data meets the specified standard, or when the quality judgment unit judges that the reference image data does not meet the specified standard.

13. 13. The printing apparatus according to claim 1, wherein the determination image data acquisition unit acquires the determination image data that is stored in advance.

14. The notification unit is a display unit, 14. The printing apparatus according to claim 1, wherein the notification control unit controls the notification unit to display the error.

15. The supply unit supplies the medium wound in a roll shape, the transport unit is a belt or roller that transports the medium, 15. The printing apparatus according to claim 1, wherein the printing section has an inkjet head and prints the image on the medium by ejecting liquid from the inkjet head.

16. A supply unit that supplies a long medium; a printing unit that prints an image on the medium fed from the supply unit; a transport unit that transports the medium in a transport direction from the supply unit toward the printing unit; A transport drive unit that drives the transport unit; A notification section; A control unit that controls the printing unit, the transport drive unit, and the notification unit; A print quality determination method executed by a control unit of a printing device including a reading unit that reads the image printed by the printing unit and outputs read image data to the control unit, a judgment image data acquisition step of acquiring judgment image data that does not satisfy a predetermined standard used for judging the print quality of the barcode; a print control step of controlling the printing unit to print a determination image on the medium based on the determination image data; a quality judgment step of judging whether the read judgment image data outputted by the reading unit after reading the judgment image satisfies the predetermined standard; a notification control step of controlling the notification unit to notify an error when it is determined in the quality determination step that the read judgment image data satisfies the predetermined standard; A print quality determination method comprising:

17. The print quality judgment method described in claim 16, characterized in that the judgment image data acquisition process acquires the judgment image data by modifying the reference image data by adding a specific image to a reference image of the barcode that serves as a reference, or by changing a specific value of the reference image data of the reference image.

18. A supply unit that supplies a long medium; a printing unit that prints an image on the medium fed from the supply unit; a transport unit that transports the medium in a transport direction from the supply unit toward the printing unit; A transport drive unit that drives the transport unit; A notification section; A control unit that controls the printing unit, the transport drive unit, and the notification unit; A print quality judgment program including instructions to be executed by a control unit of a printing device including a reading unit that reads the image printed by the printing unit and outputs read image data to the control unit, A judgment image data acquisition process for acquiring judgment image data that does not satisfy a predetermined standard used for judging the print quality of the barcode; a print control process for controlling the printing unit to print a determination image on the medium based on the determination image data; a quality judgment process for judging whether the read judgment image data outputted by the reading unit after reading the judgment image satisfies the predetermined standard; a notification control process for controlling the notification unit to notify an error when it is determined in the quality determination process that the read judgment image data satisfies the predetermined standard; a control unit of the printing device that executes the print quality judgment program;

19. The print quality judgment program according to claim 18, characterized in that the judgment image data acquisition process acquires the judgment image data by modifying the reference image data by adding a specific image to a reference image of the barcode that serves as a reference, or by changing a specific value of the reference image data of the reference image.

Citation Information

Patent Citations

  • Bar code printer

    JP1997156161A

  • Inspection accuracy verification system

    JP2008003876A

  • Image recording device and image recording method

    JP2008273191A

  • Label printing device and program

    JP2017007111A

  • Image inspection method and image forming system

    JP2020038150A