JP4552154B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP4552154B2
JP4552154B2 JP2007061801A JP2007061801A JP4552154B2 JP 4552154 B2 JP4552154 B2 JP 4552154B2 JP 2007061801 A JP2007061801 A JP 2007061801A JP 2007061801 A JP2007061801 A JP 2007061801A JP 4552154 B2 JP4552154 B2 JP 4552154B2
Authority
JP
Japan
Prior art keywords
data
read data
unit
line
image reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007061801A
Other languages
Japanese (ja)
Other versions
JP2008227822A (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.)
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 JP2007061801A priority Critical patent/JP4552154B2/en
Publication of JP2008227822A publication Critical patent/JP2008227822A/en
Application granted granted Critical
Publication of JP4552154B2 publication Critical patent/JP4552154B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Description

本発明は、画像読取装置に関する。   The present invention relates to an image reading apparatus.

従来より、画像読取装置として、CCD等の読取センサにより原稿を1ラインずつ読み取り、得られたデータをハーネス等の伝送路を介して制御部に送信し、そこで各種の画像処理を行うものが知られている。こうした画像読取装置では、データの通信時にノイズ等の影響によりデータの一部が破損し、画像の品質が低下したり、あるいは画像処理が正常に行われなくなったりすることがある。これに対し、例えば特許文献1には、ファクシミリ送信時に、受信したデータをチェックし、そのデータが不良であると判断された場合には、それを正常に受信された1つ前のライン分のデータと置換する技術が記載されている。こうした技術を画像読取装置に用いることにより、画像品質の低下を軽減することが可能である。
特開平6−245048号公報
2. Description of the Related Art Conventionally, as an image reading device, a document is read line by line by a reading sensor such as a CCD, and the obtained data is transmitted to a control unit via a transmission line such as a harness, where various image processing is performed. It has been. In such an image reading apparatus, part of the data may be damaged due to the influence of noise or the like during data communication, and the quality of the image may be reduced, or image processing may not be performed normally. On the other hand, for example, in Patent Document 1, the received data is checked at the time of facsimile transmission, and if it is determined that the data is defective, the data for the previous line that has been normally received is received. Techniques for replacing data are described. By using such a technique for an image reading apparatus, it is possible to reduce a decrease in image quality.
JP-A-6-245048

しかしながら、上述のように受信したデータの適合性をチェックするために、従来では、送信側においてデータにチェック用の情報(パリティ情報など)を付加して送信し、受信側でその情報に基づいて受信不良の有無を判断していた。そのため、通信するデータ量が増え、その結果、通信速度が低下し、ひいては読み取りの実行速度が低下してしまうという問題があった。   However, in order to check the suitability of the received data as described above, conventionally, information for checking (parity information or the like) is added to the data on the transmission side and transmitted, and the reception side based on the information. It was judged whether there was a reception failure. For this reason, there is a problem that the amount of data to be communicated increases, and as a result, the communication speed decreases, and consequently the reading execution speed decreases.

本発明は上記のような事情に基づいて完成されたものであって、通信データ量の増加を回避するとともに、データの受信不良による影響を抑制することが可能な画像読取装置を提供することを目的とする。   The present invention has been completed based on the circumstances as described above, and provides an image reading apparatus capable of avoiding an increase in the amount of communication data and suppressing the influence due to poor reception of data. Objective.

上記の目的を達成するための手段として、請求項1の発明は、読取ユニットとこの読取ユニットに伝送路を介して接続された制御部とを備えた画像読取装置において、前記読取ユニットは、原稿を読み取り画素データを取得する読取手段と、前記読取手段により取得された画素データその画素データの属性を示し規則的な値をとる属性データを付加した読取データを前記制御部に送信する送信手段と、を備え、前記制御部は、前記送信手段において前記読取データに付与された前記属性データの値と等しい基準値を生成する基準生成手段と、受信した読取データの属性データを前記基準値と比較し、当該属性データが前記基準値と等しいときに前記読取データを適合と判断し、等しくないときに前記読取データを適合を不適合と判断する判断手段と、受信した読取データが前記判断手段により適合と判断された場合にその読取データを出力し、読取データが前記判断手段により不適合と判断された場合に、その読取データを適合化して出力する適合化手段と、前記適合化手段によって出力された読取データを画像処理する画像処理部と、を備える。 As means for achieving the above object, the invention of claim 1 is an image reading apparatus comprising a reading unit and a control unit connected to the reading unit via a transmission path , wherein the reading unit is a document. a reading means for obtaining a read pixel data, transmission of the transmitted to the pixel data read data added with the attribute data to take shows regularly values the attributes of the pixel data acquired by the reading unit to the control unit and means, wherein the control unit is configured with a reference generating means for generating a value equal to the reference value of the attribute data attached to the read data in the transmitting unit, the received read attribute data the reference value data determine the comparison, determines that fit the read data when the attribute data is equal to the reference value, is determined as irrelevant to fit the read data when not equal to And when the received read data is determined to be suitable by the determining means, the read data is output. When the read data is determined to be incompatible by the determining means, the read data is adapted and output. An adaptation unit, and an image processing unit that performs image processing on the read data output by the adaptation unit .

請求項2の発明は、請求項1に記載の画像読取装置において、前記適合化手段は、受信した読取データが前記判断手段により不適合と判断された場合に、その読取データに含まれる属性データを前記基準生成手段により生成された基準値と置き換える。   According to a second aspect of the present invention, in the image reading apparatus according to the first aspect, when the received read data is determined to be non-conforming by the determining means, the adapting means outputs attribute data included in the read data. Replace with the reference value generated by the reference generation means.

請求項3の発明は、請求項1または請求項2に記載の画像読取装置において、受信した読取データの画素データを保存する保存手段を備え、前記適合化手段は、前記判断手段により受信した読取データが適合と判断された場合に、その読取データの画素データを前記保存手段に保存し、また不適合と判断された場合に、受信した読取データの画素データを、前記保存手段に保存されかつ前記判断手段により適合と判断された画素データと置き換える。   According to a third aspect of the present invention, in the image reading apparatus according to the first or second aspect, the image reading apparatus further comprises storage means for storing pixel data of the received read data, and the adapting means is the read received by the determining means. When the data is determined to be compatible, the pixel data of the read data is stored in the storage unit, and when the data is determined to be incompatible, the pixel data of the received read data is stored in the storage unit and Replace with pixel data determined to be compatible by the determination means.

請求項4の発明は、請求項1から請求項3のいずれか一項に記載の画像読取装置において、前記読取手段は、ライン単位で原稿の読み取りを行うものであって、前記判断手段により読取データが不適合と判断された数に基づいて各ラインの読取データが適合であるか不適合であるかを判断する第2判断手段と、前記適合化手段から出力される読取データの画素データをライン毎に書き込み領域を変えて記憶する記憶手段と、を備え、前記記憶手段は、前記第2判断手段によりラインが不適合と判断された場合に、そのラインに対応する書き込み領域を変更しない。   According to a fourth aspect of the present invention, in the image reading apparatus according to any one of the first to third aspects, the reading unit reads a document line by line, and the reading unit reads the original. Second determination means for determining whether the read data of each line is compatible or non-compliant based on the number of data determined to be non-conforming, and the pixel data of the read data output from the adapting means for each line Storage means for changing and storing the writing area, and the storage means does not change the writing area corresponding to the line when the second determination means determines that the line is incompatible.

請求項5の発明は、請求項4に記載の画像読取装置において、前記読取ユニットと原稿とを副走査方向に相対移動させる移動手段と、前記移動手段の動作を制御する移動制御手段と、を備え、前記移動制御手段は、前記第2判断手段によりラインが不適合と判断された場合に、前記読取ユニットと原稿とをその不適合のラインに対応する位置に相対移動させる。   According to a fifth aspect of the present invention, in the image reading apparatus according to the fourth aspect of the present invention, a moving unit that relatively moves the reading unit and the document in the sub-scanning direction, and a movement control unit that controls the operation of the moving unit. The movement control means moves the reading unit and the document relative to a position corresponding to the non-conforming line when the second determination means determines that the line is non-conforming.

請求項6の発明は、請求項1から請求項5のいずれか一項に記載の画像読取装置において、前記属性データは、画素データがラインの先頭であるか否かの情報を含む。   According to a sixth aspect of the present invention, in the image reading apparatus according to any one of the first to fifth aspects, the attribute data includes information indicating whether or not the pixel data is the head of a line.

請求項7の発明は、請求項1から請求項6のいずれか一項に記載の画像読取装置において、前記属性データは、画素データの色情報を含む。   According to a seventh aspect of the present invention, in the image reading apparatus according to any one of the first to sixth aspects, the attribute data includes color information of pixel data.

請求項8の発明は、請求項7に記載の画像読取装置において、前記送信手段は、一画素に対し複数色の画素データと各画素データの色情報を含む属性データとを含んだ読取データを同期信号と共に順次送信し、前記基準生成手段は、前記同期信号に基づいて、前記複数色の各色に対応する属性データの基準値を周期的に生成する。   The invention according to claim 8 is the image reading apparatus according to claim 7, wherein the transmission unit receives read data including pixel data of a plurality of colors and attribute data including color information of each pixel data for one pixel. The reference generation means sequentially generates a reference value of attribute data corresponding to each of the plurality of colors based on the synchronization signal.

<請求項1の発明>
受信された読取データに含まれる属性データを基準値と比較し、その読取データが不適合と判断された場合にその読取データを適合化してから出力する。受信不良のチェックを属性データに基づいて行うため、読取データに新たにチェック用のデータを追加せずに済む。従って、通信データ量の増加を回避するとともに、データの受信不良による影響を抑制することができる。
<Invention of Claim 1>
The attribute data included in the received read data is compared with a reference value, and if the read data is determined to be incompatible, the read data is adapted and output. Since the reception failure check is performed based on the attribute data, it is not necessary to add new check data to the read data. Therefore, it is possible to avoid an increase in the amount of communication data and to suppress the influence due to poor data reception.

<請求項2の発明>
受信した読取データが不適合と判断された場合に、属性データを基準値と置き換える。これにより、出力された読取データを用いて行われる処理(画像処理等)においてエラーが発生することを防止できる。
<Invention of Claim 2>
If the received read data is determined to be incompatible, the attribute data is replaced with a reference value. Thereby, it is possible to prevent an error from occurring in a process (image processing or the like) performed using the output read data.

<請求項3の発明>
受信した読取データが適合と判断された場合にその画素データを保存手段に保存し、不適合と判断された場合に、その画素データを保存手段に保存されかつ適合と判断された画素データと置き換える。これにより、画像品質の低下を軽減することができる。
<Invention of Claim 3>
When the received read data is determined to be compatible, the pixel data is stored in the storage unit. When the received read data is determined to be incompatible, the pixel data is replaced with pixel data stored in the storage unit and determined to be compatible. As a result, a decrease in image quality can be reduced.

<請求項4の発明>
ラインが不適合と判断された場合には、記憶手段の書き込み領域が変更されないため、そのラインの画素データが次に出力されるラインのデータにより上書きされる。従って、不適合のラインの画素データにより画像品質が低下することを防止できる。
<Invention of Claim 4>
If it is determined that the line is incompatible, the writing area of the storage means is not changed, so that the pixel data of that line is overwritten with the data of the next output line. Therefore, it is possible to prevent the image quality from being deteriorated due to the pixel data of the nonconforming line.

<請求項5の発明>
不適合のラインが発生した場合には、読取ユニット若しくは原稿をその不適合のラインに対応する位置に移動させる。これにより、不適合のラインの読み取りが再度行われるため、画像品質の低下を防止することができる。
<Invention of Claim 5>
When a non-conforming line is generated, the reading unit or the document is moved to a position corresponding to the non-conforming line. Thereby, the non-conforming line is read again, so that it is possible to prevent the image quality from being deteriorated.

<請求項6及び請求項7の発明>
属性データは、画素データがライン先頭であることを示す情報や、画素データの色情報(モノクロの画素データであるか、あるいはRGBのいずれの色であるかを示す情報など)を含んでいる。このように、画素データに付加される属性データに基づいて受信不良のチェックを行うため、読取データに新たにチェック用のデータを追加せずに済む。
<Invention of Claims 6 and 7>
The attribute data includes information indicating that the pixel data is the head of the line and color information of the pixel data (information indicating whether the pixel data is monochrome pixel data or RGB). In this way, since reception failure is checked based on the attribute data added to the pixel data, it is not necessary to add new check data to the read data.

<請求項8の発明>
カラーの読取データが送受信される際に、各色に対応する属性データの基準値が同期信号に基づいて周期的に生成される。従って、属性データの色情報に基づいて、読取データが適合であるか不適合であるかの判断を的確に行うことができる。
<Invention of Claim 8>
When color read data is transmitted / received, a reference value of attribute data corresponding to each color is periodically generated based on the synchronization signal. Therefore, based on the color information of the attribute data, it can be accurately determined whether the read data is compatible or non-compatible.

次に本発明の一実施形態について図1から図13を参照して説明する。   Next, an embodiment of the present invention will be described with reference to FIGS.

(複合機の概略構成)
本実施形態では、本発明をスキャナ機能、プリンタ機能、コピー機能、ファクシミリ機能等を備えた複合機1(画像読取装置の一例)に適用した例を示す。図1は、複合機1の外観斜視図であり、図2は、その原稿カバー6を上げた状態を示す外観斜視図である。
(Schematic configuration of MFP)
In the present embodiment, an example in which the present invention is applied to a multifunction device 1 (an example of an image reading apparatus) having a scanner function, a printer function, a copy function, a facsimile function, and the like will be described. FIG. 1 is an external perspective view of the multifunction device 1, and FIG. 2 is an external perspective view showing a state in which the document cover 6 is raised.

複合機1は、用紙上に画像を印刷する印刷部(図示せず)等を収容した本体部2を備え、その上方に原稿を読み取るための原稿読取部3を備えている。原稿読取部3は、透明なガラス板からなる原稿載置部4を備えており、この原稿載置部4の下側には後述する読取センサ16を備えた読取ユニット10が設けられている。また、原稿載置部4の上面は、ADF(自動原稿供給装置)5を備えた原稿カバー6により開閉可能に覆われている。ADF5は、複数枚の原稿を積載可能な原稿トレイ7を備え、その原稿トレイ7に載置された原稿を一枚ずつ読み取り位置へ搬送する。   The multi-function device 1 includes a main body unit 2 that houses a printing unit (not shown) that prints an image on a sheet, and a document reading unit 3 for reading a document above the main unit 2. The document reading unit 3 includes a document placing unit 4 made of a transparent glass plate, and a reading unit 10 including a reading sensor 16 described below is provided below the document placing unit 4. The upper surface of the document placing portion 4 is covered with a document cover 6 provided with an ADF (automatic document feeder) 5 so as to be opened and closed. The ADF 5 includes a document tray 7 on which a plurality of documents can be stacked, and conveys the documents placed on the document tray 7 to the reading position one by one.

原稿の読み取りは、原稿載置部4上に原稿を載置して行う場合と、ADF5を利用する場合とがある。前者の場合、読取ユニット10がモータ13(図3参照)の動力により副走査方向(矢線B参照)に移動され、その際に読取センサ16により主走査方向(矢線A参照)に1ラインずつ原稿載置部4上の原稿の読み取りが行われる。また、後者の場合には、読取ユニット10が原稿載置部4の左端位置に固定され、原稿がADF5の駆動によって読取センサ16による読み取りが可能な位置に搬送されたときに、原稿の読み取りが主走査方向に1ラインずつ行われる。   There are cases where the original is read by placing the original on the original placing portion 4 and using the ADF 5. In the former case, the reading unit 10 is moved in the sub-scanning direction (see arrow B) by the power of the motor 13 (see FIG. 3), and at that time, the reading sensor 16 moves one line in the main scanning direction (see arrow A). The originals on the original placement unit 4 are read one by one. In the latter case, when the reading unit 10 is fixed at the left end position of the document placing portion 4 and the document is conveyed to a position where the reading sensor 16 can read by driving the ADF 5, the document is read. One line is performed in the main scanning direction.

(画像読取システム)
図3は、複合機1内の画像読取システムの構成を示すブロック図である。この画像読取システムは、読取ユニット10と、この読取ユニット10にハーネス11(伝送路の一例)を介して接続される制御基板12(制御部の一例)と、読取ユニット10を移動させるためのモータ13(移動手段の一例)とを備えている。
(Image reading system)
FIG. 3 is a block diagram showing the configuration of the image reading system in the multifunction machine 1. The image reading system includes a reading unit 10, a control board 12 (an example of a control unit) connected to the reading unit 10 via a harness 11 (an example of a transmission path), and a motor for moving the reading unit 10. 13 (an example of moving means).

制御基板12上には、ASIC(Application Specific IC)14が設けられている。この、ASIC14は、読取ユニット10に対してクロック信号やライン同期信号等を含んだユニット駆動信号を送信してその動作を制御する。また、ASIC14は、モータ13にモータ駆動信号を送信してその動作を制御する。   An ASIC (Application Specific IC) 14 is provided on the control board 12. The ASIC 14 transmits a unit drive signal including a clock signal and a line synchronization signal to the reading unit 10 to control its operation. The ASIC 14 also transmits a motor drive signal to the motor 13 to control its operation.

読取ユニット10は、読取センサ16(読取手段の一例)とAFE(Analog Front End)17とを備えている。AFE17は、読取センサ16を駆動するための読取タイミング信号を生成して読取センサ16に出力する。読取センサ16は、例えばCCD(Charge Coupled Device)であって、一列に並んで配置されたフォトダイオードを備えており、光源より原稿に光を当てたときの反射光を個々のフォトダイオードで受光し、画素毎に反射光の光強度(明度)を電気信号(アナログの画信号)に変換する。   The reading unit 10 includes a reading sensor 16 (an example of reading means) and an AFE (Analog Front End) 17. The AFE 17 generates a reading timing signal for driving the reading sensor 16 and outputs the reading timing signal to the reading sensor 16. The reading sensor 16 is, for example, a CCD (Charge Coupled Device), and includes photodiodes arranged in a line, and the individual photodiodes receive reflected light when light is applied to the document from the light source. The light intensity (brightness) of the reflected light is converted into an electrical signal (analog image signal) for each pixel.

AFE17は、読取センサ16から出力された画信号をA/D変換器18にて量子化し、得られた画素データをデータ送信部19に引き渡す(A/D変換器18及びデータ送信部19は送信手段の一例)。データ送信部19では、後述するようにその画素データに属性データを加えた読取データを生成し、その読取データをデータ同期信号とともに制御基板12側へ送信する。制御基板12は、データ受信部20にて読取データの受信処理を行い、そのデータを画像処理部21に引き渡す。画像処理部21では、得られたデータに各種の画像処理を施す。   The AFE 17 quantizes the image signal output from the reading sensor 16 by the A / D converter 18 and delivers the obtained pixel data to the data transmission unit 19 (the A / D converter 18 and the data transmission unit 19 transmit). Example of means). As will be described later, the data transmission unit 19 generates read data obtained by adding attribute data to the pixel data, and transmits the read data together with the data synchronization signal to the control board 12 side. The control board 12 receives the read data at the data receiving unit 20 and delivers the data to the image processing unit 21. The image processing unit 21 performs various types of image processing on the obtained data.

(読取データ)
図4は、モノクロの読取データの内容を説明する図であり、図5は、カラー(RGB)の読取データの内容を説明する図である。
(Read data)
FIG. 4 is a diagram for explaining the contents of monochrome read data, and FIG. 5 is a diagram for explaining the contents of color (RGB) read data.

読取データ及びデータ同期信号は、読取ユニット10から制御基板12へハーネス10を介してLVDS(低電圧差動伝送、Low Voltage Differential Signaling)方式により送信される。データ送信部19は、データ同期信号を1対のペア線を用いて1チャネルのLVDS信号(RXCLK)として出力し、読取データを3対のペア線を用いて3チャネルのLVDS信号(RX0,RX1,RX2)として出力する。読取データは、データ同期信号の一周期につき、各チャネル7ビット、計21ビットが伝送される。モノクロの読取データは、図4に示すように、1画素あたり16ビットの画素データ(階調データ、D[0]〜D[15])と5ビットの属性データ(C[0]〜C[4])とからなり、データ同期信号の一周期につき1画素分の画素データとその属性データとが伝送される。また、カラーの読取データは、図5に示すように、1画素におけるRGBの各要素がそれぞれ16ビットの画素データと5ビットの属性データとからなり、データ同期信号の一周期につきRGBのうち一要素の画素データとその属性データとが伝送される。また、カラーの読取データは、例えば、画素「n」のR要素、G要素、B要素、続いて画素「n+1」のR要素、G要素、...のように、各色が一定の順序で連続して伝送される。   The read data and the data synchronization signal are transmitted from the reading unit 10 to the control board 12 via the harness 10 by the LVDS (Low Voltage Differential Signaling) method. The data transmission unit 19 outputs a data synchronization signal as a one-channel LVDS signal (RXCLK) using a pair of pair lines, and reads data as a three-channel LVDS signal (RX0, RX1) using three pairs of pair lines. , RX2). As read data, 7 bits for each channel and 21 bits in total are transmitted for one cycle of the data synchronization signal. As shown in FIG. 4, monochrome read data includes 16-bit pixel data (gradation data, D [0] to D [15]) and 5-bit attribute data (C [0] to C [ 4]), and pixel data for one pixel and its attribute data are transmitted for each period of the data synchronization signal. In addition, as shown in FIG. 5, the color read data is composed of 16-bit pixel data and 5-bit attribute data for each RGB element in one pixel. The pixel data of the element and its attribute data are transmitted. Further, the color read data includes, for example, the R element, the G element, and the B element of the pixel “n”, followed by the R element, the G element, and the like of the pixel “n + 1” in a predetermined order. It is transmitted continuously.

図6及び図7は、属性データの内容を説明する図である。属性データは、画素データに付加されてその属性を示すものであり、図6に示すように、5ビットの属性データのうちの1ビット(C[4])は、画素データが1ラインの先頭のデータであるか(「1」)否か(「0」)を示す。また、図7に示すように、属性データのその他の4ビット(C[3:0])は、画素データが、ラインの両端部にある無効画素データであるか(「0000」)、RGBの各色の有効画素データであるか(「0001」「0010」「0011」)、RGBの各色の黒基準となるデータであるか(「0110」「0111」「1000」)、あるいは読み取りの開始位置のデータであるか(「1111」)を示す。また、画素データがモノクロの有効画素データであることを示す属性データ(C[4:0])は、例えば「00010」のように一定の値となる。   6 and 7 are diagrams for explaining the contents of the attribute data. The attribute data is added to the pixel data to indicate the attribute. As shown in FIG. 6, 1 bit (C [4]) of the 5-bit attribute data indicates that the pixel data is the head of one line. ("1") or not ("0"). Further, as shown in FIG. 7, the other 4 bits (C [3: 0]) of the attribute data indicate whether the pixel data is invalid pixel data at both ends of the line (“0000”), or RGB Is it valid pixel data for each color (“0001”, “0010”, “0011”), whether it is black reference data for each color of RGB (“0110”, “0111”, “1000”), or the reading start position Indicates whether it is data (“1111”). Further, attribute data (C [4: 0]) indicating that the pixel data is monochrome effective pixel data has a constant value such as “00010”, for example.

(データ受信部及び画像処理部の構成)
図8は、ASIC14上に設けられたデータ受信部20及び画像処理部21の構成を示すブロック図である。
(Configuration of data receiving unit and image processing unit)
FIG. 8 is a block diagram showing the configuration of the data receiving unit 20 and the image processing unit 21 provided on the ASIC 14.

データ送信部19から送信された読取データ及びデータ同期信号は、データ受信部20のLVDSレシーバ23に入力される。LVDSレシーバ23は、PLL(位相同期回路)24及びシリアル−パラレル変換器25を備えており、PLL24は、入力されたデータ同期信号の周波数を7逓倍したクロック信号を、読取データ(RX0,RX1,RX2)取り込み用のクロック信号としてシリアル−パラレル変換器25に与える。また、PLL24は、データ同期信号と同一周波数のクロック信号(CLKOUT)を、以下に述べるラッチ・分離回路26、基準シーケンス発生回路27、適合データ保存回路29、データセレクタ30など、データ受信部20の各部に基準クロックとして与える。また、PLL24は、ロック検出機能を備えており、データ同期信号に対するロック(同期)が外れた場合には、その旨をCPU42に通知する。   The read data and the data synchronization signal transmitted from the data transmission unit 19 are input to the LVDS receiver 23 of the data reception unit 20. The LVDS receiver 23 includes a PLL (phase synchronization circuit) 24 and a serial-parallel converter 25. The PLL 24 converts a clock signal obtained by multiplying the frequency of the input data synchronization signal by 7 to read data (RX0, RX1, RX2) It is given to the serial-parallel converter 25 as a clock signal for capturing. Further, the PLL 24 generates a clock signal (CLKOUT) having the same frequency as that of the data synchronization signal from the data receiving unit 20 such as a latch / separation circuit 26, a reference sequence generation circuit 27, a compatible data storage circuit 29, a data selector 30, and the like described below. Each part is given as a reference clock. Further, the PLL 24 has a lock detection function. When the lock (synchronization) with respect to the data synchronization signal is released, the PLL 24 notifies the CPU 42 to that effect.

シリアル−パラレル変換器25は、PLLからのクロック信号に基づくタイミングで、3チャネル各7ビットの読取データを21ビットのパラレルデータに変換し、それをラッチ・分離回路26に出力する。   The serial-parallel converter 25 converts the 7-bit read data for each of the 3 channels into 21-bit parallel data at the timing based on the clock signal from the PLL, and outputs it to the latch / separation circuit 26.

ラッチ・分離回路26は、入力された読取データを一時的に保持するとともに、その読取データを16ビットの画素データと5ビットの属性データとに分離して出力する。画素データは、適合データ保存回路29とデータセレクタ30とに出力され、属性データは基準シーケンス発生回路27、比較回路28、データセレクタ30に出力される。   The latch / separation circuit 26 temporarily holds the input read data and separates the read data into 16-bit pixel data and 5-bit attribute data and outputs the separated data. The pixel data is output to the compatible data storage circuit 29 and the data selector 30, and the attribute data is output to the reference sequence generation circuit 27, the comparison circuit 28, and the data selector 30.

基準シーケンス発生回路27(基準生成手段)は、ラッチ・分離回路26からラインの先頭のデータであることを示す属性データが出力されると、PLL24から出力されるクロック信号(CLKOUT)に同期したタイミングで基準シーケンスを発生する。この基準シーケンスは、属性データの基準値であって、読取データがモノクロの場合には、モノクロの有効画素であることを示す属性データの値(「00010」)で一定である。また、読取データがカラーの場合には、画素データが、Rの有効画素であることを示す属性データの値(「00001」)、Gの有効画素であることを示す属性データの値(「00010」)、Bの有効画素であることを示す属性データの値(「00011」)を順に繰り返し発生する。   When the attribute data indicating the head data of the line is output from the latch / separation circuit 26, the reference sequence generation circuit 27 (reference generation means) is synchronized with the clock signal (CLKOUT) output from the PLL 24. To generate a reference sequence. This reference sequence is a reference value of attribute data. When the read data is monochrome, the reference sequence is a constant attribute data value (“00010”) indicating a monochrome effective pixel. If the read data is color, the attribute data value (“00001”) indicating that the pixel data is an R effective pixel, and the attribute data value (“00010”) indicating that the pixel data is a G effective pixel. )) And the attribute data value (“00011”) indicating that it is a valid pixel of B are repeatedly generated in order.

基準シーケンス発生回路27で発生した基準シーケンスは、比較回路28とデータセレクタ30とに出力される。比較回路28(判断手段の一例)は、ラッチ・分離回路26から出力された属性データと、基準シーケンスの値とを比較する。そして、両者が等しいか否かの判定結果を示す判定信号を、適合データ保存回路29、データセレクタ30及び不適合カウンタ31に出力する。   The reference sequence generated by the reference sequence generation circuit 27 is output to the comparison circuit 28 and the data selector 30. The comparison circuit 28 (an example of a determination unit) compares the attribute data output from the latch / separation circuit 26 with the value of the reference sequence. Then, a determination signal indicating a determination result of whether or not the two are equal is output to the compatible data storage circuit 29, the data selector 30, and the non-conforming counter 31.

適合データ保存回路29(保存手段の一例)は、読取データがカラーの場合にはRGBのそれぞれ1要素分についての画素データ(16ビット)を一時的に記憶することができ、モノクロの場合には1画素分の画素データを一時的に記憶することができる。適合データ保存回路29は、比較回路28より属性データと基準シーケンスとが等しいことを示す判定信号(H)を受けた場合、即ち、読取データが正常に受信された適合データであると判断された場合には、ラッチ・分離回路26から出力される画素データを所定の記憶領域に保存する。また、比較回路28より属性データと基準シーケンスとが異なることを示す判定信号(L)を受けた場合、即ち、読取データが正常に受信されなかった不適合データであると判断された場合には、ラッチ・分離回路26から出力される画素データの保存を行わない。   The adaptive data storage circuit 29 (an example of a storage unit) can temporarily store pixel data (16 bits) for each element of RGB when the read data is in color, and in the case of monochrome. Pixel data for one pixel can be temporarily stored. When the matching data storage circuit 29 receives the determination signal (H) indicating that the attribute data is equal to the reference sequence from the comparison circuit 28, that is, it is determined that the read data is normally received matching data. In this case, the pixel data output from the latch / separation circuit 26 is stored in a predetermined storage area. When the determination signal (L) indicating that the attribute data and the reference sequence are different from the comparison circuit 28 is received, that is, when it is determined that the read data is non-conforming data that has not been normally received, The pixel data output from the latch / separation circuit 26 is not saved.

図9は、データ受信部20がカラーの読取データを受信したときの処理の内容を例示したタイミングチャートである。同図に示すように、例えば、受信された読取データの属性データ(「VG(n-2)」)と基準シーケンスの値(「VG」)とが等しい場合には、比較回路28からHの判定信号が出力される。そして、適合データ保存回路29では、その判定信号に基づき、属性データ(「VG(n-2)」)に対応する画素データ(「DG(n-2)」)をG要素に対応する記憶領域に保存する。なお、この画素データ(「DG(n-2)」)は、次にG要素の適合データが得られた際(通常は3クロック後)に、新たに受信されたG要素の画素データ(通常は「DG(n-1)」)と置き換えられる。   FIG. 9 is a timing chart illustrating the contents of processing when the data receiving unit 20 receives color read data. As shown in the figure, for example, when the attribute data (“VG (n−2)”) of the received read data is equal to the value of the reference sequence (“VG”), the comparison circuit 28 sets H A determination signal is output. Based on the determination signal, the matching data storage circuit 29 stores pixel data (“DG (n-2)”) corresponding to the attribute data (“VG (n-2)”) in the storage area corresponding to the G element. Save to. This pixel data ("DG (n-2)") is the newly received G element pixel data (usually after 3 clocks) (usually after 3 clocks). Is replaced with "DG (n-1)").

また、例えば、受信された読取データの属性データ(「VB(n-1)」)と基準シーケンスの値(「VB」)とが等しくない場合には、比較回路28からLの判定信号が出力される。この場合、適合データ保存回路29では、属性データ(「VB(n-1)」)に対応する画素データ(「DB(n-1)」)を保存しないため、B要素の記憶領域には前に適合データとして保存された画素データ(「DB(n-2)」)がそのまま残される。   For example, when the attribute data (“VB (n−1)”) of the received read data is not equal to the value of the reference sequence (“VB”), an L determination signal is output from the comparison circuit 28. Is done. In this case, the matching data storage circuit 29 does not store the pixel data ("DB (n-1)") corresponding to the attribute data ("VB (n-1)"). The pixel data ("DB (n-2)") stored as the matching data is left as it is.

図8に示すデータセレクタ30(適合化手段の一例)は、画像処理部21に対するインターフェイスを兼ねている。データセレクタ30は、ラッチ・分離回路26から出力される画素データと、適合データ保存回路29から出力される画素データとのうち一方を画像処理部21に出力するとともに、ラッチ・分離回路26から出力される属性データと、基準シーケンス発生回路27から出力される基準シーケンスの値とのうちの一方を画像処理部21に出力することができる。データセレクタ30は、比較回路28から読取データが適合データである旨の判定信号を受けた場合には、ラッチ・分離回路26から出力される属性データ及び画素データを画像処理部21に出力する。また、読取データが不適合データである旨の判定信号を受けた場合には、基準シーケンス発生回路27から出力される属性データと、適合データ保存回路29から出力される画素データとを画像処理部21に出力する。   A data selector 30 (an example of an adaptation unit) illustrated in FIG. 8 also serves as an interface to the image processing unit 21. The data selector 30 outputs one of the pixel data output from the latch / separation circuit 26 and the pixel data output from the matching data storage circuit 29 to the image processing unit 21 and outputs from the latch / separation circuit 26. One of the attribute data and the reference sequence value output from the reference sequence generation circuit 27 can be output to the image processing unit 21. The data selector 30 outputs the attribute data and pixel data output from the latch / separation circuit 26 to the image processing unit 21 when receiving a determination signal indicating that the read data is matching data from the comparison circuit 28. When the determination signal indicating that the read data is nonconforming data is received, the attribute data output from the reference sequence generation circuit 27 and the pixel data output from the conformance data storage circuit 29 are displayed in the image processing unit 21. Output to.

前述の例で言えば、受信された読取データの属性データ(「VG(n-2)」)と基準シーケンスの値(「VG」)とが等しい場合には、その属性データ(「VG(n-2)」)と、その属性データ(「VG(n-2)」)に対応する画素データ(「DG(n-2)」)とが出力される。また、受信された読取データの属性データ(「VB(n-1)」)が基準シーケンスの値(「VB」)とが等しくない場合には、基準シーケンスの値と適合データ保存回路29に保存されたB要素の画素データ(「DB(n-2)」)、即ち適合化された属性データ及び画素データが出力される。   In the above example, if the attribute data (“VG (n-2)”) of the received read data is equal to the reference sequence value (“VG”), the attribute data (“VG (n -2) ") and pixel data (" DG (n-2) ") corresponding to the attribute data (" VG (n-2) ") are output. If the attribute data (“VB (n−1)”) of the received read data is not equal to the reference sequence value (“VB”), the reference sequence value and the matching data storage circuit 29 are stored. The B element pixel data ("DB (n-2)"), that is, the adapted attribute data and pixel data are output.

不適合カウンタ31は、比較回路28からの判定信号に基づいて、各ライン中において不適合データと判断された読取データの数をカウントし、そのカウント数を第2比較回路32(第2判断手段の一例)に出力する。第2比較回路32は、そのカウント数が所定の設定値以上であるかを判断する。ここで、この第2比較回路32では、1ライン中において不適合データと判断された読取データの数が設定値未満の場合に、そのラインの読取データが適合したものであると判断し、同読取データの数が設定値以上の場合に、そのラインの読取データが不適合なものであると判断する。そして、ラインの読取データが不適合であると判断された場合に、不適合信号を後述するバッファカウンタ38、ライトポインタ37及びCPU42に出力する。   The nonconforming counter 31 counts the number of read data determined to be nonconforming data in each line based on the determination signal from the comparison circuit 28, and the second counter circuit 32 (an example of second determining means) ). The second comparison circuit 32 determines whether the count number is equal to or greater than a predetermined set value. Here, in the second comparison circuit 32, when the number of read data determined to be nonconforming data in one line is less than the set value, it is determined that the read data of that line is compatible, and the same read If the number of data is greater than or equal to the set value, it is determined that the read data for that line is incompatible. When it is determined that the read data of the line is incompatible, a nonconforming signal is output to a buffer counter 38, a write pointer 37 and a CPU 42 which will be described later.

なお、第2比較回路32にて用いる設定値は、例えば1ラインの画素数の半分の値等とすることができる。また、1ライン中において、連続的に不適合の読取データが発生すると、断続的に不適合の読取データが発生した場合よりも目立つため、1ライン中に連続的に発生する不適合データに対しては、断続的に発生するものよりも設定値を大きい値に設定しても良い。後述するように、不適合と判断されたラインの読取データは破棄されるため、最終的に得られる画像データの品質を確保することができる。   Note that the setting value used in the second comparison circuit 32 can be, for example, a value that is half the number of pixels in one line. In addition, when non-conforming read data is continuously generated in one line, it is more noticeable than when non-conforming read data is intermittently generated. The set value may be set to a value larger than that generated intermittently. As will be described later, since the read data of the line determined to be incompatible is discarded, the quality of the finally obtained image data can be ensured.

図10は、画像処理部21のラインバッファ34の構造を示す図であり、図11は、画像処理部21の動作を示すタイミングチャートである。   FIG. 10 is a diagram showing the structure of the line buffer 34 of the image processing unit 21, and FIG. 11 is a timing chart showing the operation of the image processing unit 21.

画像処理部21は、画像処理を行うためのラインバッファ34(記憶手段の一例)と、そのラインバッファ34に対するデータの読み書きを制御するバッファ制御回路35とを備えている。ラインバッファ34は、例えば図10に示すように、1ラインあたり0x1000画素、1色あたり0x100ラインの画素データを記憶することが可能である。   The image processing unit 21 includes a line buffer 34 (an example of a storage unit) for performing image processing, and a buffer control circuit 35 that controls reading and writing of data with respect to the line buffer 34. For example, as shown in FIG. 10, the line buffer 34 can store pixel data of 0x1000 pixels per line and 0x100 lines per color.

バッファ制御回路35は、データセレクタ30から出力された画素データをライトポインタ37により示されたライン(書き込み領域)に書き込む。ライトポインタ37は、RGBの各色毎に設けられており、読取データがカラーの場合には、1つの画素データを書き込む毎に、RGBの順に対応するライトポインタ37が示すラインに書き込み位置を移動させる。1ライン分の画素データの書き込みが終了した後には、ASIC14に設けられたライン同期生成回路(図示せず)からライン同期信号を受けたときに、ライトポインタ37を制御するカウンタがカウントアップされることで、ライトポインタ37が次のライン(書き込み領域)の先頭アドレスを示し、次ラインの書き込み準備ができる。   The buffer control circuit 35 writes the pixel data output from the data selector 30 to the line (write area) indicated by the write pointer 37. The write pointer 37 is provided for each color of RGB, and when the read data is color, each time one pixel data is written, the writing position is moved to the line indicated by the corresponding light pointer 37 in the order of RGB. . After the writing of pixel data for one line is completed, when a line synchronization signal is received from a line synchronization generation circuit (not shown) provided in the ASIC 14, the counter that controls the write pointer 37 is counted up. Thus, the write pointer 37 indicates the start address of the next line (write area), and the next line can be prepared for writing.

また、1ライン分の画素データの書き込みが終了した場合には、同時に後述の二次元画像処理による画像処理が可能なライン数を示すバッファカウンタ38がインクリメントされる。バッファ制御回路35は、バッファカウンタ38の値により処理が可能なライン数の画素データがラインバッファ34に書き込まれたことを判断すると、ラインバッファ34からリードポインタ39が示すラインのデータを読み出して、二次元画像処理回路40に出力する。1ライン分のデータの読み出しが終了すると、リードポインタ39を制御するカウンタがカウントアップされることで、リードポインタ39が次のライン(読み出し領域)の先頭アドレスを示し、次ラインの読み出し準備ができる。また、これに伴ってバッファカウンタ38がデクリメントされる。   When the writing of pixel data for one line is completed, the buffer counter 38 indicating the number of lines that can be processed by two-dimensional image processing, which will be described later, is simultaneously incremented. When the buffer control circuit 35 determines that pixel data of the number of lines that can be processed is written to the line buffer 34 based on the value of the buffer counter 38, the buffer control circuit 35 reads the data of the line indicated by the read pointer 39 from the line buffer 34, The data is output to the two-dimensional image processing circuit 40. When the reading of data for one line is completed, the counter that controls the read pointer 39 is incremented, so that the read pointer 39 indicates the start address of the next line (reading area), and the next line can be read. . Along with this, the buffer counter 38 is decremented.

バッファカウンタ38及びライトポインタ37は、図11に示すように、第2比較回路32からラインが不適合であることを示す不適合信号を受けた場合には、そのラインの書き込みが終了したタイミング(ライン同期信号と同期したタイミング)での、バッファカウンタ38のインクリメント、若しくはライトポインタ37を制御するカウンタのカウントアップを行わない。このため、不適合であると判断されたラインの画素データについては画像処理が行われず、また、ライトポインタ37が示すライン(書き込み領域)の先頭アドレスが更新されないことから、その不適合ラインの画素データが続いてデータ受信部20側から入力されるラインの画素データによって上書きされる。ここで不適合ラインの画素データに上書きされるデータは、後述するように、原稿上の不適合ラインに対応する箇所を読取センサ16により再度読み取り直すことで得られる画素データであり、このように構成することにより、欠けたラインのない画像データを得ることができる。   As shown in FIG. 11, when the buffer counter 38 and the write pointer 37 receive a non-conformance signal indicating that the line is non-conforming from the second comparison circuit 32, the write timing of the line (line synchronization) At the timing synchronized with the signal), the buffer counter 38 is not incremented or the counter for controlling the write pointer 37 is not counted up. For this reason, image processing is not performed on the pixel data of the line determined to be incompatible, and the start address of the line (write area) indicated by the write pointer 37 is not updated. Subsequently, it is overwritten by the pixel data of the line input from the data receiving unit 20 side. Here, the data to be overwritten on the pixel data of the non-conforming line is pixel data obtained by re-reading the portion corresponding to the non-conforming line on the document by the reading sensor 16 as will be described later. As a result, image data without missing lines can be obtained.

なお、不適合のラインが発生した場合に、その不適合ラインに対応する箇所の再読み取りを行わない構成とすることもできる。その場合には、上述のようにライトポインタ37が示すラインの先頭アドレスが更新されないことから、ラインバッファ34の不適合ラインの画素データが次のラインの画素データによって上書きされる。このため、得られる画素データは、1ライン分が抜けて副走査方向に圧縮されることになるが、実際には頻繁に不適合のラインが発生することはなく、また後述する二次元画像処理により圧縮されたラインが目立たなくなるため、実用上は差し支えがない。   In addition, when a non-conforming line is generated, it may be configured not to re-read a portion corresponding to the non-conforming line. In that case, since the head address of the line indicated by the write pointer 37 is not updated as described above, the pixel data of the nonconforming line in the line buffer 34 is overwritten by the pixel data of the next line. For this reason, the obtained pixel data is lost in one line and compressed in the sub-scanning direction. However, in practice, non-conforming lines are not frequently generated, and two-dimensional image processing described later is used. Since the compressed line becomes inconspicuous, there is no practical problem.

二次元画像処理回路40は、上述のようにリードポインタ39で示されたラインバッファ34の画素データをバッファ制御回路35を介して受け取り、そのデータに各種の補正処理やフィルター処理などの二次元画像処理を施し、得られた画像データを順次制御基板12上に設けられたRAM(図示せず)に保存する。   As described above, the two-dimensional image processing circuit 40 receives the pixel data of the line buffer 34 indicated by the read pointer 39 via the buffer control circuit 35, and uses the data as a two-dimensional image such as various correction processes and filter processes. Processing is performed, and the obtained image data is sequentially stored in a RAM (not shown) provided on the control board 12.

(モータ制御)
ASIC14上には、CPU42(移動制御手段の一例、図8参照)が設けられており、このCPU42により読取ユニット10を原稿に対して移動させるためのモータ13が制御される。図12は、CPU42による割り込み処理の内容を示すフローチャートであり、図13は、CPU42によるモータ制御処理の内容を示すフローチャートである。
(Motor control)
On the ASIC 14, a CPU 42 (an example of movement control means, see FIG. 8) is provided, and the CPU 42 controls the motor 13 for moving the reading unit 10 relative to the document. FIG. 12 is a flowchart showing the contents of the interrupt process by the CPU 42, and FIG. 13 is a flowchart showing the contents of the motor control process by the CPU 42.

前述の第2比較回路32は、ラインが不適合であると判断された場合に、不適合信号をCPU42に対する割込み信号として出力する。また、前述のPLL24は、ロックが外れた場合に不適合信号をCPU42に対する割込み信号として出力する。CPU42は、割込み信号を受けた場合に図12に示す割り込み処理を開始し、その割込み信号が不適合信号であった場合(S101:Yes)には、ライン無効フラグの値を「1」にセットする(S102)。なお、このライン無効フラグは、RAM上に設けられ、通常時は「0」の値にセットされている。また、割込み信号が不適合信号でない場合(S101:No)には、その割込み信号に対応した処理を実行する(S103)。   The second comparison circuit 32 described above outputs a nonconforming signal as an interrupt signal to the CPU 42 when it is determined that the line is nonconforming. The PLL 24 described above outputs a nonconforming signal as an interrupt signal to the CPU 42 when the lock is released. The CPU 42 starts the interrupt processing shown in FIG. 12 when receiving the interrupt signal. If the interrupt signal is a nonconforming signal (S101: Yes), the value of the line invalid flag is set to “1”. (S102). This line invalid flag is provided on the RAM and is normally set to a value of “0”. If the interrupt signal is not a nonconforming signal (S101: No), processing corresponding to the interrupt signal is executed (S103).

また、CPU42は、原稿載置部4に載置された原稿の読み取りが指示された場合に、図13に示すモータ制御処理を開始する。CPU42は、まずRAM上に設けられた読取位置(読取センサ16の原稿に対する位置)を示すカウンタの値を0(読取開始位置に対応する)とし、モータ13の駆動を開始する(S201)。モータ13の駆動によって読取センサ16がホームポジション(初期位置)から原稿に対して副走査方向に移動する。CPU42は、読取センサ16が読取開始位置に到達したかを判断し(S202)、読取開始位置に到達したところで(S202:Yes)、データの取り込み動作の開始を指示する(S203)。これにより、読取ユニット10によって得られた読取データが順次制御基板12側に送信され、前述の画像処理等が行われる。   The CPU 42 starts the motor control process shown in FIG. 13 when instructed to read the document placed on the document placement unit 4. The CPU 42 first sets the value of the counter indicating the reading position (position of the reading sensor 16 relative to the document) provided on the RAM to 0 (corresponding to the reading start position), and starts driving the motor 13 (S201). As the motor 13 is driven, the reading sensor 16 moves from the home position (initial position) in the sub-scanning direction with respect to the document. The CPU 42 determines whether the reading sensor 16 has reached the reading start position (S202). When the reading sensor 16 has reached the reading start position (S202: Yes), the CPU 42 instructs the start of the data fetching operation (S203). Thus, the read data obtained by the reading unit 10 is sequentially transmitted to the control board 12 side, and the above-described image processing and the like are performed.

続いて、CPU42は、1ラインの終端部に到達したかを判断し(S204)、終端部に到達した場合(S204:Yes)には、前述のライン無効フラグの値を調べる(S205)。ライン無効フラグの値が「0」であった場合、即ち制御基板12が受信した1ライン分の読取データが適合したものであった場合には、読取位置を示すカウンタの値に1を加える(S206)。続いて、読取センサ16が読取終了位置に到達したかを調べ(S207)、読取終了位置に到達していない場合(S207:No)には、S204に戻る。また、読取終了位置に到達した場合(S207:Yes)には、読取センサ16をホームポジションに戻す旨をモータ13に指示し(S208)、このモータ制御処理を終了する。   Subsequently, the CPU 42 determines whether or not the end of one line has been reached (S204), and when it reaches the end (S204: Yes), it checks the value of the line invalid flag (S205). When the value of the line invalid flag is “0”, that is, when the reading data for one line received by the control board 12 is suitable, 1 is added to the value of the counter indicating the reading position ( S206). Subsequently, it is checked whether the reading sensor 16 has reached the reading end position (S207). If the reading sensor 16 has not reached the reading end position (S207: No), the process returns to S204. If the reading end position has been reached (S207: Yes), the motor 13 is instructed to return the reading sensor 16 to the home position (S208), and the motor control process ends.

また、S205において、ライン無効フラグの値が「1」であった場合、即ち制御基板12が受信した1ライン分の読取データが不適合であった場合には、まずライン無効フラグの値を「0」に戻し(S209)、モータ13の停止を指示する。次に、読取センサ16を再読込位置、即ち不適合のライン(1つ前のライン)に対応する位置に戻すようにモータ13に指示し(S211)、続いて読取センサ16を再び読取時の方向へ移動させるようにモータ13に指示し(S212)、S204に戻る。これにより、不適合のラインの読み取りが再度行われる。   In S205, if the value of the line invalid flag is “1”, that is, if the read data for one line received by the control board 12 is incompatible, first, the value of the line invalid flag is set to “0”. ”(S209) to instruct the motor 13 to stop. Next, the motor 13 is instructed to return the reading sensor 16 to the re-reading position, that is, the position corresponding to the non-conforming line (the previous line) (S211), and then the reading sensor 16 is again read in the reading direction. The motor 13 is instructed to move to (S212), and the process returns to S204. As a result, the non-conforming line is read again.

(本実施形態の効果)
以上のように本実施形態によれば、受信された読取データに含まれる属性データを基準値と比較し、その読取データが不適合と判断された場合にその読取データを適合化してから出力する。受信不良のチェックを属性データに基づいて行うため、読取データに新たにチェック用のデータを追加せずに済む。従って、通信データ量の増加を回避するとともに、データの受信不良による影響を抑制することができる。
(Effect of this embodiment)
As described above, according to the present embodiment, the attribute data included in the received read data is compared with the reference value, and when the read data is determined to be incompatible, the read data is adapted and output. Since the reception failure check is performed based on the attribute data, it is not necessary to add new check data to the read data. Therefore, it is possible to avoid an increase in the amount of communication data and to suppress the influence due to poor data reception.

また、受信した読取データが不適合と判断された場合に、属性データを基準値と置き換える。これにより、出力された読取データを用いて行われる処理(画像処理等)においてエラーが発生することを防止できる。   If the received read data is determined to be incompatible, the attribute data is replaced with a reference value. Thereby, it is possible to prevent an error from occurring in a process (image processing or the like) performed using the output read data.

また、受信した読取データが適合と判断された場合にその画素データを適合データ保存回路29に保存し、不適合と判断された場合に、その画素データを適合データ保存回路29に保存されかつ適合と判断された画素データと置き換える。これにより、画像品質の低下を軽減することができる。   If the received read data is determined to be compatible, the pixel data is stored in the compatible data storage circuit 29. If the received read data is determined to be incompatible, the pixel data is stored in the compatible data storage circuit 29 and is determined to be compatible. Replace with the determined pixel data. As a result, a decrease in image quality can be reduced.

また、ラインが不適合と判断された場合には、ラインバッファ34の書き込み領域が変更されないため、そのラインの画素データが次に出力されるラインのデータにより上書きされる。従って、不適合のラインの画素データにより画像品質が低下することを防止できる。   If it is determined that the line is incompatible, the writing area of the line buffer 34 is not changed, so that the pixel data of the line is overwritten with the data of the next output line. Therefore, it is possible to prevent the image quality from being deteriorated due to the pixel data of the nonconforming line.

また、不適合のラインが発生した場合には、読取ユニット10若しくは原稿をその不適合のラインに対応する位置に移動させる。これにより、不適合のラインの読み取りが再度行われるため、画像品質の低下を防止することができる。   If a non-conforming line is generated, the reading unit 10 or the original is moved to a position corresponding to the non-conforming line. Thereby, the non-conforming line is read again, so that it is possible to prevent the image quality from being deteriorated.

また、属性データは、画素データがライン先頭であることを示す情報や、画素データの色情報(モノクロの画素データであるか、あるいはRGBのいずれの色であるかを示す情報など)を含んでいる。このように、画素データに付加される属性データに基づいて受信不良のチェックを行うため、読取データに新たにチェック用のデータを追加せずに済む。   The attribute data includes information indicating that the pixel data is the head of the line and color information of the pixel data (information indicating whether the pixel data is monochrome pixel data or RGB color). Yes. In this way, since reception failure is checked based on the attribute data added to the pixel data, it is not necessary to add new check data to the read data.

また、カラーの読取データが送受信される際に、各色に対応する属性データの基準値(基準シーケンス)が同期信号に基づいて周期的に生成される。従って、属性データの色情報に基づいて、読取データが適合であるか不適合であるかの判断を的確に行うことができる。   Further, when color read data is transmitted and received, a reference value (reference sequence) of attribute data corresponding to each color is periodically generated based on the synchronization signal. Therefore, based on the color information of the attribute data, it can be accurately determined whether the read data is compatible or non-compatible.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
(1)上記実施形態では、原稿載置部に載置した原稿を読み取る際に不適合のラインが発生した場合に、読取ユニット10を原稿に対して再読取位置に移動して再度読み取りを行うものを示したが、本発明によれば、ADF等で原稿側を読取センサに対して移動させる際に不適合のラインが生じた場合にも、同様に、原稿側を再読取位置に移動させて再度読み取りを行う構成とすることができる。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and drawings. For example, the following embodiments are also included in the technical scope of the present invention.
(1) In the above-described embodiment, when a non-conforming line occurs when reading a document placed on the document placement portion, the reading unit 10 is moved to a reread position with respect to the document and is read again. However, according to the present invention, even when an incompatible line occurs when the document side is moved with respect to the reading sensor by ADF or the like, the document side is similarly moved to the re-reading position and again. It can be set as the structure which reads.

(2)上記実施形態では、読取データが不適合であると判断された場合に、属性データと画素データとの両方を適合化するものを示したが、本発明によれば、属性データのみを適合化して出力するように構成しても良い。これによっても、不適合の読取データにより画像処理等に不具合が生じるのを防止することができる。 (2) In the above embodiment, when the read data is determined to be incompatible, the attribute data and the pixel data are both adapted. However, according to the present invention, only the attribute data is adapted. It is also possible to configure so that the data is output. Also by this, it is possible to prevent a problem in image processing or the like from occurring due to non-conforming read data.

(3)上記実施形態では、適合と判断された画素データのみを適合データ保存回路に保存するものを示したが、本発明によれば、例えば、保存手段に不適合データを含めて数ライン分のデータを保存し、出力時に適合データのみを選択して出力するような構成としても良い。
(4)上記実施形態では、本発明を複合機に適用した例を示したが、本発明は、読み取り機能を備えていれば、プリンタ機能、コピー機能、ファクシミリ機能等を備えていない画像読取装置にも適用することができる。
(3) In the above embodiment, only the pixel data determined to be compatible is stored in the compatible data storage circuit. However, according to the present invention, for example, the storage unit includes non-conforming data for several lines. A configuration may be adopted in which data is stored, and only conforming data is selected and output at the time of output.
(4) In the above-described embodiment, an example in which the present invention is applied to a multifunction peripheral has been described. However, the present invention is not limited to an image reading apparatus provided with a printer function, a copy function, a facsimile function, or the like as long as it has a reading function. It can also be applied to.

本発明の一実施形態における複合機の外観斜視図1 is an external perspective view of a multifunction machine according to an embodiment of the present invention. 複合機のの原稿カバーを上げた状態を示す外観斜視図External perspective view showing the state in which the document cover of the multifunction machine is raised 複合機内の画像読取システムの構成を示すブロック図Block diagram showing the configuration of the image reading system in the multifunction machine モノクロの読取データの内容を説明する図Diagram explaining the contents of monochrome read data カラー(RGB)の読取データの内容を説明する図The figure explaining the content of the reading data of color (RGB) 属性データの内容を説明する図Diagram explaining the contents of attribute data 属性データの内容を説明する図Diagram explaining the contents of attribute data データ受信部及び画像処理部の構成を示すブロック図Block diagram showing the configuration of the data receiving unit and the image processing unit データ受信部がカラーの読取データを受信したときの処理の内容を例示するタイミングチャートTiming chart illustrating the contents of processing when the data receiving unit receives color read data 画像処理部のラインバッファの構造を示す図The figure which shows the structure of the line buffer of an image processing part 画像処理部の動作を示すタイミングチャートTiming chart showing operation of image processing unit CPUによる割り込み処理の内容を示すフローチャートA flowchart showing the contents of interrupt processing by the CPU CPUによるモータ制御処理の内容を示すフローチャートFlow chart showing contents of motor control processing by CPU

1...複合機(画像読取装置)
11...ハーネス(伝送路)
12...制御基板(制御部)
13...モータ(移動手段)
16...読取センサ(読取手段)
18...A/D変換器(送信手段)
19...データ送信部(送信手段)
28...比較回路(判断手段)
29...適合データ保存回路(保存手段)
30...データセレクタ(適合化手段)
32...第2比較回路(第2判断手段)
34...ラインバッファ(記憶手段)
42...CPU(移動制御手段)
1. Multifunction machine (image reading device)
11. Harness (transmission path)
12 ... Control board (control unit)
13. Motor (moving means)
16. Reading sensor (reading means)
18 ... A / D converter (transmission means)
19. Data transmission part (transmission means)
28. Comparison circuit (determination means)
29. Applicable data storage circuit (storage means)
30 ... Data selector (Adaptation means)
32. Second comparison circuit (second determination means)
34. Line buffer (storage means)
42 ... CPU (movement control means)

Claims (8)

読取ユニットとこの読取ユニットに伝送路を介して接続された制御部とを備えた画像読取装置において、
前記読取ユニットは、
原稿を読み取り画素データを取得する読取手段と、
前記読取手段により取得された画素データその画素データの属性を示し規則的な値をとる属性データを付加した読取データを前記制御部に送信する送信手段と、
を備え、
前記制御部は、
前記送信手段において前記読取データに付与された前記属性データの値と等しい基準値を生成する基準生成手段と、
受信した読取データの属性データを前記基準値と比較し、当該属性データが前記基準値と等しいときに前記読取データを適合と判断し、等しくないときに前記読取データを適合を不適合と判断する判断手段と、
受信した読取データが前記判断手段により適合と判断された場合にその読取データを出力し、読取データが前記判断手段により不適合と判断された場合に、その読取データを適合化して出力する適合化手段と、
前記適合化手段によって出力された読取データを画像処理する画像処理部と、
を備えることを特徴とする画像読取装置
In an image reading apparatus including a reading unit and a control unit connected to the reading unit via a transmission path ,
The reading unit is
Reading means for reading a document and obtaining pixel data;
Transmission means for transmitted to the pixel data read data added with the attribute data to take shows regularly values the attributes of the pixel data acquired by the reading unit to the control unit,
With
The controller is
Reference generation means for generating a reference value equal to the value of the attribute data given to the read data in the transmission means ;
The attribute data of the received read data is compared with the reference value, and when the attribute data is equal to the reference value, the read data is determined to be suitable, and when the attribute data is not equal, the read data is determined to be non-conforming Means,
Adaptation means for outputting the read data when the received read data is determined to be suitable by the determination means, and for adapting and outputting the read data when the read data is determined to be incompatible by the determination means When,
An image processing unit that performs image processing on the read data output by the adaptation unit;
An image reading apparatus comprising:
請求項1に記載の画像読取装置において、
前記適合化手段は、受信した読取データが前記判断手段により不適合と判断された場合に、その読取データに含まれる属性データを前記基準生成手段により生成された基準値と置き換えることを特徴とする画像読取装置
The image reading apparatus according to claim 1,
It said matching means, the image and replaces when received read data is determined as irrelevant by the determining means, the reference value generated by the reference generation unit attribute data included in the read data Reader .
請求項1または請求項2に記載の画像読取装置において、
受信した読取データの画素データを保存する保存手段を備え、
前記適合化手段は、前記判断手段により受信した読取データが適合と判断された場合に、その読取データの画素データを前記保存手段に保存し、また不適合と判断された場合に、受信した読取データの画素データを、前記保存手段に保存されかつ前記判断手段により適合と判断された画素データと置き換えることを特徴とする画像読取装置
The image reading apparatus according to claim 1 or 2,
Comprising storage means for storing pixel data of received read data;
The adaptation unit stores the pixel data of the read data in the storage unit when the read data received by the determination unit is determined to be compatible, and the read data received when the read data is determined to be incompatible. The pixel data is replaced with pixel data stored in the storage unit and determined to be suitable by the determination unit .
請求項1から請求項3のいずれか一項に記載の画像読取装置において、
前記読取手段は、ライン単位で原稿の読み取りを行うものであって、
前記判断手段により読取データが不適合と判断された数に基づいて各ラインの読取データが適合であるか不適合であるかを判断する第2判断手段と、
前記適合化手段から出力される読取データの画素データをライン毎に書き込み領域を変えて記憶する記憶手段と、を備え、
前記記憶手段は、前記第2判断手段によりラインが不適合と判断された場合に、そのラインに対応する書き込み領域を変更しないことを特徴とする画像読取装置
The image reading apparatus according to any one of claims 1 to 3,
The reading means reads a document in line units,
Second determining means for determining whether the read data of each line is conforming or non-conforming based on the number of the read data determined by the determining means to be incompatible;
Storage means for storing pixel data of read data output from the adapting means by changing a writing area for each line, and
The image reading apparatus according to claim 1, wherein the storage means does not change a writing area corresponding to a line when the second determination means determines that the line is incompatible.
請求項4に記載の画像読取装置において、
前記読取ユニットと原稿とを副走査方向に相対移動させる移動手段と、
前記移動手段の動作を制御する移動制御手段と、を備え、
前記移動制御手段は、前記第2判断手段によりラインが不適合と判断された場合に、前記読取ユニットと原稿とをその不適合のラインに対応する位置に相対移動させることを特徴とする画像読取装置
The image reading apparatus according to claim 4.
Moving means for relatively moving the reading unit and the document in the sub-scanning direction;
Movement control means for controlling the operation of the movement means,
The image reading apparatus according to claim 1, wherein the movement control unit relatively moves the reading unit and the document to a position corresponding to the non-conforming line when the second determining unit determines that the line is non-conforming.
請求項1から請求項5のいずれか一項に記載の画像読取装置において、
前記属性データは、画素データがラインの先頭であるか否かの情報を含むことを特徴とする画像読取装置
In the image reading device according to any one of claims 1 to 5,
The image reading apparatus according to claim 1, wherein the attribute data includes information indicating whether the pixel data is a head of a line.
請求項1から請求項6のいずれか一項に記載の画像読取装置において、
前記属性データは、画素データの色情報を含むことを特徴とする画像読取装置
The image reading apparatus according to any one of claims 1 to 6,
The image reading apparatus , wherein the attribute data includes color information of pixel data.
請求項7に記載の画像読取装置において、
前記送信手段は、一画素に対し複数色の画素データと各画素データの色情報を含む属性データとを含んだ読取データを同期信号と共に順次送信し、
前記基準生成手段は、前記同期信号に基づいて、前記複数色の各色に対応する属性データの基準値を周期的に生成することを特徴とする画像読取装置
The image reading apparatus according to claim 7.
The transmitting means sequentially transmits read data including pixel data of a plurality of colors and attribute data including color information of each pixel data to one pixel together with a synchronization signal,
The image reading apparatus , wherein the reference generation unit periodically generates a reference value of attribute data corresponding to each of the plurality of colors based on the synchronization signal.
JP2007061801A 2007-03-12 2007-03-12 Image reading device Expired - Fee Related JP4552154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007061801A JP4552154B2 (en) 2007-03-12 2007-03-12 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007061801A JP4552154B2 (en) 2007-03-12 2007-03-12 Image reading device

Publications (2)

Publication Number Publication Date
JP2008227822A JP2008227822A (en) 2008-09-25
JP4552154B2 true JP4552154B2 (en) 2010-09-29

Family

ID=39845914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007061801A Expired - Fee Related JP4552154B2 (en) 2007-03-12 2007-03-12 Image reading device

Country Status (1)

Country Link
JP (1) JP4552154B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021097272A (en) * 2019-12-13 2021-06-24 株式会社リコー Data processing apparatus, image reading device, image forming apparatus, and data processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000175039A (en) * 1998-12-07 2000-06-23 Ricoh Co Ltd Image reader
JP2003060923A (en) * 2001-08-08 2003-02-28 Canon Inc Image processor and method therefor
JP2004208036A (en) * 2002-12-25 2004-07-22 Fujitsu Ten Ltd Block noise reducing device in digital television broadcast receiver
JP2005122257A (en) * 2003-10-14 2005-05-12 Seiko Epson Corp Image processing apparatus and electronic apparatus
JP2006191536A (en) * 2004-12-07 2006-07-20 Seiko Epson Corp Image pickup device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000175039A (en) * 1998-12-07 2000-06-23 Ricoh Co Ltd Image reader
JP2003060923A (en) * 2001-08-08 2003-02-28 Canon Inc Image processor and method therefor
JP2004208036A (en) * 2002-12-25 2004-07-22 Fujitsu Ten Ltd Block noise reducing device in digital television broadcast receiver
JP2005122257A (en) * 2003-10-14 2005-05-12 Seiko Epson Corp Image processing apparatus and electronic apparatus
JP2006191536A (en) * 2004-12-07 2006-07-20 Seiko Epson Corp Image pickup device

Also Published As

Publication number Publication date
JP2008227822A (en) 2008-09-25

Similar Documents

Publication Publication Date Title
US8149468B2 (en) Image reading device
JP4552154B2 (en) Image reading device
US20140063561A1 (en) Image processing apparatus, image forming apparatus, and image processing method
US8243348B2 (en) Image processing apparatus and method and computer program product for controlling the same
JP2018133646A (en) Image reader, control method of image reader
US5245446A (en) Image processing system
JP4877956B2 (en) Serial data receiving method, apparatus, and image forming apparatus
JPS5839160A (en) System for connection between computer and facsimile
JP2007258997A (en) Image processing apparatus
JP2005031759A (en) Image processor and image processing method to which spatial filter is applied
JP4803378B2 (en) Image processing apparatus and program
JP4039447B2 (en) Color image processing device
CN107197115B (en) Information processing apparatus
JP5742320B2 (en) Image forming apparatus, image forming method, program, and recording medium
JPH06343121A (en) Image processing method of facsimile device and image communications device
JP4039176B2 (en) Color image processing device
JP2000036890A (en) Image reader and computer-readable storage medium thereof
JP2009141947A (en) Apparatus, method and program for processing image
JP2004349858A (en) Image processor and document duplicating apparatus using the same
JP2000184218A (en) Image processor and image processing system
JPH05304575A (en) Digital copying machine
JP2010004278A (en) Image processing device
JP2010074615A (en) Data transmission circuit and image forming device
JP5251644B2 (en) Image reading apparatus and image reading method
JP2012227874A (en) Image processing apparatus and method of processing read image

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091002

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20091014

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20091014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091228

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: 20100617

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100630

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130723

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4552154

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees