JPS628834B2 - - Google Patents

Info

Publication number
JPS628834B2
JPS628834B2 JP57051750A JP5175082A JPS628834B2 JP S628834 B2 JPS628834 B2 JP S628834B2 JP 57051750 A JP57051750 A JP 57051750A JP 5175082 A JP5175082 A JP 5175082A JP S628834 B2 JPS628834 B2 JP S628834B2
Authority
JP
Japan
Prior art keywords
mark
detected
scanning line
scanning
state
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
Application number
JP57051750A
Other languages
Japanese (ja)
Other versions
JPS58168182A (en
Inventor
Hiroshi Terada
Hiroshi Miki
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems 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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP57051750A priority Critical patent/JPS58168182A/en
Publication of JPS58168182A publication Critical patent/JPS58168182A/en
Publication of JPS628834B2 publication Critical patent/JPS628834B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/01Details
    • G06K7/015Aligning or centering of the sensing device with respect to the record carrier

Description

【発明の詳細な説明】 本発明は、あらかじめ定められた様式に従つて
作成されたマークシート上に記入されたマーク
を、フアクシミリ装置等の走査型の光学読取装置
により読み取るマーク読取方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a mark reading method in which marks written on a mark sheet created according to a predetermined format are 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にマー
クが記入されているか否かを判定する。
Normally, in this type of mark reading method, mark sheets 1 and 2 as shown in FIGS. 1 and 2 are sequentially read by a reading device, and based on the image signals obtained thereby 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 was 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.

しかし、フアクシミリ装置等の読取装置におい
ては、マークシートが正規の状態に対し傾いた状
態で読み取られることがりり、従来はこのような
場合には、前記判定に際し、参照する走査線数が
減少し、読取結果の信頼性が著しく低下してい
た。
However, in reading devices such as facsimile machines, the mark sheet is sometimes read in a tilted state compared to the normal state, and conventionally in such cases, the number of scanning lines to be referred to in the judgment is reduced, The reliability of the reading results had decreased significantly.

前記マークシートの傾きに伴う信頼性低下を補
う1つの方法として、マーク記入欄を副走査方向
に十分長くする方法が考えられるが、そのように
した場合には、マーク記入上の能率を著しく低下
させるばかりでなく、マークシートの情報密度を
低下させるので、現実的でない。
One possible method of compensating for the decrease in reliability due to 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. Not only that, but it also reduces the information density of the mark sheet, making it impractical.

また、別の方法として、第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枚分の画信号を一時的に記憶装置
に全て記憶させておき、各走査線読取時のマーク
シートの傾き角度に応じて、参照する走査線を最
適に切り替えるようにすれば、極めて精度の高い
マーク読み取りが可能になるであろう。しかし、
この方法によれば、大容量の記憶装置を必要と
し、読取装置が高価になる欠点が生じる。
Another method is to temporarily store all the image signals for one mark sheet obtained from the reading device in a storage device, and select the reference scanning line according to the inclination angle of the mark sheet when reading each scanning line. If the switching is performed optimally, it will be possible to read marks with extremely high accuracy. but,
This method has the disadvantage that a large capacity storage device is required and the reading device is expensive.

本発明は、前記従来の欠点を解消するべくなさ
れたもので、マーク記入欄の副走査方向(縦方
向)の寸法を長くすることなしに、マークシート
が走査時に傾いていても、また、そのマークシー
トの傾き角度が走査開始時から走査終了時までの
間に変化しても、極めて精度の高いマーク読み取
りを行うことができるマーク読取装置を提供する
ことを目的とする。
The present invention has been made to solve the above-mentioned conventional drawbacks, and it is possible to eliminate the problem of the mark sheet even if the mark sheet is tilted during scanning, without increasing the dimension of the mark entry field in the sub-scanning direction (vertical direction). An object of the present invention is to provide a mark reading device that can read marks with extremely high accuracy even if the inclination angle of the mark changes from the start of scanning to the end of scanning.

本発明によるマーク読取方式は、各走査線にお
いてスタート基準マークおよびストツプ基準マー
クがそれぞれ検出されたか否かを調べ、各走査線
における前記両基準マークの検出状態の遷移過程
から、前記マークシートの走査時の傾き方向を検
出するとともに、前記両基準マークのうちのいず
れか一方のみが検出された走査線が連続して現れ
た本数を調べることにより、それらの走査線に対
応する走査時点の前記マークシートの傾き角度を
検出し、前記各マーク記入欄にマークが記入され
ているか否かを判定するにあたつて、前記両基準
マークがいずれも検出されなかつた走査線につい
ては、その走査線の全区間を、前記判定のための
資料として用いず、前記両基準マークのうちのい
ずれか一方のみが検出された走査線については、
前記各マーク記入欄に対応する区間のうちの、前
記のようにして検出されたその走査線に対応する
前記マークシートの傾き方向および傾き角度に基
づいて定められる有効区間のみを、前記判定のた
めの資料として用い、前記マーク記入欄の同一の
行の両側にある前記両基準マークが共に検出され
た走査線については、前記各マーク記入欄に対応
する全ての区間を、前記判定のための資料として
用いるものである。
The mark reading method according to the present invention checks whether a start reference mark and a stop reference mark are detected in each scanning line, and determines from the transition process of the detection states of the two reference marks in each scanning line when the mark sheet is scanned. By detecting the inclination direction of the mark sheet and checking the number of consecutive scanning lines in which only one of the reference marks is detected, the mark sheet at the scanning time point corresponding to those scanning lines can be determined. When detecting the inclination angle and determining whether or not a mark is written in each mark entry field, for a scanning line in which neither of the reference marks is detected, the entire section of that scanning line is detected. is not used as the material for the determination, and for scanning lines where only one of the two reference marks is detected,
Of the sections corresponding to each mark entry field, only the valid sections determined based on the inclination direction and inclination angle of the mark sheet corresponding to the scanning line detected as described above are used for the determination. For scanning lines that are used as data and in which both of the reference marks on both sides of the same line in the mark entry field are detected, all sections corresponding to each of the mark entry fields are used as data for the determination. It is used.

なお、従来のこの種のマーク読取方式において
は、1枚のマークシート1,2の全領域におい
て、前記基準マーク3,4の検索を、各走査線の
画信号の全区間について実施していた。したがつ
て、基準マーク3,4,5は、同一走査線上では
ユニークなパターンでなければならず、基準マー
ク3,4,5と区別することができないパターン
を有する他の画情報が基準マーク3,4,5と同
一走査線上に存在することは許されなかつた。
In the conventional mark reading system of this type, the search for the reference marks 3 and 4 was carried out over the entire area of the image signal of each scanning line in the entire area of one mark sheet 1 and 2. Therefore, the fiducial marks 3, 4, and 5 must have unique patterns on the same scanning line, and other image information having a pattern that cannot be distinguished from the fiducial marks 3, 4, and 5 is the fiducial mark 3. , 4, and 5 are not allowed to exist on the same scanning line.

このため、例えば、第4図のように、マーク記
入欄8と、任意の図形および文字を記入すること
ができる記事欄9とが存在しており、前記記事欄
9中に、スタート基準マーク10およびストツプ
基準マーク11と区別できない図形等が記入され
る可能性があるマークシート12は、使用できな
いという欠点があつた。
For this reason, for example, as shown in FIG. 4, there is a mark entry field 8 and an article field 9 in which arbitrary figures and characters can be entered. Another disadvantage is that the mark sheet 12, on which figures or the like that cannot be distinguished from the stop reference mark 11 may be written, cannot be used.

しかるに、第4図のマークシート12のような
マークシートは、コード情報と画情報とを同時に
伝えることができる新しい形態の情報媒体とし
て、極めて有用である。
However, a mark sheet such as the mark sheet 12 shown in FIG. 4 is extremely useful as a new type of information medium that can simultaneously convey code information and image information.

以下、本発明を図面に示す実施例に基づいて説
明するが、この実施例は、上述のような、図形、
文字等を記入する欄とマーク記入欄とが混在して
いるマークシートをも使用することができるよう
にしたものである。
Hereinafter, the present invention will be explained based on an embodiment shown in the drawings.
It is possible to use a mark sheet in which a column for writing characters and a column for marking a mark are mixed together.

本実施例においては、前記第4図に示すマーク
シート12を用いる。このマークシート12につ
いてさらに詳しく説明すると、前記スタート基準
マーク10は、マークシート12の左端部付近に
おいて縦方向に並べて設けられている。他方、前
記ストツプ基準マーク11は、マークシート12
の右端部付近において縦方向に並べて設けられて
いる。そして、両基準マーク10,11はマーク
シート12において左右対称となる位置を占めて
いる。
In this embodiment, the 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 located on the mark sheet 12.
are arranged vertically near the right end. 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 mark 10 and stop reference mark 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). The horizontal interval A between the mark entry fields 8 is 4 mm. Note that each row of the mark entry field 8 is 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)35
に画信号を入力するための画像入力回路であり、
この画像入力回路24は、8ビツトのシリアル/
パラレル変換レジスタ25、データラツチ26、
1/8分周器27、アドレスカウンタ28、DMA制
御回路29およびステイタスレジスタ30からな
る。
24 is RAM (Random Access Memory) 35
This is an image input circuit for inputting image signals to the
This image input circuit 24 is an 8-bit serial/
parallel conversion register 25, data latch 26,
It consists of a 1/8 frequency divider 27, an address counter 28, a DMA control circuit 29, and a status register 30.

なお、前記クロツクパルス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.

読取装置に設けられている走査開始スイツチ
(図示せず)がオンされ、マークシート12が走
査開始位置に到達すると、走査開始信号pが
“1”になり、走査が開始される(この走査開始
信号pは、マークシート1を読取走査中は“1”
を保持し、それ以外の時は“0”となる)。マイ
クロプロセツサ19は、ステイタスレジスタ30
を通して、前記のように走査開始信号pが“1”
になつたことを検出すると、以下に述べる一連の
マーク検出のための動作を開始する。
When the scan start switch (not shown) provided in the reading device is turned on and the mark sheet 12 reaches the scan start position, the scan start signal p becomes "1" and scanning is started (this scan start signal p is “1” while reading and scanning mark sheet 1
is held and becomes “0” at other times). The microprocessor 19 has a status register 30.
As mentioned above, the scanning start signal p is “1” through
When it is detected that the mark has changed, a series of operations for detecting the mark, which will be described below, are started.

また、前記走査開始信号pが“1”になると、
区間信号aが“1”になり、それに同期して画信
号cが入力端子15に入力される(なお、クロツ
クパルスbは常時入力端子17に入力されてい
る)。
Moreover, when the scanning start signal p becomes "1",
The interval signal a becomes "1", and in synchronization therewith, the image signal c is input to the input terminal 15 (the clock pulse b is always input to the input terminal 17).

そして、前記のように区間信号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上に
セツトアツプされることにより実現される。
Furthermore, the DMA transfer is performed by transmitting the DMA request signal f and the DMA transfer between the DMA control circuit 29 and the processor 19.
After the response signal g is exchanged, the DMA control circuit 29 outputs the address valid signal h together with the memory write signal i, and this h enables the address bus 22 and at the same time holds the address on the data latch 26. This is achieved by setting up the image signal on 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ビツト以上、27ビツト
以下)黒信号が連続した場合、基準マーク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, the printing accuracy of the mark sheet 12 and the inclination of the mark sheet 12 at the time of reading are taken into consideration.
If the black signal is continuous with ±3 bits (i.e., 21 bits or more and 27 bits or less), the reference mark 10,
11 is detected.

なお、入力バツフア領域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の作
業領域36の基準マーク横幅カウンタ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 36 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の作業領域36のス
タート基準マーク位置レジスタ46およびストツ
パ基準マーク位置レジスタ47に退避される。な
お、基準マーク位置レジスタ46,47の内容
は、それぞれ新たな基準マーク10,11が検出
される毎に更新される。
In this embodiment, the detected reference mark 1
The trailing edge of 0, 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 stopper in the RAM work area 36. 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の作業領域36内の検索モードレジス
タ40がセツトされ、以後はそれまで全区間検索
モードから限定区間検索モードへ移行する。
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 40 in the RAM work area 36 is set, and from then on, the whole section search mode shifts 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の位置は、前記限定された区間
に含まれないように設定しておく。第11図は画
信号と前記限定された領域との関係を示すタイミ
ングチヤートである。
Note that the position of the article column 9 is set so as not to be included in the limited section. FIG. 11 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. More specifically, 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) →
The state transitions from (1, 1) to (1, 0) to (0, 0).

また、状態2の次に状態3を経ることなく状態
4になつたり、状態4の次に状態1を経ることな
く状態3になつた場合は、マークシート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. (In this embodiment, abnormality processing is executed in such a case).

さらに、マークシート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. In FIG. 13, the "Status" column shows the state of the previous scanning line, while the "Input" column shows the state 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に計数させる。
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.

例えば、スタート基準マーク10の方が検出さ
れた場合、すなわち(1、0)の場合は、スター
ト基準マーク位置レジスタ46に退避された基準
位置情報を基準にして、その位置から走査線を4
mm毎に分割し、さらにこの分割された4mmの区間
内のマーク記入欄8に対応する部分にそれぞれ含
まれる黒画素数を黒画素計数回路31に計数させ
る。
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.

ここで、黒画素計数回路31は、前記黒画素の
計数を具体的には次のようにして行う(第9図に
そのタイミングチヤートを示す)。
Here, the black pixel counting circuit 31 specifically counts the 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 frequency divider 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 via the data bus. Output in parallel. When the 1/8 frequency divider 32 receives the activation signal r, it 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 simultaneously outputs the image signal. While being input to the 8-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 work 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より小さい場合には、前記対応するビツト
に“0”をセツトする。なお、本実施例では、閾
値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. If it is smaller than S1, the corresponding bit is set to "0". Note that in this embodiment, 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 scanning line that is in the second state for the second time, 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、基準マーク1
0,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, since it is assumed that state 2 always passes through state 3 to state 4, the distance L1 between the reference marks 10 and 11 located on both sides of the mark entry field 8 of one line, and the reference mark 1
If the vertical length of 0,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° becomes.

そして、このときの最大走査線数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),
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 area (shaded area) in FIG. 14 is separated from the other invalid areas, and the data in the valid area is made 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 same number of bit counters 53 (40) as there are mark entry fields 8 for one line are prepared, 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, for 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 reference marks 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. ~52(8) is 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 the number of scanning lines in which the start reference mark 10 is detected until there is a transition from "state 3 to state 1" or "state 4 to state 1" (that is, until one line of the mark entry field 8 is completed). Count. Similarly, the stop reference mark vertically long counter 50 is
The number of scanning lines in which the stop reference mark 11 is detected is counted 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,
“0” means that it is determined that no mark has been written. Note that in this embodiment, the threshold value
S2 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 passed through the output circuit 36 to an external data processing device (not shown). will be forwarded to ). Note that, in addition to the mark detection results, the output circuit 36 outputs a control signal for interfacing with the data processing device, but this output circuit 36 is a part designed depending on the type of data processing device. Therefore, detailed 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 accuracy. I can do it.

なお、前記第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.

以上のように本発明によれば、マーク記入欄の
副走査方向(縦方向)の寸法を長くすることなし
に、マークシートが走査時に傾いていても、ま
た、そのマークシートの傾き角度が走査開始時か
ら走査終了時までの間に変換しても、極めて精度
の高いマーク読み取りを行うことができるという
優れた効果を得られる。
As described above, according to the present invention, even if the mark sheet is tilted during scanning without increasing the dimension of the mark entry field in the sub-scanning direction (vertical direction), the tilt angle of the mark sheet can be changed at the start of scanning. Even if the conversion is performed between the time and the end of scanning, an excellent effect can be obtained in that marks can be read with extremely high accuracy.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来のマークシートの一例の正面図、
第2図は従来のマークシートの他の例の正面図、
第3図は従来のマークシートのさらに他の例の正
面図、第4図は本発明によるマーク読取方式の一
実施例におけるマークシートの正面図、第5図は
前記実施例におけるマーク検出回路のブロツク
図、第6図は前記マーク検出回路におけるRAM
35のマツプ図、第7図は第6図の作業領域40
内の割り当て図、第8図は前記マーク検出回路に
おける画像入力回路24のタイミングチヤート、
第9図は前記マーク検出回路における黒画素計数
回路31のタイミングチヤート、第10図は前記
マーク検出回路における限定区間検索モード時の
基準マークの検出動作を示すタイミングチヤー
ト、第11図は前記実施例におけるスタート基準
マークおよびストツプ基準マークの検出の有無に
よる4つの状態を示す説明図、第12図は前記4
つの状態間の状態遷移図、第13図は前記4つの
状態間の状態遷移表、第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.
FIG. 3 is a front view of still another example of a conventional mark sheet, FIG. 4 is a front view of a mark sheet in an embodiment of the mark reading system according to the present invention, and FIG. 5 is a block diagram of a mark detection circuit in the embodiment. , FIG. 6 shows the RAM in the mark detection circuit.
35 map, Figure 7 is the work area 40 of Figure 6.
FIG. 8 is a timing chart of the image input circuit 24 in the mark detection circuit;
FIG. 9 is 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 area search mode in the mark detection circuit, and FIG. 11 is a timing chart of the embodiment described above. FIG. 12 is an explanatory diagram showing four states depending on whether or not a start reference mark and a stop reference mark are detected.
13 is a state transition table between the four states, FIG. 14 is an explanatory diagram showing the effective area on the scanning line corresponding to state 2, and FIGS. 15 to 17 are It is a flowchart of the said Example. 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)

【特許請求の範囲】[Claims] 1 複数行のマーク記入欄と、これらのマーク記
入欄の各行の両側にそれぞれ設けられたスタート
基準マークおよびストツプ基準マークとを有する
マークシートを、光学読取装置に、順次走査によ
り読み取らせ、各走査線において前記スタート基
準マークおよび前記ストツプ基準マークがそれぞ
れ検出されたか否かを調べ、各走査線における前
記両基準マークの検出状態の遷移過程から、前記
マークシートの走査時の傾き方向を検出するとと
もに、前記両基準マークのうちのいずれか一方の
みが検出された走査線が連続して現れた本数を調
べることにより、それらの走査線に対応する走査
時点の前記マークシートの傾き角度を検出し、前
記各マーク記入欄にマークが記入されているか否
かを判定するにあたつて、前記両基準マークがい
ずれも検出されなかつた走査線については、その
走査線の全区間を、前記判定のための資料として
用いず、前記両基準マークのうちのいずれか一方
のみが検出された走査線については、前記各マー
ク記入欄に対応する区間のうちの、前記のように
して検出されたその走査線に対応する前記マーク
シートの傾き方向および傾き角度に基づいて定め
られる有効区間のみを、前記判定のための資料と
して用い、前記マーク記入欄の同一の行の両側に
ある前記両基準マークが共に検出された走査線に
ついては、前記各マーク記入欄に対応する全ての
区間を、前記判定のための資料として用いるマー
ク読取方式。
1. A mark sheet having multiple lines of mark entry fields and a start reference mark and a stop reference mark provided on both sides of each line of these mark entry fields is read by an optical reading device sequentially, and each scanning line is read by an optical reading device. , it is checked whether the start reference mark and the stop reference mark are detected, and the inclination direction of the mark sheet during scanning is detected from the transition process of the detection states of both the reference marks in each scanning line. By checking the number of consecutive scanning lines in which only one of the two reference marks is detected, the inclination angle of the mark sheet at the time of scanning corresponding to those scanning lines is detected, and each of the marks is detected. When determining whether or not a mark has been entered in the entry field, for a scanning line in which neither of the reference marks is detected, the entire section of that scanning line is used as data for the determination. For a scanning line in which only one of the two reference marks is detected without being used, the scanning line corresponding to the scanning line detected in the above manner in the section corresponding to each mark entry field. Only the valid section determined based on the inclination direction and inclination angle of the mark sheet is used as the material for the determination, and the scanning line where both the reference marks on both sides of the same line in the mark entry field are detected. is a mark reading method that uses all sections corresponding to each of the mark entry fields as data for the judgment.
JP57051750A 1982-03-29 1982-03-29 Mark reading system Granted JPS58168182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57051750A JPS58168182A (en) 1982-03-29 1982-03-29 Mark reading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57051750A JPS58168182A (en) 1982-03-29 1982-03-29 Mark reading system

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP63278715A Division JPH01158581A (en) 1988-11-04 1988-11-04 Mark reader
JP63278716A Division JPH01158582A (en) 1988-11-04 1988-11-04 Mark reader

Publications (2)

Publication Number Publication Date
JPS58168182A JPS58168182A (en) 1983-10-04
JPS628834B2 true JPS628834B2 (en) 1987-02-25

Family

ID=12895602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57051750A Granted JPS58168182A (en) 1982-03-29 1982-03-29 Mark reading system

Country Status (1)

Country Link
JP (1) JPS58168182A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK0437627T3 (en) * 1989-08-02 1996-11-18 Yoshida Hirokazu Digital data reader for a digital data record sheet
JPH0424884A (en) * 1990-05-21 1992-01-28 Sanyo Electric Co Ltd Mark sheet reader
JP2784502B2 (en) * 1996-11-18 1998-08-06 帝菱産業株式会社 Method and apparatus for recording and reading two-dimensional data on digital data recording paper.
KR100814434B1 (en) * 2006-12-01 2008-03-17 안살도 퓨얼 셀즈 에스.피.에이. Differential pressure control method for Molten Carbonates Fuel Cell power plants

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5413941A (en) * 1977-06-30 1979-02-01 Siemens Ag Battery composed of a number of electrochemical cells
JPS5728470A (en) * 1980-07-28 1982-02-16 Nippon Telegr & Teleph Corp <Ntt> Information input system using facsimile

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5413941A (en) * 1977-06-30 1979-02-01 Siemens Ag Battery composed of a number of electrochemical cells
JPS5728470A (en) * 1980-07-28 1982-02-16 Nippon Telegr & Teleph Corp <Ntt> Information input system using facsimile

Also Published As

Publication number Publication date
JPS58168182A (en) 1983-10-04

Similar Documents

Publication Publication Date Title
EP0103788B1 (en) Method and apparatus for reading mark sheets
JPS628834B2 (en)
JPS58100568A (en) Skew detecting method
JPS6354274B2 (en)
JP2641670B2 (en) Mark reading method
JP2641672B2 (en) Mark reader
JP2641671B2 (en) Mark reader
JPS6325388B2 (en)
JPH0310992B2 (en)
JPH0310993B2 (en)
JPS5824265A (en) Mark read system using facsimile transmitter
JPH0581452A (en) Mark reader
JPS6057108B2 (en) Mark sheet reading method by facsimile
JP2815019B2 (en) Character / mark detection device
JP3544779B2 (en) Method and apparatus for extracting image data of paper sheets
JPS59191680A (en) Optical character reader
JP2777048B2 (en) How to read barcodes
JP2985303B2 (en) Recording device area recognition method
JPH07271902A (en) Optical character reader
JPS5914080A (en) Skew detecting system
JPS5986961A (en) Ocr facsimile device
JPH0564905B2 (en)
JPS5830270A (en) Facsimile receiver
JPH0253384A (en) Picture forming device equipped with high frequency noise removing device
JPS5822476A (en) Number read system using facsimile transmitter