JP2542628B2 - Mark reader - Google Patents

Mark reader

Info

Publication number
JP2542628B2
JP2542628B2 JP62201286A JP20128687A JP2542628B2 JP 2542628 B2 JP2542628 B2 JP 2542628B2 JP 62201286 A JP62201286 A JP 62201286A JP 20128687 A JP20128687 A JP 20128687A JP 2542628 B2 JP2542628 B2 JP 2542628B2
Authority
JP
Japan
Prior art keywords
mark
black bits
line
black
threshold value
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
Application number
JP62201286A
Other languages
Japanese (ja)
Other versions
JPS6444537A (en
Inventor
昇 岡田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering Corp
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 Toshiba Corp, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP62201286A priority Critical patent/JP2542628B2/en
Publication of JPS6444537A publication Critical patent/JPS6444537A/en
Application granted granted Critical
Publication of JP2542628B2 publication Critical patent/JP2542628B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、光学的手段によりシート上に記入されたマ
ークを読取るためのマーク読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a mark reading device for reading a mark written on a sheet by optical means.

(従来の技術) 従来、マーク読取装置は、複数の記入枠を有するシー
ト上を光電変換手段を備えた走査部により走査し、光電
変換により得られるイメージデータから黒ビットを検出
する。この場合、黒ビット数を記入枠の各ライン毎に累
積加算し、この加算結果である全黒ビット数が予め決定
された閾値以上の場合にマーク有りと判定し、その読取
結果を出力する。即ち、従来のマーク読取装置は、記入
枠である検出エリア内の全黒ビット数に基づいてマーク
の有無を判定する読取処理を実行している。
(Prior Art) Conventionally, a mark reading device scans a sheet having a plurality of writing frames by a scanning unit having a photoelectric conversion unit, and detects a black bit from image data obtained by photoelectric conversion. In this case, the number of black bits is cumulatively added for each line of the entry frame, and if the total number of black bits, which is the result of this addition, is greater than or equal to a predetermined threshold value, it is determined that there is a mark, and the read result is output. That is, the conventional mark reading device executes a reading process for determining the presence / absence of a mark based on the total number of black bits in the detection area which is the entry frame.

しかしながら、前記のような方式では、記入枠内に汚
れ等のノイズが多数存在する場合には、そのノイズに対
応する黒ビット数も累積加算されることになり、読取エ
ラーが発生することがある。また、記入されたマークが
細線の場合には、累積加算された全黒ビット数が所定の
閾値未満になり、読取不可の状態となることがある。さ
らに、走査方向の縦線が正常なマークであるとした場合
に、記入枠内に横線が記入されても、全黒ビット数が閾
値以上であれば、正常なマークとして判定することがあ
る。
However, in the above-described method, when a large number of noises such as stains are present in the entry frame, the number of black bits corresponding to the noise is also cumulatively added, which may cause a read error. . Further, when the written mark is a thin line, the total number of all black bits cumulatively added may be less than a predetermined threshold value, which may result in an unreadable state. Further, when a vertical line in the scanning direction is a normal mark, even if a horizontal line is entered in the entry frame, it may be determined as a normal mark if the total number of black bits is equal to or more than the threshold value.

(発明が解決しようとする問題点) 従来のマーク読取装置では、検出エリア内の全黒ビッ
ト数に基づいてマークの有無を判定するため、ノイズが
多い場合の読取エラー、また細線からなるマークの読取
不可、又は逆に本来読取不可であるべき横線等の誤った
マークを読取エラーするような事態が発生する問題があ
る。
(Problems to be Solved by the Invention) In the conventional mark reading device, since the presence or absence of the mark is determined based on the total number of black bits in the detection area, a reading error when there is a lot of noise, and a mark made of a thin line There is a problem in that a situation may occur in which an erroneous mark such as a horizontal line that should be originally unreadable is erroneously read.

本発明の目的は、正常なマークを高感度で識別し、か
つ読取不要なノイズ又は誤ったマークの読取を確実に防
止し、結果的に読取精度を向上できるマーク読取装置を
提供することにある。
It is an object of the present invention to provide a mark reading device that can identify a normal mark with high sensitivity, reliably prevent reading of unnecessary noise or erroneous mark, and consequently improve reading accuracy. .

[発明の構成] (問題点を解決するための手段と作用) 本発明は、マークの記入枠である検出エリア内を走査
方向の複数のラインで分割し、各ライン毎の黒ビット数
を検出し、この黒ビット数が第1の閾値以上であれば累
積加算する判定手段を備えている。判定手段は、累積加
算された全黒ビット数が第2の閾値以上であればマーク
有りと判定し、読取結果を出力する。
[Configuration of Invention] (Means and Actions for Solving Problems) According to the present invention, a detection area, which is a mark writing frame, is divided into a plurality of lines in the scanning direction, and the number of black bits in each line is detected. However, if the number of black bits is greater than or equal to the first threshold value, a determination unit for cumulatively adding is provided. The determination means determines that there is a mark if the cumulatively added total number of all black bits is greater than or equal to the second threshold value, and outputs the reading result.

このような方式により、検出エリア内の各ラインに存
在するノイズ又は横線等の誤ったマークの一部に対応す
る黒ビット数は第1の閾値により累積加算されることを
防止することができる。また、細線等の正常なマークに
対応する黒ビット数は累積加算されることにより、読取
処理の感度を高めることができる。
With such a method, it is possible to prevent the number of black bits corresponding to a part of an erroneous mark such as noise or horizontal line existing in each line in the detection area from being cumulatively added by the first threshold value. Further, the number of black bits corresponding to a normal mark such as a thin line is cumulatively added, so that the sensitivity of the reading process can be increased.

(実施例) 以下図面を参照して本発明の実施例を説明する。第1
図は同実施例のマーク読取装置の基本的構成を示すブロ
ック図である。第1図において、走査部10は光電変換回
路を備えており、読取対象であるマークシート(以下単
にシートと称す)上を走査し、光電変換されて得られる
イメージデータを出力する。シート20は、第3図に示す
ように、複数の記入枠21及びタイミングマーク(読取の
基準となるマーク)22が設けられており、各記入枠21の
中にマークが記入されるように成っている。イメージバ
ッファ11は、走査部10から出力されるイメージデータを
例えば1シート分格納するバッファメモリである。判定
部12は、マイクロプロセッサを備えており、イメージバ
ッファ11に格納されたイメージデータに基づいてシート
20上のマークの有無を判定し、読取結果を出力する回路
である。
Embodiment An embodiment of the present invention will be described below with reference to the drawings. First
The drawing is a block diagram showing the basic configuration of the mark reading apparatus of the embodiment. In FIG. 1, the scanning unit 10 includes a photoelectric conversion circuit, scans on a mark sheet (hereinafter simply referred to as a sheet) to be read, and outputs image data obtained by photoelectric conversion. As shown in FIG. 3, the sheet 20 is provided with a plurality of entry frames 21 and timing marks (reading reference marks) 22, and the marks are entered in each entry frame 21. ing. The image buffer 11 is a buffer memory that stores the image data output from the scanning unit 10 for one sheet, for example. The determination unit 12 includes a microprocessor, and the sheet is determined based on the image data stored in the image buffer 11.
This is a circuit that determines the presence or absence of the mark on 20 and outputs the reading result.

次に、同実施例の動作を説明する。先ず、第3図に示
すようなシート20の記入枠21内に必要なマークが記入さ
れる。走査部10は、シート20上を走査し、記入されたマ
ークを複数の黒ビットからなるイメージデータに変換
し、イメージバッファ11へ出力する。走査部10は例えば
1シート分のイメージデータを格納する。
Next, the operation of the embodiment will be described. First, a necessary mark is entered in the entry frame 21 of the sheet 20 as shown in FIG. The scanning unit 10 scans the sheet 20, converts the written marks into image data composed of a plurality of black bits, and outputs the image data to the image buffer 11. The scanning unit 10 stores image data for one sheet, for example.

判定部12は、第2図のフローチャートに示すような判
定処理を行なう。ここで、イメージバッファ11には、第
4図に示すように、シート20の走査方向(第3図の矢
印)に対して縦長に記入されたマーク30に対応するイメ
ージデータが格納される。判定部12は、マーク30が記入
された記入枠21よりも広い範囲の検出エリア31を設定
し、この検出エリア31を走査し黒ビットを検出する。判
定部12は、検出エリア31を、第5図に示すように、複数
のライン(n本)に分割し、各ライン毎に黒ビットの検
出を行なう。
The determination unit 12 performs determination processing as shown in the flowchart of FIG. Here, as shown in FIG. 4, the image buffer 11 stores image data corresponding to the marks 30 that are vertically written in the scanning direction (arrows in FIG. 3) of the sheet 20. The determination unit 12 sets a detection area 31 in a wider range than the entry frame 21 in which the mark 30 is entered, scans the detection area 31, and detects a black bit. The determination unit 12 divides the detection area 31 into a plurality of lines (n lines) as shown in FIG. 5, and detects a black bit for each line.

具体的には、判定部12は、先ずステップS1,S2に示す
ように、ラインを示す制御変数i及び黒ビット数の累積
変数Sに初期値「0」をセットする。判定部12は、検出
エリア31の「i=0」のラインから走査し、そのライン
に存在する黒ビット数N(i)を求める。さらに、判定
部12は、求めた黒ビット数N(i)と第1の閾値TH1と
を比較し、黒ビット数N(i)が閾値TH1以上であれば
ステップS5の処理へ移行する(ステップS4)。ここで、
第1の閾値TH1は、予め設定されており、例えば1mm当り
8ビットに相当する「8」の値である。
Specifically, the determination unit 12 first sets initial values “0” to the control variable i indicating the line and the cumulative variable S of the number of black bits, as shown in steps S1 and S2. The determination unit 12 scans from the line of "i = 0" in the detection area 31 and obtains the number of black bits N (i) existing in that line. Further, the determination unit 12 compares the calculated number of black bits N (i) with the first threshold value TH1, and if the number of black bits N (i) is greater than or equal to the threshold value TH1, the process proceeds to step S5 (step S5). S4). here,
The first threshold TH1 is set in advance and is a value of “8” corresponding to 8 bits per 1 mm, for example.

ステップS5では、判定部12は検出した黒ビット数の累
積加算処理を行なう。即ち、累積変数Sは以前の値Sに
閾値TH1以上の値である黒ビット数N(i)を加算した
値とする。ステップS4において、黒ビット数N(i)が
閾値TH1未満の場合には、判定部12は次のラインiに対
する黒ビットの検出処理を行なう(ステップS6)。この
ような各ラインiの検出処理を終了すると(ステップS
3)、ステップS7の処理へ移行する。
In step S5, the determination unit 12 performs cumulative addition processing on the detected number of black bits. That is, the cumulative variable S has a value obtained by adding the black bit number N (i) which is a value equal to or more than the threshold value TH1 to the previous value S. When the number of black bits N (i) is less than the threshold value TH1 in step S4, the determination unit 12 performs a black bit detection process for the next line i (step S6). When the detection process for each line i is completed (step S
3), the process proceeds to step S7.

ステップS7では、判定部12はステップS5で算出した累
積変数Sと第2の閾値TH2とを比較する。第2の閾値TH2
は、全黒ビット数によりマークの有無を判定するための
値であり、例えば「8」の値とする。判定部12は、累積
変数Sが第2の閾値TH2以上であればマーク有りと判定
し(ステップS8)、未満であればマーク無しと判定する
(ステップS9)。具体的には、例えば第5図に示すよう
に、検出エリア31内の所定のラインに存在する黒ビット
数はそれぞれ「9」と「8」であるため、それぞれの値
はステップS5の処理において累積加算されることにな
る。したがって、累積変数Sの値が「17」となるため、
判定部12はマーク有りと判定し、その読取結果を出力す
る。
In step S7, the determination unit 12 compares the cumulative variable S calculated in step S5 with the second threshold TH2. Second threshold TH2
Is a value for determining the presence / absence of a mark based on the total number of black bits, and is set to, for example, “8”. The determination unit 12 determines that there is a mark if the cumulative variable S is equal to or larger than the second threshold TH2 (step S8), and determines that there is no mark if the cumulative variable S is less than the second threshold TH2 (step S9). Specifically, for example, as shown in FIG. 5, since the number of black bits existing in a predetermined line in the detection area 31 is “9” and “8”, respectively, the respective values are set in the process of step S5. It will be cumulatively added. Therefore, since the value of the cumulative variable S is "17",
The determination unit 12 determines that there is a mark and outputs the reading result.

このようにして、検出エリア31内を走査方向の複数の
ラインに分割し、各ライン毎の黒ビット数を検出して第
1の閾値TH1と比較する。これにより、各ラインに存在
する走査方向の閾値TH1以上の黒ビット数からなる縦線
を検出することができる。さらに、各ライン毎の縦線に
対応する黒ビット数を累積加算し、この累積値が第2の
閾値と比較することにより、予め決定された全黒ビット
数を有するマークを識別することができる。
In this way, the inside of the detection area 31 is divided into a plurality of lines in the scanning direction, and the number of black bits for each line is detected and compared with the first threshold value TH1. As a result, it is possible to detect a vertical line that is present in each line and has a black bit number equal to or greater than the threshold TH1 in the scanning direction. Further, by cumulatively adding the number of black bits corresponding to the vertical line of each line and comparing this cumulative value with the second threshold value, it is possible to identify a mark having a predetermined total number of black bits. .

したがって、例えば第6図(a)に示すように、所定
の長さの細線のマーク40の読取処理が可能となる。この
場合には、前記実施例のように、第1及び第2の閾値の
値を同一とすればよい。また、同図(b)に示すよう
に、記入枠21内に多くのノイズ41が存在する場合、各ラ
イン毎のノイズ41に対応する黒ビット数は第1の閾値未
満となることが多いため、その黒ビット数は累積加算さ
れないことになる。このため、ノイズ41が多い場合に、
マーク有りの読取結果を出力するような読取エラーの発
生を防止することができる。さらに、同図(c)に示す
ように、マークとしては無効である横線42が記入された
場合、全黒ビット数の値が第2の閾値以上となっても、
各ライン毎の黒ビット数の値が第1の閾値未満となる。
このため、同図(b)の場合と同様に、各ライン毎の黒
ビット数は累積加算されないことになり、読取不可とな
る。
Therefore, for example, as shown in FIG. 6A, the reading process of the thin line mark 40 having a predetermined length can be performed. In this case, the values of the first and second threshold values may be the same as in the above embodiment. Further, as shown in FIG. 6B, when a large amount of noise 41 exists in the entry frame 21, the number of black bits corresponding to the noise 41 for each line is often less than the first threshold value. , That black bit number will not be cumulatively added. Therefore, when there is a lot of noise 41,
It is possible to prevent the occurrence of a reading error that outputs a reading result with a mark. Further, as shown in (c) of the figure, when a horizontal line 42, which is invalid as a mark, is entered, even if the value of the number of all black bits exceeds the second threshold value,
The value of the number of black bits for each line is less than the first threshold value.
Therefore, as in the case of FIG. 6B, the black bit number for each line is not cumulatively added, and the reading becomes impossible.

[発明の効果] 以上詳述したように本発明によれば、第1及び第2の
閾値を所定の値に設定することにより、細線等の場合で
も読取可能とすることができるため、正常なマークを高
感度で読取ることが可能となる。また、ノイズ又は本来
読取不可であるべき横線等の誤ったマークを読取エラー
するような事態の発生を大幅に防止することができる。
これにより、結果的にマーク読取精度を向上し、マーク
の読取有効な範囲を広くでき、マーク読取性能を向上す
ることができるものである。
[Effects of the Invention] As described in detail above, according to the present invention, by setting the first and second threshold values to predetermined values, it is possible to read even in the case of thin lines, etc. The mark can be read with high sensitivity. Further, it is possible to largely prevent the occurrence of a situation in which a reading error occurs due to noise or an erroneous mark such as a horizontal line which should not be read.
As a result, the mark reading accuracy can be improved, the effective reading range of the mark can be widened, and the mark reading performance can be improved.

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

第1図は本発明の実施例に係わるマーク読取装置の構成
を示すブロック図、第2図は同実施例の動作を説明する
ためのフローチャート、第3図は同実施例のシートの一
例を示す図、第4図及び第5図はそれぞれ同実施例のイ
メージバッファの格納内容を示す概念図、第6図(a)
乃至(c)はそれぞれ同実施例におけるマークの記入例
を示す図である。 10……走査部、11……イメージバッファ、12……判定
部、20……シート、21……記入枠、31……検出エリア。
FIG. 1 is a block diagram showing the configuration of a mark reading device according to an embodiment of the present invention, FIG. 2 is a flow chart for explaining the operation of the same embodiment, and FIG. 3 is an example of a sheet of the same embodiment. FIG. 4, FIG. 5 and FIG. 5 are conceptual diagrams showing the contents stored in the image buffer of the same embodiment, respectively, and FIG. 6 (a).
FIGS. 8A to 8C are diagrams showing mark entry examples in the same embodiment. 10 ... Scanning part, 11 ... Image buffer, 12 ... Judgment part, 20 ... Sheet, 21 ... Entry frame, 31 ... Detection area.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】マークの記入枠を有するシート上を走査し
て光電変換により得られるイメージデータを出力する走
査手段と、 この走査手段から出力されるイメージデータを格納する
イメージバッファ手段と、 このイメージバッファ手段に格納されたイメージデータ
に基づいて前記記入枠に応じた検出エリア内を走査方向
に応じた複数のラインに分割し各ライン毎に検出する黒
ビット数が予め決定される第1の閾値以上の場合にはそ
の黒ビット数を累積加算し、この累積加算された全黒ビ
ット数と予め決定された第2の閾値との比較結果に基づ
いてマークの有無の判定を行なう判定手段とを具備した
ことを特徴とするマーク読取装置。
1. A scanning means for scanning a sheet having a mark entry frame to output image data obtained by photoelectric conversion, an image buffer means for storing image data output from the scanning means, and this image. A first threshold value in which the number of black bits to be detected for each line is determined in advance by dividing the detection area corresponding to the entry frame into a plurality of lines according to the scanning direction based on the image data stored in the buffer means. In the above case, the number of black bits is cumulatively added, and a determination means for determining the presence / absence of a mark based on the comparison result of the cumulatively added total number of black bits and a predetermined second threshold value is provided. A mark reading device characterized by being provided.
JP62201286A 1987-08-12 1987-08-12 Mark reader Expired - Lifetime JP2542628B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62201286A JP2542628B2 (en) 1987-08-12 1987-08-12 Mark reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62201286A JP2542628B2 (en) 1987-08-12 1987-08-12 Mark reader

Publications (2)

Publication Number Publication Date
JPS6444537A JPS6444537A (en) 1989-02-16
JP2542628B2 true JP2542628B2 (en) 1996-10-09

Family

ID=16438455

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62201286A Expired - Lifetime JP2542628B2 (en) 1987-08-12 1987-08-12 Mark reader

Country Status (1)

Country Link
JP (1) JP2542628B2 (en)

Also Published As

Publication number Publication date
JPS6444537A (en) 1989-02-16

Similar Documents

Publication Publication Date Title
US4045773A (en) Pattern segmenting system for a pattern recognizing device
US4623935A (en) Picture extracting apparatus
JP2542628B2 (en) Mark reader
JPS645509B2 (en)
JPH0737018A (en) Mark sheet and its tilt detecting method and optical mark reader
JPH07230525A (en) Method for recognizing ruled line and method for processing table
JP2576370B2 (en) ID mark reading device
JPS639270B2 (en)
JP2766031B2 (en) Image processing apparatus and image processing method
JPH0793476A (en) Character string detector
JPS6029881A (en) Optical character reader
JP2975720B2 (en) Optical character reader
JP3000480B2 (en) Character area break detection method
JPS6252687A (en) Character detecting and segmenting system for character reader
JP3564987B2 (en) Optical character reader
JPS61251982A (en) Optical character reader
JPS6142310B2 (en)
JPS62125767A (en) Code error detecting system
JPH06210930A (en) Detection of printed line
JPS5994181A (en) Pattern recognizing device
JPS5920082A (en) Character recognizing system
JPS62180487A (en) Level correcting system
JPH06333067A (en) Reader for mark sheet
JPH0771170B2 (en) Character recognition method using facsimile
JPS60254382A (en) Detecting method of character line

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080725

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080725

Year of fee payment: 12