JP2021072468A - Program, generation device, generation method - Google Patents

Program, generation device, generation method Download PDF

Info

Publication number
JP2021072468A
JP2021072468A JP2019196277A JP2019196277A JP2021072468A JP 2021072468 A JP2021072468 A JP 2021072468A JP 2019196277 A JP2019196277 A JP 2019196277A JP 2019196277 A JP2019196277 A JP 2019196277A JP 2021072468 A JP2021072468 A JP 2021072468A
Authority
JP
Japan
Prior art keywords
data
transport direction
sensor
calibration
test sheet
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
JP2019196277A
Other languages
Japanese (ja)
Inventor
智哉 近藤
Tomoya Kondo
智哉 近藤
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 JP2019196277A priority Critical patent/JP2021072468A/en
Publication of JP2021072468A publication Critical patent/JP2021072468A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

To generate appropriate calibration data for calibrating the position of pixels in a read image.SOLUTION: A sheet indicating a plurality of reference portions whose positions in a specific direction are different from each other is used. Sensor direction reading data which is reading data of the sheet arranged in such a way that a specific direction of the sheet directs toward a sensor direction of a scanner device is acquired. Calibrated reference portion position data is generated by calibrating a plurality of pieces of position information related to the position of each of the n reference portions indicated by the sensor direction reading data in the sensor direction by using sensor direction calibration data. Transport direction reading data which is reading data of the sheet arranged in such a manner that the specific direction of the sheet is directed toward the transport direction of the scanner device is acquired. The transport direction calibration data indicating the calibration amount of the position of the pixel in the transport direction in the image of the reading data is generated using the transport direction reading data and the calibrated reference portion position data.SELECTED DRAWING: Figure 8

Description

本明細書は、スキャナ装置に関する。 This specification relates to a scanner device.

従来から、スキャナを用いて、シートなどの対象物が光学的に読み取られている。また、プリンタの階調特性の較正のために、プリンタによって印刷されるパッチをスキャナによって読み取って得られるデータを用いる技術が、提案されている(例えば、特許文献1)。 Conventionally, an object such as a sheet has been optically read by using a scanner. Further, for calibrating the gradation characteristics of a printer, a technique using data obtained by scanning a patch printed by the printer with a scanner has been proposed (for example, Patent Document 1).

特開2003−250045号公報Japanese Unexamined Patent Publication No. 2003-250045 特開2012−227843号公報Japanese Unexamined Patent Publication No. 2012-227843

ところで、スキャナ装置の特性は、変動し得る。例えば、スキャナ装置としては、複数の読取センサを備えるセンサユニットを搬送させ、センサユニットの搬送中に複数の読取センサによってシートなどの対象物を光学的に読み取る装置が用いられる。このようなスキャナ装置が用いられる場合、センサユニットの搬送方向の位置が、設計の位置からずれ得る。この結果、スキャナ装置によって生成される読取画像上で、対象物の複数の部分のそれぞれの位置が、実際の位置からずれ得る。このような位置ずれを較正するための較正データを生成することは容易ではなかった。例えば、位置のずれを特定するために、位置の基準を示す基準パターンを示す基準シートが用いられ得る。ところが、基準シートの劣化(例えば、基準シートの変形や基準パターンの剥離など)を避けるために、基準シートの厳重な管理が行われていた(例えば、基準シートは専用の保管場所に保管され、保管場所の温度と湿度とが厳重に管理される)。また、基準シートの管理が簡略化される場合、基準シートの劣化に起因して位置の精度が低下する場合があった。 By the way, the characteristics of the scanner device can fluctuate. For example, as a scanner device, a device is used in which a sensor unit including a plurality of reading sensors is conveyed and an object such as a sheet is optically read by a plurality of reading sensors during the transportation of the sensor units. When such a scanner device is used, the position of the sensor unit in the transport direction may deviate from the design position. As a result, the positions of the plurality of parts of the object may deviate from the actual positions on the scanned image generated by the scanner device. It has not been easy to generate calibration data for calibrating such misalignment. For example, in order to identify the displacement of the position, a reference sheet showing a reference pattern showing the reference of the position may be used. However, in order to avoid deterioration of the reference sheet (for example, deformation of the reference sheet, peeling of the reference pattern, etc.), strict control of the reference sheet was performed (for example, the reference sheet was stored in a dedicated storage place. The temperature and humidity of the storage area are strictly controlled). Further, when the management of the reference sheet is simplified, the accuracy of the position may be lowered due to the deterioration of the reference sheet.

本明細書は、スキャナ装置によって生成される読取画像内の位置を較正するための適切な較正データを生成する技術を開示する。 The present specification discloses a technique for generating appropriate calibration data for calibrating a position in a scanned image generated by a scanner device.

本明細書に開示された技術は、以下の適用例として実現することが可能である。 The techniques disclosed herein can be realized as the following application examples.

[適用例1]予め決められた方向であるセンサ方向の位置が互いに異なる複数の読取センサを備えるセンサユニットと、前記センサ方向に交差する搬送方向に前記センサユニットを搬送する搬送装置と、前記搬送装置による前記センサユニットの搬送中に前記複数の読取センサに対象物を光学的に読み取らせることによって前記対象物の画像データである読取データを生成するデータ生成部と、を備えるスキャナ装置によって生成される前記読取データによって示される読取画像内の画素の位置を較正するための較正データを生成するコンピュータのためのプログラムであって、特定方向の位置が互いに異なるn個(nは2以上の整数)の基準部分を示す、印刷された印刷テストシートであって、前記印刷テストシートの前記特定方向が前記スキャナ装置の前記センサ方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データであるセンサ方向読取データを取得する第1取得機能と、前記センサ方向読取データによって示される前記n個の基準部分のそれぞれの前記センサ方向の位置に関連する複数の位置情報を、前記読取画像内の前記センサ方向の画素の位置の較正量を示す予め決められたセンサ方向較正データを用いて較正することによって、複数の較正済位置情報を示す較正済基準部分位置データを生成する較正済基準部分位置データ生成機能と、前記印刷テストシートの前記特定方向が前記スキャナ装置の前記搬送方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データである搬送方向読取データを取得する第2取得機能と、前記搬送方向読取データと前記較正済基準部分位置データとを用いることによって、読取データの画像内の前記搬送方向の画素の位置の較正量を示す搬送方向較正データを生成する較正データ生成機能と、前記搬送方向較正データを記憶装置に格納する格納処理機能と、をコンピュータに実現させるためのプログラム。 [Application Example 1] A sensor unit including a plurality of reading sensors having different positions in a sensor direction, which is a predetermined direction, a transport device for transporting the sensor unit in a transport direction intersecting the sensor direction, and the transport. It is generated by a scanner device including a data generation unit that generates read data which is image data of the object by having the plurality of reading sensors optically read the object while the sensor unit is being conveyed by the device. A program for a computer that generates calibration data for calibrating the positions of pixels in a scanned image indicated by the scanned data, in which n positions in specific directions are different from each other (n is an integer of 2 or more). A printed print test sheet showing a reference portion of the above, wherein the print test sheet is arranged with respect to the scanner device so that the specific direction of the print test sheet faces the sensor direction of the scanner device. The first acquisition function of acquiring the sensor direction reading data which is the reading data of the printing test sheet generated by having the scanner device read, and the n reference portions indicated by the sensor direction reading data. A plurality of position information related to each position in the sensor direction is calibrated using predetermined sensor direction calibration data indicating the amount of calibration of the position of the pixel in the sensor direction in the scanned image. A calibrated reference partial position data generation function that generates calibrated reference partial position data indicating the calibrated position information of the printer, and the scanner device so that the specific direction of the print test sheet faces the transport direction of the scanner device. A second acquisition function for acquiring the transport direction read data, which is the read data of the print test sheet generated by having the scanner device read the print test sheet arranged on the opposite side, and the transport direction read data. A calibration data generation function that generates transport direction calibration data indicating the amount of calibration of the position of the pixel in the transport direction in the image of the read data by using the calibrated reference partial position data, and the transport direction calibration data. A storage processing function that stores data in a storage device, and a program for realizing a computer.

センサユニット上の複数の読取センサのセンサ方向の位置は、安定しており、その変動は小さい。従って、予め決められたセンサ方向較正データを用いることによって、センサ方向読取データによって示される複数の基準部分のそれぞれのセンサ方向の位置に関連する複数の位置情報を、適切に、較正できる。また、読取データの画像内の搬送方向の位置は、搬送装置によって搬送されるセンサユニットの搬送方向の位置に対応付けられている。センサユニットの搬送方向の位置は、搬送の誤差などの種々の原因によって、設計の位置からずれ得る。上記構成によれば、読取データの画像内の画素の搬送方向の位置の較正量を示す搬送方向較正データは、搬送方向読取データと、センサ方向読取データとセンサ方向較正データとを用いて生成された較正済基準部分位置データと、を用いることによって生成されるので、適切な搬送方向較正データを生成できる。 The positions of the plurality of reading sensors on the sensor unit in the sensor direction are stable, and the fluctuation is small. Therefore, by using the predetermined sensor direction calibration data, it is possible to appropriately calibrate a plurality of position information related to the position in each sensor direction of the plurality of reference portions indicated by the sensor direction reading data. Further, the position of the read data in the transport direction in the image is associated with the position of the sensor unit transported by the transport device in the transport direction. The position of the sensor unit in the transport direction may deviate from the design position due to various causes such as a transport error. According to the above configuration, the transport direction calibration data indicating the calibration amount of the position of the pixel in the transport direction in the image of the read data is generated by using the transport direction read data, the sensor direction read data, and the sensor direction calibration data. Since it is generated by using the calibrated reference partial position data, it is possible to generate appropriate transport direction calibration data.

[適用例2]適用例1に記載のプログラムであって、前記第2取得機能は、前記スキャナ装置に対して第1位置に配置された前記印刷テストシートを前記スキャナ装置に読み取らせることによって生成される第1搬送方向読取データを取得する機能と、前記スキャナ装置に対して前記第1位置とは前記搬送方向の位置が異なる第2位置に配置された前記印刷テストシートを前記スキャナ装置に読み取らせることによって生成される第2搬送方向読取データを取得する機能であって、前記第1位置の前記印刷テストシートの前記n個の基準部分のうちのp個(pは2以上、n以下の整数)の基準部分の前記搬送方向の第1分布範囲に、前記第2位置の前記印刷テストシートの前記n個の基準部分のうちのq個(qは2以上、n以下の整数)の基準部分の前記搬送方向の第2分布範囲の一部が重なっている、前記機能と、を含み、前記較正データ生成機能は、前記第1搬送方向読取データと前記第2搬送方向読取データと前記較正済基準部分位置データとを用いることによって、前記搬送方向較正データを生成する、プログラム。 [Application Example 2] The program according to Application Example 1, wherein the second acquisition function is generated by causing the scanner device to read the print test sheet arranged at the first position with respect to the scanner device. The function of acquiring the first transport direction reading data to be performed and the print test sheet arranged at a second position whose position in the transport direction is different from that of the first position with respect to the scanner device are read by the scanner device. It is a function of acquiring the second transport direction reading data generated by the setting, and p of the n reference portions of the print test sheet at the first position (p is 2 or more and n or less). In the first distribution range of the reference portion of (integer) in the transport direction, q references (q is an integer of 2 or more and n or less) out of the n reference portions of the print test sheet at the second position. The calibration data generation function includes the function in which a part of the second distribution range in the transport direction of the portion overlaps, and the calibration data generation function includes the first transport direction read data, the second transport direction read data, and the calibration. A program that generates the transport direction calibration data by using the completed reference partial position data.

この構成によれば、搬送方向較正データは、スキャナ装置に対するシートの搬送方向の位置が互いに異なるように生成された第1搬送方向読取データと第2搬送方向読取データとを用いて生成されるので、搬送方向較正データを適用可能な搬送方向の位置の範囲を拡張できる。 According to this configuration, the transport direction calibration data is generated by using the first transport direction read data and the second transport direction read data generated so that the positions of the sheets in the transport direction with respect to the scanner device are different from each other. , The range of transport direction positions to which transport direction calibration data can be applied can be extended.

[適用例3]適用例2に記載のプログラムであって、前記較正データ生成機能は、前記第1搬送方向読取データと前記較正済基準部分位置データとを用いることによって、前記搬送方向較正データのうち、前記第1分布範囲に適用すべきデータを生成する機能と、前記第2搬送方向読取データと前記較正済基準部分位置データとを用いることによって、前記搬送方向較正データのうち、前記第2分布範囲から前記第1分布範囲を除いた残りの範囲に適用すべきデータを生成する機能と、を含む、プログラム。 [Application Example 3] In the program described in Application Example 2, the calibration data generation function uses the first transport direction reading data and the calibrated reference partial position data to obtain the transport direction calibration data. Among the transport direction calibration data, the second of the transport direction calibration data is obtained by using the function of generating data to be applied to the first distribution range, the second transport direction reading data, and the calibrated reference partial position data. A program comprising the function of generating data to be applied to the remaining range excluding the first distribution range from the distribution range.

この構成によれば、第1搬送方向読取データと第2搬送方向読取データと搬送方向較正データとを用いることによって、適切な搬送方向較正データを生成できる。 According to this configuration, appropriate transport direction calibration data can be generated by using the first transport direction read data, the second transport direction read data, and the transport direction calibration data.

[適用例4]適用例1から3のいずれかに記載のプログラムであって、前記印刷テストシートは、前記n個の基準部分と、特定の処理の対象である対象画像と、が印刷されたシートであり、前記特定の処理は、前記センサ方向読取データによって示される前記対象画像を、前記センサ方向較正データと前記搬送方向較正データとを用いて較正する較正処理と、較正済の対象画像を解析することによって、解析結果を示す結果データを生成する結果データ生成処理と、を含み、前記プログラムは、前記特定の処理を実行する機能を、コンピュータに実現させる、プログラム。 [Application Example 4] In the program according to any one of Application Examples 1 to 3, the print test sheet is printed with the n reference portions and a target image to be processed. The specific process is a sheet, and the specific process includes a calibration process of calibrating the target image indicated by the sensor direction reading data by using the sensor direction calibration data and the transport direction calibration data, and a calibrated target image. A program that includes a result data generation process that generates result data indicating an analysis result by analyzing the program, and the program realizes a function of executing the specific process on a computer.

この構成によれば、シート上の対象画像が、同じシート上の複数の基準部分を用いて較正されるので、対象画像を容易に処理できる。 According to this configuration, the target image on the sheet is calibrated using a plurality of reference portions on the same sheet, so that the target image can be easily processed.

[適用例5]適用例4に記載のプログラムであって、前記較正データ生成機能は、新たな搬送方向較正データを生成するための生成条件が満たされない場合には、新たな搬送方向較正データを生成せずに、前記生成条件が満たされる場合には、新たな搬送方向較正データを生成し、前記較正処理は、前記生成条件が満たされない場合には、前記記憶装置に格納済の前記搬送方向較正データを用いて前記対象画像を較正し、前記生成条件が満たされる場合には、前記較正データ生成機能によって生成された前記新たな搬送方向較正データを用いて前記対象画像を較正する、プログラム。 [Application Example 5] In the program described in Application Example 4, the calibration data generation function generates new transport direction calibration data when the generation conditions for generating new transport direction calibration data are not satisfied. If the generation condition is satisfied without generating, new transport direction calibration data is generated, and if the generation condition is not satisfied, the calibration process generates the transport direction stored in the storage device. A program that calibrates the target image using the calibration data and, if the generation conditions are met, calibrates the target image using the new transport direction calibration data generated by the calibration data generation function.

この構成によれば、生成条件が満たされない場合には、新たな搬送方向較正データの生成が省略され、記憶装置に格納済の搬送方向較正データが用いられるので、処理を簡素化できる。 According to this configuration, when the generation condition is not satisfied, the generation of new transport direction calibration data is omitted, and the transport direction calibration data stored in the storage device is used, so that the process can be simplified.

なお、本明細書に開示の技術は、種々の態様で実現することが可能であり、例えば、スキャナ装置の制御方法および制御装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体(例えば、一時的ではない記録媒体)、等の形態で実現することができる。 The techniques disclosed in the present specification can be realized in various aspects, for example, a control method and a control device of a scanner device, a computer program for realizing the functions of those methods or devices, and the like. It can be realized in the form of a recording medium (for example, a recording medium that is not temporary) on which a computer program is recorded.

実施例のデータ処理装置100と複合機200とを示す説明図である。It is explanatory drawing which shows the data processing apparatus 100 and the multifunction device 200 of an Example. センサ方向較正データ134の生成処理の例を示すフローチャートである。It is a flowchart which shows the example of the generation processing of the sensor direction calibration data 134. (A)−(C)は、基準シートの説明図である。(A)-(C) are explanatory views of the reference sheet. 基準線PsLの位置のずれの例を示すグラフである。It is a graph which shows the example of the position deviation of the reference line PsL. は、対象画像の例を示す説明図である。Is an explanatory diagram showing an example of a target image. テスト画像の処理の例を示すフローチャートである。It is a flowchart which shows the example of processing of a test image. (A)は、テストシートSHtの説明図である。(B)は、センサ方向読取画像の例を示す説明図である。(C)、(D)は、ピッチ距離のセンサずれ較正の説明図である。(A) is an explanatory diagram of the test sheet SHt. (B) is explanatory drawing which shows an example of the sensor direction reading image. (C) and (D) are explanatory views of the sensor deviation calibration of the pitch distance. 搬送方向較正データ135の生成処理の例を示すフローチャートである。It is a flowchart which shows the example of the generation processing of the transport direction calibration data 135. (A)−(D)は、テストシートSHtの読取りの説明図である。(A)-(D) are explanatory views of reading of the test sheet SHt. (A)、(B)は、較正パターンPtの説明図である。(C)は、搬送方向D2の位置とピッチ距離の差との例を示すグラフである。(D)は、較正ラインを示すグラフである。(A) and (B) are explanatory views of the calibration pattern Pt. (C) is a graph showing an example of the difference between the position in the transport direction D2 and the pitch distance. (D) is a graph showing a calibration line. (A)−(D)は、搬送方向D2の位置の較正の説明図である。(A)-(D) are explanatory views of calibration of the position of the transport direction D2.

A.第1実施例:
A1.装置構成:
図1は、実施例のデータ処理装置100と複合機200とを示す説明図である。データ処理装置100は、コンピュータである(例えば、デスクトップコンピュータ、タブレットコンピュータなど)。データ処理装置100は、プロセッサ110と、記憶装置115と、表示部140と、操作部150と、通信インタフェース170と、を有している。これらの要素は、バスを介して互いに接続されている。記憶装置115は、揮発性記憶装置120と、不揮発性記憶装置130と、を含んでいる。
A. First Example:
A1. Device configuration:
FIG. 1 is an explanatory diagram showing the data processing device 100 and the multifunction device 200 of the embodiment. The data processing device 100 is a computer (for example, a desktop computer, a tablet computer, etc.). The data processing device 100 includes a processor 110, a storage device 115, a display unit 140, an operation unit 150, and a communication interface 170. These elements are connected to each other via a bus. The storage device 115 includes a volatile storage device 120 and a non-volatile storage device 130.

プロセッサ110は、データ処理を行う装置であり、例えば、CPUである。揮発性記憶装置120は、例えば、DRAMであり、不揮発性記憶装置130は、例えば、フラッシュメモリである。 The processor 110 is a device that performs data processing, for example, a CPU. The volatile storage device 120 is, for example, a DRAM, and the non-volatile storage device 130 is, for example, a flash memory.

不揮発性記憶装置130は、第1プログラム131と、第2プログラム132と、センサ方向較正データ134と、搬送方向較正データ135と、を格納している。プロセッサ110は、プログラム131、132を実行することによって、後述する種々の機能を実現する。プロセッサ110は、プログラム131、132の実行に利用される種々の中間データを、記憶装置115(例えば、揮発性記憶装置120、不揮発性記憶装置130のいずれか)に、一時的に格納する。較正データ134、135の詳細については、後述する。 The non-volatile storage device 130 stores the first program 131, the second program 132, the sensor direction calibration data 134, and the transport direction calibration data 135. The processor 110 realizes various functions described later by executing the programs 131 and 132. The processor 110 temporarily stores various intermediate data used for executing the programs 131 and 132 in the storage device 115 (for example, either the volatile storage device 120 or the non-volatile storage device 130). Details of the calibration data 134 and 135 will be described later.

表示部140は、液晶ディスプレイ、有機ELディスプレイ、LEDディスプレイなどの、画像を表示する装置である。操作部150は、ボタン、レバー、表示部140上に重ねて配置されたタッチパネルなどの、ユーザによる操作を受け取る装置である。 The display unit 140 is a device for displaying an image, such as a liquid crystal display, an organic EL display, or an LED display. The operation unit 150 is a device that receives an operation by the user, such as a button, a lever, and a touch panel arranged on the display unit 140.

通信インタフェース170は、他の装置と通信するためのインタフェースである(例えば、USBインタフェース、有線LANインタフェース、IEEE802.11の無線インタフェース)。通信インタフェース170には、複合機200が接続されている。 The communication interface 170 is an interface for communicating with other devices (for example, a USB interface, a wired LAN interface, and an IEEE 802.11 wireless interface). A multifunction device 200 is connected to the communication interface 170.

複合機200は、制御部205と、印刷部260と、読取部300と、を有している。制御部205は、プロセッサ210と、記憶装置215と、表示部240と、操作部250と、通信インタフェース270と、を有している。これらの要素は、バスを介して互いに接続されている。記憶装置215は、揮発性記憶装置220と、不揮発性記憶装置230と、を含んでいる。 The multifunction device 200 includes a control unit 205, a printing unit 260, and a reading unit 300. The control unit 205 includes a processor 210, a storage device 215, a display unit 240, an operation unit 250, and a communication interface 270. These elements are connected to each other via a bus. The storage device 215 includes a volatile storage device 220 and a non-volatile storage device 230.

プロセッサ210は、データ処理を行う装置であり、例えば、CPUである。揮発性記憶装置220は、例えば、DRAMであり、不揮発性記憶装置230は、例えば、フラッシュメモリである。 The processor 210 is a device that performs data processing, for example, a CPU. The volatile storage device 220 is, for example, a DRAM, and the non-volatile storage device 230 is, for example, a flash memory.

不揮発性記憶装置230は、プログラム231、232と、較正データ134、135と、を格納している。プロセッサ210は、プログラム231、232を実行することによって、複合機200を制御するための種々の機能を実現する。第1プログラム231は、印刷部260に画像を印刷させる機能と、読取部300に対象物を読み取らせる機能とを、プロセッサ110に実行させる。他のプログラム232については、後述する。プロセッサ210は、プログラム231、232の実行に利用される種々の中間データを、記憶装置215(例えば、揮発性記憶装置220、不揮発性記憶装置230のいずれか)に、一時的に格納する。較正データ134、135は、データ処理装置100の較正データ134、135と同じである(詳細は後述)。本実施例では、プログラム231、232と較正データ134、135とは、複合機200の製造者によって、ファームウェアとして、不揮発性記憶装置230に予め格納されている。 The non-volatile storage device 230 stores programs 231 and 232 and calibration data 134 and 135. The processor 210 realizes various functions for controlling the multifunction device 200 by executing the programs 231 and 232. The first program 231 causes the processor 110 to execute a function of causing the printing unit 260 to print an image and a function of causing the reading unit 300 to read an object. Other programs 232 will be described later. The processor 210 temporarily stores various intermediate data used for executing the programs 231 and 232 in the storage device 215 (for example, either the volatile storage device 220 or the non-volatile storage device 230). The calibration data 134 and 135 are the same as the calibration data 134 and 135 of the data processing device 100 (details will be described later). In this embodiment, the programs 231 and 232 and the calibration data 134 and 135 are stored in advance in the non-volatile storage device 230 as firmware by the manufacturer of the multifunction device 200.

表示部240は、液晶ディスプレイ、有機ELディスプレイ、LEDディスプレイなどの、画像を表示する装置である。操作部250は、ボタン、レバー、表示部140上に重ねて配置されたタッチパネルなどの、ユーザによる操作を受け取る装置である。 The display unit 240 is a device for displaying an image, such as a liquid crystal display, an organic EL display, or an LED display. The operation unit 250 is a device that receives operations by the user, such as a button, a lever, and a touch panel arranged on the display unit 140.

通信インタフェース270は、他の装置と通信するためのインタフェースである。本実施例では、通信インタフェース270は、データ処理装置100の通信インタフェース170に接続されている。 The communication interface 270 is an interface for communicating with another device. In this embodiment, the communication interface 270 is connected to the communication interface 170 of the data processing device 100.

印刷部260は、所定の方式(例えば、レーザ方式や、インクジェット方式)で、用紙(印刷媒体の一例)上に画像を印刷する装置である。本実施例では、印刷部260は、シアンC、マゼンタM、イエロY、ブラックKの4種類のインクを用いてカラー画像を印刷可能なインクジェット方式の印刷装置である。図示を省略するが、印刷部260は、複数のノズルを有する印刷ヘッドを備えている。 The printing unit 260 is a device that prints an image on paper (an example of a printing medium) by a predetermined method (for example, a laser method or an inkjet method). In this embodiment, the printing unit 260 is an inkjet printing device capable of printing a color image using four types of inks, cyan C, magenta M, yellow Y, and black K. Although not shown, the printing unit 260 includes a printing head having a plurality of nozzles.

読取部300は、CCDやCMOSなどの光電変換素子を用いて光学的に原稿等の対象物を読み取る読取装置である。制御部205(具体的には、プロセッサ210)は、読取部300からのデータを用いて、読み取った画像(「読取画像」と呼ぶ)を表す読取データを生成する。読取データは、例えば、カラーの読取画像を表すRGBのビットマップデータである。 The reading unit 300 is a reading device that optically reads an object such as a document using a photoelectric conversion element such as a CCD or CMOS. The control unit 205 (specifically, the processor 210) uses the data from the reading unit 300 to generate reading data representing the read image (referred to as “read image”). The scanned data is, for example, RGB bitmap data representing a color scanned image.

図1の下部には、水平なテーブル(図示せず)に置かれた複合機200の斜視図が示されている。図中の第1方向D1と第2方向D2とは、水平な方向を示し、第3方向D3は、鉛直上方向を示している。第1方向D1と第2方向D2とは、互いに垂直である。また、第3方向D3を、上方向D3とも呼ぶ。以下、方向の符号の前にマイナス記号を付加した符号を、その方向の反対方向を示す符号として用いる。例えば、−D1方向は、第1方向D1の反対の方向である。 At the bottom of FIG. 1, a perspective view of the multifunction device 200 placed on a horizontal table (not shown) is shown. In the figure, the first direction D1 and the second direction D2 indicate a horizontal direction, and the third direction D3 indicates a vertically upward direction. The first direction D1 and the second direction D2 are perpendicular to each other. Further, the third direction D3 is also referred to as an upward direction D3. Hereinafter, a sign in which a minus sign is added before the sign of the direction is used as a sign indicating the opposite direction of the direction. For example, the −D1 direction is the opposite direction of the first direction D1.

複合機200は、筐体290と、筐体290の上方向D3側に開閉可能に取り付けられたカバー292と、を備えている。図1では、カバー292は、上方向D3に向けて開けられている。 The multifunction device 200 includes a housing 290 and a cover 292 attached to the upward D3 side of the housing 290 so as to be openable and closable. In FIG. 1, the cover 292 is opened toward the upward D3.

複合機200の読取部300は、いわゆるフラットベッド式のスキャナである。読取部300は、筐体290の上方向D3側の面に配置された支持台394を備えている。支持台394は、カバー292を上方向D3に向けて開くことによって、現れる。支持台394は、第1方向D1に平行な2辺と第2方向D2に平行な2辺とで囲まれる略矩形状の台であり、透明板(例えば、ガラス板)を用いて構成されている。支持台394の第3方向D3側の面は、読取の対象物(例えば、シート)が支持される支持面Usである。支持台394の周囲は、枠393で囲まれている。枠393は、筐体290の上方向D3側の一部分である。本実施例では、支持面Usは、枠393の上方向D3側の面よりも下方向側(−D3方向側)に配置されている。支持台394の縁は、枠393の内周面3iによって囲まれている。対象物が矩形状のシートである場合、支持面Us上のシートの辺を枠393の内周面3iに接触させることによって、支持面Usに対するシートの傾きを抑制できる。 The reading unit 300 of the multifunction device 200 is a so-called flatbed scanner. The reading unit 300 includes a support base 394 arranged on the surface of the housing 290 on the upward D3 side. The support 394 appears by opening the cover 292 upward D3. The support base 394 is a substantially rectangular base surrounded by two sides parallel to the first direction D1 and two sides parallel to the second direction D2, and is configured by using a transparent plate (for example, a glass plate). There is. The surface of the support base 394 on the third direction D3 side is a support surface Us on which an object to be read (for example, a sheet) is supported. The support base 394 is surrounded by a frame 393. The frame 393 is a part of the housing 290 on the upward D3 side. In this embodiment, the support surface Us is arranged on the lower side (−D3 direction side) of the surface on the upper D3 side of the frame 393. The edge of the support base 394 is surrounded by the inner peripheral surface 3i of the frame 393. When the object is a rectangular sheet, the inclination of the sheet with respect to the support surface Us can be suppressed by bringing the side of the sheet on the support surface Us into contact with the inner peripheral surface 3i of the frame 393.

また、読取部300は、筐体290の内部に配置されたセンサユニット320と搬送装置330とを備えている。センサユニット320は、支持台394の下側(−D3方向側)に配置されている。本実施例では、センサユニット320は、対象物を光学的に読み取る一次元イメージセンサである。センサユニット320は、第1方向D1に並んで配置された複数の読取センサ321を備える棒状の装置である(以下、第1方向D1を、センサ方向D1とも呼ぶ)。読取センサ321は、CCDやCMOSなどの光電変換素子である。複数の読取センサ321の間では、第1方向D1の位置が互いに異なっている。センサユニット320は、支持台394上の対象物を光学的に読み取ることによって、読み取った対象物を示すデータを出力する。 Further, the reading unit 300 includes a sensor unit 320 and a transport device 330 arranged inside the housing 290. The sensor unit 320 is arranged on the lower side (-D3 direction side) of the support base 394. In this embodiment, the sensor unit 320 is a one-dimensional image sensor that optically reads an object. The sensor unit 320 is a rod-shaped device including a plurality of reading sensors 321 arranged side by side in the first direction D1 (hereinafter, the first direction D1 is also referred to as a sensor direction D1). The reading sensor 321 is a photoelectric conversion element such as a CCD or CMOS. The position of the first direction D1 is different from each other among the plurality of reading sensors 321. The sensor unit 320 optically reads the object on the support base 394 to output data indicating the read object.

搬送装置330は、第2方向D2に平行にセンサユニット320を搬送する装置である。読取部300の構成は、種々の構成であってよい。図示を省略するが、本実施例では、搬送装置330は、第2方向D2に平行な方向にスライド可能にセンサユニット320を支持するレールと、複数のプーリと、複数のプーリに巻き掛けられるとともに一部がセンサユニット320に固定されたベルトと、プーリを回転させる電気モータと、を有している。電気モータがプーリを回転させることによって、センサユニット320は、第2方向D2に平行な方向に移動する。対象物を読み取る場合、搬送装置330は、センサユニット320を、第2方向D2へ搬送する(以下、第2方向D2を搬送方向D2とも呼ぶ)。センサユニット320は、搬送中に対象物の読み取りを繰り返す。これにより、センサユニット320は、支持台394の支持面Usのおおよそ全体から、対象物を読み取ることができる。以下、支持面Usを、読取面Usとも呼ぶ。 The transport device 330 is a device that transports the sensor unit 320 in parallel with the second direction D2. The reader 300 may have various configurations. Although not shown, in this embodiment, the transport device 330 is wound around a rail, a plurality of pulleys, and a plurality of pulleys that support the sensor unit 320 so as to be slidable in a direction parallel to the second direction D2. A part of the belt is fixed to the sensor unit 320, and an electric motor for rotating the pulley is provided. As the electric motor rotates the pulley, the sensor unit 320 moves in a direction parallel to the second direction D2. When reading the object, the transport device 330 transports the sensor unit 320 in the second direction D2 (hereinafter, the second direction D2 is also referred to as a transport direction D2). The sensor unit 320 repeats reading the object during transportation. As a result, the sensor unit 320 can read the object from approximately the entire support surface Us of the support base 394. Hereinafter, the support surface Us is also referred to as a reading surface Us.

なお、図示を省略するが、筐体290内には、制御部205と印刷部260も、収容されている。 Although not shown, the control unit 205 and the printing unit 260 are also housed in the housing 290.

A2.センサ方向較正データの生成:
図2は、センサ方向較正データ134の生成処理の例を示すフローチャートである。センサユニット320(図1)の複数の読取センサ321のそれぞれの第1方向D1の位置は、製造誤差により、設計された位置からずれ得る。例えば、設計上、センサユニット320の延びる方向(すなわち、複数の読取センサ321の並ぶ方向)が、予め決められた設計方向(例えば、第1方向D1)に平行であるべき場合に、実際には、センサユニット320の延びる方向が設計方向に対して斜めであり得る。この場合、複数の読取センサ321のそれぞれの第1方向D1の位置が、設計上の位置からずれ得る。センサ方向較正データ134は、複数の読取センサ321のこのような第1方向D1の位置のずれの影響を緩和するように読取画像内の画素の位置を較正するための較正量を示している。センサ方向較正データ134は、複合機200の製造者によって生成される。以下、データ処理装置100(図1)が、センサ方向較正データ134を生成することとして、センサ方向較正データ134の製造方法について説明する。
A2. Generation of sensor orientation calibration data:
FIG. 2 is a flowchart showing an example of the generation process of the sensor direction calibration data 134. The position of each of the plurality of reading sensors 321 of the sensor unit 320 (FIG. 1) in the first direction D1 may deviate from the designed position due to a manufacturing error. For example, in the design, when the extending direction of the sensor unit 320 (that is, the direction in which the plurality of reading sensors 321 are arranged) should be parallel to the predetermined design direction (for example, the first direction D1), it is actually , The extending direction of the sensor unit 320 may be oblique to the design direction. In this case, the position of each of the plurality of reading sensors 321 in the first direction D1 may deviate from the design position. The sensor direction calibration data 134 indicates the amount of calibration for calibrating the positions of the pixels in the scanned image so as to mitigate the influence of such a displacement of the position of the first direction D1 of the plurality of reading sensors 321. The sensor orientation calibration data 134 is generated by the manufacturer of the multifunction device 200. Hereinafter, a method of manufacturing the sensor direction calibration data 134 will be described assuming that the data processing device 100 (FIG. 1) generates the sensor direction calibration data 134.

S110では、複合機200の読取部300によって、基準シートの基準パターンが読み取られる。本実施例では、ユーザは、複合機200の支持面Us上に基準シートを配置し、操作部250に読取指示を入力する。制御部205(具体的には、プロセッサ210)は、指示に応じ、第1プログラム231に従って読取部300を制御し、基準シートを示す読取データを生成する。 In S110, the reference pattern of the reference sheet is read by the reading unit 300 of the multifunction device 200. In this embodiment, the user arranges the reference sheet on the support surface Us of the multifunction device 200, and inputs a reading instruction to the operation unit 250. The control unit 205 (specifically, the processor 210) controls the reading unit 300 according to the first program 231 in response to an instruction, and generates reading data indicating a reference sheet.

図3(A)−図3(C)は、基準シートの説明図である。図3(A)には、基準シートの例が示されている。図中には、長手方向DLと、長手方向DLに垂直な幅方向DWと、が示されている。基準シートSHsの形状は、長手方向DLに平行な2辺Ss1、Ss2と幅方向DWに平行な2辺Ss3、Ss4とを有する矩形状である。基準シートSHsは、例えば、A3サイズのシートである。基準シートSHs上には、基準パターンPsが記録されている。基準パターンPsは、長手方向DLに平行な複数の細線である基準線PsLを含んでいる。複数の基準線PsLは、幅方向DWに沿って等間隔で並んでいる。複数の基準線PsLは、基準シートSHsの幅方向DWの範囲のおおよそ全体に亘って、分布している。隣り合う2本の基準線PsLの間の距離(ピッチ距離とも呼ぶ)は、予め決められている(以下、基準ピッチdsとも呼ぶ)。基準シートSHs上では、複数の基準線PsLは、同じ基準ピッチdsで、幅方向DWに沿って等間隔で並んでいる。複数の基準線PsLの間では、幅方向DWの位置が互いに異なっている。基準シートSHsは、シートの劣化を避けるために、厳重に管理される(例えば、基準シートSHsは専用の保管場所に保管され、保管場所の温度と湿度とが厳重に管理される)。 3 (A) -FIG. 3 (C) are explanatory views of the reference sheet. FIG. 3A shows an example of a reference sheet. In the figure, a longitudinal DL and a width DW perpendicular to the longitudinal DL are shown. The shape of the reference sheet SHs is a rectangular shape having two sides Ss1 and Ss2 parallel to the longitudinal direction DL and two sides Ss3 and Ss4 parallel to the width direction DW. The reference sheet SHs is, for example, an A3 size sheet. Reference patterns Ps are recorded on the reference sheet SHs. The reference pattern Ps includes the reference line PsL which is a plurality of thin lines parallel to the longitudinal DL. The plurality of reference lines PsL are arranged at equal intervals along the width direction DW. The plurality of reference lines PsL are distributed over approximately the entire range of the reference sheet SHs in the width direction DW. The distance between two adjacent reference lines PsL (also referred to as pitch distance) is predetermined (hereinafter, also referred to as reference pitch ds). On the reference sheet SHs, the plurality of reference lines PsL are arranged at equal intervals along the width direction DW at the same reference pitch ds. The positions of the DWs in the width direction are different from each other among the plurality of reference lines PsL. The reference sheet SHs are strictly controlled in order to avoid deterioration of the sheet (for example, the reference sheet SHs are stored in a dedicated storage place, and the temperature and humidity of the storage place are strictly controlled).

図3(B)は、複合機200の支持面Us上に配置された基準シートSHsを示す説明図である。本実施例では、基準シートSHsの形状と大きさは、支持面Usの形状と大きさと、おおよそ同じである。基準シートSHsの全体が、支持面Us上に配置される。また、本実施例では、読取部300に対する基準シートSHsの位置と向き(すなわち、支持面Us上の基準シートSHsの位置と向き)は、以下のように調整される。 FIG. 3B is an explanatory view showing reference sheets SHs arranged on the support surface Us of the multifunction device 200. In this embodiment, the shape and size of the reference sheet SHs are approximately the same as the shape and size of the support surface Us. The entire reference sheet SHs is arranged on the support surface Us. Further, in this embodiment, the position and orientation of the reference sheet SHs with respect to the reading unit 300 (that is, the position and orientation of the reference sheet SHs on the support surface Us) are adjusted as follows.

基準シートSHsのDW方向側(図中の上側)の長辺Ss1は、枠393の内周面3iのD1方向側(図中の上側)の第1部分3i1に接触する。基準シートSHsのDL方向側(図中の左側)の短辺Ss3は、枠393の内周面3iの−D2方向側(図中の左側)の第3部分3i3に接触する。この結果、基準シートSHsの長手方向DLは、複合機200の−D2方向とおおよそ同じであり、基準シートSHsの幅方向DWは、複合機200の第1方向D1とおおよそ同じである。また、内周面3iの左上の隅3C1には、基準シートSHsの左上の角SCが、接触する(隅3C1は、内周面3iの2つの部分3i1、3i3によって形成され、角SCは、基準シートSHsの2つの辺Ss1、Ss3によって形成される)。このように、支持面Us上において、基準シートSHsの互いに異なる方向に延びる2つの辺Ss1、Ss3のそれぞれの位置が、読取部300の互いに異なる方向に延びる2つの部分3i1、3i3に接触することによって、決定される。このように、支持面Us上の基準シートSHsの位置と向きとは、予め決められた位置と向きとに、調整される。この状態で、複数の基準線PsLは、支持面Usの第1方向D1の範囲のおおよそ全体に亘って分布している。 The long side Ss1 on the DW direction side (upper side in the drawing) of the reference sheet SHs comes into contact with the first portion 3i1 on the D1 direction side (upper side in the drawing) of the inner peripheral surface 3i of the frame 393. The short side Ss3 on the DL direction side (left side in the figure) of the reference sheet SHs comes into contact with the third portion 3i3 on the −D2 direction side (left side in the figure) of the inner peripheral surface 3i of the frame 393. As a result, the longitudinal DL of the reference sheet SHs is approximately the same as the −D2 direction of the multifunction device 200, and the width direction DW of the reference sheet SHs is approximately the same as the first direction D1 of the multifunction device 200. Further, the upper left corner SC of the reference sheet SHs comes into contact with the upper left corner 3C1 of the inner peripheral surface 3i (the corner 3C1 is formed by the two portions 3i1 and 3i3 of the inner peripheral surface 3i, and the corner SC is formed by the two portions 3i1 and 3i3 of the inner peripheral surface 3i. Formed by two sides Ss1 and Ss3 of the reference sheet SHs). In this way, on the support surface Us, the positions of the two sides Ss1 and Ss3 extending in different directions of the reference sheet SHs come into contact with the two portions 3i1 and 3i3 extending in different directions of the reading unit 300. Is determined by. In this way, the position and orientation of the reference sheet SHs on the support surface Us are adjusted to predetermined positions and orientations. In this state, the plurality of reference lines PsL are distributed over approximately the entire range of the support surface Us in the first direction D1.

図3(C)は、基準シートSHsの読取画像の例を示す説明図である。図中の方向D1、D2は、読取画像IMsによって示される対象物(ここでは、基準シートSHs)の読取時における、対象物に対する複合機200の方向D1、D2を示している。本実施例では、読取部300を用いて得られる読取画像の形状は、第1方向D1に平行な2辺と第2方向D2に平行な2辺とで囲まれる矩形状である。読取画像は、D1方向とD2方向とに沿って格子状に並ぶ複数の画素によって、表される(図示省略)。画素の色値(例えば、RGB値)は、読取センサ321から出力されるセンサデータを用いて、決定される。読取画像内の画素のセンサ方向D1の位置と、その画素に対応付けられた読取センサ321のセンサ方向D1の位置と、の対応関係は、予め決められている。また、読取画像内の画素の搬送方向D2の位置と、その画素に対応付けられたセンサユニット320の搬送方向D2の位置と、の対応関係は、予め決められている。なお、1つの画素に、複数の読取センサ321が対応付けられてよい。また、1つの画素に、センサユニット320の搬送方向D2の複数の位置が対応付けられてよい。すなわち、1つの画素の色値は、複数個のセンサデータを用いて、決定されてよい(例えば、平均値)。なお、S110(図2)では、制御部205は、複数の読取センサ321(図1)のそれぞれの第1方向D1の位置のずれがゼロであることとして、読取画像IMsの読取データを生成する。図3(C)に示すように、複数の基準線PsLは、読取画像IMsの第1方向D1の範囲のおおよそ全体に亘って分布している。 FIG. 3C is an explanatory diagram showing an example of a scanned image of the reference sheet SHs. The directions D1 and D2 in the figure indicate the directions D1 and D2 of the multifunction device 200 with respect to the object at the time of reading the object (here, the reference sheet SHs) indicated by the scanned image IMs. In this embodiment, the shape of the scanned image obtained by using the reading unit 300 is a rectangular shape surrounded by two sides parallel to the first direction D1 and two sides parallel to the second direction D2. The scanned image is represented by a plurality of pixels arranged in a grid along the D1 direction and the D2 direction (not shown). The color value (for example, RGB value) of the pixel is determined using the sensor data output from the reading sensor 321. The correspondence between the position of the sensor direction D1 of the pixel in the scanned image and the position of the sensor direction D1 of the reading sensor 321 associated with the pixel is predetermined. Further, the correspondence relationship between the position of the pixel in the transport direction D2 in the scanned image and the position of the sensor unit 320 in the transport direction D2 associated with the pixel is predetermined. A plurality of reading sensors 321 may be associated with one pixel. Further, a plurality of positions of the sensor unit 320 in the transport direction D2 may be associated with one pixel. That is, the color value of one pixel may be determined using a plurality of sensor data (for example, an average value). In S110 (FIG. 2), the control unit 205 generates the reading data of the scanned image IMs assuming that the displacement of the position of each of the plurality of reading sensors 321 (FIG. 1) in the first direction D1 is zero. .. As shown in FIG. 3C, the plurality of reference lines PsL are distributed over approximately the entire range of the first direction D1 of the scanned image IMs.

データ処理装置100のプロセッサ110は、操作部150に入力されたユーザの指示に応じて、第1プログラム131に従って、センサ方向較正データ134を生成する処理を開始する。なお、S110(図2)で、プロセッサ110が、複合機200に基準シートSHsの読取指示を送信してよい。複合機200のプロセッサ210は、指示に応じて、基準シートSHsの読取データを生成してよい。 The processor 110 of the data processing device 100 starts the process of generating the sensor direction calibration data 134 according to the first program 131 in response to the user's instruction input to the operation unit 150. In S110 (FIG. 2), the processor 110 may transmit a reading instruction of the reference sheet SHs to the multifunction device 200. The processor 210 of the multifunction device 200 may generate the read data of the reference sheet SHs in response to the instruction.

S115では、プロセッサ110は、複合機200から、基準シートSHsの読取データを取得する。S120では、プロセッサ110は、読取データを解析することによって、読取画像IMsから基準パターンPsの複数の基準線PsLを検出する。基準線PsLの検出方法は、任意の方法であってよい。本実施例では、プロセッサ110は、ハフ変換によって、複数の基準線PsLのそれぞれを特定する。これに代えて、パターンマッチングやエッジ検出などの他の方法によって、基準線PsLが検出されてよい。 In S115, the processor 110 acquires the read data of the reference sheet SHs from the multifunction device 200. In S120, the processor 110 detects a plurality of reference lines PsL of the reference pattern Ps from the read image IMs by analyzing the read data. The reference line PsL can be detected by any method. In this embodiment, the processor 110 identifies each of the plurality of reference lines PsL by the Hough transform. Alternatively, the reference line PsL may be detected by other methods such as pattern matching and edge detection.

S130では、プロセッサ110は、読取画像IMs上での複数の基準線PsLのそれぞれのセンサ方向D1の位置を特定する。そして、プロセッサ110は、隣り合う2本の基準線PsLの間の読取画像IMs上でのピッチ距離を特定する。図3(C)の下部には、読取画像IMs上の複数の基準線PsLのうち、−D1方向側の端に配置された4本の基準線PsLが示されている。位置s(i)は、i番目の基準線PsLのセンサ方向D1の位置を示している。基準線PsLの番号iは、幅方向DW(ここでは、センサ方向D1と同じ)に向かって昇順に並ぶように、1番から順番に割り当てられている。i番の基準線PsLとi+1番の基準線PsLとの間のピッチ距離(s(i+1)−s(i))は、ds+a(i)で表される。差a(i)は、予め決められた基準ピッチdsと、読取画像IMs上での実際のピッチ距離との間の差である。差a(i)は、読取センサ321(図1)のセンサ方向D1の位置の設計位置からのずれに起因して、生じ得る。なお、位置と距離(例えば、基準線PsLの位置、ピッチ距離、差a(i)等)の単位は、任意の単位であってよい(例えば、ミリメートル、画素数、など)。本実施例では、読取画像の解像度(画素密度とも呼ばれる)は、予め決められている。解像度の単位は、例えば、ピクセル/インチである。シート上の距離(例えば、ミリメートルやインチで表される基準ピッチds)と、読取画像上の距離(例えば、画素数で表される基準ピッチds)とは、解像度に基づいて、互いに変換可能である。後述する他の距離や位置についても、同様に、解像度に基づいて変換可能である。 In S130, the processor 110 identifies the position of each of the plurality of reference lines PsL on the scanned image IMs in the sensor direction D1. Then, the processor 110 specifies the pitch distance on the scanned image IMs between the two adjacent reference lines PsL. At the bottom of FIG. 3C, four reference lines PsL arranged at the ends on the −D1 direction side among the plurality of reference lines PsL on the scanned image IMs are shown. The position s (i) indicates the position of the i-th reference line PsL in the sensor direction D1. The number i of the reference line PsL is assigned in order from No. 1 so as to be arranged in ascending order toward the width direction DW (here, the same as the sensor direction D1). The pitch distance (s (i + 1) -s (i)) between the reference line PsL of the i-th and the reference line PsL of the i + 1 is represented by ds + a (i). The difference a (i) is the difference between the predetermined reference pitch ds and the actual pitch distance on the scanned image IMs. The difference a (i) may occur due to the deviation of the position of the reading sensor 321 (FIG. 1) in the sensor direction D1 from the design position. The unit of the position and the distance (for example, the position of the reference line PsL, the pitch distance, the difference a (i), etc.) may be any unit (for example, millimeters, the number of pixels, etc.). In this embodiment, the resolution (also called pixel density) of the scanned image is predetermined. The unit of resolution is, for example, pixels / inch. The distance on the sheet (for example, the reference pitch ds expressed in millimeters or inches) and the distance on the scanned image (for example, the reference pitch ds expressed in the number of pixels) can be converted to each other based on the resolution. is there. Similarly, other distances and positions described later can be converted based on the resolution.

図4は、センサ方向D1の位置とピッチ距離の差との例を示すグラフである。横軸は、読取画像IMs上のセンサ方向D1の位置PO1を示している。縦軸は、ピッチ距離の差DP1を示している。複数のデータ点M1は、複数の基準線ペアを、それぞれ示している。本実施例では、i番目の基準線PsLとi+1番目の基準線PsLとのペアのピッチ距離の差a(i)には、i番目の基準線PsLの位置s(i)が対応付けられていることとする。このグラフは、センサユニット320の延びる方向が設計方向に対して斜めである場合の例を示している。この場合、差DP1は、位置PO1の変化に応じて、おおよそ直線的に変化する。 FIG. 4 is a graph showing an example of the difference between the position in the sensor direction D1 and the pitch distance. The horizontal axis indicates the position PO1 in the sensor direction D1 on the scanned image IMs. The vertical axis shows the difference DP1 of the pitch distance. The plurality of data points M1 indicate a plurality of reference line pairs, respectively. In this embodiment, the position s (i) of the i-th reference line PsL is associated with the difference a (i) in the pitch distance between the pair of the i-th reference line PsL and the i + 1th reference line PsL. Suppose you are. This graph shows an example in which the extending direction of the sensor unit 320 is oblique to the design direction. In this case, the difference DP1 changes substantially linearly according to the change in the position PO1.

S140(図2)では、プロセッサ110は、センサ方向較正データ134を生成する。図4には、複数のデータ点M1を近似する近似直線L1が示されている。本実施例では、この近似直線L1が、較正直線として用いられる(較正直線L1とも呼ぶ)。較正直線L1によって位置PO1に対応付けられる差DP1が、較正量として用いられる(以下、較正量VC1とも呼ぶ)。後述するように、本実施例では、読取画像上の位置PO1から較正量VC1を減算することによって、較正済の位置が算出される。 In S140 (FIG. 2), the processor 110 generates sensor orientation calibration data 134. FIG. 4 shows an approximate straight line L1 that approximates a plurality of data points M1. In this embodiment, this approximate straight line L1 is used as a calibration straight line (also referred to as a calibration straight line L1). The difference DP1 associated with the position PO1 by the calibration straight line L1 is used as the calibration amount (hereinafter, also referred to as the calibration amount VC1). As will be described later, in this embodiment, the calibrated position is calculated by subtracting the calibration amount VC1 from the position PO1 on the scanned image.

プロセッサ110は、隣り合う2本の基準線PsLで構成される複数の基準線ペアのそれぞれに関して、ピッチ距離から基準ピッチdsを減算することによって、差a(i)を算出する。プロセッサ110は、複数の差a(i)に対応する複数のデータ点M1を用いて、較正直線L1を特定する。例えば、プロセッサ110は、複数のデータ点M1を近似する較正直線L1を最小二乗法によって特定する。較正直線L1の特定方法は、他の公知の方法であってもよい。プロセッサ110は、較正直線L1を示すセンサ方向較正データ134を生成する。 The processor 110 calculates the difference a (i) by subtracting the reference pitch ds from the pitch distance for each of the plurality of reference line pairs composed of two adjacent reference lines PsL. The processor 110 identifies the calibration line L1 using a plurality of data points M1 corresponding to the plurality of differences a (i). For example, the processor 110 specifies a calibration line L1 that approximates a plurality of data points M1 by the method of least squares. The method for specifying the calibration line L1 may be another known method. The processor 110 generates sensor direction calibration data 134 indicating the calibration line L1.

センサ方向較正データ134のデータ形式は、位置PO1と較正量VC1との対応関係を示す任意の形式であってよい。本実施例では、センサ方向較正データ134は、較正直線L1を示すパラメータ(例えば、切片と傾き)を示すデータである。これに代えて、センサ方向較正データ134は、較正直線L1を示すルックアップテーブルであってもよい。 The data format of the sensor direction calibration data 134 may be any format indicating the correspondence between the position PO1 and the calibration amount VC1. In this embodiment, the sensor direction calibration data 134 is data indicating parameters (for example, intercept and slope) indicating the calibration line L1. Alternatively, the sensor orientation calibration data 134 may be a look-up table showing the calibration line L1.

また、較正直線L1によって示される較正量は、図4の差DP1の正負の符号を反転させることによって得られる値であってよい。この場合、読取画像上の位置PO1に較正量を加算することによって、較正済の位置が算出される。この場合、プロセッサ110は、複数のデータ点M1のそれぞれの差DP1の正負の符号を反転させることによって、複数の反転データ点を特定してよい。そして、プロセッサ110は、複数の反転データ点を近似する近似直線を、較正直線として採用してよい。 Further, the calibration amount indicated by the calibration straight line L1 may be a value obtained by inverting the positive and negative signs of the difference DP1 in FIG. In this case, the calibrated position is calculated by adding the calibration amount to the position PO1 on the scanned image. In this case, the processor 110 may specify the plurality of inverted data points by inverting the positive and negative signs of the difference DP1 of the plurality of data points M1. Then, the processor 110 may adopt an approximate straight line that approximates a plurality of inverted data points as a calibration straight line.

S150では、プロセッサ110は、センサ方向較正データ134を記憶装置(例えば、不揮発性記憶装置130)に格納する。そして、図2の処理が終了する。なお、センサユニット320の延びる方向(すなわち、複数の読取センサ321のセンサ方向D1の位置)は、安定しており、時間が経過した場合にほとんど変化しない。従って、センサ方向較正データ134は、継続して、第1方向D1の位置の較正に利用可能である。複合機200の不揮発性記憶装置230には、センサ方向較正データ134は、ファームウェアの一部として、予め格納される。 In S150, the processor 110 stores the sensor direction calibration data 134 in a storage device (eg, non-volatile storage device 130). Then, the process of FIG. 2 is completed. The extending direction of the sensor unit 320 (that is, the position of the sensor direction D1 of the plurality of reading sensors 321) is stable and hardly changes over time. Therefore, the sensor direction calibration data 134 is continuously available for calibration of the position in the first direction D1. The sensor direction calibration data 134 is pre-stored in the non-volatile storage device 230 of the multifunction device 200 as a part of the firmware.

A3.テスト画像の処理:
複合機200は、種々の処理の対象画像の読み取りに利用され得る。図5は、対象画像の例を示す説明図である。図中には、テストシートSHtが示されている。テストシートSHtの形状は、図3(A)で説明した基準シートSHsと同様に、長手方向DLに平行な2辺St1、St2と幅方向DWに平行な2辺St3、St4とを有する矩形状である。テストシートSHt上には、テスト画像IMtが印刷されている。テスト画像IMtは、計測パターンIMxと、較正パターンPtと、を含んでいる。本実施例では、テストシートSHtとして、基準シートSHs(図3(A))のような較正専用のシートではなく、印刷物が用いられる(以下、テストシートSHtを、「印刷テストシートSHt」とも呼ぶ)。印刷テストシートSHtに印刷された画像(本実施例では、較正パターンPt)は、基準として用いられる。そして、本実施例は、印刷テストシートSHtの読取画像に対する複数の読取センサ321(図1)の位置ずれの影響を、センサ方向較正データ134(図4)を用いて低減することによって、テスト画像IMtの高精度の処理を、較正専用のシートを用いずに実現する(詳細は、後述)。
A3. Test image processing:
The multifunction device 200 can be used for reading the target image of various processes. FIG. 5 is an explanatory diagram showing an example of the target image. In the figure, the test sheet SHt is shown. The shape of the test sheet SHt is a rectangular shape having two sides St1 and St2 parallel to the longitudinal direction DL and two sides St3 and St4 parallel to the width direction DW, similarly to the reference sheet SHs described with reference to FIG. 3 (A). Is. A test image IMt is printed on the test sheet SHt. The test image IMt includes a measurement pattern IMx and a calibration pattern Pt. In this embodiment, as the test sheet SHt, a printed matter is used instead of a sheet dedicated to calibration as in the reference sheet SHs (FIG. 3A) (hereinafter, the test sheet SHt is also referred to as a “printing test sheet SHt”). ). The image printed on the print test sheet SHt (calibration pattern Pt in this embodiment) is used as a reference. Then, in this embodiment, the influence of the positional deviation of the plurality of reading sensors 321 (FIG. 1) on the reading image of the print test sheet SHt is reduced by using the sensor direction calibration data 134 (FIG. 4), thereby reducing the test image. High-precision processing of IMt is realized without using a sheet dedicated to calibration (details will be described later).

本実施例では、計測パターンIMxは、印刷部260の複数のノズルの特性を検査するための処理の対象画像の例である。計測パターンIMxは、複数のノズルのそれぞれによって印刷された複数のドット領域DAを含んでいる(1個のドット領域DAは、1個のノズルで印刷される)。テストシートSHt上のドット領域DAの位置が予め決められた位置からずれている場合、そのドット領域DAに対応するノズルに不具合があり得る。ドット領域DAの位置を計測するために、複合機200の読取部300によってテストシートSHtが読み取られる(詳細は、後述)。 In this embodiment, the measurement pattern IMx is an example of an image to be processed for inspecting the characteristics of a plurality of nozzles of the printing unit 260. The measurement pattern IMx includes a plurality of dot region DAs printed by each of the plurality of nozzles (one dot region DA is printed by one nozzle). If the position of the dot region DA on the test sheet SHt deviates from a predetermined position, there may be a problem with the nozzle corresponding to the dot region DA. In order to measure the position of the dot region DA, the test sheet SHt is read by the reading unit 300 of the multifunction device 200 (details will be described later).

較正パターンPtは、長手方向DLに平行な複数の細線である基準線PtLを含んでいる。複数の基準線PtLは、幅方向DWに沿っておおよそ等間隔で並んでいる。複数の基準線PtLは、テストシートSHtの幅方向DWの範囲のおおよそ全体に亘って分布している。隣り合う2本の基準線PtLの間の距離(すなわち、ピッチ距離)は、予め決められている基準ピッチとおおよそ同じである。複数の基準線PtLの間では、幅方向DWの位置が互いに異なっている。複数の基準線PtLは、図3(A)の複数の基準線PsLと同様に、読取画像上の幅方向DWの画素の位置ずれの特定に利用される(詳細は、後述)。以下、テストシートSHtの幅方向DW(すなわち、位置ずれを特定可能な方向)を、特定方向DWとも呼ぶ。 The calibration pattern Pt includes a reference line PtL which is a plurality of thin lines parallel to the longitudinal DL. The plurality of reference lines PtL are arranged at approximately equal intervals along the width direction DW. The plurality of reference lines PtL are distributed over approximately the entire range of the test sheet SHt in the width direction DW. The distance (that is, the pitch distance) between two adjacent reference lines PtL is approximately the same as a predetermined reference pitch. The positions of the DWs in the width direction are different from each other among the plurality of reference lines PtL. The plurality of reference lines PtL are used to identify the positional deviation of the pixels in the width direction DW on the scanned image, similarly to the plurality of reference lines PsL in FIG. 3A (details will be described later). Hereinafter, the width direction DW of the test sheet SHt (that is, the direction in which the positional deviation can be specified) is also referred to as a specific direction DW.

テスト画像IMtの印刷データ(詳細は、後述)は、基準ピッチで等間隔に並ぶ複数の基準線PtLを示している。現実のテストシートSHt上では、テストシートSHtの変形や印刷部260の特性などの種々の原因に起因して、複数の基準線PtLの間隔は、基準ピッチからずれ得る。図5の下部には、較正パターンPtの複数の基準線PtLのうち、−DW方向側の端に配置された4本の基準線PtLが示されている。図中には、隣り合う2本の基準線PtLの間のピッチ距離が示されている。j番の基準線PtLとj+1番の基準線PtLとの間のピッチ距離は、dt+b(j)で表される。基準線PtLの番号jは、特定方向DWに向かって昇順に並ぶように、1番から順番に割り当てられている。第1種差b(j)は、読取画像上ではなくテストシートSHt上のピッチ距離と基準ピッチdtとの間の差である。 The print data of the test image IMt (details will be described later) show a plurality of reference lines PtL arranged at equal intervals at a reference pitch. On the actual test sheet SHt, the distance between the plurality of reference lines PtL may deviate from the reference pitch due to various causes such as deformation of the test sheet SHt and characteristics of the printing unit 260. At the bottom of FIG. 5, among the plurality of reference lines PtL of the calibration pattern Pt, four reference lines PtL arranged at the ends on the −DW direction side are shown. In the figure, the pitch distance between two adjacent reference lines PtL is shown. The pitch distance between the j-th reference line PtL and the j + 1-th reference line PtL is represented by dt + b (j). The reference line PtL number j is assigned in order from No. 1 so as to be arranged in ascending order toward the specific direction DW. The first-class difference b (j) is the difference between the pitch distance on the test sheet SHt and the reference pitch dt, not on the scanned image.

図6は、テスト画像IMtの処理の手順の例を示すフローチャートである。データ処理装置100(図1)のプロセッサ110は、操作部150に入力されたユーザの指示に応じて、第2プログラム132に従って、図6の処理を開始する。S310では、プロセッサ110は、生成条件が満たされるか否かを判断する。生成条件は、新たな搬送方向較正データ135を生成するための条件である。後述するように、搬送方向較正データ135は、読取画像上における第2方向D2の位置のずれを較正するための較正量を示している。本実施例では、生成条件は、現行の搬送方向較正データ135が生成されてからの経過時間が、予め決められた時間閾値を超えることである。プロセッサ110は、図示しないタイマを参照して、経過時間を測定する。 FIG. 6 is a flowchart showing an example of a procedure for processing the test image IMt. The processor 110 of the data processing device 100 (FIG. 1) starts the process of FIG. 6 according to the second program 132 in response to the user's instruction input to the operation unit 150. In S310, the processor 110 determines whether or not the generation condition is satisfied. The generation condition is a condition for generating new transport direction calibration data 135. As will be described later, the transport direction calibration data 135 indicates a calibration amount for calibrating the displacement of the position of the second direction D2 on the scanned image. In this embodiment, the generation condition is that the elapsed time from the generation of the current transport direction calibration data 135 exceeds a predetermined time threshold. The processor 110 measures the elapsed time with reference to a timer (not shown).

生成条件が満たされる場合(S310:Yes)、S340では、プロセッサ110は、予め決められた印刷データを、複合機200に供給する。印刷データは、テスト画像IMtを示している。複合機200のプロセッサ210は、第1プログラム231に従って、受信した印刷データを用いて印刷部260を制御することによって、用紙上にテスト画像IMtを印刷する。これにより、テストシートSHt(図5)が生成される。なお、印刷データのデータ形式は、複合機200によって解釈可能な任意の形式であってよい。 When the generation condition is satisfied (S310: Yes), in S340, the processor 110 supplies predetermined print data to the multifunction device 200. The print data shows the test image IMt. The processor 210 of the multifunction device 200 prints the test image IMt on the paper by controlling the printing unit 260 using the received print data according to the first program 231. As a result, the test sheet SHt (FIG. 5) is generated. The data format of the print data may be any format that can be interpreted by the multifunction device 200.

S345では、複合機200の読取部300によって、テストシートSHtのテスト画像IMtが読み取られる。本実施例では、ユーザは、複合機200の支持面Us上にテストシートSHtを配置し、操作部250に読取指示を入力する。制御部205(具体的には、プロセッサ210)は、指示に応じて、第1プログラム231に従って読取部300を制御し、テストシートSHtを示す読取データを生成する。 In S345, the test image IMt of the test sheet SHt is read by the reading unit 300 of the multifunction device 200. In this embodiment, the user arranges the test sheet SHt on the support surface Us of the multifunction device 200, and inputs a reading instruction to the operation unit 250. The control unit 205 (specifically, the processor 210) controls the reading unit 300 according to the first program 231 in response to an instruction, and generates reading data indicating the test sheet SHt.

図7(A)は、複合機200の支持面Us上に配置されたテストシートSHtの説明図である。本実施例では、テストシートSHtのサイズは、支持面Usのサイズと、おおよそ同じである。テストシートSHtの全体が、支持面Us上に配置される。本実施例では、複合機200の対するテストシートSHtの位置と向き(すなわち、支持面Us上のテストシートSHtの位置と向き)は、図3(B)で説明した基準シートSHsの位置と向きの調整方法と同じ方法で、調整される。すなわち、テストシートSHtの2つの辺St1、St3が、枠393の内周面3iの2つの部分3i1、3i3に、それぞれ接触する。この結果、テストシートSHtの長手方向DLは、読取部300の−D2方向とおおよそ同じであり、テストシートSHtの特定方向DWは、読取部300のセンサ方向D1とおおよそ同じである。また、枠393の内周面3iの左上の隅3C1には、テストシートSHtの左上の角SC1が、接触する(角SC1は、テストシートSHtの2つの辺St1、St3によって形成される)。このように、支持面Us上でのテストシートSHtの位置と向きとは、テストシートSHtの互いに異なる方向に延びる2つの辺St1、St3のそれぞれの位置が、読取部300の互いに異なる方向に延びる2つの部分3i1、3i3に接触することによって、決定される。これにより、支持面Us上のテストシートSHtの位置と向きとは、予め決められた位置と向きとに、調整される。この状態で、複数の基準線PtLは、支持面Usの第1方向D1の範囲のおおよそ全体に亘って分布している。以下、S345で生成される読取データを、センサ方向読取データとも呼ぶ。また、センサ方向読取データの読取画像を、センサ方向読取画像とも呼ぶ。 FIG. 7A is an explanatory view of the test sheet SHt arranged on the support surface Us of the multifunction device 200. In this embodiment, the size of the test sheet SHt is approximately the same as the size of the support surface Us. The entire test sheet SHt is arranged on the support surface Us. In this embodiment, the position and orientation of the test sheet SHt with respect to the multifunction device 200 (that is, the position and orientation of the test sheet SHt on the support surface Us) is the position and orientation of the reference sheet SHs described in FIG. 3 (B). It is adjusted in the same way as the adjustment method of. That is, the two sides St1 and St3 of the test sheet SHt come into contact with the two portions 3i1 and 3i3 of the inner peripheral surface 3i of the frame 393, respectively. As a result, the longitudinal DL of the test sheet SHt is approximately the same as the −D2 direction of the reading unit 300, and the specific direction DW of the test sheet SHt is approximately the same as the sensor direction D1 of the reading unit 300. Further, the upper left corner SC1 of the test sheet SHt comes into contact with the upper left corner 3C1 of the inner peripheral surface 3i of the frame 393 (the corner SC1 is formed by the two sides St1 and St3 of the test sheet SHt). As described above, the positions and orientations of the test sheet SHt on the support surface Us are such that the positions of the two sides St1 and St3 extending in different directions of the test sheet SHt extend in different directions of the reading unit 300. Determined by contacting the two portions 3i1, 3i3. As a result, the position and orientation of the test sheet SHt on the support surface Us are adjusted to a predetermined position and orientation. In this state, the plurality of reference lines PtL are distributed over approximately the entire range of the support surface Us in the first direction D1. Hereinafter, the read data generated in S345 is also referred to as sensor direction read data. Further, the read image of the sensor direction read data is also referred to as a sensor direction read image.

図7(B)は、センサ方向読取画像の例を示す説明図である。この読取画像IMt1は、計測パターンIMxと較正パターンPtとを含むテストシートSHtの全体を示している。複数の基準線PtLは、読取画像IMt1の第1方向D1の範囲のおおよそ全体に亘って分布している。 FIG. 7B is an explanatory diagram showing an example of a sensor direction reading image. This scanned image IMt1 shows the entire test sheet SHt including the measurement pattern IMx and the calibration pattern Pt. The plurality of reference lines PtL are distributed over approximately the entire range of the first direction D1 of the scanned image IMt1.

S350(図6)では、プロセッサ110は、複合機200から、センサ方向読取データを取得する。S355では、プロセッサ110は、搬送方向較正データ135の生成処理を実行する。 In S350 (FIG. 6), the processor 110 acquires sensor direction reading data from the multifunction device 200. In S355, the processor 110 executes the process of generating the transport direction calibration data 135.

図8は、搬送方向較正データ135の生成処理の例を示すフローチャートである。上述したように、センサユニット320(図1)は、搬送装置330による搬送中に、対象物を読み取る。搬送中のセンサユニット320の搬送方向D2の位置は、搬送の誤差により、設計された位置からずれ得る。例えば、搬送装置330の部材の変形によって(例えば、ベルトの一部分が延びることによって)、搬送中のセンサユニット320の位置がずれ得る。搬送方向較正データ135は、このような搬送の誤差に起因する読取画像上の搬送方向D2の画素の位置のずれを較正するための較正量を示している。なお、搬送の誤差は、時間の経過に応じて、変化し得る。そこで、本実施例では、搬送方向較正データ135の生成が、生成条件(図6:S310)に基づいて、繰り返される。 FIG. 8 is a flowchart showing an example of the generation process of the transport direction calibration data 135. As described above, the sensor unit 320 (FIG. 1) reads the object during the transfer by the transfer device 330. The position of the sensor unit 320 in the transport direction D2 during transport may deviate from the designed position due to a transport error. For example, deformation of a member of the transfer device 330 (for example, by extending a part of the belt) may cause the position of the sensor unit 320 during transfer to shift. The transport direction calibration data 135 indicates a calibration amount for calibrating the deviation of the position of the pixel in the transport direction D2 on the scanned image due to such a transport error. The transport error may change with the passage of time. Therefore, in this embodiment, the generation of the transport direction calibration data 135 is repeated based on the generation conditions (FIG. 6: S310).

S415−S425では、搬送方向D2の位置のずれを特定するために、テストシートSHt(図5)の特定方向DWが搬送方向D2を向いている状態で、テストシートSHtが読み取られる。 In S415-S425, the test sheet SHt is read in a state where the specific direction DW of the test sheet SHt (FIG. 5) faces the transport direction D2 in order to specify the displacement of the position in the transport direction D2.

図9(A)−図9(D)は、テストシートSHtの読取りの説明図である。図9(A)には、複合機200の支持面Us上に配置されたテストシートSHtが示されている。ユーザは、テストシートSHtを、図7(A)の状態から90度回転させることによって、図9(A)の位置にテストシートSHtを配置できる。図示するように、テストシートSHtのDL方向側(図中の上側)の短辺St3が、枠393の内周面3iのD1方向側(図中の上側)の第1部分3i1に接触し、テストシートSHtの−DW方向側(図中の左側)の長辺St2が、枠393の内周面3iの−D2方向側(図中の左側)の第3部分3i3に接触している。この結果、テストシートSHtの特定方向DWは、読取部300の搬送方向D2とおおよそ同じ方向であり、テストシートSHtの長手方向DLは、読取部300の第1方向D1とおおよそ同じ方向である。また、枠393の内周面3iの左上の隅3C1には、テストシートSHtの左上の角SC2が、接触する(角SC2は、テストシートSHtの2つの辺St2、St3によって形成される)。較正パターンPtは、テストシートSHtの短辺St3に近い位置に配置されているので、較正パターンPtの全体は、支持面Us上に配置される。テストシートSHtの−DL方向側(図中の下側)の端部は、支持面Usの外に位置している。以下、読取部300に対するテストシートSHtのこの位置を、第1位置PS1とも呼ぶ。第1位置PS1は、支持面Us上の−D2方向側の位置である。図中の第1分布範囲Raは、複数の基準線PtLのうちの予め決められた複数の基準線PtLの搬送方向D2の分布範囲である(以下、単に、第1範囲Raとも呼ぶ)。本実施例では、第1範囲Raは、複数の基準線PtLのうちの第2方向D2の端に位置する1本の基準線PtLを除いた残りの複数の基準線PtLの分布範囲である。第1範囲Raは、支持面Us内の−D2方向側の一部の範囲である。この第1範囲Raの詳細については、後述する。 9 (A) -9 (D) are explanatory views of reading the test sheet SHt. FIG. 9A shows a test sheet SHt arranged on the support surface Us of the multifunction device 200. The user can arrange the test sheet SHt at the position shown in FIG. 9A by rotating the test sheet SHt 90 degrees from the state shown in FIG. 7A. As shown in the figure, the short side St3 on the DL direction side (upper side in the figure) of the test sheet SHt comes into contact with the first portion 3i1 on the D1 direction side (upper side in the figure) of the inner peripheral surface 3i of the frame 393. The long side St2 of the test sheet SHt on the −DW direction side (left side in the drawing) is in contact with the third portion 3i3 on the −D2 direction side (left side in the drawing) of the inner peripheral surface 3i of the frame 393. As a result, the specific direction DW of the test sheet SHt is approximately the same as the transport direction D2 of the reading unit 300, and the longitudinal direction DL of the test sheet SHt is approximately the same as the first direction D1 of the reading unit 300. Further, the upper left corner SC2 of the test sheet SHt comes into contact with the upper left corner 3C1 of the inner peripheral surface 3i of the frame 393 (the corner SC2 is formed by the two sides St2 and St3 of the test sheet SHt). Since the calibration pattern Pt is arranged at a position close to the short side St3 of the test sheet SHt, the entire calibration pattern Pt is arranged on the support surface Us. The end of the test sheet SHt on the −DL direction side (lower side in the drawing) is located outside the support surface Us. Hereinafter, this position of the test sheet SHt with respect to the reading unit 300 is also referred to as a first position PS1. The first position PS1 is a position on the support surface Us on the −D2 direction side. The first distribution range Ra in the figure is a distribution range in the transport direction D2 of a plurality of predetermined reference lines PtL among the plurality of reference lines PtL (hereinafter, also simply referred to as the first range Ra). In this embodiment, the first range Ra is the distribution range of the remaining plurality of reference lines PtL excluding one reference line PtL located at the end of the second direction D2 among the plurality of reference lines PtL. The first range Ra is a part of the support surface Us on the −D2 direction side. The details of this first range Ra will be described later.

図9(B)は、図9(A)のテストシートSHtが読み取られる場合の読取画像を示している。後述するように、この読取画像IMt2aを用いる場合、読取画像内の第1範囲Ra内の位置ずれが特定可能であり、第1範囲Raよりも第2方向D2側の部分では位置ずれを特定できない。そこで、本実施例では、ユーザは、テストシートSHtを搬送方向D2に移動させ、そして、移動後のテストシートSHtが読み取られる。 FIG. 9B shows a read image when the test sheet SHt of FIG. 9A is read. As will be described later, when this scanned image IMt2a is used, the positional deviation in the first range Ra in the scanned image can be specified, and the positional deviation cannot be specified in the portion on the second direction D2 side of the first range Ra. .. Therefore, in this embodiment, the user moves the test sheet SHt in the transport direction D2, and the moved test sheet SHt is read.

図9(C)は、複合機200の支持面Us上に配置された移動後のテストシートSHtを示している。テストシートSHtは、図9(A)の位置から搬送方向D2に移動している。テストシートSHtのDW方向側(図中の右側)の長辺St1が、枠393の内周面3iのD2方向側(図中の右側)の第4部分3i4に接触している。枠393の内周面3iの右上の隅3C2には、テストシートSHtの右上の角SC1が、接触している。図9(A)の例と同様に、テストシートSHtの特定方向DWは、読取部300の搬送方向D2とおおよそ同じ方向であり、テストシートSHtの長手方向DLは、読取部300の第1方向D1とおおよそ同じ方向である。較正パターンPtの全体は、支持面Us上に配置される。以下、読取部300に対するテストシートSHtのこの位置を、第2位置PS2とも呼ぶ。第2位置PS2は、支持面Us上の搬送方向D2側の位置である。2つの位置PS1、PS2の間では、テストシートSHtの搬送方向D2の位置が異なっている。なお、2つの位置PS1、PS2の間で、さらに、テストシートSHtのセンサ方向D1の位置が異なっていてもよい。 FIG. 9C shows the moved test sheet SHt arranged on the support surface Us of the multifunction device 200. The test sheet SHt is moving from the position shown in FIG. 9A in the transport direction D2. The long side St1 of the test sheet SHt on the DW direction side (right side in the figure) is in contact with the fourth portion 3i4 on the D2 direction side (right side in the figure) of the inner peripheral surface 3i of the frame 393. The upper right corner SC1 of the test sheet SHt is in contact with the upper right corner 3C2 of the inner peripheral surface 3i of the frame 393. Similar to the example of FIG. 9A, the specific direction DW of the test sheet SHt is substantially the same as the transport direction D2 of the reading unit 300, and the longitudinal direction DL of the test sheet SHt is the first direction of the reading unit 300. It is in the same direction as D1. The entire calibration pattern Pt is placed on the support surface Us. Hereinafter, this position of the test sheet SHt with respect to the reading unit 300 is also referred to as a second position PS2. The second position PS2 is a position on the support surface Us on the transport direction D2 side. The position of the test sheet SHt in the transport direction D2 is different between the two positions PS1 and PS2. The position of the sensor direction D1 of the test sheet SHt may be further different between the two positions PS1 and PS2.

図中の第2分布範囲Rbは、複数の基準線PtLのうちの予め決められた複数の基準線PtLの搬送方向D2の分布範囲である(以下、単に、第2範囲Rbとも呼ぶ)。本実施例では、第2範囲Rbは、第1範囲Raと同様に、複数の基準線PtLのうちの第2方向D2の端に位置する1本の基準線PtLを除いた残りの複数の基準線PtLの分布範囲である。第2範囲Rbは、支持面Us内の搬送方向D2側の一部の範囲である。第2範囲Rbの−D2方向側の一部は、第1範囲Raに重なっている。総合範囲RALは、2つの範囲Ra、Rbを足し合わせた範囲である。本実施例では、総合範囲RALは、支持面Usの搬送方向D2の範囲のおおよそ全体を、含んでいる。 The second distribution range Rb in the figure is a distribution range in the transport direction D2 of a plurality of predetermined reference lines PtL among the plurality of reference lines PtL (hereinafter, also simply referred to as a second range Rb). In this embodiment, the second range Rb is the same as the first range Ra, and the remaining reference lines PtL except for one reference line PtL located at the end of the second direction D2 among the plurality of reference lines PtL. The distribution range of the line PtL. The second range Rb is a part of the range on the transport direction D2 side in the support surface Us. A part of the second range Rb on the −D2 direction side overlaps with the first range Ra. The total range RAL is the sum of the two ranges Ra and Rb. In this embodiment, the total range RAL includes approximately the entire range of the support surface Us in the transport direction D2.

図9(D)は、図9(C)のテストシートSHtが読み取られる場合の読取画像を示している。この読取画像IMt2bを用いる場合、読取画像内の第2範囲Rb内の位置ずれが、特定可能である。総合範囲RALは、読取画像の搬送方向D2の範囲のおおよそ全体を、含んでいる。このように、本実施例では、第1位置PS1(図9(A))と第2位置PS2(図9(C))との2つの位置でテストシートSHtを読み取ることによって、読取画像の搬送方向D2の範囲のおおよそ全体に亘って、位置ずれを特定できる。 FIG. 9D shows a read image when the test sheet SHt of FIG. 9C is read. When this scanned image IMt2b is used, the positional deviation within the second range Rb in the scanned image can be specified. The total range RAL includes approximately the entire range of the read image in the transport direction D2. As described above, in this embodiment, the read image is conveyed by reading the test sheet SHt at two positions, the first position PS1 (FIG. 9 (A)) and the second position PS2 (FIG. 9 (C)). The misalignment can be identified over approximately the entire range of direction D2.

図8のS415では、プロセッサ110は、読取面Usの搬送方向D2の範囲の全体に亘って、較正パターンPtが読み取られたか否かを判断する。較正パターンPtの読み取りが行われていない範囲が残っている場合(S415:No)、S420で、テストシートSHtのテスト画像IMtが読み取られる。本実施例では、ユーザは、複合機200の支持面Us上にテストシートSHtを配置し、操作部250に読取指示を入力する。制御部205(具体的には、プロセッサ210)は、指示に応じて、第1プログラム231に従って読取部300を制御し、テストシートSHtを示す読取データを生成する。1回目のS420では、テストシートSHtの配置は、2つの位置PS1、PS2(図9(A)、図9(C))のいずれかに設定される。いずれの場合も、テストシートSHtの特定方向DWは、搬送方向D2とおおよそ同じ方向である。 In S415 of FIG. 8, the processor 110 determines whether or not the calibration pattern Pt has been read over the entire range of the transport direction D2 of the reading surface Us. When the unread range of the calibration pattern Pt remains (S415: No), the test image IMt of the test sheet SHt is read in S420. In this embodiment, the user arranges the test sheet SHt on the support surface Us of the multifunction device 200, and inputs a reading instruction to the operation unit 250. The control unit 205 (specifically, the processor 210) controls the reading unit 300 according to the first program 231 in response to an instruction, and generates reading data indicating the test sheet SHt. In the first S420, the arrangement of the test sheet SHt is set to one of the two positions PS1 and PS2 (FIGS. 9 (A) and 9 (C)). In either case, the specific direction DW of the test sheet SHt is substantially the same as the transport direction D2.

なお、S420では、プロセッサ110が、複合機200にテストシートSHtの読取指示を送信してよい。複合機200のプロセッサ210は、指示に応じて、テストシートSHtの読取データを生成してよい。 In S420, the processor 110 may transmit a reading instruction of the test sheet SHt to the multifunction device 200. The processor 210 of the multifunction device 200 may generate the read data of the test sheet SHt in response to the instruction.

S423では、プロセッサ110は、複合機200から、テストシートSHtの読取データを取得する。S425では、ユーザは、支持面Us上のテストシートSHtを搬送方向D2に平行に移動させる。移動後のテストシートSHtの位置は、2つの位置PS1、PS2(図9(A)、図9(C))のうち、テストシートSHtの読み取りが行われていない位置である。 In S423, the processor 110 acquires the read data of the test sheet SHt from the multifunction device 200. In S425, the user moves the test sheet SHt on the support surface Us in parallel with the transport direction D2. The position of the test sheet SHt after the movement is the position where the test sheet SHt is not read out of the two positions PS1 and PS2 (FIGS. 9 (A) and 9 (C)).

読取データの取得(S423)の後、プロセッサ110は、S415へ移行する。本実施例では、2回の読み取り(S420)が完了していない場合に、プロセッサ110は、較正パターンPtの読み取りが行われていない範囲が残っていると判断する(S415:No)。1回目のS420の後、S425でテストシートSHtが移動されている。従って、2回目のS420では、テストシートSHtの位置は、2つの位置PS1、PS2(図9(A)、図9(C))のうち、1回目のS420での位置とは異なる位置である。以下、第1位置PS1のテストシートSHtの読取データを、第1搬送方向読取データとも呼ぶ。第1搬送方向読取データの読取画像を、第1搬送方向読取画像とも呼ぶ。また、第2位置PS2のテストシートSHtの読取データを、第2搬送方向読取データとも呼ぶ。第2搬送方向読取データの読取画像を、第2搬送方向読取画像とも呼ぶ。2回目のS420に続くS423では、プロセッサ110は、複合機200から、テストシートSHtの読取データを取得する。2回目のS420の後のS425は、省略される。 After the acquisition of the read data (S423), the processor 110 shifts to S415. In this embodiment, when the two readings (S420) are not completed, the processor 110 determines that the range in which the calibration pattern Pt is not read remains (S415: No). After the first S420, the test sheet SHt has been moved in S425. Therefore, in the second S420, the position of the test sheet SHt is different from the position in the first S420 of the two positions PS1 and PS2 (FIGS. 9 (A) and 9 (C)). .. Hereinafter, the read data of the test sheet SHt of the first position PS1 is also referred to as the first transport direction read data. The scanned image of the first transport direction read data is also referred to as a first transport direction read image. Further, the read data of the test sheet SHt of the second position PS2 is also referred to as the second transport direction read data. The scanned image of the second transport direction read data is also referred to as a second transport direction read image. In S423 following the second S420, the processor 110 acquires the read data of the test sheet SHt from the multifunction device 200. S425 after the second S420 is omitted.

2回の読み取り(S420)が完了した場合(S415:Yes)、S430で、プロセッサ110は、センサ方向読取画像IMt1(図7(B))から、較正パターンPtの複数の基準線PtLを検出する。基準線PtLの検出方法は、S120(図2)の基準線PsLの検出方法と同じである。S435では、プロセッサ110は、センサ方向読取画像IMt1上での複数の基準線PtLのそれぞれのセンサ方向D1の位置を特定する。そして、プロセッサ110は、隣り合う2本の基準線PtLの間のセンサ方向読取画像IMt1上でのピッチ距離を特定する。 When two readings (S420) are completed (S415: Yes), in S430, the processor 110 detects a plurality of reference lines PtL of the calibration pattern Pt from the sensor direction reading image IMt1 (FIG. 7B). .. The method for detecting the reference line PtL is the same as the method for detecting the reference line PsL in S120 (FIG. 2). In S435, the processor 110 identifies the position of each of the plurality of reference lines PtL on the sensor direction reading image IMt1 in the sensor direction D1. Then, the processor 110 specifies the pitch distance on the sensor direction reading image IMt1 between two adjacent reference lines PtL.

図7(B)の左部には、読取画像IMt1上の複数の基準線PtLのうち、−D1方向側の端に配置された4本の基準線PtLが示されている。位置t(j)は、j番目の基準線PtLのセンサ方向D1の位置を示している。基準線PtLの番号jは、図5で説明したように、幅方向DW(ここでは、センサ方向D1と同じ)に向かって昇順に並ぶように、1番から順番に割り当てられている。j番の基準線PtLとj+1番の基準線PtLとの間のピッチ距離(t(j+1)−t(j))は、dt+b(j)+c(j)で表される。第1種差b(j)は、図5で説明したように、読取画像上ではなくテストシートSHt上の実際のピッチ距離と、予め決められた基準ピッチdtとの差である。第2種差c(j)は、テストシートSHt上のピッチ距離(dt+b(j))と、読取画像IMt1上のピッチ距離と、の間の差である。第2種差c(j)は、図3(C)の差a(i)と同様に、読取センサ321(図1)のセンサ方向D1の位置の設計位置からのずれに起因して、生じ得る。 On the left side of FIG. 7B, four reference lines PtL arranged at the ends on the −D1 direction side among the plurality of reference lines PtL on the scanned image IMt1 are shown. The position t (j) indicates the position of the j-th reference line PtL in the sensor direction D1. As described with reference to FIG. 5, the reference line PtL number j is assigned in order from No. 1 so as to be arranged in ascending order in the width direction DW (here, the same as the sensor direction D1). The pitch distance (t (j + 1) -t (j)) between the reference line PtL of the jth and the reference line PtL of the j + 1 is represented by dt + b (j) + c (j). The first-class difference b (j) is the difference between the actual pitch distance on the test sheet SHt and the predetermined reference pitch dt, not on the scanned image, as described with reference to FIG. The second type difference c (j) is the difference between the pitch distance (dt + b (j)) on the test sheet SHt and the pitch distance on the scanned image IMt1. The second type difference c (j) may occur due to the deviation of the position of the reading sensor 321 (FIG. 1) in the sensor direction D1 from the design position, similarly to the difference a (i) in FIG. 3 (C). ..

S435(図8)では、プロセッサ110は、センサ方向較正データ134(図1)を用いて、複数のピッチ距離のそれぞれについて複数の読取センサ321(図1)の位置のずれの影響を低減する処理を実行する。以下に説明するように、S435の処理は、センサ方向較正データ134を用いる画素の位置の較正と同様に行われる。以下、S435の処理を、センサずれ較正、または、センサずれ補正、とも呼ぶ。図7(C)、図7(D)は、ピッチ距離のセンサずれ較正の説明図である。図7(C)は、センサ方向較正データ134によって示される較正直線L1のグラフである。この較正直線L1によって、基準線PtLの位置t(j)と較正量ce(j)とが対応付けられる。本実施例では、プロセッサ110は、j番の基準線PtLとj+1番の基準線PtLとの間のピッチ距離から、j番の基準線PtLの位置t(j)に対応付けられた較正量ce(j)を減算することによって、センサずれ較正済のピッチ距離を算出する。図7(D)には、3個のセンサずれ較正済のピッチ距離の算出例が示されている(j=1、2、3)。例えば、1番の基準線PtLと2番の基準線PtLの間の未較正のピッチ距離(j=1)は、dt+b(1)+c(1)である。センサずれ較正済のピッチ距離は、未較正のピッチ距離から、1番の位置t(1)に対応する較正量ce(1)を減算して得られる「dt+b(1)+c(1)−ce(1)」である。ここで、第2種差c(j)は、較正直線L1(図4)の特定に用いられた差a(i)と同じく、読取センサ321(図1)のセンサ方向D1の位置の設計位置からのずれに起因して、生じ得る。従って、位置t(1)に対応する第2種差c(1)は、較正直線L1によって同じ位置t(1)に対応付けられる較正量ce(1)と、おおよそ同じである。従って、センサずれ較正済のピッチ距離は、おおよそ「dt+b(1)」であり、テストシートSHt(図5)上の実際のピッチ距離とおおよそ同じである。基準線PtLの他のペアのセンサずれ較正済のピッチ距離も、同様に、算出される。プロセッサ110は、n本の基準線PtLのn−1個のセンサずれ較正済のピッチ距離を示すセンサずれ較正済ピッチデータを生成する。 In S435 (FIG. 8), the processor 110 uses the sensor direction calibration data 134 (FIG. 1) to reduce the effect of misalignment of the plurality of reading sensors 321 (FIG. 1) for each of the plurality of pitch distances. To execute. As described below, the process of S435 is performed in the same manner as the calibration of the pixel position using the sensor direction calibration data 134. Hereinafter, the process of S435 is also referred to as sensor deviation calibration or sensor deviation correction. 7 (C) and 7 (D) are explanatory views of the sensor deviation calibration of the pitch distance. FIG. 7C is a graph of the calibration line L1 shown by the sensor direction calibration data 134. The calibration straight line L1 associates the position t (j) of the reference line PtL with the calibration amount ce (j). In this embodiment, the processor 110 uses the calibration amount ce associated with the position t (j) of the reference line PtL of the j from the pitch distance between the reference line PtL of the j and the reference line PtL of j + 1. By subtracting (j), the pitch distance calibrated for sensor deviation is calculated. FIG. 7D shows an example of calculating the pitch distances calibrated for three sensor deviations (j = 1, 2, 3). For example, the uncalibrated pitch distance (j = 1) between the first reference line PtL and the second reference line PtL is dt + b (1) + c (1). The sensor deviation calibrated pitch distance is obtained by subtracting the calibration amount ce (1) corresponding to the first position t (1) from the uncalibrated pitch distance "dt + b (1) + c (1) -ce". (1) ”. Here, the type 2 difference c (j) is from the design position of the sensor direction D1 of the reading sensor 321 (FIG. 1), similarly to the difference a (i) used for specifying the calibration straight line L1 (FIG. 4). It can occur due to the deviation of the sensor. Therefore, the type 2 difference c (1) corresponding to the position t (1) is approximately the same as the calibration amount ce (1) associated with the same position t (1) by the calibration straight line L1. Therefore, the sensor deviation calibrated pitch distance is approximately "dt + b (1)", which is approximately the same as the actual pitch distance on the test sheet SHt (FIG. 5). The sensor shift calibrated pitch distances of the other pairs of reference lines PtL are similarly calculated. The processor 110 generates sensor deviation calibrated pitch data indicating n-1 sensor deviation calibrated pitch distances of n reference lines PtL.

S440(図8)では、プロセッサ110は、搬送方向読取画像IMt2a、IMt2b(図9(B)、図9(D))から、較正パターンPtの複数の基準線PtLを検出する。基準線PtLの検出方法は、S120(図2)の方法と同じである。S445では、プロセッサ110は、搬送方向読取画像IMt2a、IMt2b上での複数の基準線PtLのそれぞれのセンサ方向D1の位置を特定する。そして、プロセッサ110は、隣り合う2本の基準線PtLの間の搬送方向読取画像IMt2a、IMt2b上でのピッチ距離を特定する。 In S440 (FIG. 8), the processor 110 detects a plurality of reference lines PtL of the calibration pattern Pt from the transport direction reading images IMt2a and IMt2b (FIGS. 9B and 9D). The method of detecting the reference line PtL is the same as the method of S120 (FIG. 2). In S445, the processor 110 identifies the position of each of the sensor directions D1 of the plurality of reference lines PtL on the transport direction reading images IMt2a and IMt2b. Then, the processor 110 specifies the pitch distance on the transport direction reading images IMt2a and IMt2b between the two adjacent reference lines PtL.

図10(A)は、第1搬送方向読取画像IMt2a上の較正パターンPtの説明図である。位置u1(j)は、j番目の基準線PtLの第1搬送方向読取画像IMt2a上の搬送方向D2の位置を示している。本実施例では、基準線PtLの総数がnであることとしている。また、本実施例では、nは3以上の整数である。j番の基準線PtLとj+1番の基準線PtLとの間のピッチ距離は、dt+b(j)+f1(j)で表される。第1種差b(j)は、図5で説明したように、テストシートSHt上の実際のピッチ距離と基準ピッチdtとの間の差である。第3種差f1(j)は、テストシートSHt上の実際のピッチ距離と、読取画像IMt2a上のピッチ距離と、の間の差である。第3種差f1(j)は、搬送装置330(図1)によるセンサユニット320の搬送の誤差に起因して生じ得る。 FIG. 10A is an explanatory diagram of the calibration pattern Pt on the first transport direction reading image IMt2a. The position u1 (j) indicates the position of the transport direction D2 on the first transport direction read image IMt2a of the j-th reference line PtL. In this embodiment, the total number of reference lines PtL is n. Further, in this embodiment, n is an integer of 3 or more. The pitch distance between the j-th reference line PtL and the j + 1-th reference line PtL is represented by dt + b (j) + f1 (j). The first-class difference b (j) is the difference between the actual pitch distance on the test sheet SHt and the reference pitch dt, as described with reference to FIG. The third kind difference f1 (j) is the difference between the actual pitch distance on the test sheet SHt and the pitch distance on the scanned image IMt2a. The third-class difference f1 (j) may occur due to an error in the transfer of the sensor unit 320 by the transfer device 330 (FIG. 1).

図10(B)は、第2搬送方向読取画像IMt2b上の較正パターンPtの説明図である。較正パターンPtは、図10(A)の較正パターンPtと比べて、搬送方向D2側に位置している。位置u2(j)は、j番目の基準線PtLの第2搬送方向読取画像IMt2b上の搬送方向D2の位置を示している。位置u2(j)は、図10(A)の同じ番号の位置u1(j)よりも、搬送方向D2側に位置している。j番の基準線PtLとj+1番の基準線PtLとの間のピッチ距離は、dt+b(j)+f2(j)で表される。第4種差f2(j)は、テストシートSHt上の実際のピッチ距離と、読取画像IMt2b上のピッチ距離と、の間の差である。第4種差f2(j)は、搬送装置330(図1)によるセンサユニット320の搬送の誤差に起因して生じ得る。第4種差f2(j)は、図10(A)の同じ番号の第3種差f1(j)と異なり得る。 FIG. 10B is an explanatory diagram of the calibration pattern Pt on the second transport direction reading image IMt2b. The calibration pattern Pt is located on the transport direction D2 side as compared with the calibration pattern Pt in FIG. 10 (A). The position u2 (j) indicates the position of the transport direction D2 on the second transport direction read image IMt2b of the j-th reference line PtL. The position u2 (j) is located closer to the transport direction D2 than the position u1 (j) having the same number in FIG. 10 (A). The pitch distance between the j-th reference line PtL and the j + 1-th reference line PtL is represented by dt + b (j) + f2 (j). The fourth kind difference f2 (j) is the difference between the actual pitch distance on the test sheet SHt and the pitch distance on the scanned image IMt2b. The fourth type difference f2 (j) may occur due to an error in the transfer of the sensor unit 320 by the transfer device 330 (FIG. 1). The fourth kind difference f2 (j) can be different from the third kind difference f1 (j) of the same number in FIG. 10 (A).

S445(図8)では、プロセッサ110は、搬送方向読取画像IMt2a、IMt2bを解析することによって、各読取画像IMt2a、IMt2b上で、隣り合う2本の基準線PtLで構成される複数の基準線ペアのそれぞれに関して、ピッチ距離を算出する。 In S445 (FIG. 8), the processor 110 analyzes the transport direction reading images IMt2a and IMt2b to form a plurality of reference line pairs composed of two adjacent reference lines PtL on each of the read images IMt2a and IMt2b. Calculate the pitch distance for each of.

S450では、プロセッサ110は、搬送方向較正データ135のうち第1範囲Raに適用すべきデータを生成する。本実施例では、プロセッサ110は、S435で生成されたセンサずれ較正済ピッチデータを参照し、センサずれ較正済のピッチ距離(図7(D))を特定する。プロセッサ110は、センサずれ較正済のピッチ距離を、S445で算出されたピッチ距離から減算することによって、各基準線ペアのピッチ距離の差f1(j)、f2(j)を算出する。 In S450, the processor 110 generates data to be applied to the first range Ra of the transport direction calibration data 135. In this embodiment, the processor 110 refers to the sensor deviation calibrated pitch data generated in S435 and identifies the sensor deviation calibrated pitch distance (FIG. 7D). The processor 110 calculates the difference between the pitch distances f1 (j) and f2 (j) of each reference line pair by subtracting the pitch distance calibrated for sensor deviation from the pitch distance calculated in S445.

図10(C)は、搬送方向D2の位置とピッチ距離の差との例を示すグラフである。横軸は、搬送方向読取画像IMt2a、IMt2b上の搬送方向D2の位置PO2を示している。縦軸は、ピッチ距離の差DP2を示している。黒色の複数の第1種データ点M2aは、第1搬送方向読取画像IMt2a(図10(A)))上の複数の基準線ペアを、それぞれ示している。白抜の複数の第2種データ点M2bは、第2搬送方向読取画像IMt2b(図10(B))上の複数の基準線ペアを、それぞれ示している。本実施例では、j番目の基準線PtLとj+1番目の基準線PtLとのペアのピッチ距離の差f1(j)、f2(j)には、j番目の基準線PtLの位置u1(j)、u2(j)が、それぞれ対応付けられていることとする。 FIG. 10C is a graph showing an example of the difference between the position in the transport direction D2 and the pitch distance. The horizontal axis indicates the position PO2 of the transport direction D2 on the transport direction read images IMt2a and IMt2b. The vertical axis shows the difference DP2 of the pitch distance. The plurality of first-class data points M2a in black indicate a plurality of reference line pairs on the first transport direction reading image IMt2a (FIG. 10 (A)), respectively. The plurality of white type 2 data points M2b indicate a plurality of reference line pairs on the second transport direction reading image IMt2b (FIG. 10 (B)). In this embodiment, the difference in pitch distance between the pair of the j-th reference line PtL and the j + 1-th reference line PtL f1 (j) and f2 (j) is the position u1 (j) of the j-th reference line PtL. , U2 (j) are associated with each other.

図10(C)には、複数の第1種データ点M2aを近似する第1種データラインL2aと、複数の第2種データ点M2bを近似する第2種データラインL2bと、が示されている。本実施例では、第1種データラインL2aは、複数の第1種データ点M2aを直線で結ぶ折れ線であり、第2種データラインL2bは、複数の第2種データ点M2bを直線で結ぶ折れ線である。なお、データラインL2a、L2bは、折れ線に代えて、種々の近似曲線(例えば、スプライン曲線)であってよい。 FIG. 10C shows a first-class data line L2a that approximates a plurality of first-class data points M2a and a second-class data line L2b that approximates a plurality of second-class data points M2b. There is. In this embodiment, the first-class data line L2a is a polygonal line connecting a plurality of first-class data points M2a with a straight line, and the second-class data line L2b is a polygonal line connecting a plurality of second-class data points M2b with a straight line. Is. The data lines L2a and L2b may be various approximate curves (for example, spline curves) instead of the polygonal lines.

図10(D)は、較正ラインを示すグラフである。横軸は、搬送方向D2の位置PO2を示し、縦軸は、較正量VC2を示している。較正ラインL2xは、第1範囲Ra内の第1部分ラインL2xaと、第2範囲Rbから第1範囲Raを除いた残りの範囲である残余範囲Rbr内の第2部分ラインL2xbと、で構成される。第1部分ラインL2xaは、第1種データラインL2aと同じである。第2部分ラインL2xbは、第2種データラインL2bのうちの残余範囲Rbr内の部分と同じである。較正ラインL2xによって位置PO2に対応付けられる較正量VC2は、図10(C)で説明した差DP2と同じである。後述するように、読取画像上の位置PO2から位置PO2に対応する較正量VC2を減算することによって、較正済の位置が算出される。なお、第1範囲Raと残余範囲Rbrとの間の境界において、較正ラインL2xは不連続であってもよい。 FIG. 10D is a graph showing the calibration line. The horizontal axis represents the position PO2 in the transport direction D2, and the vertical axis represents the calibration amount VC2. The calibration line L2x is composed of a first partial line L2xa in the first range Ra and a second partial line L2xb in the residual range Rbr which is the remaining range obtained by removing the first range Ra from the second range Rb. To. The first partial line L2xa is the same as the first type data line L2a. The second partial line L2xb is the same as the portion in the residual range Rbr of the second type data line L2b. The calibration amount VC2 associated with the position PO2 by the calibration line L2x is the same as the difference DP2 described in FIG. 10 (C). As will be described later, the calibrated position is calculated by subtracting the calibration amount VC2 corresponding to the position PO2 from the position PO2 on the scanned image. The calibration line L2x may be discontinuous at the boundary between the first range Ra and the residual range Rbr.

S450(図8)では、プロセッサ110は、複数の第1種データ点M2aを用いて、第1範囲Ra用の第1部分ラインL2xaを特定する。そして、プロセッサ110は、第1部分ラインL2xaを示す第1較正データを生成する。 In S450 (FIG. 8), the processor 110 uses a plurality of first-class data points M2a to identify the first partial line L2xa for the first range Ra. Then, the processor 110 generates the first calibration data indicating the first partial line L2xa.

S455では、プロセッサ110は、複数の第2種データ点M2bを用いて、残余範囲Rbr用の第2部分ラインL2xbを特定する。例えば、プロセッサ110は、複数の第2種データ点M2bを近似する第2種データラインL2bを特定し、第2種データラインL2bのうちの残余範囲Rbr内の部分を第2部分ラインL2xbとして採用する。そして、プロセッサ110は、第2部分ラインL2xbを示す第2較正データを生成する。 In S455, the processor 110 uses a plurality of second-class data points M2b to identify the second partial line L2xb for the residual range Rbr. For example, the processor 110 identifies a second-class data line L2b that approximates a plurality of second-class data points M2b, and adopts a portion of the second-class data line L2b in the residual range Rbr as the second partial line L2xb. To do. Then, the processor 110 generates the second calibration data indicating the second partial line L2xb.

S460では、プロセッサ110は、第1較正データと第2較正データとを用いて、搬送方向較正データ135を生成する。本実施例では、搬送方向較正データ135は、第1較正データと第2較正データとを含むデータである。搬送方向較正データ135の形式は、位置PO2と較正量VC2との対応関係を示す任意の形式であってよい。本実施例では、搬送方向較正データ135は、較正ラインL2xを示すパラメータ(例えば、区間毎の切片と傾き)を示すデータである。これに代えて、搬送方向較正データ135は、較正ラインL2xを示すルックアップテーブルであってもよい。また、較正ラインL2xによって示される較正量VC2は、図10(C)の差DP2の正負の符号を反転させることによって得られる値であってよい。この場合、読取画像上の位置PO2に較正量を加算することによって、較正済の位置が算出される。 In S460, the processor 110 uses the first calibration data and the second calibration data to generate the transport direction calibration data 135. In this embodiment, the transport direction calibration data 135 is data including the first calibration data and the second calibration data. The format of the transport direction calibration data 135 may be any format indicating the correspondence between the position PO2 and the calibration amount VC2. In this embodiment, the transport direction calibration data 135 is data indicating parameters indicating the calibration line L2x (for example, intercept and slope for each section). Alternatively, the transport direction calibration data 135 may be a look-up table showing the calibration line L2x. Further, the calibration amount VC2 indicated by the calibration line L2x may be a value obtained by inverting the positive and negative signs of the difference DP2 in FIG. 10 (C). In this case, the calibrated position is calculated by adding the calibration amount to the position PO2 on the scanned image.

S465では、データ処理装置100は、搬送方向較正データ135を、記憶装置(例えば、不揮発性記憶装置130)に格納する。なお、記憶装置に古い搬送方向較正データ135が格納されている場合、プロセッサ110は、古い搬送方向較正データ135を削除する。そして、図8の処理、すなわち、図6のS355が、終了する。S355の終了に応じて、プロセッサ110は、S370へ移行する。 In S465, the data processing device 100 stores the transport direction calibration data 135 in the storage device (for example, the non-volatile storage device 130). When the old transport direction calibration data 135 is stored in the storage device, the processor 110 deletes the old transport direction calibration data 135. Then, the process of FIG. 8, that is, S355 of FIG. 6 is completed. Upon termination of S355, the processor 110 shifts to S370.

生成条件(図8)が満たされない場合(S310:No)、前回に生成済の搬送方向較正データ135は、第2方向D2の位置を適切に較正できると推定される。そこで、プロセッサ110は、新たな搬送方向較正データ135を生成せずに、S320、S325、S330を実行することによって、計測パターンの読取データを取得する。S320、S325、S330は、S340、S345、S350と、それぞれ同じであってよい。ただし、新たな搬送方向較正データ135は生成されないので、S320で印刷されるテストシートSHt上のテスト画像からは、較正パターンPt(図5)は、省略されてよい。 When the generation condition (FIG. 8) is not satisfied (S310: No), it is presumed that the previously generated transport direction calibration data 135 can appropriately calibrate the position of the second direction D2. Therefore, the processor 110 acquires the reading data of the measurement pattern by executing S320, S325, and S330 without generating new transport direction calibration data 135. S320, S325, and S330 may be the same as S340, S345, and S350, respectively. However, since new transport direction calibration data 135 is not generated, the calibration pattern Pt (FIG. 5) may be omitted from the test image on the test sheet SHt printed in S320.

S370では、プロセッサ110は、S330、または、S350で取得されたセンサ方向読取データの画像であるセンサ方向読取画像(例えば、図7(B)のセンサ方向読取画像IMt1)を、センサ方向較正データ134と搬送方向較正データ135とを用いて較正する。図11(A)−図11(D)は、搬送方向D2の位置の較正の説明図である。図11(A)は、テストシートSHt上のテスト画像IMtの説明図である。図中の右部には、対象画像計測パターンIMxの複数のドット領域DAのうち、長手方向DLに並ぶ4個のドット領域DAが示されている。位置v(k)は、k番のドット領域DAのテストシートSHt上の−DL方向の位置を示している(kは、1−4のいずれか)。ドット領域DAの番号kは、−DL方向に向かって昇順に並ぶように、1番から順番に割り当てられている。本実施例では、ドット領域DAの位置として、ドット領域DAを示す複数の画素の重心の位置が、用いられる。 In S370, the processor 110 uses the sensor direction reading image (for example, the sensor direction reading image IMt1 in FIG. 7B), which is an image of the sensor direction reading data acquired in S330 or S350, as the sensor direction calibration data 134. And the transport direction calibration data 135 are used for calibration. 11 (A) to 11 (D) are explanatory views of calibration of the position in the transport direction D2. FIG. 11A is an explanatory diagram of the test image IMt on the test sheet SHt. In the right part of the figure, four dot region DAs arranged in the longitudinal direction DL among the plurality of dot region DAs of the target image measurement pattern IMx are shown. The position v (k) indicates the position in the −DL direction on the test sheet SHt of the dot region DA of the kth (k is any of 1-4). The number k of the dot region DA is assigned in order from the first so as to be arranged in ascending order in the −DL direction. In this embodiment, the positions of the centers of gravity of the plurality of pixels indicating the dot region DA are used as the positions of the dot region DA.

図11(B)は、センサ方向読取画像IMt1の説明図である。図中の右部には、図11(A)のものと同じ4個のドット領域DAが示されている。位置w(k)は、k番のドット領域DAのセンサ方向読取画像IMt1上での−DL方向(ここでは、搬送方向D2)の位置である。位置w(k)は、v(k)+g(k)で表される。差g(k)は、テストシートSHt上の実際の位置v(k)と、センサ方向読取画像IMt1上での位置w(k)と、の間の差である。差g(k)は、搬送装置330(図1)によるセンサユニット320の搬送の誤差に起因して生じ得る。 FIG. 11B is an explanatory diagram of the sensor direction reading image IMt1. In the right part of the figure, the same four dot regions DA as those in FIG. 11 (A) are shown. The position w (k) is the position in the −DL direction (here, the transport direction D2) on the sensor direction read image IMt1 of the dot region DA of the kth. The position w (k) is represented by v (k) + g (k). The difference g (k) is the difference between the actual position v (k) on the test sheet SHt and the position w (k) on the sensor direction reading image IMt1. The difference g (k) can be caused by an error in transporting the sensor unit 320 by the transport device 330 (FIG. 1).

図11(C)は、搬送方向較正データ135によって示される較正ラインL2xのグラフである。横軸は、搬送方向D2の位置PO2を示し、縦軸は、較正量VC2を示している。図中には、位置w(k)に対応する較正量gc(k)が示されている。図11(D)は、4個の較正済の位置の算出例が示されている。例えば、2番のドット領域DAのセンサ方向読取画像IMt1上の位置は、w(2)である。搬送方向較正データ135に基づく較正済の位置(すなわち、センサユニット320の搬送の誤差の影響が低減された位置)は、未較正の位置w(2)から、この位置w(2)に対応する較正量gc(2)を減算して得られるw(2)−gc(2)=v(2)+g(2)−gc(2)である。ここで、差g(2)は、較正ラインL2xの特定に用いられた図10(C)の差f1(j)、f2(j)と同じく、搬送装置330(図1)によるセンサユニット320の搬送の誤差に起因して生じ得る。従って、位置w(2)に対応する差g(2)は、較正ラインL2xによって同じ位置w(2)に対応付けられる較正量gc(2)と、おおよそ同じである。従って、搬送方向較正データ135に基づく較正済の位置は、テストシートSHt(図11(A))上の実際の位置v(2)とおおよそ同じである。このように、センサ方向読取画像IMt1上の位置w(2)の画素の色値は、正しくは、搬送方向較正データ135に基づく較正済の位置v(2)の画素の色値である。プロセッサ110は、較正ラインL2xによって示されるこのような対応関係に従って、センサ方向読取画像IMt1の各画素の色値を調整することによって、画素の搬送方向D2の位置を較正する。 FIG. 11C is a graph of the calibration line L2x shown by the transport direction calibration data 135. The horizontal axis represents the position PO2 in the transport direction D2, and the vertical axis represents the calibration amount VC2. In the figure, the calibration amount gc (k) corresponding to the position w (k) is shown. FIG. 11D shows an example of calculating four calibrated positions. For example, the position of the second dot region DA on the sensor direction reading image IMt1 is w (2). The calibrated position based on the transport direction calibration data 135 (that is, the position where the influence of the transport error of the sensor unit 320 is reduced) corresponds to this position w (2) from the uncalibrated position w (2). W (2) -gc (2) = v (2) + g (2) -gc (2) obtained by subtracting the calibration amount gc (2). Here, the difference g (2) is the same as the differences f1 (j) and f2 (j) in FIG. 10 (C) used for specifying the calibration line L2x, and the difference g (2) is the sensor unit 320 according to the transport device 330 (FIG. 1). It can occur due to transport errors. Therefore, the difference g (2) corresponding to the position w (2) is approximately the same as the calibration amount gc (2) associated with the same position w (2) by the calibration line L2x. Therefore, the calibrated position based on the transport direction calibration data 135 is approximately the same as the actual position v (2) on the test sheet SHt (FIG. 11 (A)). As described above, the color value of the pixel at the position w (2) on the sensor direction reading image IMt1 is correctly the color value of the pixel at the calibrated position v (2) based on the transport direction calibration data 135. The processor 110 calibrates the position of the pixel transport direction D2 by adjusting the color value of each pixel of the sensor direction-read image IMt1 according to such a correspondence indicated by the calibration line L2x.

以上、搬送方向較正データ135を用いる搬送方向D2の画素の位置の較正について説明した。プロセッサ110は、センサ方向較正データ134を用いるセンサ方向D1の画素の位置の較正も、同様に行う。以上により、プロセッサ110は、センサ方向読取画像IMt1の画像データから、センサ方向D1の画素の位置と搬送方向D2の画素の位置とが較正された較正済センサ方向読取画像データを生成する。較正済センサ方向読取画像データの較正済センサ方向読取画像上では、ドット領域DAの位置と、ドット領域DAのテストシートSHt上での実際の位置と、の間の差は、低減されている。 The calibration of the pixel position in the transport direction D2 using the transport direction calibration data 135 has been described above. The processor 110 also calibrates the position of the pixel in the sensor direction D1 using the sensor direction calibration data 134 in the same manner. As described above, the processor 110 generates calibrated sensor-direction reading image data in which the positions of the pixels in the sensor direction D1 and the positions of the pixels in the transport direction D2 are calibrated from the image data of the sensor-direction reading image IMt1. The difference between the position of the dot region DA and the actual position of the dot region DA on the test sheet SHt on the calibrated sensor orientation scanned image of the calibrated sensor orientation scanned image data is reduced.

なお、S370(図6)では、プロセッサ110は、記憶装置115(具体的には、不揮発性記憶装置130)に格納済の最新の搬送方向較正データ135を利用する。この結果、S355で新たな搬送方向較正データ135が生成された場合には、その新たな搬送方向較正データ135が利用され、S355で新たな搬送方向較正データ135が生成されなかった場合には、記憶装置115に既に格納済の搬送方向較正データ135が利用される。 In S370 (FIG. 6), the processor 110 uses the latest transport direction calibration data 135 stored in the storage device 115 (specifically, the non-volatile storage device 130). As a result, when the new transport direction calibration data 135 is generated in S355, the new transport direction calibration data 135 is used, and when the new transport direction calibration data 135 is not generated in S355, the new transport direction calibration data 135 is used. The transport direction calibration data 135 already stored in the storage device 115 is used.

S380では、プロセッサ110は、計測パターンの解析処理を行う。S380のボックスの中には、解析処理の例のフローチャートが示されている。S383では、プロセッサ110は、較正済センサ方向読取画像の複数のドット領域DAのそれぞれの位置を算出し、位置を示す結果データを生成する。ドット領域DAの位置は、例えば、ドット領域DAを示す複数の画素の重心の位置である。S387では、プロセッサ110は、結果データを記憶装置(例えば、不揮発性記憶装置130)に格納する。そして、S380の処理、ひいては、図6の処理が終了する。結果データは、複数のノズルの特性の検査に利用される。例えば、ドット領域DAの位置が予め決められた許容範囲外である場合、そのドット領域DAに対応するノズルに不具合があると判断される。 In S380, the processor 110 analyzes the measurement pattern. A flowchart of an example of analysis processing is shown in the box of S380. In S383, the processor 110 calculates the position of each of the plurality of dot regions DA of the calibrated sensor direction-read image, and generates result data indicating the position. The position of the dot region DA is, for example, the position of the center of gravity of a plurality of pixels indicating the dot region DA. In S387, the processor 110 stores the result data in a storage device (eg, non-volatile storage device 130). Then, the processing of S380, and by extension, the processing of FIG. 6 is completed. The result data is used to inspect the characteristics of multiple nozzles. For example, when the position of the dot region DA is out of the predetermined allowable range, it is determined that there is a defect in the nozzle corresponding to the dot region DA.

以上のように、本実施例では、データ処理装置100は、搬送方向較正データ135を生成する生成装置の例である。複合機200(図1)は、スキャナ装置の例であり、読取部300と、読取部300を制御する制御部205と、を備えている。読取部300は、センサユニット320と、搬送装置330と、を備えている。センサユニット320は、予め決められた方向であるセンサ方向D1の位置が互いに異なる複数の読取センサ321を備えている。搬送装置330は、センサ方向D1に交差する搬送方向D2にセンサユニット320を搬送する。制御部205のプロセッサ210は、搬送装置330によるセンサユニット320の搬送中に複数の読取センサ321に対象物を光学的に読み取らせることによって対象物の画像データである読取データを生成するデータ生成部の例である。 As described above, in this embodiment, the data processing device 100 is an example of a generation device that generates the transport direction calibration data 135. The multifunction device 200 (FIG. 1) is an example of a scanner device, and includes a reading unit 300 and a control unit 205 for controlling the reading unit 300. The reading unit 300 includes a sensor unit 320 and a transport device 330. The sensor unit 320 includes a plurality of reading sensors 321 whose positions in the sensor direction D1, which is a predetermined direction, are different from each other. The transport device 330 transports the sensor unit 320 in the transport direction D2 that intersects the sensor direction D1. The processor 210 of the control unit 205 is a data generation unit that generates read data which is image data of the object by causing a plurality of reading sensors 321 to optically read the object while the sensor unit 320 is being conveyed by the transfer device 330. Is an example of.

図6の処理では、データ処理装置100のプロセッサ110は、読取データによって示される読取画像上の画素の位置を較正するための搬送方向較正データ135を生成する。具体的には、S350で、プロセッサ110は、印刷テストシートSHtのセンサ方向読取データを取得する。印刷テストシートSHt(図5)は、特定方向DWの位置が互いに異なるn本(nは3以上の整数)の基準線PtLを示している。センサ方向読取データは、S345で、複合機200によって生成される。S345では、印刷テストシートSHt(図7(A))は、印刷テストシートSHtの特定方向DWが複合機200のセンサ方向D1を向くように、複合機200に対して配置される。 In the process of FIG. 6, the processor 110 of the data processing device 100 generates transport direction calibration data 135 for calibrating the positions of the pixels on the scanned image indicated by the scanned data. Specifically, in S350, the processor 110 acquires the sensor direction reading data of the print test sheet SHt. The print test sheet SHt (FIG. 5) shows n reference lines PtL (n is an integer of 3 or more) in which the positions of the DWs in the specific directions are different from each other. The sensor direction reading data is generated by the multifunction device 200 in S345. In S345, the print test sheet SHt (FIG. 7A) is arranged with respect to the multifunction device 200 so that the specific direction DW of the print test sheet SHt faces the sensor direction D1 of the multifunction device 200.

図6のS355、より具体的には、図8のS435では、プロセッサ110は、センサ方向較正データ134を用いて、センサ方向読取データのセンサ方向読取画像IMt1(図7(B))のn個の基準線PtLのセンサ方向D1の位置t(j)に関連するn−1個のピッチ距離のセンサずれ較正を行う。図4で説明したように、センサ方向較正データ134は、読取データによって示される画像内の画素のセンサ方向D1の位置の較正量を示すデータである。センサ方向較正データ134は、図2の処理によって、予め決められている。プロセッサ110は、センサ方向較正データ134に基づいてセンサずれ較正されたピッチ距離を示すセンサずれ較正済ピッチデータを生成する。なお、ピッチ距離は、隣り合う2本の基準線PtLのそれぞれの位置を用いて特定される値である。すなわち、n−1個のピッチ距離は、n個の基準線PtLのセンサ方向D1の位置関係を示している。従って、n−1個のピッチ距離は、n個の基準線PtLのそれぞれの位置に関連する位置情報の例である。 In S355 of FIG. 6, more specifically, in S435 of FIG. 8, the processor 110 uses the sensor direction calibration data 134 to n pieces of the sensor direction read image IMt1 (FIG. 7 (B)) of the sensor direction read data. The sensor deviation calibration of n-1 pitch distances related to the position t (j) of the sensor direction D1 of the reference line PtL of the above is performed. As described with reference to FIG. 4, the sensor direction calibration data 134 is data indicating the amount of calibration of the position of the pixel in the sensor direction D1 in the image indicated by the read data. The sensor direction calibration data 134 is predetermined by the process of FIG. The processor 110 generates sensor deviation calibrated pitch data indicating the sensor deviation calibrated pitch distance based on the sensor orientation calibration data 134. The pitch distance is a value specified by using the respective positions of two adjacent reference lines PtL. That is, the n-1 pitch distances indicate the positional relationship of the n reference lines PtL in the sensor direction D1. Therefore, the n-1 pitch distance is an example of the position information related to each position of the n reference lines PtL.

図8のS423では、プロセッサ110は、印刷テストシートSHtの搬送方向読取データを取得する。搬送方向読取データは、S420で、複合機200によって生成される。S420では、印刷テストシートSHt(図9(A)、図9(C))は、印刷テストシートSHtの特定方向DWが複合機200の搬送方向D2を向くように、複合機200に対して配置される。 In S423 of FIG. 8, the processor 110 acquires the transport direction reading data of the print test sheet SHt. The transport direction read data is generated by the multifunction device 200 in S420. In S420, the print test sheet SHt (FIGS. 9 (A) and 9 (C)) is arranged with respect to the multifunction device 200 so that the specific direction DW of the print test sheet SHt faces the transport direction D2 of the multifunction device 200. Will be done.

図8のS445−S460では、プロセッサ110は、搬送方向読取データ(S423)とセンサずれ較正済ピッチデータ(S435)とを用いることによって、読取画像内の画素の搬送方向D2の位置の較正量を示す搬送方向較正データ135を生成する。S465では、プロセッサ110は、搬送方向較正データ135を記憶装置に格納する。 In S445-S460 of FIG. 8, the processor 110 uses the transport direction read data (S423) and the sensor deviation calibrated pitch data (S435) to calibrate the position of the pixel in the read image in the transport direction D2. The transport direction calibration data 135 shown is generated. In S465, the processor 110 stores the transport direction calibration data 135 in the storage device.

上述したように、センサユニット320上の複数の読取センサ321のセンサ方向D1の位置は、安定しており、その変動は小さい。従って、図8のS435では、プロセッサ110は、予め決められたセンサ方向較正データ134を用いることによって、センサ方向読取データによって示される複数の基準線PtLの複数のピッチ距離のセンサずれ較正を、適切に、実行できる。 As described above, the positions of the plurality of reading sensors 321 on the sensor unit 320 in the sensor direction D1 are stable, and the fluctuation thereof is small. Therefore, in S435 of FIG. 8, the processor 110 appropriately performs sensor deviation calibration of a plurality of pitch distances of the plurality of reference lines PtL indicated by the sensor direction reading data by using the predetermined sensor direction calibration data 134. Can be executed.

また、読取画像内の画素の搬送方向D2の位置は、搬送装置330によって搬送されるセンサユニット320の搬送方向D2の位置に対応付けられている。センサユニット320の搬送方向D2の位置は、搬送の誤差などの種々の原因によって、設計の位置からずれ得る。本実施例では、読取画像内の画素の搬送方向D2の位置の較正量を示す搬送方向較正データ135は、搬送方向読取データ(S423)と、センサずれ較正済ピッチデータ(センサ方向読取データとセンサ方向較正データ134とを用いて生成される(S435))と、を用いることによって生成される。従って、適切な搬送方向較正データ135を生成できる。 Further, the position of the pixel in the transport direction D2 in the scanned image is associated with the position of the transport direction D2 of the sensor unit 320 transported by the transport device 330. The position of the transport direction D2 of the sensor unit 320 may deviate from the design position due to various causes such as a transport error. In this embodiment, the transport direction calibration data 135 indicating the calibration amount of the position of the pixel in the transport direction D2 in the scanned image is the transport direction read data (S423) and the sensor misalignment calibrated pitch data (sensor direction read data and sensor). It is generated by using (S435)) and by using the direction calibration data 134. Therefore, appropriate transport direction calibration data 135 can be generated.

なお、印刷テストシートSHt(図5)から較正パターンPtが省略されてよい。この場合も、複数の基準線PtLに代えて、複数のドット領域DAを基準部分として用いることによって、搬送方向較正データ135を生成可能である。ただし、複数のドット領域DAが十分に広い範囲に分布していない場合、広い範囲に適用可能な搬送方向較正データ135を生成することは、困難である。本実施例のように、印刷テストシートSHtが計測パターンIMxに加えて複数の基準線PtLを含む場合、適切な搬送方向較正データ135の生成が可能である。 The calibration pattern Pt may be omitted from the print test sheet SHt (FIG. 5). Also in this case, the transport direction calibration data 135 can be generated by using a plurality of dot regions DA as reference portions instead of the plurality of reference lines PtL. However, if the plurality of dot region DAs are not distributed in a sufficiently wide range, it is difficult to generate the transport direction calibration data 135 applicable to a wide range. When the print test sheet SHt includes a plurality of reference lines PtL in addition to the measurement pattern IMx as in this embodiment, it is possible to generate appropriate transport direction calibration data 135.

また、図8のS415−S425で、プロセッサ110は、第1位置PS1(図9(A))の印刷テストシートSHtの第1搬送方向読取データと、第1位置PS1とは搬送方向D2の位置が異なる第2位置PS2(図9(C))の印刷テストシートSHtの第2搬送方向読取データと、を取得する。図9(C)、図9(D)に示すように、第2位置PS2に対応するn−1本の基準線PtLを含む第2範囲Rbの一部は、第1位置PS1に対応するn−1本の基準線PtLを含む第1範囲Raに重なっている。プロセッサ110は、第1搬送方向読取データと第2搬送方向読取データとセンサずれ較正済ピッチデータとを用いることによって、搬送方向較正データ135を生成する(図8:S445−S460)。従って、搬送方向較正データ135を適用可能な搬送方向D2の位置の範囲を拡張できる。 Further, in S415-S425 of FIG. 8, the processor 110 uses the first transfer direction reading data of the print test sheet SHt of the first position PS1 (FIG. 9 (A)), and the first position PS1 is the position of the transfer direction D2. The second transport direction reading data of the print test sheet SHt of the second position PS2 (FIG. 9 (C)) having a different value is acquired. As shown in FIGS. 9C and 9D, a part of the second range Rb including n-1 reference lines PtL corresponding to the second position PS2 is n corresponding to the first position PS1. -Overlaps the first range Ra containing one reference line PtL. The processor 110 generates the transfer direction calibration data 135 by using the first transfer direction read data, the second transfer direction read data, and the sensor deviation calibrated pitch data (FIG. 8: S445-S460). Therefore, the range of positions in the transport direction D2 to which the transport direction calibration data 135 can be applied can be extended.

また、S445、S450では、プロセッサ110は、第1搬送方向読取データ(図9(B))とセンサずれ較正済ピッチデータ(S435)とを用いることによって、搬送方向較正データ135のうち、第1範囲Raに適用すべき第1較正データを生成する。S445、S455では、プロセッサ110は、第2搬送方向読取データ(図9(D))とセンサずれ較正済ピッチデータ(S435)とを用いることによって、搬送方向較正データ135のうち、第2範囲Rbから第1範囲Raを除いた残りの範囲Rbrに適用すべき第2較正データを生成する。従って、プロセッサ110は、第1較正データと第2較正データとを用いることによって、適切な搬送方向較正データ135を生成できる。 Further, in S445 and S450, the processor 110 uses the first transport direction read data (FIG. 9B) and the sensor deviation calibrated pitch data (S435), so that the processor 110 is the first of the transport direction calibration data 135. Generate the first calibration data to be applied to the range Ra. In S445 and S455, the processor 110 uses the second transport direction read data (FIG. 9 (D)) and the sensor deviation calibrated pitch data (S435) to obtain the second range Rb of the transport direction calibration data 135. The second calibration data to be applied to the remaining range Rbr excluding the first range Ra is generated. Therefore, the processor 110 can generate appropriate transport direction calibration data 135 by using the first calibration data and the second calibration data.

また、印刷テストシートSHt(図5)は、複数の基準線PtLと、特定の処理の対象である計測パターンIMxと、が印刷されたシートである。そして、S370、S380(図6)では、プロセッサ110は、計測パターンIMxに対して特定の処理を実行する。特定の処理は、S370とS383を含んでいる。S370では、センサ方向読取データ(図7(B))によって示される計測パターンIMxは、センサ方向較正データ134と搬送方向較正データ135とを用いて較正される。S383では、較正済の計測パターンIMxを解析することによって、解析結果(本実施例では、ドット領域DAの位置)を示す結果データが生成される。較正に利用される搬送方向較正データ135は、S355(図6)で、印刷テストシートSHt上の複数の基準線PtLを用いて生成される。このように、印刷テストシートSHt上の計測パターンIMxが、同じ印刷テストシートSHt上の複数の基準線PtLを用いて較正されるので、計測パターンIMxに対する高精度の処理を、容易に実現できる。 Further, the print test sheet SHt (FIG. 5) is a sheet on which a plurality of reference lines PtL and a measurement pattern IMx that is a target of a specific process are printed. Then, in S370 and S380 (FIG. 6), the processor 110 executes a specific process for the measurement pattern IMx. The specific process includes S370 and S383. In S370, the measurement pattern IMx indicated by the sensor direction reading data (FIG. 7B) is calibrated using the sensor direction calibration data 134 and the transport direction calibration data 135. In S383, by analyzing the calibrated measurement pattern IMx, result data indicating the analysis result (in this embodiment, the position of the dot region DA) is generated. The transport direction calibration data 135 used for calibration is generated in S355 (FIG. 6) using a plurality of reference lines PtL on the print test sheet SHt. As described above, since the measurement pattern IMx on the print test sheet SHt is calibrated using a plurality of reference lines PtL on the same print test sheet SHt, high-precision processing for the measurement pattern IMx can be easily realized.

また、プロセッサ110は、生成条件が満たされない場合(図6:S310:No)、新たな搬送方向較正データ135を生成せずに、生成条件が満たされる場合(S310:Yes)、新たな搬送方向較正データ135を生成する(S355)。そして、S370では、生成条件が満たされない場合(すなわち、新たな搬送方向較正データ135が生成されない場合)、プロセッサ110は、記憶装置115に格納済の搬送方向較正データ135を用いて計測パターンIMxを較正する。生成条件が満たされる場合(すなわち、新たな搬送方向較正データ135が生成された場合)、プロセッサ110は、新たな搬送方向較正データ135を用いて計測パターンIMxを較正する。このように、生成条件が満たされない場合には、新たな搬送方向較正データ135の生成が省略され、記憶装置115に格納済の搬送方向較正データ135が用いられるので、処理を簡素化できる。例えば、複数のプリンタによって印刷された複数枚の印刷テストシートSHtを続けて処理する場合、最初の1枚の印刷テストシートSHtについては、図8の処理が実行され、他の印刷テストシートSHtについては、図8の処理が省略される。従って、ユーザの負担を軽減できる(例えば、図9(A)、図9(C)のような印刷テストシートSHtの読取りが、省略される)。 Further, when the generation condition is not satisfied (FIG. 6: S310: No), the processor 110 does not generate the new transfer direction calibration data 135, and when the generation condition is satisfied (S310: Yes), the new transfer direction Calibration data 135 is generated (S355). Then, in S370, when the generation condition is not satisfied (that is, when new transport direction calibration data 135 is not generated), the processor 110 uses the transport direction calibration data 135 stored in the storage device 115 to perform the measurement pattern IMx. Calibrate. If the generation conditions are met (ie, when new transport direction calibration data 135 is generated), the processor 110 calibrates the measurement pattern IMx with the new transport direction calibration data 135. As described above, when the generation condition is not satisfied, the generation of the new transport direction calibration data 135 is omitted, and the transport direction calibration data 135 stored in the storage device 115 is used, so that the process can be simplified. For example, when a plurality of print test sheets SHt printed by a plurality of printers are continuously processed, the process of FIG. 8 is executed for the first print test sheet SHt, and the other print test sheet SHt is processed. Is omitted from the process shown in FIG. Therefore, the burden on the user can be reduced (for example, reading of the print test sheet SHt as shown in FIGS. 9A and 9C is omitted).

B.変形例:
(1)搬送方向較正データ135の生成処理は、上記の処理に代えて、他の種々の処理であってよい。図10(D)の実施例では、プロセッサ110は、搬送方向D2の位置PO2の複数の範囲Ra、Rvrのそれぞれの較正データを生成する。ここで、プロセッサ110は、第2範囲Rbの較正データを、第2搬送方向読取画像IMt2b(図9(D))のn個の基準線PtLを用いて生成し、第1範囲Raから第2範囲Rbを除いた残りの範囲の較正データを、第1搬送方向読取画像IMt2a(図9(B))の複数の基準線PtLを用いて生成してもよい。いずれの場合も、基準線PtLの総数nは、3以上の種々の値であってよい。また、プロセッサ110は、複数のデータ点M2a、M2b(図10(C))の全てを近似する1つの近似ラインを用いて搬送方向較正データ135を生成してよい。また、図8のS465では、プロセッサ110は、現行の搬送方向較正データ135を記憶装置から削除せずに、新たに生成した搬送方向較正データ135を記憶装置に格納してよい。この場合、プロセッサ110は、読取画像を較正するために(例えば、図6のS370で)、最新の搬送方向較正データ135を選択して用いることが好ましい。
B. Modification example:
(1) The process of generating the transport direction calibration data 135 may be various other processes instead of the above process. In the embodiment of FIG. 10D, the processor 110 generates calibration data for each of the plurality of ranges Ra and Rvr of the position PO2 in the transport direction D2. Here, the processor 110 generates the calibration data of the second range Rb using the n reference lines PtL of the second transport direction reading image IMt2b (FIG. 9 (D)), and generates the calibration data from the first range Ra to the second. Calibration data of the remaining range excluding the range Rb may be generated using a plurality of reference lines PtL of the first transport direction reading image IMt2a (FIG. 9B). In any case, the total number n of the reference lines PtL may be various values of 3 or more. Further, the processor 110 may generate the transport direction calibration data 135 using one approximation line that approximates all of the plurality of data points M2a and M2b (FIG. 10 (C)). Further, in S465 of FIG. 8, the processor 110 may store the newly generated transport direction calibration data 135 in the storage device without deleting the current transport direction calibration data 135 from the storage device. In this case, the processor 110 preferably selects and uses the latest transport direction calibration data 135 to calibrate the scanned image (eg, in S370 of FIG. 6).

また、図10(C)、図10(D)の実施例では、較正量VC2は、隣り合う2本の基準線PtLの間のピッチ距離の差f1(j)、f2(j)を用いて特定されている。これに代えて、プロセッサ110は、基準線PtLの位置の差を用いて、較正量VC2を特定してよい。例えば、プロセッサ110は、印刷テストシートSHt上の基準線PtLの位置に基づいて、読取面Us上の基準線PtLの位置を特定する。そして、プロセッサ110は、読取面Us上の基準線PtLの位置と、搬送方向読取画像IMt2a、IMt2b上の同じ基準線PtLの位置と、の間の差を、較正量VC2として採用してよい。この場合、S435(図8)では、プロセッサ110は、センサ方向較正データ134(図1)を用いて、印刷テストシートSHt上のn本の基準線PtLのそれぞれのセンサずれ較正済の位置を特定する。そして、プロセッサ110は、n本の基準線PtLのそれぞれのセンサずれ較正済位置を示すセンサずれ較正済位置データを生成する。プロセッサ110は、センサずれ較正済位置データによって示されるセンサずれ較正済位置と、図9(A)、図9(C)の印刷テストシートSHtの位置PS1、PS2と、を用いて、読取面Us上の基準線PtLの位置を特定できる。この場合、プロセッサ110は、n本の基準線PtLのそれぞれの位置を用いて、n本の基準線PtLの分布範囲の全体に適用可能な較正データを生成できる。ここで、基準線PtLの総数nは、2以上の種々の値であってよい。 Further, in the embodiment of FIGS. 10 (C) and 10 (D), the calibration amount VC2 uses the difference f1 (j) and f2 (j) of the pitch distance between the two adjacent reference lines PtL. Has been identified. Instead, the processor 110 may use the difference in position of the reference line PtL to identify the calibration amount VC2. For example, the processor 110 identifies the position of the reference line PtL on the reading surface Us based on the position of the reference line PtL on the print test sheet SHt. Then, the processor 110 may adopt the difference between the position of the reference line PtL on the reading surface Us and the position of the same reference line PtL on the transport direction reading images IMt2a and IMt2b as the calibration amount VC2. In this case, in S435 (FIG. 8), the processor 110 uses the sensor direction calibration data 134 (FIG. 1) to identify the sensor deviation calibrated positions of the n reference lines PtL on the print test sheet SHt. To do. Then, the processor 110 generates sensor deviation calibrated position data indicating each sensor deviation calibrated position of the n reference lines PtL. The processor 110 uses the sensor deviation calibrated position indicated by the sensor deviation calibrated position data and the positions PS1 and PS2 of the print test sheets SHt shown in FIGS. 9 (A) and 9 (C) to read the reading surface Us. The position of the upper reference line PtL can be specified. In this case, the processor 110 can use the respective positions of the n reference lines PtL to generate calibration data applicable to the entire distribution range of the n reference lines PtL. Here, the total number n of the reference lines PtL may be various values of 2 or more.

なお、第1範囲Raは、第1搬送方向読取画像IMt2aのn本の基準線PtLのうちのp本(pは2以上、n以下の整数)の基準線PtLの搬送方向D2の分布範囲であってよい。第1範囲Raは、第1搬送方向読取画像IMt2aのn本の基準線PtLを用いることによって生成される較正データを適用可能な範囲(すなわち、較正可能な範囲)に設定されることが好ましい。同様に、第2範囲Rbは、第2搬送方向読取画像IMt2bのn本の基準線PtLのうちのq本(qは2以上、n以下の整数)の基準線PtLの搬送方向D2の分布範囲であってよい。第2範囲Rbは、第2搬送方向読取画像IMt2bのn本の基準線PtLを用いることによって生成される較正データを適用可能な範囲(すなわち、較正可能な範囲)に設定されることが好ましい。なお、これらの範囲Ra、Rbは、第2範囲Rbの一部が第1範囲Raに重なるように、設定されることが好ましい。 The first range Ra is the distribution range of the reference line PtL of the p lines (p is an integer of 2 or more and n or less) out of the n reference lines PtL of the first transport direction reading image IMt2a in the transport direction D2. It may be there. The first range Ra is preferably set to a range (that is, a calibable range) in which the calibration data generated by using the n reference lines PtL of the first transport direction reading image IMt2a is applicable. Similarly, the second range Rb is the distribution range of the reference lines PtL of q (q is an integer of 2 or more and n or less) out of the n reference lines PtL of the second transport direction read image IMt2b in the transport direction D2. May be. The second range Rb is preferably set to a range (that is, a calibable range) to which the calibration data generated by using n reference lines PtL of the second transport direction reading image IMt2b can be applied. It is preferable that these ranges Ra and Rb are set so that a part of the second range Rb overlaps with the first range Ra.

(2)生成条件(図6:S310)は、記憶装置に格納済の搬送方向較正データ135が不適切であり得ることを示す種々の条件であってよい。例えば、生成条件は、現行の搬送方向較正データ135が生成されてからの読取部300による読取りの総回数が予め決められた閾値を超えることであってよい。このように、生成条件としては、現行の搬送方向較正データ135が生成されてからの経過時間が長い場合に満たされ得る種々の条件であってよい。また、生成条件の判断は、省略されてよい。すなわち、図6の処理が行われる毎に、搬送方向較正データ135が生成されてよい。例えば、S310、S320、S325、S330は、省略されてよい。 (2) The generation condition (FIG. 6: S310) may be various conditions indicating that the transport direction calibration data 135 stored in the storage device may be inappropriate. For example, the generation condition may be that the total number of readings by the reading unit 300 since the current transport direction calibration data 135 is generated exceeds a predetermined threshold value. As described above, the generation conditions may be various conditions that can be satisfied when the elapsed time from the generation of the current transport direction calibration data 135 is long. Further, the determination of the generation condition may be omitted. That is, the transport direction calibration data 135 may be generated each time the process of FIG. 6 is performed. For example, S310, S320, S325, and S330 may be omitted.

(3)図8の処理において、搬送方向較正データ135の生成に利用される搬送方向読取データの総数Zは、2に限らず、1であってよい。例えば、センサ方向読取画像IMt1(図7(B))において、計測パターンIMxの全体が第2範囲Rb(図9(D))内である場合、第1範囲Raのための搬送方向読取画像IMt2a(図9(B))は省略されてよい。そして、第2範囲Rb内の位置のみを較正するデータが、搬送方向較正データ135として生成されてよい。また、3以上の搬送方向読取データを用いて、搬送方向D2の幅広い範囲を較正可能な搬送方向較正データ135が生成されてよい。 (3) In the process of FIG. 8, the total number Z of the transport direction read data used for generating the transport direction calibration data 135 is not limited to 2, but may be 1. For example, in the sensor direction reading image IMt1 (FIG. 7B), when the entire measurement pattern IMx is within the second range Rb (FIG. 9D), the transport direction reading image IMt2a for the first range Ra. (FIG. 9B) may be omitted. Then, data for calibrating only the position within the second range Rb may be generated as the transport direction calibration data 135. Further, the transport direction calibration data 135 capable of calibrating a wide range of the transport direction D2 may be generated by using three or more transport direction read data.

(4)印刷テストシート上の対象画像は、図5の計測パターンIMxに代えて、他の任意の画像であってよい。例えば、対象画像は、デジタルカメラによって撮影された画像であってよい。また、較正済の対象画像を解析する処理は、S380(図6)の処理に代えて、他の任意の処理であってよい。例えば、対象画像に含まれる特定のオブジェクト(例えば、人物)を抽出する処理が行われてよい。 (4) The target image on the print test sheet may be any other image instead of the measurement pattern IMx of FIG. For example, the target image may be an image taken by a digital camera. Further, the process of analyzing the calibrated target image may be any other process instead of the process of S380 (FIG. 6). For example, a process of extracting a specific object (for example, a person) included in the target image may be performed.

(5)印刷テストシートSHt(図5)からは、計測パターンIMxが省略されてよい。すなわち、図6の処理は、単純に搬送方向較正データ135を生成する処理であってよく、計測パターンIMxの処理(S370、S380)は省略されてよい。 (5) The measurement pattern IMx may be omitted from the print test sheet SHt (FIG. 5). That is, the process of FIG. 6 may be a process of simply generating the transfer direction calibration data 135, and the process of the measurement pattern IMx (S370, S380) may be omitted.

(6)搬送方向較正データ135は、印刷テストシートSHt上の計測パターンIMxの較正に限らず、他の任意の読取データの較正に利用されてよい。 (6) The transport direction calibration data 135 is not limited to the calibration of the measurement pattern IMx on the print test sheet SHt, and may be used for the calibration of any other read data.

(7)搬送方向較正データ135の生成に利用される基準部分は、基準線PtL(図5のような線に代えて、位置を特定可能な任意の形状の部分であってよい。例えば、チェッカーフラッグのような格子パターンの複数の矩形部分が、基準部分として用いられてよい。また、複数の基準部分は、印刷テストシートSHt上の長手方向DLに並んで配置されてもよい。 (7) The reference portion used for generating the transport direction calibration data 135 may be a reference line PtL (instead of a line as shown in FIG. 5, a portion having an arbitrary shape whose position can be specified, for example, a checker. A plurality of rectangular portions of a lattice pattern such as a flag may be used as reference portions, and the plurality of reference portions may be arranged side by side in the longitudinal direction DL on the print test sheet SHt.

(8)読取部300の支持面Us上でシートの位置と向きとを調整する方法は、シートの辺を枠393の内周面3iに接触させる方法に代えて、他の任意の方法であってよい。例えば、支持面Us上には、シートの端の位置を示すマークが設けられてよい。ユーザは、このマークに合わせてシートの位置と向きとを調整してよい。 (8) The method of adjusting the position and orientation of the sheet on the support surface Us of the reading unit 300 is an arbitrary method instead of the method of bringing the side of the sheet into contact with the inner peripheral surface 3i of the frame 393. You can. For example, a mark indicating the position of the edge of the sheet may be provided on the support surface Us. The user may adjust the position and orientation of the seat according to this mark.

(9)データ処理装置100(図1)に代えて、複合機200が、種々の処理を実行してよい。例えば、複合機200のプロセッサ210は、第2プログラム232に従って、図6の処理を実行してよい。このように、スキャナ装置の制御装置が、搬送方向較正データ135を生成してよい。また、複合機200からは、印刷部260が省略されてよい。すなわち、複合機200に代えて、単機能のスキャナ装置が用いられてよい。また、ネットワークを介して互いに通信可能な複数の装置(例えば、コンピュータ)が、搬送方向較正データ135を生成する処理の機能を一部ずつ分担して、全体として、搬送方向較正データ135を生成する処理の機能を提供してもよい(これらの装置を備えるシステムが生成装置に対応する)。 (9) Instead of the data processing device 100 (FIG. 1), the multifunction device 200 may execute various processes. For example, the processor 210 of the multifunction device 200 may execute the process of FIG. 6 according to the second program 232. In this way, the control device of the scanner device may generate the transport direction calibration data 135. Further, the printing unit 260 may be omitted from the multifunction device 200. That is, a single-function scanner device may be used instead of the multifunction device 200. Further, a plurality of devices (for example, a computer) capable of communicating with each other via the network share the function of the process of generating the transport direction calibration data 135, and generate the transport direction calibration data 135 as a whole. Processing functions may be provided (systems with these devices correspond to generators).

上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。例えば、図8のS450、S455、S460が、専用のハードウェア回路によって実行されてもよい。 In each of the above embodiments, a part of the configuration realized by the hardware may be replaced with software, and conversely, a part or all of the configuration realized by the software may be replaced with the hardware. May be good. For example, S450, S455, and S460 in FIG. 8 may be executed by a dedicated hardware circuit.

また、本発明の機能の一部または全部がコンピュータプログラムで実現される場合には、そのプログラムは、コンピュータ読み取り可能な記録媒体(例えば、一時的ではない記録媒体)に格納された形で提供することができる。プログラムは、提供時と同一または異なる記録媒体(コンピュータ読み取り可能な記録媒体)に格納された状態で、使用され得る。「コンピュータ読み取り可能な記録媒体」は、メモリーカードやCD−ROMのような携帯型の記録媒体に限らず、各種ROM等のコンピュータ内の内部記憶装置や、ハードディスクドライブ等のコンピュータに接続されている外部記憶装置も含み得る。 In addition, when a part or all of the functions of the present invention are realized by a computer program, the program is provided in a form stored in a computer-readable recording medium (for example, a non-temporary recording medium). be able to. The program may be used while being stored on the same or different recording medium (computer-readable recording medium) as it was provided. The "computer-readable recording medium" is not limited to a portable recording medium such as a memory card or a CD-ROM, but is connected to an internal storage device in the computer such as various ROMs or a computer such as a hard disk drive. It may also include an external storage device.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。 Although the present invention has been described above based on Examples and Modifications, the above-described embodiments of the invention are for facilitating the understanding of the present invention and do not limit the present invention. The present invention can be modified and improved without departing from the spirit thereof, and the present invention includes equivalents thereof.

3i…内周面、3C1、3C2…隅、3i1…第1部分、3i3…第3部分、3i4…第4部分、100…データ処理装置、110…プロセッサ、115…記憶装置、120…揮発性記憶装置、130…不揮発性記憶装置、131…第1プログラム、132…第2プログラム、134…センサ方向較正データ、135…搬送方向較正データ、140…表示部、150…操作部、170…通信インタフェース、200…複合機、205…制御部、210…プロセッサ、215…記憶装置、220…揮発性記憶装置、230…不揮発性記憶装置、231…第1プログラム、232…第2プログラム、240…表示部、250…操作部、260…印刷部、270…通信インタフェース、290…筐体、292…カバー、300…読取部、320…センサユニット、321…読取センサ、330…搬送装置、393…枠、394…支持台、Us…支持面(読取面)、D1…第1方向(センサ方向)、D2…第2方向(搬送方向)、D3…第3方向(上方向)、DL…長手方向、DW…幅方向(特定方向)、SHs…基準シート、Ps…基準パターン、PsL…基準線、SHt…印刷テストシート、Pt…較正パターン、PtL…基準線、Ra…第1範囲、Rb…第2範囲、Rbr…残余範囲、IMt1…センサ方向読取画像、IMt2a、IMt2b…搬送方向読取画像 3i ... Inner peripheral surface, 3C1, 3C2 ... Corner, 3i1 ... 1st part, 3i3 ... 3rd part, 3i4 ... 4th part, 100 ... Data processing device, 110 ... Processor, 115 ... Storage device, 120 ... Volatile memory Device, 130 ... Non-volatile storage device, 131 ... 1st program, 132 ... 2nd program, 134 ... Sensor direction calibration data, 135 ... Transport direction calibration data, 140 ... Display unit, 150 ... Operation unit, 170 ... Communication interface, 200 ... Composite machine, 205 ... Control unit, 210 ... Processor, 215 ... Storage device, 220 ... Volatile storage device, 230 ... Non-volatile storage device, 231 ... First program, 232 ... Second program, 240 ... Display unit, 250 ... operation unit, 260 ... printing unit, 270 ... communication interface, 290 ... housing, 292 ... cover, 300 ... reading unit, 320 ... sensor unit, 321 ... reading sensor, 330 ... transport device, 393 ... frame, 394 ... Support base, Us ... Support surface (reading surface), D1 ... 1st direction (sensor direction), D2 ... 2nd direction (conveyance direction), D3 ... 3rd direction (upward direction), DL ... longitudinal direction, DW ... width Direction (specific direction), SHs ... reference sheet, Ps ... reference pattern, PsL ... reference line, SHt ... print test sheet, Pt ... calibration pattern, PtL ... reference line, Ra ... first range, Rb ... second range, Rbr ... Residual range, IMt1 ... Sensor direction reading image, IMt2a, IMt2b ... Transport direction reading image

Claims (7)

予め決められた方向であるセンサ方向の位置が互いに異なる複数の読取センサを備えるセンサユニットと、前記センサ方向に交差する搬送方向に前記センサユニットを搬送する搬送装置と、前記搬送装置による前記センサユニットの搬送中に前記複数の読取センサに対象物を光学的に読み取らせることによって前記対象物の画像データである読取データを生成するデータ生成部と、を備えるスキャナ装置によって生成される前記読取データによって示される読取画像内の画素の位置を較正するための較正データを生成するコンピュータのためのプログラムであって、
特定方向の位置が互いに異なるn個(nは2以上の整数)の基準部分を示す、印刷された印刷テストシートであって、前記印刷テストシートの前記特定方向が前記スキャナ装置の前記センサ方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データであるセンサ方向読取データを取得する第1取得機能と、
前記センサ方向読取データによって示される前記n個の基準部分のそれぞれの前記センサ方向の位置に関連する複数の位置情報を、前記読取画像内の前記センサ方向の画素の位置の較正量を示す予め決められたセンサ方向較正データを用いて較正することによって、複数の較正済位置情報を示す較正済基準部分位置データを生成する較正済基準部分位置データ生成機能と、
前記印刷テストシートの前記特定方向が前記スキャナ装置の前記搬送方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データである搬送方向読取データを取得する第2取得機能と、
前記搬送方向読取データと前記較正済基準部分位置データとを用いることによって、読取データの画像内の前記搬送方向の画素の位置の較正量を示す搬送方向較正データを生成する較正データ生成機能と、
前記搬送方向較正データを記憶装置に格納する格納処理機能と、
をコンピュータに実現させるためのプログラム。
A sensor unit having a plurality of reading sensors having different positions in the sensor direction, which is a predetermined direction, a transport device for transporting the sensor unit in a transport direction intersecting the sensor direction, and the sensor unit by the transport device. By the reading data generated by a scanner device including a data generation unit that generates reading data which is image data of the object by having the plurality of reading sensors optically read the object during the transportation of the object. A program for a computer that produces calibration data for calibrating the position of a sensor in the scanned image shown.
A printed print test sheet showing n reference portions (n is an integer of 2 or more) whose positions in specific directions are different from each other, wherein the specific direction of the print test sheet indicates the sensor direction of the scanner device. The first acquisition function of acquiring the sensor direction reading data which is the reading data of the print test sheet generated by causing the scanner device to read the print test sheet arranged so as to face the scanner device. When,
A plurality of position information related to the position in the sensor direction of each of the n reference portions indicated by the sensor direction reading data is determined in advance to indicate the calibration amount of the position of the pixel in the sensor direction in the read image. A calibrated reference partial position data generation function that generates calibrated reference partial position data indicating a plurality of calibrated position information by calibrating using the obtained sensor direction calibration data.
The print test sheet generated by having the scanner device read the print test sheet arranged with respect to the scanner device so that the specific direction of the print test sheet faces the transport direction of the scanner device. The second acquisition function for acquiring the transport direction reading data, which is the reading data of the above, and
A calibration data generation function that generates transport direction calibration data indicating the amount of calibration of the position of the pixel in the transport direction in the image of the read data by using the transport direction read data and the calibrated reference partial position data, and a calibration data generation function.
A storage processing function for storing the transport direction calibration data in a storage device, and
A program to realize the above on a computer.
請求項1に記載のプログラムであって、
前記第2取得機能は、
前記スキャナ装置に対して第1位置に配置された前記印刷テストシートを前記スキャナ装置に読み取らせることによって生成される第1搬送方向読取データを取得する機能と、
前記スキャナ装置に対して前記第1位置とは前記搬送方向の位置が異なる第2位置に配置された前記印刷テストシートを前記スキャナ装置に読み取らせることによって生成される第2搬送方向読取データを取得する機能であって、前記第1位置の前記印刷テストシートの前記n個の基準部分のうちのp個(pは2以上、n以下の整数)の基準部分の前記搬送方向の第1分布範囲に、前記第2位置の前記印刷テストシートの前記n個の基準部分のうちのq個(qは2以上、n以下の整数)の基準部分の前記搬送方向の第2分布範囲の一部が重なっている、前記機能と、
を含み、
前記較正データ生成機能は、前記第1搬送方向読取データと前記第2搬送方向読取データと前記較正済基準部分位置データとを用いることによって、前記搬送方向較正データを生成する、
プログラム。
The program according to claim 1.
The second acquisition function is
A function of acquiring the first transport direction reading data generated by having the scanner device read the print test sheet arranged at the first position with respect to the scanner device, and
Acquires second transport direction reading data generated by having the scanner device read the print test sheet arranged at a second position different from the first position in the transport direction with respect to the scanner device. The first distribution range in the transport direction of p (p is an integer of 2 or more and n or less) of the n reference parts of the print test sheet at the first position. In addition, a part of the second distribution range in the transport direction of q (q is an integer of 2 or more and n or less) of the n reference parts of the print test sheet at the second position is Overlapping, with the above functions
Including
The calibration data generation function generates the transport direction calibration data by using the first transport direction read data, the second transport direction read data, and the calibrated reference partial position data.
program.
請求項2に記載のプログラムであって、
前記較正データ生成機能は、
前記第1搬送方向読取データと前記較正済基準部分位置データとを用いることによって、前記搬送方向較正データのうち、前記第1分布範囲に適用すべきデータを生成する機能と、
前記第2搬送方向読取データと前記較正済基準部分位置データとを用いることによって、前記搬送方向較正データのうち、前記第2分布範囲から前記第1分布範囲を除いた残りの範囲に適用すべきデータを生成する機能と、
を含む、プログラム。
The program according to claim 2.
The calibration data generation function is
By using the first transport direction reading data and the calibrated reference partial position data, a function of generating data to be applied to the first distribution range among the transport direction calibration data, and
By using the second transport direction reading data and the calibrated reference partial position data, it should be applied to the remaining range of the transport direction calibration data excluding the first distribution range from the second distribution range. The ability to generate data and
Including the program.
請求項1から3のいずれかに記載のプログラムであって、
前記印刷テストシートは、前記n個の基準部分と、特定の処理の対象である対象画像と、が印刷されたシートであり、
前記特定の処理は、
前記センサ方向読取データによって示される前記対象画像を、前記センサ方向較正データと前記搬送方向較正データとを用いて較正する較正処理と、
較正済の対象画像を解析することによって、解析結果を示す結果データを生成する結果データ生成処理と、
を含み、
前記プログラムは、前記特定の処理を実行する機能を、コンピュータに実現させる、
プログラム。
The program according to any one of claims 1 to 3.
The print test sheet is a sheet on which the n reference portions and a target image to be processed by a specific process are printed.
The specific process
A calibration process of calibrating the target image indicated by the sensor direction reading data using the sensor direction calibration data and the transport direction calibration data.
Result data generation processing that generates result data showing the analysis result by analyzing the calibrated target image,
Including
The program makes the computer realize the function of executing the specific process.
program.
請求項4に記載のプログラムであって、
前記較正データ生成機能は、
新たな搬送方向較正データを生成するための生成条件が満たされない場合には、新たな搬送方向較正データを生成せずに、
前記生成条件が満たされる場合には、新たな搬送方向較正データを生成し、
前記較正処理は、
前記生成条件が満たされない場合には、前記記憶装置に格納済の前記搬送方向較正データを用いて前記対象画像を較正し、
前記生成条件が満たされる場合には、前記較正データ生成機能によって生成された前記新たな搬送方向較正データを用いて前記対象画像を較正する、
プログラム。
The program according to claim 4.
The calibration data generation function is
If the generation conditions for generating new transport direction calibration data are not met, without generating new transport direction calibration data,
When the above generation conditions are satisfied, new transport direction calibration data is generated, and the data is generated.
The calibration process is
When the generation condition is not satisfied, the target image is calibrated using the transport direction calibration data stored in the storage device.
When the generation condition is satisfied, the target image is calibrated using the new transport direction calibration data generated by the calibration data generation function.
program.
予め決められた方向であるセンサ方向の位置が互いに異なる複数の読取センサを備えるセンサユニットと、前記センサ方向に交差する搬送方向に前記センサユニットを搬送する搬送装置と、前記搬送装置による前記センサユニットの搬送中に前記複数の読取センサに対象物を光学的に読み取らせることによって前記対象物の画像データである読取データを生成するデータ生成部と、を備えるスキャナ装置によって生成される前記読取データによって示される読取画像内の画素の位置を較正するための較正データを生成する生成装置であって、
特定方向の位置が互いに異なるn個(nは2以上の整数)の基準部分を示す、印刷された印刷テストシートであって、前記印刷テストシートの前記特定方向が前記スキャナ装置の前記センサ方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データであるセンサ方向読取データを取得する第1取得部と、
前記センサ方向読取データによって示される前記n個の基準部分のそれぞれの前記センサ方向の位置に関連する複数の位置情報を、前記読取画像内の前記センサ方向の画素の位置の較正量を示す予め決められたセンサ方向較正データを用いて較正することによって、複数の較正済位置情報を示す較正済基準部分位置データを生成する較正済基準部分位置データ生成部と、
前記印刷テストシートの前記特定方向が前記スキャナ装置の前記搬送方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データである搬送方向読取データを取得する第2取得部と、
前記搬送方向読取データと前記較正済基準部分位置データとを用いることによって、読取データの画像内の前記搬送方向の画素の位置の較正量を示す搬送方向較正データを生成する較正データ生成部と、
前記搬送方向較正データを記憶装置に格納する格納処理部と、
を備える、生成装置。
A sensor unit having a plurality of reading sensors having different positions in the sensor direction, which is a predetermined direction, a transport device for transporting the sensor unit in a transport direction intersecting the sensor direction, and the sensor unit by the transport device. By the reading data generated by a scanner device including a data generation unit that generates reading data which is image data of the object by having the plurality of reading sensors optically read the object during the transportation of the object. A generator that generates calibration data for calibrating the positions of pixels in the scanned image shown.
A printed print test sheet showing n reference portions (n is an integer of 2 or more) whose positions in specific directions are different from each other, wherein the specific direction of the print test sheet indicates the sensor direction of the scanner device. A first acquisition unit that acquires sensor-direction reading data, which is the reading data of the printing test sheet, which is generated by causing the scanner device to read the printing test sheet arranged so as to face the scanner device. When,
A plurality of position information related to the position in the sensor direction of each of the n reference portions indicated by the sensor direction reading data is determined in advance to indicate the calibration amount of the position of the pixel in the sensor direction in the read image. A calibrated reference partial position data generator that generates calibrated reference partial position data indicating a plurality of calibrated position information by calibrating using the obtained sensor direction calibration data.
The print test sheet generated by having the scanner device read the print test sheet arranged with respect to the scanner device so that the specific direction of the print test sheet faces the transport direction of the scanner device. The second acquisition unit that acquires the transport direction reading data, which is the reading data of
A calibration data generation unit that generates transport direction calibration data indicating the amount of calibration of the position of the pixel in the transport direction in the image of the read data by using the transport direction read data and the calibrated reference partial position data.
A storage processing unit that stores the transport direction calibration data in the storage device, and
A generator equipped with.
予め決められた方向であるセンサ方向の位置が互いに異なる複数の読取センサを備えるセンサユニットと、前記センサ方向に交差する搬送方向に前記センサユニットを搬送する搬送装置と、前記搬送装置による前記センサユニットの搬送中に前記複数の読取センサに対象物を光学的に読み取らせることによって前記対象物の画像データである読取データを生成するデータ生成部と、を備えるスキャナ装置によって生成される前記読取データによって示される読取画像内の画素の位置を較正するための較正データを生成する生成方法であって、
特定方向の位置が互いに異なるn個(nは2以上の整数)の基準部分を示す、印刷された印刷テストシートであって、前記印刷テストシートの前記特定方向が前記スキャナ装置の前記センサ方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データであるセンサ方向読取データを取得する第1取得工程と、
前記センサ方向読取データによって示される前記n個の基準部分のそれぞれの前記センサ方向の位置に関連する複数の位置情報を、前記読取画像内の前記センサ方向の画素の位置の較正量を示す予め決められたセンサ方向較正データを用いて較正することによって、複数の較正済位置情報を示す較正済基準部分位置データを生成する較正済基準部分位置データ生成工程と、
前記印刷テストシートの前記特定方向が前記スキャナ装置の前記搬送方向を向くように前記スキャナ装置に対して配置された前記印刷テストシートを、前記スキャナ装置に読み取らせることによって生成される前記印刷テストシートの前記読取データである搬送方向読取データを取得する第2取得工程と、
前記搬送方向読取データと前記較正済基準部分位置データとを用いることによって、読取データの画像内の前記搬送方向の画素の位置の較正量を示す搬送方向較正データを生成する較正データ生成工程と、
前記搬送方向較正データを記憶装置に格納する格納処理工程と、
を備える生成方法。
A sensor unit having a plurality of reading sensors having different positions in the sensor direction, which is a predetermined direction, a transport device for transporting the sensor unit in a transport direction intersecting the sensor direction, and the sensor unit by the transport device. By the reading data generated by a scanner device including a data generation unit that generates reading data which is image data of the object by having the plurality of reading sensors optically read the object during the transportation of the object. A generation method that generates calibration data for calibrating the position of a sensor in the scanned image shown.
A printed print test sheet showing n reference portions (n is an integer of 2 or more) whose positions in specific directions are different from each other, wherein the specific direction of the print test sheet indicates the sensor direction of the scanner device. The first acquisition step of acquiring the sensor direction reading data which is the reading data of the print test sheet generated by having the scanner device read the print test sheet arranged so as to face the scanner device. When,
A plurality of position information related to the position in the sensor direction of each of the n reference portions indicated by the sensor direction reading data is determined in advance to indicate the calibration amount of the position of the pixel in the sensor direction in the read image. A calibrated reference partial position data generation step that generates calibrated reference partial position data indicating a plurality of calibrated position information by calibrating using the obtained sensor orientation calibration data.
The print test sheet generated by having the scanner device read the print test sheet arranged with respect to the scanner device so that the specific direction of the print test sheet faces the transport direction of the scanner device. The second acquisition step of acquiring the transport direction reading data, which is the reading data of the above, and
A calibration data generation step of generating transport direction calibration data indicating the amount of calibration of the position of the pixel in the transport direction in the image of the read data by using the transport direction read data and the calibrated reference partial position data.
A storage processing step of storing the transport direction calibration data in the storage device, and
A generation method that comprises.
JP2019196277A 2019-10-29 2019-10-29 Program, generation device, generation method Pending JP2021072468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019196277A JP2021072468A (en) 2019-10-29 2019-10-29 Program, generation device, generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019196277A JP2021072468A (en) 2019-10-29 2019-10-29 Program, generation device, generation method

Publications (1)

Publication Number Publication Date
JP2021072468A true JP2021072468A (en) 2021-05-06

Family

ID=75713494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019196277A Pending JP2021072468A (en) 2019-10-29 2019-10-29 Program, generation device, generation method

Country Status (1)

Country Link
JP (1) JP2021072468A (en)

Similar Documents

Publication Publication Date Title
JP6142882B2 (en) Image forming apparatus
JP5815878B2 (en) Print defect detection
CN100586142C (en) Image processing apparatus and method
EP3909776A1 (en) Ink discharge complementing method and printing apparatus
CN109862201A (en) Reading device, image forming apparatus, reference pattern read method
JP5748065B2 (en) Gradation correction apparatus and printing system
US20220189003A1 (en) Image processing apparatus, image processing method, and storage medium
US9233568B1 (en) Cross-process direction uniformity for wide format printers
US8379247B2 (en) Method, system and test sheet image bitmap for carrying out a scanner-and-processor based image-to-paper registration setup
US20170064137A1 (en) Image formation apparatus
JP2014151462A (en) Printing apparatus and color measuring method
JP2021072468A (en) Program, generation device, generation method
JP6520931B2 (en) Color measuring device and color measuring method
US10009515B2 (en) Calibration system, calibration method, and image forming apparatus that ensure improved accuracy of correction of tone characteristics
JP4696952B2 (en) Image forming apparatus and registration inspection method for image forming apparatus
JP4821718B2 (en) Image forming system program and image forming system
US10556444B2 (en) Image processing apparatus and non-transitory computer-readable medium storing image processing program
KR20070052058A (en) Method and system for printing error correction of image forming device
JP7319585B2 (en) Image processing device and computer program
US20240066889A1 (en) Density unevenness correction data creation method, density unevenness correction data creation apparatus, printing system, program, test chart, and test chart data creation apparatus
US11917114B2 (en) Image forming apparatus and control method for obtaining parameters for image position adjustment
JP2005227142A (en) Image inspection apparatus with skew detection function
JP2001257877A (en) Image scanning apparatus and image scanning processing method
JP2024058330A (en) Image forming device and method of controlling the same
JP2022182822A (en) Data processing apparatus, computer program, and recording medium