JPH0352451A - Small-sized image data reader - Google Patents

Small-sized image data reader

Info

Publication number
JPH0352451A
JPH0352451A JP1188313A JP18831389A JPH0352451A JP H0352451 A JPH0352451 A JP H0352451A JP 1188313 A JP1188313 A JP 1188313A JP 18831389 A JP18831389 A JP 18831389A JP H0352451 A JPH0352451 A JP H0352451A
Authority
JP
Japan
Prior art keywords
data
read
reading
image data
black
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.)
Granted
Application number
JP1188313A
Other languages
Japanese (ja)
Other versions
JP3018350B2 (en
Inventor
Akihide Takasu
晶英 高須
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP1188313A priority Critical patent/JP3018350B2/en
Priority to US07/477,232 priority patent/US5083218A/en
Publication of JPH0352451A publication Critical patent/JPH0352451A/en
Application granted granted Critical
Publication of JP3018350B2 publication Critical patent/JP3018350B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To take out and print-output only required data even when neighboring unrequired data is read with required specific data on an original by providing a means which outputs only effective read data from a storage means. CONSTITUTION:The reader is provided with the storage means 14 which stores data read with a reading means 12, and a black character distribution detecting means 22 which detects black character distribution in the reading width direction of read data with at least prescribed length from the forefront of the read data and the one with length from the tailend of the read data. Also, it is provided with an effective data detecting means 24 which detects the range of the effective read data read in the almost center part of reading width for the read data based on the number of black character distribution, and furthermore, a data output means 27 which outputs only the effective read data from the storage means 14. ln such a way, it is possible to take out and print-output only the required data even when the neighboring unrequired data is read with the required specific data on the original.

Description

【発明の詳細な説明】[Detailed description of the invention]

[発明の技術分野] 本発明は、装置本体を原稿面」二で手動走査により移動
させることで、該原稿面に描かれた画1象情報を読取り
、この読取りデータをプリント出力する小型画像データ
読取り装置に関する。 [従来技術とその問題点] 最近、所望の原稿面」二に装置本体を当接させて移動さ
せることで、該原稿面の一部画像情報を光学的に読取る
、ハンディスキャナやハンディコビー・等の手動読取り
装置が実用化されている。 このような手動読取り装置において、例えば原稿文書の
特定文字列のみを読取る場合、装置本体の読取り部を該
特定文字列の先頭に当接きせ、その文字列に沿って移動
させるが、原稿の文字列同士の間隔が狭いと、必要とす
る特定文字列以外に」二下文字列の一部分も読取られて
しまう。このため、上記読取りデータをプリントした場
合、必要な文字列のみのプリントを行なうことができな
いという欠点を有していた。 [発明の目的] 本発明は上記のような問題点に鑑みなされたもので、必
要とする原稿上の特定データと共に隣接する不要データ
が読取られた場合でも、必要データのみ取出してプリン
ト出力することが可能になる小型画像データ読取り装置
を提供することを目的とする。 [発明の要点] すなわち本発明に係わる小型画像データ読取り装置は、
原稿上に描かれた情報を所定の読取り幅で任意の長さ読
取る読取り手段と、この読取り手段により読取られたデ
ータを記憶する記憶手段と、少なくとも上記読取りデー
タの先頭から所定長さの読取りデータ及び後尾から所定
長さの読取りデータの読取り幅方向に対する黒字数分布
を検出する黒字分布検出手段と、この黒字分布検出手段
により得られた読取り幅方向に対する黒字数分布に基づ
き上記記憶手段に記憶された読取りデータに対し該読取
り幅の略中央部にて読取られた有効読取りデータの範囲
を検出する有効データ険出手段と、この有効データ検出
手段により検出されたGj効読取りデータのみを上記記
憶手段から出力させるデータ出力手段とを備えて構成し
たものである。 [発明の実施例] 以下図面を参照して本発明の一実施例を説明する。 第1図は本発明を実施したハンディコビー機の回路構成
を示すもので、同図において、11は制御部であり、こ
の制御部1]が画像データの読取り及びプリントに伴い
回路各部を制御する。 このハンディコビー機の読取り部には一次元イメージセ
ンサ12が備えられる。このイメージセンサ12は、有
効読取り幅8IIII1で読取りドット密度8dot/
amの主走査64ビットの一次元CCDからなり、光源
12aにより照明される原稿A面の画像情報を光学的に
読取るもので、このイメージセンサ12により読取られ
た画像情報は2値化部13に送られる。ここで、上記光
源12aはLED駆動回路12bにより点灯駆動される
。 上記2値化部13は、イメージセンサ12からの人力画
像信号をその信号レベルに応じて白/黒2値のデジタル
画像信号に変換するもので、このデジタル画像信号は制
御部11を介
[Technical Field of the Invention] The present invention provides compact image data that reads image information drawn on the document surface by moving the main body of the device by manual scanning on the document surface, and prints out the read data. Relating to a reading device. [Prior art and its problems] Recently, handheld scanners, handy coveys, etc., which optically read part of the image information on a desired document surface by bringing the device body into contact with the desired document surface and moving it, have been developed. Manual reading devices have been put into practical use. With such a manual reading device, for example, when reading only a specific character string in a manuscript document, the reading section of the main body of the device is brought into contact with the beginning of the specific character string and moved along the character string, but the characters in the document are If the spacing between columns is narrow, in addition to the required specific character string, part of the second character string will also be read. For this reason, when the read data is printed, there is a drawback that only the necessary character strings cannot be printed. [Object of the Invention] The present invention was made in view of the above-mentioned problems, and it is possible to extract and print out only the necessary data even if adjacent unnecessary data is read together with the necessary specific data on the document. The purpose of the present invention is to provide a compact image data reading device that enables the following. [Summary of the Invention] That is, the compact image data reading device according to the present invention has the following features:
a reading means for reading an arbitrary length of information drawn on a document with a predetermined reading width; a storage means for storing data read by the reading means; and at least a predetermined length of read data from the beginning of the read data. and black character distribution detecting means for detecting the black character number distribution in the reading width direction of the read data of a predetermined length from the rear end, and a black character number distribution in the reading width direction obtained by the black character distribution detecting means to be stored in the storage means. valid data exposure means for detecting a range of valid read data read at approximately the center of the read width; and storage means for storing only the Gj effective read data detected by the valid data detection means. and data output means for outputting data from the computer. [Embodiment of the Invention] An embodiment of the present invention will be described below with reference to the drawings. Fig. 1 shows the circuit configuration of a handycobby machine embodying the present invention. In the figure, 11 is a control section, and this control section 1] controls various parts of the circuit as image data is read and printed. . A one-dimensional image sensor 12 is provided in the reading section of this handy covey machine. This image sensor 12 has an effective reading width of 8III1 and a reading dot density of 8 dots/
It is composed of a one-dimensional CCD with 64 bits of main scanning of AM, and optically reads the image information of side A of the original illuminated by the light source 12a. Sent. Here, the light source 12a is driven to turn on by an LED drive circuit 12b. The binarization unit 13 converts the human image signal from the image sensor 12 into a white/black binary digital image signal according to the signal level, and this digital image signal is sent via the control unit 11.

【7て8ビット毎のパラレル信号に変換さ
れ画像データメモリ14に記憶される。そして、この画
像データメモリ14に記憶された読取りデータは、制御
部11を介してプリント部15に出力され、図示しない
サーマルヘッドを通【7て記録紙にプリント出力される
。 また、コピー機本体の読取り部及びプリント部15が錫
えられる接紙側面には、ローラ16が設けられる。この
ローラ16は、コピー機本体の原稿Aあるいは記録紙面
上での移動副走査に伴い接紙回転するもので、このロー
ラ16の回転力は図示しない歯車を介してエンコーダデ
ィスク17に伝達される。このエンコーダディスク17
には、複数のスリット18a,18b,・・・が一定間
隔を保って放射状に形戊される。そして、エンコーダデ
ィスク17を間に介して相対向する位置にL E D及
びフォトセンサを配した送受光部1つが設けられる。こ
の場合、上記LEDからの投射光がエンコーダディスク
17のスリット18a,18b,・・・を通ってフォト
センサに入射する。つまり、エンコーダディスク】7、
送受光部19等によりエンコーダ20が構或される。 上記エンコーダ20からのコピー機本体の移動速度に応
じたエンコーダパルスは制御部11及びプリント部15
に与えられる。そして、制御部11は、原稿Aの読取り
モードにおいて、上記エンコーダパルスに基づくタイミ
ング信号に同期して2値化部13からのデジタル画像信
号を人力し、また、プリントモードにおいて、上記エン
コーダパルスに同期して画像データメモリ14内の読取
りデータを1行分ずつ読出してプリント部15に転送す
る。 ここで、画像データメモリ14には、一次元イメージセ
ンサ12により読取られた主走査64ビット幅の1行画
像データが、副走査有効読取り幅(例えば40ma+−
320ビッ1・)分多数並んで記憶される。この場合、
1画像データの記ta HA域は、主走査方向X−64
ビット×副走査方向Y−320ビットになる。そし゛C
,この画像データメモリ14に対する書込み及び読出し
アドレスは、画像データメモリアドレス制御部21によ
り指定制御される。 一方、制御部1】.には、黒字数計数部22が接続され
る。この黒字数計数部22は、例えば第2図に示すよう
な文書データの読取りを行なった際に、第3図に示すよ
うな読取りデータの、各主走査(X)ビットにおける副
走査方向Yの黒字を検知し、その黒字数(黒データピッ
ト数)を計数するもので、その黒字検知信号は制御部]
1に出力され、所定の副走査幅を設定した2つのザンプ
リング領域A,Bそれぞれにおける各主走査ビットに対
する副走査方向黒字数は、数値データメモリ23に記憶
される。つまり、制御部11は、上記黒字検知信号に基
づき画像データの黒字位置をアドlノス管理し、また、
数値データメモリ23には、第4図に示すように、上記
サンプリング領域A,Bにおける主走査方向Xに対する
副走査方向Yの黒字数分布が得られることになる。 ここで、上記読取り画像データに対する2つのサンプリ
ング領域A,Bは、それぞれ次のようにして定められる
。 サンプリング領域Aは、まず、画像データメモリ14に
記憶された読取り画像データを、その先頭から順次読出
して黒字数計数部22に送り、最初の黒字検知(立置に
対応ずるメモリアドレスに所定アドレス数Nを加算する
。そして、このNアドレス加算位置からさらに、」二記
画像データを後尾に向かって順次読出し、黒字数計数部
22に送って最初の黒字位置を検知させる。つまり、第
1黒字検知位置からNアドレス加算後の第2黒字検知位
置から所定のアドレス範囲Mに対応する読取り長さがサ
ンプリング領域Aとなる。 サンプリング領域Bは、まず、画像データメモリ14に
記憶された読取り画像データを、その後尾から順次読出
して黒字数計数部22に送り、最初の黒字検知位置に対
応するメモリアドレスから所定アドレス数Nを減算する
。そして、このNアドレス減算位置からさらに、上記画
像データを先頭に向かって順次読出し、黒字数計数部2
2に送って最初の黒字位置を検知させる。つまり、後尾
第1黒字検知位置からNアドレス減算後の後尾第2黒字
検知位置から所定のアドレス範囲Mに対応する読取り長
さがサンプリング領域Bとなる。 上記数値データメモリ23に得られたサンプリング領域
A,Bにおける主走査方向Xに対する副走査方向Yの黒
字数分布データは、切出し億置判断部24に与えられる
。この切出し位置判断部24は、上記サンプリング領域
A,Bのそれぞれにおいて、各対応する黒字数分布デー
タに基づき、読取り幅の中央から外方に向かって黒字数
Lが最初に所定数L。以下になる点と、その後最初に所
定数L。より大きくなる点とを検知し、この両検知点の
中心位置をデータ切出し位置xl +  x2として判
断するもので、このザンブリング領域A,Bのそれぞれ
における切出し位置xl+X2の判断データは演算部2
5に送られる。 演算部25は、第5図に示すように、読取りデタの各サ
ンプリング領域A−B間において、そのそれぞれの切出
し位置xI+X2に対応する主走査ビット同士を結んだ
切出しラインXi,X2に対応するメモリアドレスを算
出するもので、この切出しラインXI,X2に相当する
メモリアドレスは切出し位置アドレス記憶部26に格納
される。 ここで、画像データメモリアドレス制御部21に対し、
上記切出し位置アドレス記憶部26から上記切出しライ
ンXI,X2に対応ずるアドレスデータが与えられた場
合には、このアドレス位置を含む読取りデータの上及び
下からのメモリ領域が無効データ領域G1この上下無効
データ領域Gに挟まれたメモリ頭域が有効データ領域H
とされ、制御部11から画像データメモリ14の該無効
データ領域Gに対し自データ“0“が書込まれる。 また、$11御部11には切出
[7] The signal is converted into a parallel signal of every 8 bits and stored in the image data memory 14. The read data stored in the image data memory 14 is output to the print section 15 via the control section 11, and is printed out on recording paper through a thermal head (not shown). Further, a roller 16 is provided on the paper-contacting side surface on which the reading section and the printing section 15 of the main body of the copying machine are attached. This roller 16 rotates in contact with the copying machine as it moves and subscans on the original A or recording paper surface, and the rotational force of this roller 16 is transmitted to the encoder disk 17 via a gear (not shown). This encoder disk 17
A plurality of slits 18a, 18b, . . . are formed radially at regular intervals. One light transmitting/receiving section including an LED and a photosensor is provided at positions facing each other with the encoder disk 17 interposed therebetween. In this case, the projected light from the LED passes through the slits 18a, 18b, . . . of the encoder disk 17 and enters the photosensor. In other words, encoder disk】7,
An encoder 20 is constituted by the light transmitting/receiving section 19 and the like. Encoder pulses from the encoder 20 corresponding to the moving speed of the copy machine main body are sent to the control section 11 and the print section 15.
given to. Then, in the reading mode of the original A, the control unit 11 manually inputs the digital image signal from the binarization unit 13 in synchronization with the timing signal based on the encoder pulse, and in the print mode, in synchronization with the encoder pulse. Then, the read data in the image data memory 14 is read line by line and transferred to the print section 15. Here, in the image data memory 14, one line of main scanning 64-bit width image data read by the one-dimensional image sensor 12 is stored in the sub-scanning effective reading width (for example, 40 ma+-
320 bits 1.) are stored in parallel. in this case,
The HA area of 1 image data is in the main scanning direction X-64
Bit x sub-scanning direction Y - 320 bits. Soshi C
, the write and read addresses for this image data memory 14 are designated and controlled by an image data memory address control section 21. On the other hand, control section 1]. A surplus number counting section 22 is connected to the . For example, when document data as shown in FIG. 2 is read, this black character number counting unit 22 calculates the sub-scanning direction Y in each main scanning (X) bit of the read data as shown in FIG. 3. It detects black characters and counts the number of black characters (number of black data pits), and the black character detection signal is sent to the control section]
1, and the number of black characters in the sub-scanning direction for each main-scanning bit in each of the two sampling areas A and B in which a predetermined sub-scanning width is set is stored in the numerical data memory 23. That is, the control unit 11 manages the position of black characters in the image data based on the black character detection signal, and also
As shown in FIG. 4, the numerical data memory 23 stores the distribution of the number of black characters in the sub-scanning direction Y with respect to the main-scanning direction X in the sampling areas A and B. Here, the two sampling areas A and B for the read image data are determined as follows. In the sampling area A, first, the read image data stored in the image data memory 14 is sequentially read out from the beginning and sent to the black character number counting section 22. Then, from this N address addition position, the "2" image data is sequentially read out toward the rear, and sent to the black character number counting section 22 to detect the first black character position. In other words, the first black character detection is performed. The reading length corresponding to the predetermined address range M from the second black detection position after adding N addresses from the position becomes the sampling area A. First, the sampling area B consists of the reading image data stored in the image data memory 14. , sequentially read from the end and send it to the black character number counting section 22, and subtract a predetermined number of addresses N from the memory address corresponding to the first black character detection position.Then, from this N address subtraction position, the above image data is further read out from the beginning. The surplus number counting unit 2
2 to detect the first black position. In other words, the sampling area B is the reading length corresponding to the predetermined address range M from the second trailing black character detection position after subtracting N addresses from the trailing first black character detection position. The black character number distribution data in the sub-scanning direction Y with respect to the main-scanning direction X in the sampling areas A and B obtained in the numerical data memory 23 is given to the cutting position determination section 24. In each of the sampling areas A and B, the cutout position determination unit 24 determines that the number of black characters L is initially set to a predetermined number L from the center of the reading width outwards based on the corresponding black character number distribution data. A point that becomes less than or equal to, and then a predetermined number L first. The center position of both detection points is determined as the data extraction position xl + x2, and the judgment data of the extraction position xl +
Sent to 5. As shown in FIG. 5, the arithmetic unit 25 stores memories corresponding to cutting lines Xi and X2 connecting main scanning bits corresponding to respective cutting positions xI+X2 between each sampling area A-B of read data. The memory addresses corresponding to the cutout lines XI and X2 are stored in the cutout position address storage section 26. Here, for the image data memory address control section 21,
When the address data corresponding to the cutting lines XI and X2 is given from the cutting position address storage section 26, the memory area from above and below of the read data including this address position is invalid data area G1. The memory head area sandwiched between data area G is valid data area H
Then, the control unit 11 writes the own data "0" into the invalid data area G of the image data memory 14. Also, there is a cutout for $11 Gobe 11.

【5位置確認部27が接
続される。この切出し位置確認部27は、上記ザンブリ
ング領域A−B間における切出しラインX1及びX2に
沿った主走査方向X前後1ビットずつのメモリデータを
読出し、その前後のデータ共黒データである場合、つま
り領域A−B間の切出しラインX1あるいはX2を黒デ
〜タが横切っている場合が副走査方向Yに所定ビット連
続した際に、切出し位置不適正(NG)の判断を行なう
もので、この切出しNG信号は制御部11に出力される
と共に、報音部28に出力され切出し不可を知らせるブ
ザーが駆動される。 次に、上記構成によるハンディコビー機の動作について
説明する。 原稿Aに描かれている文字、画像等の情報を読取る場合
には、まず、このコピー機を読取りモードに切換える。 そして、ユーザー(ま、コピー機本体を、そのローラ1
6を原稿A面に接触させて置く。このように、コピー機
本体を原稿A上に置くと、LED駆動回路12bにより
光源12aが点灯駆動される。この後、コピー機本体を
原稿A上I:置いた状態のJ;ま、原稿A面の彼読取り
データに沿わせて手動で走査移動させると、光源12a
からの投I・I光が原fAAの彼読取り面に照射され、
その反射光が一次元イメージセンザ12に入射する。 一方、原福A而に接してコピー機本体の移動に伴い回転
するローラ16により、エンコーダ20のエンコーダデ
ィスク17が回転ずる。このエンコーダディスク17の
同転により、送受先部1つからコピー機本体の移動量に
応じたパルス信号が出力される。つまり、この送受光部
19から出力されるパルス信号かエンコーダ20の出力
となり、コピー機本体に対する移動量検出信号として制
御部11及びプリント部15に送られる。 すなわち、上記一次元イメージセンサ12は、上記エン
コーダパルスに基づ<CCD露光タイミング信号に同期
して原稿A面からの反射光に応じた信号、すなわち画像
信号を出力する。この一次元イメージセンサ12の出力
信号は2値化部13ヘ送られる。この2値化部13は、
イメージセンザ12から送られてくる画像信号を向/黒
21Li1のデジタル信号に変換し制御部11へ出力ず
る。する乏、制a部l1は、2値化部13から送られて
くるデジタル画像信号を、例えば8ビット毎にパラレル
の画像データに変換して画像データメモリ14に記憶さ
せる。この画像データメモリ14の書込みアドレスは、
画像データメモリアドレス制御部21により指定される
。この画像データメモIJ 7 トlノス制御部21で
は、」二紀エンコーダパルスに基づくクロックパルスに
より順次桁アドレスが「+1コされ、画像データメモリ
14のアドレスを指定する。そして、この画像データメ
モリ14に読取り1行分の画像データが書込まれると、
上記エンコーダ20から次の移動量検出信号が送られて
くるまで待機状態となる。 以下同様の動作が繰返され、原稿A而上から読取った画
像データが画像データメモリ14に順次書込まれる。 次に、上記のようにして原槁Aから読取った画像データ
をブリ:/ト・アウトする場″′jの動作にっいて説明
する。 画像データをプリント・アウトする場合は、コピー機本
体をプリントモードに切換える。そしてユーザーは、コ
ピー機本体を、そのローラ16をノート等の外部記録紙
面に接触させて置く。このように、コピー機本体を記録
紙上に置くと、プリント部15におけるサーマルヘッド
がインクリボンを介して記録紙而に接触する。この後、
コビ〜機本体を記録紙面に沿わせて走査移動させると、
このコピー機本体の移動に伴い上記ローラ〕6が回転し
、このローラ16の回転がエンコーダディスク17に伝
達される。このエンコーダディスク17の回転に伴って
エンコーダ20から上記読取り峙ε同様にコピー機本体
の移動速度に応じた移動量検出信号が取出される。 上記コピー機本体の移動を開始することでエンコーダ2
0から移動量検出信号が出力されると、その移動量検出
信号に応じて、制御部11は1行印字命令ε共にプリン
トタイミング信号をプリント部15に出力する。また、
制御部11は、エンコーダ20からの移動量検出信号に
応じて画像データメモリ14の行及び桁アドレスを順次
指定し、画像データメモリ14に記憶されている画像デ
タをプリント部へ1行分づつ出力する。 制御部11は、1行印字命令に伴い画1象データメモリ
14から読出した画像データをプリント部15へ出力す
る。すると、このプリント部】5におけるサーマルヘッ
ドの駆動により、画像データがインクリボンを介して記
録紙上に熱転写される。 上記のようにしてコピー機本体を移動操作することによ
り、画像データメモリ】4に記憶されている画像データ
が記録紙に順次プリントされる。 次に、例えば特定文字列のみの読取り.プリントを行な
う場合の、読取りデータ切出し処理について説明する。 第6図は上記読取りデータ切出し処理を示すフローチャ
ートであり、例えば第2図に示すように、原稿Aの文字
列間隔が狭いため、必要とする特定文字列「の成功をテ
コ」の左右に不要な文字列の一部も読出された場合、第
3図に示すように、切出し位置を決定する2つのサンプ
リング領域ABを設定する。 すなわち、まず、制御部】1は画像データメモリ14に
記憶される読取り画像データをその先頭から読出し、順
次黒字数計数部22に転送l7て副走査方向Yの最初の
黒データ位置を検出させる(ステップSl)。次に、上
記画像データの先頭から最初の黒データ位置に対応する
メモリアドレスに対し、所定のアドレス値Nを加算する
(ステップS2)。そ【,て、この所定アドレスNの加
算されたメモリ位置から、さらに画像データを副走査方
向Yに読出し、順次黒字数計数部22に転送して最初の
黒データ位置を検出させる(ステップS3)。これによ
り、上記アドレスN加算後の最初の黒データ位置と所定
のアドレス範囲Mとに基づき、ザンブリング領域Aが設
定される(ステソブS4)。 また、制御部11は画像データメモリ14に記憶される
読取り画像データをその後尾から読出し、順次黒字数計
数部22に転送してデータ先頭方向への最初の黒データ
位置を検出させる(ステップS5)。次に、上記画像デ
ータの後尾から最初の黒データ位置に対応するメモリア
ドレスから、所定のアドレス値Nを減算する(ステップ
S6)。 そして、この所定アドレスNの減算されたメモリ位置か
ら、さらに画像データを先頭方向へと読出し、順次黒字
数計数部22に転送して最初の黒データ位置を検出させ
る(ステップS7)。これにより、上記アドレスN減算
後の最初の黒データ位置と所定のアドレス範囲Mとに基
づき、サンプリング領域Bが設定される(ステップS8
)。 すると、黒字数計数部22において、14図に示すよう
に、各サンプリング領域A,Bのそれぞれにおける主走
査ビット毎の副走査方向黒字数Lが計数され、その黒字
数分布が数値データメモリ23に格納される。(ステッ
プS9)。 そして、切出し位置判断部24において、上記各サンプ
リング領域A,B毎に、主走査方向Xの中央から上下外
方に向かって黒字数が最初に所定数t,o以下になる点
と、この後最初にL。を越える点との中心位置が検知さ
れ、A,Bそれぞれの不要データ切出し位置xI + 
 X 2に対応するメモリアドl/スが求められる(ス
テップS10)。 こうして、読取りデータの各サンプリング頷域A,Hに
おけるそれぞれの切出しアドlノスXx2が得られると
、演算部25において、第5図に示すように、各サンプ
リング領域A−B間の切出しアドレスxl *  X2
をそれぞれ結んだ切出しラインXI,X2に対応するメ
モリアドレスが算出され、切出し位置アドレス記憶部2
6に格納される(ステップS11)。 ここで、切出し位置確認部27において、上記サンプリ
ング領域A−B間における切出しラインXi,X2に沿
う主走査方向X上下1ビットずつのデータが、何れも黒
データである部分が検索され、この領域A−B間におけ
る切出しラインX1あるいはX2を横切る黒データピッ
トが副走査方向Yに所定ビット数以上連続するか否か判
断される(ステップS12)。 上記ステップS12においてrOKJ、つまり、 読取りデータの切出l7ラインX1あるいはX2をサン
プリング領域A−B間において主走査方向Xに横切る黒
データは、所定数以上連続l7ては存在せず、領域A−
B間の切出し位置上に正規の画像データは存在しないと
判断されるた、上記切出し位置アドレス記憶部26から
上記切出しラインXi,X2に対応するメモリアドレス
がセットされ、このアドレス番地を含む画像データメモ
リ14における読取りデータ上下の無効データ領域Gに
、制御部11から自データ“0゛が書込まれる(ステッ
プS13)。 よって、画像データメモリ14には、読取りデータ中の
不要文字列を消去した特定文字列「の成功をテコ」のみ
が有効データ領域Hとして残きれたことになり、不要文
字列の存在しない所望とする特定の原稿文字列のみをプ
リントして出力することができる。 一方、上記ステップS12において「NGJ、つまり読
取りデータのザンブリング領域A−B間における切出し
ラインXiあるいはX2を主走査方向Xに横切る黒デー
タか、所定数以上連続して7j在し、切出し位置上に正
規の画像データか存在している判断されると、報音部2
8におけるブザが駆動され、ユーザに対し切出し不可で
あることが知らされる(ステップS14)。 したがって、上記構成のハンディコビー機によれば、手
動走査により副走査を得、原稿Aの読取り及びその読取
りデータのプリント処理を行なうことができるばかりで
なく、主走査方向Xに一定の幅を有し副走査方向Yに連
続する特定の原稿データのみ切出し、プリントすること
が可能になる。 この場合、切出し位置X l +  X2を決定する2
つのザンブリング領域A,Bを、読取り画像データの先
頭及び後尾から最初の黒データ検知位置を基準として設
定するのではなく、この第1黒字検知位置からさらに所
定長さNを空けた後の第2黒字検知位置を基準として設
定するので、例えば前期第2図で示したように、被読取
り画像データが黒枠Bl,B2で囲まれ、第3図で示し
たように、その読取り範囲の先頭部及び後尾部にそれぞ
れ上記黒枠Bl,B2の一部が横切るデータ状態となっ
ても、この黒枠Bl.82部を基準としてサンプリング
領域A.Bが設定されることはないので、該領域A.B
内に文字データが含まれなくなる等の不具合を未然に防
止することができる。よって、被読取り画像データの周
囲部における模様に拘りなく、確実に必要とする文字列
データのみを切出I,てプリントすることが可能になる
。 尚、上記実施例では、第4図で示したように、読取画像
データの切出し位置を検知するための黒字数分布に対す
る所定の黒字数を、読取幅方向に一様にL。εして設定
したが、例えば第7図に示すように、読取輻の中心から
上下外方に向けてそれぞれ独立した最小黒字数L,。L
2を検知し、この各最小黒字数L,,L2に所定1ii
L.を加算した黒字数L。l+LO2を、それぞれ読取
幅中心から上方の切f:H i,閾値、下方の切出し閾
値として設定してもよいゆ すなわイ5、赤取画像データのザ゛/ブリング領域A,
B内に5読取幅方向の一h″′一黒字数の多い、また他
方で黒字数の少ない主走査方向Xに横断する黒データが
生じていたとしても、この黒データの影響に応じた切出
し閾値Lo1とL。2とをそれぞれ設定するここにより
、確実に必要とする文字列データのみを切出すことが可
能になる。 [発明の効果] 以上のように本発明によれば、原稿上に描かわた情報を
所定の読取り幅で任意の長さ読取る読取り手段と、この
読取り手段により読取られたデータを記憶する記憶手段
と、少なくとも上記読取りデータの先頭から所定長さの
読取りデータ及び後尾から所定長さの読取りデータの読
取り幅方向に対する黒字数分布を検出する黒字分布検出
手段ど、この黒字分布検出手段により得られた読取り幅
方向に対する黒字数分布に基づき」二記記憶手段に記憶
された読取りデータに対し該読取り幅の略中央部にて読
取られた有効読゛取リデータの範囲を険出する有効デー
タ検出手段と、この有効データ検出手段により検出され
た有効読取りデータのみを上記記憶手段から出力させる
データ出力手段とを備えて{1■威したので、必要とす
る原稿上の特定データと共に隣接する不要データが読取
られた場合でも、必要データのみ取出してプリント出力
することが可能になる小型画像データ読取り装置を提供
できる。
[5 The position confirmation section 27 is connected. The cutting position confirmation unit 27 reads memory data of 1 bit each in front and back in the main scanning direction X along the cutting lines X1 and X2 between the zumbling areas A and B, and if the data before and after are both black data, that is, When black data crosses the cutting line X1 or The NG signal is outputted to the control section 11 and also outputted to the sound alarm section 28 to drive a buzzer to notify that cutting is not possible. Next, the operation of the handy cobby machine having the above configuration will be explained. When reading information such as characters and images drawn on the original A, first the copying machine is switched to the reading mode. Then, the user (well, the main body of the copy machine, its roller 1
6 in contact with side A of the original. In this manner, when the copying machine main body is placed on the document A, the light source 12a is driven to turn on by the LED drive circuit 12b. After this, when the main body of the copying machine is manually scanned and moved along the scanned data on side A of the original A, the light source 12a
The projected I/I light from the original fAA is illuminated on the reading surface of the original
The reflected light enters the one-dimensional image sensor 12. On the other hand, the encoder disk 17 of the encoder 20 is rotated by the roller 16 which contacts the copying machine and rotates as the copying machine main body moves. By the simultaneous rotation of the encoder disk 17, a pulse signal corresponding to the amount of movement of the copying machine main body is outputted from one destination section. That is, the pulse signal output from the light transmitting/receiving section 19 becomes the output of the encoder 20, and is sent to the control section 11 and the printing section 15 as a movement amount detection signal with respect to the main body of the copying machine. That is, the one-dimensional image sensor 12 outputs a signal corresponding to the light reflected from the side A of the document, that is, an image signal, in synchronization with the CCD exposure timing signal based on the encoder pulse. The output signal of this one-dimensional image sensor 12 is sent to a binarization section 13. This binarization section 13 is
The image signal sent from the image sensor 12 is converted into a digital signal for the direction/black 21Li1 and output to the control section 11. However, the control section l1 converts the digital image signal sent from the binarization section 13 into parallel image data, for example every 8 bits, and stores it in the image data memory 14. The write address of this image data memory 14 is:
It is designated by the image data memory address control section 21. In this image data memo IJ7 controller 21, the digit address is sequentially incremented by 1 by a clock pulse based on the secondary encoder pulse, and the address of the image data memory 14 is designated. When one line of image data is read and written to
It is in a standby state until the next movement amount detection signal is sent from the encoder 20. Thereafter, similar operations are repeated, and the image data read from the document A is sequentially written into the image data memory 14. Next, the operation of printing out the image data read from Haraaki A as described above will be explained. Then, the user places the copier main body with its roller 16 in contact with an external recording paper surface such as a notebook.In this way, when the copier main body is placed on the recording paper, the thermal head in the print section 15 contacts the recording paper via the ink ribbon.After this,
Cobi ~ When the main body of the machine is scanned along the recording paper surface,
As the copying machine main body moves, the roller 6 rotates, and the rotation of the roller 16 is transmitted to the encoder disk 17. As the encoder disk 17 rotates, a movement detection signal corresponding to the movement speed of the copying machine main body is taken out from the encoder 20 in the same manner as the above-mentioned reading angle ε. Encoder 2 is activated by starting the movement of the copy machine main body.
When the movement amount detection signal is output from 0, the control section 11 outputs a one-line print command ε and a print timing signal to the printing section 15 in accordance with the movement amount detection signal. Also,
The control unit 11 sequentially specifies the row and digit addresses of the image data memory 14 according to the movement amount detection signal from the encoder 20, and outputs the image data stored in the image data memory 14 one line at a time to the print unit. do. The control unit 11 outputs the image data read from the one-image data memory 14 to the print unit 15 in response to a one-line print command. Then, by driving the thermal head in the print section 5, the image data is thermally transferred onto the recording paper via the ink ribbon. By moving the main body of the copying machine as described above, the image data stored in the image data memory 4 is sequentially printed on recording paper. Next, for example, read only a specific string. The read data extraction process when printing will be explained. FIG. 6 is a flowchart showing the above-mentioned read data extraction process. For example, as shown in FIG. 2, because the character string spacing in document A is narrow, unnecessary characters are needed on the left and right of the required specific character string "Leverage the success of". If a part of the character string is also read out, as shown in FIG. 3, two sampling areas AB are set to determine the extraction position. That is, first, the control unit 1 reads out the read image data stored in the image data memory 14 from the beginning, and sequentially transfers it to the black character number counting unit 22 to detect the first black data position in the sub-scanning direction Y ( Step Sl). Next, a predetermined address value N is added to the memory address corresponding to the first black data position from the beginning of the image data (step S2). Then, image data is further read out in the sub-scanning direction Y from the memory location to which the predetermined address N has been added, and is sequentially transferred to the black character number counting unit 22 to detect the first black data position (step S3). . Thereby, the zumbling area A is set based on the first black data position after addition of the address N and the predetermined address range M (Step S4). Further, the control unit 11 reads out the read image data stored in the image data memory 14 from the rear end, and sequentially transfers it to the black character number counting unit 22 to detect the first black data position in the direction of the data head (step S5). . Next, a predetermined address value N is subtracted from the memory address corresponding to the first black data position from the tail of the image data (step S6). Then, image data is further read out from the memory location from which the predetermined address N has been subtracted in the direction of the beginning, and is sequentially transferred to the black character number counting unit 22 to detect the first black data position (step S7). As a result, the sampling area B is set based on the first black data position after subtracting the address N and the predetermined address range M (step S8
). Then, as shown in FIG. 14, the black character number counting unit 22 counts the number L of black characters in the sub-scanning direction for each main scanning bit in each of the sampling areas A and B, and the black character number distribution is stored in the numerical data memory 23. Stored. (Step S9). Then, the cutout position determination unit 24 determines, for each of the sampling areas A and B, the point where the number of black characters first becomes equal to or less than a predetermined number t, o from the center in the main scanning direction X upward and downward, and after that, First L. The center position between the point exceeding
A memory address corresponding to X2 is determined (step S10). In this way, when each extraction address Xx2 in each sampling area A and H of the read data is obtained, the calculation unit 25 calculates the extraction address xl* between each sampling area A and B, as shown in FIG. X2
The memory addresses corresponding to the cutting lines XI and X2 connecting these are calculated and stored in the cutting position address storage section 2.
6 (step S11). Here, the cropping position confirmation unit 27 searches for a portion where the data of 1 bit above and below in the main scanning direction X along the cropping lines Xi and X2 between the sampling areas A and B are both black data, and It is determined whether or not the black data pits crossing the cutting line X1 or X2 between A and B continue for a predetermined number of bits or more in the sub-scanning direction Y (step S12). In the above step S12, rOKJ, that is, the black data that crosses the cutout line X1 or X2 of the read data in the main scanning direction
Since it is determined that there is no regular image data on the cutting position between B, the memory address corresponding to the cutting lines Xi and X2 is set from the cutting position address storage section 26, and the image data including this address is set. Own data "0" is written from the control unit 11 to the invalid data area G above and below the read data in the memory 14 (step S13). Only the specific character string "Leverage the success of" remains in the valid data area H, and it is possible to print and output only the desired specific character string of the original without any unnecessary character strings. On the other hand, in step S12, "NGJ", that is, black data that crosses the cutting line Xi or X2 between the zumbling areas A and B of the read data in the main scanning direction When it is determined that legitimate image data exists, the alarm unit 2
The buzzer at 8 is activated to notify the user that cutting is not possible (step S14). Therefore, according to the handy covey machine having the above configuration, it is not only possible to obtain sub-scanning by manual scanning, to read the document A and print the read data, but also to have a certain width in the main scanning direction X. This makes it possible to cut out and print only specific document data that is continuous in the sub-scanning direction Y. In this case, 2 to determine the cutting position X l + X2
Rather than setting two zumbling areas A and B based on the first black data detection position from the beginning and end of the read image data, the second zumbling area is set after a predetermined length N from the first black data detection position. Since the black character detection position is set as a reference, the image data to be read is surrounded by black frames Bl and B2 as shown in FIG. Even if the data state is such that a part of the black frames Bl and B2 intersect at the rear end, the black frames Bl. Sampling area A.82 is used as a reference. Since area A.B is never set, the area A.B is never set. B
It is possible to prevent problems such as character data not being included in the file. Therefore, it is possible to reliably cut out and print only the necessary character string data, regardless of the pattern around the image data to be read. In the above embodiment, as shown in FIG. 4, the predetermined number of black characters for the black character number distribution for detecting the cutting position of the read image data is set uniformly L in the reading width direction. As shown in FIG. 7, for example, as shown in FIG. 7, the minimum number of black characters L is set independently upward and downward from the center of the reading convergence. L
2 is detected, and a predetermined value 1ii is set for each minimum surplus number L,, L2.
L. The number of surplus L that is added. l+LO2 may be set as the upper cutting f:H i, threshold and the lower cutting threshold from the center of the scanning width, respectively.
Even if there is black data crossing in the main scanning direction By setting the thresholds Lo1 and L.2, it is possible to reliably extract only the necessary character string data. [Effects of the Invention] As described above, according to the present invention, the a reading means for reading drawn information of an arbitrary length with a predetermined reading width; a storage means for storing the data read by the reading means; A black character distribution detecting means for detecting the black character number distribution in the reading width direction of the read length data, etc., and a black character distribution detecting means for detecting the black character number distribution in the reading width direction of the length read data. valid data detection means for detecting the range of valid read data read at approximately the center of the reading width; and only the valid read data detected by the valid data detection means from the storage means. Since it is equipped with a data output means for outputting data, even if adjacent unnecessary data is read along with specific data on the required document, it is possible to extract only the necessary data and print it out. An image data reading device can be provided.

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

第1図は本発明の小型画像データ読取り装置の一実施例
に係わるハンディコビー機の回路構成を示すブロック図
、第2図は原稿に対する読取り状態を示す図、第3図は
読取りデータに対する切出し位置サンプリング領域を示
す図、第4図はサンプリング領域の黒字数分布及びその
切出し位置を示す図、第5図は読取りデータに対する切
出l2ラインの設定状態を示す図、第6図は読取りデー
タの切出し処理を示すフローチャート、第7図は本発明
の他の実施例におけるサンプリング領域の黒字数分布及
びその切出し位置を示す図である。 11・・・制御部、12・・・イメージセンサ、1. 
2 a・・・光源、12b・・・LED駆動回路、13
・・2値化部、14・・・画像データメモリ、15・・
・プリント部、16・・・ローラ、17・・・エンコー
グディスク、18a,18b,  ・・・スリット、1
9・・・送受先部、20・・・エンコーダ、21・・・
画像データメモリアドレス制御部、22・・・黒字数計
数部、23・・・数値データメモリ、24・・・切出し
位置判断部、25・・・演算部、26・・・切出し位置
アドレス記憶部、27・・・切出し位置確認部、28・
・・報音部。
FIG. 1 is a block diagram showing the circuit configuration of a handy cobby machine according to an embodiment of the compact image data reading device of the present invention, FIG. 2 is a diagram showing the reading state for a document, and FIG. 3 is a diagram showing the cutting position for the read data. A diagram showing the sampling area, Figure 4 is a diagram showing the distribution of the number of black characters in the sampling area and its extraction position, Figure 5 is a diagram showing the setting state of the extraction 12 line for the read data, and Figure 6 is an illustration of the extraction of the read data. FIG. 7 is a flowchart showing the processing, and is a diagram showing the distribution of the number of black characters in the sampling area and its extraction position in another embodiment of the present invention. 11...Control unit, 12...Image sensor, 1.
2a...Light source, 12b...LED drive circuit, 13
...Binarization unit, 14...Image data memory, 15...
・Print section, 16...Roller, 17...Encog disk, 18a, 18b,...Slit, 1
9... Sending/receiving destination part, 20... Encoder, 21...
Image data memory address control unit, 22... Surplus number counting unit, 23... Numerical data memory, 24... Cutting position determining unit, 25... Calculating unit, 26... Cutting position address storage unit, 27... Cutting position confirmation section, 28.
...report department.

Claims (1)

【特許請求の範囲】 原稿上に描かれた情報を所定の読取り幅で任意の長さ読
取る読取り手段と、 この読取り手段により読取られたデータを記憶する記憶
手段と、 少なくとも上記読取りデータの先頭から所定長さの読取
りデータ及び後尾から所定長さの読取りデータの読取り
幅方向に対する黒字数分布を検出する黒字分布検出手段
と、 この黒字分布検出手段により得られた読取り幅方向に対
する黒字数分布に基づき上記記憶手段に記憶された読取
りデータに対し該読取り幅の略中央部にて読取られた有
効読取りデータの範囲を検出する有効データ検出手段と
、 この有効データ検出手段により検出された有効読取りデ
ータのみを上記記憶手段から出力させるデータ出力手段
と、 を具備したことを特徴とする小型画像データ読取り装置
[Scope of Claims] A reading means for reading information drawn on a manuscript for an arbitrary length with a predetermined reading width; a storage means for storing data read by the reading means; and at least from the beginning of the read data. black character distribution detection means for detecting the black character number distribution in the reading width direction of read data of a predetermined length and read data of a predetermined length from the rear end; and based on the black character number distribution in the reading width direction obtained by the black character distribution detection means. valid data detection means for detecting the range of valid read data read at approximately the center of the read width of the read data stored in the storage means; and only the valid read data detected by the valid data detection means. A compact image data reading device comprising: data output means for outputting from the storage means;
JP1188313A 1989-02-08 1989-07-20 Image data reader Expired - Fee Related JP3018350B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1188313A JP3018350B2 (en) 1989-07-20 1989-07-20 Image data reader
US07/477,232 US5083218A (en) 1989-02-08 1990-02-08 Hand-held image reading apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1188313A JP3018350B2 (en) 1989-07-20 1989-07-20 Image data reader

Publications (2)

Publication Number Publication Date
JPH0352451A true JPH0352451A (en) 1991-03-06
JP3018350B2 JP3018350B2 (en) 2000-03-13

Family

ID=16221417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1188313A Expired - Fee Related JP3018350B2 (en) 1989-02-08 1989-07-20 Image data reader

Country Status (1)

Country Link
JP (1) JP3018350B2 (en)

Also Published As

Publication number Publication date
JP3018350B2 (en) 2000-03-13

Similar Documents

Publication Publication Date Title
JPH1158844A (en) Handy printer system
US4897735A (en) Image processing apparatus for multi-media copying machine
AU2002210248A1 (en) Digital photograph duplication system with image quality restoration
IL155471A (en) Digital photograph duplication system with image quality restoration
JPH0415661B2 (en)
KR930021396A (en) Sequential Color Printer
JPH0352451A (en) Small-sized image data reader
JP2864379B2 (en) Image data reader
JPH0426272A (en) Data reader
JPS642313B2 (en)
US4970550A (en) Copying system capable of designating a copying area
JPH0367391B2 (en)
JPS61258756A (en) Pen type printer
JPH0983691A (en) Picture processor and its method
JPH07245680A (en) Image reader and copying machine incorporating it
JP2822420B2 (en) Manual scanning reader
JP2925275B2 (en) Optical character reader
JPH08227455A (en) Braille reader
JP3667536B2 (en) Image processing system
JP2000261603A (en) Scanner and scanner original reading device and recording medium with storing scanner driver program stored therein
JPH0553253B2 (en)
JPH06987A (en) Printing density determination device
JP2788905B2 (en) Paper detection device
JP2734597B2 (en) Manual scanning printer
JPH02202467A (en) Printing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees