JPS6252337B2 - - Google Patents
Info
- Publication number
- JPS6252337B2 JPS6252337B2 JP55143238A JP14323880A JPS6252337B2 JP S6252337 B2 JPS6252337 B2 JP S6252337B2 JP 55143238 A JP55143238 A JP 55143238A JP 14323880 A JP14323880 A JP 14323880A JP S6252337 B2 JPS6252337 B2 JP S6252337B2
- Authority
- JP
- Japan
- Prior art keywords
- density
- screen
- value
- sum
- absolute value
- 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.)
- Expired
Links
- 239000000284 extract Substances 0.000 claims 2
- 238000000605 extraction Methods 0.000 claims 2
- 230000001186 cumulative effect Effects 0.000 description 16
- 238000012015 optical character recognition Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Character Input (AREA)
Description
【発明の詳細な説明】
本発明は、文書傾き補正装置、特にたとえば紙
面上の文字を読み取る光学的文字読取装置
(OCR)において、文字列方向等の事前情報が全
く与えられない自由な書式の文書画面に対して
も、画面の傾きを自動的に補正できるようした文
書傾き補正装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a document skew correction device, particularly an optical character reader (OCR) that reads characters on a paper, for example, in a free-format document skew correction device in which no prior information such as character string direction is given. The present invention relates to a document tilt correction device that can automatically correct the tilt of a document screen.
OCR等を用いて文字を読取る場合、まず最初
に画面の傾きを補正しておく必要がある。従来、
用紙の傾きを補正する手法として、予め用紙に文
字の方向を示すガイドマークを印刷しておき、そ
のガイドマークを基準にするもの、また用紙枠を
検出してそれを基準にするもの等があつた。しか
し前者の場合には予め用紙にガイドマークを印刷
しておかなければならず、また後者の場合には切
り抜きや複写する際に傾いて複写されたものに対
しては傾き補正が出来ないという欠点があつた。 When reading characters using OCR etc., it is first necessary to correct the tilt of the screen. Conventionally,
There are two methods for correcting the paper inclination, such as printing guide marks on the paper in advance to indicate the direction of the characters and using those guide marks as a reference, and methods that detect the paper frame and use it as a reference. Ta. However, in the former case, guide marks must be printed on the paper in advance, and in the latter case, the skew cannot be corrected if the copy is skewed when cut out or copied. It was hot.
本発明は、これらの欠点を解決するために、文
字列の方向を示す傾き補正用のガイドマークを用
紙に印刷しなくても、また切り抜きや傾いて複写
された原稿の様に用紙枠が文字列方向と一致して
いなくても、その傾きが補正出来る様にすること
を目的としており、以下図面に従つて詳細に説明
する。 In order to solve these drawbacks, the present invention eliminates the need to print guide marks for skew correction on paper that indicate the direction of character strings, and eliminates the need to print guide marks on paper for tilt correction that indicate the direction of character strings. The purpose is to make it possible to correct the inclination even if it does not match the column direction, and will be described in detail below with reference to the drawings.
第1図は傾き補正の原理を説明する図である。
第1図中で、1は傾き補正を行なう文書データの
一例で、2は見出しの部分、3は本文中の1つの
文字列を示す。この文書データに対して複数方向
からのラスター走査を行ない、その濃度に応じて
得られる電気信号の量子化しその値を累積する。
1、0の2値に量子化した場合には累積値は走査
線上の黒部分の長さと等しくなる。第1図4,5
はそれぞれ方向6、方向7に走査して得られる濃
度累積値のヒストグラムである。ヒストグラム
4,5から明らかな様に文字の並んでいる方向と
走査方向が一致した場合にはヒストグラム上にピ
ーク8が明確に現われるので、この性質を利用し
て傾きを補正する。具体的には互いに隣接する走
査線における濃度累積値の差分の絶対値をとり、
全走査、又は一部分の走査についての和である濃
度累積値差分絶対値和を用いる。第1図図示の
9,10は濃度累積値の差分絶対値を示したもの
である。文書画面に対して複数方向からのラスタ
ー走査を行ない、それぞれ濃度累積値差分絶対値
和を求め、その値が最大となる様に傾きを補正す
る。全走査についての値を用いる場合には
となる様に傾き補正を行なう。ここでf(li)
は第i走査における濃度累積値、nは走査線数で
ある。 FIG. 1 is a diagram explaining the principle of tilt correction.
In FIG. 1, 1 is an example of document data to be subjected to skew correction, 2 is a heading, and 3 is one character string in the main text. This document data is raster scanned from a plurality of directions, the electrical signals obtained according to the density are quantized, and the values are accumulated.
When quantized into binary values of 1 and 0, the cumulative value is equal to the length of the black portion on the scanning line. Figure 1 4, 5
are histograms of cumulative density values obtained by scanning in directions 6 and 7, respectively. As is clear from histograms 4 and 5, when the direction in which the characters are lined up matches the scanning direction, a peak 8 clearly appears on the histogram, and this property is utilized to correct the inclination. Specifically, the absolute value of the difference in cumulative density values between adjacent scanning lines is taken,
The sum of the absolute values of cumulative density differences is used, which is the sum of all scans or a portion of scans. Reference numerals 9 and 10 in FIG. 1 indicate the absolute difference values of cumulative density values. Raster scanning is performed on the document screen from a plurality of directions, and the sum of the absolute values of cumulative density value differences is determined for each, and the inclination is corrected so that the value becomes the maximum. When using values for all scans, Perform tilt correction so that where f(l i )
is the cumulative density value in the i-th scan, and n is the number of scanning lines.
第2図は本発明の一実施例構成を示す。ラスタ
ー走査によつて得られる画素の量子化濃度値をレ
ジスタ11に加算して行き、一本のラスター走査
が終了すると差分絶対値回路12を用いて、レジ
スタ11と一走査前の濃度累積値が保持されてい
るバツフアメモリ13との差分の絶対値をとりそ
の値をレジスタ14に加算すると同時にレジスタ
11の内容をバツフアメモリ13に書き、レジス
タ11をクリアする。画面全体のラスター走査が
終了した時にレジスタ14の内容をメモリ15に
記憶しレジスタ14をクリアする。16はメモリ
15の内容を見て濃度累積値差分絶対値和が最大
になる様に実際の画面に回転を加え角度を補正す
る角度補正装置である。 FIG. 2 shows the configuration of an embodiment of the present invention. The quantized density value of the pixel obtained by raster scanning is added to the register 11, and when one raster scan is completed, the difference absolute value circuit 12 is used to add the density cumulative value of the previous scan to the register 11. The absolute value of the difference from the held buffer memory 13 is taken, and the value is added to the register 14. At the same time, the contents of the register 11 are written to the buffer memory 13, and the register 11 is cleared. When raster scanning of the entire screen is completed, the contents of the register 14 are stored in the memory 15 and the register 14 is cleared. An angle correction device 16 looks at the contents of the memory 15 and corrects the angle by rotating the actual screen so that the sum of the absolute values of the cumulative density value differences is maximized.
本発明の場合、入力する用紙の角度を実際に変
えて入力する場合だけでなく既に画像メモリ等に
量子化されたデータが記憶されている場合にも適
用出来ることは明らかである。またラスター走査
時の信号を量子化せずにアナログ信号のまま直接
積分器等に入力すること等によつても同等の機能
を実現出来る事も明らかである。 It is clear that the present invention can be applied not only to the case where input paper is input by changing its angle, but also to the case where quantized data is already stored in an image memory or the like. It is also clear that the same function can be achieved by directly inputting the analog signal to an integrator or the like without quantizing the raster scanning signal.
以上説明した様に、本発明によれば、OCRを
用いて文字を読み取る場合等において、用いられ
る用紙の中に傾き補正用のガイドマークがなくて
も、またさらには複写の際などで原稿を傾いて複
写されたものであつても、画面の傾きを補正する
ことが出来る。また本発明の場合、主に印刷文書
に対して大きな効果を持つが、手書きの書類に対
しても、また文字以外に表やグラフ等をも含む画
面に対しても有効である。 As explained above, according to the present invention, when reading characters using OCR, even if the paper used does not have guide marks for tilt correction, or even when copying, etc. Even if the copy is tilted, the tilt of the screen can be corrected. Furthermore, although the present invention is largely effective for printed documents, it is also effective for handwritten documents and for screens that include tables, graphs, etc. in addition to text.
第1図は本発明装置の原理を説明する図、第2
図は本発明の一実施例構成を示す。
1……傾き補正を行なう文書データの一例、2
……見出しの部分、3……本文中の1つの文字
列、4,5……方向6,7に走査して得られる濃
度累積値のヒストグラム、8……ヒストグラム上
に現われた文字列の存在を示すピーク、9,10
……濃度累積値差分絶対値、11……ラスター走
査により得られる量子化濃度値を加算するレジス
タ、12……ラスター走査して得られた濃度累積
値と一走査前の濃度累積値との差分絶対値を求め
る差分絶対値回路、13……ラスター走査により
得られた一走査分の濃度累積値を保持しておくバ
ツフアメモリ、14……濃度累積値の差分絶対値
を加算するレジスタ、15……濃度累積値差分絶
対値和を記憶するメモリ、16……画面を回転さ
せ角度を補正する角度補正装置。
Figure 1 is a diagram explaining the principle of the device of the present invention, Figure 2
The figure shows the configuration of an embodiment of the present invention. 1...Example of document data to be skewed, 2
... Heading part, 3 ... One character string in the text, 4, 5 ... Histogram of cumulative density values obtained by scanning in directions 6 and 7, 8 ... Existence of character string appearing on the histogram Peaks showing 9, 10
. . . Density cumulative value difference absolute value, 11 . . . A register for adding the quantized density value obtained by raster scanning, 12 . . . Difference between the density cumulative value obtained by raster scanning and the density cumulative value of one scan before. Difference absolute value circuit for calculating the absolute value, 13...Buffer memory for holding the density cumulative value for one scan obtained by raster scanning, 14...Register for adding the difference absolute value of the density cumulative value, 15... A memory for storing the sum of absolute values of cumulative density differences, 16...An angle correction device for rotating the screen and correcting the angle.
Claims (1)
画面読取り装置において、当該各ラスター走査線
毎に画面の存在に対応した濃度に応じた電気信号
の値を累積する濃度累積部と、互いに隣接する走
査線における該累積値の差分の絶対値を抽出する
差分絶対値抽出部と当該差分絶対値の和を抽出す
る差分絶対値和抽出部と、当該和の大小によつて
入力画面の傾きを補正する角度補正部とを有する
ことを特徴とする文書傾き補正装置。1. In a screen reading device that performs raster scanning on a two-dimensional screen, there is a density accumulating unit that accumulates the value of an electric signal according to the density corresponding to the presence of the screen for each raster scanning line, and A difference absolute value extraction unit that extracts the absolute value of the difference between the accumulated values in the line, a difference absolute value sum extraction unit that extracts the sum of the difference absolute values, and corrects the tilt of the input screen depending on the size of the sum. A document skew correction device comprising: an angle correction section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP55143238A JPS5769372A (en) | 1980-10-14 | 1980-10-14 | Compensator for inclination of document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP55143238A JPS5769372A (en) | 1980-10-14 | 1980-10-14 | Compensator for inclination of document |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5769372A JPS5769372A (en) | 1982-04-28 |
JPS6252337B2 true JPS6252337B2 (en) | 1987-11-05 |
Family
ID=15334103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP55143238A Granted JPS5769372A (en) | 1980-10-14 | 1980-10-14 | Compensator for inclination of document |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5769372A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01143929A (en) * | 1987-12-01 | 1989-06-06 | Kayaba Ind Co Ltd | Leak detecting method using air bubble signal |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3698136B2 (en) | 2002-11-13 | 2005-09-21 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing apparatus and image processing program |
-
1980
- 1980-10-14 JP JP55143238A patent/JPS5769372A/en active Granted
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01143929A (en) * | 1987-12-01 | 1989-06-06 | Kayaba Ind Co Ltd | Leak detecting method using air bubble signal |
Also Published As
Publication number | Publication date |
---|---|
JPS5769372A (en) | 1982-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5182656A (en) | Method for compressing and decompressing forms by means of very large symbol matching | |
US6115508A (en) | Clock free two-dimensional barcode and method for printing and reading the same | |
US5418865A (en) | Mark sensing on a form | |
US5793887A (en) | Method and apparatus for alignment of images for template elimination | |
US4985930A (en) | Image data filing system and image data correcting method | |
US7483564B2 (en) | Method and apparatus for three-dimensional shadow lightening | |
Bhattacharjya et al. | Data embedding in text for a copier system | |
KR0159831B1 (en) | Method for detecting defect | |
WO2001003416A1 (en) | Border eliminating device, border eliminating method, and authoring device | |
EP1277166A1 (en) | Correction of distortions in form processing | |
JPS6252337B2 (en) | ||
JPS6325391B2 (en) | ||
JP4396710B2 (en) | Image processing apparatus, image processing apparatus control method, and image processing apparatus control program | |
US7969618B2 (en) | Image forming apparatus, image forming system, computer readable recording medium, and image forming method | |
JP5517028B2 (en) | Image processing device | |
CN100511267C (en) | Graph and text image processing equipment and image processing method thereof | |
JPH0250513B2 (en) | ||
JP2812705B2 (en) | Character extraction device | |
JP2601253B2 (en) | Image processing device | |
JPH01144181A (en) | Optical character reader | |
JPH03294981A (en) | Optical character reader | |
JPH0228771A (en) | Picture processing system and picture data correcting method | |
JP2812704B2 (en) | Character extraction device | |
JPS62206962A (en) | Facsimile equipment | |
JPS6327751B2 (en) |