[go: up one dir, main page]

JP2024014078A - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP2024014078A
JP2024014078A JP2022116650A JP2022116650A JP2024014078A JP 2024014078 A JP2024014078 A JP 2024014078A JP 2022116650 A JP2022116650 A JP 2022116650A JP 2022116650 A JP2022116650 A JP 2022116650A JP 2024014078 A JP2024014078 A JP 2024014078A
Authority
JP
Japan
Prior art keywords
image
value
control unit
medium
reading
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
JP2022116650A
Other languages
Japanese (ja)
Inventor
宏門 ▲高▼橋
Hiroto Takahashi
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 JP2022116650A priority Critical patent/JP2024014078A/en
Publication of JP2024014078A publication Critical patent/JP2024014078A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimile Heads (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

To provide a printer which can detect a case where there is a deviation in the positional relation between a lens array and a sensor after correction value setting without changing the configuration of a reading unit in the printer which executes shading correction by using a correction value.SOLUTION: A control unit of a printer prints an image on a medium, and acquires a first image obtained by reading the image printed on the medium by a reading unit during conveyance of the medium by a conveyance unit. The control unit acquires a second image obtained by reading a reference plate corresponding to a margin region by the reading unit during conveyance of the medium by the conveyance unit (S22). The control unit performs shading correction using the correction value set based on a reference image for each of the first image and the second image (S23). The control unit detects a case where there is a deviation in the positional relation between a lens array and a sensor after setting a correction value as positional deviation occurrence by detecting a reading abnormal value in a fixed cycle in the width direction over the entire second image corrected in S23 (S30).SELECTED DRAWING: Figure 7

Description

本発明は、印刷装置に関する。 The present invention relates to a printing device.

従来の画像読取装置は、原稿を読み取る画像読取部、シェーディング補正データ作成部、画像データ処理部、及び基準位置検出部を備える。画像読取部は、レンズアレイを備え、原稿を読み取る。レンズアレイには、あらかじめ原稿が搬送されない位置にマークが付加されている。基準位置検出部は、画像読取部が読み取ったデータからマーク位置を検出する。基準位置検出部によって検出されるマーク位置が、あらかじめ検出しておいたマーク位置と異なる場合、画像データ処理部は、検出されるマーク位置と、既知のマーク位置との差分量及びシェーディング補正データに基づき、画像読取部によって読み取った画像データを処理する。 A conventional image reading device includes an image reading section that reads a document, a shading correction data creation section, an image data processing section, and a reference position detection section. The image reading unit includes a lens array and reads the original. Marks are added to the lens array in advance at positions where the original is not transported. The reference position detection section detects the mark position from the data read by the image reading section. If the mark position detected by the reference position detection section is different from the mark position detected in advance, the image data processing section calculates the amount of difference between the detected mark position and the known mark position and the shading correction data. Based on this, the image data read by the image reading section is processed.

特開2006-339839号公報Japanese Patent Application Publication No. 2006-339839

従来の画像読取装置は、レンズアレイとラインセンサとの位置関係がずれているかをレンズアレイに付与したマークに基づき検出する。従来の画像読取装置は、レンズアレイにマークを設ける必要があることから、画像読取装置の加工が必要である。このように画像読取装置を加工することは通常困難であり、大きなコストアップにつながる。 A conventional image reading device detects whether the positional relationship between the lens array and the line sensor is misaligned based on marks provided on the lens array. Conventional image reading devices require processing of the image reading device because marks need to be provided on the lens array. It is usually difficult to process an image reading device in this way, leading to a significant increase in cost.

本発明の目的は、補正値を用いてシェーディング補正が実行される印刷装置において、読取部の構成を変えることなく、補正値設定後にレンズアレイとセンサとの位置関係がずれている場合を検出可能な印刷装置を提供することである。 An object of the present invention is to detect, in a printing device that performs shading correction using correction values, a case where the positional relationship between the lens array and the sensor deviates after setting the correction values without changing the configuration of the reading unit. The purpose of the present invention is to provide a printing device that is of high quality.

本発明の一態様に係る印刷装置は、長尺状の媒体を、搬送方向に搬送する搬送部と、前記搬送方向において、前記搬送部の上流に設けられる印刷ヘッドと、前記搬送方向において、前記印刷ヘッドの下流に設けられ、前記搬送方向に直交する幅方向に長い基準板と、前記搬送方向において、前記印刷ヘッドの下流に設けられる読取部であって、前記基準板に対して所定の相対位置に配置され、前記幅方向の所定領域内で配列されたレンズアレイと、前記レンズアレイを通過した光を検出するセンサとを備える読取部と、前記搬送部と、前記印刷ヘッドと、前記読取部との各々を制御する制御部とを備え、前記制御部は、前記印刷ヘッドと前記搬送部とを制御し、前記媒体に画像を印刷する印刷制御処理と、前記搬送部が前記媒体を搬送中に、前記幅方向の長さが前記レンズアレイよりも短い前記媒体に印刷された前記画像を前記読取部で読み取った第一画像を取得する第一処理と、前記搬送部が前記媒体を搬送中に、前記幅方向において、前記レンズアレイの前記所定領域のうちの、前記媒体が搬送される領域を除いた余り領域に対応する前記基準板を、前記読取部で読み取った第二画像を取得する第二処理と、前記第一処理で取得された前記第一画像と、前記第二処理で取得された前記第二画像との各々について、前記基準板を読み取った基準画像に基づき設定された補正値を用いたシェーディング補正を行う補正処理と、前記補正処理で補正された前記第二画像の全体に亘って前記幅方向に一定周期の読取異常値を検出することで前記補正値を設定後に前記レンズアレイと前記センサとの位置関係がずれた場合を位置ずれ発生として検出する検出処理とを実行する。印刷装置の検出処理は、補正値を用いてシェーディング補正が実行される印刷装置において、読取部の構成を変えること無く、補正値設定後にレンズアレイとセンサとの位置関係がずれている場合を検出することに貢献する。印刷装置は、従来のようにレンズアレイを加工する手間と加工に伴うコストアップを抑制できる。 A printing apparatus according to one aspect of the present invention includes: a conveyance section that conveys a long medium in a conveyance direction; a print head provided upstream of the conveyance section in the conveyance direction; a reference plate provided downstream of the print head and long in the width direction perpendicular to the transport direction; and a reading unit provided downstream of the print head in the transport direction, the reading unit having a predetermined relative position with respect to the reference plate. a reading unit including a lens array arranged at a predetermined area in the width direction and a sensor that detects light passing through the lens array; the transport unit; the print head; and a control unit that controls each of the print head and the transport unit, and the control unit controls the print head and the transport unit to perform a print control process of printing an image on the medium, and the transport unit transports the medium. a first process of acquiring a first image by reading the image printed on the medium with the width direction length shorter than the lens array with the reading unit; A second image is obtained by reading, with the reading unit, the reference plate corresponding to a surplus area of the predetermined area of the lens array excluding the area where the medium is conveyed in the width direction. For each of the second processing, the first image obtained in the first processing, and the second image obtained in the second processing, the reference plate is set based on the reference image read from the reference plate. After setting the correction value, the correction process performs shading correction using the correction value, and detects reading abnormal values at a constant period in the width direction over the entire second image corrected in the correction process. A detection process is executed to detect a shift in the positional relationship between the lens array and the sensor as an occurrence of positional shift. The printing device detection process detects when the positional relationship between the lens array and the sensor is misaligned after the correction value is set, without changing the configuration of the reading unit in the printing device that performs shading correction using the correction value. Contribute to what you do. The printing device can suppress the labor involved in processing lens arrays and the cost increase associated with processing, which is conventional.

印刷装置1の斜視図である。1 is a perspective view of a printing device 1. FIG. 印刷装置1の内部構成を示す断面図である。1 is a cross-sectional view showing the internal configuration of a printing device 1. FIG. 台紙M1及び複数のラベルM2を備える媒体Mと、媒体Mに印刷される画像G1との説明図である。2 is an explanatory diagram of a medium M including a mount M1 and a plurality of labels M2, and an image G1 printed on the medium M. FIG. 印刷装置1の電気的構成を示すブロック図である。1 is a block diagram showing the electrical configuration of a printing device 1. FIG. 制御部30の電気的構成を示す説明図であるFIG. 3 is an explanatory diagram showing the electrical configuration of the control unit 30. メイン処理のフローチャートである。It is a flowchart of main processing. 検査処理のフローチャートである。It is a flowchart of inspection processing. 第二ガンマ補正テーブル94を用いて入力階調値D1をガンマ処理することで、入力階調値D1を出力階調値D2に変換する処理と、出力階調値D2の隣接差分D3に基づき、異常読取値の周期性を確認する処理との説明図である。Based on the process of converting the input gradation value D1 into an output gradation value D2 by gamma processing the input gradation value D1 using the second gamma correction table 94, and the adjacent difference D3 of the output gradation value D2, FIG. 6 is an explanatory diagram of a process for checking periodicity of abnormal reading values. 変形例の第二ガンマ補正テーブル95を用いて入力階調値D1をガンマ処理することで、入力階調値D1を出力階調値D4に変換する処理と、出力階調値D4に基づき、異常読取値の周期性を確認する処理との説明図である。By performing gamma processing on the input gradation value D1 using the second gamma correction table 95 of the modified example, the process of converting the input gradation value D1 into the output gradation value D4 and the abnormality detection based on the output gradation value D4 are performed. FIG. 3 is an explanatory diagram of a process for checking periodicity of read values.

本発明の一実施形態に係る印刷装置1について、図面を参照して順に説明する。参照する図面は、本発明が採用しうる技術的特徴を説明するために用いられるものであり、記載される装置の構成などは、それのみに限定する趣旨ではなく、単なる説明例である。本実施形態の説明では、図1の左下側、右上側、右下側、左上側、上側、及び下側を各々、印刷装置1の前側、後側、右側、左側、上側、及び下側とする。 A printing apparatus 1 according to an embodiment of the present invention will be described in order with reference to the drawings. The drawings referred to are used to explain technical features that can be adopted by the present invention, and the configuration of the device described is not intended to be limited thereto, but is merely an illustrative example. In the description of this embodiment, the lower left side, upper right side, lower right side, upper left side, upper side, and lower side of FIG. do.

図1から図3を参照して、印刷装置1の物理的構成を説明する。図1に示すように、印刷装置1は、筐体2、表示部3、及び操作部4を備える。筐体2は、前壁24、右壁25、後壁26、下壁27、上壁28、左壁29、及びカバー23を有する。筐体2は、卓上に載置可能な大きさの直方体状である。筐体2には、排出口21及び開口22が形成される。排出口21は、筐体2の前壁24に、正面視左右方向に長い矩形状に形成される。開口22は、筐体2の右壁25の後下部に、右側面視矩形状に形成される。カバー23は、右側面視矩形状の板であり、図1中実線で図示する、開口22を塞ぐ閉位置と、図1中一点鎖線で図示する、開口22を解放する開位置とに回動可能に筐体2の右側面の後下部に支持される。表示部3は、筐体2の前壁24の前面右上部に設けられ、画像を表示する。操作部4は、筐体2の前壁24の前面右上部のうち、表示部3の下方に設けられ、各種指示を入力する複数のボタンである。表示部3及び操作部4は、排出口21の上方に設けられる。 The physical configuration of the printing apparatus 1 will be described with reference to FIGS. 1 to 3. As shown in FIG. 1, the printing device 1 includes a housing 2, a display section 3, and an operation section 4. The housing 2 has a front wall 24, a right wall 25, a rear wall 26, a lower wall 27, an upper wall 28, a left wall 29, and a cover 23. The housing 2 has a rectangular parallelepiped shape that is large enough to be placed on a tabletop. A discharge port 21 and an opening 22 are formed in the housing 2 . The discharge port 21 is formed in the front wall 24 of the housing 2 in a rectangular shape that is long in the left and 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 and has a rectangular shape when viewed from the right side. The cover 23 is a rectangular plate when viewed from the right side, and can be rotated between a closed position in which the opening 22 is closed, as shown by a solid line in FIG. 1, and an open position in which the opening 22 is opened, as shown in a dashed line in FIG. It is possible to support the rear lower part of the right side of the housing 2. The display section 3 is provided at the upper right portion of the front surface of the front wall 24 of the housing 2, and displays images. The operating section 4 is provided below the display section 3 on the upper right front side of the front wall 24 of the housing 2, and is a plurality of buttons for inputting various instructions. The display section 3 and the operation section 4 are provided above the discharge port 21.

図2に示すように、印刷装置1は、前壁24に設けた巻取装置接続部68及び外部機器接続部69を介して後述の巻取装置60と接続可能である。巻取装置接続部68は、筐体2の前壁24の右下部に設けられる。巻取装置接続部68は、巻取装置60と電気的に接続するためのコネクタである。外部機器接続部69は、前壁24において巻取装置接続部68の下方に設けられる。外部機器接続部69は、PC等の外部の情報機器と電気的に接続するためのコネクタである。 As shown in FIG. 2, the printing device 1 can be connected to a winding device 60, which will be described later, via a winding device connection section 68 and an external device connection section 69 provided on the front wall 24. The winding device connection portion 68 is provided at the lower right portion of the front wall 24 of the housing 2 . The winding device connection section 68 is a connector for electrically connecting to the winding device 60. The external device connection section 69 is provided below the winding device connection section 68 on the front wall 24 . The external device connection section 69 is a connector for electrically connecting to an external information device such as a PC.

印刷装置1は、筐体2の内部に、供給部5、搬送部7、10、15、19、48、隔壁55、張力付与部8、媒体検出部53、印刷ヘッド6、定着ユニット40、基準板77、及び読取部45を収容する。印刷装置1は、長尺状の媒体Mに印刷を行うインクジェットプリンタである。媒体Mは、例えば、筒状の紙管Kにロール状に巻回された長尺状である。図3に示すように、本実施形態の媒体Mは長尺状の台紙M1と、台紙M1に添付された複数のラベルM2とを含む。各ラベルM2は、媒体Mの長手方向、つまり搬送方向Fの長さが長さFL、長手方向に直交する幅方向Wの長さが横幅WLである矩形状である。複数のラベルM2は台紙M1に間隔Jをあけて搬送方向Fに等間隔で貼付されている。 The printing apparatus 1 includes a supply section 5 , a conveyance section 7 , 10 , 15 , 19 , 48 , a partition 55 , a tension applying section 8 , a medium detection section 53 , a print head 6 , a fixing unit 40 , and a standard inside a housing 2 . The plate 77 and the reading section 45 are accommodated therein. The printing device 1 is an inkjet printer that prints on a long medium M. The medium M is, for example, long and wound around a cylindrical paper tube K in the form of a roll. As shown in FIG. 3, the medium M of this embodiment includes a long mount M1 and a plurality of labels M2 attached to the mount M1. Each label M2 has a rectangular shape with a length FL in the longitudinal direction of the medium M, that is, a length in the transport direction F, and a width WL in the width direction W perpendicular to the longitudinal direction. A plurality of labels M2 are affixed to the mount M1 at regular intervals in the transport direction F at intervals J.

供給部5は、図1に実線で示す閉位置にあるカバー23の左方、且つ、印刷装置1の後下部の、図2に示す隔壁55と後壁26とによって囲まれた空間に設けられる。供給部5は、ロールRを保持する。ロールRは、媒体Mがロール状に巻かれたものである。本実施形態の供給部5は、軸部51、及びマガジン52を備える。軸部51は、左右方向に延び、ロールRの紙管Kに挿通される。マガジン52は、正面視U字状の支持台である。マガジン52は、軸部51の左右両端部を、軸部51が左右方向に延びる軸周りに回動可能に支持する。軸部51は、マガジン52に取り外し可能に支持される。マガジン52は、印刷装置1に取り外し可能に支持される。印刷装置1のユーザはロールRを交換する場合、図1に示すカバー23を開位置に配置して、図2に示すマガジン52を筐体2の内部から取り出し、ロールRの交換作業を行う。隔壁55は、筐体2の下壁27から上方に延びる第一壁部56と、第一壁部56の上端から後方に延びる第二壁部57とを有し、筐体2の内部空間を仕切る。第二壁部57は、筐体2の後壁26と前後方向に離隔する。 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 printing device 1. . The supply section 5 holds the roll R. The roll R is a roll of the medium M. The supply section 5 of this embodiment includes a shaft section 51 and a magazine 52. The shaft portion 51 extends in the left-right direction and is inserted into the paper tube K of the roll R. The magazine 52 is a U-shaped support stand 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. Magazine 52 is removably supported by printing device 1 . When replacing the roll R, the user of the printing apparatus 1 places the cover 23 shown in FIG. 1 in the open position, takes out the magazine 52 shown in FIG. 2 from inside the housing 2, and performs the work of replacing the roll R. The partition wall 55 has a first wall portion 56 extending upward from the lower 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 defines the internal space of the housing 2. Participate. The second wall portion 57 is separated from the rear wall 26 of the housing 2 in the front-back direction.

印刷ヘッド6は、供給部5から供給される媒体Mに画像を印刷する。本実施形態の印刷ヘッド6は、液体状のインク80を吐出方向に吐出する複数のノズル70を備え、複数のノズル70からインク80を吐出することで、媒体Mに画像を印刷するインクジェットヘッドである。本実施形態の吐出方向は下方であり、印刷ヘッド6は、媒体Mの搬送経路Qの上方に、複数のノズル70が下方を向く姿勢で設けられる。搬送経路Qは、供給部5から繰り出され、排出口21から筐体2の外部に排出されるまでの、媒体Mが搬送される経路である。インク80は、図示しないチューブを介して筐体2の内部に配置されたタンク20から印刷ヘッド6に供給される。 The print head 6 prints an image on the medium M supplied from the supply unit 5 . The print head 6 of this embodiment is an inkjet head that includes a plurality of nozzles 70 that eject liquid ink 80 in the ejection direction, and prints an image on the medium M by ejecting the ink 80 from the plurality of nozzles 70. be. The ejection direction in this embodiment is downward, and the print head 6 is provided above the conveyance path Q of the medium M with a plurality of nozzles 70 facing downward. The conveyance path Q is a path along which the medium M is conveyed from being fed out from the supply unit 5 to being discharged from the discharge port 21 to the outside of the casing 2 . The ink 80 is supplied to the print head 6 from a tank 20 disposed inside the housing 2 via a tube (not shown).

搬送部7は、媒体Mを供給部5から印刷ヘッド6に向かう搬送方向Fと、搬送方向Fとは反対の戻し方向Bとに搬送する。搬送方向Fは供給部5から印刷ヘッド6に向かう搬送経路Qに沿った方向である。搬送方向Fは、ロールRの回転軸の延設方向である左右方向に交差する方向であり、搬送経路Q上の位置に応じて変化する方向である。供給部5から張力付与部8までの搬送方向Fは、媒体Mの残量に応じて変化する方向であり、図2に示すように、媒体Mの残量が初期値、すなわち、ロールR交換直後の残量値である場合、概ね上方である。張力付与部8から排出口21までの搬送方向Fは、概ね前方である。つまり印刷装置1では、媒体Mが張力付与部8に当接する部分で、搬送経路Qが屈曲し、搬送方向Fが上方から前方に変化する。 The transport unit 7 transports the medium M in a transport direction F from the supply unit 5 toward the print head 6 and in a return direction B opposite to the transport direction F. The conveyance direction F is a direction along the conveyance path Q from the supply section 5 to the print head 6. The conveyance direction F is a direction that intersects the left-right direction, which is the extending direction of the rotation axis of the roll R, and is a direction that changes depending on the position on the conveyance path Q. The conveyance direction F from the supply section 5 to the tension applying section 8 is a direction that changes depending on the remaining amount of the medium M, and as shown in FIG. If it is the remaining amount value immediately after that, it is generally upward. The conveyance direction F from the tension applying section 8 to the discharge port 21 is generally forward. That is, in the printing apparatus 1, the conveyance path Q is bent at the portion where the medium M comes into contact with the tension applying unit 8, and the conveyance direction F changes from above to the front.

搬送部7は、印刷ヘッド6に対し搬送方向Fの上流、且つ 供給部5に対し搬送方向Fの下流に設けられる。つまり搬送部7は、媒体Mの搬送経路Qにおいて、印刷ヘッド6と、供給部5との間に設けられる。本実施形態の搬送部7は、左右方向に延びる軸を中心に回転するピンチローラ71と、搬送ローラ72とを有し、ピンチローラ71と、搬送ローラ72とで媒体Mを上下に挟んでニップ搬送を行う。 The conveyance section 7 is provided upstream in the conveyance direction F with respect to the print head 6 and downstream in the conveyance direction F with respect to the supply section 5 . That is, the conveyance section 7 is provided between the print head 6 and the supply section 5 on the conveyance path Q of the medium M. The conveyance unit 7 of this embodiment includes a pinch roller 71 that rotates around an axis extending in the left-right direction, and a conveyance roller 72. The pinch roller 71 and the conveyance roller 72 sandwich the medium M vertically and nip it. Perform transportation.

媒体検出部53は、媒体Mの検出結果を図4の制御部30に出力する。本実施形態の媒体検出部53は、透過型センサ又は反射型センサである。媒体検出部53が反射型センサである場合、媒体検出部53は、例えば、台紙M1と、ラベルM2との反射率の差によって、ラベルM2の先端を検出する。台紙M1が搬送方向Fに所定間隔で列設された複数の孔を備え、媒体検出部53が透過型センサである場合、媒体検出部53は、例えば、台紙M1に複数の孔を透過するか否かによって、ラベルM2の先端を検出する。 The medium detection unit 53 outputs the detection result of the medium M to the control unit 30 in FIG. The medium detection unit 53 of this embodiment is a transmission type sensor or a reflection type sensor. When the medium detecting section 53 is a reflective sensor, the medium detecting section 53 detects the leading edge of the label M2, for example, based on the difference in reflectance between the mount M1 and the label M2. If the mount M1 includes a plurality of holes arranged in a row at predetermined intervals in the conveyance direction F, and the medium detection section 53 is a transmission type sensor, the medium detection section 53 may, for example, Depending on whether or not the label M2 is detected, the tip of the label M2 is detected.

搬送部10は、搬送部7よりも搬送方向Fの上流に設けられ、媒体Mを搬送方向F及び戻し方向Bに搬送する。本実施形態の搬送部10は、供給部5に保持されたロールRを回動して、媒体Mを戻し方向Bに搬送して、ロールRに巻き取る。本実施形態の搬送部10は、供給部5の軸部51と取り外し可能に係合する。搬送部10は、供給部5に保持されたロールRを回動して、媒体Mを搬送方向Fに搬送して、ロールRから媒体Mを印刷ヘッド6に向けて繰り出させる。 The transport unit 10 is provided upstream of the transport unit 7 in the transport direction F, and transports the medium M in the transport direction F and the return direction B. The conveyance unit 10 of this embodiment rotates the roll R held by the supply unit 5, conveys the medium M in the return direction B, and winds it around the roll R. The conveyance section 10 of this embodiment is removably engaged with the shaft section 51 of the supply section 5. The conveyance section 10 rotates the roll R held by the supply section 5 to convey the medium M in the conveyance direction F, and causes the medium M to be fed out from the roll R toward the print head 6 .

張力付与部8は、搬送経路Qにおいて、供給部5と搬送部7との間の媒体Mに張力を付与する。張力は、媒体Mの進行方向とは逆方向に作用する張力である。張力付与部8は、搬送部7よりも搬送方向Fの上流、且つ、搬送部10よりも搬送方向Fの下流に配置され、媒体Mに当接して媒体Mを搬送方向Fと交差する方向に付勢する。つまり、張力付与部8は、搬送経路Qにおいて、搬送部7と、搬送部10との間に設けられる。張力付与部8は、搬送部7の後方、且つ、供給部5の上方に設けられる。 The tension applying unit 8 applies tension to the medium M between the supply unit 5 and the transport unit 7 on the transport path Q. The tension is tension that acts in a direction opposite to the traveling direction of the medium M. The tension applying unit 8 is disposed upstream of the conveying unit 7 in the conveying direction F and downstream of the conveying unit 10 in the conveying direction F, and contacts the medium M to move the medium M in a direction intersecting the conveying direction F. energize. That is, the tension applying section 8 is provided between the conveyance section 7 and the conveyance section 10 on the conveyance path Q. The tension applying section 8 is provided behind the conveyance section 7 and above the supply section 5 .

搬送部15は、印刷ヘッド6の下方、且つ、搬送部7に対し搬送方向Fの下流に設けられ、媒体Mを搬送方向Fに搬送する。搬送部15は、駆動ローラ13、従動ローラ14、及び無端ベルト16を備える。駆動ローラ13と、従動ローラ14とは、前後方向に互いに離隔している。無端ベルト16は、駆動ローラ13と、従動ローラ14とに掛け渡される。無端ベルト16の回転に伴い、従動ローラ14が回転する。無端ベルト16の外周面の上端は、搬送部7により媒体Mがニップされる部分の上下位置と略同じであり、印刷ヘッド6の複数のノズル70と対向する。無端ベルト16の外周面の上端は、搬送方向Fにおいて、搬送部7と、搬送部19との間で搬送される媒体Mを下方から、静電気又は負圧により無端ベルト16に吸着させた状態で搬送する。 The transport unit 15 is provided below the print head 6 and downstream of the transport unit 7 in the transport direction F, and transports the medium M in the transport direction F. The conveying section 15 includes a driving roller 13, a driven roller 14, and an endless belt 16. The drive roller 13 and the driven roller 14 are spaced apart from each other in the front-rear direction. The endless belt 16 is stretched around the drive roller 13 and the driven roller 14. As the endless belt 16 rotates, the driven roller 14 rotates. The upper end of the outer circumferential surface of the endless belt 16 is approximately at the same vertical position as the portion where the medium M is nipped by the conveyance unit 7, and faces the plurality of nozzles 70 of the print head 6. The upper end of the outer peripheral surface of the endless belt 16 is in a state in which the medium M conveyed between the conveyance section 7 and the conveyance section 19 is attracted to the endless belt 16 from below by static electricity or negative pressure in the conveyance direction F. transport.

定着ユニット40は、印刷ヘッド6に対し搬送方向Fの下流且つ搬送部19に対し搬送方向Fの上流に配置される。定着ユニット40は、ハロゲンヒータであり、ハロゲンランプ41、反射板42、及び筐体43を有する。筐体43の下壁には、左右方向に沿った開口44が形成されている。定着ユニット40は、開口44を通じて赤外光を輻射し、開口44の直下を通過する媒体Mを加熱する。これにより、印刷ヘッド6により媒体M上に吐出されたインク80は媒体Mに定着する。 The fixing unit 40 is arranged downstream in the transport direction F with respect to the print head 6 and upstream with respect to the transport section 19 in the transport direction F. 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 lower wall of the housing 43 along the left-right direction. The fixing unit 40 radiates infrared light through the opening 44 to heat the medium M passing directly under the opening 44 . As a result, the ink 80 ejected onto the medium M by the print head 6 is fixed on the medium M.

搬送部19は、印刷ヘッド6及び定着ユニット40に対し搬送方向Fの下流、且つ、読取部45、及び排出口21に対し搬送方向Fの上流に設けられ、媒体Mを搬送方向Fと、戻し方向Bとに搬送する。搬送部19は、左右方向に延びる軸を中心に回転するピンチローラ17と、搬送ローラ18とを有し、ピンチローラ17と、搬送ローラ18とで媒体Mを上下に挟んでニップ搬送を行う。 The transport unit 19 is provided downstream in the transport direction F with respect to the print head 6 and the fixing unit 40 and upstream in the transport direction F with respect to the reading unit 45 and the discharge port 21, and transports the medium M in the transport direction F and back. It is transported in direction B. The conveyance unit 19 includes a pinch roller 17 that rotates around an axis extending in the left-right direction, and a conveyance roller 18. The pinch roller 17 and the conveyance roller 18 sandwich the medium M vertically and perform nip conveyance.

基準板77は、搬送方向Fにおいて、印刷ヘッド6の下流に設けられ、搬送方向Fに直交する幅方向Wに長い板状である。基準板77は、搬送経路Qに対して下方に配置される。基準板77の上面は、読取部45が読み取った画像をシェーディング補正する時の基準となる色を有する。基準板77は、例えば、白色基準板、灰色基準板、及び黒色基準板の何れかである。本実施形態の基準板77は、一例として白色基準板である。基準板77は、付勢部材78により上方に付勢されている。 The reference plate 77 is provided downstream of the print head 6 in the transport direction F, and has a plate shape that is long in the width direction W orthogonal to the transport direction F. The reference plate 77 is arranged below the conveyance path Q. The upper surface of the reference plate 77 has a color that serves as a reference when performing shading correction on the image read by the reading unit 45. The reference plate 77 is, for example, one of a white reference plate, a gray reference plate, and a black reference plate. The reference plate 77 of this embodiment is, for example, a white reference plate. The reference plate 77 is urged upward by a biasing member 78.

読取部45は、印刷ヘッド6及び搬送部19に対し搬送方向Fの下流、且つ、排出口21に対し搬送方向Fの上流に設けられる。読取部45は、搬送経路Qの直上に位置する。読取部45は、媒体MのラベルM2の表面に印刷された画像を光学的に読み取り、読み取られた画像を示す画像信号を出力する。読取部45は、例えば、媒体Mの幅方向、つまり、左右方向に長いCIS(Contact Image Sensor)等のラインイメージセンサである。読取部45は、レンズアレイ75と、センサ76とを備える。レンズアレイ75は、基準板77に対して所定の相対位置に配置され、幅方向Wの所定領域R1(図3参照)内で配列される。所定領域R1の幅方向Wの長さは媒体Mの幅方向Wの長さよりも長い。レンズアレイ75は、円柱状のレンズを複数有し、各レンズは、幅方向Wに並べられている。センサ76は、レンズアレイ75を通過した光を検出する。読取部45は、センサ76が検出した光量に応じた階調値を出力する。 The reading unit 45 is provided downstream of the print head 6 and the transport unit 19 in the transport direction F, and upstream of the discharge port 21 in the transport direction F. The reading unit 45 is located directly above the transport path Q. The reading unit 45 optically reads the 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 CIS (Contact Image Sensor) that is long in the width direction of the medium M, that is, in the left-right direction. The reading section 45 includes a lens array 75 and a sensor 76. The lens array 75 is arranged at a predetermined relative position with respect to the reference plate 77, and is arranged within a predetermined region R1 (see FIG. 3) in the width direction W. The length of the predetermined region R1 in the width direction W is longer than the length of the medium M in the width direction W. The lens array 75 has a plurality of cylindrical lenses, and each lens is arranged in the width direction W. Sensor 76 detects the light that has passed through lens array 75. The reading unit 45 outputs a gradation value according to the amount of light detected by the sensor 76.

搬送部48は、読取部45に対し搬送方向Fの下流、且つ、排出口21に対し搬送方向Fの上流に設けられ、媒体Mを搬送方向Fと、戻し方向Bとに搬送する。搬送部48は、左右方向に延びる軸を中心に回転するピンチローラ46と、搬送ローラ47とを有し、ピンチローラ46と、搬送ローラ47とで媒体Mを上下に挟んでニップ搬送を行う。 The transport unit 48 is provided downstream in the transport direction F with respect to the reading unit 45 and upstream with respect to the discharge port 21 in the transport direction F, and transports the medium M in the transport direction F and the return direction B. The conveyance unit 48 includes a pinch roller 46 that rotates around an axis extending in the left-right direction, and a conveyance roller 47. The pinch roller 46 and the conveyance roller 47 sandwich the medium M vertically and perform nip conveyance.

巻取装置60は、ケーブル61及び軸部63を備える。ケーブル61は、巻取装置接続部68に接続可能なプラグ62を、先端部に備える。使用者は、巻取装置60を使用する場合、巻取装置60を印刷装置1の前方に配置し、プラグ62を巻取装置接続部68に差し込む。巻取装置60は、印刷装置1に電気的に接続した状態で、読取部45に対して搬送方向Fの下流に配置される。ケーブル61は、巻取装置接続部68に差し込まれた状態で、印刷装置1から供給される電力を伝送する。軸部63には、媒体Mが巻回される芯材が装着される。使用者は、巻取装置60に媒体Mを巻き取らせる場合、媒体Mを排出口21から引き出し、引き出した媒体Mを芯材に固定する。巻取装置60は、印刷装置1から伝送される電力を受けて、芯材とともに軸部63を回転させる。排出口21から排出される媒体Mが、芯材に巻回される。印刷装置1に巻取装置60が接続される場合、排出口21から排出された媒体Mの搬送経路Qが屈曲し、搬送方向Fが前方から前斜め下方に変化する。 The winding device 60 includes a cable 61 and a shaft portion 63. The cable 61 includes a plug 62 connectable to a winding device connection section 68 at its tip. When using the winding device 60, the user places the winding device 60 in front of the printing device 1 and inserts the plug 62 into the winding device connection portion 68. The winding device 60 is arranged downstream in the conveying direction F with respect to the reading section 45 while being electrically connected to the printing device 1 . The cable 61 transmits electric power supplied from the printing device 1 while being inserted into the winding device connection portion 68 . A core material around which the medium M is wound is attached to the shaft portion 63 . When the user causes the winding device 60 to wind up the medium M, the user pulls out the medium M from the discharge port 21 and fixes the pulled out medium M to the core material. The winding device 60 receives electric power transmitted from the printing device 1 and rotates the shaft portion 63 together with the core material. The medium M discharged from the discharge port 21 is wound around the core material. When the winding device 60 is connected to the printing device 1, the conveyance path Q of the medium M discharged from the discharge port 21 is bent, and the conveyance direction F changes from the front to the diagonally downward direction.

図4を参照し、印刷装置1の電気的構成を説明する。印刷装置1は、制御部30と、制御部30に電気的に接続された記憶部31、操作部4、表示部3、駆動部9、11、38、39、49、印刷ヘッド6、ハロゲンランプ41、エンコーダ33から37、媒体検出部53、張力検出部54、読取部45、巻取装置接続部68及び外部機器接続部69とを備える。制御部30は、印刷装置1の制御を司り、印刷ヘッド6、ハロゲンランプ41、駆動部9、11、38、39、49、及び表示部3を制御する。記憶部31は、制御部30による各種プログラムの実行時に必要な各種パラメータ等を記憶するROM、RAM、及びフラッシュメモリ等を含む。図5に示すように、制御部30は、画像処理回路群90、第一ガンマ補正テーブル93、第二ガンマ補正テーブル94、切替部97、及びDRAM96を備える。画像処理回路群90は、読取部45から出力され画像を処理する複数の回路を含む。本実施形態の画像処理回路群90は、シェーディング補正回路91及びガンマ補正回路92を含む。シェーディング補正回路91は、予め読取部45により基準板77を読み取らせることで作成された補正値を用いて、画像を補正し、画像中の光源の光量の不均一性、及びセンサ76の各画素の感度バラつきなどの影響を低減する。切替部97は、ガンマ補正回路92が参照するガンマ補正テーブルを、第一ガンマ補正テーブル93及び第二ガンマ補正テーブル94の何れかに切り替える。DRAM96は、画像処理回路群90を経た画像を記憶する。 The electrical configuration of the printing apparatus 1 will be described with reference to FIG. 4. The printing device 1 includes a control section 30, a storage section 31 electrically connected to the control section 30, an operation section 4, a display section 3, drive sections 9, 11, 38, 39, 49, a print head 6, and a halogen lamp. 41, encoders 33 to 37, a medium detection section 53, a tension detection section 54, a reading section 45, a winding device connection section 68, and an external device connection section 69. The control unit 30 controls the printing apparatus 1 , and controls the print head 6 , the halogen lamp 41 , the drive units 9 , 11 , 38 , 39 , and 49 , and the display unit 3 . The storage unit 31 includes a ROM, a RAM, a flash memory, and the like that store various parameters and the like necessary when the control unit 30 executes various programs. As shown in FIG. 5, the control section 30 includes an image processing circuit group 90, a first gamma correction table 93, a second gamma correction table 94, a switching section 97, and a DRAM 96. The image processing circuit group 90 includes a plurality of circuits that process images output from the reading section 45. The image processing circuit group 90 of this embodiment includes a shading correction circuit 91 and a gamma correction circuit 92. The shading correction circuit 91 corrects the image using correction values created in advance by reading the reference plate 77 with the reading unit 45, and corrects the non-uniformity of the light amount of the light source in the image and each pixel of the sensor 76. This reduces the effects of variations in sensitivity. The switching unit 97 switches the gamma correction table referred to by the gamma correction circuit 92 to either the first gamma correction table 93 or the second gamma correction table 94. The DRAM 96 stores images that have passed through the image processing circuit group 90.

駆動部9は、制御部30の制御により、搬送部7を回転駆動する。駆動部11は、制御部30の制御により、搬送部10を回転駆動する。駆動部38は、制御部30の制御により、搬送部15の駆動ローラ13を回転させることで、搬送部15の無端ベルト16を回転させる。駆動部39は、制御部30の制御により、搬送部19を回転駆動する。駆動部49は、制御部30の制御により、搬送部48を回転駆動する。駆動部9、11、38、39、49は各々、例えば、正逆回転可能なステッピングモータである。エンコーダ33は、駆動部9に駆動量に応じた値を制御部30に入力する。エンコーダ34は、駆動部11に駆動量に応じた値を制御部30に入力する。エンコーダ35は、駆動部38に駆動量に応じた値を制御部30に入力する。エンコーダ36は、駆動部39に駆動量に応じた値を制御部30に入力する。エンコーダ37は駆動部49に駆動量に応じた値を制御部30に入力する。張力検出部54は、張力付与部8により、張力付与部8と、搬送部7との間の媒体Mに付与された張力に応じた検出結果を制御部30に出力する。巻取装置接続部68は、巻取装置60との入出力インタフェースとして機能する。外部機器接続部69は、PC等の外部の情報機器との入出力インタフェースとして機能する。 The drive section 9 rotationally drives the conveyance section 7 under the control of the control section 30 . The drive unit 11 rotates the transport unit 10 under the control of the control unit 30 . The drive unit 38 rotates the endless belt 16 of the conveyance unit 15 by rotating the drive roller 13 of the conveyance unit 15 under the control of the control unit 30 . The drive section 39 rotationally drives the conveyance section 19 under the control of the control section 30 . The drive section 49 rotationally drives the conveyance section 48 under the control of the control section 30 . Each of the 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 of the drive unit 9 to the control unit 30 . The encoder 34 inputs a value corresponding to the drive amount of the drive unit 11 to the control unit 30 . The encoder 35 inputs a value corresponding to the drive amount of the drive unit 38 to the control unit 30 . The encoder 36 inputs a value corresponding to the drive amount of the drive unit 39 to the control unit 30 . The encoder 37 inputs a value corresponding to the drive amount of the drive unit 49 to the control unit 30 . The tension detection section 54 outputs a detection result to the control section 30 according to the tension applied by the tension application section 8 to the medium M between the tension application section 8 and the conveyance section 7 . The winding device connection section 68 functions as an input/output interface with the winding device 60. The external device connection section 69 functions as an input/output interface with external information devices such as a PC.

図6から図8を参照して、印刷装置1の制御部30によって実行されるメイン処理について、図3の具体例を用いて説明する。制御部30は印刷装置1の電源がONになった場合に、記憶部31からメイン処理を行うためのプログラムを読み出して、以下の処理を実行する。本実施形態のメイン処理は、巻取装置接続部68を介して巻取装置60と連携して実行され、複数の印刷領域に対する印刷が連続して実行されてもよい。以下の説明において、各処理のステップを「S」と略記する。メイン処理開始時において、媒体Mは、搬送部7に挟まれており、媒体Mの属性がユーザにより印刷装置1に入力されている。制御部30は、媒体Mの属性に基づき、媒体Mのうちの、ラベルM2が添付された領域を、印刷領域とする。制御部30は、幅方向Wにおいて、所定領域R1のうち、媒体Mが搬送される領域を除いた余り領域R2、R3を設定する。余り領域R2は、所定領域R1のうち、媒体Mが搬送される領域の左側の領域である。余り領域R3は、所定領域R1のうち、媒体Mが搬送される領域の右側の領域である。本実施形態の余り領域R2の幅方向Wの長さは、余り領域R3の幅方向Wの長さと等しい。 With reference to FIGS. 6 to 8, the main processing executed by the control unit 30 of the printing apparatus 1 will be described using the specific example of FIG. 3. When the printing apparatus 1 is powered on, the control section 30 reads a program for performing main processing from the storage section 31 and executes the following processing. The main process of this embodiment is executed in cooperation with the winding device 60 via the winding device connection unit 68, and printing on a plurality of print areas may be executed continuously. In the following description, each processing step is abbreviated as "S". At the start of the main process, the medium M is sandwiched between the transport sections 7, and the attributes of the medium M are input into the printing apparatus 1 by the user. Based on the attributes of the medium M, the control unit 30 sets the area of the medium M to which the label M2 is attached as a print area. In the width direction W, the control unit 30 sets surplus regions R2 and R3 of the predetermined region R1 excluding the region where the medium M is transported. The surplus area R2 is an area on the left side of the area where the medium M is conveyed in the predetermined area R1. The surplus area R3 is an area on the right side of the area where the medium M is conveyed in the predetermined area R1. The length in the width direction W of the remainder region R2 in this embodiment is equal to the length in the width direction W of the remainder region R3.

図6に示すように、制御部30は、印刷データを取得する(S1)。具体例では、印刷装置1のユーザは、操作部4を操作して識別コードを含む画像を、連続して印刷するための印刷データを指定した上で、印刷開始の指示を入力する。識別コードは、機械により読み取り可能な文字列、記号、模様等の配列によって各種の情報を表すものである。識別コードは、例えば、一次元コード及び二次元コード等でもよい。一次元コードは、例えば、バーコードであってよい。二次元コードは、QRコード(登録商標)、VeriCode(ベリコード)、CPコード、AztecCode(アズテックコード)、及びPDF417等でもよい。制御部30は、印刷開始の指示において指定された印刷データを取得する。 As shown in FIG. 6, the control unit 30 acquires print data (S1). In a specific example, the user of the printing apparatus 1 operates the operation unit 4 to designate print data for consecutively printing images including identification codes, and then inputs an instruction to start printing. The identification code represents various information by a machine-readable arrangement of character strings, symbols, patterns, etc. The identification code may be, for example, a one-dimensional code or a two-dimensional code. The one-dimensional code may be, for example, a barcode. The two-dimensional code may be a QR code (registered trademark), VeriCode, CP code, AztecCode, PDF417, or the like. The control unit 30 acquires print data specified in the print start instruction.

制御部30は、印刷制御処理実行前に読取部45で所定領域R1に対応する基準板77を読み取った基準画像に基づき補正値を設定する(S2)。補正値は、シェーディング補正を行う際に用いられる。制御部30は、印刷順序を表す変数Nと、読取順序を表す変数Eとの各々に1を設定する(S3)。制御部30は、搬送部7、10、15、19、48を制御して、媒体Mを搬送方向Fに搬送を開始する(S4)。印刷装置1が巻取装置60と連携してメイン処理を行う場合は、制御部30は、巻取装置60に搬送開始を通知する。巻取装置60は、搬送開始の通知を受領後、所定のタイミングで媒体Mの巻き取りを開始する。 The control unit 30 sets a correction value based on the reference image obtained by reading the reference plate 77 corresponding to the predetermined area R1 using the reading unit 45 before executing the print control process (S2). The correction value is used when performing shading correction. The control unit 30 sets each of a variable N representing the printing order and a variable E representing the reading order to 1 (S3). The control unit 30 controls the transport units 7, 10, 15, 19, and 48 to start transporting the medium M in the transport direction F (S4). When the printing device 1 performs main processing in cooperation with the winding device 60, the control unit 30 notifies the winding device 60 of the start of conveyance. After receiving the notification of the start of transport, the winding device 60 starts winding the medium M at a predetermined timing.

制御部30は、媒体検出部53の検出結果に基づき、媒体Mの先端に隣接する、印刷順序が1番目のラベルM2の先端、つまり、印刷順序が1番目の印刷領域の先端を検出し、検出結果を原点位置として記憶する(S5)。印刷装置1が巻取装置60と連携してメイン処理を行う場合は、S5の処理が省略されてよい。制御部30は、媒体Mの先端からN番目の印刷領域が印刷位置に達したかを判断する(S6)。制御部30は、原点位置検出後の駆動部9、11、38、39、49の駆動量と、媒体Mの属性と、原点位置から印刷位置までの距離とに基づき、N番目の印刷領域が印刷位置に達したかを判断する。N番目の印刷領域が印刷位置に達していない場合(S6:NO)、制御部30は、E番目の印刷領域が読取位置に達したかを判断する(S9)。制御部30は、原点位置検出後の駆動部9、11、38、39、49の駆動量と、媒体Mの属性と、原点位置から読取位置までの距離とに基づき、E番目の印刷領域が読取位置に達したかを判断する。E番目の印刷領域が読取位置に達していない場合(S9:NO)、制御部30は処理をS6に戻す。 The control unit 30 detects the leading edge of the label M2 that is first in the printing order, which is adjacent to the leading edge of the medium M, that is, the leading edge of the printing area that is the first in the printing order, based on the detection result of the medium detection unit 53, The detection result is stored as the origin position (S5). When the printing device 1 performs the main processing in cooperation with the winding device 60, the processing in S5 may be omitted. The control unit 30 determines whether the Nth printing area from the leading edge of the medium M has reached the printing position (S6). The control unit 30 determines the Nth print area based on the drive amount of the drive units 9, 11, 38, 39, and 49 after detecting the origin position, the attributes of the medium M, and the distance from the origin position to the printing position. Determine whether the printing position has been reached. If the Nth printing area has not reached the printing position (S6: NO), the control unit 30 determines whether the Eth printing area has reached the reading position (S9). The control unit 30 determines the E-th print area based on the drive amounts of the drive units 9, 11, 38, 39, and 49 after the origin position is detected, the attributes of the medium M, and the distance from the origin position to the reading position. Determine whether the reading position has been reached. If the E-th print area has not reached the reading position (S9: NO), the control unit 30 returns the process to S6.

N番目の印刷領域が印刷位置に達した場合(S6:YES)、制御部30は、印刷ヘッド6と搬送部7、10、15、19、48とを制御し、S2で取得された印刷データに従って、媒体MのN番目の印刷領域に、識別コードを含むN番目の画像G(N)を印刷する(S7)。制御部30は、変数Nを1だけインクリメントして(S8)、処理をS6に戻す。 When the Nth print area has reached the print position (S6: YES), the control unit 30 controls the print head 6 and the transport units 7, 10, 15, 19, 48, and prints the print data acquired in S2. Accordingly, the Nth image G(N) including the identification code is printed in the Nth print area of the medium M (S7). The control unit 30 increments the variable N by 1 (S8) and returns the process to S6.

E番目の印刷領域が読取位置に達した場合(S9:YES)、制御部30は、搬送部7、10、15、19、48が媒体Mを搬送中に、幅方向Wの長さがレンズアレイ75よりも短い媒体Mに印刷された画像を読取部45で読み取った第一画像を取得する(S10)。制御部30のシェーディング補正回路91は、S10で取得された第一画像について、S2で基準板77を読み取った基準画像に基づき設定された補正値を用いたシェーディング補正を行う(S11)。制御部30のガンマ補正回路92は、シェーディング補正後の第一画像を第一ガンマ補正テーブル93を用いてガンマ補正する(S12)。制御部30は、例えば、シェーディング補正、ガンマ補正を経た第一画像を用いて、識別コードを含む画像G(N)の印刷品質を判定する。 When the E-th printing area reaches the reading position (S9: YES), the control unit 30 controls the length of the width direction W while the conveyance units 7, 10, 15, 19, and 48 are conveying the medium M to the lens. A first image is obtained by reading an image printed on a medium M shorter than the array 75 using the reading unit 45 (S10). The shading correction circuit 91 of the control unit 30 performs shading correction on the first image acquired in S10 using the correction value set based on the reference image read from the reference plate 77 in S2 (S11). The gamma correction circuit 92 of the control unit 30 performs gamma correction on the first image after the shading correction using the first gamma correction table 93 (S12). The control unit 30 determines the print quality of the image G(N) including the identification code, for example, using the first image that has undergone shading correction and gamma correction.

制御部30は、検査処理を行う(S13)。検査処理は、媒体Mの複数の印刷領域のうちの、注目する印刷領域についてのS10の処理が実行された後、注目する印刷領域の印刷順序が次の印刷領域についてのS10の処理を実行する前に実行される。図7に示すように、検査処理では、制御部30は、切替部97に切替信号を出力して、ガンマ補正テーブルをS12の処理で用いられた第一ガンマ補正テーブル93から第二ガンマ補正テーブル94に切り替える(S21)。制御部30は、搬送部7、10、15、19、48が媒体Mを搬送中に、幅方向Wにおいて、余り領域R2、R3に対応する基準板77を、読取部45で読み取った第二画像を取得する(S22)。余り領域R2、R3は、レンズアレイ75の所定領域R1のうちの、媒体Mが搬送される領域を除いた領域である。制御部30のシェーディング補正回路91は、S22で取得された第二画像について、S2で基準板77を読み取った基準画像に基づき設定された補正値を用いたシェーディング補正を行う(S23)。 The control unit 30 performs inspection processing (S13). In the inspection process, after the process of S10 is executed for the print area of interest among the plurality of print areas of the medium M, the process of S10 is executed for the print area that is next in the printing order of the print area of interest. executed before. As shown in FIG. 7, in the inspection process, the control unit 30 outputs a switching signal to the switching unit 97 to change the gamma correction table from the first gamma correction table 93 used in the process of S12 to the second gamma correction table. 94 (S21). The control unit 30 controls, while the conveyance units 7, 10, 15, 19, and 48 are conveying the medium M, the reference plate 77 corresponding to the surplus areas R2 and R3 in the width direction W is read by the reading unit 45. An image is acquired (S22). The remaining regions R2 and R3 are regions of the predetermined region R1 of the lens array 75 excluding the region where the medium M is transported. The shading correction circuit 91 of the control unit 30 performs shading correction on the second image acquired in S22 using the correction value set based on the reference image read from the reference plate 77 in S2 (S23).

制御部30のガンマ補正回路92は、シェーディング補正後の第二画像を第二ガンマ補正テーブル94を用いてガンマ補正する(S24)。第二ガンマ補正テーブル94は、第二画像を構成する複数の画素の各々の入力階調値について、入力階調値を出力階調値に変換するテーブルである。図8に模式的に示すように、第二ガンマ補正テーブル94は、基準板77が正常に読み取られた場合の階調値を含む第一範囲V1の入力階調値D1を、第一範囲V1の入力階調値D1の変化を強調した出力階調値D2である強調階調値に変換するように設定される。入力階調値D1、出力階調値D2は、0から255の数値で示される。本実施形態の基準板77は、白色基準板であるので、基準板77が正常に読み取られた場合の階調値は255である。第一範囲V1は、一例として、入力階調値D1が245から255の範囲である。強調階調値は、一例として、1から255の間で曲線状に変化する値である。第二ガンマ補正テーブル94は、第一範囲V1に連続する第二範囲V2の入力階調値D1を、入力階調値D1によらず、強調階調値とは異なる出力階調値である固定値に変換するように設定される。第二範囲V2は、一例として、入力階調値D1が0から244の範囲である。固定値は、一例として、0である。制御部30は、入力階調値D1に第二ガンマ補正テーブル94を適用して、出力階調値D2を得る。 The gamma correction circuit 92 of the control unit 30 performs gamma correction on the second image after the shading correction using the second gamma correction table 94 (S24). The second gamma correction table 94 is a table for converting input gradation values into output gradation values for each of the plurality of pixels constituting the second image. As schematically shown in FIG. 8, the second gamma correction table 94 converts the input gradation values D1 of the first range V1 including the gradation values when the reference plate 77 is normally read into the first range V1 It is set so that the change in the input gradation value D1 is converted into an emphasized gradation value which is an output gradation value D2 that emphasizes a change in the input gradation value D1. The input gradation value D1 and the output gradation value D2 are indicated by numerical values from 0 to 255. Since the reference plate 77 of this embodiment is a white reference plate, the gradation value is 255 when the reference plate 77 is read normally. The first range V1 is, for example, a range in which the input gradation value D1 is from 245 to 255. The emphasis tone value is, for example, a value that changes in a curved manner between 1 and 255. The second gamma correction table 94 fixes the input gradation value D1 of the second range V2 that is continuous with the first range V1 to be an output gradation value different from the emphasized gradation value, regardless of the input gradation value D1. Set to convert to value. The second range V2 is, for example, a range in which the input gradation value D1 is from 0 to 244. The fixed value is 0, for example. The control unit 30 applies the second gamma correction table 94 to the input tone value D1 to obtain an output tone value D2.

制御部30は、S24でガンマ補正された第二画像の複数の画素の各々の出力階調値D2の隣接差分D3を算出する(S25)。制御部30は、U番目の画素の階調値から、(U+1)番目の画素の出力階調値D2を差し引いた値を、U番目の隣接差分D3とする。Uが1である場合の隣接差分D3は、0とする。制御部30は、隣接差分D3の絶対値の最大値が閾値以上を判断する(S26)。閾値は、第二ガンマ補正テーブル94を適用することで得られる出力階調値D2を考慮して、適宜設定されればよい。隣接差分D3の絶対値が閾値以上である場合は、読取異常値が検出された場合である。隣接差分D3の絶対値の最大値が閾値以上ではない場合(S26:NO)、制御部30は、検査結果に異常なしを設定する(S29)。 The control unit 30 calculates the adjacent difference D3 between the output gradation values D2 of each of the plurality of pixels of the second image subjected to the gamma correction in S24 (S25). The control unit 30 sets the value obtained by subtracting the output gradation value D2 of the (U+1)th pixel from the gradation value of the Uth pixel as the Uth adjacent difference D3. When U is 1, the adjacent difference D3 is 0. The control unit 30 determines that the maximum absolute value of the adjacent difference D3 is greater than or equal to the threshold (S26). The threshold value may be appropriately set in consideration of the output gradation value D2 obtained by applying the second gamma correction table 94. If the absolute value of the adjacent difference D3 is greater than or equal to the threshold value, this means that a reading abnormal value has been detected. If the maximum absolute value of the adjacent difference D3 is not greater than or equal to the threshold (S26: NO), the control unit 30 sets the test result to be normal (S29).

図8の具体例では隣接差分D3の絶対値の最大値は60であり、閾値以上と判断される(S26:YES)。この場合、制御部30は、第二画像の全体に亘って幅方向Wに一定周期で隣接差分D3のピークがあるかを確認する(S27)。隣接差分D3のピークは、画素の番号に対する隣接差分D3の変化のグラフGFにおいて、極大値又は極小値として検出される。制御部30は、ピークP1及びピークP2の間隔T1と、ピークP2及びピークP3の間隔T2の差が所定範囲に収まる場合を、第二画像の全体に亘って幅方向Wに一定周期で隣接差分D3のピークがある場合とする。制御部30は、S27の確認結果に基づき、周期性があるか否かを判断する(S28)。周期性がある場合(S28:YES)、制御部30は、検査結果に位置ずれ発生を設定する(S30)。周期性がない場合(S28:NO)、制御部30は、検査結果に汚れ発生を設定する(S31)。S29からS31のいずれかの次に、制御部30は、切替部97に切替信号を出力して、ガンマ補正テーブルをS21の処理で用いられた第二ガンマ補正テーブル94からS12の処理で用いられた第一ガンマ補正テーブル93に切り替える(S32)。制御部30は、以上で検査処理を終了し、処理をメイン処理に戻す。 In the specific example of FIG. 8, the maximum absolute value of the adjacent difference D3 is 60, which is determined to be greater than or equal to the threshold (S26: YES). In this case, the control unit 30 checks whether there is a peak of the adjacent difference D3 at regular intervals in the width direction W over the entire second image (S27). The peak of the adjacent difference D3 is detected as a local maximum value or a local minimum value in the graph GF of changes in the adjacent difference D3 with respect to the pixel number. When the difference between the interval T1 between the peak P1 and the peak P2 and the interval T2 between the peak P2 and the peak P3 falls within a predetermined range, the control unit 30 calculates the adjacent difference at a constant period in the width direction W over the entire second image. Assume that there is a peak of D3. The control unit 30 determines whether there is periodicity based on the confirmation result in S27 (S28). If there is periodicity (S28: YES), the control unit 30 sets the occurrence of positional deviation in the inspection result (S30). If there is no periodicity (S28: NO), the control unit 30 sets occurrence of stain in the inspection result (S31). Next to any one of S29 to S31, the control unit 30 outputs a switching signal to the switching unit 97 to change the gamma correction table from the second gamma correction table 94 used in the process of S21 to the second gamma correction table 94 used in the process of S12. The first gamma correction table 93 is selected (S32). The control unit 30 ends the inspection process and returns the process to the main process.

制御部30は、S13の検査処理で設定された検査結果が異常なしであるかを判断する(S14)。検査結果が異常なしではない場合(S14:NO)、制御部30は、検査結果を表示部3に表示してエラーを報知する(S16)。検査結果が異常なしである場合(S14:YES)、制御部30は、変数Eが最後の印刷領域の数かを判断する(S15)。変数Eが最後の印刷領域の数ではない場合(S15:NO)、制御部30は、変数Eを1だけインクリメントして(S17)、処理をS6に戻す。変数Eが最後の印刷領域の数である場合(S15:YES)、又はS16の次に、制御部30は、搬送部7、10、15、19、48を制御して、媒体Mを搬送方向Fへの搬送を停止する(S18)。印刷装置1が巻取装置60と連携してメイン処理を行う場合は、制御部30は、巻取装置60に、搬送停止を通知する。巻取装置60は、搬送停止の通知を受領後、所定のタイミングで媒体Mの巻き取りを停止する。制御部30は、媒体Mを排出する処理を実行後(S19)、以上でメイン処理を終了する。 The control unit 30 determines whether the test results set in the test process of S13 are normal (S14). When the test result is not found to be abnormal (S14: NO), the control unit 30 displays the test result on the display unit 3 and notifies an error (S16). If the inspection result shows no abnormality (S14: YES), the control unit 30 determines whether the variable E is the number of the last print area (S15). If the variable E is not the number of the last print area (S15: NO), the control unit 30 increments the variable E by 1 (S17), and returns the process to S6. If the variable E is the number of the last printing area (S15: YES), or after S16, the control unit 30 controls the transport units 7, 10, 15, 19, and 48 to move the medium M in the transport direction. Conveyance to F is stopped (S18). When the printing device 1 performs main processing in cooperation with the winding device 60, the control unit 30 notifies the winding device 60 to stop conveyance. After receiving the notification to stop conveyance, the winding device 60 stops winding the medium M at a predetermined timing. After executing the process of ejecting the medium M (S19), the control unit 30 ends the main process.

図9を参照して、変形例のメイン処理で実行される検査処理を説明する。制御部30は、変形例のメイン処理の検査処理は、S25を省略する点と、S24、S26、S27の処理とが、上記実施形態の検査処理と互いに異なり、他の処理は、上記実施形態と同じである。以下では、上記実施形態と互いに異なるS24、S26、S27の処理の各々について説明する。 Referring to FIG. 9, the inspection process executed in the main process of the modified example will be described. The control unit 30 differs from the inspection process of the above embodiment in that the inspection process of the main process of the modified example omits S25 and the processes of S24, S26, and S27, and the other processes are different from the inspection process of the above embodiment. is the same as Below, each of the processes of S24, S26, and S27, which are different from those of the above embodiment, will be explained.

制御部30のガンマ補正回路92は、変形例のS24では、上記実施形態の第二ガンマ補正テーブル94とは互いに異なる第二ガンマ補正テーブル95を用いて、シェーディング補正後の第二画像をガンマ補正する(S24)。変形例の第二ガンマ補正テーブル95は、入力階調値D1を、入力階調値D1に応じて、第一出力値、第二出力値、及び第三出力値の何れかの出力階調値D4に変換する。入力階調値D1が、基準板77が正常に読み取られた場合の階調値を含む第一範囲V11の入力階調値である場合、制御部30は、第二ガンマ補正テーブル95に基づき、入力階調値を第一出力値に変換する。入力階調値D1が、第一範囲に連続する第二範囲V12内の値である場合、制御部30は、第二ガンマ補正テーブル95に基づき、入力階調値D1を第一出力値とは互いに異なる第二出力値に変換する。入力階調値D1が、第二範囲V12に連続し、第一範囲V11とは連続しない第三範囲V13内の値である場合、制御部30は、第二ガンマ補正テーブル95に基づき、入力階調値D1を、第一出力値及び第二出力値とは互いに異なる第三出力値に変換する。変形例の第一範囲V11は、入力階調値D1が250以上且つ255以下の範囲である。第二範囲V12は、入力階調値D1が245以上且つ250未満の範囲である。第二範囲V12には、読取異常値と判断される範囲が設定される。第三範囲V13は、入力階調値D1が0以上且つ245未満の範囲である。第一出力値は、255である。第二出力値は、200である。第三出力値は、0である。S24の処理により、第二画像の入力階調値D1は、出力階調値D4に変換される。 In S24 of the modified example, the gamma correction circuit 92 of the control unit 30 performs gamma correction on the second image after shading correction using a second gamma correction table 95 that is different from the second gamma correction table 94 of the above embodiment. (S24). The second gamma correction table 95 of the modified example converts the input gradation value D1 into an output gradation value of any one of a first output value, a second output value, and a third output value according to the input gradation value D1. Convert to D4. When the input gradation value D1 is an input gradation value in the first range V11 that includes the gradation value when the reference plate 77 is normally read, the control unit 30, based on the second gamma correction table 95, Convert the input tone value to a first output value. When the input gradation value D1 is a value within the second range V12 that is continuous with the first range, the control unit 30 determines that the input gradation value D1 is different from the first output value based on the second gamma correction table 95. Convert to mutually different second output values. If the input gradation value D1 is a value within the third range V13 that is continuous with the second range V12 but not continuous with the first range V11, the control unit 30 adjusts the input gradation value based on the second gamma correction table 95. The adjustment value D1 is converted into a third output value that is different from the first output value and the second output value. The first range V11 of the modification is a range in which the input gradation value D1 is 250 or more and 255 or less. The second range V12 is a range in which the input gradation value D1 is greater than or equal to 245 and less than 250. The second range V12 is set as a range that is determined to be an abnormal reading value. The third range V13 is a range in which the input gradation value D1 is greater than or equal to 0 and less than 245. The first output value is 255. The second output value is 200. The third output value is zero. Through the process of S24, the input gradation value D1 of the second image is converted into the output gradation value D4.

制御部30は、変形例のS26では、出力階調値D4が、第一出力値のみを含むかを判断する(S26)。出力階調値D4が第一出力値のみを含む場合には(S26:YES)、制御部30は検査結果に異常なしを設定する(S29)。出力階調値D4が第一出力値のみではない場合(S26:NO)、制御部30は、幅方向Wにおいて、第二画像の全体に亘って幅方向Wに一定周期で第二出力値を検出したかに基づき、周期性を確認する(S27)。制御部30は、第二画像のうちの第二出力値が連続している範囲T11、T13、T15と、第一出力値が連続している範囲T12、T14との各々を比較する。範囲T12は、第二画像のうちの範囲T11、T13の間に位置する。範囲T14は、第二画像のうちの範囲T13、T15の間に位置する。制御部30は、範囲T11、T13、T15が各々同じ又は類似する長さであり、範囲T12、T14が各々同じ又は類似する長さである場合に周期性があると判断する。範囲の長さは、例えば、範囲に含まれる画素数で表される。類似する長さは、一例として、二つの範囲の長さの差の絶対値が1以下である場合を言う。類似する長さの判断基準は、適宜変更されてよい。以降の処理は上記実施形態と同様である。制御部30は、S27の確認結果に基づき、幅方向Wにおいて、第二画像の全体に亘って幅方向Wに一定周期で第二出力値を検出した場合(S28:YES)を位置ずれ発生として検出する(S30)。 In S26 of the modified example, the control unit 30 determines whether the output gradation value D4 includes only the first output value (S26). If the output gradation value D4 includes only the first output value (S26: YES), the control unit 30 sets the inspection result to be normal (S29). When the output gradation value D4 is not only the first output value (S26: NO), the control unit 30 outputs the second output value at a constant period in the width direction W over the entire second image. Based on the detection, periodicity is confirmed (S27). The control unit 30 compares ranges T11, T13, and T15 of the second image in which the second output values are continuous with ranges T12 and T14 in which the first output values are continuous. Range T12 is located between ranges T11 and T13 of the second image. Range T14 is located between ranges T13 and T15 of the second image. The control unit 30 determines that there is periodicity when the ranges T11, T13, and T15 have the same or similar lengths, and the ranges T12 and T14 have the same or similar lengths. The length of the range is expressed, for example, by the number of pixels included in the range. Similar lengths refer to, for example, a case where the absolute value of the difference in length between two ranges is 1 or less. The criteria for determining similar lengths may be changed as appropriate. The subsequent processing is similar to the above embodiment. Based on the confirmation result in S27, the control unit 30 determines that a positional deviation has occurred when the second output value is detected at a constant period in the width direction W over the entire second image (S28: YES). Detect (S30).

上記実施形態において、印刷装置1、印刷ヘッド6、制御部30、読取部45、レンズアレイ75、センサ76、及び基準板77は各々、本発明の印刷装置、印刷ヘッド、制御部、読取部、レンズアレイ、センサ、及び基準板の一例である。搬送部7、10、15、19、48は、本発明の搬送部の一例である。S7の処理は、印刷制御処理の一例である。S10の処理は、本発明の第一処理の一例である。S22の処理は、本発明の第二処理の一例である。S11、S23の処理は、本発明の補正処理の一例である。S27、S28、S30の処理は、本発明の検出処理の一例である。S16の処理は、本発明の報知制御処理の一例である。S12、S24の処理は、本発明のガンマ補正処理の一例である。S2の処理は、本発明の補正値設定処理の一例である。 In the above embodiment, the printing device 1, the print head 6, the control section 30, the reading section 45, the lens array 75, the sensor 76, and the reference plate 77 are the printing device, the print head, the control section, the reading section, and the reference plate 77 of the present invention, respectively. This is an example of a lens array, a sensor, and a reference plate. The conveyance units 7, 10, 15, 19, and 48 are examples of the conveyance units of the present invention. The process in S7 is an example of print control process. The process of S10 is an example of the first process of the present invention. The process of S22 is an example of the second process of the present invention. The processing in S11 and S23 is an example of the correction processing of the present invention. The processes of S27, S28, and S30 are an example of the detection process of the present invention. The process of S16 is an example of the notification control process of the present invention. The processing in S12 and S24 is an example of the gamma correction processing of the present invention. The process of S2 is an example of the correction value setting process of the present invention.

上記実施形態の印刷装置1は、搬送部7、10、15、19、48、印刷ヘッド6、基準板77、読取部45、制御部30を備える。搬送部7、10、15、19、48は、長尺状の媒体Mを、搬送方向Fに搬送する、印刷ヘッド6は、搬送方向Fにおいて、搬送部19、48の上流に設けられる。基準板77は、搬送方向Fにおいて、印刷ヘッド6の下流に設けられ、搬送方向Fに直交する幅方向Wに長い。読取部45は、搬送方向Fにおいて、印刷ヘッド6の下流に設けられる。読取部45は、レンズアレイ75及びセンサ76を備える。レンズアレイ75は、基準板77に対して所定の相対位置に配置され、幅方向Wの所定領域R1内で配列される。センサ76は、レンズアレイ75を通過した光を検出する。制御部30は、搬送部7、10、15、19、48と、印刷ヘッド6と、読取部45との各々を制御する。制御部30は、印刷ヘッド6と搬送部7、10、15、19、48とを制御し、媒体Mに画像を印刷する(S4、S7)。制御部30は、搬送部7、10、15、19、48が媒体Mを搬送中に、幅方向Wの長さがレンズアレイ75よりも短い媒体Mに印刷された画像を読取部45で読み取った第一画像を取得する(S10)。制御部30は、搬送部7、10、15、19、48が媒体Mを搬送中に、幅方向Wにおいて、レンズアレイ75の所定領域R1のうちの、媒体Mが搬送される領域を除いた余り領域R2、R3に対応する基準板77を、読取部45で読み取った第二画像を取得する(S22)。制御部30は、S10の処理で取得された第一画像と、S22の処理で取得された第二画像との各々について、基準板77を読み取った基準画像に基づき設定された補正値を用いたシェーディング補正を行う(S11、S23)。制御部30は、S23で補正された第二画像の全体に亘って幅方向Wに一定周期の読取異常値を検出することで補正値を設定後にレンズアレイ75とセンサ76との位置関係がずれた場合を位置ずれ発生として検出する(S30)。印刷装置1のS30の処理は、補正値を用いてシェーディング補正が実行される印刷装置1において、読取部45の構成を変えること無く、補正値設定後にレンズアレイ75とセンサ76との位置関係がずれている場合を検出することに貢献する。印刷装置1は、従来のようにレンズアレイ75を加工する手間と加工に伴うコストアップを抑制できる。 The printing apparatus 1 of the embodiment described above includes the conveyance sections 7, 10, 15, 19, 48, the print head 6, the reference plate 77, the reading section 45, and the control section 30. The transport units 7, 10, 15, 19, and 48 transport the elongated medium M in the transport direction F. The print head 6 is provided upstream of the transport units 19 and 48 in the transport direction F. The reference plate 77 is provided downstream of the print head 6 in the transport direction F, and is long in the width direction W orthogonal to the transport direction F. The reading unit 45 is provided downstream of the print head 6 in the transport direction F. The reading section 45 includes a lens array 75 and a sensor 76. The lens array 75 is arranged at a predetermined relative position with respect to the reference plate 77, and is arranged within a predetermined region R1 in the width direction W. Sensor 76 detects the light that has passed through lens array 75. The control unit 30 controls each of the transport units 7, 10, 15, 19, and 48, the print head 6, and the reading unit 45. The control unit 30 controls the print head 6 and the transport units 7, 10, 15, 19, and 48, and prints an image on the medium M (S4, S7). The control unit 30 causes the reading unit 45 to read an image printed on the medium M whose length in the width direction W is shorter than the lens array 75 while the conveyance units 7, 10, 15, 19, and 48 are conveying the medium M. A first image is obtained (S10). While the transport units 7, 10, 15, 19, and 48 are transporting the medium M, the control unit 30 removes the region where the medium M is transported from the predetermined region R1 of the lens array 75 in the width direction W. A second image is obtained by reading the reference plate 77 corresponding to the surplus areas R2 and R3 with the reading unit 45 (S22). The control unit 30 uses the correction value set based on the reference image read from the reference plate 77 for each of the first image acquired in the process of S10 and the second image acquired in the process of S22. Shading correction is performed (S11, S23). The control unit 30 detects reading abnormal values at a constant period in the width direction W over the entire second image corrected in S23, thereby detecting a deviation in the positional relationship between the lens array 75 and the sensor 76 after setting the correction value. If this happens, it is detected as the occurrence of positional deviation (S30). The processing in S30 of the printing apparatus 1 is such that the positional relationship between the lens array 75 and the sensor 76 is adjusted after setting the correction value without changing the configuration of the reading unit 45 in the printing apparatus 1 where shading correction is executed using the correction value. This contributes to detecting deviations. The printing apparatus 1 can suppress the effort required to process the lens array 75 and the cost increase associated with the process, which is conventional.

印刷装置1の制御部30は、S7で搬送方向Fに並ぶ複数の印刷領域の各々に対して連続して実行する。S10の処理は、複数の印刷領域の各々に対して実行される。S22の処理は、複数の印刷領域のうちの、注目する印刷領域についてのS10の処理が実行された後、注目する印刷領域の印刷順序が次の印刷領域についてのS10を実行する前に実行される。印刷装置1のS30の処理は、S10の処理と並列してS22の処理が実行される場合に比べ、制御部30に加わる処理の負荷を軽減することに貢献する。 The control unit 30 of the printing device 1 successively executes the process for each of the plurality of print areas lined up in the transport direction F in S7. The process in S10 is executed for each of the plurality of print areas. The process of S22 is executed after the process of S10 is executed for the print area of interest among the plurality of print areas, and before the process of S10 is executed for the next print area of the print area of interest. Ru. The processing in S30 of the printing apparatus 1 contributes to reducing the processing load on the control unit 30, compared to the case where the processing in S22 is executed in parallel with the processing in S10.

印刷装置1では、余り領域R2、R3は、レンズアレイ75の所定領域R1のうち、幅方向Wの一方側と、他方側との各々について設定される。制御部30は、S27、S28で、S23の処理で補正された第二画像において、幅方向Wの一方側の余り領域R2と、幅方向Wの他方側の余り領域R3との各々について、幅方向Wに一定周期の読取異常値を検出することで位置ずれ発生を検出する(S30)。上記実施形態の読取異常値は、隣接差分D3の絶対値が閾値未満の場合である。位置ずれ発生時には、レンズアレイ75の所定領域R1の全域に亘って、幅方向Wに一定周期の読取異常値が検出される。レンズアレイ75の所定領域R1の一方側のみ又はレンズアレイ75の所定領域R1の他方側のみに読取異常値が検出される場合は、レンズアレイ75とセンサ76との位置関係がずれた場合ではない可能性が高い。印刷装置1のS30の処理は、レンズアレイ75の所定領域R1の一方側及び他方側の何れかのみに余り領域R2、R3が設定される場合に比べ、位置ずれ発生を好適に検出できる。 In the printing apparatus 1, the remaining regions R2 and R3 are set for one side and the other side in the width direction W of the predetermined region R1 of the lens array 75, respectively. In S27 and S28, the control unit 30 adjusts the width of each of the surplus region R2 on one side in the width direction W and the surplus region R3 on the other side in the width direction W in the second image corrected in the process of S23. Occurrence of positional deviation is detected by detecting read abnormal values at a constant period in direction W (S30). The reading abnormal value in the above embodiment is a case where the absolute value of the adjacent difference D3 is less than the threshold value. When a positional shift occurs, reading abnormal values are detected at a constant period in the width direction W over the entire predetermined region R1 of the lens array 75. If an abnormal reading value is detected only on one side of the predetermined region R1 of the lens array 75 or only on the other side of the predetermined region R1 of the lens array 75, this does not mean that the positional relationship between the lens array 75 and the sensor 76 has shifted. Probability is high. The processing in S30 of the printing apparatus 1 can detect the occurrence of positional deviation more favorably than when surplus regions R2 and R3 are set only on one side and the other side of the predetermined region R1 of the lens array 75.

印刷装置1では、制御部30は、第二画像を構成する複数の画素の各々の入力階調値D1について、入力階調値D1を出力階調値D2に変換するガンマ補正テーブル94を用いてガンマ補正する(S24)。制御部30は、ガンマ補正テーブル94に基づき、基準板77が正常に読み取られた場合の階調値を含む第一範囲V1の入力階調値D1を、第一範囲V1の入力階調値D1の変化を強調した出力階調値D2である強調階調値に変換する。制御部30は、ガンマ補正テーブル94に基づき、第一範囲V1に連続する第二範囲V2の入力階調値D1を、入力階調値D1によらず、強調階調値とは異なる出力階調値D2である固定値に変換する。制御部30は、複数の画素の各々の出力階調値D2の隣接差分D3を算出する(S25)。制御部30は、S27、S28の処理は、幅方向Wにおいて、第二画像の全体に亘って幅方向Wに一定周期で隣接差分D3のピークを検出した場合を位置ずれ発生として検出する(S30)。補正値設定後に、位置ずれ発生時の入力階調値D1と、基準板77が正常に読み取られた場合の入力階調値D1との差は、一般的に所定範囲に収まる。印刷装置1は、所定範囲に応じた第一範囲V1が設定されることで、第一範囲V1内の入力階調値D1の変化を敏感に検出できる。一方、第二範囲V2は、レンズアレイ75とセンサ76との位置関係がずれた場合の検出に不要な範囲であるので、印刷装置1は、隣接差分D3のピークを検出することにより、第二範囲V2の入力階調値D1が、異常値として誤検出されることを回避できる。故に印刷装置1は、比較的簡単な処理で、位置ずれ発生を精度よく検出できる。 In the printing apparatus 1, the control unit 30 uses the gamma correction table 94 to convert the input gradation value D1 into an output gradation value D2 for each input gradation value D1 of a plurality of pixels constituting the second image. Gamma correction is performed (S24). Based on the gamma correction table 94, the control unit 30 converts the input gradation value D1 of the first range V1 including the gradation value when the reference plate 77 is normally read into the input gradation value D1 of the first range V1. is converted into an emphasized gradation value, which is an output gradation value D2 that emphasizes the change in . Based on the gamma correction table 94, the control unit 30 sets the input gradation value D1 of the second range V2 following the first range V1 to an output gradation value different from the emphasis gradation value, regardless of the input gradation value D1. Convert to a fixed value which is the value D2. The control unit 30 calculates the adjacent difference D3 between the output gradation values D2 of each of the plurality of pixels (S25). In the processing of S27 and S28, the control unit 30 detects the case where a peak of the adjacent difference D3 is detected at a constant period in the width direction W over the entire second image as a positional deviation occurrence (S30 ). After setting the correction value, the difference between the input gradation value D1 when the positional deviation occurs and the input gradation value D1 when the reference plate 77 is normally read generally falls within a predetermined range. By setting the first range V1 according to a predetermined range, the printing apparatus 1 can sensitively detect a change in the input gradation value D1 within the first range V1. On the other hand, since the second range V2 is an unnecessary range for detecting a shift in the positional relationship between the lens array 75 and the sensor 76, the printing apparatus 1 detects the peak of the adjacent difference D3 to It is possible to avoid erroneously detecting the input gradation value D1 in the range V2 as an abnormal value. Therefore, the printing apparatus 1 can accurately detect the occurrence of positional deviation with relatively simple processing.

印刷装置1は、表示部3を備える。制御部30は、S30の処理で位置ずれ発生が検出された場合、S7の実行を停止し、表示部3にエラーを報知させる(S16、S18)。印刷装置1のS16の処理は、位置ずれ発生状態でS7の処理が継続されることを防ぐことに貢献する。印刷装置1は、印刷装置1のユーザに、レンズアレイ75とセンサ76との位置関係を戻す、又は補正値を再設定する等の対応を促すことができる。 The printing device 1 includes a display section 3 . When the occurrence of positional deviation is detected in the process of S30, the control unit 30 stops the execution of S7 and causes the display unit 3 to notify an error (S16, S18). The processing in S16 of the printing apparatus 1 contributes to preventing the processing in S7 from being continued in a state where positional deviation has occurred. The printing apparatus 1 can prompt the user of the printing apparatus 1 to take measures such as restoring the positional relationship between the lens array 75 and the sensor 76 or resetting the correction value.

印刷装置1では、制御部30は、シェーディング補正後の第一画像を第一ガンマ補正テーブル93を用いてガンマ補正し、シェーディング補正後の第二画像を第一ガンマ補正テーブル93とは異なる第二ガンマ補正テーブル94を用いてガンマ補正処理を実行する(S12、S24)。制御部30は、S23及びS24の処理で補正された第二画像の全体に亘って幅方向Wに一定周期の読取異常値を検出することで位置ずれ発生を検出する。 In the printing apparatus 1, the control unit 30 performs gamma correction on the first image after shading correction using the first gamma correction table 93, and performs gamma correction on the second image after shading correction using a second gamma correction table 93 different from the first gamma correction table 93. Gamma correction processing is executed using the gamma correction table 94 (S12, S24). The control unit 30 detects the occurrence of positional deviation by detecting reading abnormal values at a constant period in the width direction W over the entire second image corrected in the processes of S23 and S24.

印刷装置1では、S7の処理実行前に読取部45で所定領域R1に対応する基準板77を読み取った基準画像に基づき補正値を設定する(S2)。制御部30は、基準画像に基づき補正値を設定することで、幅方向Wにおいて、印刷領域を含む所定領域R1全体を補正可能な補正値を設定できる。 In the printing apparatus 1, a correction value is set based on the reference image obtained by reading the reference plate 77 corresponding to the predetermined region R1 using the reading unit 45 before executing the process in S7 (S2). By setting the correction value based on the reference image, the control unit 30 can set a correction value that can correct the entire predetermined region R1 including the print area in the width direction W.

変形例の印刷装置1では、制御部30は、第二画像を構成する複数の画素の各々の入力階調値D1について、入力階調値D1を出力階調値D4に変換するガンマ補正テーブル95を用いてガンマ補正を行う。ガンマ補正テーブル95は、基準板77が正常に読み取られた場合の階調値を含む第一範囲V11の入力階調値D1を第一出力値に変換し、第一範囲V11に連続する第二範囲V12の入力階調値D1を、第一出力値とは互いに異なる第二出力値に変換し、第二範囲V12に連続し、第一範囲V11とは連続しない第三範囲V13の入力階調値D1を、第一出力値及び第二出力値とは互いに異なる第三出力値に変換するテーブルである。制御部30は、S27、S28で、幅方向Wにおいて、第二画像の全体に亘って幅方向Wに一定周期で第二出力値を検出した場合を位置ずれ発生として検出する(S30)。補正値設定後に、位置ずれ発生時の入力階調値D1と、基準板77が正常に読み取られた場合の入力階調値D1との差は、一般的に所定範囲に収まる。変形例の印刷装置1は、位置ずれ発生時の入力階調値D1の範囲を第二範囲V12として設定し、第二画像の全体に亘って幅方向Wに一定周期で第二出力値を検出した場合を位置ずれ発生として検出する。故に変形例の印刷装置1は、比較的簡単な処理で、位置ずれ発生を精度よく検出できる。 In the printing apparatus 1 of the modified example, the control unit 30 creates a gamma correction table 95 that converts the input gradation value D1 into an output gradation value D4 for each input gradation value D1 of a plurality of pixels forming the second image. Perform gamma correction using . The gamma correction table 95 converts the input gradation value D1 of the first range V11, which includes the gradation value when the reference plate 77 is normally read, into a first output value, and The input gradation value D1 in the range V12 is converted into a second output value different from the first output value, and the input gradation value in the third range V13 is continuous with the second range V12 and not continuous with the first range V11. This is a table for converting the value D1 into a third output value that is different from the first output value and the second output value. In S27 and S28, the control unit 30 detects a case where the second output value is detected at a constant period in the width direction W over the entire second image as a positional deviation occurrence (S30). After setting the correction value, the difference between the input gradation value D1 when the positional deviation occurs and the input gradation value D1 when the reference plate 77 is normally read generally falls within a predetermined range. The printing device 1 of the modified example sets the range of input gradation values D1 when positional deviation occurs as a second range V12, and detects the second output value at a constant cycle in the width direction W over the entire second image. If this occurs, it is detected as a positional deviation occurring. Therefore, the printing apparatus 1 of the modified example can accurately detect the occurrence of positional deviation with relatively simple processing.

本発明の印刷装置は、上記した実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更が加えられてもよい。例えば、以下の変形が適宜加えられてもよい。本発明は印刷装置の他、印刷方法、印刷プログラム、及び印刷プログラムを記録したコンピュータ可読媒体等の他の態様で実現されてもよい。 The printing apparatus of the present invention is not limited to the embodiments described above, and various changes may be made without departing from the gist of the present invention. For example, the following modifications may be added as appropriate. In addition to a printing device, the present invention may be implemented in other forms such as a printing method, a printing program, and a computer-readable medium on which the printing program is recorded.

媒体Mの構成は適宜変更されてよく、例えば、用紙に刻まれたミシン目に沿って折りたたまれているファンフォールド紙でもよい。ロールRは、紙管Kを有さず、供給部5に装着可能にロール状に巻回されてもよい。印刷ヘッド6の構成は適宜変更されてよく、インクの種類及び数は適宜変更されてよい。印刷ヘッド6は、電子写真式又は感熱式のサーマルヘッドでもよい。定着ユニット40は、印刷装置1の印刷方式に応じて、省略されてもよいし、構成が変更されてもよい。印刷装置1は、媒体Mを切断するよう構成された切断部を備えてもよい。切断部は、ユーザのマニュアル操作で媒体Mを切断してもよいし、自動で媒体Mを切断してもよい。搬送部10、15、搬送部7、搬送部48の少なくとも何れかは、必要に応じて省略されてもよいし、構成が変更されてもよい。読取部45は、例えば、CCD(Charge Coupled Devices)等の他の装置であってもよい。印刷装置1は、巻取装置60と接続不能でもよい。 The configuration of the medium M may be changed as appropriate; for example, it may be fanfold paper that is folded along perforations cut into the paper. The roll R may not have the paper tube K and may be wound into a roll so that it can be attached to the supply section 5. The configuration of the print head 6 may be changed as appropriate, and the type and number of inks may be changed as appropriate. The print head 6 may be an electrophotographic or thermosensitive thermal head. The fixing unit 40 may be omitted or the configuration may be changed depending on the printing method of the printing apparatus 1. The printing device 1 may include a cutting section configured to cut the medium M. The cutting unit may cut the medium M by a user's manual operation, or may cut the medium M automatically. At least one of the transport units 10 and 15, the transport unit 7, and the transport unit 48 may be omitted or the configuration may be changed as necessary. The reading unit 45 may be, for example, another device such as a CCD (Charge Coupled Devices). The printing device 1 may not be connectable to the winding device 60.

図6のメイン処理を実行させるための指令を含むプログラムは、制御部30がプログラムを実行するまでに、印刷装置1の記憶装置に記憶されればよい。従って、プログラムの取得方法、取得経路及びプログラムを記憶する機器の各々は、適宜変更してもよい。制御部30が実行するプログラムは、ケーブル又は無線通信を介して、他の装置から受信し、フラッシュメモリ等の記憶装置に記憶されてもよい。他の装置は、例えば、PC、及びネットワーク網を介して接続されるサーバを含む。 The program including the instructions for executing the main process shown in FIG. 6 may be stored in the storage device of the printing device 1 before the control unit 30 executes the program. Therefore, the program acquisition method, acquisition route, and device that stores the program may 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 may be stored in a storage device such as a flash memory. Other devices include, for example, a PC and a server connected via a network.

印刷装置1のメイン処理の各ステップは、制御部30によって実行される例に限定されず、一部又は全部が他の電子機器(例えば、ASIC)によって実行されてもよい。メイン処理の各ステップは、複数の電子機器、例えば、複数のCPUによって分散処理されてもよい。メイン処理の各ステップは、必要に応じて順序の変更、ステップの省略、及び追加が可能である。印刷装置1上で稼動しているオペレーティングシステム(OS)等が、制御部30からの指令に基づきメイン処理の一部又は全部を行う態様も、本発明の範囲に含まれる。例えば、メイン処理に以下の変更が適宜加えられてもよい。 Each step of the main processing of the printing apparatus 1 is not limited to the example executed by the control unit 30, but may be partially or entirely executed by another electronic device (for example, ASIC). Each step of the main processing may be distributed and processed by multiple electronic devices, for example, multiple CPUs. The order of each step of the main processing can be changed, steps can be omitted, and additions can be made as necessary. A mode in which an operating system (OS) or the like running on the printing device 1 performs part or all of the main processing based on commands from the control unit 30 is also included within the scope of the present invention. For example, the following changes may be made to the main process as appropriate.

制御部30は、S24を省略し第二画像に対してガンマ補正を行わずに、検出処理を実行してもよい。この場合、制御部30は、例えば、入力階調値が読取異常値と判断される場合を抽出し、当該抽出された読取異常値が一定周期で検出されたかどうかに基づき、位置ずれ発生を検出してもよい。制御部30は、S12、S21、S32の処理を省略し、制御部30は、第一画像についてガンマ補正を行わなくてもよい。制御部30はS10の第一処理とS22の第二処理とを交互に行わなくてもよい。例えば、制御部30は、S10の処理を所定回数行った後、第二処理を実行してもよい。制御部30は、S10の第一処理とS22の第二処理とを同時に行ってもよい。所定領域R1のうち、幅方向Wの一方側の端部のみに、余り領域が設定されてもよい。所定領域R1のうち、幅方向Wの両端部に余り領域R2、R3が設定される場合に、S22で余り領域R2、R3の一方のみを読み取った第二画像を用いて、位置ずれ発生を検出してもよいし、余り領域R2を検査対象にする場合と、余り領域R3を検査対象にする場合とを所定の周期で切り替えてもよい。ガンマ補正テーブル94、95における入力階調値の第一範囲、第二範囲、及び第三範囲、出力階調値は、適宜変更されてよい。制御部30は、表示部3に替えてスピーカを備え、位置ずれ発生を音声で報知してもよい。制御部30は、S16の処理を省略してもよい。 The control unit 30 may omit S24 and perform the detection process without performing gamma correction on the second image. In this case, the control unit 30, for example, extracts the case where the input gradation value is determined to be an abnormal reading value, and detects the occurrence of positional deviation based on whether the extracted abnormal reading value is detected at a certain period. You may. The control unit 30 may omit the processes of S12, S21, and S32, and the control unit 30 may not perform gamma correction on the first image. The control unit 30 does not have to alternately perform the first process in S10 and the second process in S22. For example, the control unit 30 may perform the second process after performing the process of S10 a predetermined number of times. The control unit 30 may perform the first process in S10 and the second process in S22 at the same time. A surplus area may be set only at one end in the width direction W of the predetermined area R1. When surplus regions R2 and R3 are set at both ends in the width direction W of the predetermined region R1, occurrence of positional deviation is detected using a second image obtained by reading only one of the surplus regions R2 and R3 in S22. Alternatively, the case where the remaining region R2 is to be inspected and the case where the remaining region R3 is to be to be inspected may be switched at a predetermined cycle. The first range, second range, and third range of input gradation values and output gradation values in the gamma correction tables 94 and 95 may be changed as appropriate. The control unit 30 may include a speaker instead of the display unit 3 and notify the occurrence of positional deviation by voice. The control unit 30 may omit the process of S16.

1:印刷装置、3:表示部、7、10、15、19、48:搬送部、30:制御部、45:読取部、75:レンズアレイ、76:センサ、77:基準板、93:第一ガンマ補正テーブル、94:第二ガンマ補正テーブル 1: Printing device, 3: Display unit, 7, 10, 15, 19, 48: Conveyance unit, 30: Control unit, 45: Reading unit, 75: Lens array, 76: Sensor, 77: Reference plate, 93: No. 1st gamma correction table, 94: 2nd gamma correction table

Claims (8)

長尺状の媒体を、搬送方向に搬送する搬送部と、
前記搬送方向において、前記搬送部の上流に設けられる印刷ヘッドと、
前記搬送方向において、前記印刷ヘッドの下流に設けられ、前記搬送方向に直交する幅方向に長い基準板と、
前記搬送方向において、前記印刷ヘッドの下流に設けられる読取部であって、
前記基準板に対して所定の相対位置に配置され、前記幅方向の所定領域内で配列されたレンズアレイと、
前記レンズアレイを通過した光を検出するセンサと
を備える読取部と、
前記搬送部と、前記印刷ヘッドと、前記読取部との各々を制御する制御部とを備え、
前記制御部は、
前記印刷ヘッドと前記搬送部とを制御し、前記媒体に画像を印刷する印刷制御処理と、
前記搬送部が前記媒体を搬送中に、前記幅方向の長さが前記レンズアレイよりも短い前記媒体に印刷された前記画像を前記読取部で読み取った第一画像を取得する第一処理と、
前記搬送部が前記媒体を搬送中に、前記幅方向において、前記レンズアレイの前記所定領域のうちの、前記媒体が搬送される領域を除いた余り領域に対応する前記基準板を、前記読取部で読み取った第二画像を取得する第二処理と、
前記第一処理で取得された前記第一画像と、前記第二処理で取得された前記第二画像との各々について、前記基準板を読み取った基準画像に基づき設定された補正値を用いたシェーディング補正を行う補正処理と、
前記補正処理で補正された前記第二画像の全体に亘って前記幅方向に一定周期の読取異常値を検出することで前記補正値を設定後に前記レンズアレイと前記センサとの位置関係がずれた場合を位置ずれ発生として検出する検出処理
とを実行することを特徴とする印刷装置。
a conveyance unit that conveys the elongated medium in the conveyance direction;
a print head provided upstream of the transport section in the transport direction;
a reference plate provided downstream of the print head in the transport direction and long in a width direction perpendicular to the transport direction;
A reading section provided downstream of the print head in the transport direction,
a lens array arranged at a predetermined relative position with respect to the reference plate and arranged within a predetermined region in the width direction;
a reading unit comprising: a sensor that detects light passing through the lens array;
comprising a control unit that controls each of the transport unit, the print head, and the reading unit,
The control unit includes:
a print control process that controls the print head and the transport unit and prints an image on the medium;
a first process of acquiring a first image by reading, with the reading unit, the image printed on the medium whose length in the width direction is shorter than the lens array while the transport unit is transporting the medium;
While the conveyance unit is conveying the medium, the reading unit moves the reference plate corresponding to the remaining area of the predetermined area of the lens array excluding the area where the medium is conveyed in the width direction. a second process of acquiring a second image read by;
Shading using a correction value set based on a reference image read from the reference plate for each of the first image obtained in the first processing and the second image obtained in the second processing. A correction process that performs correction;
The positional relationship between the lens array and the sensor is shifted after the correction value is set by detecting reading abnormal values at a constant period in the width direction over the entire second image corrected by the correction process. A printing device characterized in that it performs a detection process of detecting a positional deviation as an occurrence of a positional deviation.
前記印刷制御処理は、前記媒体に設定された、前記搬送方向に並ぶ複数の印刷領域の各々に対して連続して実行され、
前記第一処理は、前記複数の印刷領域の各々に対して実行され、
前記第二処理は、前記複数の印刷領域のうちの、注目する印刷領域についての前記第一処理が実行された後、前記注目する印刷領域の印刷順序が次の印刷領域についての前記第一処理を実行する前に実行されることを特徴とする請求項1に記載の印刷装置。
The print control process is continuously executed for each of a plurality of print areas set on the medium and lined up in the transport direction,
The first process is performed on each of the plurality of print areas,
The second process is, after the first process for the print area of interest among the plurality of print areas is executed, the first process for a print area whose printing order is the next in the printing order of the print area of interest. 2. The printing apparatus according to claim 1, wherein the printing apparatus is executed before executing.
前記余り領域は、前記レンズアレイの前記所定領域のうち、前記幅方向の一方側と、他方側との各々について設定され、
前記制御部は、前記検出処理で、前記補正処理で補正された前記第二画像において、前記幅方向の前記一方側の前記余り領域と、前記幅方向の前記他方側の前記余り領域との各々について、前記幅方向に前記一定周期の前記読取異常値を検出することで前記位置ずれ発生を検出することを特徴とする請求項1に記載の印刷装置。
The surplus area is set for each of the one side and the other side in the width direction of the predetermined area of the lens array,
In the detection process, the control unit determines each of the surplus area on the one side in the width direction and the surplus area on the other side in the width direction in the second image corrected in the correction process. 2. The printing apparatus according to claim 1, wherein the occurrence of the positional deviation is detected by detecting the reading abnormal value at the constant period in the width direction.
前記制御部は、
前記第二画像を構成する複数の画素の各々の入力階調値について、前記入力階調値を出力階調値に変換するガンマ補正テーブルであって、
前記基準板が正常に読み取られた場合の階調値を含む第一範囲の入力階調値を第一出力値に変換し、
前記第一範囲に連続する第二範囲の入力階調値を、前記第一出力値とは互いに異なる第二出力値に変換し、
前記第二範囲に連続し、前記第一範囲とは連続しない第三範囲の入力階調値を、前記第一出力値及び前記第二出力値とは互いに異なる第三出力値に変換する
前記ガンマ補正テーブルを用いてガンマ補正するガンマ補正処理を実行し、
前記検出処理で、前記幅方向において、前記第二画像の前記全体に亘って前記幅方向に前記一定周期で前記第二出力値を検出した場合を前記位置ずれ発生として検出することを特徴とする請求項1から3の何れかに記載の印刷装置。
The control unit includes:
A gamma correction table for converting the input gradation value into an output gradation value for each input gradation value of a plurality of pixels constituting the second image,
Converting a first range of input gradation values including gradation values when the reference plate is normally read into a first output value;
Converting input gradation values in a second range that is continuous to the first range into second output values that are different from the first output value,
converting input gradation values in a third range that is continuous with the second range but not continuous with the first range into a third output value that is different from the first output value and the second output value; Execute gamma correction processing to correct gamma using a correction table,
In the detection process, a case where the second output value is detected at the constant period in the width direction over the entire second image in the width direction is detected as the occurrence of the positional deviation. A printing device according to any one of claims 1 to 3.
前記制御部は、
前記第二画像を構成する複数の画素の各々の入力階調値について、前記入力階調値を出力階調値に変換するガンマ補正テーブルであって、
前記基準板が正常に読み取られた場合の階調値を含む第一範囲の入力階調値を、前記第一範囲の前記入力階調値の変化を強調した出力階調値である強調階調値に変換し、
前記第一範囲に連続する第二範囲の入力階調値を、前記入力階調値によらず、前記強調階調値とは異なる出力階調値である固定値に変換する
前記ガンマ補正テーブルを用いてガンマ補正するガンマ補正処理と、
前記複数の画素の各々の前記出力階調値の隣接差分を算出する差分算出処理と、
を更に実行し、
前記検出処理は、前記幅方向において、前記第二画像の前記全体に亘って前記幅方向に前記一定周期で前記隣接差分のピークを検出した場合を前記位置ずれ発生として検出することを特徴とする請求項1から3の何れかに記載の印刷装置。
The control unit includes:
A gamma correction table for converting the input gradation value into an output gradation value for each input gradation value of a plurality of pixels constituting the second image,
An emphasized gradation value that is an output gradation value that emphasizes a change in the input gradation value of the first range by converting the input gradation value of the first range including the gradation value when the reference plate is read normally. Convert to value,
The gamma correction table is configured to convert an input gradation value in a second range that is continuous to the first range into a fixed value that is an output gradation value different from the emphasized gradation value, regardless of the input gradation value. Gamma correction processing that performs gamma correction using
a difference calculation process of calculating an adjacent difference between the output gradation values of each of the plurality of pixels;
further execute,
The detection process is characterized in that a case where a peak of the adjacent difference is detected at the constant period in the width direction over the entirety of the second image is detected as the occurrence of the positional deviation. A printing device according to any one of claims 1 to 3.
報知部を更に備え、
前記制御部は、
前記検出処理で前記位置ずれ発生が検出された場合、前記印刷制御処理を停止し、前記報知部にエラーを報知させる報知制御処理
を更に実行することを特徴とする請求項1から3の何れかに記載の印刷装置。
Additionally equipped with a notification department,
The control unit includes:
4. If the occurrence of the positional shift is detected in the detection process, the print control process is stopped and a notification control process for causing the notification unit to notify an error is further executed. The printing device described in .
前記制御部は、前記シェーディング補正後の前記第一画像を第一ガンマ補正テーブルを用いてガンマ補正し、前記シェーディング補正後の前記第二画像を前記第一ガンマ補正テーブルとは異なる第二ガンマ補正テーブルを用いてガンマ補正処理を実行し、
前記検出処理は、前記補正処理及び前記ガンマ補正処理で補正された前記第二画像の前記全体に亘って前記幅方向に前記一定周期の前記読取異常値を検出することで前記位置ずれ発生を検出することを特徴とする請求項1から3の何れかに記載の印刷装置。
The control unit performs gamma correction on the first image after the shading correction using a first gamma correction table, and performs gamma correction on the second image after the shading correction using a second gamma correction table different from the first gamma correction table. Execute gamma correction processing using the table,
The detection processing detects the occurrence of the positional deviation by detecting the reading abnormal value at the constant period in the width direction over the entire second image corrected by the correction processing and the gamma correction processing. 4. The printing apparatus according to claim 1, wherein the printing apparatus comprises: a printing apparatus according to claim 1;
前記印刷制御処理実行前に前記読取部で前記所定領域に対応する前記基準板を読み取った前記基準画像に基づき前記補正値を設定する補正値設定処理を実行することを特徴とする請求項1から3の何れかに記載の印刷装置。 2. A correction value setting process for setting the correction value based on the reference image obtained by reading the reference plate corresponding to the predetermined area using the reading unit before executing the print control process. 3. The printing device according to any one of 3.
JP2022116650A 2022-07-21 2022-07-21 Printer Pending JP2024014078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022116650A JP2024014078A (en) 2022-07-21 2022-07-21 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022116650A JP2024014078A (en) 2022-07-21 2022-07-21 Printer

Publications (1)

Publication Number Publication Date
JP2024014078A true JP2024014078A (en) 2024-02-01

Family

ID=89719106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022116650A Pending JP2024014078A (en) 2022-07-21 2022-07-21 Printer

Country Status (1)

Country Link
JP (1) JP2024014078A (en)

Similar Documents

Publication Publication Date Title
JP5213893B2 (en) Print control method and printing apparatus
US7561313B2 (en) Image scanner and image scanning method
JP5538924B2 (en) Printing apparatus and sheet processing apparatus control method
US11489986B2 (en) Multifunction peripheral, control method thereof, and storage medium storing program
JP2013086443A (en) Printing apparatus and inspection method
JP5959977B2 (en) Printing method and printing sheet used therefor
JP5474173B2 (en) Print control method and printing apparatus
JP2024014078A (en) Printer
JP5054138B2 (en) Print control method and printing apparatus
JP7600821B2 (en) Printing device, print quality determination method, and print quality determination program
JP2005196082A (en) Image recording apparatus
US12291047B2 (en) Inspection apparatus and printing apparatus
US10897543B2 (en) Image forming apparatus and method of controlling image forming apparatus
US11775232B2 (en) Printer and printing system for reprinting low quality image and marking discard images
JP2023176170A (en) Printer
JP3769061B2 (en) Sub-scanning transport device
JP4661662B2 (en) Colorimetry method and shading correction method
JP2011177951A (en) Print control method and print apparatus
JP2745258B2 (en) Microfilm and microfilm camera
JP6004813B2 (en) Control method of printing apparatus, continuous sheet and printing apparatus
JP2021160254A (en) Printer
JP2007264255A (en) Shading correction method, shading correction program, and photo processing apparatus
JP2006237667A (en) Copying manuscript, copying machine and copying method
JP2006016156A (en) Sheet conveying device
JPH06156806A (en) Image forming device