JPH06314348A - Code reader - Google Patents

Code reader

Info

Publication number
JPH06314348A
JPH06314348A JP5102476A JP10247693A JPH06314348A JP H06314348 A JPH06314348 A JP H06314348A JP 5102476 A JP5102476 A JP 5102476A JP 10247693 A JP10247693 A JP 10247693A JP H06314348 A JPH06314348 A JP H06314348A
Authority
JP
Japan
Prior art keywords
code
data
original
black
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5102476A
Other languages
Japanese (ja)
Inventor
Taketo Ochiai
健人 落合
Shigeru Sugita
茂 杉田
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 JP5102476A priority Critical patent/JPH06314348A/en
Publication of JPH06314348A publication Critical patent/JPH06314348A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a code reader which can accurately read the codes given on an original despite the curling or fluttering of the original caused during its transfer and despite the change of distance caused between the original and a sensor. CONSTITUTION:A code reader is provided with a reflective sensor 5 which detects the code of a white/black pattern given on the original transferred on a carrying path 10 by the rolls 1-4, an amplifier 6 which amplifies the output of the sensor 5, an A/D converter 7 which converts the output of the amplifier 6 into the digital multilevel value, and the binarizing circuits 30-34 which binarize simultaneously or in sequence the multilevel data at plural different slice levels to acquire the binary data corresponding to the detected code. These slice levels are set in consideration of the curling, fluttering and the vertical deviation of the original, and only the data that are kept in a prescribed range are supplied to a code recognizing circuit 40 as the binary data. Thus the code can be accurately read on the original.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、バーコードのような白
黒のパターンにより表わされるコードが記入されている
原稿を、搬送系により搬送しながら反射型センサにより
読取るコード読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code reader for reading a document on which a code represented by a black and white pattern such as a bar code is written by a reflection type sensor while being conveyed by a conveying system.

【0002】更に詳しくは、本発明は、搬送系を持ち、
白黒パターンで表されるコードが原稿上に存在し、反射
型アナログセンサで読み取ったアナログデータをデジタ
ル的な多値データへと変換し、その多値データにスライ
スレベルを設けて2値データへと変換し、その2値デー
タによりコードを判別するコード読取装置に関する。
More specifically, the present invention has a transport system,
A code represented by a black-and-white pattern exists on the original, and the analog data read by the reflective analog sensor is converted into digital multi-valued data, and the multi-valued data is provided with a slice level to be converted into binary data. The present invention relates to a code reading device which converts and discriminates a code based on the binary data.

【0003】[0003]

【従来の技術】従来、搬送系を持ち、白黒パターンで表
されるコードが原稿上に存在し、反射型アナログセンサ
でコードを読み取るコード読取装置においては、アナロ
グ入力され、デジタル的なデータへと変換された多値デ
ータを2値データへと変換する際に、一つのスライスレ
ベルでコードデータを2値データへと変換していた。
2. Description of the Related Art Conventionally, in a code reading device which has a conveyance system and a code represented by a black and white pattern is present on a document, and a code is read by a reflection type analog sensor, it is analog input and converted into digital data. When converting the converted multivalued data into binary data, the code data is converted into binary data at one slice level.

【0004】また、従来のこの種の装置においては、原
稿の搬送系内での上下方向の存在位置を測定することは
なく、単に原稿を搬送しながら反射型アナログセンサに
より原稿上の白黒のパターンを読取っていた。
Further, in the conventional apparatus of this type, the vertical position of the original in the conveying system is not measured, but a black and white pattern on the original is simply conveyed by the reflective analog sensor while the original is being conveyed. Was being read.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述の
ような従来装置では、反射型アナログセンサでコードを
読み取る場合、被写体である原稿のコードとセンサとの
距離の変化により、読み取ったアナログ値のばらつきが
あるので、正確な2値化データが得られない場合がある
という欠点があった。つまり、被写体とセンサとの距離
が長いときには、反射による十分な光量が得られないの
で、白色データが黒色データに近づいてしまい、また、
被写体とセンサとの距離が短いときには、反射による光
量が多すぎるので、黒色データが白色データに近づいて
しまうということがあった。そのため、コード判別が困
難になり、コード判別の時間がかかるという欠点もあっ
た。
However, in the conventional device as described above, when the code is read by the reflection type analog sensor, the variation of the read analog value is caused by the change in the distance between the code of the document as the subject and the sensor. Therefore, there is a drawback that accurate binary data may not be obtained. That is, when the distance between the subject and the sensor is long, a sufficient amount of light due to reflection cannot be obtained, so white data approaches black data, and
When the distance between the subject and the sensor is short, the amount of light due to reflection is too large, and thus black data sometimes approaches white data. Therefore, there is a drawback that the code determination becomes difficult and the code determination takes time.

【0006】更にまた、上述のような従来装置では、搬
送系内における原稿の上下方向の存在位置が変化した場
合、反射型アナログセンサの出力も変化してしまい、正
しくコードパターンを読取ることができない場合があっ
た。特に、搬送速度が早くなると、搬送系の原稿の上下
方向の規制部材の間隔を狭くすると搬送性能が低下する
ため、間隔を狭くできず、反射型センサの出力の変化が
大きくなり、正しくコードパターンを読取れない場合が
多く発生していた。
Furthermore, in the conventional apparatus as described above, when the vertical position of the original in the transport system changes, the output of the reflection type analog sensor also changes, and the code pattern cannot be read correctly. There were cases. In particular, if the conveyance speed is high, the conveyance performance will be reduced if the space between the vertical regulating members of the document in the conveyance system is narrowed, so that the space cannot be narrowed and the output of the reflective sensor changes greatly, and the correct code pattern is generated. In many cases, it was not possible to read.

【0007】本発明の目的は、上述の点に鑑みて、バー
コードのような白黒パターンのコードが記入された原稿
がカールしたり、あるいはその原稿が搬送中にばたつい
たり、またセンサとその原稿の上下方向間の距離が変動
しても、原稿上のコードを正確に読み取ることのできる
コード読取装置を提供することにある。
In view of the above points, an object of the present invention is to curl an original document on which a black and white pattern code such as a bar code is entered, or the original document flaps during conveyance, and a sensor is used. It is an object of the present invention to provide a code reading device that can accurately read a code on an original even if the distance between the vertical directions of the original changes.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1形態は、原稿を搬送する搬送系と、搬
送されてくる原稿上の白黒パターンのコードを光学的に
検出する光学センサと、該光学センサの出力データをデ
ジタル多値データに変換するデジタル変換手段と、該デ
ジタル変換手段の出力の前記デジタル多値データを多数
のスライスレベルにより2値化し、2値化したデータで
の黒または白の部位の長さが所定の規定範囲内にあるか
否かを判定し、肯定判定の2値データのみを検出コード
のデータとして出力する2値化手段とを具備したことを
特徴とする。
In order to achieve the above object, a first embodiment of the present invention is an optical system for carrying a document and an optical system for optically detecting a code of a black and white pattern on the document being carried. A sensor, digital conversion means for converting the output data of the optical sensor into digital multi-valued data, and the digital multi-valued data of the output of the digital conversion means is binarized by a number of slice levels And a binarizing means for determining whether or not the length of the black or white part is within a predetermined prescribed range and outputting only the binary data of the affirmative determination as the data of the detection code. And

【0009】また、上記目的を達成するため、本発明の
第2形態は、原稿を搬送する搬送系と、搬送されてくる
原稿上の白黒パターンのコードを光学的に検出する光学
センサと、該光学センサの出力データをデジタル多値デ
ータに変換するデジタル変換手段と、該デジタル変換手
段の出力の前記デジタル多値データを複数のスライスレ
ベルにより2値化する際、白黒部位の変化点で白黒部位
の長さを決定することで2値化し、2値化したデータの
1つを選択して黒,白を表わすコードデータとして出力
するコード出力手段とを具備したことを特徴とする。
In order to achieve the above-mentioned object, a second embodiment of the present invention is a conveying system for conveying a document, an optical sensor for optically detecting a code of a black-and-white pattern on the conveyed document, and Digital converting means for converting the output data of the optical sensor into digital multi-valued data, and, when the digital multi-valued data of the output of the digital converting means is binarized by a plurality of slice levels, a black-and-white part at a change point of the black-and-white part Is binarized by deciding the length of the code, and one of the binarized data is selected and outputted as code data representing black and white.

【0010】また、上記目的を達成するため、本発明の
第3形態は、原稿を搬送する搬送系と、搬送されてくる
原稿上の白黒パターンのコードを光学的に検出する光学
センサと、該光学センサと前記原稿との距離を測定する
距離センサと、前記光学センサの出力データを前記距離
センサの出力データで補正したスライスレベルにより2
値化する2値化手段とを具備したことを特徴とする。
In order to achieve the above-mentioned object, a third embodiment of the present invention comprises a conveying system for conveying a document, an optical sensor for optically detecting a code of a black-and-white pattern on the conveyed document, and 2 according to a distance sensor that measures the distance between the optical sensor and the document, and a slice level obtained by correcting the output data of the optical sensor with the output data of the distance sensor.
And a binarizing means for digitizing.

【0011】さらに、本発明は好ましくは、その一態様
として、前記複数のスライスレベルのうち、少くとも1
つは前記原稿のカールまたは該原稿のばたつきに応じた
補正を持った曲線状のスライスレベルであることを特徴
とすることができる。
Furthermore, the present invention preferably has, as one aspect thereof, at least one of the plurality of slice levels.
One may be a curvilinear slice level having a correction according to the curl of the document or the flapping of the document.

【0012】さらに、本発明は好ましくは、その一態様
として、前記複数のスライスレベルの値が互いに逆転し
ない場合において、前記肯定判定が得られた2値データ
の複数のスライスレベルで挟まれた、該肯定判定が得ら
れない2値データのスライスレベルが存在するときは、
故障であると判断する判断手段を更に有することを特徴
とすることができる。
Further, as one aspect of the present invention, preferably, in the case where the values of the plurality of slice levels are not reversed from each other, the plurality of slice levels of the binary data for which the positive determination is obtained are sandwiched. When there is a slice level of binary data for which the affirmative judgment cannot be obtained,
It can be characterized in that it further comprises a judging means for judging that there is a failure.

【0013】[0013]

【作用】本発明の第1形態では、被写体とセンサとの距
離の変化により、センサが読みとったアナログ値にばら
つきがあるということを考慮し、複数個のスライスレベ
ル(しきい値)を設定し、それぞれのスライスレベルで
多値データを2値データへと変換し、各スライスレベル
により、ある黒または白の部位の長さを測定してコード
判別を行い、それぞれのコード判別結果から適切なコー
ド結果を得る。また、上記ばらつきは原稿がカールして
いる場合に顕著に現れるので、原稿のカールに応じた補
正を持った曲線のスライスレベルで2値データへ変換
し、コードを判別する。
In the first embodiment of the present invention, a plurality of slice levels (threshold values) are set in consideration of the fact that the analog value read by the sensor varies due to the change in the distance between the object and the sensor. , Converts multi-valued data to binary data at each slice level, measures the length of a certain black or white part according to each slice level, and makes a code judgment. Get results. Further, since the above-mentioned variation appears remarkably when the original is curled, the code is discriminated by converting into binary data at the slice level of a curve having a correction according to the original curl.

【0014】また、本発明の第2形態では、被写体とセ
ンサとの距離の変化により、センサが読みとったアナロ
グ値にばらつきがあるということ、つまり、原稿が搬送
系を搬送中にばたつきが生じることを考慮して、複数個
のスライスレベルを設定し、それぞれのスライスレベル
で黒または白の部位の長さを測定し、その複数の出力結
果を比較して正しい白または黒の結果を出力し、適切な
コード結果を得る。
Further, in the second embodiment of the present invention, the analog value read by the sensor varies due to the change in the distance between the object and the sensor, that is, the original document flickers while being conveyed through the conveying system. In consideration of the above, set a plurality of slice levels, measure the length of the black or white part at each slice level, and compare the output results to output the correct white or black result, Get the proper code results.

【0015】さらにまた、本発明の第3形態では、反射
型センサの読取り位置における搬送中の原稿の上下方向
の存在位置を測定する距離センサを設け、反射型センサ
の出力を距離センサの出力で補正し、これにより正確に
コードパターンを読取る。
Further, according to the third aspect of the present invention, a distance sensor for measuring the vertical position of the document being conveyed at the reading position of the reflection type sensor is provided, and the output of the reflection type sensor is the output of the distance sensor. Correction is performed, and thereby the code pattern is accurately read.

【0016】[0016]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0017】(第1の実施例)図1は本発明の第1の実
施例のコード読取装置の概略構成を示す。図1におい
て、1,2,3および4は不図示の駆動モータにより回
転されて原稿を送る搬送ローラ、5は原稿上のコードを
読みとるための反射型センサ、6はフォトカプラの如き
反射型センサ5で読みとったアナログデータを増幅する
増幅器、7は増幅器6から送られたアナログデータをデ
ジタル多値データに変換するA/D(アナログ・デジタ
ル)コンバータ、10は原稿を搬送する搬送路である。
また、30,31および32は2値化回路、40はコー
ド認識回路である。
(First Embodiment) FIG. 1 shows a schematic configuration of a code reading apparatus according to a first embodiment of the present invention. In FIG. 1, reference numerals 1, 2, 3 and 4 are conveying rollers which are rotated by a drive motor (not shown) to send a document, 5 is a reflection type sensor for reading a code on the document, and 6 is a reflection type sensor such as a photocoupler. An amplifier for amplifying the analog data read in 5 is an A / D (analog / digital) converter 7 for converting the analog data sent from the amplifier 6 into digital multi-valued data.
Further, reference numerals 30, 31 and 32 are binarization circuits, and 40 is a code recognition circuit.

【0018】なお、33および34は後述の第2の実施
例で使用する2値化回路である。
Numerals 33 and 34 are binarization circuits used in the second embodiment described later.

【0019】図2は図1の装置で読み取られる原稿及
び、コードの一例を示す。図2において、8はコードが
印刷されている原稿、9は原稿8に印刷されているコー
ドである。
FIG. 2 shows an example of an original and a code read by the apparatus shown in FIG. In FIG. 2, reference numeral 8 is a document on which a code is printed, and 9 is a code on the document 8.

【0020】図3は図1の搬送路10の部分を拡大した
図である。図3において、11は搬送路10の中間部分
を搬送されている原稿、12は搬送路10の上側部分を
搬送されている原稿、13は搬送路10の下側部分を搬
送されている原稿を示す。
FIG. 3 is an enlarged view of the portion of the conveying path 10 shown in FIG. In FIG. 3, 11 is an original document being conveyed in the middle portion of the conveyance path 10, 12 is an original document being conveyed in the upper part of the conveyance path 10, and 13 is an original document being conveyed in the lower part of the conveyance path 10. Show.

【0021】図4は図1におけるセンサ5と図2におけ
る原稿8との間の距離が比較的短いときのA/Dコンバ
ータ7の出力および、スライスレベルを示す。図4にお
いて、14は原稿8が紙搬送路10の中間部分を通過し
たときのA/Dコンバータ7の出力波形、15はセンサ
5と原稿8との間の距離が比較的短いときの出力波形、
16は出力波形14を2値化するためのスライスレベ
ル、17は出力波形15を2値化するためのスライスレ
ベルである。
FIG. 4 shows the output of the A / D converter 7 and the slice level when the distance between the sensor 5 in FIG. 1 and the original 8 in FIG. 2 is relatively short. In FIG. 4, 14 is the output waveform of the A / D converter 7 when the document 8 passes through the intermediate portion of the paper transport path 10, and 15 is the output waveform when the distance between the sensor 5 and the document 8 is relatively short. ,
Reference numeral 16 is a slice level for binarizing the output waveform 14, and 17 is a slice level for binarizing the output waveform 15.

【0022】図5は図1におけるセンサ5と図2におけ
る原稿8との間の距離が比較的長いときのA/Dコンバ
ータ7の出力および、スライスレベルを示す。図5にお
いて、14は図4と同じく原稿8が紙搬送路10の中間
部分を通過したときの出力波形、18はセンサ5と原稿
8との間の距離が比較的長いときの出力波形、16は図
4と同じく出力波形14を2値化するためのスライスレ
ベル、19は出力波形18を2値化するためのスライス
レベルである。
FIG. 5 shows the output of the A / D converter 7 and the slice level when the distance between the sensor 5 in FIG. 1 and the document 8 in FIG. 2 is relatively long. 5, 14 is an output waveform when the document 8 passes through the intermediate portion of the paper transport path 10 as in FIG. 4, 18 is an output waveform when the distance between the sensor 5 and the document 8 is relatively long, 16 4 is a slice level for binarizing the output waveform 14, and 19 is a slice level for binarizing the output waveform 18.

【0023】上記構成において、コード9が印刷してあ
る原稿8が、ローラ1と2、またはローラ3と4間の紙
搬送路10の中間部分を図3の原稿11のように搬送さ
れて、センサ5の検出可能領域に到達すると、コード9
のデータがセンサ5で検出され、増幅器6で増幅され、
A/Dコンバータ7でデジタル多値データに変換され
る。この多値データの波形は、図4,図5に示す出力波
形14のようになるので、後段の2値化回路30で、ス
ライスレベル16を用いてコードの数を数え、その数が
規定許容範囲内か否かを判断して、肯定判定ならば2値
化への変換処理を行い、白黒パターン認識を可能にす
る。
In the above structure, the original 8 on which the code 9 is printed is conveyed like the original 11 in FIG. 3 through the intermediate portion of the paper conveying path 10 between the rollers 1 and 2 or the rollers 3 and 4. When the detection area of the sensor 5 is reached, the code 9
Data is detected by the sensor 5 and amplified by the amplifier 6,
It is converted into digital multi-valued data by the A / D converter 7. Since the waveform of this multi-valued data becomes like the output waveform 14 shown in FIGS. 4 and 5, the number of codes is counted by using the slice level 16 in the binarization circuit 30 in the subsequent stage, and the number is defined to be allowable. Whether it is within the range or not is determined, and if the determination is affirmative, conversion processing into binarization is performed to enable black-and-white pattern recognition.

【0024】また、コード9が印刷してある原稿8が、
ローラ1と2、またはローラ3と4間の紙搬送路10の
下側部分を図3の原稿13のように搬送されて、センサ
5の検出可能領域に到達すると、コード9のデータがセ
ンサ5で検出され、増幅器6で増幅され、A/Dコンバ
ータ7でデジタル多値データに変換される。この多値デ
ータの波形は、センサ5と原稿8との距離が長くセンサ
5に十分な光量が得られないため、図5に示すように出
力波形18のようになるので、後段の2値化回路31で
スライスレベル19を用いてコードの数を数え、その数
が規定許容範囲内か否かを判断して、肯定判定ならば2
値化への変換処理を行い、白黒パターン認識を可能にす
る。なお、この出力波形18で白黒パターン認識するた
めには、原稿8が紙搬送路10の中間部分を搬送された
とき得られる出力波形14用のスライスレベル16で
は、パターン認識が不可能であることが図5からわか
る。
The original 8 on which the code 9 is printed is
When the lower part of the paper conveyance path 10 between the rollers 1 and 2 or the rollers 3 and 4 is conveyed like the original 13 in FIG. 3 and reaches the detectable area of the sensor 5, the data of the code 9 is transferred to the sensor 5. Is detected by, is amplified by the amplifier 6, and is converted into digital multilevel data by the A / D converter 7. The waveform of this multi-valued data has an output waveform 18 as shown in FIG. 5 because the distance between the sensor 5 and the original 8 is long and a sufficient amount of light cannot be obtained from the sensor 5, so that the binarization in the latter stage is performed. The circuit 31 counts the number of codes using the slice level 19, judges whether or not the number is within the specified permissible range, and if the judgment is affirmative, 2
Performs conversion processing to digitization and enables black and white pattern recognition. In order to recognize the black-and-white pattern with the output waveform 18, it is impossible to recognize the pattern with the slice level 16 for the output waveform 14 obtained when the document 8 is conveyed in the intermediate portion of the paper conveyance path 10. Can be seen from FIG.

【0025】また、コード9が印刷してある原稿8が、
ローラ1と2、またはローラ3と4間の紙搬送路10の
上側部分を図3の原稿12のように搬送されて、センサ
5の検出可能領域に到達すると、コード9のデータがセ
ンサ5で検出され、増幅器6で増幅され、A/Dコンバ
ータ7でデジタル多値データに変換される。この多値デ
ータの波形は、センサ5と原稿8との距離が短くセンサ
5に反射による光量が多すぎるため図4の出力波形15
のようになるので、後段の2値化回路32でスライスレ
ベル17を用いてコードの数を数え、その数が規定許容
範囲内か否かを判断して、肯定判定ならば2値化への変
換処理を行い、白黒パターン認識を可能にする。なお、
この出力波形15を白黒パターン認識するためには、原
稿8が紙搬送路10の中間部分を搬送されたとき得られ
る出力波形14用のスライスレベル16を用いたので
は、パターン認識が不可能であることが図4からわか
る。
Further, the original 8 on which the code 9 is printed is
When the upper portion of the paper conveyance path 10 between the rollers 1 and 2 or the rollers 3 and 4 is conveyed like the original 12 in FIG. 3 and reaches the detectable area of the sensor 5, the data of the code 9 is detected by the sensor 5. It is detected, amplified by the amplifier 6, and converted into digital multilevel data by the A / D converter 7. The waveform of the multi-valued data has an output waveform 15 shown in FIG.
Therefore, the number of codes is counted by using the slice level 17 in the binarization circuit 32 in the subsequent stage, and it is judged whether or not the number is within the specified allowable range. Performs conversion processing to enable black and white pattern recognition. In addition,
In order to recognize the output waveform 15 in the black-and-white pattern, the pattern recognition cannot be performed by using the slice level 16 for the output waveform 14 obtained when the document 8 is conveyed through the intermediate portion of the paper conveyance path 10. It can be seen from FIG. 4 that there is.

【0026】つまり、本実施例では上記2値化回路30
〜32とその後段のコード認識回路40とにより、紙搬
送路10の上側部分通過用、紙搬送路10の中間部分通
過用、紙搬送路10の下側部分通過用の3個のスライス
レベルを同時に用いて2値化処理とコード認識を同時に
行い、そのうち、1つでもコード認識されれば、コード
結果として出力する。
That is, in the present embodiment, the binarization circuit 30 is used.
To 32 and the code recognition circuit 40 in the subsequent stage, three slice levels for passing the upper part of the paper transport path 10, passing the middle part of the paper transport path 10, and passing the lower part of the paper transport path 10 are set. Binarization processing and code recognition are performed simultaneously by using them at the same time, and if even one of them is recognized, it is output as a code result.

【0027】また、上述の並列処理に代えて、A/Dコ
ンバータ7の出力端に多値データを一時格納するバッフ
ァメモリを接続し、上述した複数のスライスレベルを1
つずつコード認識可能となるまで順次切り換え使用する
ように構成すれば、上記複数の2値化回路30,31,
32は1つの2値化回路に置き換えることができる。
Further, instead of the above-mentioned parallel processing, a buffer memory for temporarily storing multi-valued data is connected to the output end of the A / D converter 7, and the above-mentioned plurality of slice levels are set to 1
If it is constructed such that the codes are sequentially switched and used until the codes can be recognized one by one, the plurality of binarization circuits 30, 31,
32 can be replaced with one binarization circuit.

【0028】[0028]

【表1】 [Table 1]

【0029】上記の表1は上述の本発明の第1の実施例
における各スライスレベルでのコード認識結果と、その
総合判定結果の比較表である。なお、丸印は認識できた
場合、×印は認識できなかった場合である。表1におい
て、スライスレベル17は、第1の実施例で説明した、
原稿8が搬送路10の上側部分を図3の原稿12のよう
に搬送され、センサ5と原稿8との距離が短い場合用の
スライスレベル、スライスレベル16は、第1の実施例
で説明した、原稿8が搬送路10の中間部分を図3の原
稿11のように搬送された場合用のスライスレベル、お
よびスライスレベル19は、第1の実施例で説明した、
原稿8が搬送路10の下側部分を図3の原稿13のよう
に搬送され、センサ5と原稿8との距離が長い場合用の
スライスレベルである。
Table 1 above is a comparison table of the code recognition result at each slice level and the comprehensive judgment result thereof in the first embodiment of the present invention. It should be noted that the circle mark is a case where the mark can be recognized, and the X mark is a case where the mark cannot be recognized. In Table 1, the slice level 17 is described in the first embodiment,
The original 8 is conveyed on the upper side of the conveying path 10 like the original 12 in FIG. 3, and the slice level and the slice level 16 when the distance between the sensor 5 and the original 8 is short are described in the first embodiment. The slice level and the slice level 19 for the case where the document 8 is transported in the middle portion of the transport path 10 as the document 11 of FIG. 3 have been described in the first embodiment.
This is a slice level for the case where the original 8 is conveyed on the lower side of the conveying path 10 like the original 13 in FIG. 3 and the distance between the sensor 5 and the original 8 is long.

【0030】表1に示すように、スライスレベル16と
17と19、または、16のみが原稿上のコード9を2
値化回路30〜32で認識できたならば、コード認識回
路40は原稿8が搬送路10の中間部分を搬送されたも
のと判断してコード認識結果を出力する。スライスレベ
ル16と17、または17のみが原稿上のコード9を2
値化回路で認識できたならば、コード認識回路40は原
稿8が搬送路10の上側部分を搬送されたものと判断し
てコード認識結果を出力する。スライスレベル16と1
9、または、19のみが原稿上のコード9を2値化回路
で認識できたならば、コード認識回路40は原稿8が搬
送路10の下側部分を搬送されたものと判断してコード
認識結果を出力する。
As shown in Table 1, only the slice levels 16 and 17 and 19 or 16 have the code 9 on the original 2
If the digitizing circuits 30 to 32 can recognize the code, the code recognizing circuit 40 determines that the original 8 has been conveyed through the intermediate portion of the conveying path 10 and outputs the code recognition result. Slice levels 16 and 17 or only 17 are code 9 on the manuscript
If it can be recognized by the digitizing circuit, the code recognition circuit 40 determines that the original 8 has been conveyed on the upper portion of the conveyance path 10 and outputs the code recognition result. Slice levels 16 and 1
If only 9 or 19 can recognize the code 9 on the manuscript by the binarizing circuit, the code recognizing circuit 40 judges that the manuscript 8 is conveyed under the conveying path 10 and recognizes the code. Output the result.

【0031】他方、スライスレベル16,17,19の
全てが原稿上のコード9を2値化回路で認識できなかっ
た場合は、コードは存在しないと判断して、コード認識
回路40はコード無しという出力を出す。しかし、スラ
イスレベル17と19がコード9を認識したにも関わら
ず、スライスレベル16のみがコード9を認識できなか
った場合には、そのような事は有り得ないので、コード
認識回路40はセンサ5部分の故障と判断して故障であ
るという出力を出す。
On the other hand, if all of the slice levels 16, 17, and 19 cannot recognize the code 9 on the original by the binarizing circuit, it is judged that there is no code, and the code recognizing circuit 40 indicates that there is no code. Print the output. However, when the slice level 17 and 19 recognize the code 9 but only the slice level 16 cannot recognize the code 9, such a situation cannot occur, and the code recognition circuit 40 causes the sensor 5 to detect the code 5. It is judged as a partial failure, and an output indicating that it is a failure is output.

【0032】(第2の実施例)図6は本発明の第2の実
施例で使用する原稿を示す。図6において、9は原稿に
印刷されているコード、20はコード9が印刷されてカ
ールしている原稿、21はコード9が印刷されて原稿2
0と逆側にカールしている原稿である。
(Second Embodiment) FIG. 6 shows an original used in the second embodiment of the present invention. In FIG. 6, 9 is a code printed on a document, 20 is a document on which the code 9 is printed and curled, and 21 is a document 2 on which the code 9 is printed.
The original is curled on the side opposite to 0.

【0033】図7は、図6におけるカールしている原稿
20が紙搬送路10を搬送されているときのセンサ5と
の距離の状態を示す。
FIG. 7 shows the state of the distance from the sensor 5 when the curled document 20 in FIG. 6 is being conveyed through the sheet conveying path 10.

【0034】図8は図6における外側にカールしている
原稿20に印刷されているコード9を検出したセンサ5
からの出力波形を示す。図8において、22は不図示の
カールしていない原稿に印刷してあるコード9の出力波
形、23はカールしている原稿20に印刷されているコ
ード9の出力波形である。24は出力波形22を2値化
するための一定値の直線のスライスレベル、25は出力
波形23を2値化するための時間的に数値が変化する曲
線のスライスレベルである。
FIG. 8 shows a sensor 5 which detects the code 9 printed on the original 20 curled outward in FIG.
The output waveform from is shown. In FIG. 8, 22 is the output waveform of the code 9 printed on the uncurled original (not shown), and 23 is the output waveform of the code 9 printed on the curled original 20. Reference numeral 24 is a constant linear slice level for binarizing the output waveform 22, and 25 is a curve slice level whose numerical value changes with time for binarizing the output waveform 23.

【0035】図9は図6における内側にカールしている
原稿21に印刷されているコード9を検出したセンサ5
からの出力波形を示す。図9において、22は図8の場
合と同様に不図示のカールしていない原稿に印刷してあ
るコード9の出力波形、26はカールしている原稿21
に印刷されているコード9の出力波形、24は出力波形
22を2値化するための一定値の直線のスライスレベ
ル、27は出力波形26を2値化するための時間的に数
値が変化する曲線のスライスレベルである。
FIG. 9 shows the sensor 5 that detects the code 9 printed on the original 21 curled in FIG.
The output waveform from is shown. In FIG. 9, 22 is the output waveform of the code 9 printed on an uncurled original (not shown) as in FIG. 8, and 26 is the curled original 21.
The output waveform of the code 9 printed on the label 24 is a constant linear slice level for binarizing the output waveform 22, and 27 is a numerical value that changes over time for binarizing the output waveform 26. This is the slice level of the curve.

【0036】図1の構成において、外側にカールしてい
る原稿20が紙搬送路10を搬送されて、図7のように
センサ5の検出可能領域に到達すると、コード9のデー
タがセンサ5で検出され、増幅器6で増幅され、A/D
コンバータ7でデジタル多値データに変換される。この
多値データの波形は、原稿20が図7のようにカールし
ているため、原稿の先端では、センサ5と原稿20との
距離が長くなり、原稿の後端では、センサ5と原稿20
との距離が短くなるので、図8の出力波形23のように
なるから、この場合は2値化回路33で曲線のスライス
レベル25を用いてコードの数を数え、その数が規定許
容範囲内か否かを判断して、肯定判定ならば2値化への
変換処理を行い、白黒パターン認識を可能にする。な
お、この出力波形23を白黒パターン認識するために
は、不図示のカールしていない原稿に印刷されているコ
ード9の出力波形22用のスライスレベル24を用いた
のでは、パターン認識が不可能であることが図8からわ
かる。
In the structure of FIG. 1, when the original 20 curled to the outside is conveyed through the paper conveyance path 10 and reaches the detectable area of the sensor 5 as shown in FIG. Detected, amplified by amplifier 6, A / D
It is converted into digital multi-valued data by the converter 7. In the waveform of this multi-valued data, since the document 20 is curled as shown in FIG. 7, the distance between the sensor 5 and the document 20 is long at the leading edge of the document, and the sensor 5 and the document 20 are at the trailing edge of the document.
Since the distance between and becomes short, the output waveform 23 shown in FIG. 8 is obtained. In this case, the binarization circuit 33 counts the number of codes using the slice level 25 of the curve, and the number is within the specified allowable range. If it is affirmative, a conversion process to binarization is performed to enable black-and-white pattern recognition. In order to recognize the output waveform 23 in the black and white pattern, the pattern recognition cannot be performed by using the slice level 24 for the output waveform 22 of the code 9 printed on the uncurled original (not shown). It can be seen from FIG. 8 that

【0037】また、内側にカールしている原稿21が紙
搬送路10を搬送されて、センサ5の検出可能領域に到
達すると、コード9のデータがセンサ5で検出され、増
幅器6で増幅され、A/Dコンバータ7でデジタル多値
データに変換される。この多値データの波形は、原稿2
1が図6のようにカールしているため、原稿の先端で
は、センサ5と原稿21との距離が短くなり、原稿の後
端では、センサ5と原稿21との距離が長くなるので、
図9の出力波形26のようになるから、この場合は2値
化回路34でスライスレベル27を用いてコードの数を
数え、その数が規定許容範囲内か否かを判断して、肯定
判定ならば2値化への変換処理を行い、白黒パターン認
識を可能にする。なお、この出力波形26を白黒パター
ン認識するためには、不図示のカールしていない原稿に
印刷されているコード9の出力波形22用のスライスレ
ベル24を用いたのでは、パターン認識が不可能である
ことが図9からわかる。
When the original 21 curled inward is conveyed through the paper conveying path 10 and reaches the detectable area of the sensor 5, the data of the code 9 is detected by the sensor 5 and amplified by the amplifier 6. It is converted into digital multi-valued data by the A / D converter 7. The waveform of this multivalued data is
Since 1 is curled as shown in FIG. 6, the distance between the sensor 5 and the document 21 is short at the leading edge of the document, and the distance between the sensor 5 and the document 21 is long at the trailing edge of the document.
Since the output waveform 26 shown in FIG. 9 is obtained, in this case, the binarizing circuit 34 counts the number of codes using the slice level 27, judges whether the number is within a specified allowable range, and makes an affirmative judgment. In that case, conversion processing to binarization is performed to enable black-and-white pattern recognition. In order to recognize the black and white pattern of the output waveform 26, if the slice level 24 for the output waveform 22 of the code 9 printed on the uncurled original (not shown) is used, the pattern cannot be recognized. It can be seen from FIG. 9 that

【0038】つまり、本実施例では、上記2値化回路3
0,33,34とその後段のコード認識回路40とによ
り、カールしている原稿20用に図8で示したようなス
ライスレベル25、逆側にカールしている原稿21用に
図9で示したようなスライスレベル27、不図示のカー
ルしていない原稿用にスライスレベル24のように、2
個の曲線のスライスレベルと1個の直線のスライスレベ
ルを同時に用いて2値化処理とコード認識を同時に行
い、そのうち、1つでもコード認識されれば、コード結
果として出力する。
That is, in the present embodiment, the binarization circuit 3
0, 33, 34 and the code recognition circuit 40 in the subsequent stage show the slice level 25 as shown in FIG. 8 for the curled document 20 and FIG. 9 for the curled document 21 on the opposite side. Slice level 27 like this, 2 like slice level 24 for uncurled originals not shown
Binary processing and code recognition are performed at the same time using the slice level of each curve and the slice level of one straight line, and if even one of them is recognized, it is output as a code result.

【0039】なお、図1に示すように、本発明の第1の
実施例と第2の実施例を組み合せて実施しても好まし
い。また、本発明の第1の実施例で述べたように、A/
Dコンバータ7の出力端に多値データを一時格納するバ
ッファメモリを接続し、上述した複数のスライスレベル
を1つずつコード認識可能となるまで順次切り換え使用
するように構成すれば、上記複数の2値化回路30,3
2,33あるいは30〜33の回路は単一の2値化回路
に置き換えることができる。
It is also preferable to combine the first and second embodiments of the present invention as shown in FIG. In addition, as described in the first embodiment of the present invention, A /
If a buffer memory for temporarily storing multi-valued data is connected to the output end of the D converter 7 and the plurality of slice levels described above are sequentially switched and used until the code can be recognized one by one, the above two Thresholding circuits 30, 3
The circuits of 2, 33 or 30 to 33 can be replaced with a single binarization circuit.

【0040】(第3の実施例)図10は本発明の第3の
実施例の搬送路の部分の拡大と、回路構成を示す。図1
0において、5は反射型センサ、10は原稿を搬送する
搬送路、111は搬送路10を搬送されているばたつい
ている原稿である。6は増幅器、7はA/Dコンバータ
である。141はA/Dコンバータの出力を一時格納す
るバッファメモリ、142はバッファメモリ141から
読み出した多値データを複数のスライスレベルの1つを
選択的に用いて2値化する2値化回路、143は2値化
回路142の出力パルスの数をカウントするカウンタ、
144はカウンタ143のカウント数と規定値とを比較
して、規定値以内の場合は2値化回路142の出力をコ
ード認識データとして出力する。比較器144は比較結
果に応じてスライスレベル145を切り換える。
(Third Embodiment) FIG. 10 shows the enlargement of the portion of the conveying path and the circuit configuration of the third embodiment of the present invention. Figure 1
In 0, 5 is a reflection type sensor, 10 is a conveyance path for conveying an original, and 111 is a flapping original being conveyed on the conveyance path 10. Reference numeral 6 is an amplifier, and 7 is an A / D converter. Reference numeral 141 is a buffer memory for temporarily storing the output of the A / D converter, 142 is a binarization circuit for binarizing the multivalued data read from the buffer memory 141 by selectively using one of a plurality of slice levels, 143. Is a counter for counting the number of output pulses of the binarization circuit 142,
144 compares the count number of the counter 143 with a specified value, and when it is within the specified value, outputs the output of the binarization circuit 142 as code recognition data. The comparator 144 switches the slice level 145 according to the comparison result.

【0041】図11は図10においてばたついている原
稿111のA/Dコンバータ7の出力および、スライス
レベルを示す。図11において、112はばたついてい
る原稿111が通過したときの出力波形、113,11
4,115はあらかじめ定めた複数のスライスレベル、
116,117,118は白色データから黒色データへ
の白黒部位変化点、119,120,121は黒色デー
タから白色データへの白黒部位変化点である。
FIG. 11 shows the output of the A / D converter 7 and the slice level of the original 111 which is flapping in FIG. In FIG. 11, reference numeral 112 denotes an output waveform when the flapping original document 111 passes, 113 and 11
4,115 are a plurality of predetermined slice levels,
Reference numerals 116, 117, and 118 are black-and-white portion change points from white data to black data, and reference numerals 119, 120, and 121 are black-and-white portion change points from black data to white data.

【0042】上記構成において、図2のようにコード9
が印刷してあるばたついている原稿111が、ローラ
1,2、または、ローラ3,4間(図1参照)の紙搬送
路10を搬送されて、センサ5の検出可能領域に到達す
ると、原稿上のコード9のデータがセンサ5で検出さ
れ、増幅器6で増幅され、A/Dコンバータ7でデジタ
ル多値データに変換されて、図11の出力波形112の
ようになる。この出力波形112を2値化回路142に
送り、まずスライスレベル113について、白黒部位変
化点118と白黒部位変化点119との間でデータの数
をカウンタ143で数えて、その数が規定許容範囲内か
否かを比較器144で判断する。同様に、スライスレベ
ル114について、白黒部位変化点117と白黒部位変
化点120との間でデータの数を数えて、その数が規定
許容範囲内か否かを判断する。さらに、スライスレベル
115について、白黒部位変化点116と白黒部位変化
点121との間でデータの数を数えて、その数が規定許
容範囲内か否かを判断する。以上のように3個所のデー
タを比較して、カウント数が規定許容範囲内のデータが
存在すれば、それをその区間のデータとして比較器14
4から出力する。以上のことを白黒部位変化点が訪れる
度に行い、最終的にコードを後段のコード認識回路14
5で決定する。
In the above structure, the code 9 is used as shown in FIG.
When the fluttering original 111 printed with is conveyed through the paper conveyance path 10 between the rollers 1 and 2 or between the rollers 3 and 4 (see FIG. 1) and reaches the detectable area of the sensor 5, The data of the code 9 on the manuscript is detected by the sensor 5, amplified by the amplifier 6, and converted into digital multi-valued data by the A / D converter 7, and the output waveform 112 shown in FIG. 11 is obtained. The output waveform 112 is sent to the binarization circuit 142. First, for the slice level 113, the counter 143 counts the number of data between the black-and-white part change point 118 and the black-and-white part change point 119, and the number is the specified allowable range. Whether or not it is inside is judged by the comparator 144. Similarly, with respect to the slice level 114, the number of data between the black-and-white part change point 117 and the black-and-white part change point 120 is counted, and it is determined whether or not the number is within the specified allowable range. Further, for the slice level 115, the number of data between the black-and-white part change point 116 and the black-and-white part change point 121 is counted, and it is determined whether or not the number is within the specified allowable range. As described above, the data at three locations are compared, and if there is data whose count number is within the specified permissible range, the comparator 14 regards it as data for that section.
Output from 4. The above operation is performed every time a black-and-white part change point comes, and finally the code is recognized by the code recognition circuit 14 in the subsequent stage.
Determine with 5.

【0043】(第4の実施例)図12は本発明の第4の
実施例における、ばたついている原稿111のA/Dコ
ンバータ7の出力および、スライスレベルを示す。図1
2において、122は紙搬送路10の中間部分を不図示
のばたついていない原稿が通過したときの出力波形、1
23はばたついている原稿111が通過したときの出力
波形、124,125,126はスライスレベル、12
7,128,129,130は黒色データから白色デー
タ、または、白色データから黒色データへの白黒部位変
化付近点である。
(Fourth Embodiment) FIG. 12 shows the output of the A / D converter 7 and the slice level of the flapping original 111 in the fourth embodiment of the present invention. Figure 1
In FIG. 2, 122 is an output waveform when an unfluttered document passes through an intermediate portion of the paper transport path 10 and 1
23 is an output waveform when the flapping original 111 passes, 124, 125 and 126 are slice levels, 12
7, 128, 129, and 130 are points near the black-and-white portion change from black data to white data, or from white data to black data.

【0044】図10の回路構成において、コード9が印
刷してある不図示のばたついていない原稿が、ローラ
1,2、または、ローラ3,4間の紙搬送路10の中間
部分を搬送されて、センサ5の検出可能領域に到達する
と、コード9のデータがセンサ5で検出され、増幅器6
で増幅され、A/Dコンバータ7でデジタル多値データ
に変換される。この多値データの波形は、図12の出力
波形122のようになり、スライスレベル124,12
5,126のいずれか1つで2値化への変換処理を行
い、白黒パターンの認識が可能となる。
In the circuit configuration of FIG. 10, an unfluttered original document on which the code 9 is printed is conveyed through the intermediate portion of the paper conveying path 10 between the rollers 1 and 2 or the rollers 3 and 4. When the sensor 5 reaches the detectable area, the code 9 data is detected by the sensor 5 and the amplifier 6
Are amplified by and converted into digital multi-valued data by the A / D converter 7. The waveform of this multi-valued data becomes like the output waveform 122 of FIG. 12, and the slice levels 124, 12
It becomes possible to recognize a black and white pattern by performing conversion processing to binarization with any one of 5, 126.

【0045】一方、コード9が印刷してあるばたついて
いる原稿111が、ローラ1,2、または、ローラ3,
4間の紙搬送路10を搬送されて、センサ5の検出可能
領域に到達すると、コード9のデータがセンサ5で検出
され、増幅器6で増幅され、A/Dコンバータ7でデジ
タル多値データに変換される。この多値データの波形
は、センサ5とばたついている原稿111との距離が長
くてセンサ5に十分な光量が得られない部分と、センサ
5とばたついている原稿111との距離が短くセンサ5
に反射による光量が多すぎる部分が混在するため、図1
2の出力波形123のようになり、スライスレベル12
4,125,126のいずれでも1つのスライスレベル
だけでは2値化への変換処理を行った後の白黒パターン
の認識が不可能となる。
On the other hand, the fluttering original 111 on which the code 9 is printed is the rollers 1, 2, or the rollers 3, 3.
When the paper 9 is conveyed through the paper conveyance path 10 between 4 and reaches the detectable area of the sensor 5, the data of the code 9 is detected by the sensor 5, amplified by the amplifier 6, and converted into digital multi-valued data by the A / D converter 7. To be converted. In the waveform of the multi-valued data, the distance between the sensor 5 and the fluttering original 111 is long, and the distance between the sensor 5 and the fluttering original 111 is short. Sensor 5
Since there is a mixture of too much light due to reflection in Fig. 1,
2 becomes the output waveform 123, and the slice level 12
It is impossible to recognize a black-and-white pattern after the conversion processing into the binarization with only one slice level in any of 4, 125 and 126.

【0046】つまり、この出力波形123を認識するた
めには、白黒部位変化付近点ごとに白または、黒の結果
を出力する必要がある。白黒部位変化付近点127以前
では、スライスレベル124,125でデータの数を数
え、その数が規定許容範囲内か否かを判断して肯定判定
ならば2値化への変換処理を行い、白黒パターンの認識
を可能とする。つまり、この部分では、スライスレベル
126での情報を無視し、スライスレベル124,12
5での情報を有効とする。以後、スライスレベル126
が白黒部位変化付近点を感知するまで、スライスレベル
126の情報を無視する。
That is, in order to recognize the output waveform 123, it is necessary to output a white or black result for each point near the change in the black and white region. Before the black and white region change near point 127, the number of data is counted at the slice levels 124 and 125, and it is judged whether or not the number is within the specified allowable range. If the result is affirmative, conversion processing to binarization is performed. Enables pattern recognition. That is, in this portion, the information at the slice level 126 is ignored and the slice levels 124, 12 are
The information in 5 is valid. After that, slice level 126
Ignores the information of the slice level 126 until detects a point near the black-and-white portion change.

【0047】同様に、白黒部位変化付近点127と、白
黒部位変化付近点128の間では、スライスレベル12
5,126でデータの数を数え、その数が規定許容範囲
内か否かを判断して肯定判定ならば2値化への変換処理
を行い、白黒パターンの認識を可能とする。つまり、こ
の部分では、スライスレベル124での情報を無視し、
スライスレベル125,126での情報を有効にする。
以後、スライスレベル124が白黒部位変化付近点を感
知するまでスライスレベル124での情報を無視する。
Similarly, between the black and white part change near point 127 and the black and white part change near point 128, the slice level 12
At 5,126, the number of data is counted, and it is determined whether the number is within a specified allowable range. If the determination is affirmative, conversion processing to binarization is performed, and a black-and-white pattern can be recognized. That is, in this part, the information at the slice level 124 is ignored,
The information at the slice levels 125 and 126 is validated.
After that, the information at the slice level 124 is ignored until the slice level 124 senses a point near the black-and-white portion change.

【0048】以上のように、A/Dコンバータ7からの
多値データが白黒部位変化付近点127に達したとき、
これまでの3個のスライスレベルから得られたデータを
比較して、白黒パターン認識のできなかったスライスレ
ベルを、以後白黒部位変化付近点が訪れるまで無視す
る。多値データが白黒部位変化付近点128,129,
130に達したときも同様に、これまでの3個のスライ
スレベルから得られたデータを比較して、白黒パターン
認識のできなかったスライスレベルを、以後白黒部位変
化付近点が訪れるまで無視する。
As described above, when the multi-valued data from the A / D converter 7 reaches the black and white part change vicinity point 127,
The data obtained from the three slice levels up to now are compared, and the slice level for which the black-and-white pattern cannot be recognized is ignored until a point near the black-and-white portion change comes thereafter. Multi-valued data shows the black and white part change near points 128,129,
Similarly, when the number reaches 130, the data obtained from the three slice levels up to now are compared, and the slice level for which the black-and-white pattern cannot be recognized is ignored until a point near the black-and-white portion change comes thereafter.

【0049】このように、白黒パターン認識は白黒部位
変化付近点ごとに行い、白黒パターン認識のできなかっ
たスライスレベルを、以後白黒部位変化付近点が訪れる
まで無視しコード認識回路145で適切なコード認識結
果を得る。
As described above, the black-and-white pattern recognition is performed for each point near the change in the black-and-white portion, the slice level for which the black-and-white pattern cannot be recognized is ignored until the point near the change in the black-and-white portion comes thereafter, and the appropriate code is recognized by the code recognition circuit 145. Get recognition results.

【0050】[0050]

【表2】 [Table 2]

【0051】上記の表2は上述の本発明の第4の実施例
における各スライスレベルでのコード認識結果と、その
総合判定結果の比較表である。なお、丸印は認識できた
場合、×印は認識できなかった場合である。表2におい
て、スライスレベル124は、第4の実施例で説明し
た、ばたついている原稿111が搬送路10の上側部分
を搬送され、センサ5と原稿111との距離が短い部分
用のスライスレベル、スライスレベル125は、第4の
実施例で説明した、ばたついている原稿111が搬送路
10の中間部分を搬送された中間部分用のスライスレベ
ル、スライスレベル126は、第4の実施例で説明し
た、ばたついている原稿111が搬送路10の下側部分
を搬送され、センサ5と原稿8との距離が長い部分用の
スライスレベルである。
Table 2 above is a comparison table of the code recognition result at each slice level in the above-described fourth embodiment of the present invention and the comprehensive judgment result thereof. It should be noted that the circle mark is a case where the mark can be recognized, and the X mark is a case where the mark cannot be recognized. In Table 2, the slice level 124 is the slice level for the portion where the flapping original 111 is conveyed on the upper side of the conveying path 10 and the distance between the sensor 5 and the original 111 is short, as described in the fourth embodiment. The slice level 125 is the slice level for the intermediate portion in which the fluttering original 111 is conveyed through the intermediate portion of the conveying path 10 described in the fourth embodiment, and the slice level 126 is the slice level in the fourth embodiment. This is the slice level for the portion where the fluttering original document 111 is conveyed through the lower portion of the conveyance path 10 and the distance between the sensor 5 and the original document 8 is long, as described above.

【0052】表2に示すように、スライスレベル124
と125と126すべてが原稿上のコード9を認識でき
たならば、ばたついている原稿111が搬送路10の中
間部分をほとんどばたつかずに搬送されたものと判断し
て、コード変化付近点間の2値化結果を比較器144か
ら出力する。スライスレベル124,125,126の
全てがコード9を認識できなかった場合には、コードは
存在しないと判断して、コード無しという出力を比較器
144から出す。
As shown in Table 2, the slice level 124
If 125 and 126 can recognize the code 9 on the original, it is determined that the fluttering original 111 has been conveyed without fluttering in the intermediate portion of the conveying path 10, and the code change near point The binarization result in between is output from the comparator 144. When all of the slice levels 124, 125, 126 cannot recognize the code 9, it is determined that the code does not exist, and the comparator 144 outputs an output of no code.

【0053】しかし、2個のスライスレベルではコード
9を認識できたが、残りの1個のスライスレベルではコ
ード9を認識できなかった場合、または、1個のスライ
スレベルではコード9を認識できたが、残りの2個のス
ライスレベルではコード9を認識できなかった場合はど
ちらでコードを有効として判断するかは、ユーザーが不
図示のスイッチで選択をおこなうことができるように構
成している。
However, the code 9 could be recognized at the two slice levels, but the code 9 could not be recognized at the remaining one slice level, or the code 9 could be recognized at the one slice level. However, when the code 9 cannot be recognized in the remaining two slice levels, the user can select with a switch (not shown) which to determine the code as valid.

【0054】(第5の実施例)図13は本発明の第5の
実施例で使用する原稿を示す。図13において、9は原
稿に印刷されているコード、131はコード9が印刷さ
れているカールしている原稿、132は原稿131と逆
側にカールしているコード9が印刷されている原稿であ
る。
(Fifth Embodiment) FIG. 13 shows an original used in the fifth embodiment of the present invention. In FIG. 13, 9 is a code printed on the original, 131 is a curled original on which the code 9 is printed, 132 is an original on which the code 9 that is curled on the opposite side of the original 131 is printed. is there.

【0055】図14は図13におけるカールしている原
稿131または、逆側にカールしている原稿132が搬
送路10でばたついたときの、コード9を検出したセン
サ5からの出力波形を示す。図14において、122は
不図示のばたついていない原稿に印刷してあるコード9
の出力波形、133はカールしている原稿131また
は、逆側にカールしている原稿132が搬送路10でば
たついたときのコード9の出力波形である。125,1
34,135はスライスレベル、127,128,12
9,130は黒色データから白色データ、または、白色
データから黒色データへの白黒部位変化付近点である。
なお、125は直線のスライスレベル、134および1
35は曲線のスライスレベルである。
FIG. 14 shows an output waveform from the sensor 5 which detects the code 9 when the curled original 131 in FIG. 13 or the curled original 132 on the opposite side flaps in the conveying path 10. Show. In FIG. 14, reference numeral 122 denotes a code 9 printed on a not-fluttering original document.
3 is an output waveform of the code 9 when the curled original 131 or the curled original 132 on the opposite side flaps in the conveyance path 10. 125,1
34 and 135 are slice levels 127, 128 and 12
Reference numerals 9 and 130 are points near the black-and-white portion change from black data to white data or from white data to black data.
In addition, 125 is a linear slice level, and 134 and 1
35 is the slice level of the curve.

【0056】図10の回路構成において、コード9が印
刷してあるカールしている原稿131または、逆側にカ
ールしている原稿132が、ローラ1,2、または、ロ
ーラ3,4間の紙搬送路10の中間部分をばたつかずに
搬送されて、センサ5の検出可能領域に到達すると、コ
ード9のデータがセンサ5で検出され、増幅器6で増幅
され、A/Dコンバータ7でデジタル多値データに変換
される。この多値データの波形は、図14の出力波形1
22のようになり、スライスレベル125,134,1
35のいずれか1つで2値化への変換処理を行い、白黒
パターン認識が可能となる。
In the circuit structure of FIG. 10, the curled original 131 on which the code 9 is printed or the curled original 132 on the opposite side is the paper between the rollers 1 and 2 or between the rollers 3 and 4. When it is conveyed without fluttering in the middle portion of the conveyance path 10 and reaches the detectable area of the sensor 5, the data of the code 9 is detected by the sensor 5, amplified by the amplifier 6, and digitally converted by the A / D converter 7. Converted to value data. The waveform of this multilevel data is the output waveform 1 of FIG.
22 and slice levels 125,134,1
It is possible to perform black-and-white pattern recognition by performing conversion processing to binarization with any one of 35.

【0057】一方、コード9が印刷してあるカールして
いる原稿131または、逆側にカールしている原稿13
2が、ローラ1,2、または、ローラ3,4間の紙搬送
路10をばたついて搬送されて、センサ5の検出可能領
域に到達すると、コード9のデータがセンサ5で検出さ
れ、増幅器6で増幅され、A/Dコンバータ7でデジタ
ル多値データに変換される。この多値データの波形は、
センサ5と原稿131または、原稿132との距離が長
くセンサ5に十分な光量が得られない部分と、センサ5
と原稿131または、原稿132との距離が短くセンサ
5に反射による光量が多すぎる部分が混在するため、図
14の出力波形133のようになり、スライスレベル1
25,134,135のいずれでも1つのスライスレベ
ルだけでは2値化への変換処理を行い、白黒パターン認
識をすることが不可能となる。
On the other hand, the curled original 131 on which the code 9 is printed or the original 13 curled on the opposite side.
When the paper 2 is conveyed by fluttering the paper conveyance path 10 between the rollers 1 and 2 or the rollers 3 and 4 and reaches the detectable area of the sensor 5, the data of the code 9 is detected by the sensor 5 and the amplifier It is amplified in 6 and converted into digital multi-valued data in the A / D converter 7. The waveform of this multi-valued data is
A portion where the sensor 5 and the original 131 or the original 132 have a long distance and a sufficient amount of light cannot be obtained by the sensor 5, and the sensor 5
14 and the original 131 or the original 132 are short, and a portion of the sensor 5 where the amount of light due to reflection is too large is mixed, the output waveform 133 in FIG.
In any of 25, 134, and 135, only one slice level performs conversion processing into binarization, and it becomes impossible to recognize a black-and-white pattern.

【0058】つまり、この出力波形133を認識するた
めには、白黒部位変化付近点での白または、黒の結果を
出力する必要がある。白黒部位変化付近点127以前で
は、スライスレベル134,125でデータの数を数
え、その数が規定許容範囲内か否かを判断して肯定判定
ならば2値化への変換処理を行い、白黒パターンの認識
を可能とする。つまり、この部分では、スライスレベル
135での情報を無視し、スライスレベル134,12
5の情報を有効にする。以後、スライスレベル135が
白黒部位変化付近点を感知する、までスライスレベル1
35の情報を無視する。
In other words, in order to recognize this output waveform 133, it is necessary to output the result of white or black at the point near the change in the black and white region. Before the black and white part change near point 127, the number of data is counted at the slice levels 134 and 125, and it is determined whether the number is within a specified allowable range. If the determination is affirmative, conversion processing to binarization is performed. Enables pattern recognition. That is, in this portion, the information at the slice level 135 is ignored and the slice levels 134, 12
Validate the information in item 5. After that, until the slice level 135 detects a point near the change in the black and white part, the slice level 1
Ignore 35 information.

【0059】同様に、白黒部位変化付近点127と、白
黒部位変化付近点128の間では、スライスレベル12
5,135でデータの数を数え、その数が規定許可範囲
内か否かを判断して肯定判定ならば2値化への変換処理
を行い、白黒パターンの認識を可能とする。つまり、こ
の部分では、スライスレベル134での情報を無視し、
スライスレベル125,135での情報を有効にする。
以後、スライスレベル134が白黒部位変化付近点を感
知するまでスライスレベル134での情報を無視する。
Similarly, between the black and white part change near point 127 and the black and white part change near point 128, the slice level 12
At 5,135, the number of data is counted, and it is determined whether the number is within the specified permission range. If the determination is affirmative, conversion processing to binarization is performed, and the black-and-white pattern can be recognized. That is, in this part, the information at the slice level 134 is ignored,
The information at the slice levels 125 and 135 is validated.
After that, the information at the slice level 134 is ignored until the slice level 134 senses a point near the black-and-white portion change.

【0060】以上のように、A/Dコンバータ7からの
多値データが白黒部位変化付近点127に達したとき、
これまでの3個のスライスレベルから得られたデータを
比較して、白黒パターン認識のできなかったスライスレ
ベルを、以後白黒部位変化付近点が訪れるまで無視す
る。多値データが白黒部位変化付近点128,129,
130に達したときも同様に、これまでの3個のスライ
スレベルから得られたデータを比較して、白黒パターン
認識のできなかったスライスレベルを、以後白黒部位変
化付近点が訪れるまで無視する。
As described above, when the multi-valued data from the A / D converter 7 reaches the black and white part change vicinity point 127,
The data obtained from the three slice levels up to now are compared, and the slice level for which the black-and-white pattern cannot be recognized is ignored until a point near the black-and-white portion change comes thereafter. Multi-valued data shows the black and white part change near points 128,129,
Similarly, when the number reaches 130, the data obtained from the three slice levels up to now are compared, and the slice level for which the black-and-white pattern cannot be recognized is ignored until a point near the black-and-white portion change comes thereafter.

【0061】このように、白黒パターン認識は白黒部位
変化付近点ごとに行い、白黒パターン認識のできなかっ
たスライスレベルを、以後白黒部位変化付近点が訪れる
まで無視しコード認識回路145で適切なコード結果を
得る。
As described above, the black-and-white pattern recognition is performed for each point near the black-and-white portion change, and the slice level for which the black-and-white pattern cannot be recognized is ignored until the point near the black-and-white portion change comes thereafter, and the appropriate code is recognized by the code recognition circuit 145. Get results.

【0062】(第6の実施例)次に、図15,図16お
よび図17を参照して本発明の第6の実施例を説明す
る。図15は本発明の第6の実施例のコード読取装置の
概略構成を示し、その(A)は正面図、その(B)は平
面図である。図15において、201〜204は不図示
の駆動モータにより図の矢印の方向に回転させられ、原
稿211(または212)を搬送する搬送ローラであ
る。205は原稿を導く上ガイド板、206は原稿を導
く下ガイド板である。207は原稿を照明するLED
(発光ダイオード)、208は原稿からの反射光を受光
素子に導くレンズ、209は原稿からの反射光量を電気
出力に光電変換する受光素子、210は原稿が搬送系内
の上下方向のどの位置に存在するかを検出する距離セン
サである。距離センサ210はフォトセンサの他に超音
波センサ等が適用でき、原稿の送り方向と直角な方向に
おいて受光素子209と並列し、フォトセンサを用いた
場合はコード213の通過位置からはずれた位置に配置
される。211は搬送系内の中心を搬送されていく原
稿、212は搬送系内をその中心からずれて搬送されて
いくカールした原稿である。
(Sixth Embodiment) Next, a sixth embodiment of the present invention will be described with reference to FIGS. 15, 16 and 17. FIG. 15 shows a schematic configuration of a code reading device according to a sixth embodiment of the present invention, (A) of which is a front view and (B) thereof which is a plan view. In FIG. 15, reference numerals 201 to 204 denote transport rollers that are rotated in the direction of the arrow by a drive motor (not shown) to transport the document 211 (or 212). Reference numeral 205 is an upper guide plate that guides the document, and 206 is a lower guide plate that guides the document. 207 is an LED for illuminating the original
(Light emitting diode), 208 is a lens for guiding the reflected light from the document to the light receiving element, 209 is a light receiving element for photoelectrically converting the amount of the reflected light from the document into an electrical output, and 210 is the vertical position of the document in the conveying system. It is a distance sensor that detects whether it exists. An ultrasonic sensor or the like can be applied to the distance sensor 210 in addition to the photo sensor. The distance sensor 210 is arranged in parallel with the light receiving element 209 in the direction perpendicular to the document feeding direction, and when the photo sensor is used, it is located at a position deviated from the passing position of the cord 213. Will be placed. Reference numeral 211 denotes a document that is being transported in the center of the transport system, and reference numeral 212 is a curled document that is being transported in the transport system deviating from the center.

【0063】図16は図15の搬送系で送られる原稿と
コードの例を示し、213は原稿211および212上
に白黒のパターンで表わされている同一のコードであ
る。
FIG. 16 shows an example of originals and codes sent by the transport system of FIG. 15, and reference numeral 213 is the same codes shown in black and white patterns on the originals 211 and 212.

【0064】図17は図16の原稿211,212を図
15のように搬送して受光素子209で検出したときの
検出出力の波形とコード等の関係を示す。図17の
(A)において、214はカールしていない原稿211
が搬送された時の受光素子209の出力、215はこの
ときの距離センサ210の出力から決定されるスライス
レベル、216は受光素子209の出力214をスライ
スレベル215により2値化して作られた白黒のパター
ンによって表わされたコードである。また、図17の
(B)において、217はカールした原稿212が搬送
された時の受光素子209の出力、218はこのときの
距離センサ210の出力から決定されるスライスレベ
ル、219は受光素子209の出力217をスライスレ
ベル218により2値化して作られた白黒のパターンに
よって表わされたコードである。
FIG. 17 shows the relationship between detection output waveforms and codes when the originals 211 and 212 shown in FIG. 16 are conveyed as shown in FIG. 15 and detected by the light receiving element 209. In FIG. 17A, 214 is an uncurled original 211.
Is output from the light receiving element 209, 215 is a slice level determined from the output of the distance sensor 210 at this time, and 216 is black and white produced by binarizing the output 214 of the light receiving element 209 by the slice level 215. Is the code represented by the pattern. Further, in FIG. 17B, 217 is the output of the light receiving element 209 when the curled original 212 is conveyed, 218 is the slice level determined from the output of the distance sensor 210 at this time, and 219 is the light receiving element 209. Is a code represented by a black-and-white pattern created by binarizing the output 217 of S.

【0065】図18は本実施例の回路構成を示す。受光
素子209の出力は増幅器241で増幅され、A/Dコ
ンバータ243で図17の214,217に示すような
多値データとなり、2値化回路の働きをするCPU(中
央演算処理装置)245に入力する。一方、距離センサ
210の出力は増幅器242で増幅され、A/Dコンバ
ータ244で図17の215,218に示すような多値
のスライスレベルとなり、CPU245に入力する。C
PU245ではA/Dコンバータ243からの受光素子
出力値をA/Dコンバータ244からのスライスレベル
で2値化し、図17の216,219に示すような2値
のコード出力を得る。本例では、A/Dコンバータでデ
ジタル化した後に2値化したが、後述のように、アナロ
グ出力からコンパレータを用いて直接2値コードを得る
ことも可能である。
FIG. 18 shows the circuit configuration of this embodiment. The output of the light receiving element 209 is amplified by the amplifier 241 and becomes multi-valued data as shown at 214 and 217 in FIG. 17 by the A / D converter 243, and is sent to the CPU (central processing unit) 245 which functions as a binarization circuit. input. On the other hand, the output of the distance sensor 210 is amplified by the amplifier 242, becomes a multi-valued slice level as shown by 215 and 218 in FIG. 17 in the A / D converter 244, and is input to the CPU 245. C
The PU 245 binarizes the light receiving element output value from the A / D converter 243 at the slice level from the A / D converter 244 to obtain a binary code output as indicated by 216 and 219 in FIG. In this example, the digitization is performed by the A / D converter and then the binarization is performed, but as described later, it is also possible to directly obtain the binary code from the analog output by using the comparator.

【0066】次に、上記構成における本実施例の全体の
動作を説明する。カールしていない原稿211が搬送ロ
ーラ201〜204により図15の右側から左側に搬送
されて行くと、受光素子209は原稿211上の白黒の
パターン213に応じて図17の(A)の波形214に
示す電圧を出力する。また、この時距離センサ210は
搬送系内の原稿の上下方向の距離に応じた出力として図
17の(A)の直線的な破線215に示す電圧を出力す
る。本実施例においては受光素子209の出力214と
距離センサ210の出力215はA/Dコンバータ24
3,244を通してCPU245に入力され、CPU2
45はこの2つの入力を比較して、図17の(A)のコ
ード216が原稿上に存在することを認識する。
Next, the overall operation of this embodiment having the above configuration will be described. When the uncurled original 211 is conveyed from the right side to the left side in FIG. 15 by the conveying rollers 201 to 204, the light receiving element 209 causes the waveform 214 of FIG. The voltage shown in is output. Further, at this time, the distance sensor 210 outputs the voltage indicated by the linear broken line 215 in FIG. 17A as an output according to the vertical distance of the document in the transport system. In the present embodiment, the output 214 of the light receiving element 209 and the output 215 of the distance sensor 210 are the A / D converter 24.
Input to the CPU 245 through 3,244
45 compares these two inputs and recognizes that the code 216 in FIG. 17A exists on the original.

【0067】さらに、カールした原稿212が搬送ロー
ラ201〜204により図15の右側から左側に搬送さ
れて行くと、受光素子209は原稿212上の白黒パタ
ーンに応じて図17の(B)の波形217に示す電圧を
出力する。この時、原稿212はカールしており、その
原稿の先端は図15に破線で示すように搬送系内の下部
を通るが、原稿212が搬送されて行くにしたがって搬
送系内の中央部を通過するようになるので受光素子20
9の出力波形217に示すようにカールしていない原稿
の出力214に比べて全体として傾きをもった出力にな
る。また、このときの距離センサ210の出力は原稿2
12が搬送系で下部を通ると電圧が低くなり、上部を通
ると電圧が高くなるようになっているので、図17の
(B)の破線218に示すような電圧を出力する。
Further, when the curled original 212 is conveyed from the right side to the left side of FIG. 15 by the conveying rollers 201 to 204, the light receiving element 209 has the waveform shown in FIG. The voltage indicated by 217 is output. At this time, the original 212 is curled, and the leading end of the original 212 passes through the lower portion of the transport system as shown by the broken line in FIG. 15, but as the original 212 is transported, it passes through the central portion of the transport system. Therefore, the light receiving element 20
As shown by the output waveform 217 of No. 9, the output has an inclination as a whole as compared with the output 214 of the uncurled document. The output of the distance sensor 210 at this time is the original 2
When 12 passes through the lower part of the carrier system, the voltage becomes low when it passes through the lower part, and becomes high when it passes through the upper part, so that the voltage as indicated by the broken line 218 in FIG. 17B is output.

【0068】A/Dコンバータ243,244を通して
上記2つの出力217,218はCPU245に入力さ
れ、CPU245はこれら出力を比較してコード219
を認識する。この時、受光素子209の出力217が傾
きを持っていても、距離センサ210の出力218も同
じような傾きを持つため、コード219はカールしない
原稿が搬送系内で中央部を通過した場合のコード216
と同じ結果となる。
The above two outputs 217 and 218 are input to the CPU 245 through the A / D converters 243 and 244, and the CPU 245 compares the outputs and outputs the code 219.
Recognize. At this time, even if the output 217 of the light receiving element 209 has a tilt, the output 218 of the distance sensor 210 also has a similar tilt, so that the code 219 that does not curl passes through the central portion in the transport system. Code 216
Produces the same result as.

【0069】(第7の実施例)図19および図20は本
発明の第7の実施例を示す。ここで、220は受光素子
209のアナログ出力(217)と距離センサ210の
アナログ出力(218)を比較するコンパレータ、22
1はコンパレータ220のデジタル出力を受けとり、原
稿上の白黒パターンをコード化するCPUである。22
2はコンパレータ220のデジタル出力である。
(Seventh Embodiment) FIGS. 19 and 20 show a seventh embodiment of the present invention. Here, 220 is a comparator for comparing the analog output (217) of the light receiving element 209 and the analog output (218) of the distance sensor 210, 22
A CPU 1 receives the digital output of the comparator 220 and encodes a black-and-white pattern on a document. 22
2 is a digital output of the comparator 220.

【0070】上記構成において、上述の第6の実施例と
同様にカールした原稿212が受光素子209の位置へ
搬送されて行くと、受光素子209と距離センサ210
から図20の波形217と218で示す電圧が出力さ
れ、この2ヶの電圧をコンパレータ220は比較し、2
値化することにより出力222を送出する。CPU22
1はこの出力222を取りこむことにより、カールした
原稿212上の白黒パターン213を正しく認識するこ
とができる。
In the above structure, when the curled document 212 is conveyed to the position of the light receiving element 209 as in the sixth embodiment, the light receiving element 209 and the distance sensor 210 are moved.
The voltages indicated by the waveforms 217 and 218 in FIG. 20 are output from the comparator 220, and the two voltages are compared by the comparator 220.
The output 222 is sent out by digitizing. CPU22
1 can correctly recognize the black-and-white pattern 213 on the curled document 212 by taking in the output 222.

【0071】また、本実施例ではコンパレータ220で
受光素子209のアナログ出力と距離センサ210のア
ナログ出力とを比較して2値化したが、図21に示すよ
うに、距離センサ210の出力をインバータ(反転回
路)231で反転させて受光素子209の出力に加算器
232で加算し、その加算結果をコンバータ233で固
定のスライスレベルにより2値化してもよい。すなわ
ち、受光素子209の出力217と距離センサ210の
出力218の差分値を一定のスライスレベルで2値化し
てもよい。
In the present embodiment, the comparator 220 compares the analog output of the light receiving element 209 and the analog output of the distance sensor 210 and binarizes them. However, as shown in FIG. 21, the output of the distance sensor 210 is an inverter. Alternatively, the output of the light receiving element 209 may be inverted by the (inversion circuit) 231 and added by the adder 232, and the addition result may be binarized by the converter 233 with a fixed slice level. That is, the difference value between the output 217 of the light receiving element 209 and the output 218 of the distance sensor 210 may be binarized at a fixed slice level.

【0072】(第8の実施例)図22は本発明の第8の
実施例の構成を示す。本発明の第6の実施例において
は、原稿上の白黒パターンを読取るための受光素子20
9と、原稿が搬送系内の上下方向のどの位置を通過する
かを検出する距離センサ210を、図15に示すように
搬送系の原稿の搬送方向からみて直角方向に当る左右の
位置に並列に配置したが、物理的にこのような配置が不
可能な場合もある。
(Eighth Embodiment) FIG. 22 shows the structure of an eighth embodiment of the present invention. In the sixth embodiment of the present invention, the light receiving element 20 for reading a black-and-white pattern on an original document.
9 and a distance sensor 210 for detecting which position in the vertical direction the document passes in the transport system, as shown in FIG. However, there are cases where such an arrangement is physically impossible.

【0073】この場合、搬送系内で原稿が上下方向にず
れるのは原稿がカールしている為であり、また同一構成
の搬送ローラの下流では同一のずれが発生することを利
用して、図22に示すように、受光素子209と距離セ
ンサ210とを搬送系内で別の搬送ローラ203,20
4と251,252の下流の同一位置にそれぞれ別々に
配置し、かつ、両者の検出出力の時間差を搬送系の搬送
速度及び両者の搬送方向の距離に基いて補正することに
より、第6の実施例と同様に正しいコードパターンを認
識することが可能となる。
In this case, the original is displaced in the vertical direction in the conveying system because the original is curled, and the fact that the same deviation occurs downstream of the conveying rollers of the same structure is utilized. As shown in FIG. 22, the light receiving element 209 and the distance sensor 210 are separated from each other in the transport system by the other transport rollers 203, 20.
No. 4 and 251, 252 are separately arranged at the same positions, respectively, and the time difference between the detection outputs of both is corrected based on the transport speed of the transport system and the distance in the transport direction of the both, so that the sixth embodiment As in the example, it is possible to recognize the correct code pattern.

【0074】[0074]

【発明の効果】以上説明したように、本発明によれば、
複数のスライスレベルを使用して2値化するので、コー
ドが印刷されている原稿と反射型センサとの距離が原稿
のカールやばたつき等により変化しても反射型センサの
出力を正確に2値データへと変換し、コードの認識確率
を向上させることができるという効果がある。
As described above, according to the present invention,
Since binarization is performed using a plurality of slice levels, the output of the reflective sensor can be accurately binarized even if the distance between the document on which the code is printed and the reflective sensor changes due to curl or flutter of the document. There is an effect that it can be converted into data and the recognition probability of the code can be improved.

【0075】また、本発明によれば、搬送系内で原稿が
上下方向にずれた場合、距離センサによりそのずれ量を
測定して、原稿上の白黒パターンを読み取る反射型セン
サの出力を2値化する際に、ずれ量に応じたスライスレ
ベルを用いて2値化を行うようにしたので、原稿上に白
黒のパターンで表わされているコードを、常に正しく読
取れるという効果がある。
Further, according to the present invention, when the document is vertically displaced in the conveying system, the distance sensor measures the amount of displacement and the output of the reflection type sensor for reading the black and white pattern on the document is binary. Since the binarization is performed by using the slice level according to the shift amount, the code represented by the black and white pattern on the document can always be read correctly.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施例のコード読取装置の概略
構成を示すブロック図を含む断面図である。
FIG. 1 is a cross-sectional view including a block diagram showing a schematic configuration of a code reading device according to a first embodiment of the present invention.

【図2】図1の装置で読み取られる原稿とコードの一例
を示す平面図である。
FIG. 2 is a plan view showing an example of a document and a code read by the apparatus of FIG.

【図3】図1の搬送路の部分を拡大した拡大断面図であ
る。
FIG. 3 is an enlarged cross-sectional view in which a portion of the conveyance path of FIG. 1 is enlarged.

【図4】図1の反射型センサと原稿との距離が短いとき
のセンサの出力波形と使用するスライスレベルを示す波
形図である。
FIG. 4 is a waveform diagram showing an output waveform of the sensor and a slice level used when the distance between the reflection type sensor of FIG. 1 and a document is short.

【図5】図1の反射型センサと原稿との距離が長いとき
のセンサの出力波形と使用するスライスレベルを示す波
形図である。
5 is a waveform diagram showing an output waveform of the sensor and a slice level used when the distance between the reflection type sensor of FIG. 1 and a document is long.

【図6】本発明の第2の実施例で搬送されるカールして
いる原稿の例を示す斜視図である。
FIG. 6 is a perspective view showing an example of a curled document conveyed in a second embodiment of the present invention.

【図7】図6のカールしている原稿が紙搬送路を搬送さ
れているときの反射型センサと原稿との距離の状態を示
す断面図である。
FIG. 7 is a cross-sectional view showing a state of the distance between the reflective sensor and the original when the curled original of FIG. 6 is being conveyed through a paper conveyance path.

【図8】図6の内側にカールしている原稿が搬送された
ときの原稿上のコードを検出した反射型センサの出力波
形と、そのとき使用するスライスレベルを示す波形図で
ある。
FIG. 8 is a waveform diagram showing an output waveform of a reflective sensor that detects a code on the original when the original curled in FIG. 6 is conveyed and a slice level used at that time.

【図9】図6の外側にカールしている原稿が搬送された
ときの原稿上のコードを検出した反射型センサの出力波
形と、そのとき使用するスライスレベルを示す波形図で
ある。
9 is a waveform diagram showing an output waveform of a reflective sensor that detects a code on the original when the original curled in FIG. 6 is conveyed and a slice level used at that time.

【図10】本発明の第3の実施例の搬送路の部分の拡大
と回路構成を示すブロック図を含む断面図である。
FIG. 10 is a sectional view including a block diagram showing an enlargement and a circuit configuration of a portion of a conveyance path according to a third embodiment of the present invention.

【図11】図10のばたついている原稿に対するA/D
コンバータの出力波形と使用するスライスレベルとを示
す波形図である。
11 is an A / D for the flapping original of FIG.
It is a waveform diagram which shows the output waveform of a converter and the slice level used.

【図12】本発明の第4の実施例における、ばたついて
いる原稿に対するA/Dコンバータの出力波形と使用す
るスライスレベルとを示す波形図である。
FIG. 12 is a waveform diagram showing an output waveform of an A / D converter and a slice level used for a flapping original in a fourth embodiment of the present invention.

【図13】本発明の第5の実施例で搬送されるカールし
ている原稿の例を示す斜視図である。
FIG. 13 is a perspective view showing an example of a curled document conveyed in a fifth embodiment of the present invention.

【図14】図13のカールしている原稿が紙搬送路を搬
送されているときのA/Dコンバータの出力波形と使用
するスライスレベルとを示す波形図である。
FIG. 14 is a waveform diagram showing an output waveform of the A / D converter and a slice level to be used when the curled document of FIG. 13 is conveyed on a paper conveyance path.

【図15】本発明の第6の実施例のコード読取装置の要
部概略構成を示す正面図(A)および平面図(B)であ
る。
FIG. 15 is a front view (A) and a plan view (B) showing a schematic configuration of a main part of a code reading device according to a sixth embodiment of the present invention.

【図16】図15の搬送系で送られる原稿とコードの例
を示す平面図および斜視図である。
16A and 16B are a plan view and a perspective view showing an example of a document and a code sent by the transport system of FIG.

【図17】図16の原稿を搬送したときの受光素子の出
力波形と距離センサの出力波形からコードが認識される
ことを示す波形図である。
17 is a waveform diagram showing that a code is recognized from the output waveform of the light receiving element and the output waveform of the distance sensor when the document of FIG. 16 is conveyed.

【図18】本発明の第6実施例の回路構成を示すブロッ
ク図である。
FIG. 18 is a block diagram showing a circuit configuration of a sixth embodiment of the present invention.

【図19】本発明の第7の実施例の回路構成を示すブロ
ック図である。
FIG. 19 is a block diagram showing a circuit configuration of a seventh embodiment of the present invention.

【図20】図19の回路の出力信号の波形を示す波形図
である。
20 is a waveform diagram showing a waveform of an output signal of the circuit of FIG.

【図21】本発明の第7の実施例の他の回路構成例を示
すブロック図である。
FIG. 21 is a block diagram showing another circuit configuration example of the seventh embodiment of the present invention.

【図22】本発明の第8の実施例のコード読取装置の配
置構成を示す断面図である。
FIG. 22 is a sectional view showing the arrangement configuration of the code reading device according to the eighth embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1,2,3,4 搬送ローラ 5 反射型センサ 6 増幅器 7 A/Dコンバータ 8,11〜13 原稿 9 コード 10,110 搬送路 14,15,18,22,23,26 出力波形 16,17,19,24,25,27 スライスレベル 20,21,131,132 カールしている原稿 112,122,123,133 出力波形 113〜115,124〜126,134,135 ス
ライスレベル 116〜121,127〜130 コードの変化点 201〜204,251,252 搬送ローラ 205,206 ガイド板 207 LED 208 レンズ 209 受光素子 210 距離センサ 211,212 原稿 213 コード 214,217 出力波形 215,218 スライスレベル 220 コンパレータ 221,245 CPU
1, 2, 3, 4 Conveying roller 5 Reflective sensor 6 Amplifier 7 A / D converter 8, 11-13 Original 9 Code 10, 110 Conveying path 14, 15, 18, 22, 23, 26 Output waveform 16, 17, 19, 24, 25, 27 Slice level 20, 21, 131, 132 Curl original 112, 122, 123, 133 Output waveform 113-115, 124-126, 134, 135 Slice level 116-121, 127-130 Code change points 201-204, 251,252 Conveying rollers 205,206 Guide plate 207 LED 208 Lens 209 Light receiving element 210 Distance sensor 211,212 Original 213 Code 214,217 Output waveform 215,218 Slice level 220 Comparator 221,245 CPU

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 原稿を搬送する搬送系と、 搬送されてくる原稿上の白黒パターンのコードを光学的
に検出する光学センサと、 該光学センサの出力データをデジタル多値データに変換
するデジタル変換手段と、 該デジタル変換手段の出力の前記デジタル多値データを
多数のスライスレベルにより2値化し、2値化したデー
タでの黒または白の部位の長さが所定の規定範囲内にあ
るか否かを判定し、肯定判定の2値データのみを検出コ
ードのデータとして出力する2値化手段とを具備したこ
とを特徴とするコード読取装置。
1. A transport system for transporting a document, an optical sensor for optically detecting a code of a black-and-white pattern on the transported document, and a digital conversion for converting output data of the optical sensor into digital multi-valued data. Means for binarizing the digital multi-valued data output from the digital converting means by a large number of slice levels, and determining whether the length of the black or white portion in the binarized data is within a predetermined prescribed range. A code reading device, comprising: a binarizing unit that determines whether or not, and outputs only binary data of an affirmative determination as detection code data.
【請求項2】 原稿を搬送する搬送系と、 搬送されてくる原稿上の白黒パターンのコードを光学的
に検出する光学センサと、 該光学センサの出力データをデジタル多値データに変換
するデジタル変換手段と、 該デジタル変換手段の出力の前記デジタル多値データを
複数のスライスレベルにより2値化する際、白黒部位の
変化点で白黒部位の長さを決定することで2値化し、2
値化したデータの1つを選択して黒,白を表わすコード
データとして出力するコード出力手段とを具備したこと
を特徴とするコード読取装置。
2. A transport system for transporting a document, an optical sensor for optically detecting a code of a black-and-white pattern on the transported document, and a digital conversion for converting output data of the optical sensor into digital multi-valued data. Means and the digital multi-valued data output from the digital converting means is binarized by deciding the length of the black and white part at the change point of the black and white part when binarizing the digital multivalued data by a plurality of slice levels,
A code reading device comprising: a code output means for selecting one of the digitized data and outputting it as code data representing black and white.
【請求項3】 前記複数のスライスレベルのうち、少く
とも1つは前記原稿のカールまたは該原稿のばたつきに
応じた補正を持った曲線状のスライスレベルであること
を特徴とする請求項1または2に記載のコード読取装
置。
3. A curvilinear slice level having a correction according to the curl of the original document or the flapping of the original document, at least one of the plurality of slice levels. The code reader according to item 2.
【請求項4】 前記複数のスライスレベルの値が互いに
逆転しない場合において、前記肯定判定が得られた2値
データの複数のスライスレベルで挟まれた、該肯定判定
が得られない2値データのスライスレベルが存在すると
きは、故障であると判断する判断手段を更に有すること
を特徴とする請求項1または2に記載のコード読取装
置。
4. When the values of the plurality of slice levels are not reversed from each other, the binary data which is sandwiched by the plurality of slice levels of the binary data for which the positive determination is obtained and which cannot be obtained for the positive determination is obtained. 3. The code reading device according to claim 1, further comprising a determination unit that determines a failure when the slice level exists.
【請求項5】 原稿を搬送する搬送系と、 搬送されてくる原稿上の白黒パターンのコードを光学的
に検出する光学センサと、 該光学センサと前記原稿との距離を測定する距離センサ
と、 前記光学センサの出力データを前記距離センサの出力デ
ータで補正したスライスレベルにより2値化する2値化
手段とを具備したことを特徴とするコード読取装置。
5. A carrying system for carrying a document, an optical sensor for optically detecting a code of a black and white pattern on the carried document, and a distance sensor for measuring a distance between the optical sensor and the document. A code reading device comprising: a binarizing unit that binarizes output data of the optical sensor with a slice level corrected by output data of the distance sensor.
JP5102476A 1993-04-28 1993-04-28 Code reader Pending JPH06314348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5102476A JPH06314348A (en) 1993-04-28 1993-04-28 Code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5102476A JPH06314348A (en) 1993-04-28 1993-04-28 Code reader

Publications (1)

Publication Number Publication Date
JPH06314348A true JPH06314348A (en) 1994-11-08

Family

ID=14328515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5102476A Pending JPH06314348A (en) 1993-04-28 1993-04-28 Code reader

Country Status (1)

Country Link
JP (1) JPH06314348A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010046818A (en) * 2008-08-19 2010-03-04 Canon Inc Printer and printing paper
JP2016076283A (en) * 2014-10-06 2016-05-12 富士通株式会社 Data determination device, library device, and data determination method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010046818A (en) * 2008-08-19 2010-03-04 Canon Inc Printer and printing paper
JP2016076283A (en) * 2014-10-06 2016-05-12 富士通株式会社 Data determination device, library device, and data determination method

Similar Documents

Publication Publication Date Title
US6499581B2 (en) Coin discriminating apparatus
EP0125877B1 (en) Information input apparatus
EP0322920B1 (en) Optical character reader
JPH07160857A (en) Image sensor and image discriminating device using it
US4314159A (en) Document scanner
KR20100129133A (en) Bar code processing apparatus and bar code processing method
JP2006202075A (en) Device and method for identifying banknote
US6359287B1 (en) Apparatus for detecting an edge of a document
JPH06314348A (en) Code reader
JPH10145556A (en) Image reader
JPH09212707A (en) Paper sheets, discriminating device
JP3604604B2 (en) Coin identification device
JP2511508B2 (en) Paper discrimination device
JP3614122B2 (en) Reading surface dust detection device for sheet-through document reading system
JPH07239899A (en) Optical character reader
JPS6122837B2 (en)
JP2576370B2 (en) ID mark reading device
JPS61177581A (en) Optical character reader
JP2953143B2 (en) Barcode reading device and barcode reading method
JPH0785202A (en) Bar code reader for bankbook or the like
JPH06103406A (en) Optical character reader
JPS60246489A (en) Optical character reading method
JPH0789375B2 (en) Image recognition device
JPH09153110A (en) Bar code reader
JPH02168146A (en) Identifying apparatus for pattern of paper leaf