JP5371370B2 - Printer and object movement detection method - Google Patents

Printer and object movement detection method Download PDF

Info

Publication number
JP5371370B2
JP5371370B2 JP2008276982A JP2008276982A JP5371370B2 JP 5371370 B2 JP5371370 B2 JP 5371370B2 JP 2008276982 A JP2008276982 A JP 2008276982A JP 2008276982 A JP2008276982 A JP 2008276982A JP 5371370 B2 JP5371370 B2 JP 5371370B2
Authority
JP
Japan
Prior art keywords
image data
area
medium
media
sensor
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.)
Expired - Fee Related
Application number
JP2008276982A
Other languages
Japanese (ja)
Other versions
JP2010105203A (en
Inventor
格 和田
昌浩 越川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2008276982A priority Critical patent/JP5371370B2/en
Publication of JP2010105203A publication Critical patent/JP2010105203A/en
Application granted granted Critical
Publication of JP5371370B2 publication Critical patent/JP5371370B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像処理によって物体の移動を検出する技術、および同技術を採用したプリンタの技術分野に関する。   The present invention relates to a technique for detecting movement of an object by image processing, and a technical field of a printer that employs the technique.

カットシート等のプリントメディア(以下、メディアと称する)を搬送しながらプリントを行なう際、搬送精度が低いと、中間調画像の濃度ムラが生じたり、倍率誤差が生じたりして、得られるプリント画像の品質が劣化する。そのため、高精度な部品を採用し精密な搬送機構を搭載しているが、プリント品質に対する要求は厳しくさらなる精度向上が望まれている。一方ではコストに対する要求も厳しく、高精度化と低コスト化の両立が求められている。   When printing is performed while transporting print media such as cut sheets (hereinafter referred to as media), if the transport accuracy is low, density unevenness of the halftone image or magnification error may occur, resulting in a printed image. The quality of the product deteriorates. For this reason, high-precision parts are used and a precise transport mechanism is installed, but the demand for print quality is severe and further improvement in accuracy is desired. On the other hand, the demand for cost is strict, and both high accuracy and low cost are required.

これに対処するため、メディアの移動を高精度に検出して、フィードバック制御により安定した搬送を実現するために、メディアの表面を撮像して、画像処理によって搬送されるメディアの移動を検出する試みがなされている。   In order to cope with this, an attempt is made to detect the movement of the media conveyed by image processing by imaging the surface of the media in order to detect the movement of the media with high accuracy and realize stable conveyance by feedback control. Has been made.

特許文献1は、このメディアの移動検出についての一手法を開示する。これは、移動するメディアの表面をイメージセンサにより複数回撮像し、得られた画像同士をパターンマッチング処理を含む画像処理によって比較して、メディアの移動量を検出するものである。
特開2007−217176号公報
Patent Document 1 discloses a technique for detecting the movement of the media. In this method, the surface of a moving medium is imaged a plurality of times by an image sensor, and the obtained images are compared by image processing including pattern matching processing to detect the amount of movement of the media.
JP 2007-217176 A

上記の特許文献に開示の装置は、メディアの搬送中にリアルタイムに画像処理を行なう。そのため、メディア搬送速度が大きい場合や多パスプリントを行なう場合など、メディアの移動を検出する回数や頻度が大きい場合には、画像処理の演算が高負荷となる。すると、演算に要する時間がボトルネックとなって、プリントスループットに影響を及ぼす可能性がある。   The apparatus disclosed in the above-mentioned patent document performs image processing in real time during conveyance of media. For this reason, when the number and frequency of media movement detection are large, such as when the media transport speed is high or when multi-pass printing is performed, the computation of image processing becomes a heavy load. Then, the time required for computation becomes a bottleneck, which may affect print throughput.

本発明は上述の課題の認識に基づいてなされたものである。   The present invention has been made based on recognition of the above-described problems.

本発明の目的は、メディアの移動情報を検出する画像処理に要する負荷を状況に応じて可変にして、スループットに与える影響を小さくすることができるプリンタの提供である。また、本発明の別の目的は、高速に物体の移動情報を検出することができる方法の提供である。   An object of the present invention is to provide a printer that can reduce the influence on the throughput by changing the load required for the image processing for detecting the movement information of the media according to the situation. Another object of the present invention is to provide a method capable of detecting movement information of an object at high speed.

上記課題を解決する本発明は、メディアを搬送してプリントを行なうプリンタであって、メディア表面の微細凹凸形を撮像して画像データを取得するセンサと、前記センサを用いて異なるタイミングで取得した複数の画像データのうち1つの画像データの所定エリアから切り出したパターンを他の画像データと比較して前記メディアの移動情報を検出して、検出した移動情報に基づいて前記メディアの搬送を制御する制御部と、を有し、前記制御部は、前記センサで取得した画像データを解析してメディア表面の微細凹凸形状のコントラストを判別し、前記コントラストが高いほど前記所定エリアのサイズを小さくするように設定することを特徴とする。 The present invention that solves the above-mentioned problems is a printer that conveys media and prints, and obtains image data by imaging fine irregularities on the surface of the media, and obtained at different timings using the sensor. A pattern cut out from a predetermined area of one image data among a plurality of image data is compared with other image data to detect movement information of the medium, and the conveyance of the medium is controlled based on the detected movement information. A control unit, wherein the control unit analyzes the image data acquired by the sensor to determine the contrast of the fine uneven shape on the surface of the media, and the higher the contrast is , the smaller the size of the predetermined area is It is characterized by setting to.

本発明の別の形態は、イメージセンサを用いて物体表面の微細凹凸形を撮像して画像データを取得するステップと、前記物体の移動に伴って複数の前記撮像を行ない、得られた複数の画像データのうち1つの画像データの所定エリアから切り出したパターンを他の画像データと比較して、前記イメージセンサに対する前記物体の相対的な移動情報を検出するステップと、を有する物体の移動検出方法であって前記イメージセンサで取得した画像データを解析して物体表面の微細凹凸形状のコントラストを判別し、前記コントラストが高いほど前記所定エリアのサイズを小さくするように設定することを特徴とする。
According to another aspect of the present invention, an image sensor is used to capture an image of a fine concavo-convex shape on the surface of the object to obtain image data, and a plurality of the images obtained as the object moves are obtained. a pattern cut from a given area of an image data of the image data as compared to other image data, movement detection of the object have a, a step of detecting the relative movement information of the object relative to the image sensor A method comprising: analyzing image data acquired by the image sensor to determine a contrast of a fine uneven shape on an object surface; and setting the size of the predetermined area to be smaller as the contrast is higher To do.

本発明によれば、メディアの移動情報を検出する画像処理に要する負荷を状況に応じて可変にして、スループットに与える影響を小さくすることができるプリンタを提供することができる。また、高速に物体の移動情報を検出することができる方法を提供することができる。   According to the present invention, it is possible to provide a printer that can reduce the influence on the throughput by changing the load required for the image processing for detecting the movement information of the media according to the situation. In addition, it is possible to provide a method capable of detecting movement information of an object at high speed.

以下に図面を参照して、この発明の好適な実施の形態を例示する。ただしこの実施の形態に記載されている構成要素はあくまで例示であり、この発明の範囲をそれらのみに限定する主旨のものではない。   Exemplary embodiments of the present invention will be described below with reference to the drawings. However, the constituent elements described in this embodiment are merely examples, and are not intended to limit the scope of the present invention only to them.

本発明を適用した画像形成装置の一例として、インクジェットプリンタの実施の形態を説明する。なお、本発明の適用範囲はインクジェット方式に限らない。例えば、電子写真方式、サーマル方式、ドットインパクト方式などの様々な方式のプリンタ、あるいは複写機、ファクシミリ、複合機などのプリンタを備えた機器にも適用可能である。   An embodiment of an inkjet printer will be described as an example of an image forming apparatus to which the present invention is applied. The application range of the present invention is not limited to the ink jet system. For example, the present invention can be applied to various types of printers such as an electrophotographic system, a thermal system, and a dot impact system, or a device including a printer such as a copying machine, a facsimile machine, and a multifunction machine.

〔第1実施形態〕
図1は、インクジェットプリンタの主要部の構成を示す斜視図である。キャリッジ1は、インクジェット方式のプリントヘッドを搭載して移動する。プリントヘッドは、発熱体を用いた方式、ピエゾ素子を用いた方式、静電アクチュエータを用いた方式、MEMS素子を用いた方式など、さまざまなインクジェット方式を用いることができる。
[First Embodiment]
FIG. 1 is a perspective view showing a configuration of a main part of an ink jet printer. The carriage 1 moves by mounting an ink jet print head. The print head can use various ink jet methods such as a method using a heating element, a method using a piezo element, a method using an electrostatic actuator, and a method using a MEMS element.

キャリッジモータ2は、キャリッジ1を主走査方向に移動させるための駆動源であり、その回転駆動力はベルト4でキャリッジ1に伝達する。キャリッジ1は、シャーシ9に対して主走査方向に往復移動する。キャリッジ1の主走査方向における位置は、リニアエンコーダで検出してモニタする。リニアエンコーダは、シャーシ9に取り付けた直線状のエンコーダパターン3と、それを光学的、磁気的あるいは機械的に読み取る、キャリッジ1に搭載された読取部(不図示)からなる。   The carriage motor 2 is a driving source for moving the carriage 1 in the main scanning direction, and the rotational driving force is transmitted to the carriage 1 by the belt 4. The carriage 1 reciprocates in the main scanning direction with respect to the chassis 9. The position of the carriage 1 in the main scanning direction is detected and monitored by a linear encoder. The linear encoder includes a linear encoder pattern 3 attached to the chassis 9 and a reading unit (not shown) mounted on the carriage 1 that optically, magnetically, or mechanically reads the pattern.

移動する物体であるシート状のメディアMは、プラテン11上で、キャリッジ1の主走査方向と直交する副走査方向(図中の矢印方向)に搬送される。この搬送は、搬送ローラ5、ベルト8、搬送モータ6からなる駆動機構により行なう。搬送ローラ5の駆動状態(回転量、回転速度)は、ロータリーエンコーダ31で検出してモニタする。ロータリーエンコーダ31は、搬送ローラ5と共に回転する円周状のエンコーダパターン7と、それを光学的、磁気的あるいは機械的に読み取る読取部10からなる。   A sheet-like medium M, which is a moving object, is conveyed on the platen 11 in the sub-scanning direction (arrow direction in the figure) orthogonal to the main scanning direction of the carriage 1. This conveyance is performed by a driving mechanism including a conveyance roller 5, a belt 8, and a conveyance motor 6. The driving state (rotation amount, rotation speed) of the transport roller 5 is detected and monitored by the rotary encoder 31. The rotary encoder 31 includes a circumferential encoder pattern 7 that rotates together with the transport roller 5 and a reading unit 10 that reads the pattern optically, magnetically, or mechanically.

メディアセンサ20は、プラテン11上に搬送されるメディアMを、プリント面側または裏面側から検出するものである。メディアセンサ20によって、メディアMの移動情報(移動量、移動速度、移動方向など)やメディアの表面状態を検出する。その構成や動作の詳細は後述する。なお、メディアセンサ20は、複数個設けるようにしてもよいし、配設する位置もこの限りではない。   The media sensor 20 detects the media M conveyed on the platen 11 from the print surface side or the back surface side. The media sensor 20 detects the movement information (movement amount, movement speed, movement direction, etc.) of the medium M and the surface state of the medium. Details of the configuration and operation will be described later. Note that a plurality of media sensors 20 may be provided, and the arrangement positions are not limited to this.

コントローラである制御部90は、プリンタ全体の各種動作の制御を司る。例えば、メディア搬送系のサーボ制御は、制御目標値と、ロータリーエンコーダ31の検出値によるフィードバックループを形成する。   A controller 90, which is a controller, controls various operations of the entire printer. For example, the servo control of the media transport system forms a feedback loop based on the control target value and the detection value of the rotary encoder 31.

次に、メディアセンサ20の詳細を説明する。図2は物理的な構成、図3は電気的な構成を示す。図2において、メディアセンサ20は、発光素子71、レンズ72、光電変換素子73を含む一体化された読取ユニットである。発光素子71は、LED、LD、OLED等が用いられる。光電変換素子73は、CCDやCMOS構造の撮像素子からなる二次元イメージセンサである。例えば、10μm×10μmのセルが、搬送方向に400画素×主走査方向に200画素配列されたものである。   Next, details of the media sensor 20 will be described. FIG. 2 shows a physical configuration, and FIG. 3 shows an electrical configuration. In FIG. 2, the media sensor 20 is an integrated reading unit including a light emitting element 71, a lens 72, and a photoelectric conversion element 73. As the light emitting element 71, an LED, an LD, an OLED, or the like is used. The photoelectric conversion element 73 is a two-dimensional image sensor composed of an image sensor with a CCD or CMOS structure. For example, a cell of 10 μm × 10 μm is arranged by 400 pixels in the transport direction × 200 pixels in the main scanning direction.

図3において、光電変換素子73の出力は、A/D変換回路74でデジタルに変換して、インターフェース75を経て、制御部90にデジタル信号として出力する。また、インターフェース75を経て、発光素子71の発光が制御される。この構成において、発光素子71から発する光でメディアMの表面をスポット照明する。照明されたメディアMからの散乱反射光は、レンズ72で集光して、光電変換素子73で受ける。メディアMの照明されたエリアと光電変換素子73の受光面とはレンズ72によって結像関係となっており、光電変換素子73はメディアM表面の精密な画像情報を取得する。   In FIG. 3, the output of the photoelectric conversion element 73 is converted to digital by the A / D conversion circuit 74, and is output as a digital signal to the control unit 90 via the interface 75. Further, light emission of the light emitting element 71 is controlled via the interface 75. In this configuration, the surface of the medium M is spot illuminated with light emitted from the light emitting element 71. The scattered reflected light from the illuminated medium M is collected by the lens 72 and received by the photoelectric conversion element 73. The illuminated area of the medium M and the light receiving surface of the photoelectric conversion element 73 form an imaging relationship by the lens 72, and the photoelectric conversion element 73 acquires precise image information on the surface of the medium M.

図4は、制御部90を中心とした、プリンタ全体の電気ブロック図である。制御部90は、CPU91、ROM92、RAM93を有している。制御部90には、キャリッジ1の移動量を検出するリニアエンコーダ30、および搬送ローラ5の回転を検出するロータリーエンコーダ31のそれぞれの読取部からの信号が入力される。さらにメディアセンサ20からの信号が入力される。また、制御部90からは、キャリッジモータ2を駆動するモータ駆動回路32、および搬送モータを6駆動するモータ駆動回路33に駆動信号が出力される。各モータは、それぞれ制御部90からの指令に従って駆動される。さらに、制御部90には、プリンタインターフェース34を介して外部コンピュータ35が接続され、また、操作パネル36が接続されている。操作パネル36はユーザーインターフェースとなる表示器と操作ボタンを有している。   FIG. 4 is an electrical block diagram of the entire printer, centering on the control unit 90. The control unit 90 includes a CPU 91, a ROM 92, and a RAM 93. Signals from the reading units of the linear encoder 30 that detects the movement amount of the carriage 1 and the rotary encoder 31 that detects the rotation of the transport roller 5 are input to the control unit 90. Further, a signal from the media sensor 20 is input. In addition, a drive signal is output from the control unit 90 to a motor drive circuit 32 that drives the carriage motor 2 and a motor drive circuit 33 that drives the carry motor 6 times. Each motor is driven according to a command from the control unit 90. Further, an external computer 35 is connected to the control unit 90 via the printer interface 34, and an operation panel 36 is connected. The operation panel 36 has a display serving as a user interface and operation buttons.

次に、メディアセンサ20を使用したメディア搬送量の検出を含む動作手順について、図5のプリント動作を示すフローチャート図を参照して説明する。メディア搬送量の検出は、大きく分けて、テンプレートパターンの抽出(S100)、メディア搬送(S200)、テンプレートマッチングによるメディア搬送量の算出(S300)の順序で行なう。   Next, an operation procedure including detection of the media conveyance amount using the media sensor 20 will be described with reference to a flowchart showing a printing operation in FIG. The detection of the media transport amount is roughly performed in the order of template pattern extraction (S100), media transport (S200), and media transport amount calculation by template matching (S300).

プリント動作をスタートすると、ステップS1で、プリントが最初の1ライン目であるかを判定する。1ライン目である場合(YES)は、ステップS2にて、指令する1パスの搬送量に目標搬送量(制御目標値)を設定する。1ライン目でない場合(NO)は、ステップS3にて、フィードバック制御のため、目標搬送量とRAM93に記憶した実際の搬送量の差がなくなるように指令する1パスの搬送量を設定する。実際の搬送量については、以下に示すステップのパターンマッチングの画像処理によって求める。   When the printing operation is started, it is determined in step S1 whether the printing is the first line. If it is the first line (YES), in step S2, a target transport amount (control target value) is set as the transport amount for one pass to be commanded. If it is not the first line (NO), in step S3, for the feedback control, a one-pass conveyance amount for instructing to eliminate the difference between the target conveyance amount and the actual conveyance amount stored in the RAM 93 is set. The actual transport amount is obtained by pattern matching image processing in the following steps.

ステップS4では、制御部90のCPU91からメディアセンサ20へ画像読取の指令を出す。これに応答してメディアセンサ20は発光素子71を点灯させ、光電変換素子73で二次元画像を読み取って画像データを取得する。   In step S <b> 4, an image reading command is issued from the CPU 91 of the control unit 90 to the media sensor 20. In response to this, the media sensor 20 turns on the light emitting element 71 and the photoelectric conversion element 73 reads a two-dimensional image to acquire image data.

図6は、メディアセンサでの画像データの読取領域701と、その中でパターンマッチングを行なう所定エリア(エリア702、エリア703)の関係を示す図である。読取領域701は、搬送方向4mm(400画素)×主走査方向2mm(200画素)からなる。メディアセンサは図6(a)の読取領域701の全範囲の画像データを取り込み、取得した画像データは制御部90のRAM93に記憶する。   FIG. 6 is a diagram showing a relationship between an image data reading area 701 by the media sensor and predetermined areas (area 702 and area 703) in which pattern matching is performed. The reading area 701 is composed of 4 mm (400 pixels) in the conveyance direction × 2 mm (200 pixels) in the main scanning direction. The media sensor captures the entire range of image data in the reading area 701 in FIG. 6A, and stores the acquired image data in the RAM 93 of the control unit 90.

ステップS5では、RAM93に記憶された画像データの中で、エリア702に対応するデータを切り出して、これをテンプレートパターンとしてRAM93に記憶する。エリア702は、読取領域701の中で、搬送方向上流に位置する所定サイズの正方形の領域である。また、エリア703は、エリア702と同サイズの領域であり、エリア702から1ラインのメディア搬送量の目標値分(距離Y)だけ搬送方向の下流側に設定したものである。これらエリア702、703のサイズは、プリントモード、具体的にはプリントパス数に応じて可変としている。図6(a)の例では1mm×1mm(100画素×100画素)の領域であり、図6(b)の例では0.5mm×0.5mm(50画素×50画素)の領域である。プリントパス数に応じていずれかのサイズを設定して切り出しを行なう。詳しくは後述する。   In step S5, data corresponding to the area 702 is cut out from the image data stored in the RAM 93 and stored in the RAM 93 as a template pattern. An area 702 is a square area of a predetermined size located upstream in the conveyance direction in the reading area 701. The area 703 is an area of the same size as the area 702, and is set downstream from the area 702 by the target value (distance Y) of the media conveyance amount of one line. The sizes of these areas 702 and 703 are variable according to the print mode, specifically, the number of print passes. In the example of FIG. 6A, the area is 1 mm × 1 mm (100 pixels × 100 pixels), and in the example of FIG. 6B, the area is 0.5 mm × 0.5 mm (50 pixels × 50 pixels). Cut out by setting any size according to the number of print passes. Details will be described later.

ステップS6(ステップS200)では、CPU91の指令により搬送モータ6を駆動して、搬送ローラ5を回転させて1ライン分の設定したステップ量だけメディアを搬送する。   In step S6 (step S200), the conveyance motor 6 is driven by a command from the CPU 91, and the conveyance roller 5 is rotated to convey the medium by the set step amount for one line.

ステップS7では、CPU91はメディアセンサ20に再度の画像読み取り指令を出し画像を取得する。メディアセンサ20で取得した読取領域701の画像データは、制御部90のRAM93に記憶する。   In step S <b> 7, the CPU 91 issues a second image reading command to the media sensor 20 to obtain an image. The image data of the reading area 701 acquired by the media sensor 20 is stored in the RAM 93 of the control unit 90.

ステップS8は、メディア搬送前に得たエリア702のテンプレートパターンと、新たに得た読取領域701の画像データのうちエリア703に相当する画像パターンとを比較して、テンプレートマッチング処理を行なう。これは、テンプレートパターンに含まれる特異的なパターンが、エリア703の中のどこに存在するかを、搬送方向(副走査方向)に画像サーチして求める。   In step S8, a template matching process is performed by comparing the template pattern of the area 702 obtained before the media conveyance with the image pattern corresponding to the area 703 in the newly obtained image data of the reading area 701. This is obtained by performing an image search in the transport direction (sub-scanning direction) where the specific pattern included in the template pattern exists in the area 703.

ステップS9では、その結果からメディア搬送前のテンプレートパターンの位置と、メディア搬送後の類似パターンの位置の画素数差から、この間のメディアの移動距離を算出する。この値はRAM93に記憶する。もし、エリア702とエリア703の画像パターンがずれなく一致していれば、目標搬送量どおりに搬送されたことを意味し、搬送方向に画素数のずれがあれば、そのずれ分だけ実際の搬送量に誤差が生じたことを意味する。すなわち、メディアの実際の搬送量は、目標値搬送量(距離Y)+パターンマッチングのずれ量から求めることができる。   In step S9, the movement distance of the medium during this period is calculated from the difference in the number of pixels between the position of the template pattern before the medium conveyance and the position of the similar pattern after the medium conveyance. This value is stored in the RAM 93. If the image patterns in the area 702 and the area 703 coincide with each other without any deviation, it means that the image has been conveyed according to the target conveyance amount. If there is a deviation in the number of pixels in the conveyance direction, the actual conveyance is performed by the deviation. It means that an error has occurred in the quantity. That is, the actual transport amount of the medium can be obtained from the target value transport amount (distance Y) + the pattern matching shift amount.

ステップS10で、1ライン分のプリントを行なう。そしてステップS11で、1ページ分のプリントが完了したかを判別して、YESの場合は終了し、NOの場合はステップS1に戻って、同様の動作を繰り返す。   In step S10, printing for one line is performed. In step S11, it is determined whether printing for one page has been completed. If YES, the process ends. If NO, the process returns to step S1 to repeat the same operation.

次に、パターンマッチング処理に用いる切り出しエリアのサイズの設定について説明する。低パス(1パス)プリントの際は、図6(a)のように1回あたりの搬送距離Yが長いため、目標搬送量と実際の搬送量の誤差も大きくなる傾向がある。この差が大きくなっても、パターンマッチング処理が問題なく行なえるようにするため、エリア702、エリア703のサイズを大きくする。この例では、1mm×1mm(100画素×100画素)の領域を設定する。エリアが大きくなるほど含まれる画素数が増えるために画像処理の処理量が増大するが、1パス送りあたりの搬送距離が長いことから、画像処理を行なう頻度は低くプリントスループットには影響を与えない。   Next, the setting of the size of the cut-out area used for the pattern matching process will be described. During low-pass (one-pass) printing, since the transport distance Y per time is long as shown in FIG. 6A, the error between the target transport amount and the actual transport amount tends to increase. Even if this difference increases, the sizes of the areas 702 and 703 are increased so that the pattern matching process can be performed without any problem. In this example, an area of 1 mm × 1 mm (100 pixels × 100 pixels) is set. As the area becomes larger, the number of pixels included increases, so that the amount of image processing increases. However, since the transport distance per one-pass feed is long, the frequency of image processing is low and print throughput is not affected.

一方、多パス(1より多いパス数)プリントの際は、図6(b)のように1回あたりの搬送距離Yが相対的に短くなって、その分、画像処理を行なう頻度が高くなる。このとき、エリア702、703のサイズを低パスプリント時のように大きくとったのでは、メディアの搬送速度にパターンマッチングの画像処理が追いつかずにプリントスループットが低下する可能性がある。そこで、多パスプリントの時には、低パスプリントの時に較べて、パターンマッチングを行なうエリアのサイズを小さくして、画像処理の処理量を減らして1回あたりの計算時間を短縮する。この例では0.5mm×0.5mm(50画素×50画素)の領域を設定して計算量を4分の1に軽減させている。多パスプリントの場合は、1パス送りあたりの距離が短いため、目標搬送量と実際のメディア搬送量との誤差は小さくなる傾向にある。従って、エリア702のパターンの多くはエリア703に含まれ、事実上、問題なくパターンマッチング処理を行なうことができる。   On the other hand, during multi-pass printing (number of passes greater than 1), the transport distance Y per time is relatively short as shown in FIG. 6B, and the frequency of image processing increases accordingly. . At this time, if the sizes of the areas 702 and 703 are made large as in the case of low-pass printing, there is a possibility that the image processing for pattern matching cannot catch up with the conveyance speed of the media and the print throughput may be reduced. Therefore, when performing multi-pass printing, compared with low-pass printing, the size of the area for pattern matching is reduced, the amount of image processing is reduced, and the calculation time per time is shortened. In this example, an area of 0.5 mm × 0.5 mm (50 pixels × 50 pixels) is set to reduce the calculation amount to a quarter. In the case of multi-pass printing, since the distance per one-pass feed is short, the error between the target carry amount and the actual media carry amount tends to be small. Therefore, most of the patterns in the area 702 are included in the area 703, and the pattern matching process can be performed without any problem.

なお、本実施形態においては、1パス送りの開始前と開始後でエリア702とエリア703の画像を抽出しているが、1パス送りの途中で異なるタイミングでエリア702とエリア703の画像を抽出するようにしてもよい。また、エリア702とエリア703は四角形に限定されるものではなく、例えば多角形や円形(楕円を含む)であってもよい。これは、以下の他の実施形態についても同様でである。   In this embodiment, the images of the area 702 and the area 703 are extracted before and after the start of the one-pass feed. However, the images of the area 702 and the area 703 are extracted at different timings during the one-pass feed. You may make it do. Further, the area 702 and the area 703 are not limited to a rectangle, and may be, for example, a polygon or a circle (including an ellipse). The same applies to other embodiments described below.

〔第2実施形態〕
第2実施形態について説明する。なお、先の例と装置構成は同一であり動作フローも共通部分が多いので、重複する部分の説明は省略する。
[Second Embodiment]
A second embodiment will be described. Since the apparatus configuration is the same as that of the previous example and the operation flow has many common parts, description of overlapping parts is omitted.

図7に示すように、メディアの搬送方向が本来の搬送方向(副走査方向)に対して傾いて、軌跡Sのように斜行が生じる場合がある。斜行が起きると、搬送前後で主走査方向にもずれが生じるため、斜行を考慮してエリア703の位置を設定しないとパターンマッチング処理に支障を生じる可能性がある。これはとくに、テンプレート処理に用いる切り出しエリアのサイズが小さい場合に顕著となる。   As shown in FIG. 7, there is a case where the medium conveyance direction is inclined with respect to the original conveyance direction (sub-scanning direction), and skewing occurs as shown by the locus S. When skew occurs, a deviation also occurs in the main scanning direction before and after the conveyance. Therefore, if the position of the area 703 is not set in consideration of the skew, there is a possibility that the pattern matching processing may be hindered. This is particularly noticeable when the size of the cut-out area used for template processing is small.

そこで、エリア703の中心713が斜行の軌跡Sの上に位置するように、斜行量に応じて、エリア702に対してエリア703を主走査方向にずらして設定する。斜行量は1ラインの搬送ごとにメディアセンサ20を用いて検出する。   Therefore, the area 703 is set so as to be shifted from the area 702 in the main scanning direction according to the skew amount so that the center 713 of the area 703 is positioned on the skew locus S. The skew amount is detected by using the media sensor 20 for each conveyance of one line.

図8に動作手順のフローチャートを示す。ステップS11にてプリントが1ライン目の場合はステップS12に移行し、1ライン目でない場合(NO)は、ステップS13に移行する。ステップS13では、フィードバック制御のため、目標搬送量とRAM93に記憶した実際の搬送量の差がなくなるように指令する1パスの搬送量を設定する。次いで、ステップS14にて、エリア702の中心位置に対する、斜行量に応じたエリア703の主走査方向におけるずらし量を設定する。すなわち、エリア702の中心712およびエリア703の中心713が共に、斜行の軌跡Sの上に位置するように、両エリアの相対位置を設定する。斜行量の算出は、メディアセンサで取得した画像データに基づいて行なう。   FIG. 8 shows a flowchart of the operation procedure. If the print is the first line in step S11, the process proceeds to step S12. If the print is not the first line (NO), the process proceeds to step S13. In step S13, for the feedback control, a one-pass conveyance amount for instructing that there is no difference between the target conveyance amount and the actual conveyance amount stored in the RAM 93 is set. Next, in step S14, a shift amount in the main scanning direction of the area 703 corresponding to the skew amount with respect to the center position of the area 702 is set. That is, the relative positions of the two areas are set so that the center 712 of the area 702 and the center 713 of the area 703 are both positioned on the oblique locus S. The skew amount is calculated based on the image data acquired by the media sensor.

ステップS15乃至S18は、先の図5のステップS4乃至S7と同様である。   Steps S15 to S18 are the same as steps S4 to S7 in FIG.

ステップS19では、メディア搬送前に得たエリア702のテンプレートパターン用いて、新たに得た読取領域701の画像データのうちエリア703に相当する画像についてテンプレートマッチング処理を行なう。これは、テンプレートパターンに含まれる特異的なパターンが、エリア703の中のどこに存在するかを、搬送方向(副走査方向)ならびにそれを直交する方向(主走査方向)に画像サーチして求める。   In step S19, template matching processing is performed on an image corresponding to the area 703 in the newly obtained image data of the reading area 701 using the template pattern of the area 702 obtained before the medium conveyance. This is obtained by searching the image in the transport direction (sub-scanning direction) and the direction orthogonal to it (main scanning direction) where the specific pattern included in the template pattern exists in the area 703.

ステップS20では、その結果からメディア搬送前のテンプレートパターンの位置と、メディア搬送後の類似パターンの位置の副走査方向における画素数差から、この間のメディアの移動距離を算出する。また、主走査方向の画素数差からこの間に変化した斜行量を算出する。これらの値はRAM93に記憶する。もし、エリア702とエリア703の画像パターンがいずれの方向にもずれなく一致していれば、目標搬送量どおりに搬送され且つ斜行量に変化は無いことを意味する。   In step S20, the moving distance of the medium during this period is calculated from the difference in the number of pixels in the sub-scanning direction between the position of the template pattern before transporting the medium and the position of the similar pattern after transporting the medium. Further, the skew amount that has changed during this period is calculated from the difference in the number of pixels in the main scanning direction. These values are stored in the RAM 93. If the image patterns of the area 702 and the area 703 match in any direction without any deviation, it means that the image is conveyed according to the target conveyance amount and the skew amount does not change.

ステップS21で、1ライン分のプリントを行なう。そしてステップS21で、1ページ分のプリントが完了したかを判別して、YESの場合は終了し、NOの場合はステップS11に戻って、同様の動作を繰り返す。   In step S21, one line is printed. In step S21, it is determined whether printing for one page is completed. If YES, the process ends. If NO, the process returns to step S11 to repeat the same operation.

〔第3実施形態〕
第3実施形態について説明する。多パスプリントでは、1パス送りあたりの距離が短いため、目標搬送量と実際の搬送量との誤差は一般には小さいが、とくに1ページのプリントの初期には、メディアの搬送抵抗が変動して安定しないので、誤差が大きくなる可能性がある。
[Third Embodiment]
A third embodiment will be described. In multi-pass printing, since the distance per one-pass feed is short, the error between the target transport amount and the actual transport amount is generally small. However, especially in the initial stage of printing one page, the transport resistance of the media fluctuates. Since it is not stable, the error may increase.

そこで、メディア上のプリント領域に応じて、所定エリアのサイズおよび相対位置の少なくとも一方を可変にする。具体的には、1ページのプリントの1ライン目から所定数のラインまでは、図9(a)のようにエリア702、703のサイズを大きくして、エリア702に含まれる特異的なパターンがエリア703で確実に検出できるようにする。所定数のラインを過ぎた後は、図9(b)のようにエリア702とエリア703のサイズを小さくして、パターンマッチングの計算負荷を減らす。さらに、第2実施形態のように図9(a)と図9(b)とで、斜行に応じて主走査方向の相対位置を可変にしてもよい。   Therefore, at least one of the size and the relative position of the predetermined area is made variable according to the print area on the medium. Specifically, from the first line of the printing of one page to a predetermined number of lines, the sizes of the areas 702 and 703 are increased as shown in FIG. The area 703 can be reliably detected. After a predetermined number of lines, the size of the area 702 and the area 703 is reduced as shown in FIG. 9B to reduce the pattern matching calculation load. Furthermore, as in the second embodiment, the relative position in the main scanning direction may be varied according to the skew in FIGS. 9A and 9B.

図10にプリント動作のフローチャートを示す。1ライン目では、ステップS33にて、エリア702、エリア703のサイズを大きくとる。また、1ライン目以降は、ステップS34で、所定ライン数(例えば100ライン)を過ぎたかを判別して、YESの場合はステップS35でエリア702、エリア703のサイズを小さく設定し直す。NOの場合は、ステップS35はスキップして、ステップS36に移行する。これ以降のステップS37乃至S44の動作は、先の図5のステップS4乃至S11と同様である。   FIG. 10 shows a flowchart of the printing operation. In the first line, the area 702 and the area 703 are increased in size in step S33. For the first and subsequent lines, it is determined in step S34 whether or not a predetermined number of lines (for example, 100 lines) has passed. If YES, the sizes of the areas 702 and 703 are reset to be smaller in step S35. In the case of NO, step S35 is skipped and the process proceeds to step S36. The subsequent operations in steps S37 to S44 are the same as those in steps S4 to S11 in FIG.

多パスプリントにおいて、図9(a)のように広いエリアでパターンマッチング処理を行なうと、本来の搬送速度に計算処理が追いつかずに、搬送速度を落とさざるを得ない場合もある。これに対して、本実施形態では、計算量が多いのは1ページの中の一部領域(プリントの初期)だけなので、トータルで見たプリントスループットの低下はごく僅かである。   In multi-pass printing, if the pattern matching process is performed in a wide area as shown in FIG. 9A, the calculation process may not catch up with the original conveyance speed, and the conveyance speed may be reduced. On the other hand, in the present embodiment, the amount of calculation is large only in a partial area (initial stage of printing) in one page, so that the decrease in print throughput as viewed in total is negligible.

〔第4実施形態〕
メディアの表面状態に応じて、エリア702とエリア703のサイズを可変とするようにしてもよい。表面状態は使用するメディアの種類によって異なる。表面状態を判別する一つの方法は、メディアセンサ20で取得する画像を解析することである。例えば、メディアの表面が粗い場合は、メディアセンサ20で取得する画像は微細な表面凹凸形状のコントラストが鮮明となるので、コントラストから表面状態を判別することができる。コントラストが高い場合は、エリア702とエリア703のサイズを小さく設定して計算量を減らすことができる。また、使用するメディアの種類から表面状態を判別することができる。使用するメディアの種類は、ユーザーがプリンタ本体やプリンタドライバに指定するので判る。
[Fourth Embodiment]
The sizes of the area 702 and the area 703 may be variable according to the surface state of the media. The surface condition varies depending on the type of media used. One method of determining the surface state is to analyze an image acquired by the media sensor 20. For example, when the surface of the medium is rough, the image acquired by the media sensor 20 has a fine contrast on the surface unevenness, so that the surface state can be determined from the contrast. When the contrast is high, the calculation amount can be reduced by setting the sizes of the area 702 and the area 703 small. In addition, the surface state can be determined from the type of media used. The type of media to be used is known because the user designates the printer body or printer driver.

プリンタの主要部の構成を示す斜視図The perspective view which shows the structure of the principal part of a printer メディアセンサの物理的な構成を示す図Diagram showing the physical configuration of the media sensor メディアセンサの電気的な構成を示す図Diagram showing the electrical configuration of the media sensor プリンタ全体の電気ブロックを示す図Diagram showing the electrical block of the entire printer 第1実施形態における動作手順を示すフローチャート図The flowchart figure which shows the operation | movement procedure in 1st Embodiment. 画像データの中でパターンマッチングを行なうエリアの示す図The figure which shows the area which performs pattern matching in image data 画像データの中でパターンマッチングを行なうエリアの示す図The figure which shows the area which performs pattern matching in image data 第2実施形態における動作手順を示すフローチャート図The flowchart figure which shows the operation | movement procedure in 2nd Embodiment. 画像データの中でパターンマッチングを行なうエリアの示す図The figure which shows the area which performs pattern matching in image data 第3実施形態における動作手順を示すフローチャート図The flowchart figure which shows the operation | movement procedure in 3rd Embodiment.

符号の説明Explanation of symbols

1 キャリッジ
20 メディアセンサ
90 制御部
M メディア
1 Carriage 20 Media sensor 90 Control unit M Media

Claims (4)

メディアを搬送してプリントを行なうプリンタであって、
メディア表面の微細凹凸形状を撮像して画像データを取得するセンサと、
前記センサを用いて異なるタイミングで取得した複数の画像データのうち1つの画像データの所定エリアから切り出したパターンを他の画像データと比較して前記メディアの移動情報を検出して、検出した移動情報に基づいて前記メディアの搬送を制御する制御部と、を有し、
前記制御部は、前記センサで取得した画像データを解析してメディア表面の微細凹凸形状のコントラストを判別し、前記コントラストが高いほど前記所定エリアのサイズを小さくするように設定することを特徴とするプリンタ。
A printer that transports media and prints,
A sensor that captures image data by capturing fine irregularities on the media surface ;
The movement information of the medium is detected by comparing the pattern cut out from a predetermined area of one of the plurality of image data acquired at different timings using the sensor with other image data, and detecting the movement information of the medium And a control unit for controlling the conveyance of the media based on
The control unit analyzes image data acquired by the sensor to determine a contrast of a fine uneven shape on a medium surface, and sets the predetermined area to be smaller as the contrast is higher. Printer.
前記制御部は、メディアの搬送速度、メディアのプリントパス数、メディアの斜行量、メディア上のプリント領域の少なくともいずれかに応じて、前記所定エリアのサイズおよび相対位置の少なくとも一方を設定することを特徴とする請求項1記載のプリンタ。   The control unit sets at least one of the size and the relative position of the predetermined area according to at least one of a medium conveyance speed, a medium print pass number, a medium skew amount, and a print area on the medium. The printer according to claim 1. インクジェット方式でプリントを行なうことを特徴とする請求項1または2記載のプリンタ。   3. The printer according to claim 1, wherein printing is performed by an ink jet method. イメージセンサを用いて物体表面の微細凹凸形状を撮像して画像データを取得するステップと、
前記物体の移動に伴って複数の前記撮像を行ない、得られた複数の画像データのうち1つの画像データの所定エリアから切り出したパターンを他の画像データと比較して、前記イメージセンサに対する前記物体の相対的な移動情報を検出するステップと、を有する物体の移動検出方法であって
前記イメージセンサで取得した画像データを解析して物体表面の微細凹凸形状のコントラストを判別し、前記コントラストが高いほど前記所定エリアのサイズを小さくするように設定することを特徴とする物体の移動検出方法。
Capturing image data by imaging fine irregularities on the surface of the object using an image sensor; and
A plurality of the images are taken along with the movement of the object, and a pattern cut out from a predetermined area of one image data among a plurality of obtained image data is compared with other image data, and the object with respect to the image sensor a object movement detection method for chromatic detecting the relative movement information, and
Analyzing image data acquired by the image sensor to determine the contrast of the fine irregularities on the surface of the object, and setting the size of the predetermined area to be smaller as the contrast is higher Method.
JP2008276982A 2008-10-28 2008-10-28 Printer and object movement detection method Expired - Fee Related JP5371370B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008276982A JP5371370B2 (en) 2008-10-28 2008-10-28 Printer and object movement detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008276982A JP5371370B2 (en) 2008-10-28 2008-10-28 Printer and object movement detection method

Publications (2)

Publication Number Publication Date
JP2010105203A JP2010105203A (en) 2010-05-13
JP5371370B2 true JP5371370B2 (en) 2013-12-18

Family

ID=42295119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008276982A Expired - Fee Related JP5371370B2 (en) 2008-10-28 2008-10-28 Printer and object movement detection method

Country Status (1)

Country Link
JP (1) JP5371370B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5441618B2 (en) * 2009-10-30 2014-03-12 キヤノン株式会社 Movement detection apparatus, movement detection method, and recording apparatus
JP5815929B2 (en) 2010-08-05 2015-11-17 キヤノン株式会社 Recording apparatus and recording method
US9073309B1 (en) 2013-12-12 2015-07-07 Canon Kabushiki Kaisha Apparatus and method for recording
JP6360410B2 (en) 2014-10-07 2018-07-18 キヤノン株式会社 Recording apparatus and driving method thereof
JP6768451B2 (en) * 2016-11-02 2020-10-14 キヤノン株式会社 Equipment, methods and programs
JP2018083678A (en) * 2016-11-22 2018-05-31 キヤノン株式会社 Detection device and detection method
JP7040070B2 (en) * 2017-02-17 2022-03-23 株式会社リコー Transport equipment, transport system and processing method
JP7163787B2 (en) * 2019-01-21 2022-11-01 コニカミノルタ株式会社 Image forming apparatus, paper characteristics detection method, and paper characteristics detection program
CN110978822A (en) * 2019-11-19 2020-04-10 广州市三环永新科技有限公司 Lottery printing method, lottery reader, lottery printing system and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553906B1 (en) * 2000-10-17 2003-04-29 Nexpress Solutions Llc Method and apparatus for sensing a register discrepancy in a multi-color printed item, and register control system and register marks
JP2006159602A (en) * 2004-12-07 2006-06-22 Canon Inc Recording method and recorder
JP2007217176A (en) * 2006-02-20 2007-08-30 Seiko Epson Corp Controller and liquid ejection device
JP2010099921A (en) * 2008-10-23 2010-05-06 Canon Inc Printer

Also Published As

Publication number Publication date
JP2010105203A (en) 2010-05-13

Similar Documents

Publication Publication Date Title
JP5371370B2 (en) Printer and object movement detection method
JP6569302B2 (en) Image forming apparatus, method for adjusting image forming apparatus, and program
JP4487495B2 (en) Inkjet printer
JP5586918B2 (en) Movement detection apparatus and recording apparatus
US9126404B2 (en) Ink jet recording apparatus and method for detecting faulty discharge in ink jet recording apparatus
JP5029462B2 (en) Image recording apparatus and image recording method
JP5495716B2 (en) Movement detection apparatus and recording apparatus
JP6417858B2 (en) Recording apparatus and recording apparatus control method
US20090323094A1 (en) Conveying apparatus and printing apparatus
US10341523B2 (en) Printer and control method of a printer
JP2012166385A (en) Inkjet recording apparatus and method for adjusting the same
JP5441618B2 (en) Movement detection apparatus, movement detection method, and recording apparatus
JP2018187874A (en) Printing device and control method
US9073309B1 (en) Apparatus and method for recording
JP4193902B2 (en) Image recording apparatus, image recording method, image recording program, and printer driver
JP2010030161A (en) Image formation device
JP5404318B2 (en) Movement detection apparatus and recording apparatus
JP2010099921A (en) Printer
JP4398219B2 (en) Image forming apparatus
JP5582963B2 (en) Conveying device, recording device, and detection method
CN113199876B (en) Printing apparatus and control method
JP2009119763A (en) Image forming device and position detection method
JP2010099920A (en) Printer
JP2017222453A (en) Transportation detection device, transportation device, recording device, transportation detection method and program
JP2020146845A (en) Image recording apparatus, reading apparatus, image recording method, and recording medium conveyance method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130129

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130401

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130423

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130624

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130820

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130917

LAPS Cancellation because of no payment of annual fees