JPS63111583A - Image input device - Google Patents
Image input deviceInfo
- Publication number
- JPS63111583A JPS63111583A JP61255636A JP25563686A JPS63111583A JP S63111583 A JPS63111583 A JP S63111583A JP 61255636 A JP61255636 A JP 61255636A JP 25563686 A JP25563686 A JP 25563686A JP S63111583 A JPS63111583 A JP S63111583A
- Authority
- JP
- Japan
- Prior art keywords
- image
- inclination
- circuit
- image input
- output
- 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
Links
- 230000003287 optical effect Effects 0.000 claims 1
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000005286 illumination Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000032258 transport Effects 0.000 description 1
Landscapes
- Character Input (AREA)
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、帳票搬送装置における帳票の傾き分補正する
画像入力装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image input device for correcting the inclination of a form in a form conveying device.
従来の装置は、特開昭59−151270号公報に記載
のように人力画像傾き量を測定し画像の傾きご補正し文
字認識を行なう事は述べられているが、傾き量により画
像を修正する点については言及されていなかりた。Conventional devices manually measure the amount of image tilt, correct the image tilt, and perform character recognition, as described in Japanese Patent Application Laid-Open No. 59-151270, but the image is corrected based on the amount of tilt. There was no mention of that point.
上記従来技術は入力した画像を回転修正する点について
は述べられていない為、同一装置で、文字情報と画像情
報を同時に入力する様な装置には不充分な技術となる。Since the above-mentioned prior art does not mention rotational correction of an input image, it is insufficient for a device in which character information and image information are input simultaneously in the same device.
本発明は上記問題点を解決できる画像入力装置を提供す
ることにある。An object of the present invention is to provide an image input device that can solve the above problems.
上記目的は、入力された画像の上辺又は四辺の傾き量を
測定し、この傾き量により入力された画像を回転修正し
、出力する事により容易に達成できる。The above object can be easily achieved by measuring the amount of inclination of the upper side or four sides of the input image, correcting the rotation of the input image based on the amount of inclination, and outputting the resultant image.
文字情報を入力する装置はOCRとして製品化されてい
る。OCRでは文字情報を入力する補助手段としてフォ
ーマット情報を用いている。フォ−マノト情報には帳票
長さ、帳票幅、帳票上の文字入力位置等が登録されてい
る。上記OCRに、画像情報も人力するようにした装置
に対しても、上記フォーマット情報を用いる事ができる
為、帳票上辺又は四辺の傾き量を測定し、画像エリアに
対し、回転修・正する事ができる為・スキーしてとり込
まれた帳票上の画像情報も、原画像とほぼ同一に復元し
て出力できる様になる。A device for inputting character information has been commercialized as an OCR. OCR uses format information as an auxiliary means for inputting character information. The format information includes the length of the form, the width of the form, the character input position on the form, and the like. The above format information can also be used for OCR devices that manually input image information, so it is possible to measure the amount of inclination of the top side or four sides of the form, and perform rotation correction/correction for the image area. Image information on a form that has been imported by skiing can also be restored and output almost identical to the original image.
以下、不発明の一実施例号笛1ス及により説明する。こ
こで1は幅票2が走行する方向、5は照明ランプ、4は
レンズ、5は光電変換部、6は光電変換部5の画像出力
を記憶している画像メモリ、7は帳票の傾きを計測する
傾き計測回路、8は画像回転回路、9は修正画像出力部
である。第2図は、画像メモリ6より傾き計測回路7に
より傾き及び傾き方向?求め、画像エリア2抽出し、画
像回転回路8により回転修正し、修正画像出力部9に出
力される。一連の動作を示している。帳票の裏当面企黒
又は灰となし、帳票が光電変換部5の視野内にない時は
その出力を黒又は灰レベルとなるようにする。今、説明
を簡単にするために第2図のように帳票が左に傾いてい
るものとする。まず、図示してない制御部は帳票1枚ご
送行せしめ・光電変換部5の視野に搬送すると同時に全
回路を初期化する。搬送された帳票は光電変換部5の視
野に入る直前から、照明ランプ3により照明し・その反
射光を結像レンズ4により光電変換部5の構成部品であ
るCCDセンサーに結像し、A/D変換、2値化し、画
像メモリ乙に格納する。帳票後端が光電変換部5の視野
を脱出した直後に格納処理は制止される。従って画像メ
モリ6の内容は第2図Aに示す通りになる。次に画像の
傾きを求める。先に述べた様に画像の格納を光電変換部
5の直前に行なう様にしているので、画像メモリ乙の開
始アドレスから帳票先端が存在する範囲は開始アドレス
刀)も、はぼ一定アドレス附に定まっている。開始アド
レスの瓦から右に走査していき黒ビツト数白ビツト数、
左右アドレス数、及び上下アドレス数をカウントシ、最
大黒ビット数がら減少する左右アドレス及び上下アドレ
スご保持する。Hereinafter, one embodiment of the invention will be explained using the first whistle. Here, 1 is the direction in which the width sheet 2 runs, 5 is an illumination lamp, 4 is a lens, 5 is a photoelectric converter, 6 is an image memory that stores the image output of the photoelectric converter 5, and 7 is the inclination of the sheet. 8 is an image rotation circuit, and 9 is a corrected image output unit. FIG. 2 shows the inclination and inclination direction determined by the inclination measurement circuit 7 from the image memory 6. The image area 2 is extracted, rotated and corrected by the image rotation circuit 8, and outputted to the corrected image output section 9. It shows a series of actions. The back of the form is set to black or gray for the time being, and when the form is not within the field of view of the photoelectric conversion unit 5, its output is set to a black or gray level. To simplify the explanation, assume that the form is tilted to the left as shown in Figure 2. First, a control section (not shown) transports one form into the field of view of the photoelectric conversion section 5, and at the same time initializes all circuits. Immediately before the transported form enters the field of view of the photoelectric conversion unit 5, it is illuminated by the illumination lamp 3, and the reflected light is imaged by the imaging lens 4 on the CCD sensor, which is a component of the photoelectric conversion unit 5, and the A/ D-convert, binarize, and store in image memory B. Immediately after the trailing edge of the form leaves the field of view of the photoelectric conversion unit 5, the storage process is stopped. Therefore, the contents of the image memory 6 are as shown in FIG. 2A. Next, find the tilt of the image. As mentioned above, since the image is stored immediately before the photoelectric conversion unit 5, the range from the start address of the image memory 2 to where the leading edge of the form exists is also the start address (2) at a constant address. It is fixed. Scanning from the start address tile to the right, the number of black bits, the number of white bits,
Counts the number of left and right addresses and the number of top and bottom addresses, and holds the left and right addresses and top and bottom addresses that decrease from the maximum number of black bits.
又白ビツト数の最大数が始まる左右アドレス及び上下ア
ドレス?保持する。最大黒ビツトアドレスは第2図にお
けるアドレス11.12として与えられ、最大白ビツト
アドレスは10.13として与えられた事になる。帳票
上辺での傾き量θはアドレスの差分として与えられ、次
式になる。Also, what are the left and right addresses and top and bottom addresses where the maximum number of white bits starts? Hold. The maximum black bit address is given as address 11.12 in FIG. 2, and the maximum white bit address is given as 10.13. The amount of inclination θ on the top side of the form is given as a difference between addresses, and is expressed by the following equation.
θ=tan’−’ユニエし
く13−12)
又〜傾きの方向はアドレス(13−12)の量にて判定
し、アドレス(13−12)>Oの時は左傾き、アドレ
ス(13−12)<0の時は右傾き、アドレス(13−
12)=0の時は傾き0と定義する。θ=tan'-'Yunieshuku13-12) Also, the direction of the tilt is determined by the amount of address (13-12), and when address (13-12)>O, it is tilted to the left, and address (13-12) ) < 0, tilt to the right, address (13-
12) When = 0, the slope is defined as 0.
一万、画像エリアは図示してないフォーマット情報に帳
票先端からの位置14、帳票左端からの位置15及び画
像エリアtx77Lにより与えられており、先端位置、
左端位置は先に説明した、傾きを求めたアドレス10.
13及び傾きθにより求まり、Bに示す様に画像抽出3
行なう。次に画像回転について第3図により説明Tる。10,000, the image area is given in format information (not shown) by position 14 from the leading edge of the form, position 15 from the left edge of the form, and image area tx77L, and the leading edge position,
The left end position is the address 10. where the slope was calculated, as explained earlier.
13 and the slope θ, and as shown in B, image extraction 3
Let's do it. Next, image rotation will be explained with reference to FIG.
まず抽出した画像(状態B)に対し2−abxθの画像
移動を行なう(状態C)。次に画像を左90°回転する
(状態D)。次にx jitrbθの画像移動2行ない
(状態E)、最後に画像を右90°回転する事により、
傾きθ分だけ回転した画像Fが求まる。First, the extracted image (state B) is moved by 2-abxθ (state C). Next, the image is rotated 90 degrees to the left (state D). Next, move the image by x jitrbθ two lines (state E), and finally rotate the image 90 degrees to the right.
An image F rotated by the inclination θ is obtained.
ここで絶対視野から逸脱する帳票に対してはエラー報告
し、上記で説明した傾き計測、画像回転動作は行なわな
い様にする事はもちろんである。Of course, an error report is made for a form that deviates from the absolute field of view, and the above-described tilt measurement and image rotation operations are not performed.
本発明によれば、帳票搬送等で発生する傾き量(スキー
)を帳票上辺で計測し、傾き量だけ、画像エリアを回転
修正するので、人手?介さないで原帳票とほぼ同一の画
像ご自動的に得られる。According to the present invention, the amount of inclination (skiing) that occurs during document transportation, etc. is measured on the top side of the document, and the image area is rotated and corrected by the amount of inclination. An image almost identical to the original document can be automatically obtained without any intervention.
又、画像エリアを帳票全体とする事は容易にできる。こ
の時の応用として、背景を白に埋め込んで出力する事は
容易に可能となる。Furthermore, it is easy to set the entire document as the image area. As an application in this case, it is easily possible to embed the background in white and output it.
第1図は本発明による画像入力装置の全体図、第2図は
画像メモリの内容を示す図、第6図は、画像回転フロー
を示す図である。
2・・・帳票、 6・・・画像メモリ、7・
・・傾き計測回路、 8・・・画像回転回路。FIG. 1 is an overall diagram of an image input device according to the present invention, FIG. 2 is a diagram showing the contents of an image memory, and FIG. 6 is a diagram showing an image rotation flow. 2...Form, 6...Image memory, 7.
...Tilt measurement circuit, 8...Image rotation circuit.
Claims (1)
行機構と、これを照明しその反射光をレンズを介して結
像せしめ、帳票上の画像を電気信号に交換する光学系と
、帳票端を検出する回路と、全面走査分の画像を記憶す
る回路と、この記憶回路出力から白点数の変化率を計算
する回路とを備え、帳帳の上辺又は四辺部分における白
色部分の傾きを計測し、この傾きを指定されている画像
入力部分に対し回転補正する事を特徴とする画像入力装
置。1. A traveling mechanism that causes a form to travel on a ledger transport path with a black background; an optical system that illuminates this, forms an image of the reflected light through a lens, and exchanges the image on the form into an electrical signal; It is equipped with a circuit that detects the edge of a form, a circuit that stores images for the entire scan, and a circuit that calculates the rate of change in the number of white points from the output of this storage circuit. An image input device characterized by measuring the tilt and correcting the rotation of a designated image input portion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61255636A JPS63111583A (en) | 1986-10-29 | 1986-10-29 | Image input device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61255636A JPS63111583A (en) | 1986-10-29 | 1986-10-29 | Image input device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63111583A true JPS63111583A (en) | 1988-05-16 |
Family
ID=17281496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61255636A Pending JPS63111583A (en) | 1986-10-29 | 1986-10-29 | Image input device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63111583A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05174184A (en) * | 1991-12-24 | 1993-07-13 | Oki Electric Ind Co Ltd | Optical character reader |
-
1986
- 1986-10-29 JP JP61255636A patent/JPS63111583A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05174184A (en) * | 1991-12-24 | 1993-07-13 | Oki Electric Ind Co Ltd | Optical character reader |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6301022B1 (en) | Correction method of document inclination angle | |
JP4513622B2 (en) | Image reading device | |
KR100505546B1 (en) | A scanner system with automatic compensation of positioning errors | |
JPS62220843A (en) | Inspection device for printed matter | |
JPS63111583A (en) | Image input device | |
JPS6121671A (en) | Original reader | |
JP2000244728A (en) | Device for correcting tilt of picture, original reader and image forming device | |
JPH033271B2 (en) | ||
ITRM970359A1 (en) | IMAGE READING APPARATUS | |
JP2556894B2 (en) | Print quality inspection device and method | |
JPH11298683A (en) | Image processor and image reader | |
JPS5935280A (en) | Picture processor | |
JPS6263382A (en) | Picture reading device | |
JP2618923B2 (en) | Document reading device | |
JPH046958Y2 (en) | ||
JPH0326591B2 (en) | ||
JPH06253099A (en) | Image reading method | |
JP2004112101A (en) | Image reader | |
JP2973475B2 (en) | Document leading edge detection method of document reading device | |
TW382174B (en) | Binary image data reader and decoding method thereof | |
JPH0498971A (en) | Image scanner | |
JPH0270170A (en) | Original reader | |
JPH09224128A (en) | Image reader | |
JPH0526121B2 (en) | ||
JPS622773A (en) | Original reading device |