Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6348219B2 - - Google Patents
[go: Go Back, main page]

JPS6348219B2 - - Google Patents

Info

Publication number
JPS6348219B2
JPS6348219B2 JP55038532A JP3853280A JPS6348219B2 JP S6348219 B2 JPS6348219 B2 JP S6348219B2 JP 55038532 A JP55038532 A JP 55038532A JP 3853280 A JP3853280 A JP 3853280A JP S6348219 B2 JPS6348219 B2 JP S6348219B2
Authority
JP
Japan
Prior art keywords
pixel
line
image
density level
density
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
Application number
JP55038532A
Other languages
Japanese (ja)
Other versions
JPS56149170A (en
Inventor
Toshuki Sakai
Mitsuhiro Murao
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP3853280A priority Critical patent/JPS56149170A/en
Publication of JPS56149170A publication Critical patent/JPS56149170A/en
Publication of JPS6348219B2 publication Critical patent/JPS6348219B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Character Input (AREA)

Description

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

本発明は、文書画像中の文字行のみを検出させ
る方式に関する。 一般に、フアクシミリ、OCRなどのような原
稿画像を画素単位で走査、サンプリングすること
によつて読取る画像入力装置において、その入力
画像が文書画像の場合、その文章の書かれている
行のみを読取りの対象とすればよく、他の部分を
スキツプさせることによりその入力画像の効率的
な読取処理を行なわせることが可能になる。 その前提として、まず文書画像中の文字行の検
出を行なわせる必要があるが、その目的のために
従来では、行と直交する方向すなわち横書き文書
では縦方向の座標軸に行方向から画素ごとの濃度
値を投影することによつて行の検出を行なわせる
ようにしている。 第1図aは一般の文書画像を示すもので、それ
を画素単位で読取り、縦軸に沿つて各走査ライン
ごとに濃度レベル(黒画素の数)を積算させる
と、その分布状態は同図bに示されるようにな
り、それによつて文書画像中の文字行が検知され
る。 しかし、このような従来の方法では、文書画像
が傾いた状態でその読取走査がなされてしまう
と、各走査ラインごとの濃度レベル頻度分布が縦
軸方向に分散してそれが第1図bに示すようにも
との文書画像の各文字行に対応しなくなり、その
結果文字行の検出が非常に困難になつてしまうと
いう問題がある。 本発明はこのような点を考慮してなされたもの
で、文書画像が多少傾いた状態でその読取走査が
なされても、その文字行を容易かつ正確に検出さ
せることができるようにした文書画像の文字行検
出方式を提供するものである。 以下、添付図面を参照して本発明の一実施例に
ついて詳述する。 いま、第2図aに示すように、文書画像Aの各
文字行l1,l2,l3,…が傾いた状態でその
読取走査がなされたとすると、このような状態時
では本発明にあつては、まず主走査ラインに平行
な座標軸X上(または主走査ラインに垂直な座標
軸上であつてもよい)にその垂直方向から各文字
行l1,l2,l3…の投影を行なわせ、その投
影方向における各画素ごとの濃度レベルの積算値
を求めることによつて図示のような濃度レベル頻
度分布特性fXを得る。次いで、その濃度レベル頻
度分布特性fXをある一定レベルのしきい値TX
クリツプさせることにより文書画像の存在する領
域幅Wの検出を行なわせる。次に、その画像領域
幅Wの両端からそれぞれwの帯状領域について、
同図bに示すように、左,右の各座標軸L,R上
(または主走査ラインに平行な座標軸上であつて
もよい)にその垂直方向から各画素の濃度レベル
に積算値fL,fRをそれぞれ求め、それら各求めら
れた濃度レベル頻度分布特性fL,fRを各々一定の
しきい値TL,TRでクリツプさせることによりそ
の各中点座標L1,L2,L3,…,LnおよびR1
R2,R3,…,Roの検出をそれぞれ行なわせる。
その際、当然のことながら各文字行l1,l2,
l3,…は右端で完結しているとは限らないた
め、左,右の各中点座標の個数が必ずしも一致し
ない。 次いで、本発明では、次式にしたがつて平均行
間隔ΔLを求め、1≦k≦mの任意の中点座標Lk
に対応してRk′(k′k)を設定し、そのLk
Rk′および
The present invention relates to a method for detecting only character lines in a document image. In general, in image input devices such as facsimile and OCR that scan and sample original images pixel by pixel, when the input image is a document image, only the lines where the text is written are read. By skipping other parts, it is possible to efficiently read the input image. As a prerequisite, it is first necessary to detect character lines in a document image, but for this purpose, in the past, the density of each pixel was Rows are detected by projecting values. Figure 1a shows a general document image.If you read it pixel by pixel and integrate the density level (number of black pixels) for each scanning line along the vertical axis, the distribution state will be as shown in the figure. As shown in Fig. b, character lines in the document image are detected. However, in such conventional methods, if the document image is scanned while it is tilted, the density level frequency distribution for each scanning line will be dispersed in the vertical axis direction, and this will be as shown in Figure 1b. As shown, there is a problem in that it no longer corresponds to each character line in the original document image, and as a result, it becomes extremely difficult to detect the character lines. The present invention has been made in consideration of these points, and provides a document image in which character lines can be easily and accurately detected even when the document image is read and scanned in a slightly tilted state. This method provides a character line detection method. Hereinafter, one embodiment of the present invention will be described in detail with reference to the accompanying drawings. Now, as shown in FIG. 2a, if the reading scan is performed in a tilted state of each character line l1, l2, l3, ... of the document image A, in such a state, in the present invention, , First, project each character line l1, l2, l3... from the vertical direction onto the coordinate axis X parallel to the main scanning line (or it may be on the coordinate axis perpendicular to the main scanning line), and determine the projection direction. By calculating the integrated value of the density level for each pixel in , a density level frequency distribution characteristic fX as shown in the figure is obtained. Next, the density level frequency distribution characteristic f X is clipped at a certain threshold value T X to detect the width W of the area where the document image exists. Next, for each band-shaped area of w from both ends of the image area width W,
As shown in Figure b, on the left and right coordinate axes L and R (or on the coordinate axes parallel to the main scanning line), the integrated value f L , f R is determined, and by clipping the determined concentration level frequency distribution characteristics f L , f R at fixed threshold values T L , TR , respectively, the midpoint coordinates L 1 , L 2 , L are obtained. 3 ,…, L n and R 1 ,
Detection of R 2 , R 3 , ..., Ro is performed respectively.
At that time, each character line l1, l2,
Since l3, . . . are not necessarily completed at the right end, the numbers of the left and right midpoint coordinates do not necessarily match. Next, in the present invention, the average line spacing ΔL is determined according to the following formula, and an arbitrary midpoint coordinate L k of 1≦k≦m is determined.
Set R k ′ ( k′k ) corresponding to
R k ′ and

【式】の各線分に沿つて 画像中の濃度レベルの積算を実行してその結果Sk
および
The density levels in the image are integrated along each line segment of [formula] and the result is S k
and

【式】を求める。 ΔL=(Ln−L1)/(m−1) …(1) ここで、各線分に沿う濃度レベルの積算結果Sk
および
Find [formula]. ΔL=(L n −L 1 )/(m−1) …(1) Here, the integration result S k of the concentration level along each line segment
and

【式】が以下の条件を満たすとき、その 文書画像A中の各文字行l1,l2,l3,…の
傾きがLkとRk′との間の傾きと同一であることが
判明する。 ただし、T1は適宜設定されたしきい値である。 その際、もし(2)式の条件が満たされないときに
は、kおよびk′の値を順次変更して、その条件が
満たされるまでその組をさがすことになる。 このようにして、主走査方向Xに垂直な座標軸
L上における中点座標L1,L2,L3,…,Lnおよ
び行の傾きが求められることにより、文書画像A
における文字の存在領域が特定されて各文字行を
検出することができるようになり、あとはその文
書画像中における各文字行の検出結果により、フ
アクシミリにあつては行間のスキツプを、また光
学文字読取装置(OCR)にあつては行に沿つて
文字ごとの切出しを行なわせるなど、それぞれの
装置において目的とする処理を適宜実行させるこ
とになる。 第3図は以上説明した本発明による文書画像の
文字行検出方式を具体的に実施するための一構成
例を示すもので、その動作について以下説明をす
る。 まず、スキヤナSCNによつて画素単位で順次
読取られた画像信号が比較器CMPに送られて、
そこで予め設定されたスレツシユレベルと比較さ
れて2値量子化され、その量子化された白または
黒の各画素情報がページメモリPMに送られてそ
こで一時集合的に蓄積される。次いで、CPUか
ら第1のメモリ駆動装置DMA1に列方向(行に
直交する方向)の読出指令および加算器ADD1
に加算指令がそれぞれ出され、それにより第1の
メモリ駆動装置DMA1によつてページメモリ
PMから順次読出された列方向の各画素情報のう
ちの黒画素数の積算が加算器ADD1によつてそ
れぞれ実行され、その加算結果fXからCPUは前述
したしきい値TXを用いたクリツプにより画像領
域幅Wを求める。次にCPUから第1のメモリ駆
動装置DMA1に画像領域幅Wの左端の帯状領域
wにおける行方向(座標軸Lに直交する方向)の
読出し指令および加算器ADD1に加算指令がそ
れぞれ出され、それによりページメモリPMから
読出された行方向の各画素情報のうちの黒画素数
が加算器ADD1によつて積算されて前記濃度レ
ベル頻度分布fLが求められる。それと同時に、
CPUから第2のメモリ駆動装置DMA2に画像領
域幅Wの右端の帯状領域wにおける行方向(座標
軸Rに直交する方向)の読出し指令および加算器
ADD2に加算指令がそれぞれ出され、それによ
り前述の場合と同様にして濃度レベル頻度分布fR
が求められる。最終的に、CPUによりその各加
算器ADD1,ADD2の積算結果fL,fRにもとづ
いた前記所定のアルゴリズムにしたがう演算およ
び論理判定が実行されて、文書画像中における各
文字行およびその傾きが検出されることになる。 以上、本発明による文書画像の文字行検出方式
にあつては、画素単位で2値量子化された画像情
報にもとづき、副走査(または主走査)方向に各
画素の濃度レベルを積積算させた濃度レベル頻度
分布からその分布が変動する画像領域両端の帯状
領域wをわりだし、その各帯状領域wについてそ
れぞれ主走査(または副走査)方向の各画素の濃
度レベル頻度分布を求めて文字行の存在する各座
標値Li,Rjおよび行間隔ΔLを算出し、その各算
出結果に応じてLiとRjとを結ぶライン上およびそ
れに平行する行間のライン上における各画素の濃
度レベル和SkおよびSk+ΔL/2をそれぞれ求め、そ の各ライン上における濃度レベル和の偏差値が一
定のしきい値以上であるかの判定をなすことによ
り各文字行およびその傾きに検出を行わせるよう
にしたもので、文書画像が傾いた状態でその読取
りがなされても文字行を容易かつ確実に検出する
ことができ、汎用性の高いものとなるという優れ
た利点を有している。
When [Formula] satisfies the following condition, it is found that the slope of each character line l1, l2, l3, . . . in the document image A is the same as the slope between L k and R k '. However, T 1 is a threshold value set as appropriate. At this time, if the condition of equation (2) is not satisfied, the values of k and k' are sequentially changed and the set is searched until the condition is satisfied. In this way, the midpoint coordinates L 1 , L 2 , L 3 , ..., L n on the coordinate axis L perpendicular to the main scanning direction
By identifying the area where characters exist in the document image, it is now possible to detect each character line.Then, based on the detection results of each character line in the document image, it is possible to skip between lines in the case of facsimile, and to detect optical characters. In the case of a reading device (OCR), each device is made to perform the desired processing as appropriate, such as cutting out each character along a line. FIG. 3 shows an example of a configuration for concretely implementing the character line detection method for document images according to the present invention described above, and its operation will be explained below. First, image signals sequentially read pixel by pixel by the scanner SCN are sent to the comparator CMP.
There, the pixel information is compared with a preset threshold level and binary quantized, and the quantized white or black pixel information is sent to the page memory PM where it is temporarily stored collectively. Next, the CPU issues a read command in the column direction (direction perpendicular to the rows) to the first memory drive device DMA1 and an adder ADD1.
An addition command is issued to each of the pages, thereby causing the first memory drive device DMA1 to add the page memory.
The adder ADD1 adds up the number of black pixels among the pixel information in the column direction sequentially read out from the PM, and from the addition result f The image area width W is determined by . Next, the CPU issues a read command in the row direction (direction perpendicular to the coordinate axis L) in the strip area w at the left end of the image area width W to the first memory drive device DMA1, and an addition command to the adder ADD1. The number of black pixels of each pixel information in the row direction read from the page memory PM is integrated by an adder ADD1 to obtain the density level frequency distribution f L . At the same time,
The CPU sends a read command to the second memory drive device DMA2 in the row direction (direction perpendicular to the coordinate axis R) in the strip area w at the right end of the image area width W, and an adder.
Addition commands are issued to each ADD2, which causes the concentration level frequency distribution f R to be calculated in the same way as in the previous case.
is required. Finally, the CPU executes calculations and logical judgments according to the predetermined algorithm based on the integration results f L and f R of each of the adders ADD1 and ADD2, and each character line and its slope in the document image are calculated. It will be detected. As described above, in the method for detecting character lines in document images according to the present invention, the density level of each pixel is integrated in the sub-scanning (or main scanning) direction based on image information that has been binary quantized for each pixel. From the density level frequency distribution, determine the band-shaped areas w at both ends of the image area where the distribution fluctuates, and for each band-shaped area w, calculate the density level frequency distribution of each pixel in the main scanning (or sub-scanning) direction. Calculate each existing coordinate value L i , R j and line spacing ΔL, and calculate the sum of density levels of each pixel on the line connecting L i and R j and the line between the lines parallel to it according to each calculation result. Each character line and its slope is detected by determining S k and S k +ΔL/2 and determining whether the deviation value of the sum of density levels on each line is greater than or equal to a certain threshold. This has the excellent advantage of being able to easily and reliably detect character lines even when a document image is read in a tilted state, and being highly versatile.

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

第1図aは一般的な文書画像の一例を示す図、
同図bはその主走査ラインごとにおける濃度レベ
ル頻度の分布状態を示す図、第2図aは文書画像
が傾いた状態で読取られたときの副走査方向にお
ける濃度レベル頻度分布状態を示す図、同図bは
画像領域両端の帯状領域wの各主走査方向におけ
る濃度レベル頻度分布状態および文字行の傾きを
示す図、第3図は本発明による文書画像の文字行
検出方式を具体的に実施するための一構成例を示
すブロツク図である。 A……文書画像、l……文字行、W……画像領
域、w……画像両端の帯状領域、fX,fL,fR……
濃度レベル頻度分布、SCN……スキヤナ、CMP
……比較器、PM……ページメモリ、DMA……
メモリ駆動装置、ADD……加算器。
FIG. 1a is a diagram showing an example of a general document image,
FIG. 2B is a diagram showing the density level frequency distribution state for each main scanning line, and FIG. 2A is a diagram showing the density level frequency distribution state in the sub-scanning direction when the document image is read in an inclined state. Figure b shows the density level frequency distribution state and the inclination of character lines in each main scanning direction of the strip area w at both ends of the image area, and Figure 3 shows a concrete implementation of the character line detection method for document images according to the present invention. FIG. A...Document image, l...Character line, W...Image area, w...Strip area at both ends of the image, fX , fL , fR ...
Concentration level frequency distribution, SCN...Scanner, CMP
... Comparator, PM ... Page memory, DMA ...
Memory drive device, ADD...adder.

Claims (1)

【特許請求の範囲】[Claims] 1 画像を画素単位で走査、サンプリングし、2
値量子化することによつて読取られた画像情報に
もとづき、主走査ラインに平行かまたは垂直な方
向に各画素の濃度レベル値を積算させた濃度レベ
ル頻度分布から画像領域を見出す第1のステツプ
と、その画像領域両側の分布状態が変化する帯状
領域について、第1のステツプにおける積算方向
とは直交する方向に各画素の濃度レベル値を積算
させた各濃度レベル頻度分布から文字行の存在す
る左、右の各座標値および行間隔をそれぞれ算出
する第2のステツプと、その左、右の各座標値間
を結ぶライン上およびそれに平行する行間のライ
ン上における各画素の濃度レベル和をそれぞれ求
め、その各ライン上における濃度レベル和の偏差
値に応じて文字行およびその傾きの検出を行なわ
せる第3のステツプからなる文書画像の文字行検
出方式。
1 Scan and sample the image pixel by pixel, 2
A first step of finding an image area from a density level frequency distribution in which density level values of each pixel are integrated in a direction parallel or perpendicular to the main scanning line, based on image information read by value quantization. For a band-shaped area where the distribution state changes on both sides of the image area, the density level frequency distribution of each pixel is calculated by integrating the density level values of each pixel in a direction perpendicular to the integration direction in the first step. The second step calculates the left and right coordinate values and the line spacing, and calculates the sum of the density levels of each pixel on the line connecting the left and right coordinate values and on the line between the lines parallel to it. A method for detecting character lines in a document image comprising a third step in which character lines and their inclinations are detected according to the deviation value of the sum of density levels on each line.
JP3853280A 1980-03-26 1980-03-26 Detection system for character line of documental pictur Granted JPS56149170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3853280A JPS56149170A (en) 1980-03-26 1980-03-26 Detection system for character line of documental pictur

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3853280A JPS56149170A (en) 1980-03-26 1980-03-26 Detection system for character line of documental pictur

Publications (2)

Publication Number Publication Date
JPS56149170A JPS56149170A (en) 1981-11-18
JPS6348219B2 true JPS6348219B2 (en) 1988-09-28

Family

ID=12527884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3853280A Granted JPS56149170A (en) 1980-03-26 1980-03-26 Detection system for character line of documental pictur

Country Status (1)

Country Link
JP (1) JPS56149170A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58123169A (en) * 1982-01-14 1983-07-22 Nippon Telegr & Teleph Corp <Ntt> Cut-out system of character line

Also Published As

Publication number Publication date
JPS56149170A (en) 1981-11-18

Similar Documents

Publication Publication Date Title
US7269298B2 (en) Image processing device, image processing method, and record medium on which the same is recorded
US4656665A (en) Thresholding technique for graphics images using histogram analysis
US5563403A (en) Method and apparatus for detection of a skew angle of a document image using a regression coefficient
JP2986383B2 (en) Method and apparatus for correcting skew for line scan images
JP4574981B2 (en) Image data processing method
US6683983B1 (en) Document-inclination detector
US5050229A (en) Method and apparatus for thinning alphanumeric characters for optical character recognition
JPH096914A (en) Image processing method and apparatus
JP3615333B2 (en) Ruled line eraser
JPH10164370A (en) Method and device for interpolating gradation of image, image filtering method and image filter
US6175664B1 (en) Optical character reader with tangent detection for detecting tilt of image data
JPH08317193A (en) Method and apparatus for detecting and correcting vertical and horizontal lines in a digitized image
JPS6348219B2 (en)
JP2871601B2 (en) Character string detecting apparatus and method
US8363954B1 (en) Efficient detection of constant regions of an image
JP4070486B2 (en) Image processing apparatus, image processing method, and program used to execute the method
JPH10336428A (en) Image processing unit
JPH10254991A (en) Ruled line erasing method and machine readable medium
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JP3359377B2 (en) Background concentration detector
JP3618926B2 (en) Document image tilt detection method
JPH01169686A (en) Character line detecting system
JP2821303B2 (en) Sharp character combination method
JPS63158677A (en) Row segmenting method
JP4439054B2 (en) Character recognition device and character frame line detection method