JPH0492570A - Automatic binarization setting system - Google Patents

Automatic binarization setting system

Info

Publication number
JPH0492570A
JPH0492570A JP2209968A JP20996890A JPH0492570A JP H0492570 A JPH0492570 A JP H0492570A JP 2209968 A JP2209968 A JP 2209968A JP 20996890 A JP20996890 A JP 20996890A JP H0492570 A JPH0492570 A JP H0492570A
Authority
JP
Japan
Prior art keywords
value
reading
converter
line buffer
carrier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2209968A
Other languages
Japanese (ja)
Inventor
Hironori Yamamoto
山本 博法
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.)
PFU Ltd
Original Assignee
PFU Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PFU Ltd filed Critical PFU Ltd
Priority to JP2209968A priority Critical patent/JPH0492570A/en
Publication of JPH0492570A publication Critical patent/JPH0492570A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To serially and speedily operate the reading of document whose various densities are extremely different by selecting a binarization mode based on multivalued data obtained by a prescan in a prescribed area on the document. CONSTITUTION:This device is equipped with an original placing plate 8 which places a document 1, carrier 7 mounted with a light source 2 and an image sensor 3, A/D converter 4, line buffer 5 in which the output of the A/D converter 4 is written, and control means 6 which selects the binarization mode after referring to the content of the line buffer 5 and also controls the entire device. The control device 6 selects the binarization mode based on the multivalued data obtained by the prescan in the prescribed area on the original. The documents whose various densities are different can be serially read without any command from a host computer by providing the means which operates automatically such operations.

Description

【発明の詳細な説明】 〔概要〕 イメージ・スキャナの自動2(fi化設定方弐に関し、 濃淡に著しく差異がある戸籍のような帳票の読取りを連
続して迅速に行い得るようにすることを目的とし、 イメージ・スキャナの制御手段が、 ステップ1 線及び文字が存在する帳票上の所定領域をプレスキャン
するための処理を行い、 ステップ2 ステップ1のプレスキャンで得られた多値データに基づ
いて2値モードを選択するための処理を行い、 ステップ3 予め定められている読取り開始位置になるようにキャリ
アを位置付け、読取り開始位置から選択された2値モー
ドで帳票の読取りを開始するための処理を行う よう構成されている。
[Detailed Description of the Invention] [Summary] Regarding automatic 2 (FI setting method 2) of an image scanner, an object of the present invention is to enable continuous and rapid reading of documents such as family registers that have significant differences in shading. Step 1: Pre-scan a pre-scanned area on the form where lines and characters are present; Step 3: Position the carrier so that it is at a predetermined reading start position, and start reading the form in the selected binary mode from the reading start position. configured to perform processing.

〔産業上の利用分野〕[Industrial application field]

本発明は、イメージ・スキャナの自動2値化設定方式に
関するものである。
The present invention relates to an automatic binarization setting method for an image scanner.

(従来の技術〕 戸籍には、印刷されている綿が細いものや裏カーボンを
使用しているもの等がある。細線が印刷されている戸籍
をイメージ・スキャナで読み取る場合には闇値を低くし
て読み取る必要があり、裏カーボンがある戸籍をイメー
ジ・スキャナで読み取る場合には閾値を上げて薄く読み
取る必要がある。従来の技術においては、ホスト計算機
がイメージ・スキャナに対して読取り速度や階調、2値
モード等を指定していた。
(Conventional technology) Some family registers have thin cotton printed on them, some use carbon backing, etc. When reading family registers with thin lines printed on them using an image scanner, the darkness value must be set low. When reading a family register with carbon on the back using an image scanner, it is necessary to raise the threshold and read it thinly.In the conventional technology, the host computer sets the reading speed and floor level to the image scanner. Key, binary mode, etc. were specified.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述のように、印刷されている線が細い戸籍を読み取る
場合には闇値を低くして読み取る必要があり、また、裏
カーボンがある戸籍を読み取る場合には閾値を上げて薄
く読み取る必要があるため、濃淡の異なる戸籍を連続し
て読み取る時には、闇値の再設定等のため迅速な読取り
が出来ないと言う問題があった。
As mentioned above, when reading a family register with thin lines printed on it, it is necessary to lower the darkness value and read it, and when reading a family register with back carbon, it is necessary to raise the threshold value and read it lightly. Therefore, when reading family registers of different shades in succession, there was a problem in that quick reading was not possible due to the reset of the darkness value, etc.

本発明は、この点に鑑みて創作されたものであって、濃
淡に著しく差異がある戸籍のような帳票(枠がある用紙
)の読取りを連続して迅速に行い得るイメージ・スキャ
ナの自動2値化設定方式を提供することを目的としてい
る。
The present invention was created in view of this point, and is an automatic image scanner that can rapidly and continuously read forms such as family registers (sheets with frames) that have significant differences in shading. The purpose is to provide a value setting method.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理説明図である。本発明のイメージ
・スキャナは、帳票(1)を載せる載置台8と、光源2
及びイメージ・センサ3を搭載したキャリア7と、イメ
ージ・センサ3から出力されたアナログ電気信号をディ
ジタル電気信号に変換するA/D変換器4と、A/D変
換器4の出力が書き込まれるライン・バッファ5と、ラ
イン・バッファ5の内容を参照して2値化モードの選択
を行うと共に装置全体の制御をも行う制御手段6とを具
備している。
FIG. 1 is a diagram explaining the principle of the present invention. The image scanner of the present invention includes a mounting table 8 on which a form (1) is placed, and a light source 2.
and a carrier 7 on which the image sensor 3 is mounted, an A/D converter 4 that converts the analog electrical signal output from the image sensor 3 into a digital electrical signal, and a line in which the output of the A/D converter 4 is written. - It is equipped with a buffer 5 and a control means 6 that refers to the contents of the line buffer 5 to select a binarization mode and also controls the entire apparatus.

制御手段6は、 ステップ1 線及び文字が存在する帳票上の所定領域をプレスキャン
するための処理を行い、 ステップ2 ステップ1のプレスキャンで得られた多値データに基づ
いて2値モードを選択するための処理を行い、 ステップ3 予め定められている読取り開始位置になるようにキャリ
ア7を位置付け、読取り開始位置から選択された2値モ
ードで帳票1の読取りを開始するための処理を行う よう構成されている。
The control means 6 performs the following steps: Step 1: Performs processing to pre-scan a predetermined area on the form where lines and characters are present; Step 2: Selects a binary mode based on the multi-value data obtained in the pre-scan of Step 1. Step 3 Position the carrier 7 to a predetermined reading start position, and perform processing to start reading the form 1 in the selected binary mode from the reading start position. It is configured.

〔作用〕[Effect]

線や文字が存在する帳票上の所定領域をプレスキャンし
、プレスキャンによって得られる多値データの平均値を
取る。この平均値が大きい場合には薄り読み取られるよ
うに2値モードを選択し、平均値が小さい場合には濃く
読み取られるように2値モードを選択する。このような
処理を自動的に行う手段を設けることにより、ホスト計
算機からの指令なしに、薄い帳票や濃い帳票を連続的に
読み取ることが可能となる。
Prescanning a predetermined area on a form where lines and characters exist, and taking the average value of the multivalued data obtained by the prescanning. When this average value is large, the binary mode is selected so that the image is read in a light color, and when the average value is small, the binary mode is selected so that the image is read in a dark color. By providing means for automatically performing such processing, it becomes possible to read thin and dark forms continuously without any command from the host computer.

〔実施例〕〔Example〕

第2図は本発明のイメージ・スキャナの構成例を説明す
る図である。同図において、lは原稿、2は光源、3は
CCDイメージ・センサ、4はA/D変換器、5はライ
ン・バッファ、6はマイクロプロセッサをそれぞれ示し
ている。
FIG. 2 is a diagram illustrating an example of the configuration of the image scanner of the present invention. In the figure, 1 is a document, 2 is a light source, 3 is a CCD image sensor, 4 is an A/D converter, 5 is a line buffer, and 6 is a microprocessor.

光源2やCCDイメージ・センサ3などは、キャリア上
(図示せず)に搭載されており、原稿1の上を矢印方向
に走行する。光源2から出た光は原稿1の面で反射し、
反射光はCCDイメージ・センサ3に入力される。CC
Dイメージ・センサ3は、入力された光を電気信号に変
換する。CCDイメージ・センサ3から出力される電気
信号はA/D変換器4に入力される。A/D変換器4は
、原稿1の上の白領域の値を0.黒領域の値を64とし
て、人力されたアナログ電気信号をディジタル信号に変
換する。A/D変換器4から出力されたディジタル電気
信号は、ライン・バッファ5に書き込まれる。マイクロ
プロセッサ6は、ライン・バッファ5の内容を参照して
、読取りに適した2値モードを選択する。マイクロプロ
セッサ6は、キャリアの制御をも行う。
The light source 2, CCD image sensor 3, and the like are mounted on a carrier (not shown) and run over the original 1 in the direction of the arrow. The light emitted from light source 2 is reflected by the surface of document 1,
The reflected light is input to the CCD image sensor 3. C.C.
The D image sensor 3 converts the input light into an electrical signal. An electrical signal output from the CCD image sensor 3 is input to an A/D converter 4. The A/D converter 4 sets the value of the white area on the original 1 to 0. The value of the black area is set to 64, and the manually input analog electrical signal is converted into a digital signal. The digital electrical signal output from A/D converter 4 is written to line buffer 5. The microprocessor 6 refers to the contents of the line buffer 5 and selects a binary mode suitable for reading. The microprocessor 6 also controls the carrier.

第3図は本発明における処理を説明するフローチャート
である。これら一連の処理はマイクロプロセッサによっ
て制御される。
FIG. 3 is a flowchart explaining the processing in the present invention. A series of these processes is controlled by a microprocessor.

第3図(a)はフェーズ1 (Phase 1 )の処
理を説明する図である。フェーズ1では、2値モードが
選択される。2植モードが選択されたならば、フェーズ
2に進む。なお、2値モードの選択については第3図(
d)で詳細に説明する。
FIG. 3(a) is a diagram illustrating the processing of Phase 1. In phase 1, binary mode is selected. If the two-plant mode is selected, proceed to Phase 2. For information on selecting the binary mode, see Figure 3 (
This will be explained in detail in d).

第3図(b)はフェーズ2の処理を説明する図である。FIG. 3(b) is a diagram illustrating the process of phase 2.

フェーズ2では、キャリアを読取り開始位置に戻し、設
定された2値モードで読取りを開始し、読取りが終了し
たならばキャリアをホーム・ポジョンに戻し、フェーズ
3に進む。
In phase 2, the carrier is returned to the reading start position, reading is started in the set binary mode, and when reading is completed, the carrier is returned to the home position, and the process proceeds to phase 3.

第3図(C)はフェーズ3の処理を説明する図である。FIG. 3(C) is a diagram illustrating the process of phase 3.

フェーズ3では、ホストからの読取り要求があるか否か
を調べ、あった場合にはフェーズ1に進む。
In phase 3, it is checked whether there is a read request from the host, and if there is, the process proceeds to phase 1.

第3図(d)は2値モードの選択処理を説明する図であ
る。ライン・バッファの有効/無効フラグが有効を示し
ている場合には、A/D変換器から出力される多値デー
タをライン・メモリ(ライン・バッファと同義)に格納
し、ライン・バッファの有効/無効フラグを無効にする
FIG. 3(d) is a diagram illustrating the binary mode selection process. If the line buffer valid/invalid flag indicates valid, the multi-value data output from the A/D converter is stored in the line memory (synonymous with line buffer), and the line buffer is valid. /Disable the invalid flag.

ライン・バッファの有効/無効フラグが無効を示してい
る場合には、ライン・メモリの格納値を退避レジスタの
値に加算し、規定読取りラインの読取りが終了したか否
かを調べ、Noの場合にはライン・バッファの有効/無
効フラグを有効としてリターン(RTN)L、Yesの
場合には線領域及び文字領域の多値データの平均値を算
出し、平均値をもとに2値モードを選択し、リターンす
る。
If the valid/invalid flag of the line buffer indicates invalid, the value stored in the line memory is added to the value in the save register, and it is checked whether reading of the specified reading line has been completed. If yes, set the valid/invalid flag of the line buffer to valid and return (RTN) L. If Yes, calculate the average value of multi-value data in the line area and character area, and change to binary mode based on the average value. Select and return.

第4図は平均値と2値モード選択とを説明する図である
。平均値はx”oo’からX’3F’までの値を取るこ
とが出来る。x’oo’からX′3F’の間は(i)な
いしくviii)の値領域に分割され、各値領域に対応
して2値モードが設定される。例えば、平均値が(vi
)の値領域に属する場合には薄く読取る2値モードが設
定され、平均値が(i)の値領域に属する場合には濃く
読取る2値モードが設定される。
FIG. 4 is a diagram explaining average value and binary mode selection. The average value can take values from x'oo' to X'3F'.The area between x'oo' and X'3F' is divided into value areas (i) or viii), The binary mode is set corresponding to.For example, if the average value is (vi
), a binary mode is set in which the average value is read lightly, and when the average value belongs to the value area (i), a binary mode, in which it is read darkly, is set.

第5図は戸籍の書式を示す図である。戸籍には、複数の
線が予め印刷されており、所定の領域には文字が記入さ
れる。裏カーボンが設けられている戸籍も存在する。プ
レスキャン領域は、第3図(d)の2値モード選択のと
きに読み取られる領域であり、この領域には線と文字と
が存在する。
FIG. 5 is a diagram showing the format of a family register. A plurality of lines are printed in advance on the family register, and characters are written in predetermined areas. There are also family registers that have a back carbon. The pre-scan area is an area that is read when selecting the binary mode shown in FIG. 3(d), and lines and characters exist in this area.

第6図は闇値カーブの例を示す図である。同図において
、数字7を連ねて得られる闇値カーブは濃い画像用であ
り、数字5を連ねて得られる闇値カーブはデフォルト用
であり、数字Oを連ねて得られる闇値カーブは薄い画像
用である。第4図において、平均値が(vij)の値領
域に属している場合には数字7を連ねて得られる闇値カ
ーブが選択され、平均値が(i)の値領域に属している
場合には数字Oを連ねて得られる闇値カーブが選択され
る。
FIG. 6 is a diagram showing an example of a dark value curve. In the same figure, the dark value curve obtained by consecutively numbering 7 is for dark images, the dark value curve obtained by consecutively numbering 5 is for default, and the dark value curve obtained by consecutively number O is for light images. It is for use. In Fig. 4, when the average value belongs to the value area (vij), the dark value curve obtained by arranging the numbers 7 is selected, and when the average value belongs to the value area (i), the dark value curve is selected. , the darkness value curve obtained by consecutively digits O is selected.

第6図は64階調で画像読取りをを行ったときの例であ
り、1のカーブを利用して説明すると、「周囲の最大値
」、つまり周囲の最大データ量がX“IC”のときはX
’ 14 ’を闇値とし、この値より小さいとき白、大
きいとき黒画像とする。
Figure 6 is an example of image reading at 64 gradations.Using the curve 1 to explain, when the "maximum value of the surroundings", that is, the maximum amount of data in the surroundings, is X "IC" is X
'14' is taken as the darkness value, and when it is smaller than this value, it is a white image, and when it is larger, it is a black image.

2値モード選択とは、7種類のカーブから1種類のカー
ブを選択することを意味している。白黒判定処理は、画
像処理LSIの中で行われる。
Binary mode selection means selecting one type of curve from seven types of curves. The black and white determination process is performed in the image processing LSI.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、ホス
トからの再設定なしで、細線原稿(薄い帳票)、裏カー
ボン有り原稿(濃い帳票)を連続して読み取ることが可
能となる。また、コスト面でも、ライン・バッファの増
設だけで済むため、安価である。
As is clear from the above description, according to the present invention, it is possible to continuously read thin line originals (thin forms) and originals with back carbon (dark forms) without resetting from the host. Also, in terms of cost, it is inexpensive because only an additional line buffer is required.

ンサ、4・・・A/D変換器、5・・・ライン・バッフ
ァ、6・・・マイクロプロセッサ。
4...A/D converter, 5...Line buffer, 6...Microprocessor.

特許出願人  株式会社ピーエフニーPatent applicant: Pfn Co., Ltd.

Claims (1)

【特許請求の範囲】 帳票(1)を載せる載置台(8)と、 光源(2)及びイメージ・センサ(3)を搭載したキャ
リア(7)と、 イメージ・センサ(3)から出力されたアナログ電気信
号をディジタル電気信号に変換するA/D変換器(4)
と、 A/D変換器(4)の出力が書き込まれるライン・バッ
ファ(5)と、 ライン・バッファ(5)の内容を参照して2値化モード
の選択を行うと共に、装置全体の制御をも行う制御手段
(6)と を具備するイメージ・スキャナにおける自動2値化設定
方式であって、 制御手段(6)は、 ステップ1 線及び文字が存在する帳票上の所定領域をプレスキャン
するための処理を行い、 ステップ2 ステップ1のプレスキャンで得られた多値データに基づ
いて2値モードを選択するための処理を行い、 ステップ3 予め定められている読取り開始位置になるようにキャリ
ア(7)を位置付け、読取り開始位置から選択された2
値モードで帳票(1)の読取りを開始するための処理を
行う よう構成されている ことを特徴とする自動2値化設定方式。
[Claims] A mounting table (8) on which a form (1) is placed, a carrier (7) on which a light source (2) and an image sensor (3) are mounted, and an analog output from the image sensor (3). A/D converter (4) that converts electrical signals into digital electrical signals
, a line buffer (5) into which the output of the A/D converter (4) is written, and a binarization mode is selected by referring to the contents of the line buffer (5), and the entire device is controlled. An automatic binarization setting method for an image scanner, comprising: a control means (6) for performing step 1: pre-scanning a predetermined area on a form where lines and characters are present; Step 2 Perform processing to select the binary mode based on the multi-value data obtained in the pre-scan in Step 1. Step 3 Move the carrier ( 7) and select 2 from the reading start position.
An automatic binarization setting method characterized by being configured to perform processing for starting reading of a form (1) in a value mode.
JP2209968A 1990-08-08 1990-08-08 Automatic binarization setting system Pending JPH0492570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2209968A JPH0492570A (en) 1990-08-08 1990-08-08 Automatic binarization setting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2209968A JPH0492570A (en) 1990-08-08 1990-08-08 Automatic binarization setting system

Publications (1)

Publication Number Publication Date
JPH0492570A true JPH0492570A (en) 1992-03-25

Family

ID=16581665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2209968A Pending JPH0492570A (en) 1990-08-08 1990-08-08 Automatic binarization setting system

Country Status (1)

Country Link
JP (1) JPH0492570A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426291B2 (en) 2002-07-29 2008-09-16 Seiko Epson Corporation Apparatus and method for binarizing images of negotiable instruments using a binarization method chosen based on an image of a partial area

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426291B2 (en) 2002-07-29 2008-09-16 Seiko Epson Corporation Apparatus and method for binarizing images of negotiable instruments using a binarization method chosen based on an image of a partial area

Similar Documents

Publication Publication Date Title
US4447830A (en) Image scanning apparatus and method
JPH05130399A (en) Original reader
US5371610A (en) Image data processing apparatus
JPH03217976A (en) Image processing system
JPS6113867A (en) Area designation system
JPH0492570A (en) Automatic binarization setting system
JP3267681B2 (en) Image processing device
US6055007A (en) Image processing device and image reading device
JP3234650B2 (en) Red / black data reader
JP2547748B2 (en) Image processing device
JP3420500B2 (en) Image reading device, image reading method, and storage medium
JPH0576224B2 (en)
JPH0752915B2 (en) Image processing device
JP2886870B2 (en) Document reading device
JP2000083134A (en) Color reading device and method therefor and color facsimile equipment and color copy device and storage medium
JP3014257B2 (en) Document reading device
JPH04344770A (en) Picture processor
JPH02301364A (en) Picture reader
JPH02163883A (en) Picture processing system
JPH0730741A (en) Optical image scanner
JPH057290A (en) Image processor
JP2001045289A (en) Image reader, its method and computer readable storage medium
JPS6276962A (en) Original recognition device
JPH02192266A (en) Picture reader
JPH04354262A (en) Image reader