JP2024076455A - Printing device, printing system, and printing method - Google Patents

Printing device, printing system, and printing method Download PDF

Info

Publication number
JP2024076455A
JP2024076455A JP2022187969A JP2022187969A JP2024076455A JP 2024076455 A JP2024076455 A JP 2024076455A JP 2022187969 A JP2022187969 A JP 2022187969A JP 2022187969 A JP2022187969 A JP 2022187969A JP 2024076455 A JP2024076455 A JP 2024076455A
Authority
JP
Japan
Prior art keywords
pattern
data
dot
correction
dot data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022187969A
Other languages
Japanese (ja)
Inventor
宏門 ▲高▼橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2022187969A priority Critical patent/JP2024076455A/en
Publication of JP2024076455A publication Critical patent/JP2024076455A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Printers Characterized By Their Purpose (AREA)
  • Ink Jet (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

【課題】処理時間を短くできコストアップの抑制を図りつつ、比較パターンを用いた画像補正を行うことができる印刷装置、印刷システムおよび印刷方法を提供する。【解決手段】印刷装置は、選択ドットデータを含む所定範囲のドットパターンが所定の比較パターンに一致するか否か、および、選択ドットデータを含むドットパターンが所定の除外パターンに一致するか否か、を判別する処理と、判別する処理において比較パターンに一致せず且つ除外パターンに一致しない第1状態と判別された場合にはドットパターンに含まれる選択ドットデータを第1印刷データから削除する補正を行う処理と、第1印刷データについて補正が行われて得られた第2印刷データに基づいて吐出ヘッドから被印刷媒体に液滴を吐出させて画像を被印刷媒体に形成する処理と、を実行するコントローラを備える。【選択図】図7[Problem] To provide a printing device, printing system, and printing method capable of performing image correction using a comparison pattern while shortening processing time and suppressing cost increases. [Solution] The printing device includes a controller that executes a process of determining whether a dot pattern in a predetermined range including selected dot data matches a predetermined comparison pattern and whether a dot pattern including selected dot data matches a predetermined exclusion pattern, a process of performing a correction to delete the selected dot data included in the dot pattern from the first print data when the determination process determines a first state in which the selected dot pattern does not match the comparison pattern and does not match the exclusion pattern, and a process of ejecting droplets from an ejection head onto a print medium based on second print data obtained by performing the correction on the first print data to form an image on the print medium. [Selected Figure] Figure 7

Description

本発明は、印刷装置、印刷システムおよび印刷方法に関する。 The present invention relates to a printing device, a printing system, and a printing method.

従来、バーコードの読み取り精度を低下させることなく、バーコード以外の表および罫線の印刷を良好に行うことを目的とした印刷システムが知られている。この場合、プリンタドライバは、印刷データがバーコードのデータである場合には印刷データに対して輪郭線を太らせる補正をせずに印刷し、印刷データがバーコードのデータでない場合には印刷データに対して輪郭線を太らせる補正をして印刷する。 Conventionally, there is known a printing system that aims to print tables and ruled lines other than barcodes well without reducing the accuracy of reading barcodes. In this case, if the print data is barcode data, the printer driver prints the print data without correcting the print data to thicken the outlines, and if the print data is not barcode data, the printer driver prints the print data after correcting the print data to thicken the outlines.

しかし、被印刷媒体に液滴を吐出してバーコードを印刷する際、当該液滴が被印刷媒体上で滲むことがある。そのため、バーコードの線幅が増大し、バーコードの読み取り精度が低下してしまう。そこで、形成すべき画像のうち所定の縁部に位置するドット(注目対象である選択ドットの周辺にある周辺ドット)に対する比較用のドットパターンである複数の比較パターンを用いた補正を行う印刷装置が知られている(特許文献1参照)。この印刷装置では、周辺ドットと各比較パターンにおけるドットとが一致する場合に当該周辺ドットに対応する上記選択ドットを空白データにする補正が行われる。 However, when droplets are ejected onto a print medium to print a barcode, the droplets may bleed onto the print medium. This increases the line width of the barcode, decreasing the accuracy of reading the barcode. A printing device is therefore known that performs correction using multiple comparison patterns, which are comparison dot patterns for dots located at a specific edge of the image to be formed (peripheral dots around the selected dot that is the subject of attention) (see Patent Document 1). In this printing device, when the peripheral dots match dots in each comparison pattern, a correction is performed to make the selected dot that corresponds to the peripheral dot blank data.

特開2022-084291号公報JP 2022-084291 A

しかしながら、上記従来技術では複数の比較パターンが必要となるので、当該比較パターンの数が極端に増加してしまう。そのため、処理に要する時間が長くなると共に、高性能のプロセッサやメモリが必要となるためコストアップにつながる恐れがあった。 However, the above-mentioned conventional technology requires multiple comparison patterns, which results in an extremely large number of comparison patterns. This increases the time required for processing and requires high-performance processors and memory, which can lead to increased costs.

そこで、本発明は、処理時間を短くできコストアップの抑制を図りつつ、比較パターンを用いた画像補正を行うことができる印刷装置、印刷システムおよび印刷方法を提供することを目的とする。 The present invention aims to provide a printing device, printing system, and printing method that can perform image correction using a comparison pattern while shortening processing time and preventing costs from increasing.

本発明の印刷装置は、液滴を被印刷媒体に吐出する吐出ヘッドと、コントローラと、を備え、前記コントローラは、前記被印刷媒体上に前記液滴を着弾させて形成するドットにより、情報を有するコードを含む画像を前記被印刷媒体に形成するための第1印刷データを取得する処理と、取得した前記第1印刷データにおいて、前記画像を形成するドットに対応するドットデータを選択し、選択したドットデータである選択ドットデータを含む所定範囲のドットパターンが所定の比較パターンに一致するか否か、および、前記選択ドットデータを含む前記ドットパターンが所定の除外パターンに一致するか否か、を判別する処理と、前記判別する処理において前記比較パターンに一致せず且つ前記除外パターンに一致しない第1状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行う処理と、前記判別する処理において前記第1状態以外の第2状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行わずに維持する処理と、前記第1印刷データについて前記補正または前記維持が行われて得られた第2印刷データに基づいて前記吐出ヘッドから前記被印刷媒体に前記液滴を吐出させて前記画像を前記被印刷媒体に形成する処理と、を実行するものである。 The printing device of the present invention comprises an ejection head that ejects droplets onto a print medium, and a controller, and the controller performs the following steps: acquire first print data for forming an image including a code having information on the print medium by dots formed by landing the droplets on the print medium; select dot data corresponding to the dots that form the image from the acquired first print data, and determine whether a dot pattern in a predetermined range including selected dot data, which is the selected dot data, matches a predetermined comparison pattern, and whether the dot pattern including the selected dot data matches a predetermined exclusion pattern; and When the first state is determined to be a first state that does not match the comparison pattern and does not match the exclusion pattern, a correction process is performed to delete the selected dot data included in the dot pattern from the first print data; when the second state other than the first state is determined in the determination process, a process is maintained without performing a correction to delete the selected dot data included in the dot pattern from the first print data; and a process is performed to form the image on the print medium by ejecting the droplets from the ejection head onto the print medium based on second print data obtained by performing the correction or the maintenance on the first print data.

本発明に従えば、選択ドットデータを含む所定範囲のドットパターンが比較パターンに一致せず且つ除外パターンに一致しない第1状態と判別された場合に、上記ドットパターンに含まれる選択ドットデータが第1印刷データから削除される補正が行われる。この点、従来では選択ドットデータを補正する場合を多く確保すべく、周辺ドットデータに一致させたい数だけ比較パターンが必要であった。これに対して、本願発明ではドットパターンが比較パターンに一致しない場合に補正が行われる構成としたことで、ドットパターンにおける何れかのドットデータが一つでも比較パターンに一致しなければ補正が行われる。これにより、比較パターンは複数要らず単数で済む。よって、比較パターンが増えることに起因して処理に要する時間が長くなること、およびコストアップにつながることを避けることができる。従って、処理時間を短くできコストアップの抑制を図りつつ、比較パターンを用いた画像補正を行うことができる。また、本発明ではドットパターンが除外パターンに一致しない場合に補正が行われる構成としたので、上記比較パターンを用いることによる弊害として選択ドットデータが補正により不所望に除外されることを回避できる。 According to the present invention, when a dot pattern in a predetermined range including selected dot data is determined to be in a first state in which the dot pattern does not match the comparison pattern and does not match the exclusion pattern, a correction is performed in which the selected dot data included in the dot pattern is deleted from the first print data. In this regard, in the past, in order to ensure many cases in which the selected dot data was corrected, a comparison pattern was required as many times as the number of times it was desired to match the surrounding dot data. In contrast, the present invention is configured to perform correction when the dot pattern does not match the comparison pattern, so that correction is performed if any of the dot data in the dot pattern does not match the comparison pattern. This means that a single comparison pattern is sufficient, not multiple comparison patterns. Therefore, it is possible to avoid the increase in processing time and the increase in costs due to the increase in comparison patterns. Therefore, it is possible to perform image correction using the comparison pattern while shortening the processing time and suppressing the increase in costs. In addition, in the present invention, a correction is performed when the dot pattern does not match the exclusion pattern, so it is possible to avoid the undesired exclusion of selected dot data by correction, which is a drawback of using the comparison pattern.

本発明によれば、処理時間を短くできコストアップの抑制を図りつつ、比較パターンを用いた画像補正を行うことが可能な印刷装置、印刷システムおよび印刷方法を提供することができる。 The present invention provides a printing device, printing system, and printing method that can perform image correction using a comparison pattern while shortening processing time and preventing costs from increasing.

本発明の一実施形態に係る印刷装置を示す平面図である。1 is a plan view showing a printing apparatus according to an embodiment of the present invention. 図1の印刷装置に備わる吐出ヘッドの底面図である。FIG. 2 is a bottom view of the ejection head provided in the printing device of FIG. 1 . 図1の印刷装置における制御系の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of a control system in the printing apparatus of FIG. 1 . 情報を有するコードを含む画像の一例を示す図である。FIG. 1 shows an example of an image including an information-carrying code. 図5Aは処理前の画像を示す図であり、図5Bは選択ドットデータを含む所定範囲のドットパターンと比較パターンとの比較を示す図であり、図5Cは補正が実行された画像を示す図である。FIG. 5A shows an image before processing, FIG. 5B shows a comparison between a dot pattern in a specified range including selected dot data and a comparison pattern, and FIG. 5C shows an image after correction has been performed. 図6Aは1ドット削りに係る補正を示す図であり、図6Bは2ドット削りに係る補正を示す図であり、図6Cは3ドット削りに係る補正を示す図であり、図6Dは4ドット削りに係る補正を示す図である。FIG. 6A is a diagram showing correction for cutting out one dot, FIG. 6B is a diagram showing correction for cutting out two dots, FIG. 6C is a diagram showing correction for cutting out three dots, and FIG. 6D is a diagram showing correction for cutting out four dots. 図7Aは処理前の画像を示す図であり、図7Bは選択ドットデータを含む所定範囲のドットパターンと比較パターンとの比較を示す図であり、図7Cはドットパターンと除外パターンとの比較を示す図であり、図7Dは補正が実行された画像を示す図である。Figure 7A shows the image before processing, Figure 7B shows a comparison between a dot pattern in a specified range including selected dot data and a comparison pattern, Figure 7C shows a comparison between the dot pattern and an exclusion pattern, and Figure 7D shows the image after correction has been performed. 図8Aは処理前の画像を示す図であり、図8Bは選択ドットデータを含む所定範囲のドットパターンと比較パターンとの比較を示す図であり、図8Cは補正が実行されずに維持された画像を示す図である。FIG. 8A shows the image before processing, FIG. 8B shows a comparison between a specified range of dot patterns including selected dot data and a comparison pattern, and FIG. 8C shows the image that is maintained without correction being performed. 図9Aは処理前の画像を示す図であり、図9Bは選択された選択ドットデータを含む所定範囲のドットパターンと比較パターンとの比較を示す図であり、図9Cはドットパターンと除外パターンとの比較を示す図であり、図9Dは補正が実行されずに維持された画像を示す図である。Figure 9A shows the image before processing, Figure 9B shows a comparison between a dot pattern in a specified range including selected dot data and a comparison pattern, Figure 9C shows a comparison between the dot pattern and an exclusion pattern, and Figure 9D shows the image that is maintained without correction being performed. 印刷処理を示すフローチャートである。4 is a flowchart showing a printing process. 図11Aは1ドット削り用の比較パターンを示す図であり、図11Bは2ドット削り用の比較パターンを示す図であり、図11Cは3ドット削り用の比較パターンを示す図であり、図11Dは4ドット削り用の比較パターンを示す図である。FIG. 11A is a diagram showing a comparison pattern for cutting one dot, FIG. 11B is a diagram showing a comparison pattern for cutting two dots, FIG. 11C is a diagram showing a comparison pattern for cutting three dots, and FIG. 11D is a diagram showing a comparison pattern for cutting four dots. 図12Aは選択ドットデータを含む所定範囲のドットパターンと比較パターンとの比較を示す図であり、図12Bは補正が実行された画像を示す図である。FIG. 12A is a diagram showing a comparison between a dot pattern in a predetermined range including selected dot data and a comparison pattern, and FIG. 12B is a diagram showing an image after correction has been executed. 図13Aは選択ドットデータを含む所定範囲のドットパターンとマスクパターンを示す図であり、図13Bはマスク処理後のドットパターンと比較パターンとの比較を示す図であり、図13Cは補正せずに維持された画像を示す図である。FIG. 13A is a diagram showing a dot pattern and a mask pattern in a specified range including selected dot data, FIG. 13B is a diagram showing a comparison of the dot pattern after mask processing with a comparison pattern, and FIG. 13C is a diagram showing an image maintained without correction. 図14Aは選択ドットデータを含む所定範囲のドットパターンとマスクパターンを示す図であり、図14Bはマスク処理後のドットパターンと比較パターンとの比較を示す図であり、図14Cは補正が実行された画像を示す図である。FIG. 14A shows a dot pattern and a mask pattern within a specified range including selected dot data, FIG. 14B shows a comparison of the dot pattern after mask processing with a comparison pattern, and FIG. 14C shows an image after correction has been performed. 本発明の一実施形態に係る印刷システムの構成を示すブロック図である。1 is a block diagram showing a configuration of a printing system according to an embodiment of the present invention.

以下、本発明の実施形態に係る印刷装置について図面を参照して説明する。以下に説明する印刷装置は本発明の一実施形態に過ぎない。従って、本発明は以下の実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で追加、削除および変更が可能である。 The printing device according to an embodiment of the present invention will be described below with reference to the drawings. The printing device described below is merely one embodiment of the present invention. Therefore, the present invention is not limited to the following embodiment, and additions, deletions, and modifications are possible without departing from the spirit of the present invention.

図1は本発明の一実施形態に係る印刷装置10を示す平面図である。図2は図1の印刷装置10に備わる吐出ヘッド30の底面図である。図3は図1の印刷装置10における制御系の構成を示すブロック図である。図1および図2において、相互に直交する方向を、第1方向Dsおよび第2方向Dfとする。本実施形態では、例えば、第2方向Dfは後述の被印刷媒体Wの搬送方向であり、第1方向Dsは後述するラインヘッド式の吐出ヘッド30の延在方向である。以下の説明では、Dsを延在方向と呼び、Dfを搬送方向と呼び、延在方向Dsの一方を左方、当該延在方向Dsの他方を右方とし、搬送方向Dfの一方を前方、当該搬送方向Dfの他方を後方とする。但し、上記各方向は一例であって限定されるものではない。 1 is a plan view showing a printing device 10 according to an embodiment of the present invention. FIG. 2 is a bottom view of the ejection head 30 provided in the printing device 10 of FIG. 1. FIG. 3 is a block diagram showing the configuration of a control system in the printing device 10 of FIG. 1. In FIG. 1 and FIG. 2, directions perpendicular to each other are the first direction Ds and the second direction Df. In this embodiment, for example, the second direction Df is the transport direction of the print medium W described later, and the first direction Ds is the extension direction of the line head type ejection head 30 described later. In the following description, Ds is called the extension direction, Df is called the transport direction, one side of the extension direction Ds is the left side, the other side of the extension direction Ds is the right side, one side of the transport direction Df is the front, and the other side of the transport direction Df is the rear. However, the above directions are merely examples and are not limited.

図1に示すように、印刷装置10は、例えば、液滴としてのインク滴を印刷用紙である被印刷媒体Wに吐出するインクジェットプリンタである。印刷装置10は、筐体11、プラテン12、搬送装置20、1又は複数(例えば、4つ)の吐出ヘッド30、タンク13およびコントローラ40を備える。なお、吐出ヘッド30は例えばラインヘッドである。 As shown in FIG. 1, the printing device 10 is, for example, an inkjet printer that ejects ink droplets onto a print medium W, which is a print sheet. The printing device 10 includes a housing 11, a platen 12, a conveying device 20, one or more (for example, four) ejection heads 30, a tank 13, and a controller 40. The ejection head 30 is, for example, a line head.

筐体11は、プラテン12、搬送装置20、吐出ヘッド30、タンク13およびコントローラ40を収容する。プラテン12は平坦な上面を有し、この上面に被印刷媒体Wが載置される。 The housing 11 houses the platen 12, the transport device 20, the ejection head 30, the tank 13, and the controller 40. The platen 12 has a flat upper surface on which the print medium W is placed.

搬送装置20は、一対の搬送ローラ21および搬送モータ22(図3)を有する。一対の搬送ローラ21は、搬送方向Dfにおいて互いの間に吐出ヘッド30を挟むように配置されており、その中心軸が延在方向Dsに延びて互いに平行に並んでいる。搬送モータ22は、搬送ローラ21に連結されており、搬送ローラ21を回転させ、被印刷媒体Wを前方に搬送する。 The transport device 20 has a pair of transport rollers 21 and a transport motor 22 (Figure 3). The pair of transport rollers 21 are arranged in the transport direction Df to sandwich the ejection head 30 between them, and are aligned parallel to each other with their central axes extending in the extension direction Ds. The transport motor 22 is connected to the transport rollers 21 and rotates the transport rollers 21 to transport the print medium W forward.

吐出ヘッド30は、筐体11に固定されており、例えば矩形状であって、延在方向Dsにおける寸法が被印刷媒体Wの寸法よりも長い。吐出ヘッド30の下面は、プラテン12の上面に対向した状態で配置されている。4つの吐出ヘッド30は、搬送方向Dfに一列に並べられている。 The ejection heads 30 are fixed to the housing 11 and are, for example, rectangular in shape, with dimensions in the extension direction Ds longer than the dimensions of the print medium W. The lower surfaces of the ejection heads 30 are disposed facing the upper surface of the platen 12. The four ejection heads 30 are aligned in a line in the transport direction Df.

タンク13は、例えば、吐出ヘッド30と同数が設けられ、互いに異なる種類のインクを貯留し、吐出ヘッド30にチューブ14によって接続されている。例えば、4つのタンク13は、シアン、マゼンタ、イエローおよびブラックのインクをそれぞれ貯留し、対応する吐出ヘッド30にチューブ14を介してインクを供給する。 For example, the tanks 13 are provided in the same number as the ejection heads 30, each of which stores a different type of ink, and is connected to the ejection heads 30 by a tube 14. For example, four tanks 13 store cyan, magenta, yellow, and black ink, respectively, and supply ink to the corresponding ejection heads 30 via the tube 14.

吐出ヘッド30は、図2に示すように、保持台31および複数のチップ32を有する。保持台31は、例えば、直方体形状であって、その下面にチップ32の下面が露出するようにチップ32を保持している。なお、図2では1つの吐出ヘッド30のみを示している。 As shown in FIG. 2, the ejection head 30 has a holding base 31 and a number of chips 32. The holding base 31 is, for example, rectangular, and holds the chips 32 so that the undersides of the chips 32 are exposed on its underside. Note that only one ejection head 30 is shown in FIG. 2.

チップ32は、複数のノズル33および当該ノズル33に対応する駆動素子34(図3)を有する。ノズル33は、液体流路およびチューブ14を介してタンク13に接続されている。複数のノズル33は、例えば、延在方向Dsにおいて互いに所定の間隔を空けながら列を成し、ノズル列を形成している。各チップ32では、延在方向Dsにおいて複数のノズル33が等間隔に並ぶように複数のノズル列は搬送方向Dfに配列されている。 The chip 32 has a number of nozzles 33 and driving elements 34 (Figure 3) corresponding to the nozzles 33. The nozzles 33 are connected to the tank 13 via a liquid flow path and a tube 14. The nozzles 33 are arranged, for example, in a row at a predetermined interval from each other in the extension direction Ds to form a nozzle row. In each chip 32, the nozzle rows are arranged in the transport direction Df so that the nozzles 33 are arranged at equal intervals in the extension direction Ds.

複数のチップ32は、保持台31において延在方向Dsに配置され、且つ、隣り合うチップ32は搬送方向Dfにずれて配置されている。このため、複数のチップ32は、1つずつ搬送方向Dfに互い違いになるようにして延在方向Dsに並べられている。複数のチップ32は、延在方向Dsにおいて複数のノズル33が等間隔で配置されつつ延在方向Dsにおける全長が被印刷媒体Wよりも長くなるように配置されている。 The multiple chips 32 are arranged in the extension direction Ds on the holding table 31, and adjacent chips 32 are arranged with a shift in the transport direction Df. Therefore, the multiple chips 32 are arranged in the extension direction Ds so that they are staggered one by one in the transport direction Df. The multiple chips 32 are arranged so that the multiple nozzles 33 are arranged at equal intervals in the extension direction Ds and the total length in the extension direction Ds is longer than the printing medium W.

コントローラ40は、図3に示すように、演算部41、記憶部42およびインターフェース43を有する。コントローラ40は単独のコントローラであってもよいし、複数のコントローラで構成されてもよい。 As shown in FIG. 3, the controller 40 has a calculation unit 41, a memory unit 42, and an interface 43. The controller 40 may be a single controller, or may be composed of multiple controllers.

インターフェース43は、コンピュータ、ネットワークおよび記録媒体等の外部機器Bに接続され、外部機器Bから印刷データ等の各種データを受信する。印刷データは、被印刷媒体W上にインク滴を着弾させて形成するドットにより所定情報を有するコードを含む画像を被印刷媒体Wに形成するためのデータであって、例えば、ラスタデータ等の画像データを含む。なお、印刷データは記憶部42に記憶されたデータであってもよい。また、印刷データは吐出ヘッド30からインク滴を吐出させるか否かを指令するための2値以上のデータであってもよい。また、印刷データは上記2値以上のデータに変換される前のRGB値のデータであってもよい。 The interface 43 is connected to an external device B such as a computer, a network, and a recording medium, and receives various data such as print data from the external device B. The print data is data for forming an image including a code having predetermined information on the print medium W by dots formed by landing ink droplets on the print medium W, and includes image data such as raster data. The print data may be data stored in the memory unit 42. The print data may also be binary or higher data for instructing whether or not to eject ink droplets from the ejection head 30. The print data may also be RGB value data before being converted into the binary or higher data.

記憶部42は、演算部41がアクセス可能な記憶媒体であって、例えばRAMおよびROMにより構成される。RAMは各種データを一時的に記憶する。この各種データとしては、印刷データおよび演算部41により変換されたデータが例示される。ROMは各種処理を行うためのプログラム、並びに後述する比較パターンPc、除外パターンPeおよびマスクパターンPmを記憶する。なお、プログラムは記憶部42以外の他の記憶媒体に記憶されていてもよい。 The memory unit 42 is a storage medium accessible by the calculation unit 41, and is composed of, for example, a RAM and a ROM. The RAM temporarily stores various data. Examples of this data include print data and data converted by the calculation unit 41. The ROM stores programs for performing various processes, as well as a comparison pattern Pc, an exclusion pattern Pe, and a mask pattern Pm, which will be described later. Note that the programs may be stored in a storage medium other than the memory unit 42.

演算部41は、例えばCPU等のプロセッサおよびASIC等の集積回路により構成される。演算部41は、ROMに記憶されたプログラムを実行することにより、駆動素子34および搬送モータ22を制御する。 The calculation unit 41 is composed of, for example, a processor such as a CPU and an integrated circuit such as an ASIC. The calculation unit 41 controls the drive element 34 and the conveying motor 22 by executing a program stored in the ROM.

コントローラ40は、ヘッド駆動回路44を介して駆動素子34に接続されており、印刷データに基づいた制御信号をヘッド駆動回路44に出力する。ヘッド駆動回路44は、制御信号に基づいて駆動信号を生成して駆動素子34に出力する。これにより、駆動素子34が駆動信号に応じて駆動し、ノズル33に繋がる流路のインクに圧力が付与されることで、ノズル33からインク滴が被印刷媒体Wに吐出される。 The controller 40 is connected to the drive element 34 via the head drive circuit 44, and outputs a control signal based on the print data to the head drive circuit 44. The head drive circuit 44 generates a drive signal based on the control signal and outputs it to the drive element 34. This causes the drive element 34 to drive in response to the drive signal, and pressure is applied to the ink in the flow path connected to the nozzle 33, causing ink droplets to be ejected from the nozzle 33 onto the print medium W.

コントローラ40は、搬送駆動回路45を介して搬送モータ22に接続されており、印刷データに基づいた制御信号を搬送駆動回路45に出力する。搬送駆動回路45はこの制御信号に基づいて生成した駆動信号を搬送モータ22に出力する。これにより、搬送モータ22の駆動タイミング、回転速度、回転量等が制御され、被印刷媒体Wが搬送方向Dfの前方に搬送される。 The controller 40 is connected to the transport motor 22 via the transport drive circuit 45, and outputs a control signal based on the print data to the transport drive circuit 45. The transport drive circuit 45 outputs a drive signal generated based on this control signal to the transport motor 22. This controls the drive timing, rotation speed, rotation amount, etc. of the transport motor 22, and transports the print medium W forward in the transport direction Df.

コントローラ40は、印刷データに基づいて画像を被印刷媒体Wに印刷する印刷処理を実行する。この印刷処理では、コントローラ40は、印刷データに基づいて駆動素子34の駆動によりノズル33からインク滴を吐出させる吐出動作および搬送モータ22の駆動により被印刷媒体Wを搬送方向Dfの前方に搬送させる搬送動作を行う。これにより、ノズル33から吐出されたインク滴が被印刷媒体Wの上に着弾し、当該インク滴によって被印刷媒体W上にドットが形成される。このドットの集合体により被印刷媒体Wに画像が形成される。 The controller 40 executes a printing process that prints an image on the print medium W based on the print data. In this printing process, the controller 40 performs an ejection operation that drives the drive element 34 to eject ink droplets from the nozzle 33 based on the print data, and a transport operation that drives the transport motor 22 to transport the print medium W forward in the transport direction Df. As a result, the ink droplets ejected from the nozzle 33 land on the print medium W, and the ink droplets form dots on the print medium W. An image is formed on the print medium W by a collection of these dots.

図4は情報を有するコードCを含む画像Gの一例を示す図である。画像Gは、1つ又は複数のドットにより形成され、図4に示すようにコードCを含む。コントローラ40は、被印刷媒体W上にインク滴を着弾させて形成するドットにより、図4に示すようなコードCを含む画像Gを被印刷媒体Wに形成するための印刷データ(以下、第1印刷データと呼ぶ)を例えば外部機器Bから取得する処理を実行する。なお、第1印刷データは、印刷装置10に備わるキーボードおよびマウス等の入力装置15を用いてユーザにより入力されたものであってもよい。図4においては、画像GにコードC以外の画像(例えば文字および符号等)が含まれない態様を示したが、当該画像GにはコードC以外の画像が含まれていてもよい。コードCは、反射光から情報を読み取るためのコードであって、バーコード等の一次元コードおよびQRコード(登録商標)等の二次元コードが例示される。コードリーダにより赤外線等の光がコードCに対して照射され、その反射光からコードCに含まれる情報が読み取られる。 Figure 4 is a diagram showing an example of an image G including a code C having information. The image G is formed by one or more dots, and includes the code C as shown in Figure 4. The controller 40 executes a process of acquiring print data (hereinafter referred to as the first print data) for forming an image G including the code C as shown in Figure 4 on the print medium W by dots formed by landing ink droplets on the print medium W, for example, from an external device B. The first print data may be input by a user using an input device 15 such as a keyboard and a mouse provided in the printing device 10. In Figure 4, an embodiment is shown in which the image G does not include images (e.g., characters and symbols) other than the code C, but the image G may include images other than the code C. The code C is a code for reading information from reflected light, and examples of the code C include one-dimensional codes such as barcodes and two-dimensional codes such as QR codes (registered trademark). A code reader irradiates the code C with light such as infrared light, and the information included in the code C is read from the reflected light.

(補正処理)
次いで、コードCの読み取り精度の低下を抑制するための、パターンマッチングによる補正について説明する。
(Correction process)
Next, correction by pattern matching for suppressing a decrease in the reading accuracy of the code C will be described.

図5Aは処理前の画像Dg1を示す図であり、図5Bは選択された選択ドットデータDcを含む所定範囲のドットパターンPd1と比較パターンPcとの比較を示す図であり、図5Cは補正が実行された画像Dg1を示す図である。なお、図5Aの画像Dg1は図4で説明したコードCを含む画像Gの一部についての一例とする。 Figure 5A shows image Dg1 before processing, Figure 5B shows a comparison between a dot pattern Pd1 in a predetermined range including selected dot data Dc and a comparison pattern Pc, and Figure 5C shows image Dg1 after correction has been performed. Note that image Dg1 in Figure 5A is an example of a portion of image G including code C described in Figure 4.

コントローラ40は、取得した第1印刷データにおいて、画像を形成するドットに対応するドットデータを選択する。そして、コントローラ40は、選択したドットデータである選択ドットデータを含む所定範囲のドットパターンが所定の比較パターンに一致するか否かを判別する処理を実行する。コントローラ40は、判別する処理においてドットパターンが比較パターンに一致しないと判別された場合には上記ドットパターンに含まれる選択ドットデータを第1印刷データから削除する補正を行い、他方、ドットパターンが比較パターンに一致すると判別された場合には選択ドットデータを第1印刷データから削除する補正を行わずに維持する処理を実行する。このような処理が本実施形態における基本的な補正処理である。以下、図面を参照しつつ具体的に説明する。 The controller 40 selects dot data corresponding to the dots that form the image from the acquired first print data. The controller 40 then executes a process to determine whether or not a dot pattern in a predetermined range that includes the selected dot data, which is the selected dot data, matches a predetermined comparison pattern. If the controller 40 determines in the determination process that the dot pattern does not match the comparison pattern, it performs a correction to delete the selected dot data included in the dot pattern from the first print data, and on the other hand, if it determines that the dot pattern matches the comparison pattern, it performs a process to maintain the selected dot data without performing a correction to delete it from the first print data. This process is the basic correction process in this embodiment. A specific description will be given below with reference to the drawings.

コントローラ40は、図5Aに示すように、第1印刷データに基づいて印刷する画像を1つのドットに1つのセルが対応するように格子状に複数のセルに分割する。そして、コントローラ40は、第1印刷データにおける濃度が所定値以上であるセルに対しては、ドットを形成するとしてドットデータ「1」を設定する。ドットデータ「1」が設定されたセルは、図5Aにおいて黒塗りされたセルであり、以降の図も同様とする。一方、コントローラ40は、第1印刷データにおける濃度が所定値未満であるセルに対しては、ドットを形成しないとして空白データ「0」を設定する。空白データ「0」が設定されたセルは、図5Aにおいて黒塗りされていないセルであり、以降の図も同様とする。なお、以下の説明において、便宜上、格子状に配置された各セルの位置を行および列により特定する。 As shown in FIG. 5A, the controller 40 divides the image to be printed based on the first print data into a number of cells in a grid pattern so that one cell corresponds to one dot. The controller 40 then sets dot data "1" to cells whose density in the first print data is equal to or greater than a predetermined value, indicating that a dot will be formed. The cells to which dot data "1" is set are the blackened cells in FIG. 5A, and the same applies to the following figures. On the other hand, the controller 40 sets blank data "0" to cells whose density in the first print data is less than a predetermined value, indicating that a dot will not be formed. The cells to which blank data "0" is set are the unblackened cells in FIG. 5A, and the same applies to the following figures. In the following explanation, for convenience, the position of each cell arranged in a grid pattern will be specified by row and column.

コントローラ40は、第1印刷データにおける複数のセルから、画像Dg1を形成するドットデータ「1」を順に選択し、選択したドットデータ(選択ドットデータ)Dcを含む所定範囲のドットパターンを抽出する。図5Aでは、選択ドットデータDcとして、3行3列目に位置するセルにおけるドットデータDc1が選択されたものとする。また、図5Aでは、選択ドットデータDcおよび当該選択ドットデータDcを囲む8つのドットデータから成る3×3のドットパターンPd1を所定範囲のドットパターンとする。なお、選択ドットデータDcを基準として抽出されるドットパターンの所定範囲は任意であり適宜変更可能である。 The controller 40 sequentially selects dot data "1" forming the image Dg1 from the multiple cells in the first print data, and extracts a dot pattern of a predetermined range including the selected dot data (selected dot data) Dc. In FIG. 5A, it is assumed that dot data Dc1 in the cell located in the third row and third column is selected as the selected dot data Dc. Also, in FIG. 5A, it is assumed that the dot pattern of the predetermined range is a 3x3 dot pattern Pd1 consisting of the selected dot data Dc and eight dot data surrounding the selected dot data Dc. Note that the predetermined range of the dot pattern extracted based on the selected dot data Dc is arbitrary and can be changed as appropriate.

続いて、図5Bに示すように、コントローラ40は選択ドットデータDcを含むドットパターンPd1が所定の比較パターンPcに一致するか否かを判別する。図5Bでは、ドットパターンPd1は比較パターンPcに一致しない。この場合、コントローラ40は、選択ドットデータDcを第1印刷データから削除するべく、選択ドットデータDcに対応するドットデータDc1を図5Cに示すように空白データDca1にする補正を行う。なお、比較パターンPcおよび後述の除外パターンPeにおいて、ドットデータ「1」はドットの形成を示し、空白データ「0」はドットの非形成を示す。また、図5Cにおける参照符号Pdh1は補正後の画像を示す。このように本実施形態では、ドットパターンPd1が比較パターンPcに一致しない場合に補正を実行する。 Next, as shown in FIG. 5B, the controller 40 determines whether the dot pattern Pd1 including the selected dot data Dc matches a predetermined comparison pattern Pc. In FIG. 5B, the dot pattern Pd1 does not match the comparison pattern Pc. In this case, the controller 40 performs a correction to change the dot data Dc1 corresponding to the selected dot data Dc to blank data Dca1 as shown in FIG. 5C in order to delete the selected dot data Dc from the first print data. Note that in the comparison pattern Pc and the exclusion pattern Pe described below, dot data "1" indicates the formation of a dot, and blank data "0" indicates the non-formation of a dot. Also, the reference symbol Pdh1 in FIG. 5C indicates the image after correction. In this way, in this embodiment, correction is performed when the dot pattern Pd1 does not match the comparison pattern Pc.

図6Aは1ドット削りに係る補正を示す図であり、図6Bは2ドット削りに係る補正を示す図であり、図6Cは3ドット削りに係る補正を示す図であり、図6Dは4ドット削りに係る補正を示す図である。 Figure 6A shows the correction for removing one dot, Figure 6B shows the correction for removing two dots, Figure 6C shows the correction for removing three dots, and Figure 6D shows the correction for removing four dots.

1ドット削りに係る補正とは、画像Dg2の搬送方向Dfにおける1行分の各セルのドットデータDkを空白データにすると共に、当該画像Dg2の延在方向Dsにおける外側の1列分の各セルのドットデータDkを空白データにする補正である。具体例を挙げると、1ドット削りに係る補正では、図6Aの処理前の画像Dg2において、例えば、搬送方向Dfの後方の行(図6Aでは2行目)および延在方向Dsの左方の列(図6Aでは2列目)の各セルのドットデータDkが空白データにされる。よって、例えば、搬送方向Dfの前方の行(図6Aでは7行目)、および延在方向Dsの右方の列(図6Aでは7列目)の各セルのドットデータDkを空白データにする等の変形が可能である。また、2ドット削りに係る補正とは、図6Bの処理前の画像Dg2において、当該画像Dg2の外周縁を構成する各セルのドットデータDkを空白データにする補正である。 The correction for removing one dot is a correction for making the dot data Dk of each cell in one row in the conveying direction Df of the image Dg2 blank data, and making the dot data Dk of each cell in one outer column in the extension direction Ds of the image Dg2 blank data. To give a specific example, in the correction for removing one dot, for example, in the image Dg2 before processing in FIG. 6A, the dot data Dk of each cell in the row behind in the conveying direction Df (the second row in FIG. 6A) and the column to the left in the extension direction Ds (the second column in FIG. 6A) is made blank data. Therefore, for example, it is possible to make the dot data Dk of each cell in the row ahead in the conveying direction Df (the seventh row in FIG. 6A) and the column to the right in the extension direction Ds (the seventh column in FIG. 6A) blank data. In addition, the correction for removing two dots is a correction for making the dot data Dk of each cell constituting the outer periphery of the image Dg2 before processing in FIG. 6B blank data.

3ドット削りに係る補正とは、画像Dg2の搬送方向Dfにおける一方側の1行分と他方側の2行分の各セルのドットデータDkを空白データにすると共に、当該画像Dg2の延在方向Dsにおける一方側の1列分と他方側の2列分の各セルのドットデータDkを空白データにする補正である。具体例を挙げると、3ドット削りに係る補正では、図6Cの処理前の画像Dg2において、例えば、搬送方向Dfの後方の2つの行(図6Cでは2行目と3行目)および前方の1つの行(図6Cでは7行目)の各セルのドットデータDkが空白データにされる。これに加えて、3ドット削りに係る補正では、画像Dg2において、例えば、延在方向Dsの左方の2つの列(図6Cでは2列目と3列目)および右方の1つの列(図6Cでは7列目)の各セルのドットデータDkが空白データにされる。また、4ドット削りに係る補正とは、2ドット削りに係る補正後の画像Dg2において、図6Dに示すように、さらに当該画像Dg2の外周縁を構成する各セルのドットデータDkを空白データにする補正である。 The correction for three-dot cutting is a correction in which the dot data Dk of each cell in one row on one side and two rows on the other side in the conveying direction Df of the image Dg2 is made blank data, and the dot data Dk of each cell in one column on one side and two columns on the other side in the extension direction Ds of the image Dg2 is made blank data. To give a specific example, in the correction for three-dot cutting, in the image Dg2 before processing in FIG. 6C, for example, the dot data Dk of each cell in the two rows on the rear side in the conveying direction Df (the second and third rows in FIG. 6C) and the one row on the front side (the seventh row in FIG. 6C) is made blank data. In addition, in the correction for three-dot cutting, for example, the dot data Dk of each cell in the two columns on the left side in the extension direction Ds (the second and third columns in FIG. 6C) and the one column on the right side (the seventh column in FIG. 6C) is made blank data. In addition, the correction for removing 4 dots is a correction in which, in the image Dg2 after the correction for removing 2 dots, the dot data Dk of each cell that makes up the outer edge of the image Dg2 is made blank data, as shown in FIG. 6D.

次に、図7Aは処理前の画像Dg2を示す図であり、図7Bは選択された選択ドットデータDcを含む所定範囲のドットパターンPd2と比較パターンPcとの比較を示す図である。また、図7CはドットパターンPd2と除外パターンPeとの比較を示す図であり、図7Dは補正が実行された画像Dg2を示す図である。なお、図7Aの画像Dg2は図4で説明したコードCを含む画像Gの一部についての一例とする。 Next, FIG. 7A shows image Dg2 before processing, and FIG. 7B shows a comparison between a dot pattern Pd2 in a predetermined range including selected dot data Dc and a comparison pattern Pc. Also, FIG. 7C shows a comparison between dot pattern Pd2 and an exclusion pattern Pe, and FIG. 7D shows image Dg2 after correction has been performed. Note that image Dg2 in FIG. 7A is an example of a portion of image G including code C described in FIG. 4.

ここでは、ドットパターンPd2と比較パターンPcとの比較に加えて当該ドットパターンPd2と除外パターンPeとの比較について説明する。ドットパターンPd1と比較パターンPcとの比較において両者が一致しない場合に補正を行うのが基本的な補正処理であることを図5で述べたが、ドットパターンPd2と比較パターンPcとが一致せず、且つ当該ドットパターンPd2と除外パターンPeとが一致しない場合(以下、この場合を第1状態ST1と呼ぶ)に補正を行う。以下、具体的に説明する。 Here, in addition to comparing the dot pattern Pd2 with the comparison pattern Pc, a comparison between the dot pattern Pd2 and the exclusion pattern Pe will be described. As mentioned in FIG. 5, the basic correction process is to perform correction when the dot pattern Pd1 and the comparison pattern Pc do not match, but correction is performed when the dot pattern Pd2 and the comparison pattern Pc do not match, and the dot pattern Pd2 and the exclusion pattern Pe do not match (hereinafter, this case will be referred to as the first state ST1). A specific explanation will be given below.

図7Aに示すように、6行3列目に位置するセルにおけるドットデータDc2が選択ドットデータDcとして選択されたものとする。また、図7Aでは、選択ドットデータDcおよび当該選択ドットデータDcを囲む8つのドットデータから成る3×3のドットパターンPd2を所定範囲のドットパターンとする。 As shown in FIG. 7A, the dot data Dc2 in the cell located in the sixth row and third column is selected as the selected dot data Dc. Also, in FIG. 7A, the dot pattern of the specified range is the 3×3 dot pattern Pd2 consisting of the selected dot data Dc and eight dot data surrounding the selected dot data Dc.

コントローラ40は、図5Bの場合と同様に、図7Bにおいて選択ドットデータDcを含むドットパターンPd2が比較パターンPcに一致するか否かを判別する。図7Bにおいては、ドットパターンPd2は比較パターンPcに一致しない(第1結果)。そして、コントローラ40は、図7Cに示すように、ドットパターンPd2が所定の除外パターンPeに一致するか否かを判別する。図7Cでは、ドットパターンPd2は除外パターンPeに一致しない(第2結果)。よって、第1結果および第2結果より、コントローラ40は第1状態ST1が成立すると判別する。この場合、コントローラ40は、選択ドットデータDcを第1印刷データから削除するべく、選択ドットデータDcに対応するドットデータDc2を図7Dに示すように空白データDca2にする補正を行う。なお、図7Dにおける参照符号Pdh2は補正後の画像を示す。 As in the case of FIG. 5B, the controller 40 determines whether the dot pattern Pd2 including the selected dot data Dc in FIG. 7B matches the comparison pattern Pc. In FIG. 7B, the dot pattern Pd2 does not match the comparison pattern Pc (first result). Then, as shown in FIG. 7C, the controller 40 determines whether the dot pattern Pd2 matches a predetermined exclusion pattern Pe. In FIG. 7C, the dot pattern Pd2 does not match the exclusion pattern Pe (second result). Therefore, based on the first and second results, the controller 40 determines that the first state ST1 is established. In this case, the controller 40 corrects the dot data Dc2 corresponding to the selected dot data Dc to blank data Dca2 as shown in FIG. 7D in order to delete the selected dot data Dc from the first print data. Note that the reference symbol Pdh2 in FIG. 7D indicates the image after correction.

これに対して、コントローラ40は第1状態ST1以外の状態である第2状態ST2が成立すると判別する場合には、以下の処理を実行する。 In contrast, if the controller 40 determines that the second state ST2, which is a state other than the first state ST1, exists, it executes the following process.

図8Aは処理前の画像Dg3を示す図であり、図8Bは選択ドットデータDcを含む所定範囲のドットパターンPd3と比較パターンPcとの比較を示す図であり、図8Cは補正が実行されずに維持された画像Dg3を示す図である。なお、図8Aの画像Dg3は図7Aの画像Dg2と同一である。 Figure 8A shows image Dg3 before processing, Figure 8B shows a comparison between a dot pattern Pd3 of a specified range including selected dot data Dc and a comparison pattern Pc, and Figure 8C shows image Dg3 that has been maintained without correction. Note that image Dg3 in Figure 8A is the same as image Dg2 in Figure 7A.

図8Aに示すように、5行4列目に位置するセルにおけるドットデータDc3が選択ドットデータDcとして選択されたものとする。また、図8Aでは、選択ドットデータDcおよび当該選択ドットデータDcを囲む8つのドットデータから成る3×3のドットパターンPd3を所定範囲のドットパターンとする。 As shown in FIG. 8A, the dot data Dc3 in the cell located in the fifth row and fourth column is selected as the selected dot data Dc. Also, in FIG. 8A, the dot pattern of the specified range is the 3×3 dot pattern Pd3 consisting of the selected dot data Dc and eight dot data surrounding the selected dot data Dc.

コントローラ40は、図7Bの場合と同様に、図8Bにおいて選択ドットデータDcを含むドットパターンPd3が比較パターンPcに一致するか否かを判別する。図8Bでは、ドットパターンPd3は比較パターンPcに一致する。よって、コントローラ40は第1状態ST1以外の第2状態ST2が成立すると判別する。この場合、コントローラ40は、ドットパターンPd3に含まれる選択ドットデータDcに対応するドットデータDc3を第1印刷データから削除する補正を行わずに図8Cに示す通り維持する処理を行う。 As in the case of FIG. 7B, the controller 40 determines whether the dot pattern Pd3 including the selected dot data Dc in FIG. 8B matches the comparison pattern Pc. In FIG. 8B, the dot pattern Pd3 matches the comparison pattern Pc. Therefore, the controller 40 determines that the second state ST2 other than the first state ST1 exists. In this case, the controller 40 performs processing to maintain the dot data Dc3 corresponding to the selected dot data Dc included in the dot pattern Pd3 as shown in FIG. 8C without making a correction to delete it from the first print data.

第2状態ST2の別例について説明する。図9Aは処理前の画像Dg4を示す図であり、図9Bは選択された選択ドットデータDcを含む所定範囲のドットパターンPd4と比較パターンPcとの比較を示す図である。また、図9CはドットパターンPd4と除外パターンPeとの比較を示す図であり、図9Dは補正が実行されずに維持された画像Dg4を示す図である。 Another example of the second state ST2 will be described. Fig. 9A shows the image Dg4 before processing, and Fig. 9B shows a comparison between a dot pattern Pd4 of a predetermined range including the selected dot data Dc and a comparison pattern Pc. Fig. 9C shows a comparison between the dot pattern Pd4 and an exclusion pattern Pe, and Fig. 9D shows the image Dg4 that has been maintained without correction being performed.

図9Aに示すように、5行3列目に位置するセルにおけるドットデータDc4が選択ドットデータDcとして選択されたものとする。また、図9Aでは、選択ドットデータDcおよび当該選択ドットデータDcを囲む8つのドットデータから成る3×3のドットパターンPd4を所定範囲のドットパターンとする。 As shown in FIG. 9A, the dot data Dc4 in the cell located in the fifth row and third column is selected as the selected dot data Dc. Also, in FIG. 9A, the dot pattern of the specified range is a 3×3 dot pattern Pd4 consisting of the selected dot data Dc and eight dot data surrounding the selected dot data Dc.

コントローラ40は、図7Bの場合と同様に、図9Bにおいて選択ドットデータDcを含むドットパターンPd4が比較パターンPcに一致するか否かを判別する。図9Bにおいては、ドットパターンPd4は比較パターンPcに一致しない(第3結果)。そして、コントローラ40は、図9Cに示すように、ドットパターンPd4が所定の除外パターンPeに一致するか否かを判別する。図9Cでは、ドットパターンPd4は除外パターンPeに一致する(第4結果)。よって、第3結果および第4結果より、コントローラ40は第1状態ST1以外の第2状態ST2が成立すると判別する。この場合、コントローラ40は、図8Cと同様に、ドットパターンPd4に含まれる選択ドットデータDcに対応するドットデータDc4を第1印刷データから削除する補正を行わずに図9Dに示す通り維持する処理を行う。 As in the case of FIG. 7B, the controller 40 determines whether or not the dot pattern Pd4 including the selected dot data Dc in FIG. 9B matches the comparison pattern Pc. In FIG. 9B, the dot pattern Pd4 does not match the comparison pattern Pc (third result). Then, as shown in FIG. 9C, the controller 40 determines whether or not the dot pattern Pd4 matches the specified exclusion pattern Pe. In FIG. 9C, the dot pattern Pd4 matches the exclusion pattern Pe (fourth result). Therefore, based on the third and fourth results, the controller 40 determines that the second state ST2 other than the first state ST1 exists. In this case, as in FIG. 8C, the controller 40 performs processing to maintain the dot data Dc4 corresponding to the selected dot data Dc included in the dot pattern Pd4 as shown in FIG. 9D without making a correction to delete it from the first print data.

以上の通り、コントローラ40は第1状態ST1および第2状態ST2のうち何れの状態が成立するかについて判別し、当該判別結果に応じて補正の要否を決定する。そして、コントローラ40は、第1印刷データについて補正または上記維持が行われて得られた第2印刷データに基づいて吐出ヘッド30から被印刷媒体Wにインク滴を吐出させて画像を被印刷媒体Wに形成する処理を実行する。 As described above, the controller 40 determines whether the first state ST1 or the second state ST2 exists, and determines whether correction is required depending on the result of the determination. The controller 40 then executes a process of ejecting ink droplets from the ejection head 30 onto the print medium W based on the second print data obtained by performing the correction or maintenance described above on the first print data, thereby forming an image on the print medium W.

図10は印刷処理を示すフローチャートである。図10に示すように、最初にコントローラ40はコードCを含む画像Gを被印刷媒体Wに形成するための第1印刷データを外部機器B又は入力装置15から取得する(ステップS1)。次に、コントローラ40は選択ドットデータDcを含む所定範囲(例えば選択ドットデータDcを中心とした3×3)のドットパターンを取得する(ステップS2)。そして、コントローラ40は取得したドットパターンが比較パターンPcに一致するか否かを判別する(ステップS3)。 Figure 10 is a flowchart showing the printing process. As shown in Figure 10, first, the controller 40 acquires first print data for forming an image G including a code C on a print medium W from an external device B or an input device 15 (step S1). Next, the controller 40 acquires a dot pattern of a predetermined range (e.g., 3 x 3 with the selected dot data Dc at the center) including the selected dot data Dc (step S2). Then, the controller 40 determines whether the acquired dot pattern matches the comparison pattern Pc (step S3).

ドットパターンが比較パターンPcに一致しない場合(ステップS3でNo)、コントローラ40はドットパターンが除外パターンPeに一致するか否かを判別する(ステップS4)。ドットパターンが除外パターンPeに一致しない場合(ステップS4でNo)、コントローラ40は第1状態ST1が成立すると判別し、選択ドットデータDcを第1印刷データから削除するべく、選択ドットデータDcに対応するドットデータを空白データにする補正を行う(ステップS5)。 If the dot pattern does not match the comparison pattern Pc (No in step S3), the controller 40 determines whether the dot pattern matches the exclusion pattern Pe (step S4). If the dot pattern does not match the exclusion pattern Pe (No in step S4), the controller 40 determines that the first state ST1 is established, and performs a correction to change the dot data corresponding to the selected dot data Dc to blank data in order to delete the selected dot data Dc from the first print data (step S5).

一方、ドットパターンが比較パターンPcに一致する場合(ステップS3でYes)、および、当該ドットパターンが比較パターンPcに一致せずとも除外パターンPeに一致する場合(ステップS4でYes)には、コントローラ40は第2状態ST1が成立すると判別する。この場合、コントローラ40は選択ドットデータDcを第1印刷データから削除せずに維持する(ステップS7)。 On the other hand, if the dot pattern matches the comparison pattern Pc (Yes in step S3), or if the dot pattern does not match the comparison pattern Pc but matches the exclusion pattern Pe (Yes in step S4), the controller 40 determines that the second state ST1 is established. In this case, the controller 40 maintains the selected dot data Dc without deleting it from the first print data (step S7).

ステップS5の処理の後およびステップS7の処理の後、コントローラ40は第1印刷データについて補正または上記維持が行われて得られた第2印刷データに基づいて画像を被印刷媒体Wに形成する処理を実行する(ステップS6)。 After the processing of step S5 and after the processing of step S7, the controller 40 executes a process of forming an image on the printing medium W based on the second printing data obtained by correcting or maintaining the first printing data (step S6).

(マスク処理)
以下、本実施形態において実行されるマスク処理について説明する。図11Aは1ドット削り用の比較パターンPc1を示す図であり、図11Bは2ドット削り用の比較パターンPc2を示す図であり、図11Cは3ドット削り用の比較パターンPc3を示す図であり、図11Dは4ドット削り用の比較パターンPc4を示す図である。比較パターンPc1は2×2の大きさを有し、比較パターンPc2は3×3の大きさを有し、比較パターンPc3は4×4の大きさを有し、比較パターンPc4は5×5の大きさを有している。このような比較パターンPc1~Pc4は被印刷媒体Wの種類ごとに異なる。すなわち、被印刷媒体Wの種類に応じて、用いられる比較パターンPcが異なる。例えば、インク滴の滲みが多く生じる被印刷媒体Wについては、各ドット削りによる削り量(以下、補正量と呼ぶ)を多くすることが好ましいことから、図11Dの比較パターンPc4などを用いることができる。
(Mask processing)
The mask processing executed in this embodiment will be described below. FIG. 11A is a diagram showing a comparison pattern Pc1 for 1-dot cutting, FIG. 11B is a diagram showing a comparison pattern Pc2 for 2-dot cutting, FIG. 11C is a diagram showing a comparison pattern Pc3 for 3-dot cutting, and FIG. 11D is a diagram showing a comparison pattern Pc4 for 4-dot cutting. The comparison pattern Pc1 has a size of 2×2, the comparison pattern Pc2 has a size of 3×3, the comparison pattern Pc3 has a size of 4×4, and the comparison pattern Pc4 has a size of 5×5. Such comparison patterns Pc1 to Pc4 are different for each type of print medium W. That is, the comparison pattern Pc used differs depending on the type of print medium W. For example, for a print medium W where a lot of ink droplets are smeared, it is preferable to increase the amount of cutting by each dot cutting (hereinafter referred to as the correction amount), so that the comparison pattern Pc4 of FIG. 11D can be used.

上述した補正処理においては、図6で説明した補正量に応じた比較パターンPcが必要となる。1ドット削りに係る補正の際に用いられる比較パターンPcは例えば図11Aに示す2×2の比較パターンPc1である。また、2ドット削りに係る補正の際に用いられる比較パターンPcは例えば図11Bに示す3×3の比較パターンPc2であり、3ドット削りに係る補正の際に用いられる比較パターンPcは例えば図11Cに示す4×4の比較パターンPc3である。さらに、4ドット削りに係る補正の際に用いられる比較パターンPcは例えば図11Dに示す5×5の比較パターンPc4である。本実施形態では、補正量の最大値として4ドット削りを例示したが、これに限られるものではなく、5ドット削り以上の補正量を最大値としてもよい。図11A~11Dにおける参照符号Dpは選択ドットデータDcに対応する比較パターンPc1上のドットデータである。以上のように補正量に基づき比較すべき領域の大きさが異なるため、複数の比較パターンPcが必要となる。そのため、演算量を低減する余地がある。 In the above-mentioned correction process, a comparison pattern Pc according to the correction amount described in FIG. 6 is required. The comparison pattern Pc used in the correction for 1 dot removal is, for example, the 2×2 comparison pattern Pc1 shown in FIG. 11A. The comparison pattern Pc used in the correction for 2 dot removal is, for example, the 3×3 comparison pattern Pc2 shown in FIG. 11B, and the comparison pattern Pc used in the correction for 3 dot removal is, for example, the 4×4 comparison pattern Pc3 shown in FIG. 11C. The comparison pattern Pc used in the correction for 4 dot removal is, for example, the 5×5 comparison pattern Pc4 shown in FIG. 11D. In this embodiment, 4 dot removal is exemplified as the maximum correction amount, but this is not limited to this, and the correction amount of 5 dot removal or more may be the maximum. The reference symbol Dp in FIGS. 11A to 11D is the dot data on the comparison pattern Pc1 corresponding to the selected dot data Dc. As described above, since the size of the area to be compared varies based on the correction amount, multiple comparison patterns Pc are required. Therefore, there is room for reducing the amount of calculation.

そこで、本実施形態では、以下のように比較パターンPcの共通化を行う。図12Aは選択ドットデータDcを含む所定範囲のドットパターンPd5と比較パターンPc5との比較を示す図であり、図12Bは補正が実行された画像を示す図である。 Therefore, in this embodiment, the comparison pattern Pc is standardized as follows: Figure 12A shows a comparison between a dot pattern Pd5 in a predetermined range that includes the selected dot data Dc and a comparison pattern Pc5, and Figure 12B shows an image after correction has been performed.

ここでは、取得すべきドットパターンPd5の範囲を、図11Dで示した比較パターンPc4の大きさ(すなわち比較すべき領域の大きさ)が5×5であることに準じて、図12Aに示すように例えば7×7とすることができる。このとき、比較パターンPc5の大きさ(すなわち、比較すべき領域の大きさ)は、例えば2ドット削りを行うような場合であっても、ドットパターンPd5の大きさに合わせて7×7とする。この点が、同じ2ドット削りでも、図11Bの比較パターンPc2と異なる点である。これにより、補正量に基づき比較すべき領域の大きさが異ならずに比較パターンPcを共通化できる。なお、図12AのドットパターンPd5において、4行4列目に位置するセルにおけるドットデータDc5が選択ドットデータDcとして選択されたものとする。 Here, the range of the dot pattern Pd5 to be acquired can be, for example, 7x7 as shown in FIG. 12A, in accordance with the size of the comparison pattern Pc4 shown in FIG. 11D (i.e., the size of the area to be compared) being 5x5. In this case, the size of the comparison pattern Pc5 (i.e., the size of the area to be compared) is set to 7x7 to match the size of the dot pattern Pd5, even when, for example, two dots are removed. This is different from the comparison pattern Pc2 in FIG. 11B, even though the same two dots are removed. This allows the comparison pattern Pc to be standardized without the size of the area to be compared being different based on the correction amount. Note that in the dot pattern Pd5 in FIG. 12A, the dot data Dc5 in the cell located in the fourth row and fourth column is selected as the selected dot data Dc.

しかしながら、図12Aのように例えば2ドット削りのような少ない補正量に係る補正を行う場合に、7×7という大きな比較領域を有する比較パターンPc5を用いることで、処理が適切に行えないことがある。詳しく説明すると、仮に、2ドット削りを行う際の3×3の比較領域の比較パターンに対して図12Aの選択ドットデータDcを含むドットパターンPd5を比較する場合には、ドットパターンPd5は比較パターンPcに一致する。この場合、選択ドットデータDcを空白データにする補正は行われない。これに対して、図12Aの7×7の比較領域の比較パターンPc5に対してドットパターンPd5を比較すると、ドットパターンPd5は比較パターンPc5に一致しない。この場合、図12Bに示すように、選択ドットデータDcに対応するドットデータDc5が空白データDca5に補正されるという弊害が生じてしまう。そこで、以下のマスク処理を行う。 However, when performing corrections with a small correction amount such as removing two dots as shown in FIG. 12A, using a comparison pattern Pc5 with a large comparison area of 7×7 may prevent the process from being performed properly. To explain in detail, if the dot pattern Pd5 including the selected dot data Dc in FIG. 12A is compared with the comparison pattern of a comparison area of 3×3 when removing two dots, the dot pattern Pd5 matches the comparison pattern Pc. In this case, no correction is performed to make the selected dot data Dc blank data. In contrast, when the dot pattern Pd5 is compared with the comparison pattern Pc5 of the comparison area of 7×7 in FIG. 12A, the dot pattern Pd5 does not match the comparison pattern Pc5. In this case, as shown in FIG. 12B, the dot data Dc5 corresponding to the selected dot data Dc is corrected to blank data Dca5, which is a problem. Therefore, the following mask processing is performed.

図13Aは選択ドットデータDcを含む所定範囲のドットパターンPd6とマスクパターンPmを示す図であり、図13Bはマスク処理後のドットパターンPmaと比較パターンPc6との比較を示す図であり、図13Cは補正せずに維持された画像を示す図である。また、図14Aは選択ドットデータDcを含む所定範囲のドットパターンPd7とマスクパターンPmを示す図であり、図14Bはマスク処理後のドットパターンPmaと比較パターンPc7との比較を示す図であり、図14Cは補正が実行された画像を示す図である。 Figure 13A shows a dot pattern Pd6 of a predetermined range including selected dot data Dc and a mask pattern Pm, Figure 13B shows a comparison between the dot pattern Pma after mask processing and the comparison pattern Pc6, and Figure 13C shows an image maintained without correction. Also, Figure 14A shows a dot pattern Pd7 of a predetermined range including selected dot data Dc and a mask pattern Pm, Figure 14B shows a comparison between the dot pattern Pma after mask processing and the comparison pattern Pc7, and Figure 14C shows an image after correction has been performed.

図13Aに示すドットパターンPd6は図12AのドットパターンPd5と同一である。図13AのドットパターンPd6において、4行4列目に位置するセルにおけるドットデータDc6が選択ドットデータDcとして選択されたものとする。また、図13Bに示す比較パターンPc6は図12Aの比較パターンPc5と同一である。 The dot pattern Pd6 shown in FIG. 13A is the same as the dot pattern Pd5 in FIG. 12A. In the dot pattern Pd6 in FIG. 13A, the dot data Dc6 in the cell located in the fourth row and fourth column is selected as the selected dot data Dc. In addition, the comparison pattern Pc6 shown in FIG. 13B is the same as the comparison pattern Pc5 in FIG. 12A.

マスクパターンPmはドットパターンPd6と同様に7×7の大きさを有する。マスクパターンPmにおいては、所望する補正量に基づき、選択ドットデータDcを基準としたセルに対してはドットデータ「1」が設定され、残余のセルに対しては空白データ「0」が設定される。具体的には、所望する補正量が例えば2ドット削りである場合には、図13AのマスクパターンPmにおいて、ドットパターンPd6の選択ドットデータDcに対応するドットデータを基準とする3×3のセルに対してはドットデータ「1」が設定され、残余のセルに対しては空白データ「0」が設定される。 Mask pattern Pm has a size of 7x7, the same as dot pattern Pd6. In mask pattern Pm, dot data "1" is set for cells based on selected dot data Dc, and blank data "0" is set for the remaining cells, based on the desired amount of correction. Specifically, if the desired amount of correction is, for example, shaving off 2 dots, in mask pattern Pm of FIG. 13A, dot data "1" is set for 3x3 cells based on the dot data corresponding to selected dot data Dc of dot pattern Pd6, and blank data "0" is set for the remaining cells.

コントローラ40は、マスクパターンPmによりドットパターンPd6に対してマスクをする処理を実行する。このマスク処理によって、マスクパターンPmにおいてドットデータ「1」が設定されたセルに対応するドットパターンPd6のセルにドットデータ「1」が設定されている場合を除き、ドットパターンPd6の残余のセルに対して空白データ「0」が設定されたドットパターンPmaが生成される。図13Aの例では、マスクパターンPm上のドットデータ「1」が設定されたセルに対応するドットパターンPd6のセルには全てドットデータ「1」が設定されている。そのため、生成されたドットパターンPmaにおいては、ドットデータ「1」が設定された3×3のセルを除くセルには空白データ「0」が設定される。 The controller 40 executes a process of masking the dot pattern Pd6 with the mask pattern Pm. This mask process generates a dot pattern Pma in which blank data "0" is set for the remaining cells of the dot pattern Pd6, except for the cases in which dot data "1" is set for cells of the dot pattern Pd6 corresponding to cells in the mask pattern Pm in which dot data "1" is set. In the example of FIG. 13A, dot data "1" is set for all cells of the dot pattern Pd6 corresponding to cells in the mask pattern Pm in which dot data "1" is set. Therefore, in the generated dot pattern Pma, blank data "0" is set for all cells except the 3x3 cells in which dot data "1" is set.

コントローラ40は、図13Bに示すように、ドットパターンPmaが比較パターンPc6に一致するか否かを判別する。図13Bでは、ドットパターンPmaは比較パターンPc6に一致する。この場合、コントローラ40は、ドットパターンPd6に含まれる選択ドットデータDcに対応するドットデータDc6を第1印刷データから削除する補正を行わずに図13Cに示す通り維持する処理を行う。 The controller 40 determines whether the dot pattern Pma matches the comparison pattern Pc6, as shown in FIG. 13B. In FIG. 13B, the dot pattern Pma matches the comparison pattern Pc6. In this case, the controller 40 performs processing to maintain the dot data Dc6 corresponding to the selected dot data Dc included in the dot pattern Pd6 as shown in FIG. 13C, without making a correction to delete the dot data Dc6 from the first print data.

これに対して、図14Aに示す例では、マスクパターンPm上のドットデータ「1」が設定されたセルに対応するドットパターンPd7上の複数のセルのうち一つのセル(3行3列目のセル)にはドットデータ「1」が設定されていない。そのため、マスク処理により生成される図14BのドットパターンPmaでは、ドットパターンPd7の3行3列目のセルに対応するセルと、ドットデータ「1」が設定された8つのセルを除く残余のセルとに対して空白データ「0」が設定される。 In contrast, in the example shown in FIG. 14A, one cell (the cell in the third row and third column) of the multiple cells on dot pattern Pd7 that correspond to the cells on mask pattern Pm to which dot data "1" is set does not have dot data "1" set. Therefore, in the dot pattern Pma in FIG. 14B generated by mask processing, blank data "0" is set to the cell corresponding to the cell in the third row and third column of dot pattern Pd7 and to the remaining cells excluding the eight cells to which dot data "1" is set.

コントローラ40は、図14Bに示すように、ドットパターンPmaが比較パターンPc7に一致するか否かを判別する。図14Bでは、ドットパターンPmaは比較パターンPc6に一致しない。この場合、コントローラ40は、選択ドットデータDcを第1印刷データから削除するべく、選択ドットデータDcに対応するドットデータDc7を図14Cに示すように空白データDca7に補正した画像Pdh7を生成する。 The controller 40 determines whether the dot pattern Pma matches the comparison pattern Pc7, as shown in FIG. 14B. In FIG. 14B, the dot pattern Pma does not match the comparison pattern Pc6. In this case, the controller 40 generates an image Pdh7 by correcting the dot data Dc7 corresponding to the selected dot data Dc to blank data Dca7, as shown in FIG. 14C, in order to delete the selected dot data Dc from the first print data.

以上説明したように、本実施形態の印刷装置10によれば、選択ドットデータDcを含む所定範囲のドットパターンPd2が比較パターンPcに一致せず且つ除外パターンPeに一致しない第1状態ST1と判別された場合に、選択ドットデータDcが第1印刷データから削除される補正が行われる。この点、従来では選択ドットデータを補正する場合を多く確保すべく、当該選択ドットデータの周辺に存在する周辺ドットデータに一致させたい数だけ比較パターンが必要であった。これに対して、本実施形態ではドットパターンPd2が比較パターンPcに一致しない場合に補正が行われる構成としたことで、ドットパターンPd2における何れかのドットデータが一つでも比較パターンPcに一致しなければ補正が行われる。これにより、比較パターンPcは、同補正量において複数要らず単数で済む。よって、比較パターンPcが増えることに起因して処理に要する時間が長くなること、およびコストアップにつながることを避けることができる。従って、処理時間を短くできコストアップの抑制を図りつつ、比較パターンPcを用いた画像補正を行うことができる。また、ドットパターンPd2が除外パターンPeに一致しない場合に補正が行われる構成としたので、比較パターンPcを用いることによる弊害として選択ドットデータDcが補正により不所望に除外されることを回避できる。 As described above, according to the printing device 10 of this embodiment, when the dot pattern Pd2 in a predetermined range including the selected dot data Dc is determined to be in the first state ST1 in which the dot pattern Pd2 does not match the comparison pattern Pc and does not match the exclusion pattern Pe, the selected dot data Dc is deleted from the first print data for correction. In this respect, in the past, in order to ensure many cases of correcting the selected dot data, a comparison pattern was required as many times as the number of surrounding dot data present around the selected dot data that was to be matched. In contrast, in this embodiment, a correction is performed when the dot pattern Pd2 does not match the comparison pattern Pc, so that correction is performed if any of the dot data in the dot pattern Pd2 does not match the comparison pattern Pc. As a result, a single comparison pattern Pc is sufficient instead of multiple comparison patterns Pc for the same correction amount. Therefore, it is possible to avoid the time required for processing being longer and the cost increasing due to the increase in the comparison pattern Pc. Therefore, it is possible to perform image correction using the comparison pattern Pc while shortening the processing time and suppressing the cost increase. In addition, because correction is performed when the dot pattern Pd2 does not match the exclusion pattern Pe, it is possible to avoid the undesired exclusion of the selected dot data Dc due to correction, which is a drawback of using the comparison pattern Pc.

また、本実施形態では、比較パターンPcに一致すると判別されたドットパターンPd3に含まれる選択ドットデータDcに対しては、第1状態ST1以外の第2状態ST2が成立するとして、第1印刷データから削除する補正が行われずに維持される。これにより、補正を行わずに維持する場合を明確に規定できる。 In addition, in this embodiment, for the selected dot data Dc contained in the dot pattern Pd3 that is determined to match the comparison pattern Pc, the second state ST2 other than the first state ST1 is established, and the data is maintained without being corrected to be deleted from the first print data. This makes it possible to clearly define the cases in which the data is maintained without being corrected.

また、本実施形態では、比較パターンPcに一致せず且つ除外パターンPeに一致すると判別されたドットパターンPd4に含まれる選択ドットデータDcに対しても、第1状態ST1以外の第2状態ST2が成立するとして、第1印刷データから削除する補正が行われずに維持される。これにより、補正を行わずに維持する場合を明確に規定できる。 In addition, in this embodiment, for the selected dot data Dc included in the dot pattern Pd4 that is determined not to match the comparison pattern Pc but to match the exclusion pattern Pe, the second state ST2 other than the first state ST1 is determined to be established, and the data is maintained without being corrected to be deleted from the first print data. This makes it possible to clearly define the cases in which the data is maintained without being corrected.

また、本実施形態では、比較パターンPcは被印刷媒体Wの種類ごとに異なる。すなわち、被印刷媒体Wの種類に応じて、用いられる比較パターンPcが異なる。これにより、例えば、インク滴の滲みが多く生じる被印刷媒体Wについては、削り量である補正量を多くすることができる比較パターンを用いること等の対応が可能となる。 In addition, in this embodiment, the comparison pattern Pc is different for each type of print medium W. That is, the comparison pattern Pc used differs depending on the type of print medium W. This makes it possible to use a comparison pattern that can increase the correction amount, which is the amount of scraping, for a print medium W that suffers from a lot of ink droplet bleeding, for example.

さらに、本実施形態では、比較パターンPcの大きさ(比較すべき領域の大きさ)を共通化することによる上記弊害を回避するべく、コントローラ40によるマスク処理が実行される。これにより、選択ドットデータDcが不所望に空白データに補正されることを防ぐことが可能となる。 Furthermore, in this embodiment, in order to avoid the above-mentioned drawbacks caused by standardizing the size of the comparison pattern Pc (the size of the area to be compared), a masking process is performed by the controller 40. This makes it possible to prevent the selected dot data Dc from being undesirably corrected to blank data.

(変形例)
本発明は上述の実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の変形が可能である。例えば以下の通りである。
(Modification)
The present invention is not limited to the above-described embodiment, and various modifications are possible without departing from the spirit and scope of the present invention. For example, the following modifications are possible.

上記実施形態において印刷装置10が行う処理を、下記の印刷システム50においてコンピュータ51と印刷装置10とに分けて行ってもよい。図15は本発明の一実施形態に係る印刷システム50の構成を示すブロック図である。 The processing performed by the printing device 10 in the above embodiment may be divided between the computer 51 and the printing device 10 in the printing system 50 described below. Figure 15 is a block diagram showing the configuration of a printing system 50 according to one embodiment of the present invention.

図15に示すように、印刷システム50はコンピュータ51および印刷装置10を備える。コンピュータ51は第1コントローラ52を有する。印刷装置10は、インク滴を被印刷媒体Wに吐出するヘッド30および第2コントローラ46を有する。第1コントローラ52は、被印刷媒体W上にインク滴を着弾させて形成するドットにより、情報を有するコードCを含む画像Gを被印刷媒体Wに形成するための第1印刷データを取得する。第1コントローラ52は、取得した第1印刷データにおいて、選択ドットデータDcを含む所定範囲のドットパターンが所定の比較パターンPcに一致するか否か、および、選択ドットデータDcを含む所定範囲のドットパターンが所定の除外パターンPeに一致するか否か、を判別する。第1コントローラ52は、上記判別する処理において比較パターンPcに一致せず且つ除外パターンPeに一致しない第1状態ST1と判別された場合には上記ドットパターンに含まれる選択ドットデータDcを第1印刷データから削除する補正を行う。一方、第1コントローラ52は、上記判別する処理において第1状態ST1以外の第2状態ST2と判別された場合には上記ドットパターンに含まれる選択ドットデータDcを第1印刷データから削除する補正を行わずに維持する。そして、第2コントローラ46は、第1印刷データについて補正または維持が行われて得られた第2印刷データに基づいて吐出ヘッド30から被印刷媒体Wにインク滴を吐出させて画像を被印刷媒体Wに形成する。 As shown in FIG. 15, the printing system 50 includes a computer 51 and a printing device 10. The computer 51 includes a first controller 52. The printing device 10 includes a head 30 that ejects ink droplets onto a print medium W, and a second controller 46. The first controller 52 acquires first print data for forming an image G including a code C having information on the print medium W by dots formed by landing ink droplets on the print medium W. The first controller 52 determines whether a dot pattern of a predetermined range including the selected dot data Dc matches a predetermined comparison pattern Pc in the acquired first print data, and whether a dot pattern of a predetermined range including the selected dot data Dc matches a predetermined exclusion pattern Pe. When the first controller 52 determines in the above determination process that the first state ST1 does not match the comparison pattern Pc and does not match the exclusion pattern Pe, the first controller 52 performs a correction to delete the selected dot data Dc included in the dot pattern from the first print data. On the other hand, when the first controller 52 determines in the above determination process that the second state ST2 is other than the first state ST1, it maintains the first print data without making a correction to delete the selected dot data Dc included in the dot pattern from the first print data. Then, the second controller 46 ejects ink droplets from the ejection head 30 onto the print medium W based on the second print data obtained by correcting or maintaining the first print data, thereby forming an image on the print medium W.

第1コントローラ52は、第1演算部53、第1記憶部54および第1インターフェース55を有する。第1インターフェース55は、印刷装置10に接続され、印刷装置10に第2印刷データを印刷装置10に送信する。第1記憶部54は、第1演算部53がアクセス可能なものであって、例えばRAMおよびROMにより構成される。第1演算部53は、演算部41による処理と同様の処理を行い、第2印刷データを第1インターフェース55により印刷装置10に送信する。 The first controller 52 has a first calculation unit 53, a first memory unit 54, and a first interface 55. The first interface 55 is connected to the printing device 10 and transmits second print data to the printing device 10. The first memory unit 54 is accessible by the first calculation unit 53 and is composed of, for example, RAM and ROM. The first calculation unit 53 performs processing similar to that performed by the calculation unit 41, and transmits the second print data to the printing device 10 via the first interface 55.

第2コントローラ46は、第2演算部47、第2記憶部48および第2インターフェース49を有する。第2インターフェース49はコンピュータ51から送信された第2印刷データを受信する。第2演算部47は、第2記憶部48に記憶されたプログラムを実行することにより、第2印刷データに基づいて印刷処理を実行する。なお、図15の印刷装置10における他の構成要素の機能は、上述した図3の印刷装置10において同一符号を付した構成要素の機能と同じであるため説明を省略する。 The second controller 46 has a second calculation unit 47, a second memory unit 48, and a second interface 49. The second interface 49 receives the second print data sent from the computer 51. The second calculation unit 47 executes a program stored in the second memory unit 48 to perform printing processing based on the second print data. Note that the functions of the other components in the printing device 10 in FIG. 15 are the same as the functions of the components with the same reference numerals in the printing device 10 in FIG. 3 described above, and therefore will not be described here.

また、上記実施形態では、吐出ヘッド30をラインヘッドとしたが、これに限定されない。印刷装置10は、吐出ヘッド30を搭載したキャリッジを備え、当該キャリッジにより吐出ヘッド30を延在方向Dsに移動するシリアルヘッド方式が用いられてもよい。 In addition, in the above embodiment, the ejection head 30 is a line head, but this is not limited to this. The printing device 10 may be equipped with a carriage on which the ejection head 30 is mounted, and a serial head method may be used in which the carriage moves the ejection head 30 in the extension direction Ds.

また、上記実施形態において、印刷装置10が被印刷媒体Wを搬送方向Dfに搬送する搬送装置20を備えなくてもよい。この場合、吐出ヘッド30が被印刷媒体Wに対して移動する方式が用いられてもよい。 In addition, in the above embodiment, the printing device 10 does not need to be equipped with a transport device 20 that transports the print medium W in the transport direction Df. In this case, a method in which the ejection head 30 moves relative to the print medium W may be used.

なお、上記実施形態における記載は、例示としてのみ解釈されるべきであり、本発明を実行する最良の態様を当業者に教示する目的で提供されたものである。本発明の精神を逸脱することなく、その構造及び/又は機能の詳細を実質的に変更することが可能である。 The above description of the embodiment should be construed as merely an example, and is provided for the purpose of teaching those skilled in the art the best mode for carrying out the present invention. The details of the structure and/or function may be substantially changed without departing from the spirit of the present invention.

10 印刷装置
30 吐出ヘッド
40 コントローラ
46 第2コントローラ
50 印刷システム
51 コンピュータ
52 第1コントローラ
C コード
Dc 選択ドットデータ
G 画像
Pc 比較パターン
Pd1~Pd7 ドットパターン
Pe 除外パターン
Pm マスクパターン
ST1 第1状態
ST2 第2状態
W 被印刷媒体
REFERENCE SIGNS LIST 10 Printing device 30 Discharge head 40 Controller 46 Second controller 50 Printing system 51 Computer 52 First controller C Code Dc Selected dot data G Image Pc Comparison pattern Pd1 to Pd7 Dot pattern Pe Exclusion pattern Pm Mask pattern ST1 First state ST2 Second state W Printing medium

Claims (7)

液滴を被印刷媒体に吐出する吐出ヘッドと、
コントローラと、を備え、
前記コントローラは、
前記被印刷媒体上に前記液滴を着弾させて形成するドットにより、情報を有するコードを含む画像を前記被印刷媒体に形成するための第1印刷データを取得する処理と、
取得した前記第1印刷データにおいて、前記画像を形成するドットに対応するドットデータを選択し、選択したドットデータである選択ドットデータを含む所定範囲のドットパターンが所定の比較パターンに一致するか否か、および、前記選択ドットデータを含む前記ドットパターンが所定の除外パターンに一致するか否か、を判別する処理と、
前記判別する処理において前記比較パターンに一致せず且つ前記除外パターンに一致しない第1状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行う処理と、
前記判別する処理において前記第1状態以外の第2状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行わずに維持する処理と、
前記第1印刷データについて前記補正または前記維持が行われて得られた第2印刷データに基づいて前記吐出ヘッドから前記被印刷媒体に前記液滴を吐出させて前記画像を前記被印刷媒体に形成する処理と、を実行する、印刷装置。
An ejection head that ejects droplets onto a print medium;
A controller,
The controller:
A process of acquiring first print data for forming an image including a code having information on the print medium by dots formed by landing the droplets on the print medium;
a process of selecting dot data corresponding to dots forming the image from the acquired first print data, and determining whether a dot pattern in a predetermined range including selected dot data, which is the selected dot data, matches a predetermined comparison pattern, and whether the dot pattern including the selected dot data matches a predetermined exclusion pattern;
a correction process for deleting the selected dot data included in the dot pattern from the first print data when the determining process determines that the first state is a state in which the selected dot data does not match the comparison pattern and does not match the exclusion pattern;
a process of maintaining the selected dot data included in the dot pattern without performing correction to delete the selected dot data from the first print data when the process of determining determines that the selected dot data is a second state other than the first state;
A printing device that executes a process of ejecting the droplets from the ejection head onto the printing medium based on second printing data obtained by performing the correction or maintenance on the first printing data to form the image on the printing medium.
前記維持する処理は、前記比較パターンに一致すると判別された前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行わずに維持する処理を含む、請求項1に記載の印刷装置。 The printing device according to claim 1, wherein the maintaining process includes a process of maintaining the selected dot data included in the dot pattern determined to match the comparison pattern without performing a correction to delete the selected dot data from the first print data. 前記維持する処理は、前記比較パターンに一致せず且つ前記除外パターンに一致すると判別された前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行わず維持する処理を含む、請求項1に記載の印刷装置。 The printing device according to claim 1, wherein the maintaining process includes a process of maintaining the selected dot data included in the dot pattern that is determined not to match the comparison pattern and to match the exclusion pattern without performing a correction to delete the selected dot data from the first print data. 前記比較パターンは前記被印刷媒体の種類ごとに異なっている、請求項1に記載の印刷装置。 The printing device according to claim 1, wherein the comparison pattern is different for each type of printing medium. 前記コントローラは、
所定のマスクパターンにより前記ドットパターンに対してマスクをする処理をさらに実行し、
前記判別する処理では、前記比較パターンに一致するか否かが比較される前記ドットパターンとして、前記マスクをする処理の後の前記ドットパターンが用いられる、請求項1に記載の印刷装置。
The controller:
further performing a process of masking the dot pattern with a predetermined mask pattern;
The printing device according to claim 1 , wherein in the determining process, the dot pattern after the masking process is used as the dot pattern to be compared with the comparison pattern to see whether it matches.
コンピュータおよび印刷装置を備える印刷システムであって、
前記コンピュータは、第1コントローラを有し、
前記印刷装置は、液滴を被印刷媒体に吐出する吐出ヘッドと、第2コントローラとを有し、
前記第1コントローラは、
前記被印刷媒体上に前記液滴を着弾させて形成するドットにより、情報を有するコードを含む画像を前記被印刷媒体に形成するための第1印刷データを取得する処理と、
取得した前記第1印刷データにおいて、前記画像を形成するドットに対応するドットデータを選択し、選択したドットデータである選択ドットデータを含む所定範囲のドットパターンが所定の比較パターンに一致するか否か、および、前記選択ドットデータを含む前記ドットパターンが所定の除外パターンに一致するか否か、を判別する処理と、
前記判別する処理において前記比較パターンに一致せず且つ前記除外パターンに一致しない第1状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行う処理と、
前記判別する処理において前記第1状態以外の第2状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行わずに維持する処理と、を実行し、
前記第2コントローラは、
前記第1印刷データについて前記補正または前記維持が行われて得られた第2印刷データに基づいて前記吐出ヘッドから前記被印刷媒体に前記液滴を吐出させて前記画像を前記被印刷媒体に形成する処理を実行する、印刷システム。
A printing system including a computer and a printing device,
The computer includes a first controller,
The printing device includes an ejection head that ejects droplets onto a print medium, and a second controller.
The first controller is
A process of acquiring first print data for forming an image including a code having information on the print medium by dots formed by landing the droplets on the print medium;
a process of selecting dot data corresponding to dots forming the image from the acquired first print data, and determining whether a dot pattern in a predetermined range including selected dot data, which is the selected dot data, matches a predetermined comparison pattern, and whether the dot pattern including the selected dot data matches a predetermined exclusion pattern;
a correction process for deleting the selected dot data included in the dot pattern from the first print data when the determining process determines that the first state is a state in which the selected dot data does not match the comparison pattern and does not match the exclusion pattern;
a process of maintaining the selected dot data included in the dot pattern without performing correction to delete the selected dot data from the first print data when the process of determining determines that the selected dot data is a second state other than the first state;
The second controller is
A printing system that performs a process of forming the image on the printing medium by ejecting the droplets from the ejection head onto the printing medium based on second printing data obtained by performing the correction or maintenance on the first printing data.
被印刷媒体上に液滴を着弾させて形成するドットにより、情報を有するコードを含む画像を前記被印刷媒体に形成するための第1印刷データを取得し、
取得した前記第1印刷データにおいて、前記画像を形成するドットに対応するドットデータを選択し、選択したドットデータである選択ドットデータを含む所定範囲のドットパターンが所定の比較パターンに一致するか否か、および、前記選択ドットデータを含む前記ドットパターンが所定の除外パターンに一致するか否か、を判別し、
前記判別において前記比較パターンに一致せず且つ前記除外パターンに一致しない第1状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行い、
前記判別において前記第1状態以外の第2状態と判別された場合には前記ドットパターンに含まれる前記選択ドットデータを前記第1印刷データから削除する補正を行わずに維持し、
前記第1印刷データについて前記補正または前記維持が行われて得られた第2印刷データに基づいて吐出ヘッドから前記被印刷媒体に前記液滴を吐出させて前記画像を前記被印刷媒体に形成する、印刷方法。
acquiring first print data for forming an image including a code having information on a print medium by dots formed by landing droplets on the print medium;
In the acquired first print data, select dot data corresponding to dots forming the image, and determine whether or not a dot pattern in a predetermined range including selected dot data, which is the selected dot data, matches a predetermined comparison pattern, and whether or not the dot pattern including the selected dot data matches a predetermined exclusion pattern;
When the determination results in a first state in which the selected dot data does not match the comparison pattern and does not match the exclusion pattern, a correction is performed to delete the selected dot data included in the dot pattern from the first print data.
When the determination results in a second state other than the first state, the selected dot data included in the dot pattern is maintained without being corrected by deleting the selected dot data from the first print data;
A printing method comprising: ejecting the droplets from an ejection head onto the print medium based on second print data obtained by performing the correction or maintenance on the first print data, thereby forming the image on the print medium.
JP2022187969A 2022-11-25 2022-11-25 Printing device, printing system, and printing method Pending JP2024076455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022187969A JP2024076455A (en) 2022-11-25 2022-11-25 Printing device, printing system, and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022187969A JP2024076455A (en) 2022-11-25 2022-11-25 Printing device, printing system, and printing method

Publications (1)

Publication Number Publication Date
JP2024076455A true JP2024076455A (en) 2024-06-06

Family

ID=91332711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022187969A Pending JP2024076455A (en) 2022-11-25 2022-11-25 Printing device, printing system, and printing method

Country Status (1)

Country Link
JP (1) JP2024076455A (en)

Similar Documents

Publication Publication Date Title
US11691437B2 (en) Modifying image data to compensate for defective printer nozzles
US8814301B2 (en) Printing apparatus and printing method
CN110091635B (en) Printing control method and device, printer and storage medium
US20180178508A1 (en) Printing apparatus, printing method, and non-transitory computer-readable recording medium
US8434843B2 (en) Printing apparatus, printing method, and program
JP2024076455A (en) Printing device, printing system, and printing method
CN110816059B (en) Liquid ejecting apparatus and liquid ejecting method
KR20100009927A (en) Image data processing method and recording media for the same
JP2013180489A (en) Printer and printing method
JP2011046003A (en) Two-dimensional code generation system, two-dimensional code generation program and inkjet recorder
JP2014008660A (en) Inkjet recorder, and method for generating mask pattern
US11494600B2 (en) Printing apparatus, system and method suppressing lowering of code accuracy and symbol disappearance
US20210402763A1 (en) Print device, non-transitory computer-readable medium storing computer-readable instructions, and print method
JP4661043B2 (en) Printing apparatus, printing control apparatus, printing method, and program
CN115202592A (en) Information processing apparatus, information processing method, and recording medium
JP2024076456A (en) Printing device, printing system, and printing method
US11577525B2 (en) Printer, control method of printer, and non-transitory computer readable medium storing control program of printer
JP2009175839A (en) Bar code generation system, bar code correction program and printer
JP6862124B2 (en) Image processing device and image processing method
KR100958159B1 (en) image data processing method and recording media for the same
JP7516945B2 (en) Printing device, control method thereof, and program
JP5316460B2 (en) Image data processing apparatus, liquid ejection apparatus, and program
JP2017185627A (en) Printer, boundary setting method of printer and head unit
JP7041520B2 (en) Inkjet recording equipment, image processing methods and programs
JP2009282692A (en) Bar code generation system and bar code generation program