JPH0310992B2 - - Google Patents
Info
- Publication number
- JPH0310992B2 JPH0310992B2 JP63278715A JP27871588A JPH0310992B2 JP H0310992 B2 JPH0310992 B2 JP H0310992B2 JP 63278715 A JP63278715 A JP 63278715A JP 27871588 A JP27871588 A JP 27871588A JP H0310992 B2 JPH0310992 B2 JP H0310992B2
- Authority
- JP
- Japan
- Prior art keywords
- mark
- reference mark
- state
- detected
- marks
- 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 - Lifetime
Links
Landscapes
- Facsimile Scanning Arrangements (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明はあらかじめ定められた様式に従つて作
成されたマークシート上に記入されたマークを、
フアクシミリ装置等の走査型の光学読取装置によ
り読み取るマーク読取装置に関する。[Detailed Description of the Invention] Industrial Application Field The present invention enables marks written on a mark sheet created according to a predetermined format to be
The present invention relates to a mark reading device that is read by a scanning type optical reading device such as a facsimile device.
従来の技術
通常、この種のマーク読取方式においては、例
えば第1図や第2図で示されるようなマークシー
ト1,2を読取装置に、順次走査により読み取ら
せ、これによつて得られた画信号に基づいて、ま
ず第1図中のスタート基準マーク3や、第2図中
のスタート基準マーク4およびストツプ基準マー
ク5を検出する。そして、次にそれらの検出位置
を基準として、1走査線のうちのどの区間が各マ
ーク記入欄6,7に相当するかを割り出し(マー
クシート1,2上において、マーク記入欄6,7
は基準マーク3,4,5と予め定められた位置関
係にある)、その割り出された区間の画信号を参
照することにより、各マーク記入欄6,7にマー
クが記入されているか否かを判定する。2. Description of the Related Art Normally, in this type of mark reading system, mark sheets 1 and 2 as shown in FIGS. 1 and 2 are sequentially read by a reading device, and the resulting images are Based on the signals, first the start reference mark 3 in FIG. 1, the start reference mark 4 and the stop reference mark 5 in FIG. 2 are detected. Then, based on these detected positions, it is determined which section of one scanning line corresponds to each mark entry field 6, 7 (on mark sheets 1, 2, mark entry fields 6, 7
are in a predetermined positional relationship with reference marks 3, 4, and 5), and by referring to the image signal of the determined section, it is possible to determine whether or not a mark has been written in each mark entry field 6, 7. Determine.
ここで、前記判定において参照される走査線
は、基準マークが検出された走査線のみである。
したがつて、従来は、第1図のマークシート1の
場合には、スタート基準マーク3が検出された走
査線の画信号を参照して前記判定が行われてい
た。また、第2図のマークシート2の場合には、
通常、スタート基準マーク4およびストツプ基準
マーク5の両方が同時に検出された走査線の画信
号を参照して、前記判定が行われていた。 Here, the scanning line referred to in the determination is only the scanning line in which the reference mark is detected.
Therefore, conventionally, in the case of the mark sheet 1 shown in FIG. 1, the determination has been made with reference to the image signal of the scanning line in which the start reference mark 3 was detected. In addition, in the case of mark sheet 2 in Figure 2,
Normally, the above-mentioned determination is made with reference to the image signal of the scanning line in which both the start reference mark 4 and the stop reference mark 5 are detected at the same time.
発明が解決しようとする課題
しかしながら上記従来の構成では、フアクシミ
リ装置等の読取装置においては、マークシートが
正規の状態に対し傾いた状態で読み取られること
があり、前記判定に際し、参照する走査線数が減
少し、読取結果の信頼性が著しく低下するという
問題点を有していた。Problems to be Solved by the Invention However, in the above-mentioned conventional configuration, in a reading device such as a facsimile machine, the mark sheet may be read in an inclined state compared to the normal state, and the number of scanning lines to be referred to in the above judgment is This has caused a problem in that the reliability of the reading results is significantly reduced.
前記マークシートの傾きに伴う信頼低下を補う
1つの方法として、マーク記入欄を副走査方向に
十分長くする方法が考えられるが、そのようにし
た場合には、マーク記入上の能率を著しく低下さ
せるばかりでなく、マークシートの情報密度を低
下させるので、現実的でない。 One possible method of compensating for the decrease in reliability caused by the tilt of the mark sheet is to make the mark entry field sufficiently long in the sub-scanning direction, but in such a case, the efficiency of mark entry will be significantly reduced. However, this is not practical because it reduces the information density of the mark sheet.
また、別の方法として、第3図に示されるよう
に、マークシート13の先頭部分に傾き検出マー
ク14を設け、この傾き検出マーク14により、
前もつてマークシートの傾き角度とその方向を検
出しておき、マーク記入欄にマークが記入されて
いるか否かを判定する際、前記検出された傾き角
度とその方向に基づき、マークシート13の左半
分と右半分とで、参照する走査線を切り替える
(別の走査線を参照する)方法も従来より行われ
ている。 Alternatively, as shown in FIG. 3, a tilt detection mark 14 is provided at the beginning of the mark sheet 13, and this tilt detection mark 14 allows
The inclination angle and direction of the mark sheet 13 have been detected in advance, and when determining whether or not a mark has been entered in the mark entry field, the left half of the mark sheet 13 is detected based on the detected inclination angle and direction. Conventionally, a method of switching the scanning line to be referred to (referring to another scanning line) between the right half and the right half has also been used.
しかし、フアクシミリ装置等の読取装置におい
ては、マークシートが若干回転しながら走行する
ことにより、マークシートの傾き角度が読取開始
時から読取終了時までの間で変化する場合もあ
り、このような場合には、前記信頼性の低下を防
止することができない欠点があつた。 However, in reading devices such as facsimile machines, the mark sheet rotates slightly as it travels, so the inclination angle of the mark sheet may change from the start of reading to the end of reading. However, there was a drawback that the above-mentioned decrease in reliability could not be prevented.
さらに、別の方法として、読取装置から得られ
るマークシート1枚分の画信号を一時的に記憶装
置に全て記憶させておき、各走査線読取時のマー
クシートの傾き角度に応じて、参照する走査線を
最適に切り換えるようにすれば、極めて精度の高
いマーク読み取りが可能になるであろう。しか
し、この方法によれば、大容量の記憶装置を必要
とし、読取装置が高価になるという新たな問題点
が生じる。 Furthermore, as another method, all the image signals for one mark sheet obtained from the reading device are temporarily stored in a storage device, and the scanning line to be referred to is By optimally switching the marks, it will be possible to read marks with extremely high accuracy. However, this method creates new problems in that it requires a large-capacity storage device and the reading device is expensive.
本発明は、前記従来の問題点を解決するべくな
されたもので、マーク記入欄の副走査方向(縦方
向)の寸法を長くすることなしに、マークシート
の傾き角度が走査開始時から走査終了時までの間
に変化しても、極めて精度の高いマーク読み取り
を行うことができるマーク読取装置を提供するこ
とを目的とする。 The present invention has been made in order to solve the above-mentioned conventional problems, and it is possible to change the inclination angle of the mark sheet from the start of scanning to the end of scanning without increasing the dimension of the mark entry field in the sub-scanning direction (vertical direction). It is an object of the present invention to provide a mark reading device that can read marks with extremely high accuracy even if the marks change during the period.
さらに、本発明はマーク読取の処理速度を向上
させたマーク読取装置を提供することを目的とす
る。 A further object of the present invention is to provide a mark reading device that improves the processing speed of mark reading.
課題を解決するための手段
本発明は上述の目的を達成するためにスタート
基準マークとストツプ基準マークとの間に等間隔
で設けられたマーク記入欄を複数行有して成るマ
ークシートを読み取る読取手段と、予め前記スタ
ート基準マークと前記ストツプ基準マークとの間
の距離に基づく情報を格納する記憶手段と、順次
入力するすべての画信号の白黒判別を行なうこと
により所定数以上の連続黒信号を検出し前記いず
れかの基準マークを検出する全区間検索モード及
び最初に検出された前記いずれかの基準マークの
位置によりスタート基準マークかストツプ基準マ
ークかを判別した後前記記憶手段に格納された情
報により次に出現する前記基準マークの位置を予
測しその予測範囲内でのみ前記基準マークを検索
する限定区間検索モードとを有する基準マーク検
出手段と、この基準マーク検出手段の検出結果に
より走査ラインの傾きを修正するとともに前記基
準マーク検出手段が双方の基準マークをともに検
出しない状態への遷移ごとにマーク記入欄の白黒
判別を順次実行する制御手段とを備えたものであ
る。Means for Solving the Problems In order to achieve the above-mentioned object, the present invention provides a reading means for reading a mark sheet having a plurality of rows of mark entry fields provided at equal intervals between a start reference mark and a stop reference mark. and a storage means that stores information based on the distance between the start reference mark and the stop reference mark in advance, and detects a predetermined number or more of continuous black signals by performing black and white discrimination on all image signals that are sequentially input. Then, after determining whether it is a start reference mark or a stop reference mark based on the entire range search mode for detecting any of the reference marks and the position of the first detected reference mark, based on the information stored in the storage means. a reference mark detection means having a limited section search mode that predicts the position of the reference mark that will appear next and searches for the reference mark only within the predicted range; and control means for correcting the inclination of the reference mark and sequentially determining whether the mark entry field is black or white each time the reference mark detection means changes to a state in which neither of the reference marks is detected.
作 用
本発明は上述の構成によつて、マークシートが
走査時に傾いても、極めて精度の高いマーク読み
取りを行うことができる。Effects With the above-described configuration, the present invention can read marks with extremely high accuracy even if the mark sheet is tilted during scanning.
さらに、本発明は限定区間検索モードにおいて
は、最初に検出された基準マークの位置と、予め
登録されている両基準マーク間の距離とにより、
次に検出するべき基準マークが出現し得る走査線
上の限定された区間を予測して、その限定された
区間においてのみ、次に検出するべき基準マーク
の検索動作を行うため、検索の対象となるデータ
数を少なくし、処理速度を向上させることができ
る。 Furthermore, in the limited section search mode, the present invention uses the position of the first detected reference mark and the distance between both reference marks registered in advance.
A limited section on the scanning line where the next reference mark to be detected may appear is predicted, and the search operation for the next reference mark to be detected is performed only in that limited section, so it becomes the target of the search. It is possible to reduce the amount of data and improve processing speed.
実施例
以下、本発明を図面に示す実施例に基づいて説
明する。本実施例においては、第4図に示すマー
クシート12を用いる。このマークシート12に
ついてさらに詳しく説明すると、前記スタート基
準マーク10は、マークシート12の左端部付近
において縦方向に並べて設けられている。他方、
前記ストツプ基準マーク11は、マークシート1
2の右端部付近において縦方向に並べて設けられ
ている。そして、両基準マーク10,11はマー
クシート12において左右対称となる位置を占め
ている。Embodiments Hereinafter, the present invention will be described based on embodiments shown in the drawings. In this embodiment, a mark sheet 12 shown in FIG. 4 is used. To explain this mark sheet 12 in more detail, the start reference marks 10 are arranged vertically in the vicinity of the left end of the mark sheet 12. On the other hand,
The stop reference mark 11 is on the mark sheet 1.
They are arranged vertically near the right end of 2. The reference marks 10 and 11 occupy symmetrical positions on the mark sheet 12.
前記両基準マーク10,11は、共に、縦4
mm、横3mmの長方形をなしており、フアクシミリ
装置等の読取装置で読取可能な色(例えば、黒)
にて前記長方形の内部まで、べたに印刷されてい
る。 Both the reference marks 10 and 11 are vertically 4
It is a rectangle with a width of 3 mm and a color that can be read by a reading device such as a facsimile machine (for example, black).
The inside of the rectangle is printed solidly.
また、前記マーク記入欄8の各行は、それぞれ
一対のスタート基準マーク10とストツプ基準マ
ーク11との間に挟まれた領域に設けられてい
る。これらのマーク記入欄8は、縦4mm、横1mm
の幅とされており、読取装置で読み取られない色
(例えば、淡い緑色)で白抜きに印刷されている。
そして、マーク記入欄8の横方向の間隔Aは4mm
とされている。なお、マーク記入欄8の各行は、
それぞれ、一対のスタート基準マーク10および
ストツプ基準マーク11と一直線上に並んでい
る。 Further, each row of the mark entry field 8 is provided in an area sandwiched between a pair of start reference marks 10 and stop reference marks 11, respectively. These mark entry fields 8 are 4 mm long and 1 mm wide.
It is printed in white in a color that cannot be read by a reading device (for example, pale green).
And the horizontal interval A of mark entry field 8 is 4mm.
It is said that In addition, each line of mark entry column 8 is as follows.
They are aligned with a pair of start reference marks 10 and stop reference marks 11, respectively.
なお、基準マーク10,11およびマーク記入
欄8の寸法および問題を上述のように定めた場
合、マークシート12がA4判であるとすると、
次に説明する記事欄9を設けなければ、約1400個
(40列×35行)のマーク記入欄8を1枚のマーク
シート12に設定できる。 In addition, when the dimensions and problems of the reference marks 10, 11 and the mark entry field 8 are determined as described above, and the mark sheet 12 is A4 size,
If the article column 9 described next is not provided, approximately 1400 (40 columns x 35 rows) mark entry columns 8 can be set on one mark sheet 12.
前記記事欄9は、スタート基準マーク10の列
とストツプ基準マーク11の列との間に挟まれる
領域に、マーク記入欄8と一緒に設けられてい
る。この記事欄9の形状および大きさは適当に定
めることができる。 The article field 9 is provided together with the mark entry field 8 in an area sandwiched between the row of start reference marks 10 and the row of stop reference marks 11. The shape and size of this article column 9 can be determined appropriately.
第5図は、本実施例において、フアクシミリ装
置等の読取装置(図示せず)から得られる画信号
に基づいて各マーク記入欄8にマークが記入され
ているか否かを検出するマーク検出回路のブロツ
ク図を示す。同図において、15は読取装置によ
つて得られた画信号cを入力する画信号入力端
子、16は画信号cに完全に同期した画信号クロ
ツクパルスb(1クロツクパルスが1画素に対応
する)を読取装置から入力するクロツクパルス入
力端子、17は画信号区間信号aを読取装置から
入力する画信号区間信号入力端子、18は走査開
始信号pを読取装置から入力する走査開始信号入
力端子である。 FIG. 5 shows a mark detection circuit that detects whether or not a mark is written in each mark entry field 8 based on an image signal obtained from a reading device (not shown) such as a facsimile device in this embodiment. A block diagram is shown. In the figure, 15 is an image signal input terminal for inputting the image signal c obtained by the reading device, and 16 is an image signal clock pulse b (one clock pulse corresponds to one pixel) which is completely synchronized with the image signal c. A clock pulse input terminal is inputted from the reading device, 17 is an image signal section signal input terminal to which the image signal section signal a is inputted from the reading device, and 18 is a scanning start signal input terminal to which the scanning start signal p is inputted from the reading device.
19はこの回路の各部を制御する8ビツトの汎
用マイクロプロセツサであり、後述するこの回路
の主な動作は、ROM(Read Only Memory)2
0にあらかじめ記憶されているプログラムをマイ
クロプロセツサ19が実行することにより行われ
る。21はデータバス、22はアドレスバス、2
3は制御バスである。 19 is an 8-bit general-purpose microprocessor that controls each part of this circuit, and the main operation of this circuit, which will be described later, is performed by ROM (Read Only Memory) 2.
This is performed by the microprocessor 19 executing a program stored in advance in the microprocessor 19. 21 is a data bus, 22 is an address bus, 2
3 is a control bus.
24はRAM(Random Access Memory)3
5に画信号を入力するための画像入力回路であ
り、この画像入力回路24は、8ビツトのシリア
ル/パラレル変換レジスタ25、データラツチ2
6、1/8分周器27、アドレスカウンタ28、
DMA制御回路29およびステイタスレジスタ3
0からなる。 24 is RAM (Random Access Memory) 3
This image input circuit 24 includes an 8-bit serial/parallel conversion register 25 and a data latch 2.
6, 1/8 frequency divider 27, address counter 28,
DMA control circuit 29 and status register 3
Consists of 0.
なお、前記クロツクパルスbは前記シリアル/
パラレル変換レジスタ25および1/8分周器27
に入力される。また、1/8分周器27は画信号区
間信号aにより動作状態となつて、クロツクパル
スbを1/8分周したパルスを、ラツチパルス信号
dとしてデータラツチ26およびDMA制御回路
29へ送出する。 Note that the clock pulse b is the serial/
Parallel conversion register 25 and 1/8 frequency divider 27
is input. Further, the 1/8 frequency divider 27 is activated by the image signal interval signal a, and sends a pulse obtained by dividing the clock pulse b by 1/8 to the data latch 26 and the DMA control circuit 29 as the latch pulse signal d.
31は1走査線のうちの各マーク記入欄8に対
応する区間における黒画素の数を計数する黒画素
計数回路であり、この黒画素数計数回路31は、
1/8分周器32、8ビツトのパラレル/シリアル
変換レジスタ33および積算カウンタ34から構
成されている。 31 is a black pixel counting circuit that counts the number of black pixels in the section corresponding to each mark entry field 8 of one scanning line, and this black pixel number counting circuit 31 is as follows:
It consists of a 1/8 frequency divider 32, an 8-bit parallel/serial conversion register 33, and an integration counter 34.
36は検出されたマークデータを外部のデータ
処理装置へ出力する出力回路であり、出力データ
ポート37、データ転送制御回路38および外部
インターフエイス39から構成されている。 An output circuit 36 outputs detected mark data to an external data processing device, and is composed of an output data port 37, a data transfer control circuit 38, and an external interface 39.
第6図は前記RAM35のマツプ図(領域割り
当て図)、第7図は第6図の作業領域40内の割
り当て図、第8図は画像入力回路24内部の動作
タイミングチヤート、第9図は黒画素計数回路3
1内部の動作タイミングチヤート、第15図ない
し第17図はこのマーク検出回路の動作を示すフ
ローチヤートである。 6 is a map diagram (area allocation diagram) of the RAM 35, FIG. 7 is an allocation diagram in the work area 40 of FIG. 6, FIG. 8 is an operation timing chart inside the image input circuit 24, and FIG. 9 is a black Pixel counting circuit 3
FIGS. 15 to 17 are flowcharts showing the operation of this mark detection circuit.
次に、これらの図を参照しながらこのマーク検
出回路の動作を説明する。 Next, the operation of this mark detection circuit will be explained with reference to these figures.
読取開始位置に到達すると、走査開始信号pが
“1”になると、区間信号aが“1”になり、そ
れに同期して画信号cが入力端子15に入力され
る(なお、クロツクパルスbは常時入力端子17
に入力されている。)。 When the reading start position is reached, the scanning start signal p becomes "1", the interval signal a becomes "1", and in synchronization with this, the image signal c is input to the input terminal 15 (the clock pulse b is always Input terminal 17
has been entered. ).
そして、前記のように区間信号aが“1”にな
ると、画像入力回路24が動作可能な状態とな
り、第5図のタイミングチヤートに示されるよう
に、入力端子15を通じてシリアル/パラレル変
換レジスタ25にシリアル入力する画信号cは、
同レジスタ25により8ビツトずつパラレル信号
に変換された上、データラツチ26へ転送され
る。このようにしてデータラツチ26へ転送され
た8ビツトずつの画信号は、その後、RAM35
へ直接メモリ・アクセス(以下DMAと言う)転
送され、同RAM35の第1の入力バツフア領域
41または第2の入力バツフア領域42内に順次
格納されて行く。 When the interval signal a becomes "1" as described above, the image input circuit 24 becomes operational, and as shown in the timing chart of FIG. The image signal c input serially is
The register 25 converts each 8 bits into parallel signals and transfers them to the data latch 26. The 8-bit image signals transferred to the data latch 26 in this way are then transferred to the RAM 35.
Direct memory access (hereinafter referred to as DMA) is transferred to the RAM 35 and sequentially stored in the first input buffer area 41 or the second input buffer area 42.
以上の動作は、区間信号aが“1”である間、
連続的に行われる。これにより、1走査線分の画
信号cが連続的に入力バツフア領域41または4
2に格納されて行く。 The above operation is performed while the interval signal a is “1”.
Continuous. As a result, the image signal c for one scanning line is continuously transferred to the input buffer area 41 or 4.
It will be stored in 2.
ここで、前記入力バツフア領域41,42は、
それぞれ1走査線分の容量を確保されており、処
理速度向上のため、一方の入力バツフア領域に格
納されたある走査線の画信号cについて後述する
種々の処理が行われている間に、他方の入力バツ
フア領域に次の走査線の画信号cが格納されて行
く。 Here, the input buffer areas 41 and 42 are
Each has a capacity for one scanning line, and in order to improve processing speed, while various processing described later is being performed on the image signal c of a certain scanning line stored in one input buffer area, the capacity of the other input buffer area is The image signal c of the next scanning line is stored in the input buffer area of .
なお、本実施例では、1走査線が2048ビツトで
構成されることとしているので、前記入力バツフ
ア領域41,42には、2048/8=256バイトの
容量がそれぞれ確保されている。 In this embodiment, since one scanning line is composed of 2048 bits, each of the input buffer areas 41 and 42 has a capacity of 2048/8=256 bytes.
また、前記DMA転送は、DMA制御回路29
とプロセツサ19との間でDMA要求信号fと
DMA応答信号gのやりとりが行われた後、
DMA制御回路29からメモリ書込信号iととも
にアドレス有効信号hが出力され、このhによ
り、アドレスバス22が有効にされると同時に、
データラツチ26上に保持された画信号がデータ
バス21上にセツトアツプされることにより実現
される。 Further, the DMA transfer is performed by the DMA control circuit 29.
DMA request signal f and processor 19
After the DMA response signal g is exchanged,
The address valid signal h is output from the DMA control circuit 29 together with the memory write signal i, and at the same time, the address bus 22 is enabled by this h.
This is realized by setting up the image signal held on the data latch 26 onto the data bus 21.
以上のようにしてRAM35の入力バツフア領
域41または42は格納された画信号に対して
は、まず、基準マーク10,11の検索が行われ
る。次に、これを説明する。 First, the reference marks 10 and 11 are searched for the image signal stored in the input buffer area 41 or 42 of the RAM 35 as described above. Next, this will be explained.
本実施例では、読取装置は8ドツト/1mmの分
解能を持つものとしている。そして、前記のよう
に基準マーク10,11の横軸は3mmとされてい
るので、理想的には、1走査線上において、基準
マーク10,11はそれぞれ3×8=24ビツト連
続する黒信号として現れることになる。そこで、
本実施例では、マークシート12の印刷精度や読
取時のマークシート12の傾き等を考慮して、基
準マークを判定するに際し、連続する黒信号に予
め許容範囲を備えている。具体的には、24±3ビ
ツト(すなわち、21ビツト(第1の所定値)以
上、27(第2の所定値)ビツト以下)黒信号が連
続した場合、基準マーク10,11を検出したも
のとする。 In this embodiment, the reading device has a resolution of 8 dots/1 mm. As mentioned above, the horizontal axes of the reference marks 10 and 11 are 3 mm, so ideally, on one scanning line, each of the reference marks 10 and 11 is a continuous black signal of 3×8=24 bits. It will appear. Therefore,
In this embodiment, in consideration of the printing accuracy of the mark sheet 12, the inclination of the mark sheet 12 during reading, etc., a permissible range is provided in advance for continuous black signals when determining a reference mark. Specifically, when a black signal of 24±3 bits (i.e., 21 bits (first predetermined value) or more and 27 (second predetermined value) bits or less) is continuous, the reference marks 10 and 11 are detected. shall be.
なお、入力バツフア領域41または42に格納
された画信号に対する処理は、RAM35の作業
領域40(第6および7図参照)を用いて行われ
るが、初期状態においては、この作業領域40の
各部はすべてクリアされている。 Note that processing on the image signal stored in the input buffer area 41 or 42 is performed using the working area 40 (see FIGS. 6 and 7) of the RAM 35, but in the initial state, each part of this working area 40 is Everything has been cleared.
前記基準マーク10,11の検索動作は具体的
には、第16図のフローチヤートに従つて行われ
る。すなわち、マイクロプロセツサ19は、白画
信号の次に黒信号が読み出されると、RAMの作
業領域40の基準マーク横幅カウンタ48を用い
て黒信号が連続する数nを計数し、20<n<28と
なつたならば、基準マーク10,11を検出した
と判定する。 Specifically, the search operation for the reference marks 10 and 11 is performed according to the flowchart of FIG. 16. That is, when the black signal is read out after the white image signal, the microprocessor 19 uses the reference mark width counter 48 in the working area 40 of the RAM to count the number n of consecutive black signals, and calculates the number n of consecutive black signals. 28, it is determined that the reference marks 10 and 11 have been detected.
なお、1走査線の前半の部分で検出された基準
マークは、スタート基準マーク10とみなす一
方、1走査線の後半部分で検出された基準マーク
はストツプ基準マーク11とみなす。 Note that the reference mark detected in the first half of one scanning line is regarded as the start reference mark 10, while the reference mark detected in the second half of one scanning line is regarded as the stop reference mark 11.
本実施例では、前記検出された基準マーク1
0,11の後縁(すなわち、n個連続する黒画素
のうちの最後の黒画素)が基準位置とされ、この
基準位置を示す情報がRAMの作業領域40のス
タート基準マーク位置レジスタ46およびストツ
プ基準マーク位置レジスタ47に退避される。な
お、基準マーク位置レジスタ46,47の内容
は、それぞれ新たな基準マーク10,11が検出
される毎に更新される。 In this embodiment, the detected reference mark 1
The trailing edge of 0 and 11 (that is, the last black pixel among n consecutive black pixels) is set as the reference position, and information indicating this reference position is stored in the start reference mark position register 46 and the stop mark position register 46 in the RAM work area 40. The reference mark position register 47 is saved. Note that the contents of the reference mark position registers 46 and 47 are updated each time a new reference mark 10 and 11 is detected, respectively.
上述のようにして、最初の基準マーク10また
は11が検出されると(マークシート12が左に
傾いている場合には、ストツプ基準マーク11の
方がスタート基準マーク10より先に検出され
る)、RAMの作業領域40内の検索モードレジ
スタ44がセツトされ、以後はそれまでの全区間
検索モードから限定区間検索モードへ移行する。 When the first reference mark 10 or 11 is detected as described above (if the mark sheet 12 is tilted to the left, the stop reference mark 11 is detected before the start reference mark 10), The search mode register 44 in the working area 40 of the RAM is set, and thereafter the entire section search mode is shifted to the limited section search mode.
ここで、前記全区間検索モードにおいては、前
記基準マーク10,11の検索動作は、各走査線
の画信号の全区間において行われる。しかし、最
初の基準マーク10または11が検出された後
は、他の基準マーク10,11が出現する区間を
予想できるようになるので、前記限定区間検索モ
ードにおいては、各走査線の限定された区間にお
いてのみ、前記基準マーク10,11の検索動作
が行われる。 Here, in the entire interval search mode, the search operation for the reference marks 10 and 11 is performed in the entire interval of the image signal of each scanning line. However, after the first reference mark 10 or 11 is detected, it becomes possible to predict the section in which the other reference marks 10, 11 will appear. The search operation for the reference marks 10 and 11 is performed only in the section.
すなわち、前記限定区間検索モードにおいて
は、最初に検出された基準マーク10もしくは1
1、またはその後に検出された基準マーク10も
しくは11の位置情報と、ROM20内にあらか
じめ登録されている両基準マーク10,11間の
距離とにより、次に検出するべき基準マークが出
現し得る走査線上の限定された区間を所定の基準
により割り出し、その限定された区間においての
み、次に検出するべき基準マークの検索動作を行
う。 That is, in the limited section search mode, the first detected reference mark 10 or 1
1 or the position information of the reference mark 10 or 11 detected thereafter, and the distance between the two reference marks 10 and 11 registered in advance in the ROM 20, a scan in which the reference mark to be detected next may appear. A limited section on the line is determined based on a predetermined criterion, and a search operation for a reference mark to be detected next is performed only in the limited section.
なお、記事欄9の位置は、前記限定された区間
に含まれないように設定しておく。第10図は画
信号と前記限定された領域との関係を示すタイミ
ングチヤートである。 Note that the position of the article column 9 is set so as not to be included in the limited section. FIG. 10 is a timing chart showing the relationship between the image signal and the limited area.
これにより、記事欄9に、基準マーク10,1
1と区別できない図形パターンが書き込まれてい
ても、そのパターンが基準マーク10,11とし
て誤検出される虞がなくなる。また、検索の対象
となるデータ数が少なくなるので、処理速度が向
上される。 As a result, reference marks 10, 1 are added to article column 9.
Even if a graphic pattern that cannot be distinguished from 1 is written, there is no possibility that the pattern will be erroneously detected as the reference marks 10, 11. Furthermore, since the number of data to be searched is reduced, processing speed is improved.
一方、前記のように最初の基準マーク10また
は11が検出されると、各マーク記入欄8にマー
クが記入されているか否かの検出動作が開始され
る。次に、これを説明する。 On the other hand, when the first reference mark 10 or 11 is detected as described above, a detection operation is started to determine whether or not a mark has been written in each mark entry field 8. Next, this will be explained.
RAM35の作業領域40中の基準マーク検出
レジスタ45には、1走査線毎に、スタート基準
マーク10およびストツプ基準マーク11がそれ
ぞれ検出されたか否かがセツトされる(検出され
た場合には“1”、検出されなかつた場合には
“0”がセツトされる)。 The reference mark detection register 45 in the work area 40 of the RAM 35 is set to indicate whether or not the start reference mark 10 and the stop reference mark 11 are detected for each scanning line (if they are detected, "1" is set). ”; if not detected, “0” is set).
ここにおいて、前記のように各走査線について
基準マーク10,11の検出動作が行われると、
各走査線について第11図に示すような4つの状
態が生じる。 Here, when the detection operation of the reference marks 10 and 11 is performed for each scanning line as described above,
For each scan line, four states occur as shown in FIG.
すなわち、状態1は、1走査線においてスター
ト基準マーク10およびストツプ基準マーク11
のいずれもが検出されなかつた状態であり、基準
マーク検出レジスタ45上において(0、0)で
表される。 That is, in state 1, the start reference mark 10 and the stop reference mark 11 are detected in one scanning line.
This is a state in which none of the marks have been detected, and is represented by (0, 0) on the reference mark detection register 45.
状態2は、1走査線において、スタート基準マ
ーク10またはストツプ基準マーク11のいずれ
か一方のみが検出された状態であり、レジスタ4
5上において(0、1)または(1、0)で表さ
れる。 State 2 is a state in which only either the start reference mark 10 or the stop reference mark 11 is detected in one scanning line, and the register 4
5 is represented by (0, 1) or (1, 0).
状態3は、1走査線においてスタート基準マー
ク10およびストツプ基準マーク11のいずれも
が検出された状態であり、レジスタ45上におい
て(1、1)で表される。 State 3 is a state in which both the start reference mark 10 and the stop reference mark 11 are detected in one scanning line, and is represented by (1, 1) on the register 45.
状態4は、状態2と同じく、1走査線におい
て、スタート基準マーク10またはストツプ基準
マーク11のいずれか一方のみが検出された状態
であり、やはりレジスタ45上において(0、
1)または(1、0)で表される。ただし、この
状態4と状態2との相違点は、状態2が基準マー
ク10または11の上部を検出しているのに対
し、状態4は基準マーク10または11の下部を
検出している点にある。 State 4, like state 2, is a state in which only either the start reference mark 10 or the stop reference mark 11 is detected in one scanning line, and also on the register 45 (0,
1) or (1, 0). However, the difference between state 4 and state 2 is that state 2 detects the upper part of reference mark 10 or 11, whereas state 4 detects the lower part of reference mark 10 or 11. be.
原稿が傾いているか否か、および傾いている場
合におけるその傾き方向は、上述の4つの状態間
の遷移過程を見ることにより知ることができる。 Whether or not the document is tilted, and if so, the direction of the tilt, can be determined by looking at the transition process between the four states described above.
すなわち、マークシート12が全く傾いていな
い状態で走査された場合、前記状態2および状態
4は発生しない。 That is, if the mark sheet 12 is scanned without being tilted at all, states 2 and 4 will not occur.
また、マークシート12が傾いた状態で走査さ
れた場合には、状態1→状態2→状態3→状態4
との状態が遷移して行く。さらに詳しく言えば、
マークシート12が右に傾いた状態で走査された
場合、(0、0)→(1、0)→(1、1)→
(0、1)→(0、0)と状態が遷移して行く。
また、マークシート12が左に傾いた状態で走査
された場合には、(0、0)→(0、1)→(1、
1)→(1、0)→(0、0)と状態が遷移して
行く。 Furthermore, when the mark sheet 12 is scanned in a tilted state, state 1 → state 2 → state 3 → state 4
The state changes. In more detail,
When the mark sheet 12 is scanned tilted to the right, (0, 0) → (1, 0) → (1, 1) →
The state transitions from (0, 1) to (0, 0).
Furthermore, when the mark sheet 12 is scanned while tilted to the left, (0, 0) → (0, 1) → (1,
The state transitions from 1) to (1, 0) to (0, 0).
また、状態2の次に状態3を経ることなく状態
4になつたり、状態4の次に状態1を経ることな
く状態3になつた場合は、マークシート12が非
常に大きく傾いた状態で走査されたことを意味す
る。本実施例では、このような場合には後述する
走査ラインの傾きを修正することなく異常処理が
実行される。つまり、マークシート12が修正不
可能な程、非常に大きく傾いた状態の場合は傾き
修正処理とは異なる異常処理を実行してただちに
何らかの処置を行なうわけである(例えば、マー
クシート12を再び読み取らせる等)。 Also, if state 2 is followed by state 4 without passing through state 3, or if state 4 is followed by state 3 without passing through state 1, the mark sheet 12 may be scanned in a very tilted state. It means something. In this embodiment, in such a case, abnormality processing is executed without correcting the inclination of the scanning line, which will be described later. In other words, if the mark sheet 12 is tilted so much that it cannot be corrected, an abnormality process different from the tilt correction process is executed and some kind of countermeasure is taken immediately (for example, the mark sheet 12 is read again, etc.). ).
さらに、マークシート12が異常に大きく傾い
ている場合を除いて、マーク記入欄8の各行の終
了時には、状態3または状態4から状態1に遷移
する。したがつて、本実施例では、そのような遷
移があつた場合には、マーク記入欄8の1行が終
了したものとみなし、後で詳しく説明する行デー
タ処理を実行する。 Further, unless the mark sheet 12 is abnormally tilted, the state changes from state 3 or state 4 to state 1 at the end of each line in the mark entry field 8. Therefore, in this embodiment, when such a transition occurs, it is assumed that one line in the mark entry field 8 has been completed, and line data processing, which will be explained in detail later, is executed.
上述の各状態間の状態遷移図および状態遷移表
を第12図、第13図に示す。なお、第13図に
おいて、「状態」欄は前走査線の状態を示す一方、
「入力」欄は次走査線の状態を示す。 A state transition diagram and a state transition table between the above-mentioned states are shown in FIGS. 12 and 13. Note that in FIG. 13, the "Status" column indicates the state of the previous scanning line;
The "input" column indicates the status of the next scanning line.
以上のことを踏まれて、本実施例では、各走査
線が前記4つの状態のいずれに該当するかを基準
マーク検出レジスタ45を通じて参照しながら、
マーク記入欄8上のマーク検出処理を行う。次
に、これを第7図および第14図を用いて説明す
る。 Based on the above, in this embodiment, while referring to which of the four states each scanning line corresponds to, through the reference mark detection register 45,
Mark detection processing on the mark entry field 8 is performed. Next, this will be explained using FIGS. 7 and 14.
まず、状態1の走査線においては、マーク記入
欄8に対応する画信号は全く含まれていないの
で、マーク検出処理を実行しない。 First, in the scanning line in state 1, since no image signal corresponding to the mark entry field 8 is included, mark detection processing is not performed.
状態2の走査線においては、検出されたいずれ
か一方の基準マークより基準位置を知り、その基
準位置から走査線を、あらかじめROM20に登
録されているマーク記入欄8の横方向の間隔A毎
に分割し、さらにその分割された区間内のマーク
記入欄8に対応する部分に含まれる黒画素数を黒
画素計数回路31に計数させる。つまり、本実施
例ではROM20に予め登録されたマーク記入欄
8の横方向の間に基づいた区間内のみ、画信号の
白黒判別を行うものである。 For the scanning line in state 2, the reference position is known from one of the detected reference marks, and the scanning line is moved from that reference position at every horizontal interval A of the mark entry field 8 registered in the ROM 20 in advance. Then, the black pixel counting circuit 31 counts the number of black pixels included in the portion corresponding to the mark entry field 8 within the divided section. That is, in this embodiment, black and white discrimination of the image signal is performed only within the interval based on the horizontal direction of the mark entry field 8 registered in advance in the ROM 20.
例えば、スタート基準マーク10の方が検出さ
れた場合、すなわち(1、0)の場合は、スター
ト基準マーク位置レジスタ46に退避された基準
位置情報を基準にして、その位置から走査線を4
mm毎に分割し、さらにこの分割された4mmの区間
内のマーク記入欄8に対応する部分にそれぞれ含
まれる黒画素数を黒画素計数回路31に計数させ
る。このように、マーク記入欄8に対応する部分
のみ黒画素数を計数しているため処理速度が格段
に向上される。 For example, if the start reference mark 10 is detected, that is, in the case of (1, 0), four scanning lines are scanned from that position based on the reference position information saved in the start reference mark position register 46.
The black pixel count circuit 31 counts the number of black pixels included in each portion corresponding to the mark entry field 8 within the divided 4 mm section. In this way, since the number of black pixels is counted only in the portion corresponding to the mark entry field 8, the processing speed is significantly improved.
ここで、黒画素計数31は、前黒画素の計数を
具体的には次のようにして行う(第9図にそのタ
イミングチヤートを示す)。 Here, the black pixel counting 31 specifically counts the previous black pixels as follows (a timing chart thereof is shown in FIG. 9).
すなわち、マイクロプロセツサ19は起動パル
スrをパラレル/シリアル変換レジスタ33およ
び1/8分周期32へ送出すると同時に、マーク記
入欄8に対応する区間の画信号をRAM35から
データバスを通じてレジスタ33へ並列出力させ
る。1/8分周期32は、前記起動信号rを入力す
ると、データシフトパルスuをレジスタ33へ供
給し、同レジスタ33に前記画信号を積算カウン
タ34へシリアル出力させると同時に、前記画信
号が8画素分積算カウンタ34へ入力される間、
積算区間信号sを出力し、その間、積算カウンタ
34を動作状態とする。これにより、積算カウン
タ34は各マーク記入欄8に対応する区間中の黒
画素数を計数する。 That is, the microprocessor 19 sends the activation pulse r to the parallel/serial conversion register 33 and the 1/8 minute period 32, and at the same time sends the image signal in the section corresponding to the mark entry field 8 from the RAM 35 to the register 33 in parallel via the data bus. Output. When the activation signal r is input, the 1/8 minute period 32 supplies a data shift pulse u to the register 33, causes the register 33 to serially output the image signal to the integration counter 34, and at the same time, the image signal is While being input to the pixel integration counter 34,
The integration interval signal s is output, and the integration counter 34 is kept in an operating state during that period. Thereby, the integration counter 34 counts the number of black pixels in the section corresponding to each mark entry field 8.
一方、RAMの作業領域40上の8個のライン
レジスタ52(1)〜(8)は、1行のマーク記
入欄8の数40個に対応して、それぞれ40ビツトの
容量を有する。 On the other hand, the eight line registers 52(1) to (8) on the working area 40 of the RAM each have a capacity of 40 bits, corresponding to the number of mark entry fields 8 in one line, which is 40.
そして今、初めて第2の状態となつた走査線に
ついて処理を行つているものとすると、マイクロ
プロセツサ19は、各マーク記入欄8に対応する
積算カウンタ34の計数結果をデータバス21を
通して入力し、所定閾値S1と比較し、前記計数
結果が閾値S1以上であれば、第1番目のライン
レジスタ52(1)のうちの対応するビツトに
“1”をセツトする一方、前記計数結果が前記閾
値S1は2に設定されている。 Now, assuming that processing is being performed on the scanning line that has entered the second state for the first time, the microprocessor 19 inputs the counting results of the integration counter 34 corresponding to each mark entry field 8 through the data bus 21. , and a predetermined threshold value S1, and if the counting result is equal to or greater than the threshold value S1, the corresponding bit of the first line register 52(1) is set to "1", while the counting result is equal to or greater than the threshold value. S1 is set to 2.
次に、同様にして、マイクロプロセツサ19
は、2番目の第2の状態となつた走査線について
も、各マーク記入欄8に対応する区間の黒画素数
の計数結果を閾値S1と比較し、その比較結果に
応じて、第2番目のラインレジスタ52(2)の
対応するビツトに“1”または“0”をセツト
し、以下第3番目以降に第2の状態となつた走査
線についても同様にして、対応するラインレジス
タ52(3)〜52(8)の対応するビツトに
“1”または“0”をセツトする。 Next, in the same way, the microprocessor 19
also compares the counting result of the number of black pixels in the section corresponding to each mark entry field 8 with the threshold value S1 for the second scanning line that has reached the second state, and according to the comparison result, The corresponding bit of the line register 52(2) is set to "1" or "0", and the corresponding line register 52(2) is set to "1" or "0" in the same way for the third and subsequent scanning lines that are in the second state. 3) Set the corresponding bits of 52(8) to "1" or "0".
ここで、本実施例において、ラインレジスタ5
2の数を8個としているのは、次の理由による。 Here, in this embodiment, the line register 5
The reason why the number of 2's is set to 8 is as follows.
連続して状態2となる走査線数は、マークシー
ト12の傾き角度に依存し、その最大走査線数K
はマークシート12の最大許容傾き角θによつて
決定される。本実施例では、状態2から必ず状態
3を経て状態4となることを前提としているの
で、1行のマーク記入欄8の両側に位置する基準
マーク10,11間の距離L1、基準マーク10,
11の縦長をL2とすると、最大許容傾き角θは、
θ=arctan(L2/L1)
となる。 The number of scanning lines that continuously enter state 2 depends on the inclination angle of the mark sheet 12, and the maximum number of scanning lines K
is determined by the maximum allowable tilt angle θ of the mark sheet 12. In this embodiment, it is assumed that state 2 always passes through state 3 to state 4, so the distance L1 between the reference marks 10 and 11 located on both sides of the mark entry field 8 of one line, the reference mark 10,
If the vertical length of No. 11 is L2, the maximum allowable tilt angle θ is as follows: θ=arctan(L2/L1).
L1=160mm、L2=4mmとすると、θ≒1.4゜とな
る。 If L1=160mm and L2=4mm, θ≒1.4°.
そして、このときの最大走査線数Kは、画素密
度をDとすると、
K=L2/D
となる。 The maximum number of scanning lines K at this time is K=L2/D, where D is the pixel density.
したがつて、D=0.5(2本/mm)とすると、K
=8となる。よつて、本実施例では、ラインレジ
スタ52の数を8個としているのである。 Therefore, if D=0.5 (2 pieces/mm), then K
=8. Therefore, in this embodiment, the number of line registers 52 is eight.
なお、本実施例では、連続して状態2となつた
走査線の数は、傾斜カウンタ51で順次計数され
る。そして、その総数は、既に述べたようにマー
クシート12の傾き角度を示している。 Note that in this embodiment, the number of scanning lines that are continuously in state 2 is sequentially counted by the slope counter 51. The total number indicates the inclination angle of the mark sheet 12, as described above.
また、前記のようにしてラインレジスタ52
(1)〜52(8)に格納された状態2に対する
1行のマーク記入欄8に関するデータは、状態2
から状態3へ遷移する際に次のように処理され
る。 Also, as described above, the line register 52
The data regarding the one-line mark entry column 8 for state 2 stored in (1) to 52 (8) is state 2.
When transitioning from state 3 to state 3, the following processing is performed.
まず、ラインレジスタ52(1)〜52(8)
に格納された全データは、前記傾斜カウンタ51
の内容に従つて、有効データと無効データとに分
離される。すなわち、傾斜カウンタ51の内容に
より、第14図における有効傾斜(斜線を施され
た領域)とそれ以外の無効領域とを分離し、前記
有効領域内のデータを有効データとする。 First, line registers 52(1) to 52(8)
All data stored in the slope counter 51
The data is separated into valid data and invalid data according to the content of the data. That is, based on the contents of the slope counter 51, the valid slope (shaded area) in FIG. 14 is separated from the other invalid areas, and the data within the valid area is set as valid data.
一方、ビツトカウンタ53は、1行分のマーク
記入欄8と同様(40個)用意されており、それぞ
れ1行分のマーク記入欄8の1つに対応されてい
る。そして、これらのビツトカウンタ53(1)
〜53(40)を用いて、1行の各マーク記入欄
8に対して、有効データとしてラインレジスタ5
2(1)〜52(8)に“1”がセツトされてい
る数が計数される。 On the other hand, the bit counters 53 are prepared in the same manner as the mark entry fields 8 for one line (40 pieces), and each bit counter 53 corresponds to one of the mark entry fields 8 for one line. And these bit counters 53(1)
~53 (40), the line register 5 is entered as valid data for each mark entry field 8 in one line.
The number in which "1" is set in 2(1) to 52(8) is counted.
次に、状態3の走査線については、以下に示す
ような処理が行われている。 Next, regarding the scanning line in state 3, the following processing is performed.
まず、状態2の走査線に対する場合と同様にし
て、黒画素計数回路31に、1行の各マーク記入
欄8に対応する区間における黒画素数を計数させ
る。なお、前記各マーク記入欄8に対応する区間
は、基準マーク位置レジスタ46および47に退
避された両基準10,11の基準位置情報に基づ
いて割り出される。 First, in the same way as for the scanning line in state 2, the black pixel counting circuit 31 is caused to count the number of black pixels in the section corresponding to each mark entry field 8 in one row. The section corresponding to each mark entry field 8 is determined based on the reference position information of both the references 10 and 11 saved in the reference mark position registers 46 and 47.
しかし、状態3においては、全ての画信号が前
記第14図に示されたような有効領域に含まれて
いるので、前記状態2の走査線に付いての処理と
異り、ビツトレジスタ52(1)〜52(8)は
動作させない。そして、各マーク記入欄8に対応
する区間に対する前記黒画素計数回路31の計数
結果を前記閾値S1と比較し、S1以上であれば、
直ちに、対応するビツトカウンタ53を+1する
一方、S1より小さければ、対応するビツトカウ
ンタ53をそのままの内容に保持する。 However, in state 3, all the image signals are included in the effective area as shown in FIG. 1) to 52(8) are not operated. Then, the counting result of the black pixel counting circuit 31 for the section corresponding to each mark entry field 8 is compared with the threshold value S1, and if it is equal to or greater than S1,
Immediately, the corresponding bit counter 53 is incremented by 1, while if it is smaller than S1, the corresponding bit counter 53 is kept unchanged.
次に、状態4の走査線については、前記状態2
の走査線についての処理と同様の処理がなされ
る。 Next, regarding the scanning line in state 4,
The same processing as that for the scanning line is performed.
一方、スタート基準マーク縦長カウンタ49
は、「状態3→状態1」または「状態4→状態1」
の遷移があるまで(すなわち、マーク記入欄8の
1行が終了するまで)、スタート基準マーク10
を検出した走査線の数を計数する。同様にして、
ストツプ基準マーク縦長カウンタ50は、「状態
3→状態1」または「状態4→状態1」の遷移が
あるまで、ストツプ基準マーク11を検出した走
査線の数を計数する。 On the other hand, the start reference mark vertically long counter 49
is "state 3 → state 1" or "state 4 → state 1"
start reference mark 10 until there is a transition (that is, until one line of mark entry field 8 ends).
Count the number of scan lines detected. Similarly,
The stop reference mark vertically elongated counter 50 counts the number of scanning lines in which the stop reference mark 11 is detected until there is a transition from "state 3 to state 1" or "state 4 to state 1".
そして、両縦長カウンタ49,50の計数結果
が、基準マーク10,11の縦長に基づいて定め
られる所定の範囲にない場合は、対応するマーク
記入欄8の行については、次に説明する行データ
処理を行わない。これにより、マークシート12
に、基準マーク10,11と同一または類似する
幅を有するが、縦長は異なるマークまたは汚れが
あつても、基準マーク10,11と誤認される虞
がなくなる。 If the counting results of both vertical counters 49 and 50 are not within the predetermined range determined based on the vertical length of the reference marks 10 and 11, the row data of the corresponding mark entry field 8 will be explained below. No processing is performed. As a result, mark sheet 12
Furthermore, even if there is a mark or stain that has the same or similar width as the fiducial marks 10, 11 but is different in length, there is no possibility that the fiducial marks 10, 11 will be mistaken for the fiducial marks 10, 11.
前記行データ処理は、前記「状態3→状態1」
または「状態4→状態1」の遷移があつた後、か
つ前記縦長カウンタ49,50の計数結果の確認
を行つた後、実行される。この行データ処理は、
状態2、状態3および状態4を通じて前記計数を
行つてきたビツトカウンタ53(1)〜53(4
0)の最終値を閾値S2と比較し、それぞれS2以
上であれば“1”を、S2より小さければ“0”
を、RAM35の出力バツフア領域39のうちの
対応するビツトにセツトすることを内容とする。
ここで、前記“1”はマーク記入欄8にマークが
記入されていると判定されたことを意味し、“0”
はマークが記入されていないと判定されたことを
意味する。なお、本実施例では、前記閾値S2は、
4に設定されている。 The row data processing includes the "state 3 → state 1"
Alternatively, it is executed after the transition from "state 4 to state 1" occurs and after the counting results of the vertical counters 49 and 50 are confirmed. This row data processing is
The bit counters 53(1) to 53(4), which have performed the counting through states 2, 3, and 4,
Compare the final value of 0) with the threshold S2, and if it is greater than or equal to S2, set it to "1", and if it is smaller than S2, set it to "0".
The content is to set the corresponding bit in the output buffer area 39 of the RAM 35.
Here, the "1" means that it has been determined that a mark has been entered in the mark entry field 8, and "0"
means that it has been determined that no mark has been entered. In addition, in this embodiment, the threshold value S2 is
It is set to 4.
以上の動作はマーク記入欄8の各行毎に繰り返
され、各行に対するマーク検出結果が順次出力バ
ツフア領域39へ格納されて行く。 The above operation is repeated for each row of the mark entry field 8, and the mark detection results for each row are sequentially stored in the output buffer area 39.
そして、走査開始信号pが“0”になると、以
上の動作は終了し、出力バツフア領域39に格納
された各マーク記入欄8に対するマーク検出結果
が出力回路36を通して外部のデータ処理装置
(図示せず)へ転送される。なお、出力回路36
は前記マーク検出結果の他に、前記データ処理装
置とのインターフエイスのための制御信号を出力
するが、この出力回路36は前記データ処理装置
の如何に応じて設計される部分であるので、詳細
な説明は省略する。 Then, when the scanning start signal p becomes "0", the above operation is completed, and the mark detection results for each mark entry field 8 stored in the output buffer area 39 are sent to an external data processing device (not shown) through the output circuit 36. will be forwarded to ). Note that the output circuit 36
In addition to the mark detection result, the output circuit 36 outputs a control signal for interfacing with the data processing device, but since this output circuit 36 is a part that is designed depending on the type of data processing device, details will be explained. Further explanation will be omitted.
このように本実施例では、左右一対の基準マー
ク10,11の検出の有無により表現される4つ
の状態に基づいて、マークシート12の傾き角度
およびその傾き方向を監視しながらマーク記入欄
8にマークが記入されているか否かを検出するの
で、マークシート12の傾き角度が走査開始から
走査終了までの間に変化した場合でも、前記傾き
角度を適正に補償し、極めて精度の高いマーク読
み取りを行うことができる。 As described above, in this embodiment, marks are placed in the mark entry field 8 while monitoring the inclination angle and direction of the mark sheet 12 based on the four states expressed by the presence or absence of detection of the left and right pair of reference marks 10 and 11. Since it detects whether or not the mark sheet 12 is written, even if the inclination angle of the mark sheet 12 changes from the start of scanning to the end of scanning, the inclination angle can be appropriately compensated and marks can be read with extremely high precision. Can be done.
なお、前記第5図のマーク検出回路は、読取装
置としてフアクシミリ装置を使用する場合には、
フアクシミリ送信装置に接続してもよいし、フア
クシミリ受信装置に接続してもよい。 Note that the mark detection circuit shown in FIG.
It may be connected to a facsimile transmitter or a facsimile receiver.
また、本発明における光学読取装置は、フアク
シミリ装置に限られないことは言うまでもない。 Further, it goes without saying that the optical reading device according to the present invention is not limited to a facsimile device.
さらに、前記実施例では、各走査線におけるス
タート基準マークおよびストツプ基準マークの検
出状態として、4つの状態のみが生じ得るものと
して処理を行つているが、さらに多数の状態、例
えば1走査線において、ある行のスタート基準マ
ークと次の行のストツプ基準マーク10とが検出
される状態等も生じ得るものとして処理を行え
ば、マークシートがさらに大きく傾いても、高精
度にマークを検出できる。 Further, in the embodiment described above, processing is performed on the assumption that only four states can occur as the detection states of the start reference mark and the stop reference mark in each scanning line, but there are many more states, for example, in one scanning line. If processing is carried out assuming that a state in which a start reference mark in one row and a stop reference mark 10 in the next row are detected may occur, marks can be detected with high precision even if the mark sheet is tilted even more.
発明の効果
以上のように、本発明はスタート基準マークと
ストツプ基準マークとの間に等間隔で設けられた
マーク記入欄を複数行有して成るマークシートを
読み取る読取手段と、予め前記スタート基準マー
クと前記ストツプ基準マークとの間の距離に基づ
く情報を格納する記憶手段と、順次入力するすべ
ての画信号の白黒判別を行なうことにより所定数
以上の連続黒信号を検出し前記いずれかの基準マ
ークを検出する全区間検索モード及び最初に検出
された前記いずれかの基準マークの位置によりス
タート基準マークかストツプ基準マークかを判別
した後前記記憶手段に格納された情報により次に
出現する前記基準マークの位置を予測しその予測
範囲内でのみ前記基準マークを検索する限定区間
検索モードとを有する基準マーク検出手段と、こ
の基準マーク検出手段の検出結果により走査ライ
ンの傾きを修正するとともに前記基準マーク検出
手段が双方の基準マークをともに検出しない状態
への遷移ごとにマーク記入欄の白黒判別を順次実
行する制御手段とを備えたことにより、マーク記
入欄の副走査方向(縦方向)の寸法を長くするこ
となしに、マークシートが走査時に傾いていて
も、また、そのマークシートの傾き角度が走査開
始時から走査終了時までの間に変化しても、極め
て精度の高いマーク読み取りを行うことができる
という優れた効果を得ることができる。Effects of the Invention As described above, the present invention provides a reading means for reading a mark sheet having a plurality of rows of mark entry fields provided at equal intervals between a start reference mark and a stop reference mark, and a storage means for storing information based on the distance between the stop reference mark and the stop reference mark; and a storage means for storing information based on the distance between the stop reference mark and the stop reference mark; After determining whether it is a start reference mark or a stop reference mark based on the position of the first detected reference mark, the reference mark that appears next based on the information stored in the storage means is determined. a reference mark detection means having a limited interval search mode for predicting the position of the reference mark and searching for the reference mark only within the predicted range; The control means sequentially performs black and white discrimination of the mark entry field each time the reference mark detection means transitions to a state in which neither of the reference marks is detected. To perform highly accurate mark reading without increasing the dimensions, even if the mark sheet is tilted during scanning, or even if the inclination angle of the mark sheet changes from the start of scanning to the end of scanning. The excellent effect of being able to do this can be obtained.
さらに、本発明によれば最初に検出された基準
マークの位置と、予め登録されている両基準マー
ク間の距離に基づく情報により、次に検出するべ
き基準マークが出現し得る走査線上の限定された
区間を予測して、その限定された区間においての
み、次に検出するべき基準マークの検索動作を行
うため、検索の対象となるデータ数を少なくし、
処理速度を向上させる効果も得られる。 Furthermore, according to the present invention, information based on the position of the fiducial mark detected first and the distance between the two fiducial marks registered in advance is used to determine the limit on the scanning line where the fiducial mark to be detected next may appear. The search operation for the next reference mark to be detected is performed only in that limited section, reducing the amount of data to be searched.
The effect of improving processing speed can also be obtained.
第1図は従来のマークシートの一例の正面図、
第2図は従来のマークシートの他の例の正面図、
第3図は従来のマークシートのさらに他の例の正
面図、第4図は本発明によるマーク読取装置に用
いるマークシートの正面図、第5図は前記実施例
におけるマーク検出回路のブロツク図、第6図は
前記マーク検出回路におけるRAM35のマツプ
図、第7図は第6図の作業領域40内の割り当て
図、第8図は前記マーク検出回路における画像入
力回路24のタイミングチヤート、第9図は前記
マーク検出回路における黒画素計数回路31のタ
イミングチヤート、第10図は前記マーク検出回
路における限定区間検索モード時の基準マークの
検出動作を示すタイミングチヤート、第11図は
前記実施例におけるスタート基準マークおよびス
トツプ基準マークの検出の有無による四つの状態
を示す説明図、第12図は前記四つの状態間の状
態遷移図、第13図は前記四つの状態間の状態遷
移表、第14図は前記状態2に該当する走査線に
おける有効領域を示す説明図、第15図ないし第
17図は前記実施例のフローチヤートである。
8……マーク記入欄、9……記事欄、10……
スタート基準マーク、11……ストツプ基準マー
ク、12……マークシート、19……マイクロプ
ロセツサ、24……画信号入力回路、31……黒
画素計数回路、36……出力回路。
Figure 1 is a front view of an example of a conventional mark sheet.
Figure 2 is a front view of another example of a conventional mark sheet.
3 is a front view of still another example of a conventional mark sheet, FIG. 4 is a front view of a mark sheet used in a mark reading device according to the present invention, FIG. 5 is a block diagram of a mark detection circuit in the above embodiment, and FIG. 7 is a map diagram of the RAM 35 in the mark detection circuit, FIG. 7 is an allocation diagram in the work area 40 of FIG. 6, FIG. 8 is a timing chart of the image input circuit 24 in the mark detection circuit, and FIG. A timing chart of the black pixel counting circuit 31 in the mark detection circuit, FIG. 10 is a timing chart showing the reference mark detection operation in the limited section search mode in the mark detection circuit, and FIG. 11 is a timing chart of the start reference mark and An explanatory diagram showing the four states depending on whether or not a stop reference mark is detected, FIG. 12 is a state transition diagram between the four states, FIG. 13 is a state transition table between the four states, and FIG. 14 is the state 15 to 17 are flowcharts of the embodiment described above. 8...Mark entry field, 9...Article field, 10...
Start reference mark, 11...Stop reference mark, 12...Mark sheet, 19...Microprocessor, 24...Picture signal input circuit, 31...Black pixel counting circuit, 36...Output circuit.
Claims (1)
の間に等間隔で設けられたマーク記入欄を複数行
有して成るマークシートを読み取る読取手段と、
予め前記スタート基準マークと前記ストツプ基準
マークとの間の距離に基づく情報を格納する記憶
手段と、順次入力するすべての画信号の白黒判別
を行なうことにより所定数以上の連続黒信号を検
出し前記いずれかの基準マークを検出する全区間
検索モード及び最初に検出された前記いずれかの
基準マークの位置によりスタート基準マークかス
トツプ基準マークかを判別した後前記記憶手段に
格納された情報により次に出現する前記基準マー
クの位置を予測しその予測範囲内でのみ前記基準
マークを検索する限定区間検索モードとを有する
基準マーク検出手段と、この基準マーク検出手段
の検出結果により走査ラインの傾きを修正すると
ともに前記基準マーク検出手段が双方の基準マー
クをともに検出しない状態への遷移ごとにマーク
記入欄の白黒判別を順次実行する制御手段とを具
備したマーク読取装置。1. A reading means for reading a mark sheet having a plurality of rows of mark entry fields provided at equal intervals between a start reference mark and a stop reference mark;
A storage means for storing information based on the distance between the start reference mark and the stop reference mark in advance, and a black and white discrimination of all the sequentially inputted image signals, detect a predetermined number or more of continuous black signals, and After determining whether it is a start reference mark or a stop reference mark based on the entire range search mode in which any one of the reference marks is detected and the position of the first detected reference mark, the next one is determined based on the information stored in the storage means. a reference mark detection means having a limited section search mode for predicting the position of the reference mark that will appear and searching for the reference mark only within the predicted range; and determining the inclination of the scanning line based on the detection result of the reference mark detection means. and control means for sequentially performing black and white discrimination of a mark entry field each time the reference mark detection means changes to a state in which neither of the reference marks is detected.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63278715A JPH01158581A (en) | 1988-11-04 | 1988-11-04 | Mark reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63278715A JPH01158581A (en) | 1988-11-04 | 1988-11-04 | Mark reader |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57051750A Division JPS58168182A (en) | 1982-03-29 | 1982-03-29 | Mark reading system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01158581A JPH01158581A (en) | 1989-06-21 |
| JPH0310992B2 true JPH0310992B2 (en) | 1991-02-14 |
Family
ID=17601183
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63278715A Granted JPH01158581A (en) | 1988-11-04 | 1988-11-04 | Mark reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01158581A (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5413941B2 (en) * | 1973-05-19 | 1979-06-04 | ||
| JPS6033332B2 (en) * | 1980-07-28 | 1985-08-02 | 日本電信電話株式会社 | Information input method using facsimile |
-
1988
- 1988-11-04 JP JP63278715A patent/JPH01158581A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01158581A (en) | 1989-06-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0103788B1 (en) | Method and apparatus for reading mark sheets | |
| US5038393A (en) | Method of effectively reading data written on data sheet, and data reading apparatus therefor | |
| EP1445100B1 (en) | Printed paper inspecting method | |
| GB1567576A (en) | Plural tracker character detection and boundary location system | |
| JPS628834B2 (en) | ||
| JPH0310993B2 (en) | ||
| JPS58100568A (en) | Skew detection method | |
| JPH0310992B2 (en) | ||
| JP2641672B2 (en) | Mark reader | |
| JPS6354274B2 (en) | ||
| JP2641671B2 (en) | Mark reader | |
| JP2641670B2 (en) | Mark reading method | |
| JPS6325388B2 (en) | ||
| JPH0581452A (en) | Mark reader | |
| JP3089396B2 (en) | Mark reading apparatus and method | |
| JP2777048B2 (en) | How to read barcodes | |
| JPS60194868A (en) | Detecting method of original edge coordinate | |
| JPS59191680A (en) | Optical character reader | |
| JP2636866B2 (en) | Information processing method | |
| JPS6057108B2 (en) | Mark sheet reading method by facsimile | |
| JP2608943B2 (en) | Optical mark reading method | |
| JP2985303B2 (en) | Recording device area recognition method | |
| JP4102715B2 (en) | Mark reading apparatus and method | |
| JPS63288561A (en) | Method for detecting mark | |
| JPS60254382A (en) | Detecting method of character line |