JPS59226978A - Skew correction system - Google Patents

Skew correction system

Info

Publication number
JPS59226978A
JPS59226978A JP58101277A JP10127783A JPS59226978A JP S59226978 A JPS59226978 A JP S59226978A JP 58101277 A JP58101277 A JP 58101277A JP 10127783 A JP10127783 A JP 10127783A JP S59226978 A JPS59226978 A JP S59226978A
Authority
JP
Japan
Prior art keywords
image
scan
picture
skew
memory
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
JP58101277A
Other languages
Japanese (ja)
Inventor
Akira Sakurai
彰 桜井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP58101277A priority Critical patent/JPS59226978A/en
Publication of JPS59226978A publication Critical patent/JPS59226978A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To correct the tilt of a general document picture by obtaining the dispersion of the oblique shadow value on a scan line and using the scan number N which minimizes said shadow value to perform the 1/N scan of a picture image. CONSTITUTION:The dispersion sigma generated from the oblique shadow value on each scan line for a period from the start of appearance of a black picture element to disappearance of the black picue element or in a range up to several hundred lines is obtained by a sigma calculating circuit 5. Then the tilt of pictures is reduced as the dispersion sigma is reduced in terms of the same picture. Thus a skew detecting circuit 6 evaluates the obtained dispersion sigma to detect the tilting degree of pictures. Then the 1/N scan is performed via a controller 2 for pictures stored in a picture memory 1 by means of the scan number N which minimizes the dispersion sigma in accordance with the result of detection of the circuit 6. As a result, the skew corrected picture signals with which no tilt is produced with pictures are delivered successively from a memory 1.

Description

【発明の詳細な説明】 技術分野 本発明は、スキャナによって読み取られる画像の傾きを
補正するスキュー補正方式番こ関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a skew correction method for correcting the skew of an image read by a scanner.

従来技術 一般に、OCRにあって、スキャナにまり読み取られる
画像に傾きを生じていると、切り出された文字のパター
ン認識を行なわせる際にエラーまたにデジットを生ずる
おそれが多分にあるものにな9てしまい、そのため文字
切出しの前処理としてスキュー補正を行なわせる必要が
ある。
PRIOR ART In general, in OCR, if the image that is captured by the scanner and read is tilted, there is a high possibility that errors or digits will occur when pattern recognition is performed on cut-out characters9. Therefore, it is necessary to perform skew correction as a preprocessing for character extraction.

従来、この種のスキュー補正方式としては、予め傾き検
出のためのマークやラインなどが設けられた特殊な帳票
を使用して、スキャナによる読取時にそのマークなどの
検知をなして帳票の傾きの程度なわり出し、その検出さ
れた傾きに応じて画像の位置変換のための演算処理をな
して画像メモリ内のデータ書換えを行なわせるようにし
ている。
Conventionally, this type of skew correction method uses a special form that has marks or lines for tilt detection in advance, and detects the marks when it is read by a scanner to determine the degree of skew of the form. According to the detected inclination, arithmetic processing is performed to transform the position of the image, and data in the image memory is rewritten.

しかし、このような従来のスキュー補正方式でに、予め
マークやラインなどが付された特殊な帳票を用いなけれ
ばその傾き検出をなすことができず、一般の文書では適
用不可となってその画像の傾きを何ら補正することがで
きないものにな7ている。
However, with these conventional skew correction methods, the skew cannot be detected without the use of a special form with marks or lines attached in advance, making it impossible to apply it to general documents. It is now impossible to correct the inclination of the image in any way.

目的 本発明は以上の点を考慮してなされたもので、一般の文
書画像の傾きを補正することができるようにしたスキュ
ー補正力式を提供するものである。
Purpose The present invention has been made in consideration of the above points, and provides a skew correction force formula that can correct the skew of general document images.

構成 以下、本発明の一実施例について詳述する。composition An embodiment of the present invention will be described in detail below.

本発明によるスキュー補正力式にあっては、スキャナに
よる定食ライン上における斜影値(黒画素数のカウント
値)の分散σを求めることによって画1象の1頃きり程
度なわり出し、その斜影値の分散σを最小にする定食数
Nを用いて、スキャナによる読取画像のデータが蓄積さ
れている画像メモリの1/N定食を行なわせることによ
りスキュー補正な実行させるようにしている。
In the skew correction force formula according to the present invention, by determining the variance σ of the shading value (count value of the number of black pixels) on the set meal line by the scanner, the skew value is determined at around 1 of the image, and the skew value The skew correction is performed by using the number N of set meals that minimizes the variance σ of 1/N of the image memory in which data of images read by the scanner is stored.

第1図は本発明によるスキュー補正力式を具体的に実施
するためのシステム構成例を示すもので、スキャナ(図
示せず〕によって1ラインごとに順次走査して読み取ら
れ、かつサンプリングして二値化された入力画信号を逐
次記憶していく画像メモリ1およびそのメモリコントロ
ーラ2.入力画信号の各走査ライン上における黒画素数
をカウントして斜影値を求めるカウンタ3.その求めら
れた各71:査ライン上の斜影値を記憶してい〈斜影メ
モリ4.そのメモリ内容から斜影値の分散σを求めるσ
算出回路5.その求められた分散σを評価値としてスキ
ュー検出をなしてメモリコントローラ2に走査指令を力
えるスキュー検出回路57)hらなっている。
FIG. 1 shows an example of a system configuration for concretely implementing the skew correction force formula according to the present invention. An image memory 1 that sequentially stores converted input image signals and its memory controller 2. A counter that counts the number of black pixels on each scanning line of the input image signal to obtain a shading value. 71: Stores the shading values on the scan line (shading memory 4. Calculate the variance σ of the shading values from the memory contents) σ
Calculation circuit 5. A skew detection circuit 57) h performs skew detection using the obtained variance σ as an evaluation value and outputs a scanning command to the memory controller 2.

このような構成にあって、本発明では、σ算出回路5に
より黒画素が出現しはじめてから黒画素が存在しなくな
るまでもしくは百数士ラインまでの各走査ライン上の斜
影値による分散σを求め、同一画像であれば分散σが少
ないほど画像の傾きが小さくなるので、スキュー検出回
路6においてその求められた分散σを評価することによ
って画像の傾きの程度を検出させ、その検出結果に応じ
て斜影値の分散σを最小に1−るNを用いてメモリコン
トローラ2を介して画像メモリ1に蓄積されている画像
のl/N走査(第2図診照)を実行させる。し〃工して
、その1/N定査によって画像メモIJ またらに画像
の傾きのないスキュー補正された画信号が順次出力され
、OCRの文字切出し装置などへ送られていくことにな
る。
With such a configuration, in the present invention, the σ calculation circuit 5 calculates the variance σ based on the oblique shadow value on each scanning line from the time a black pixel begins to appear until the black pixel ceases to exist or up to the 100-odd line. , for the same image, the smaller the variance σ, the smaller the image tilt. Therefore, the skew detection circuit 6 detects the degree of image tilt by evaluating the calculated variance σ, and depending on the detection result, The image stored in the image memory 1 is subjected to l/N scanning (diagnosis in FIG. 2) via the memory controller 2 using 1-N to minimize the variance σ of the oblique values. Then, by performing the 1/N regular scan, the image memo IJ and skew-corrected image signals with no image inclination are sequentially output and sent to an OCR character cutting device or the like.

その際、走査数Nを微小量変化させていたのでは処理に
時間を要してしまうため、許容限度の範囲内で画像の傾
きを補正させたいのであれば、その範囲を基準としてN
の変化量を適宜決定するようにすればよい。例えば、イ
ンチlOのタイプ文字で行間ピッチがインチ3のときに
は傾き許容範囲を1.4°(Nキ41)2行間ピッチが
インチ6のときには傾き許容範囲を0.2°(N=28
6)程度に抑えればよい。
At this time, if the number of scans N is changed by a minute amount, it will take time to process, so if you want to correct the tilt of the image within the allowable limit, use that range as a reference
The amount of change may be determined appropriately. For example, if the line spacing is 3 inches for inch lO type characters, the allowable slant range is 1.4° (N key 41), and when the line pitch is 6 inches, the allowable slant range is 0.2° (N = 28
6).

いま、傾き許容範囲を0.2°にとりた場合における画
像メモリlの1/N ffi査について説明する。
Now, a 1/N ffi scan of the image memory l in the case where the permissible tilt range is set to 0.2 degrees will be described.

まず、+0.2°すなわち1/286  で画像メモリ
1の読出し走査を行なわせ、その読出された各走査ライ
ン上における画信号にもとづいてカウンタ3゜斜影メモ
リ4およびσ算出回路5によって斜影値の分散σ2を求
め、スキュー検出回路6により画像メモリ1への画信号
の書込み時に先に求められている斜影値の分散σ1との
比較をなして以下のような方間判定を行なわせる。
First, the image memory 1 is read out and scanned at +0.2°, that is, 1/286, and based on the image signals on each read scanning line, the counter 3° oblique shadow memory 4 and the σ calculation circuit 5 calculate the oblique value. The variance σ2 is determined, and the skew detection circuit 6 compares it with the variance σ1 of the shading value previously determined when writing the image signal to the image memory 1, thereby making the following determination.

σ1≧σ2のとき、DIR=“1”(正方向)σ1〈σ
2のとき、DIR=“0”(負方向)次に、I)rR=
“l”と判定された場合には、スキュー検出回路6にメ
モリコントローラ2を介して画像メモIJ lの順次正
方向に傾いた1/N走査〔0,4゜→N= 143 、
0.6°→N=95.・・・〕を行なわせ、σn−1く
σ。になったとき1回前のNを採用する。またDIR=
“0″と判定された場合には、スキュー検出回路6はメ
モリコントローラ2を介して画像メモ’Jlの順次負方
向に傾いた1/N走査(−0,2°。
When σ1≧σ2, DIR="1" (positive direction) σ1<σ
2, DIR=“0” (negative direction), then I) rR=
If it is determined to be "l", the skew detection circuit 6 sends the image memo IJl through the memory controller 2 to sequentially scan 1/N of the image memo IJl tilted in the positive direction [0.4°→N=143,
0.6°→N=95. ...], σn-1 × σ. When , the previous N is adopted. Also, DIR=
If the skew detection circuit 6 is determined to be "0", the skew detection circuit 6 sequentially scans the image memo 'Jl by 1/N (-0, 2 degrees) tilted in the negative direction via the memory controller 2.

−〇、4°、−0.6°、・・・〕を行なわせ、σ。−
5〈σ。になったとき1回前のNを採用する。
-〇, 4°, -0.6°,...], and σ. −
5〈σ. When , the previous N is adopted.

このようにNを画像の傾き許容範囲内で変化させながら
画像メモリ1の1/N 疋iを行なわせることにより、
処理時間の短縮化を図った効率の良いスキュー補正を実
行させることができるようになる。
By performing 1/N i of image memory 1 while changing N within the image tilt tolerance range in this way,
It becomes possible to perform efficient skew correction with a reduction in processing time.

−また、Nを画像の傾き許容範囲内で変化させながら画
像メモリlの1/N走食を行なわせる際、入力画信号を
複数の画像メモリにそれぞれ蓄積させておき、各斜影値
の分散σを同時に並行して求めろようにすれば、より高
速での処理を行なわせることが可能となる。
-Also, when performing 1/N scanning of the image memory l while changing N within the image inclination tolerance range, input image signals are stored in multiple image memories respectively, and the variance σ of each oblique value is If they are calculated in parallel at the same time, it becomes possible to perform the processing at higher speed.

いま、例えばインチ10のタイプ文字で行間ピッチがイ
ンチ6の場合のようなときには前述のように画像メモリ
のl/N疋査を行なわせる(口)数が2回となり、その
場合第3図に示1′ように画像メモリを走査画数分だけ
用意して並行処理を行なわせるようにすることができる
。すなわち、入力画信号を各画像メモ!J 11 、1
24こそれぞれ蓄積させるのと同時に、カウンタ31 
、斜影メモリ41.σ算出回路51カらなるifの系統
において画像の傾き許容範囲0°での斜影値の分散σを
求め、また第2゜第3の系統によ!ll谷画像メモIJ
 11 、12をそれぞれのN値により走査したときの
各斜影値の分散σを並行して求めて、スキュー検出回路
6で最小のびを与えるNを採用するようにする。
Now, for example, when the line spacing is 6 inches for a type character of 10 inches, the number of times the image memory is scanned is 2 as described above. As shown in Fig. 1', image memories corresponding to the number of scanned images can be prepared to perform parallel processing. In other words, record the input image signal for each image! J 11, 1
At the same time as accumulating each of the 24 items, the counter 31
, oblique shadow memory 41. In the if system consisting of 51 σ calculating circuits, the variance σ of the oblique shadow value is calculated when the image inclination tolerance range is 0°, and the second and third systems calculate the distribution σ. ll valley image memo IJ
11 and 12 are scanned using their respective N values, the variance σ of each oblique value is obtained in parallel, and the skew detection circuit 6 selects N that provides the minimum elongation.

効果 以上、本発明によるスキュー補正方式にあっては、スキ
ャナによって読み取られる2値画像の各走査ライン上に
おける斜影値の分散σを求める手段と、その斜影値の分
散σを最小にする走査数を用いてスキャナによって読み
取られた2値画像のデータが蓄積さ几ている画像メモリ
の1/N走査を行なわせる手段とをとることによってス
キャナによって読み取られる2値画像の傾きを補正させ
るようにしたもので、従来のように帳票上に付されたマ
ークなどによって画像の傾きを検出させることなく画像
処理手段によって画像の傾きの程度を判定させるように
しているため、何らマークなどが付されていない普通の
文書画像におけるスキュー補正を確実に行なわせること
ができるという優れた利点を有している。
As described above, the skew correction method according to the present invention includes a means for determining the variance σ of the shading values on each scanning line of a binary image read by a scanner, and a means for determining the number of scans that minimizes the variance σ of the shading values. and means for performing 1/N scanning of the image memory in which the data of the binary image read by the scanner is stored, thereby correcting the inclination of the binary image read by the scanner. However, since the image processing means is used to determine the degree of image inclination, instead of detecting the inclination of the image using marks placed on the form as in the past, ordinary documents without any marks or the like are used. This method has an excellent advantage of being able to reliably perform skew correction on document images.

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

第1図は本発明によるスキュー補正方式を具体的に実施
するためのシステム構成例を示すブロック図、第2図に
画像メモリの1/N走食状態を示  ″す図、第3図は
本発明を具体的に実施するための他のシステム構成例を
示すブロック図である。 1 、11 、12・・・画像メモリ 2 、21 、
22・・・メモリコントローラ 3 、31 、32 
、33  ・・・カウンタ 4 、41 、42 、4
3  ・・−斜影メモリ 5 、51 +52 、53
 ・・・σ算出回路 6・・・スキュー検出回路 出願人代理人  馬 井   消 −季 第1図 第2図
FIG. 1 is a block diagram showing an example of a system configuration for concretely implementing the skew correction method according to the present invention, FIG. 2 is a diagram showing a 1/N scanning state of the image memory, and FIG. It is a block diagram showing another system configuration example for concretely implementing the invention. 1, 11, 12... image memory 2, 21,
22...Memory controller 3, 31, 32
, 33... Counter 4, 41, 42, 4
3...-oblique shadow memory 5, 51 +52, 53
...σ Calculation Circuit 6...Skew Detection Circuit Applicant's Agent Masaaki Umai Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] スキャナによって読み取らnる2値画像の各走査ライン
上における斜影値の分散σを求める手段と、その斜影値
の分散σを最小番こする定食数を用いてスキャナによっ
て読み取られた2値画像のデータが蓄積されている画像
メそりのl/N 走査を行なわせる手段とをとることに
よってスキャナによって読み取られる2値画像の傾きを
補正させるようlζしたスキュー補正方式。
Data of the binary image read by the scanner using means for calculating the variance σ of the shading values on each scanning line of the n binary images read by the scanner, and a set number that minimizes the variance σ of the shading values. A skew correction method that corrects the inclination of a binary image read by a scanner by performing a 1/N scan of an image matrix in which 1/N is stored.
JP58101277A 1983-06-07 1983-06-07 Skew correction system Pending JPS59226978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58101277A JPS59226978A (en) 1983-06-07 1983-06-07 Skew correction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58101277A JPS59226978A (en) 1983-06-07 1983-06-07 Skew correction system

Publications (1)

Publication Number Publication Date
JPS59226978A true JPS59226978A (en) 1984-12-20

Family

ID=14296376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58101277A Pending JPS59226978A (en) 1983-06-07 1983-06-07 Skew correction system

Country Status (1)

Country Link
JP (1) JPS59226978A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349123B2 (en) 2004-03-24 2008-03-25 Lexmark International, Inc. Algorithms and methods for determining laser beam process direction position errors from data stored on a printhead
US7375738B2 (en) 2004-03-24 2008-05-20 Lexmark International, Inc. Electronic systems and methods for reducing laser beam process direction position errors

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349123B2 (en) 2004-03-24 2008-03-25 Lexmark International, Inc. Algorithms and methods for determining laser beam process direction position errors from data stored on a printhead
US7375738B2 (en) 2004-03-24 2008-05-20 Lexmark International, Inc. Electronic systems and methods for reducing laser beam process direction position errors

Similar Documents

Publication Publication Date Title
US7542608B2 (en) Method for automatically cropping image objects
US5077811A (en) Character and picture image data processing system
US4817174A (en) Image processing apparatus
JP3243894B2 (en) Shading image processing device
JPS59226978A (en) Skew correction system
JP3303246B2 (en) Image processing device
JPS58222382A (en) Correcting system for inclination of picture
US6661932B2 (en) Image input apparatus
JP2947126B2 (en) Original image capture device
JPH02141886A (en) Binarizing device for bar-code reader
JP2590099B2 (en) Character reading method
JP2824991B2 (en) Image identification method
JPS59135573A (en) Identifying system of photo region
JP2797655B2 (en) Image processing method and apparatus
JP3216165B2 (en) Image region identification device and image region identification method
JPS60204085A (en) Picture collating system
JPS61160180A (en) Discriminating device of character string direction
JPS63308471A (en) Picture signal binarization device
JP3086243B2 (en) Halftone dot area detection device
JP3436003B2 (en) Image processing device
JP2859603B2 (en) Method and apparatus for binarizing image data
JPS6250971A (en) Pattern discriminating device
JP3438484B2 (en) Image correction processing device
JPH10143607A (en) Image processor
JPH02199959A (en) Picture information reader