JPH0981674A - Image reader - Google Patents

Image reader

Info

Publication number
JPH0981674A
JPH0981674A JP7260856A JP26085695A JPH0981674A JP H0981674 A JPH0981674 A JP H0981674A JP 7260856 A JP7260856 A JP 7260856A JP 26085695 A JP26085695 A JP 26085695A JP H0981674 A JPH0981674 A JP H0981674A
Authority
JP
Japan
Prior art keywords
medium
image data
image
reading
address
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
JP7260856A
Other languages
Japanese (ja)
Inventor
Yoshihiro Watanabe
佳宏 渡辺
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP7260856A priority Critical patent/JPH0981674A/en
Publication of JPH0981674A publication Critical patent/JPH0981674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To inhibit influence on an image recognition processing or the like even when the dispersion of the time taken until a medium reaches a read part is present by returning to the leading address of an image memory and executing the write of the image data when the read of the medium is not ended. SOLUTION: A medium edge detection part 20 for performing detection by comparing the total sum of the image data for one line with a prescribed threshold value and the image memory 6 capable of storing at least the image data of the entire medium 1 are provided, the write is executed to the image memory 6 including the image data of a background part 5 from the read start time of a read part 10 and the write start address of medium images detected by the medium edge part 20 is stored. Then, when the read of the medium 1 is not ended even though the image data are written to the final address of the image memory 6, a write control part 30 returns to the leading address of the image memory 6 and executes the write of the image data. Thus, more than required hardwares are not prepared.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、媒体の画像をイメ
ージデータとして読み取り、そこに記載された画像を認
識処理するために使用される画像読み取り装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus used for reading an image on a medium as image data and recognizing and processing the image described therein.

【0002】[0002]

【従来の技術】媒体上に記載された文字をイメージデー
タとして読み取り、これを認識処理するための装置に
は、媒体を吸入し搬送する搬送路と、その搬送路上で媒
体のイメージを読み取るイメージセンサ等を備える。装
置に媒体が投入されると、媒体は一定の速度で搬送路上
を搬送され、媒体の画像をイメージセンサが1ライン分
ずつ走査して読み取り、画像認識処理のための画像デー
タを得る。
2. Description of the Related Art An apparatus for reading characters written on a medium as image data and recognizing the image data includes a conveyance path for inhaling and conveying the medium and an image sensor for reading the image of the medium on the conveyance path. And so on. When the medium is loaded into the apparatus, the medium is conveyed on the conveying path at a constant speed, and the image of the medium is scanned and read by the image sensor line by line to obtain image data for image recognition processing.

【0003】この媒体は、搬送路上を常に所定のタイミ
ングで搬送されるとは限らない。例えば、媒体投入の際
に媒体が入口で押えられ、スタートが遅れたりすると、
媒体がイメージセンサの直下に到達するタイミングが遅
れる。イメージセンサは媒体が投入されたことを検知す
ると、直ちに画像データの読み込みを開始する。従っ
て、媒体の画像データを格納するための画像メモリには
始めに背景部の画像データが書き込まれ、これに続けて
媒体の画像データが書き込まれる。媒体のイメージセン
サに到達するまでの時間が長ければ比較的大量の背景部
の画像データが画像メモリに書き込まれる。そこで、画
像メモリは、媒体の画像データを完全に格納するため
に、ある程度大きな記憶容量を必要としていた。
This medium is not always carried on the carrying path at a predetermined timing. For example, if the medium is pressed at the entrance when the medium is loaded and the start is delayed,
The timing when the medium reaches directly below the image sensor is delayed. When the image sensor detects that the medium is loaded, it immediately starts reading the image data. Therefore, the image data of the background portion is first written in the image memory for storing the image data of the medium, and subsequently, the image data of the medium is written. If it takes a long time to reach the image sensor of the medium, a relatively large amount of image data of the background portion is written in the image memory. Therefore, the image memory requires a certain amount of storage capacity in order to completely store the image data of the medium.

【0004】[0004]

【発明が解決しようとする課題】ところで、上記のよう
な従来の画像読み取り装置には次のような解決すべき課
題があった。上記のように画像メモリの始めの部分に不
特定の量の背景部の画像データが格納されて、これに続
けて媒体の画像データを格納するという構成では、ある
程度画像メモリの容量を十分大きなものにするためにハ
ードウェア上のコストがかかるだけでなく、媒体の画像
データから文字のイメージを切り出すための切り出し処
理時間が毎回異なるという問題がある。このような処理
のタイミングのばらつきは、その後の各種のデータ処理
に影響を与える。
The conventional image reading apparatus as described above has the following problems to be solved. As described above, an unspecified amount of background image data is stored in the beginning of the image memory, and the medium image data is subsequently stored. Therefore, there is a problem that not only hardware cost is required, but also the cut-out processing time for cutting out a character image from image data of a medium is different every time. The variation in the timing of such processing affects various data processing thereafter.

【0005】[0005]

【課題を解決するための手段】本発明は以上の点を解決
するため次の構成を採用する。 〈構成〉媒体の画像を1ラインずつ走査して読み取り、
画像認識処理のための画像データを得る読み取り部と、
媒体本体の画像読み取り前に読み取った背景部の画像デ
ータと、媒体本体の画像データとの境界を、1ライン分
の画像データの総和と所定の閾値との比較により検出す
る媒体エッジ検出部と、少なくとも媒体全体の画像デー
タを格納できる画像メモリと、読み取り部の読み取り開
始時から背景部の画像データも含めて画像メモリに書き
込みを実行するとともに、媒体エッジ検出部の検出した
媒体画像の書き込み開始アドレスを記憶し、画像メモリ
の最終アドレスまで画像データを書き込んでもなお、媒
体の読み取りが終了しないときは、画像メモリの先頭ア
ドレスに戻って、その画像データの書き込みを実行する
書き込み制御部とを備える。
The present invention adopts the following constitution in order to solve the above points. <Structure> Scanning and reading the image of the medium line by line,
A reading unit for obtaining image data for image recognition processing,
A medium edge detection unit that detects the boundary between the image data of the background portion read before the image reading of the medium body and the image data of the medium body by comparing the sum of the image data for one line with a predetermined threshold value, At least the image memory that can store the image data of the entire medium and the writing start address of the medium image detected by the medium edge detection unit while writing the image memory including the image data of the background portion from the start of reading by the reading unit And the image data is written up to the final address of the image memory, and when the reading of the medium is not completed, the writing control unit returns to the head address of the image memory and executes the writing of the image data.

【0006】〈説明〉媒体を1ラインずつ走査するの
は、主走査方向の走査であり、このラインと直角な方向
が副走査方向である。媒体の画像とは、媒体表面に記載
された文字等のイメージデータである。このイメージデ
ータ中から文字等が切り出され認識処理される。媒体を
支持する台や搬送ベルト等の表面が背景部になり、媒体
の読み取り開始側のエッジより前方に存在し、読み取り
開始時には、必ずその背景部の一部が画像データとして
読み取られる。背景部が黒で媒体が白なら、1ライン分
の画像データの総和は、媒体のエッジ部分で急激にレベ
ルが変化する。閾値はそのような変化をとらえる値に設
定する。
<Explanation> Scanning the medium line by line is scanning in the main scanning direction, and the direction perpendicular to this line is the sub scanning direction. The image of the medium is image data such as characters written on the surface of the medium. Characters and the like are cut out from this image data and subjected to recognition processing. The surface of the table or the conveyor belt that supports the medium serves as the background portion, which is present in front of the reading start side edge of the medium, and at the beginning of reading, a portion of the background portion is always read as image data. If the background portion is black and the medium is white, the total sum of the image data for one line changes abruptly at the edge portion of the medium. The threshold is set to a value that captures such changes.

【0007】画像メモリは、先頭アドレスから書き込み
を開始し、最終アドレスまで書き込みが行われた後再び
先頭アドレスに戻ってデータの書き込みがされる。先頭
アドレスから媒体画像の書き込み開始アドレスまでの部
分には、その後に読み取られた媒体の後半の画像データ
を上書きしても支障がない。しかも、こうすれば、媒体
が搬送中にスリップしたりして、背景部の画像データが
多くなっても、画像メモリを無駄に使用することがな
い。媒体の画像認識処理は、媒体エッジ検出部の検出し
た媒体画像の書き込み開始アドレスを基準に文字の切り
出しが行われるから、画像認識処理等の処理時間がほぼ
一定になる。
In the image memory, writing is started from the head address, writing is performed up to the last address, and then the data is written again by returning to the head address. There is no problem even if the image data of the latter half of the medium read thereafter is overwritten in the portion from the start address to the writing start address of the medium image. Moreover, in this way, even if the medium slips during transportation and the image data of the background portion increases, the image memory is not wastefully used. In the image recognition processing of the medium, characters are cut out based on the write start address of the medium image detected by the medium edge detection unit, so that the processing time of the image recognition processing and the like becomes almost constant.

【0008】〈構成〉媒体の画像を1ラインずつ走査し
て読み取り、画像認識処理のための画像データを得る読
み取り部と、媒体本体の画像読み取り前に読み取った背
景部の画像データと、媒体本体の画像データとの境界
を、1ライン分の画像データの総和と所定の閾値との比
較により検出する媒体エッジ検出部と、少なくとも媒体
の画像データを格納する画像メモリと、読み取り部の読
み取り開始時から、媒体エッジ検出部が背景部の画像デ
ータと媒体本体の画像データとの境界を検出するまで待
機して、画像メモリ先頭アドレスから一定量だけ背景部
の画像データを書き込んだ後媒体の画像データの書き込
みを実行する書き込み制御部とを備える。
<Structure> A reading unit that scans and reads an image of a medium line by line to obtain image data for image recognition processing, image data of a background unit read before image reading of the medium body, and medium body Medium edge detection unit that detects the boundary with the image data of 1 by comparing the total of the image data for one line with a predetermined threshold value, an image memory that stores at least the image data of the medium, and a reading unit Wait until the medium edge detection unit detects the boundary between the image data of the background portion and the image data of the medium body, and after writing a certain amount of the image data of the background portion from the image memory start address, the image data of the medium is written. And a write control unit for executing the writing of.

【0009】〈説明〉画像メモリの先頭部分に一定量の
背景部の画像データを書き込むのは、媒体の画像データ
から精度よく画像のイメージの切り出し処理ができるよ
うにするためである。従って、読み取りを開始しても、
背景部の画像と媒体本体の画像との境界を検出するまで
は、画像メモリ先頭部分からの画像データの書き込みは
しない。なお、この境界検出前後に読み取り部で読み取
った画像データは、画像メモリの支障の無い領域にバッ
ファされて境界検出後に転送するとよい。媒体の画像デ
ータの書き込み開始アドレスは、精度の良い画像の切り
出しができるように適当な値に設定する。
<Explanation> A certain amount of image data of the background portion is written in the head portion of the image memory so that the image can be accurately cut out from the image data of the medium. Therefore, even if you start reading,
The image data is not written from the leading portion of the image memory until the boundary between the background image and the medium body image is detected. The image data read by the reading unit before and after the boundary detection may be buffered in a non-obstructive area of the image memory and transferred after the boundary detection. The write start address of the image data of the medium is set to an appropriate value so that the image can be cut out with high accuracy.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を具体
例を用いて説明する。 〈具体例1〉図1は、本発明の画像読み取り装置の具体
例1による装置の概略説明図である。この装置は、媒体
1の画像を読み取り部10により1ラインずつ走査して
読み取り、画像認識処理のための画像データを画像メモ
リ6に格納する構成になっている。媒体1は主走査方向
3に沿って1ラインずつ読取りが行われる。また、媒体
1が搬送路上を読み取り部10の方向に送られることに
よって、副走査方向4の方向に読取りが進められる。な
お、媒体1は、例えば白色の紙等から成り、搬送路は黒
色のベルト等から構成され、この搬送路の部分の画像を
背景部5の画像と呼んでいる。図に示すような状態で媒
体1が読み取り部10の方向に搬送され、読み取り部1
0が画像の読取りを開始すると、当初は背景部5の画像
データが読み込まれる。従って、図の左側に示すよう
に、画像メモリ6の先頭アドレスA1からしばらくは背
景部5の画像データが書き込まれる。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to specific examples. <Embodiment 1> FIG. 1 is a schematic explanatory view of an image reading apparatus according to Embodiment 1 of the present invention. This apparatus is configured to scan an image of the medium 1 line by line by a reading unit 10 and read the image, and store image data for image recognition processing in an image memory 6. The medium 1 is read line by line along the main scanning direction 3. Further, the medium 1 is sent in the direction of the reading unit 10 on the transport path, so that the reading is advanced in the sub-scanning direction 4. The medium 1 is made of, for example, white paper, the conveying path is made of a black belt, and the image of this conveying path is called the image of the background portion 5. In the state as shown in the figure, the medium 1 is conveyed toward the reading unit 10, and the reading unit 1
When 0 starts reading an image, the image data of the background portion 5 is initially read. Therefore, as shown on the left side of the drawing, the image data of the background portion 5 is written from the head address A1 of the image memory 6 for a while.

【0011】その後、図に示すアドレスA2から媒体の
画像データが書き込みを開始される。本発明において
は、この境界部分のアドレスA2を媒体エッジ検出部2
0が検出する構成となっている。また、媒体1が読み取
り部10に達するまでの時間が比較的長い場合、図に示
すように、背景部5の画像データが大量に画像メモリ6
に書き込まれる。従って、媒体1の画像データ全体を書
き込む前に、画像メモリ6の最終アドレスA3に達す
る。このとき、本発明の装置では、書き込み制御部30
が媒体1の後半の画像データの書き込みを、画像メモリ
6の先頭アドレスA1から続けて実行するように制御す
る。
After that, the writing of the image data of the medium is started from the address A2 shown in the figure. In the present invention, the address A2 at this boundary portion is used as the medium edge detection unit 2
0 is detected. If the medium 1 takes a relatively long time to reach the reading unit 10, as shown in the figure, a large amount of image data in the background unit 5 is stored in the image memory 6.
Is written to. Therefore, before writing the entire image data of the medium 1, the final address A3 of the image memory 6 is reached. At this time, in the device of the present invention, the write control unit 30
Controls the writing of the image data of the latter half of the medium 1 to be continuously executed from the head address A1 of the image memory 6.

【0012】即ち、媒体1の画像データの前半部は境界
部分のアドレスA2から最終アドレスA3まで書き込ま
れ、その後の後半部の画像データが図の右側に示すよう
に、先頭アドレスA1から画像メモリ6のアドレスA4
まで書き込まれる。なお、画像メモリ6の記憶容量は、
予め媒体1の画像データ全体を格納する容量よりわずか
に大きいものに設定しておく。従って、境界のアドレス
A2と媒体の画像データの書き込みが終了した部分のア
ドレスA4との間にはわずかに背景部5の画像データが
残ることになる。以上のような本発明を実施するため
に、本発明の装置は、例えば次のようなハードウェア構
成とされる。
That is, the first half of the image data of the medium 1 is written from the boundary address A2 to the final address A3, and the second half of the image data after that is written from the first address A1 to the image memory 6 as shown on the right side of the drawing. Address A4
Written up. The storage capacity of the image memory 6 is
It is set in advance to a size slightly larger than the capacity for storing the entire image data of the medium 1. Therefore, the image data of the background portion 5 slightly remains between the boundary address A2 and the address A4 of the portion where the writing of the image data of the medium is completed. In order to carry out the present invention as described above, the device of the present invention has the following hardware configuration, for example.

【0013】図2は、画像読み取り装置のハードウェア
ブロック図である。この装置は、媒体1をゲート9を通
じて矢印12の方向に吸入し、搬送路14上で媒体1を
搬送して、イメージセンサ13によりその画像データを
読み取る構成のものである。ゲート9の部分には媒体1
の挿入を検出するための媒体センサ11が設けられてい
る。なお、この画像読取りのために、この装置には挿入
検知回路21、クロックパルス発生器22、イメージセ
ンサ駆動回路23、A/Dコンバータ25、中央処理装
置(CPU)24、画像メモリ26、ROM(リード・
オンリ・メモリ)27が設けられている。
FIG. 2 is a hardware block diagram of the image reading apparatus. This apparatus is configured to suck the medium 1 in the direction of arrow 12 through the gate 9, convey the medium 1 on the conveying path 14, and read the image data by the image sensor 13. The medium 1 is at the gate 9
A medium sensor 11 for detecting the insertion of the medium is provided. In order to read the image, the device includes an insertion detection circuit 21, a clock pulse generator 22, an image sensor drive circuit 23, an A / D converter 25, a central processing unit (CPU) 24, an image memory 26, a ROM ( Reed
Only memory) 27 is provided.

【0014】イメージセンサ13の読み取った画像デー
タは、アンプ15を介してA/Dコンバータ25により
アナログ信号からディジタル信号に変換されて装置に送
り込まれる構成となっている。CPU24は、装置の全
体を制御するためのプロセッサから構成され、データバ
ス28を通じてA/Dコンバータ25から受け入れた画
像データを、画像メモリ26に書き込む制御を行うよう
になっている。書き込みアドレスはアドレスバス29を
通じて供給する。なお、このような画像データの書き込
み制御プログラムは、ROM27に格納されている。図
1に示した読み取り部10は、イメージセンサ13やそ
の周辺の機構により構成される。また、図1に示した媒
体エッジ検出部20は、CPU24や画像データの演算
処理等を行うプログラムにより構成される。また、図1
に示した書き込み制御部30は、CPU24や画像メモ
リ26への画像データ書き込みのための制御プログラム
等により構成される。
The image data read by the image sensor 13 is converted into a digital signal from an analog signal by an A / D converter 25 via an amplifier 15 and sent to the apparatus. The CPU 24 is composed of a processor for controlling the entire apparatus, and controls the writing of the image data received from the A / D converter 25 through the data bus 28 into the image memory 26. The write address is supplied through the address bus 29. The image data writing control program is stored in the ROM 27. The reading unit 10 shown in FIG. 1 includes an image sensor 13 and a mechanism around the image sensor 13. The medium edge detection unit 20 shown in FIG. 1 is composed of a CPU 24 and a program for performing arithmetic processing of image data. Also, FIG.
The writing control unit 30 shown in FIG. 2 is configured by a control program for writing image data to the CPU 24 and the image memory 26.

【0015】挿入検知回路21は、媒体1の挿入を光学
的に検出し、CPU24に対し割込み信号を送り込むた
めの回路から構成される。クロックパルス発生器22
は、イメージセンサ13による媒体1の画像データ読み
込みや装置全体の動作タイミングを制御するためのクロ
ック信号等を発生する回路である。また、イメージセン
サ駆動回路23は、イメージセンサ13に対し読み込み
制御用の信号を出力し、同時にそのタイミング信号をA
/Dコンバータ25やCPU24に供給する回路であ
る。
The insertion detection circuit 21 is composed of a circuit for optically detecting the insertion of the medium 1 and sending an interrupt signal to the CPU 24. Clock pulse generator 22
Is a circuit for generating a clock signal for controlling image data reading of the medium 1 by the image sensor 13 and operation timing of the entire apparatus. Further, the image sensor drive circuit 23 outputs a read control signal to the image sensor 13 and at the same time outputs the timing signal to A
It is a circuit that supplies the / D converter 25 and the CPU 24.

【0016】〈動作〉以上の装置は次のように動作す
る。まず、媒体1がゲート9から矢印12方向に挿入さ
れると、媒体センサ11が媒体1の先端を検出し挿入検
知回路21を通じてCPU24に通知する。CPU24
は媒体挿入を検出すると、図示しない駆動回路を制御
し、搬送路14を駆動して媒体1の搬送を開始する。媒
体1は矢印12方向に搬送され、イメージセンサ13の
下を通過する。イメージセンサ13は、媒体の搬送開始
と同時に画像データの読み込みを開始する。この画像デ
ータは、アンプ15によって増幅され、A/Dコンバー
タ25によりディジタルデータに変換されて、画像メモ
リ26に1ライン分ずつ格納される。
<Operation> The above device operates as follows. First, when the medium 1 is inserted from the gate 9 in the direction of the arrow 12, the medium sensor 11 detects the front end of the medium 1 and notifies the CPU 24 through the insertion detection circuit 21. CPU 24
When the medium insertion is detected, the drive circuit (not shown) is driven to drive the transport path 14 to start transporting the medium 1. The medium 1 is conveyed in the direction of the arrow 12 and passes under the image sensor 13. The image sensor 13 starts reading image data at the same time when the conveyance of the medium is started. The image data is amplified by the amplifier 15, converted into digital data by the A / D converter 25, and stored in the image memory 26 line by line.

【0017】続いてCPU24は、図1に示した媒体エ
ッジ検出部20に該当する動作を実行する。即ち、イメ
ージセンサ13の読み取った画像データを構成する信号
を画素単位で1ライン分ずつ加算し、予め設定した閾値
と比較する。例えば、黒ドットを“1”、白ドットを
“0”として、1ライン分の画像データ中の黒ドットを
計数すると、1ライン分の画像データの総和が求められ
る。背景部5は黒色であるから、黒ドットの数がほぼ1
ライン分の数と等しくなる。一方、媒体1は白色である
から、媒体1の先端部分を読み取るタイミングで黒ドッ
トの数が急激に減少する。従って、この黒ドットの数の
中間値を閾値に設定しておけば、媒体1の先端部分をイ
メージセンサ13が読み取ったタイミングでこれをCP
U24が検出することができる。なお、この具体的な判
断動作は後で詳細に説明する。このときの画像メモリ2
6の画像データ書き込みアドレスを図1に示す境界のア
ドレスA2とする。
Subsequently, the CPU 24 executes the operation corresponding to the medium edge detecting section 20 shown in FIG. That is, the signals forming the image data read by the image sensor 13 are added pixel by pixel for each line and compared with a preset threshold value. For example, if the black dots are "1" and the white dots are "0" and the number of black dots in the image data for one line is counted, the total sum of the image data for one line can be obtained. Since the background portion 5 is black, the number of black dots is almost 1
It is equal to the number of lines. On the other hand, since the medium 1 is white, the number of black dots sharply decreases at the timing of reading the leading end of the medium 1. Therefore, if the intermediate value of the number of black dots is set as a threshold value, the CP value is set at the timing when the image sensor 13 reads the leading end portion of the medium 1.
U24 can detect. The specific determination operation will be described in detail later. Image memory 2 at this time
The image data write address of No. 6 is the boundary address A2 shown in FIG.

【0018】なお、アドレスA2は画像メモリ6の何ラ
イン目から媒体の画像データが書き込まれているかを識
別するためのもので、例えば図2に示したイメージセン
サ駆動回路23がイメージセンサ13を駆動するために
出力するサンプルホールドパルスを計数し、その値を境
界のアドレスA2として保持するようにしてもよい。な
お、サンプルホールドパルスは媒体1を副走査方向に読
み取る場合のライン間隔が等間隔になるように生成され
るパルス信号である。こうして、境界のアドレスを検出
した後、媒体の画像データを画像メモリ6に書き込み、
その後、画像メモリの最終アドレスまで達すると画像メ
モリ6の先頭アドレスから残りの媒体の画像データを書
き込む。その後の処理は図1で説明した通りである。
The address A2 is for identifying from which line of the image memory 6 the image data of the medium is written. For example, the image sensor drive circuit 23 shown in FIG. 2 drives the image sensor 13. To this end, the number of sample hold pulses output may be counted and the value may be held as the boundary address A2. The sample hold pulse is a pulse signal generated so that the line intervals when the medium 1 is read in the sub-scanning direction are equal. In this way, after detecting the address of the boundary, the image data of the medium is written in the image memory 6,
After that, when the final address of the image memory is reached, the image data of the remaining medium is written from the head address of the image memory 6. Subsequent processing is as described in FIG.

【0019】図3には、1ライン分の画像データ読み取
り時の装置各部の信号説明図を示す。(a)は、クロッ
クパルス発生器22の出力する基準クロックパルスを示
している。また、(b)は、イメージセンサ駆動回路2
3が基準クロックパルスを利用して生成したサンプリン
グパルスを示している。また、(c)は、同じくイメー
ジセンサ駆動回路23が出力するサンプルホールドパル
スを示している。サンプリングパルスは画像信号1画素
分を読み取るタイミングで1個出力される。また、サン
プルホールドパルスは1ライン分の読み取り開始毎に1
回出力される。(d)は画像データであって、図の場合
に、黒ドットは2値でなく、多値で読み取られている。
(e)はライン数で、今回は何ライン目の読み取りかを
示すカウンタの出力を表している。ここでは、mライン
目の画像データの読み取りが一例として挙げられてい
る。(f)は画素毎のメモリアドレスで、この1ライン
分のアドレス信号がA0+X〜An+Xまで図2に示す
アドレスバス29に出力される。(g)は、このアドレ
ス信号が出力されたとき画像メモリ26に対しデータバ
ス28を通じて画像データが供給されるタイミングであ
る。
FIG. 3 is a signal explanatory diagram of each part of the apparatus when reading image data for one line. (A) shows the reference clock pulse output from the clock pulse generator 22. Further, (b) is an image sensor drive circuit 2
Reference numeral 3 indicates a sampling pulse generated by using the reference clock pulse. Further, (c) shows a sample hold pulse similarly output from the image sensor drive circuit 23. One sampling pulse is output at the timing of reading one pixel of the image signal. Also, the sample hold pulse is set to 1 at the start of reading one line.
It is output twice. (D) is image data, and in the case of the figure, the black dots are read not in binary but in multivalue.
(E) is the number of lines, which represents the output of the counter indicating which line is read this time. Here, reading the image data of the m-th line is given as an example. (F) is a memory address for each pixel, and the address signal for one line is output from A0 + X to An + X to the address bus 29 shown in FIG. (G) is the timing at which image data is supplied to the image memory 26 through the data bus 28 when this address signal is output.

【0020】次に、各信号の生成転送過程を説明する。
(a)の基準クロックパルスを分周してサンプリングパ
ルスが生成され、このサンプリングパルスを一定数計数
することにより、サンプルホールドパルスが生成され
る。(d)に示す画像データは、(c)に示すサンプリ
ングパルスの立ち下がりに同期してイメージセンサ13
から出力される。また、そのサンプリングパルスの立ち
上がりで、A/Dコンバータ25においてこの画像デー
タがディジタルデータに変換され、(g)に示すタイミ
ングでデータバス28に出力される。CPU24は、
(b)に示すサンプリングパルスの立ち下がりを計数す
ることによって、(f)に示すメモリアドレスを設定す
る。(d)に示す画像データの出力開始時間は、(c)
に示すサンプルホールドパルスが出力されたタイミング
から一定時間後になっている。従って、CPU24はそ
のタイミングで(f)に示すメモリアドレスをアドレス
バス29に出力する。この図の(c)に示すサンプルホ
ールドパルスを、CPU24は画像データの書き込み開
始から計数し記憶する。そして、先に説明する境界を検
出したとき、その値を保持し、後で媒体の画像データか
ら文字の切取りを行う際のデータ読み出し開始位置の設
定基準とする。
Next, the process of generating and transferring each signal will be described.
A sampling pulse is generated by dividing the reference clock pulse of (a), and a sample hold pulse is generated by counting a fixed number of this sampling pulse. The image data shown in (d) is synchronized with the falling edge of the sampling pulse shown in (c).
Output from Further, at the rising edge of the sampling pulse, this image data is converted into digital data in the A / D converter 25 and output to the data bus 28 at the timing shown in (g). The CPU 24
The memory address shown in (f) is set by counting the falling edges of the sampling pulse shown in (b). The output start time of the image data shown in (d) is (c)
It is a fixed time after the timing when the sample hold pulse shown in (1) is output. Therefore, the CPU 24 outputs the memory address shown in (f) to the address bus 29 at that timing. The CPU 24 counts and stores the sample hold pulse shown in (c) of this figure from the start of writing the image data. Then, when the boundary described above is detected, the value is held and used as the setting reference of the data read start position when the character is cut off from the image data of the medium later.

【0021】境界検出は次のように行う。画像データが
図の(d)に示すように、多値のディジタル信号の場
合、例えばこれが8ビットのデータであれば、00H〜
FFHの256階調で表される。境界部分の検出のため
に、この1ライン分の画像データの総和を求める。この
値をΣdとする。こうすれば、媒体の無い背景部の画像
データは反射光が少ないためにΣdiが00Hに近い値
になる。また、媒体の先端の読み取りを開始すると、反
射光が急激に増大するため、Σdの値が非常に大きくな
る。そこで、所定の閾値Rを設定し、この閾値Rよりも
Σdが大きい場合は、媒体の先端を検出したと判断す
る。画像データが多値の場合も2値の場合もこうして境
界の検出ができる。
Boundary detection is performed as follows. If the image data is a multi-valued digital signal as shown in (d) of FIG.
It is represented by 256 gradations of FFH. In order to detect the boundary portion, the total sum of the image data for one line is obtained. This value is Σd. By doing so, the image data of the background portion having no medium has a value of Σdi close to 00H because the reflected light is small. Further, when the reading of the front end of the medium is started, the reflected light rapidly increases, and the value of Σd becomes extremely large. Therefore, a predetermined threshold value R is set, and when Σd is larger than this threshold value R, it is determined that the leading edge of the medium has been detected. The boundary can be detected in this manner regardless of whether the image data is multivalued or binary.

【0022】〈具体例1の効果〉以上のような処理を行
うことによって、図1に示した画像メモリ6の記憶容量
は媒体1の画像データ全体を格納できるよりわずかに大
きいだけでよく、必要以上のハードウェアを用意するこ
とがない。従って、メモリコストを十分安価に設定でき
る。また、境界のアドレスA2を記憶しておけば、次に
媒体の画像データから文字の切り出しを行う場合に、そ
の切り出しの基準となるアドレスが常に媒体に対し一定
の位置となり、文字の切り出し、特徴抽出、認識処理等
の一連の処理が一定のタイミングで行われ得る。即ち、
媒体が読み取り部10に達するまでの時間にばらつきが
あっても、画像認識処理等に影響を与えることがないと
いう効果がある。
<Effect of Concrete Example 1> By performing the above-described processing, the storage capacity of the image memory 6 shown in FIG. 1 need only be slightly larger than the entire image data of the medium 1 and is required. There is no need to prepare the above hardware. Therefore, the memory cost can be set sufficiently low. If the boundary address A2 is stored, when the character is cut out from the image data of the medium next time, the reference address of the cutout is always at a fixed position with respect to the medium, and the character is cut out. A series of processing such as extraction and recognition processing can be performed at a fixed timing. That is,
Even if the time until the medium reaches the reading unit 10 varies, there is an effect that it does not affect the image recognition processing and the like.

【0023】〈具体例2〉図4は、具体例2の装置の概
略説明図である。図1を用いて説明した具体例1では、
画像メモリ6の任意のアドレスから媒体1の画像データ
書き込みが開始された。一方、この実施例では、常に画
像メモリ6の先頭アドレスから見て一定の位置を媒体1
の画像データ書き込み開始アドレスに設定する。この目
的のために、例えば読み取り開始直後の書き込み開始ア
ドレスを画像メモリ6の先頭アドレスA1よりも離れた
アドレスA2に設定する。そして、ここから背景部の画
像データ書き込みを開始し、媒体の画像データとの境界
A3を検出すると直ちに、画像メモリ6の先頭アドレス
A1に一定量の背景部の画像データを書き込み、その後
のアドレスA4から媒体の画像データを書き込むように
する。
<Specific Example 2> FIG. 4 is a schematic explanatory view of an apparatus of specific example 2. In the specific example 1 described using FIG. 1,
The image data writing of the medium 1 is started from an arbitrary address of the image memory 6. On the other hand, in this embodiment, the medium 1 is always located at a fixed position as seen from the start address of the image memory 6.
Set to the image data writing start address of. For this purpose, for example, the write start address immediately after the start of reading is set to the address A2 which is separated from the start address A1 of the image memory 6. Then, the writing of the image data of the background portion is started from here, and as soon as the boundary A3 with the image data of the medium is detected, a certain amount of the image data of the background portion is written to the head address A1 of the image memory 6, and the subsequent address A4. To write the image data of the medium.

【0024】媒体の画像データ書き込み開始の検出は媒
体エッジ検出部20によって行われる。画像メモリ6へ
の媒体の画像データ書き込み制御は書き込み制御部30
によって行われる。この画像メモリ6の先頭アドレスA
1から書き込まれる背景部の画像データは数ライン分で
よい。このように数ライン分背景部の画像データを格納
し、その後、媒体の画像データを格納するようにすれ
ば、良く知られた特徴マトリクス等を使用した精度の高
い媒体のエッジ検出が可能になる。従って、媒体に記入
された文字の位置を媒体の先端即ちエッジの部分から一
定の距離を基準にして切り出す場合に、高い精度で切り
出しが可能となる。
The detection of the start of writing the image data on the medium is performed by the medium edge detecting section 20. The writing control unit 30 controls the writing of image data of the medium to the image memory 6.
Done by Start address A of this image memory 6
The image data of the background portion written from 1 may be several lines. In this way, by storing the image data of the background portion for several lines and then storing the image data of the medium, it is possible to detect the edge of the medium with high accuracy using a well-known feature matrix or the like. . Therefore, when cutting out the position of the character written on the medium with reference to a fixed distance from the front end, that is, the edge portion of the medium, the cutting can be performed with high accuracy.

【0025】しかも、常に画像メモリ6の先頭アドレス
からその後の画像認識処理等を開始すればよく、手順が
一定で処理時間も一定となり、その後の処理が円滑に実
施できる。なお、アドレスA3において、媒体の画像デ
ータを検出して、その後、画像メモリ6の先頭アドレス
A1から背景部の画像データと媒体の画像データを順に
書き込むためには、例えばCPUは媒体の読み取り動作
の空き時間にアドレスA3の前後に書き込まれた画像デ
ータを画像メモリ6の先頭アドレスA1以下に転送する
処理を媒体読み取り動作と並行して行うようにすればよ
い。即ち、このような動作のために、画像メモリ6のア
ドレスA3の前後の部分がいわゆるバッファメモリとし
て利用されている。
Moreover, the subsequent image recognition processing or the like may always be started from the top address of the image memory 6, the procedure is constant and the processing time is also constant, and the subsequent processing can be carried out smoothly. In order to detect the image data of the medium at the address A3 and then sequentially write the image data of the background portion and the image data of the medium from the head address A1 of the image memory 6, for example, the CPU performs the reading operation of the medium. The process of transferring the image data written before and after the address A3 to the head address A1 or less of the image memory 6 in the idle time may be performed in parallel with the medium reading operation. That is, for such an operation, the portion before and after the address A3 of the image memory 6 is used as a so-called buffer memory.

【0026】〈具体例2の効果〉画像メモリの容量は、
具体例1と同様に媒体の画像データ全体を格納できる量
よりわずかに大きい程度で一定でよく、しかも確実に画
像メモリの先頭アドレスから数えて一定位置に媒体の画
像データが書き込まれるため、境界のアドレスを保持し
たり、画像メモリの最終アドレスから先頭アドレスへの
書き込み動作制御等を行う必要がなく、CPUの負担が
軽減される。従って、媒体の画像データ格納処理のため
の処理時間も短縮できる。また、画像メモリの一定の場
所に媒体の画像データが格納されているため、画像認識
のための切り出し処理等も高い精度で行うことができ、
更にその処理時間も一定になるという効果がある。な
お、上記の例では、背景部と媒体の反射光の強度差によ
ってエッジ検出を行うようにしたが、媒体とその周囲の
反射光や透過光等の差の判定等によって、任意の検出方
法が可能である。
<Effect of Concrete Example 2> The capacity of the image memory is
Similar to the specific example 1, the image data of the medium may be fixed at a level slightly larger than the total amount of the image data of the medium that can be stored, and the image data of the medium is surely written at a fixed position counting from the start address of the image memory. It is not necessary to hold the address or control the write operation from the last address of the image memory to the first address, and the load on the CPU is reduced. Therefore, the processing time for storing the image data of the medium can be shortened. Further, since the image data of the medium is stored in a certain place of the image memory, it is possible to perform the cutting process for image recognition with high accuracy,
Further, there is an effect that the processing time becomes constant. In the above example, the edge detection is performed by the intensity difference between the reflected light of the background portion and the medium, but by the determination of the difference between the reflected light and the transmitted light of the medium and its surroundings, any detection method can be used. It is possible.

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

【図1】具体例1の装置の概略説明図である。FIG. 1 is a schematic explanatory diagram of an apparatus of a specific example 1.

【図2】画像読み取り装置のハードウェアブロック図で
ある。
FIG. 2 is a hardware block diagram of the image reading apparatus.

【図3】1ライン分の装置各部の信号説明図である。FIG. 3 is a signal explanatory diagram of each part of the apparatus for one line.

【図4】具体例2の装置の概略説明図である。FIG. 4 is a schematic explanatory view of a device of specific example 2.

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

1 媒体 6 画像メモリ 10 読み取り部 20 媒体エッジ検出部 30 書き込み制御部 1 Medium 6 Image Memory 10 Reading Unit 20 Medium Edge Detection Unit 30 Writing Control Unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 媒体の画像を1ラインずつ走査して読み
取り、画像認識処理のための画像データを得る読み取り
部と、 媒体本体の画像読み取り前に読み取った背景部の画像デ
ータと、媒体本体の画像データとの境界を、1ライン分
の画像データの総和と所定の閾値との比較により検出す
る媒体エッジ検出部と、 少なくとも媒体全体の画像データを格納できる画像メモ
リと、 読み取り部の読み取り開始時から背景部の画像データも
含めて画像メモリに書き込みを実行するとともに、前記
媒体エッジ検出部の検出した媒体画像の書き込み開始ア
ドレスを記憶し、画像メモリの最終アドレスまで画像デ
ータを書き込んでもなお、媒体の読み取りが終了しない
ときは、画像メモリの先頭アドレスに戻って、その画像
データの書き込みを実行する書き込み制御部とを備えた
ことを特徴とする画像読み取り装置。
1. A reading unit that scans an image on a medium line by line to obtain image data for image recognition processing; image data of a background unit read before image reading of a medium body; A medium edge detection unit that detects the boundary with the image data by comparing the total sum of the image data for one line with a predetermined threshold, an image memory that can store at least the image data of the entire medium, and a reading unit at the start of reading. From the medium to the image memory including the image data of the background portion, stores the write start address of the medium image detected by the medium edge detection unit, and writes the image data up to the final address of the image memory. If the reading of is not completed, the program returns to the start address of the image memory and writes the image data. An image reading apparatus comprising a control unit.
【請求項2】 媒体の画像を1ラインずつ走査して読み
取り、画像認識処理のための画像データを得る読み取り
部と、 媒体本体の画像読み取り前に読み取った背景部の画像デ
ータと、媒体本体の画像データとの境界を、1ライン分
の画像データの総和と所定の閾値との比較により検出す
る媒体エッジ検出部と、 少なくとも媒体の画像データを格納する画像メモリと、 読み取り部の読み取り開始時から、前記媒体エッジ検出
部が背景部の画像データと媒体本体の画像データとの境
界を検出するまで待機して、画像メモリ先頭アドレスか
ら一定量だけ背景部の画像データを書き込んだ後媒体の
画像データの書き込みを実行する書き込み制御部とを備
えたことを特徴とする画像読み取り装置。
2. A reading unit for scanning an image of a medium line by line to obtain image data for image recognition processing; image data of a background unit read before image reading of the medium body; A medium edge detection unit that detects the boundary with the image data by comparing the total sum of the image data for one line with a predetermined threshold, an image memory that stores at least the image data of the medium, and a reading unit from the start of reading. Waiting until the medium edge detection unit detects the boundary between the image data of the background portion and the image data of the medium body, and after writing a certain amount of the image data of the background portion from the image memory start address, the image data of the medium is written. An image reading apparatus comprising: a writing control unit that performs writing of the image.
JP7260856A 1995-09-13 1995-09-13 Image reader Pending JPH0981674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7260856A JPH0981674A (en) 1995-09-13 1995-09-13 Image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7260856A JPH0981674A (en) 1995-09-13 1995-09-13 Image reader

Publications (1)

Publication Number Publication Date
JPH0981674A true JPH0981674A (en) 1997-03-28

Family

ID=17353708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7260856A Pending JPH0981674A (en) 1995-09-13 1995-09-13 Image reader

Country Status (1)

Country Link
JP (1) JPH0981674A (en)

Similar Documents

Publication Publication Date Title
JPH03167961A (en) Original reader
JPH0981674A (en) Image reader
US4658302A (en) Image reader
KR970702654A (en) Picture reader
JPH0560514A (en) Image processing device for traveling workpiece
JPS6320576A (en) Medium recognizing device
US7460257B2 (en) Technique for transferring image information from a scanning apparatus
JP2004094735A (en) Optical character recognizing device and method for retaining image data of image buffer in same
JP2596327B2 (en) Original image reading device
JPH0927888A (en) Image reader
JPH09284518A (en) Digital image forming device
JP3040803B2 (en) Image reading device
JP2763077B2 (en) Card carrier
JPH0468658A (en) Picture reader
JP2855630B2 (en) Image input device
JP3337828B2 (en) Braille document reader
JPS6159577A (en) Optical character mark reading device
JP2000293633A (en) Picture reader and its controlling method and document management system
JPS6388963A (en) Original reader
JP2001136348A (en) Method and device for automatically adjusting image line sensor read start time, recording medium having program for automatically adjusting image line sensor read start time recorded thereon, and recording medium having image data read processing program recorded thereon
JPH11177776A (en) Apparatus and method for reading image
JP2000209402A (en) Digital image reader
JPH0659077B2 (en) Document reader
JPH09130600A (en) Image reader
JPS6314293A (en) Slip conveying system