JPH01259474A - Character raw detector - Google Patents

Character raw detector

Info

Publication number
JPH01259474A
JPH01259474A JP63087684A JP8768488A JPH01259474A JP H01259474 A JPH01259474 A JP H01259474A JP 63087684 A JP63087684 A JP 63087684A JP 8768488 A JP8768488 A JP 8768488A JP H01259474 A JPH01259474 A JP H01259474A
Authority
JP
Japan
Prior art keywords
character
scanning
line
detected
pixel
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
JP63087684A
Other languages
Japanese (ja)
Inventor
Toshiyuki Itezono
射手園 敏行
Koji Ito
伊東 晃治
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63087684A priority Critical patent/JPH01259474A/en
Publication of JPH01259474A publication Critical patent/JPH01259474A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To obtain the raw area of a small margin by detecting first-fourth coordinates to specify the circumscribed frame of a character raw and obtaining an area in the circumscribed frame specified by these first-fourth coordinates as a character raw area. CONSTITUTION:A character line detecting means regards a character picture element, which continues for less than a constant BTHL, as a noise and regards a character picture element, which continues only for the constant BTHL at least, as the prescribed character line to constitute a character graphic pattern. Then, the presence/absence of the prescribed character line and a starting edge coordinate XC1 are obtained. Accordingly, for example, since one independent character picture element is ignored as the noise and the presence/absence information of the prescribed character line and the stating edge coordinate XC1 are utilized for processing to detect the first-fourth coordinates, the detecting accuracy of the first-fourth coordinates can be improved. Thus, the area in the circumscribed frame specified by using these coordinates is obtained as the raw area. Thus, the raw area of the small margin can be obtained.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、行領域として文字行の外接枠によって規定
される領域を検出するための文字行検出装置に間する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a character line detection device for detecting an area defined by a circumscribing frame of a character line as a line area.

(従来の技術) 従来より、文字認識処理を行なうため、帳票、原稿等の
情報媒体を光電変換器を用いて走査することによって画
像データを得、この画像データから文字行の領rat検
出し、次いて検出された行領域から一文字分の画像デー
タを切出すことが行なわれる。例えば特開昭58−10
1374号公報に開示される文字切出し装置にあっては
、文字認識処理のため、次に述べるように文字行領域の
検出を行なっていた。
(Prior Art) Conventionally, in order to perform character recognition processing, image data is obtained by scanning an information medium such as a form or manuscript using a photoelectric converter, and the territory of a character line is detected from this image data. Next, one character's worth of image data is extracted from the detected line area. For example, JP-A-58-10
In the character cutting device disclosed in Japanese Patent No. 1374, a character line area is detected as described below for character recognition processing.

第8図は上述の従来装置における文字行検出の説明に供
する図であり、横書き文書の入力画像の例及びこの入力
画像の累積黒画素数のヒストグラムを示す。以下、横書
き文書の文字行領域検出を例にして説明する。
FIG. 8 is a diagram for explaining character line detection in the conventional apparatus described above, and shows an example of an input image of a horizontally written document and a histogram of the cumulative number of black pixels of this input image. Hereinafter, detection of character line areas in a horizontally written document will be described as an example.

まず、所定の矩形領域ABCD内の画像の、画像データ
を文字行方向に走査して、走査線上の累積黒画素(文字
を構成する画素)を計数し、累積黒画素数のヒストグラ
ムHを作成する。ヒストグラムHの作成は画像データの
走査を線順次に行なって走査線−本毎に行なわれる。
First, the image data of the image within a predetermined rectangular area ABCD is scanned in the character line direction, the cumulative black pixels (pixels that constitute a character) on the scanning line are counted, and a histogram H of the cumulative black pixel count is created. . The creation of the histogram H is performed line by line by scanning the image data line by line.

そして、所定のlIl@を越えるヒストグラムHが存在
する区間を文字行区間及び閾値未満のヒストグラムHが
存在する区間を行間区間と判定し、これら区間の境界で
矩形領域ABCDを切り取って得られる領域部分(例え
ば図中ハツチングを付して示す領域部分)を行領域Gと
していた。
Then, the section in which the histogram H exceeding a predetermined lIl@ exists is determined to be a character line section, and the section in which the histogram H below a threshold value exists is determined to be an interline section, and the area portion obtained by cutting the rectangular area ABCD at the boundary of these sections. (For example, the area portion indicated by hatching in the figure) was designated as the row area G.

(発明が解決しようとする課題) しかしながら、上述した従来装置においては、文字の存
在しない帳票等の余白が、検出された行領域Gに含まれ
てしまう。その結果、検出された行領域Gの画像データ
から一文字分の文字を切出す等、行領域Gの画像データ
を利用して行なわれる画像処理において、帳票等の余白
の画像データを走査することになり、これがため画像処
理を効率良く行なえないという問題点があった。
(Problem to be Solved by the Invention) However, in the conventional device described above, the detected line area G includes a blank space of a form or the like where no characters exist. As a result, in image processing performed using the image data of the line area G, such as cutting out one character from the image data of the detected line area G, it is possible to scan the image data of the blank space of a form, etc. Therefore, there was a problem that image processing could not be performed efficiently.

また、ヒストグラムの作成に必要な累積黒画素数を、走
査線−本毎に保存する必要があるため、ヒストグラム作
成のために容態の大きなメモリを用意しなければならな
かった。これがため、装ゴ規模が大きくなるという問題
点があった。
Furthermore, since it is necessary to store the cumulative number of black pixels required for creating a histogram for each scanning line, a large memory must be prepared for creating the histogram. As a result, there was a problem in that the packaging size became large.

ざらに、文字行区間及び行間区間の判定を行なうための
閾値をどの程度の大きざの値に設定するかによって、本
来文字行区間と判定すべきものを行間区間と誤判定しで
しまうことがあった。例えば第8図にも示すように、文
字数の少ない文字行りのヒストグラムHの部分は、閾値
が大きければ行間区間と誤判定されでしまう。またこれ
を回避するため、閾値を小さく設定すれば、画像データ
にノイズが存在する場合に、本来行間区間と判定すべき
ものを行区間と誤判定してしまう。
Roughly speaking, depending on the size of the threshold value for determining character line sections and line spacing sections, what should normally be determined as a text line section may be mistakenly judged as a line spacing section. Ta. For example, as shown in FIG. 8, if the threshold value is large, a portion of the histogram H of a character line with a small number of characters will be erroneously determined to be an interline interval. Furthermore, in order to avoid this, if the threshold value is set to a small value, if noise is present in the image data, what should originally be determined to be an inter-line interval will be incorrectly determined to be a line-to-line interval.

この発明は、上述した従来の問題点を解決するため、主
として余白のより少ない行領域を検出するための文字行
検出装百ヲ提供することにある。
SUMMARY OF THE INVENTION In order to solve the above-mentioned conventional problems, it is an object of the present invention to provide a character line detection device mainly for detecting line areas with fewer blank spaces.

(課題を解決するための手段) この目的の達成を図るため、この発明の文字行検出装置
は、 行を構成する文字図形パタンを含む画像データを走査す
ることによって、文字行領域を検出するための文字行検
出装置にあいで、 行を構成する文字図形パクンを含む画像データを走査す
ることによって、文字行領域を検出するための文字行検
出装置においで、 画像データを一方の方向へ走査して最初に検出される文
字画素の座標と、画像データを他方の方向へ走査して最
初に検出される文字画素の座標とを検出するための文字
線検出手段と、 文字画素を検出しなかった走査線の次の走査線上で文字
画素を検出したとき、当該文字画素を検出した走査線の
走査座標を、行の外接枠を規定するための第一座標とし
て検出し、 文字画素泡検出した走査線の次の走査線上で文字画素を
検出しなかったとき、当該文字画素を検出した走査線の
走査座標を前記外接枠を規定するための第二座標として
検出し、 第一座標から第二座標までの間の走査線上で検出された
文字画素の座標のうち最小の座標を、外接枠を規定する
ための第三座標としで検出し、第一座標から第二座標ま
での間の走査線上で検出された文字画素の座標のうち最
大の座標を、外接枠を規定するための第四座標として検
出する文字行検出制御手段とを 備えて成ることを特徴とする。
(Means for Solving the Problems) In order to achieve this object, the character line detection device of the present invention detects a character line area by scanning image data including character figure patterns constituting the line. A character line detection device for detecting a character line area by scanning image data including character/figure punctuation that constitutes a line scans the image data in one direction. a character line detection means for detecting the coordinates of the first character pixel detected by scanning the image data in the other direction, and the coordinates of the first character pixel detected by scanning the image data in the other direction; When a character pixel is detected on the next scanning line, the scanning coordinates of the scanning line where the character pixel was detected are detected as the first coordinates for defining the circumscribing frame of the line, and the scanning in which the character pixel bubble was detected is performed. When a character pixel is not detected on the scanning line following the line, the scanning coordinates of the scanning line where the character pixel was detected are detected as second coordinates for defining the circumscribed frame, and the second coordinate is changed from the first coordinate to the second coordinate. The smallest coordinate of the character pixel coordinates detected on the scanning line from the first coordinate to the second coordinate is detected as the third coordinate for defining the circumscribing frame, and The present invention is characterized by comprising a character line detection control means for detecting the largest coordinate among the coordinates of the detected character pixels as a fourth coordinate for defining a circumscribing frame.

この発明の実施に当っては、一方の方向の走査で文字画
素が検出された走査線上の画像データを他方の方向へ走
査するのが好適である。
In carrying out the invention, it is preferable to scan image data on a scanning line in which a character pixel is detected by scanning in one direction in the other direction.

この発明の実施に当っては、あらかじめ定めた個数以上
連続する複数の文字画素の、最初に検出される文字画素
の座標を検出するのが好適である。
In carrying out the present invention, it is preferable to detect the coordinates of the first detected character pixel among a plurality of consecutive character pixels of a predetermined number or more.

この発明の実施に当っては、文字線検出手段を、文字画
素の座標を保存する手段とするのが好適である。
In carrying out the invention, it is preferable that the character line detection means is a means for storing the coordinates of character pixels.

この発明の実施に当っては、文字画素を検出した走査線
の次の走査線上で文字画素を検出しなかったとき、検出
された第一、第二、第三及び第四座標を出力するのが好
適である。
In carrying out the present invention, when no character pixel is detected on the scanning line following the scanning line in which the character pixel was detected, the detected first, second, third, and fourth coordinates are output. is suitable.

この発明の実施に当っては、文字画素が検出された走査
線が所定の本数以上連続するとき、第一、第二、第三及
び第四座標を出力するのが好適である。
In carrying out the present invention, it is preferable to output the first, second, third, and fourth coordinates when a predetermined number or more consecutive scanning lines in which character pixels are detected occur.

この発明の実施に当っては、文字画素が検出されなかっ
た走査線が所定の本数以上連続するとき、第一、第二、
第三及び第四座標を出力するのが好適である。
In carrying out the present invention, when a predetermined number or more consecutive scanning lines in which no character pixels are detected, the first, second,
Preferably, the third and fourth coordinates are output.

この発明の実施に当っては、画像データの画素の画素値
の決定を、当該画素近傍の任意好適個数の他の画素の画
素値を利用しで行なう、フィルタを備えた構成とするの
が好適である。
In carrying out the present invention, it is preferable to adopt a configuration including a filter that determines the pixel value of a pixel of image data by using the pixel values of an arbitrary suitable number of other pixels in the vicinity of the pixel. It is.

さらにこの発明の実施に当っては、行に沿った方向を、
画像データの主走査方向とするのが好適である。
Furthermore, in carrying out this invention, the direction along the rows is
It is preferable to use the main scanning direction of the image data.

(作用) このような構成の文字行検出装置によれば、文字行の外
接枠を規定するための第一〜第四座標を検出する。従っ
て、これら第一〜第四座標によって規定される外接枠内
の領域を文字行領域とすることによって、従来より余白
の少い行領域を得ることが出来る。
(Operation) According to the character line detection device having such a configuration, the first to fourth coordinates for defining the circumscribing frame of the character line are detected. Therefore, by setting the area within the circumscribed frame defined by these first to fourth coordinates as the character line area, it is possible to obtain a line area with less margin than before.

(実施例) 以下、図面を参照し、この発明の実施例につき説明する
。尚、図はこの発明が理解出来る程度に概略的に示され
でいるにすぎず、従って各構成成分の構成、各構成成分
の配設位置、各構成成分の入出力信号、入出力信号の流
れ、動作及び動作の流れは図示例に限定されるものでは
ない。
(Embodiments) Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the drawings are merely shown schematically to the extent that this invention can be understood, and therefore the configuration of each component, the arrangement position of each component, the input/output signals of each component, and the flow of input/output signals are shown in the drawings. , the operation and the flow of the operation are not limited to the illustrated example.

に叉あぢ 第1図は第一実施例の装置構成の説明に供する機能ブロ
ック図である。
FIG. 1 is a functional block diagram for explaining the configuration of the device of the first embodiment.

同図において、10は行を構成する文字図形パタンを含
む画像データを走査することによって、文字行領域を検
出するための文字行検出制御手段し、この実施例の装置
10は、画像データを一方の方向へ走査して最初に検出
される文字画素の座標と、画像データを他方の方向へ走
査して最初に検出される文字画素の座標とを検出するた
めの文字線検出手段(以下、検出手段と称す)12と、
ざらに文字行検出制御手段(以下、制御手段と称す)1
4とを備えて成る。尚、ここに言う文字画素とは、文字
図形パタンを構成する画素を表す所定の画素W(濃度)
を、有する画素を意味するものとする。
In the figure, reference numeral 10 denotes a character line detection control means for detecting a character line area by scanning image data including character/figure patterns constituting a line. Character line detection means (hereinafter referred to as detection means) for detecting the coordinates of the first character pixel detected by scanning the image data in the other direction (referred to as means) 12, and
Rough character line detection control means (hereinafter referred to as control means) 1
4. Note that the character pixel referred to here is a predetermined pixel W (density) representing a pixel that constitutes a character graphic pattern.
shall mean a pixel that has .

制御手段14は行の外接枠を規定するための第一、第二
、第三及び第四座標を、次の■〜■に述べるようにして
検出する。
The control means 14 detects the first, second, third and fourth coordinates for defining the circumscribed frame of the row as described in the following (1) to (2).

■文字画素を検出しなかった走査線の次の走査線上で文
字画素を検出したとき、当該文字画素を検出した走査線
の走査座標を第一座標として検出する。
(2) When a character pixel is detected on the scanning line following the scanning line in which no character pixel was detected, the scanning coordinates of the scanning line where the character pixel was detected are detected as the first coordinates.

■文字画素を検出した走査線の次の走査線上で文字画素
を検出しなかったとき、当該文字画素を検出した走査線
の走査座標を第二座標として検出する。
(2) When no character pixel is detected on the scanning line following the scanning line in which the character pixel was detected, the scanning coordinates of the scanning line in which the character pixel was detected are detected as second coordinates.

■第一座標から第二座標までの間の走査線上て検出され
た文字画素の座標のうち最小の座標を、第三座標として
検出する。
(2) Among the coordinates of character pixels detected on the scanning line between the first coordinate and the second coordinate, the minimum coordinate is detected as the third coordinate.

■第一座標から第二座標までの間の走査線上で検出され
た文字画素の座標のうち最大の座標を第四座標として検
出する。
(2) Among the coordinates of character pixels detected on the scanning line between the first coordinate and the second coordinate, the largest coordinate is detected as the fourth coordinate.

さらに、この実施例の装H10は、走査中の走査線の一
ライン前の走査線において文字画素が検出されたか否か
を判定するための判定情報を格納するPレジスタ16と
、第一座標を検出するためのYTレジスタ18と、第二
座標を検出するためのY8レジスタ20と、第三座標を
検出するためのXLレジスタ22と、第四座標を検出す
るためのXRレジスタ26とを備える。
Furthermore, the device H10 of this embodiment includes a P register 16 that stores determination information for determining whether or not a character pixel is detected in a scan line immediately before the current scan line, and a first coordinate. It includes a YT register 18 for detecting, a Y8 register 20 for detecting the second coordinate, an XL register 22 for detecting the third coordinate, and an XR register 26 for detecting the fourth coordinate.

また第1図において、2日は帳票等の情報媒体の画像デ
ータを得るための読取装置、30は読取装置から出力さ
れる画像データを格納する画像メモリを示す。
Further, in FIG. 1, 2 indicates a reading device for obtaining image data of an information medium such as a form, and 30 indicates an image memory for storing image data output from the reading device.

読取装M28は光電変換部28a及び図示しないスキャ
ナ(走査機構)とを備え、光電変換部28aは情報媒体
が配置された視野(読取面)を走査して得た光信号Gを
、量子化された電気信号すなわち(入力)画像データに
変換する。
The reading device M28 includes a photoelectric conversion unit 28a and a scanner (scanning mechanism) not shown. into an electrical signal, i.e. (input) image data.

光電変換部28aは、例えば、視野を2048x307
2個の画素に分解し画素毎に光信号Gヲ2値のディジタ
ル信号に変換する。そして変換された21信号を画像デ
ータとして出力する。光電変換部28aからの画像デー
タは画像メモリ3oに格納される。
For example, the photoelectric conversion unit 28a has a field of view of 2048x307
The optical signal G is divided into two pixels and converted into a binary digital signal for each pixel. The converted 21 signals are then output as image data. Image data from the photoelectric conversion section 28a is stored in the image memory 3o.

32は行単位に検出された第一〜第四座標を格納する行
位置情報記憶部である。この実施例の装置10は、第一
〜第四座標の検出を、画像メモリ3oに格納された画像
データの走査によって、行ない、検出した第一〜第四座
標を記憶部32に対して出力する。
32 is a row position information storage section that stores the first to fourth coordinates detected on a row-by-row basis. The device 10 of this embodiment detects the first to fourth coordinates by scanning the image data stored in the image memory 3o, and outputs the detected first to fourth coordinates to the storage unit 32. .

以下、この実施例につきさらに詳細に説明する。This example will be explained in more detail below.

(画像データ) 第2図は画像データの説明に供する図であり、−例とし
て横書き文書の画像を示す図である。
(Image Data) FIG. 2 is a diagram for explaining image data, and is a diagram showing an image of a horizontally written document as an example.

同図にも示すように、画像データDは行を構成する文字
図形パタンD1及び文字図形の背景パタンD2を含むデ
ータであり、この実施例ではパタンD1を例えば画素値
「1」の黒画素で及びパタンD2?例えば画素値rQJ
の白画素で表現するものとする。従って、この実施例で
は、文字画素は画素値「1」を有する画素となる。
As shown in the same figure, the image data D includes a character/figure pattern D1 constituting a row and a background pattern D2 of the text/figure. And pattern D2? For example, pixel value rQJ
shall be expressed using white pixels. Therefore, in this embodiment, the character pixel is a pixel having a pixel value of "1".

読取装置28は、例えば、横書き文書の行方向に沿った
方向を主走査方向及びこの方向に垂直な方向を副走査方
向として、視野内の横書き文書を走査し、この読取装置
28からの画像データDが画像メモリ30に保存される
。第2図に示すX−Y座標系にあっては、X軸方向を読
取装M28の主走査方向及びy軸方向を読取装置t28
の副走査方向としている。
The reading device 28 scans the horizontally written document within its field of view, with the direction along the row direction of the horizontally written document as the main scanning direction and the direction perpendicular to this direction as the subscanning direction, and reads the image data from this reading device 28. D is stored in the image memory 30. In the X-Y coordinate system shown in FIG. 2, the X-axis direction is the main scanning direction of the reading device M28, and the y-axis direction is the reading device T28.
The sub-scanning direction is set to .

画像データDを画像メモリ30から読出すための方法は
問わないが、この実施例では、画像データDの各画素位
曹ヲ上述のX−Y座標系で表現し、この座標系のX、Y
座標で指定される画素位置の画像データDI、画像メモ
リ30がら読出すことが出来るように成している。そし
て、画像メモリ30に保存された画像データDの主走査
方向8x軸に沿った方向及び副走査方向をy軸に沿った
方向として、画像データDI走査し、画像データDの走
査によって第−及び第二座標としでY座標Y1及びY、
を、また第三及び第四座標としてX座標X、及び×6を
検出する。
Although the method for reading out the image data D from the image memory 30 does not matter, in this embodiment, each pixel position of the image data D is expressed in the above-mentioned X-Y coordinate system, and the X, Y coordinates of this coordinate system are
The image data DI of the pixel position specified by the coordinates can be read from the image memory 30. Then, the image data DI is scanned in the main scanning direction 8 of the image data D stored in the image memory 30 with the x-axis as the direction, and the sub-scanning direction is the direction along the y-axis. The second coordinates are Y coordinates Y1 and Y,
, and the X coordinates X and x6 are detected as the third and fourth coordinates.

画像データDの走査範囲は任意好適に設定され、従って
画像メモリ30に格納された画像データDの一部或は全
部の走査が行なわれる。ここで、画像データDの走査範
囲を指定するための座標をX+ 、X2、Yl及びY2
とすると、図にも示すように×1〜×2及びY、〜Y2
の範囲の、−点鎖線で囲んで示す矩形範囲aが主として
、画像データDの走査範囲となる。
The scanning range of the image data D is set arbitrarily and suitably, so that part or all of the image data D stored in the image memory 30 is scanned. Here, the coordinates for specifying the scanning range of image data D are X+, X2, Yl, and Y2.
Then, as shown in the figure, ×1 to ×2 and Y, to Y2
A rectangular range a surrounded by a dashed-dotted line in the range , is mainly the scanning range of the image data D.

(文字線検出手段) この実施例の検出手段12は、一方の方向の走査で文字
画素が検出された走査線上の画像データを他方の方向へ
走査する。従って文字画素が検出されなかった走査線に
ついでは他方の方向の走査を行なわないので、処理速度
の向上を図れる。
(Character Line Detection Means) The detection means 12 of this embodiment scans image data on a scanning line in which a character pixel is detected by scanning in one direction in the other direction. Therefore, since scanning in the other direction is not performed for scanning lines in which no character pixels are detected, processing speed can be improved.

しかも、この実施例の検出手段12は、あらかじめ定め
た個数B THL  (B THLは任意好適に設定さ
れる定数)以上連続する複数の文字画素の、最初に検出
される文字画素の座標を検出する。この結果、所定個数
未満の連続する文字画素はノイズとして処理され従って
第一〜第四座標の検出に利用されないので、第一〜第四
座標検出の精度を向上することが出来る。尚、以下の説
明では説明の便宜のため、走査線上でBTHL以上連続
する文字画素から成る文字線を所定の文字線と称す。
Furthermore, the detection means 12 of this embodiment detects the coordinates of the first detected character pixel among a plurality of consecutive character pixels equal to or greater than a predetermined number B THL (B THL is a constant set arbitrarily and preferably). . As a result, consecutive character pixels less than a predetermined number are treated as noise and are not used for detecting the first to fourth coordinates, thereby improving the accuracy of detecting the first to fourth coordinates. In the following description, for convenience of explanation, a character line consisting of consecutive character pixels of BTHL or more on a scanning line will be referred to as a predetermined character line.

そしてこの実施例では、検出手段12を検出した文字画
素の座標を保存する手段とする。
In this embodiment, the detection means 12 is used as means for storing the coordinates of detected character pixels.

さらに、検出手段12は、図示せずも例えば、画像デー
タDの主走査開始位置及び終了位置を指定するための座
標X、及び×6を格納するXsレジスタ及びXEレジス
タと、 画像データの副走査開始位置及び終了位置を指定するた
めの座標Ys及びYEを格納するYsレジスタ及びYE
レジスタと、 画像データDの走査座標XSC及びYscを格納するX
、。レジスタ及びY、。レジスタと、画像データC1走
査中か否かの情報を格納するB、レジスタと、 走査停止位M(或は終了位置)を表す座標XCを格納す
るX。レジスタと、 走査線上で最初に検出される文字画素の座標X。。
Furthermore, the detection means 12 includes, for example, an Xs register and an XE register that store coordinates X and x6 for specifying the main scanning start position and end position of the image data D, although not shown, and a sub-scanning of the image data. Ys register and YE that store coordinates Ys and YE for specifying the start position and end position
A register, and X for storing the scanning coordinates XSC and Ysc of the image data D.
,. Register and Y. A register, B for storing information as to whether image data C1 is being scanned, a register, and X for storing coordinates XC representing the scanning stop position M (or end position). register and the coordinate X of the first character pixel detected on the scan line. .

を格納するX。、レジスタと、 画像データDの走査線上で連続して検出される文字画素
の個数818計数するBカウンタと、画像データの走査
方向を指定する情報を格納するDIRレジスタと、 画像データの走査方向に応じた定数@ DADD@格納
するDADDレジスタとを 備える。尚、定数値DADDは、次の画素の画像データ
の走査のため走査座標XSCに加Nされる定数値である
X to store. , a register, a B counter that counts the number 818 of character pixels consecutively detected on the scanning line of the image data D, a DIR register that stores information specifying the scanning direction of the image data, and a DIR register that stores information specifying the scanning direction of the image data. It is equipped with a DADD register to store a corresponding constant @ DADD @. Note that the constant value DADD is a constant value that is added to the scanning coordinate XSC in order to scan the image data of the next pixel.

そして検出手段12は、例えば次のように動作する。The detection means 12 operates, for example, as follows.

一方或は他方の方向の走査によって走査線上で最初に検
出される文字画素の座標を検出するため、検出手段12
はまず走査線上の画像データi −方の方向へ走査する
A detection means 12 is used to detect the coordinates of the first character pixel detected on the scanning line by scanning in one or the other direction.
First, the image data on the scanning line is scanned in the i-direction.

一方方向の走査においで走査線上で所定の文字線を検出
しなければ、当該走査線の次の走査線の画像データを一
方の方向へ走査する。検出手段12は、所定の文字線を
検出せずに、走査線−ラインにつき走査を終えると(す
なわち走査座標XSCがX5C=XE+1となると)、
走査停止座標X0としてX5C=XE+1を保存する。
If a predetermined character line is not detected on a scanning line during scanning in one direction, the image data of the scanning line next to the scanning line is scanned in one direction. When the detection means 12 finishes scanning the scanning line minus the line without detecting a predetermined character line (that is, when the scanning coordinate XSC becomes X5C=XE+1),
Save X5C=XE+1 as the scanning stop coordinate X0.

また−力方向の走査においで走査線上で所定の文字線を
検出したら、検出手段12は動作を中止する。検出手段
12は例えば、所定の文字線のBTHL番目の文字画素
を検出したら、このB THL番目の文字画素の走査座
標XSCを走査停止座標X。とじて保存し、そして動作
を停止する。BTHL番目の文字画素を検出したら動作
を停止することによって、所定の文字線を構成する文字
画素の必ずしも全部を走査せずに済むので、処理速度の
向上を図れる。
Further, when a predetermined character line is detected on the scanning line during scanning in the force direction, the detection means 12 stops its operation. For example, when the detection means 12 detects the BTHLth character pixel of a predetermined character line, it scans the scanning coordinate XSC of this BTHLth character pixel to the scanning stop coordinate X. Close, save, and stop working. By stopping the operation when the BTHL-th character pixel is detected, it is not necessary to scan all of the character pixels constituting a predetermined character line, so that processing speed can be improved.

次いで、一方方向の走査で所定の文字線を検出した走査
線を他方の方向へ走査し、この他方方向の走査において
走査線上で所定の文字線を検出したら、検出手段12は
動作を停止する。一方方向の走査と同様、この他方方向
の走査でも検出手段12は例えば、所定の文字線のB 
THL番目に検出された文字画素の走査座標XSCを走
査停止座標Xcとして保存し、動作を停止する。
Next, the scanning line on which a predetermined character line has been detected during scanning in one direction is scanned in the other direction, and when the predetermined character line is detected on the scanning line during scanning in the other direction, the detection means 12 stops its operation. Similar to the scanning in one direction, in this scanning in the other direction, the detection means 12 detects, for example, B of a predetermined character line.
The scanning coordinate XSC of the THLth detected character pixel is saved as the scanning stop coordinate Xc, and the operation is stopped.

このように検出手段12は一方の方向の走査で所定の文
字線の文字画素が検出されたら当該文字画素が検出され
た走査線を他方の方向へ走査し、その後文の走査線を一
方の方向へ走査する。従って、文字画素が検出された走
査線上の必ずしも全部の画素を走査しないので、処理速
度の向上を図れる。
In this way, when a character pixel of a predetermined character line is detected by scanning in one direction, the detection means 12 scans the scanning line where the character pixel was detected in the other direction, and then scans the scanning line of the sentence in one direction. Scan to. Therefore, since not all pixels on the scanning line where character pixels are detected are necessarily scanned, processing speed can be improved.

また上述のようにして検出される走査停止座標×。は、
所定の文字線が検出されたとき、一方方向の走査におい
てはXs≦Xc≦XEとなり、ま−た他方方向の走査に
おいてはXE≦Xc≦Xsとなる。ざらに所定の文字線
を検出せずに走査線−ラインの走査を終了したとき、走
査停止座標×oは一方及び他方の走査において×。=X
、+1となる。従って、例えば走査停止座標X。を、走
査線上で文字線が検出されたか否かの情報として用いる
ことが出来る。
Also, the scanning stop coordinate x detected as described above. teeth,
When a predetermined character line is detected, Xs≦Xc≦XE when scanning in one direction, and XE≦Xc≦Xs when scanning in the other direction. When the scanning line-to-line scanning is completed without roughly detecting a predetermined character line, the scanning stop coordinate xo is x in one and the other scanning. =X
, +1. Therefore, for example, the scanning stop coordinate X. can be used as information on whether a character line is detected on a scanning line.

検出手段12は、所定の文字線の、最初に(第一番目に
)検出された文字画素の座標を始端座標XCIとして保
存する。
The detection means 12 stores the coordinates of the first (first) detected character pixel of a predetermined character line as the starting end coordinates XCI.

(文字行検出制御手段) この実施例の制御手段14は、文字画素を検出した走査
線の次の走査線上で文字画素を検出しなかったとき、検
出された第一、第二、第三及び第四座標を出力する。こ
の結果、画像データDの走査範囲a内で行毎に、第一、
第二、第三及び腑四庄標としてのY工、Ye 、XL及
びXRを検出することが出来る。
(Character Line Detection Control Means) The control means 14 of this embodiment detects the detected first, second, third, and Output the fourth coordinate. As a result, for each row within the scanning range a of the image data D, the first,
It is possible to detect Y, Ye, XL, and XR as the second, third, and fourth location marks.

そして制御手段14は、図示せずも例えば、画像データ
Dの走査範囲を指定するための座標X1.X2、Yl及
びY2を格納するx、レジスタ、×2レジスタ、Y、レ
ジスタ及びY2レジスタと、 副走査位置を指定するための座標Yを格納するYレジス
タとを 備える。
Then, the control means 14 controls, for example, coordinates X1, . It includes an x register, a x2 register, a Y register, and a Y2 register that store X2, Yl, and Y2, and a Y register that stores a coordinate Y for specifying a sub-scanning position.

以下、座標YT 、Ye 、XL及びX、Iの検出原理
につき簡単に述べる。
The principle of detection of the coordinates YT, Ye, XL and X, I will be briefly described below.

第2図からも明らかなように、行の外接枠Fは点(XL
 、 YT )、(X、、Y□)、点(XL、Ye)、
点(x* 、Ye )の四点を結んで得られる矩形枠と
なる。
As is clear from Figure 2, the circumscribed frame F of the row is the point (XL
, YT ), (X,, Y□), point (XL, Ye),
A rectangular frame is obtained by connecting the four points (x*, Ye).

ここで、−単位の行を構成する文字パタンD1の存在す
る行領域をy軸の正方向に順次に副走査してゆく場合を
考えると、文字画素(@は所定の文字線)が検出されな
かった走査線の次の走査線S上で文字画素が検出された
ときに一単位の行領域の走査が始り、この後文字画素が
検出される走査線Sが続く、そして、文字画素が検出さ
れた走査線Sの次の走査線S上で文字画素が検出されな
くなると一単位の行領域の走査が終わる。
Here, if we consider the case where the line area in which the character pattern D1 constituting the - unit line exists is sequentially sub-scanned in the positive direction of the y-axis, character pixels (@ is a predetermined character line) are detected. Scanning of one unit of line area begins when a character pixel is detected on the scan line S next to the scan line where the character pixel was not present, followed by the scan line S in which the character pixel is detected, and then the character pixel is detected on the next scan line S. When no character pixels are detected on the scanning line S next to the detected scanning line S, scanning of one unit of line area ends.

従って文字画素が検出されなかった走査線の次の走査線
S上で文字画素が検出されたとき当該文字画素が検出さ
れた走査線Sの副走査座標が検出すべき第一座標YTと
なり、また文字画素か検出された走査線Sの次の走査線
S上で文字画素が検出されなかったとき当該文字画素が
検出された走査線Sの副走査座標が検出すべき第二座標
Y8となることが理解出来る。
Therefore, when a character pixel is detected on the scanning line S next to the scanning line where no character pixel was detected, the sub-scanning coordinate of the scanning line S where the character pixel was detected becomes the first coordinate YT to be detected, and When a character pixel is not detected on the scanning line S next to the scanning line S where a character pixel was detected, the sub-scanning coordinate of the scanning line S where the character pixel was detected becomes the second coordinate Y8 to be detected. I can understand.

ざらに、副走査座標YT−YBまでの間で検出される文
字画素のX座標の大小を考えると、これら文字画素のX
座標のうち、最小となるX座標が第三座標XLとなり、
最大となるX座標が第四座標xRとなることが理解出来
る。
Roughly speaking, considering the size of the X coordinate of character pixels detected between sub-scanning coordinates YT-YB, the
Among the coordinates, the minimum X coordinate is the third coordinate XL,
It can be understood that the maximum X coordinate is the fourth coordinate xR.

このような検出原理に従って第一〜第四座標を検出する
ため、制御手段14は例えば次に述べるように動作する
In order to detect the first to fourth coordinates according to such a detection principle, the control means 14 operates as described below, for example.

制御手段14は、主として検出手段12、Pレジスタ1
6、Y□レジスタ18、Y8レジスタ20、XLレジス
タ22、X□レジスタ24及びXl、lレジスタ26ヲ
制御することによって、座標YT、Y8、XL及びXR
を検出する。
The control means 14 mainly includes the detection means 12 and the P register 1.
6. By controlling the Y□ register 18, Y8 register 20, XL register 22, X□ register 24 and Xl, l register 26, coordinates YT, Y8, XL and XR
Detect.

すなわち制御手段14は、走査線S上で文字線が検出さ
れた場合には文字線か検出されたことを表す情報例えば
rl」IPレジスタ16に保存し、走査線S上で文字線
@検出することなく走査線−ラインの走査を終了した場
合には文字線が検出されなかったことを表す情報例えば
「○」をPレジスタ16に保存する。制御手段14は、
Pレジスタ16の情報書換えを行なう場合、走査中の走
査線の一ライン前の、走査線に関する文字線の有無情報
が保存されるように、Pレジスタ16の情報書換えを行
なう。
That is, when a character line is detected on the scanning line S, the control means 14 stores information indicating that a character line has been detected, for example, "rl" in the IP register 16, and detects the character line on the scanning line S. If the line-to-line scanning is completed without detecting a character line, information indicating that no character line has been detected, such as "O", is stored in the P register 16. The control means 14 is
When rewriting the information in the P register 16, the information in the P register 16 is rewritten so that the presence/absence information of a character line regarding the scanning line one line before the scanning line being scanned is saved.

そして、制御手段14は所定の文字線が検出されたとき
にPレジスタ16の情報が「0」であれば、当該文字線
が検出された走査線Sの副走査位置を、検出すべき座標
YyとしてYT レジスタ18に保存する。
If the information in the P register 16 is "0" when a predetermined character line is detected, the control means 14 determines the sub-scanning position of the scanning line S where the character line is detected at the coordinate Yy to be detected. It is saved in the YT register 18 as .

また、制御手段14は、所定の文字線が検出される毎に
当該文字線が検出された走査線Sの副走査位置をYaレ
ジスタ20に保存しなおす。走査線S上で所定の文字線
が検出されなかったときにPレジスタ16の情報が「1
」てあれば、このときY8レジスタ20に保存されてい
る走査線の副走査位置が検出すべき座標Y8である。
Furthermore, each time a predetermined character line is detected, the control means 14 saves in the Ya register 20 the sub-scanning position of the scanning line S where the character line is detected. When a predetermined character line is not detected on the scanning line S, the information in the P register 16 becomes "1".
'', the sub-scanning position of the scanning line stored in the Y8 register 20 is the coordinate Y8 to be detected.

ざら(こ制御手段14は、一方方向の走査で所定の文字
線が検出されると、一方方向の走査で検出された始端座
標XCIを、XLレジスタ22の内容(検出すべき座標
X、の候補、以下XL候補と称す)と比較する。そして
、Xc+<(Xt候補)であれば、新たなXL候補とし
て始端座標XCIをX、レジスタ22に格納しなおす、
始端座標X。1及びXL候補の比較と比較結果に応した
XL候補の書換えとは、走査線Sの一ライン毎(単位)
に行なわれる。
When a predetermined character line is detected by scanning in one direction, the control means 14 converts the starting end coordinate XCI detected by scanning in one direction into the content of the XL register 22 (candidate of the coordinate X to be detected). , hereinafter referred to as XL candidate).If Xc+<(Xt candidate), the starting end coordinate XCI is stored in the register 22 as a new XL candidate.
Starting point coordinate X. Comparison of 1 and XL candidates and rewriting of XL candidates according to the comparison results means for each scanning line S (unit)
It will be held in

従って一方方向の走査で所定の文字線か検出されなかっ
たときにPレジスタ16の情報が「]」であれば、この
ときxLレジスタ22に格納されているXL候補が、座
標Y、かうY8までの間の走査線上で検出されたXL候
補のうち最小のXL候補となり、従って検出すべき座標
X、となる。
Therefore, if the information in the P register 16 is "]" when a predetermined character line is not detected during scanning in one direction, the XL candidate stored in the xL register 22 at this time is at the coordinate Y, up to Y8. This is the smallest XL candidate among the XL candidates detected on the scanning line between the two, and therefore the coordinate X to be detected.

また制御手段14は、他方方向の走査で所定の文字線が
検出されると、他方方向の走査で検出された始端座標X
。、を、XRレジスタ26の内容(検出すべき座標Xt
+の候補、以下XR候補と称す)と比較する。そしてX
。、>(X*候補)であれば、新たなX、I候補として
始端座標XC+をXRレジスタ26に格納しなおす。始
端座標XCI及びXR候補の比較と比較結果に応じたX
、候補の書換えとは、走査線Sの一ライン@(単位)に
行なわれる。
Further, when a predetermined character line is detected in the scanning in the other direction, the control means 14 controls the starting point coordinate X detected in the scanning in the other direction.
. , the contents of the XR register 26 (coordinates to be detected
+ candidate (hereinafter referred to as XR candidate). And X
. , > (X* Candidate), the start end coordinate XC+ is stored in the XR register 26 again as a new X, I candidate. Comparison of starting end coordinates XCI and XR candidates and X according to the comparison results
, rewriting of the candidates is performed for one line (unit) of the scanning line S.

従って、走査線S上で文字線が検出されなかったときに
Pレジスタ16の情報が「1」であれば、このときXR
レジスタ26に格納されている×8候補が、座標Y工が
らYllまでの間の走査線上で検出された×5候補のう
ち最大のXR候補となり、従って検出すべき座標XRと
なる。
Therefore, if the information in the P register 16 is "1" when no character line is detected on the scanning line S, then
The ×8 candidate stored in the register 26 is the largest XR candidate among the ×5 candidates detected on the scanning line between the coordinates Y and Yll, and therefore becomes the coordinate XR to be detected.

(動作) 以下、第一実施例の装−10の動作につき、動作流れ図
ヲ参照してより詳細に説明する。尚、走査範囲を指定す
るための座標XI、X2、Yl及びY2は、装M10に
対して予め入力されでいるものとする。
(Operation) The operation of the device 10 of the first embodiment will be described in more detail below with reference to an operation flowchart. It is assumed that the coordinates XI, X2, Yl, and Y2 for specifying the scanning range have been input to the device M10 in advance.

第3図(A)及び(8)は文字行検出制御手段の動作流
れ図、また第4図は文字線検出手段の動作流れ図である
3(A) and (8) are operation flowcharts of the character line detection control means, and FIG. 4 is an operation flowchart of the character line detection means.

に文字行検出制御手段の動作 まず、第3図(A)及び(B)V?照して、制御手段1
4の動作につき説明する。
First, the operation of the character line detection control means in FIGS. 3(A) and (B) V? In contrast, the control means 1
Operation No. 4 will be explained.

読取装置I28による帳票等の走査が終了し、従って画
像メモリ30に画像データDの格納が終了すると、制御
手段14が動作を開始する(START )。
When the scanning of the form or the like by the reading device I28 is completed and therefore the storage of the image data D in the image memory 30 is completed, the control means 14 starts its operation (START).

この実施例では、座標X+ 、X2、Yl及びY2は、
制御手段14に予め入力されでおり、例えば固定データ
として或はキーボードを介して書換え自在に、入力され
る。
In this example, the coordinates X+, X2, Yl and Y2 are
The information is input in advance to the control means 14, for example, as fixed data or rewritably via the keyboard.

動作を開始した制御手段14は、XL候補の初期値とし
てr X 2 +I J ’a X L レジスタ22
に及びXR候補の初期値としてrX+ −]JをxRレ
ジスタ26にセットしくSl)、Pレジスタ16に初期
値としで「oJをセットしくS2)、Yレジスタに副走
査位置として’Y+J!セットする(S3)、Pレジス
タ16に初期値roJ’lrセットすることは、画像デ
ータDの走査を開始して第一番目に走査される走査線の
、−ライン前の走査線を仮想し、この仮想された走査線
において文字線が検出されなかったと想定することを表
す。
The control means 14 that has started the operation sets r X 2 +I J 'a X L register 22 as the initial value of the XL candidate.
Set rX+ - ]J in the xR register 26 as the initial value of the XR candidate (Sl), set oJ as the initial value in the P register 16 (S2), and set 'Y+J! as the sub-scanning position in the Y register. (S3) Setting the initial value roJ'lr in the P register 16 means imagining a scanning line -line before the first scanning line scanned after starting the scanning of the image data D, and This indicates that it is assumed that no character line was detected in the scan line that was scanned.

次に、制御手段14は×s座標としでrX+JtXsレ
ジスタに、×6座標として「×2」を×6レジスタに、
副走査座標’/scとしてrYJ’&Yscレジスタに
、さらに走査方向を指定する情報例えばrOJVDIR
レジスタにセットする(S4)。
Next, the control means 14 sets the xs coordinate to the rX+JtXs register, and sets "x2" to the x6 register as the x6 coordinate.
The sub-scanning coordinate '/sc is stored in the rYJ'&Ysc register, and information specifying the scanning direction, for example, rOJVDIR.
Set it in the register (S4).

この実施例では、走査方向を一方の方向とする情報とし
ては例えば「0」を、また走査方向を他方の方向とする
情報としでは例えば「1」を用いる。
In this embodiment, for example, "0" is used as the information that the scanning direction is one direction, and "1" is used as the information that the scanning direction is the other direction.

次に、制御手段14は検出手段12に対し起動信号を出
力する(S5)、この結果、検出手段12は、走査線上
の所定の文字線を検出するための動作を開始する( *
 5TART 、第4図参照)。
Next, the control means 14 outputs an activation signal to the detection means 12 (S5), and as a result, the detection means 12 starts an operation for detecting a predetermined character line on the scanning line (*
5TART, see Figure 4).

制御手段14は、検出手段12が所定の文字線を検出し
て動作を停止するか或は所定の文字線を検出することな
く走査線−ラインの走査を終了して動作を停止するのを
、まっ、このように制御手段14か検出手段12の動作
停止そまつと共に、検出手段12が文字線検出のために
走査している状態を、第3図(△)中、BIJSYと表
現する。
The control means 14 controls whether the detection means 12 detects a predetermined character line and stops its operation, or finishes scanning line-to-line without detecting a predetermined character line and stops its operation. The state in which the control means 14 or the detection means 12 are almost stopped and the detection means 12 is scanning for character line detection is expressed as BIJSY in FIG. 3 (△).

検出手段12は動作を開始すると走査中であることを表
す情報例えば「1」を8.レジスタに保存する。また検
出手段12は文字線を検出するか走査線−ラインの走査
を終了するかすると、走査を停止或は終了したことを表
す情報例えばroJ%格納する。従って、制御手段14
は検出手段12に対し起動信号を出力するとB、レジス
タの格納情報をチエツクしくS6)、検出手段12か走
査中か否かを判定する。B、レジスタのチエツクは、B
uレジスタの情報が「○」となるまで繰返し行なわれる
When the detection means 12 starts its operation, it sends information indicating that scanning is in progress, for example "1" to 8. Save in register. Further, when the detection means 12 detects a character line or finishes scanning from one scanning line to another, it stores information indicating that scanning has been stopped or finished, such as roJ%. Therefore, the control means 14
When outputting an activation signal to the detection means 12, the controller checks the information stored in the register (S6) and determines whether or not the detection means 12 is scanning. B. Checking the register is B.
This process is repeated until the information in the u register becomes "○".

Buレジスタの情報が「0」となり、従って検出手段1
2が動作を停止すると、制御手段14は検出手段12の
×。レジスタの格納情報XctチエツクしくS7)、走
査線上の文字線の有無を判定する。S7のチエツクの結
果に応じて、制御手段14は次の■〜■に述べるように
動作する。
The information in the Bu register becomes "0", so the detection means 1
2 stops operating, the control means 14 detects the detection means 12. The information stored in the register Xct is checked (S7) to determine the presence or absence of a character line on the scanning line. Depending on the result of the check in S7, the control means 14 operates as described in the following (1) to (2).

■走査線上で所定の文字線が検出されたときS7のチエ
ツクでX、≦XC≦X、であれば、検出手段12が走査
線上で所定の文字線を検出したことを表す。
(2) When a predetermined character line is detected on the scanning line If the check in S7 shows that X, ≦XC≦X, this indicates that the detection means 12 has detected a predetermined character line on the scanning line.

従って制御手段14は、文字線が検出された走査線の副
走査位置である座標YをY8レジスタ20に格納しくS
8) 、所定の文字線の始端座標X。。
Therefore, the control means 14 stores the coordinate Y, which is the sub-scanning position of the scanning line where the character line was detected, in the Y8 register 20.
8) , the starting end coordinates X of a predetermined character line. .

とXLレジスタ22のXL候補とを比較する(S9)。and the XL candidates in the XL register 22 are compared (S9).

この比較によってXc+<(XL候補)であればこのX
CIを新たなX、候補としてXLレジスタ22に格納し
くXL候補の書換え、S 10) 、Xc+<(XL候
補)でなければXL候補を書換えない。
By this comparison, if Xc+<(XL candidate), this
The CI is stored as a new X candidate in the XL register 22, and the XL candidate is rewritten, S10).The XL candidate is not rewritten unless Xc+<(XL candidate).

S10でXCI<(XL候補)のときのみXL候補の書
換えを行なうことによって、−単位の行において最小の
XL候補(すなわち検出すべき座標XL)を検出出来る
By rewriting the XL candidate only when XCI<(XL candidate) in S10, the minimum XL candidate (that is, the coordinate XL to be detected) can be detected in the - unit row.

次に、制御手段14は所定の文字線が検出された走査線
を他方方向へ走査するため、xs座標として’X2 J
 ’#Xsレジスタに、X、座標として’X+J’&X
Eレジスタに、副走査座標YSCとして「YJを’/s
cレジスタに、さらに走査方向を指定するための情報と
して例えばrlJVDIRレジスタにセットする(Sl
l)。
Next, in order to scan the scanning line in which the predetermined character line has been detected in the other direction, the control means 14 sets 'X2 J as the xs coordinate.
'#Xs register, X, coordinate 'X+J'&X
Enter “YJ’/s” in the E register as the sub-scanning coordinate YSC.
c register, and further set it in the rlJVDIR register as information for specifying the scanning direction (Sl
l).

次に、制御手段14は検出手段12に対して起動信号を
出力する(S 12) 。
Next, the control means 14 outputs an activation signal to the detection means 12 (S12).

そして制御手段14は、検出手段12のBuレジスタの
格納情報のチエツクを行なう(S 13) 。
The control means 14 then checks the information stored in the Bu register of the detection means 12 (S13).

Buレジスタの情報チエツクは、Bu レジスタの情報
がrQJとなるまで繰返し行なわれる。
The information check of the Bu register is repeated until the information of the Bu register becomes rQJ.

BUレジスタの情報が「O」となり、従って検出手段1
2が所定の文字線を検出して動作を停止すると、制御手
段14は他方方向の走査で検出された所定の文字線の始
端座標XCIと、×8レジスタ26のX、候補とを比較
する(S 14) 、この比較の結果、制御手段14は
、XCI>XRであればこのときのX。Iヲ新たなX、
候補としてXRレジスタ26に格納しくXR候補の書換
え、S 15 ) 、XCI>XRでなければ×6候補
を書換えない。S15でXc+>XRのときのみ×R候
補の書換えを行なうことによって、−単位の行においで
最大のXR候補(すなわち検出すべき座標XR)を検出
するここが出来る。
The information in the BU register becomes "O", so the detection means 1
2 detects a predetermined character line and stops its operation, the control means 14 compares the starting end coordinate XCI of the predetermined character line detected by scanning in the other direction with the X of the ×8 register 26 and the candidate ( S14) As a result of this comparison, the control means 14 sets X at this time if XCI>XR. Iwo new X,
Rewriting the XR candidate to be stored in the XR register 26 as a candidate (S 15 ), the ×6 candidate is not rewritten unless XCI>XR. By rewriting the xR candidate only when Xc+>XR in S15, it is possible to detect the maximum XR candidate (ie, the coordinates XR to be detected) in the - unit row.

次に、制御手段14はPレジスタ16の格納情報をチエ
ツクする(S16)。
Next, the control means 14 checks the information stored in the P register 16 (S16).

S16のチエツクでPレジスタ16の格納情報が「0」
であれば所定の文字線が検出されなかった走査線の次の
走査線で所定の文字線が検出されたことを表すので、制
御手段14は所定の文字線が検出された走査線の副走査
位1tYを座標Y、としてYTレジスタ18に格納する
(S 17)。そして、Pレジスタ16に所定の文字線
が検出されたことを表す情報「1」を格納する(S 1
8)。
The information stored in the P register 16 is "0" when checked in S16.
If so, it means that the predetermined character line was detected in the scanning line following the scanning line in which the predetermined character line was not detected, so the control means 14 controls the sub-scanning of the scanning line in which the predetermined character line was detected. The position 1tY is stored in the YT register 18 as the coordinate Y (S17). Then, information "1" indicating that a predetermined character line has been detected is stored in the P register 16 (S 1
8).

またS16のチエツクでPレジスタ16の格納情報が「
○」でなければ(従って「1」であれば)所定の文字線
が検出された走査線の次の走査線で所定の文字線が検出
されたことを表すので、制御手段14はS17〜18の
処理を行なわない。
Also, by checking in S16, the information stored in the P register 16 is “
If it is not "○" (therefore, if it is "1"), it means that the predetermined character line has been detected in the scanning line next to the scanning line in which the predetermined character line was detected, so the control means 14 performs the steps S17 to S18. processing is not performed.

S17てPレジスタ16の情報か「○」のときのみ文字
線が検出された走査線の副走査位ICYをY、レジスタ
に格納することによって、−単位の行において検出すべ
き座標YTを格納することが出来る。
In S17, only when the information in the P register 16 is "○", the sub-scanning position ICY of the scanning line where the character line was detected is stored in the Y register, thereby storing the coordinate YT to be detected in the - unit line. I can do it.

次に制御手段14は、走査線の副走査位WYがYE  
(=y2)となるまで画像データを走査したか否かをチ
エツクする(S 19)。Y=Y2であれば、走査範囲
の全範囲の画像データにつき走査を終了したことを表す
ので、制御手段14は動作を終了する(END ) 、
 Y−Yzでなければ、走査範囲の全範囲の画像データ
につき走査終了しでいないことを表すので、次の走査線
上の画像データの走査のため、副走査位1tYtrlJ
だけインクリメントしく520)、S4に戻る。
Next, the control means 14 determines that the sub-scanning position WY of the scanning line is YE.
It is checked whether the image data has been scanned until (=y2) (S19). If Y=Y2, it means that scanning has been completed for the entire range of image data in the scanning range, so the control means 14 ends the operation (END).
If it is not Y-Yz, it means that scanning has not been completed for the entire range of image data in the scanning range, so in order to scan the image data on the next scanning line, the sub-scanning position 1tYtrlJ
520) and returns to S4.

■走査線上で文字線が検出されなかったときS7のチエ
・yりでXc+レジスタの格納情報X。
■When no character line is detected on the scanning line, the check in S7 results in Xc+register storage information X.

がX。= Xe + 1 (= X2 + l )であ
れば、検出手段12は走査線上で所定の文字線を検出す
ることなく、走査線−ラインの走査を終了したことを表
すので、制御手段14はPレジスタ16の格納情報をチ
エツクする(S21)。
is X. If = Xe + 1 (= The information stored in the register 16 is checked (S21).

S21のチエツクで格納情報が「1」であれば、制御手
段14は走査を終えた走査線で文字線が検出されなかっ
たことを表す情報roJ8Pレジスタ16に格納する(
S22)。
If the stored information is "1" in the check at S21, the control means 14 stores information in the roJ8P register 16 indicating that no character line was detected in the scanned line (
S22).

また、521のチエツクで格納情報が「1」であれば所
定の文字線が検出された走査線の次の走査線で所定の文
字線が検出されなかったことを表し、従って一単位の行
に関して座標YT、Y、、X、及びXRが検出されたこ
とを表すので、制御手段14は座標Y□、Ys、XL及
びXR8、レジスタ18.20.22及び26からそれ
ぞれ読み込みそして情報記憶部32に書込む(S23)
Also, if the stored information is "1" when checking 521, it means that the specified character line was not detected in the scanning line following the scanning line in which the specified character line was detected, and therefore, regarding one unit line. This indicates that the coordinates YT, Y, , X, and XR have been detected, so the control means 14 reads the coordinates Y□, Ys, XL, and Write (S23)
.

次に、制御手段14はX、レジスタ22に初期値rX2
+IJ及びXRレジスタ26ニ初期値「×1−]」を格
納しく524)、S19に進みS19の判定結果に応じ
で動作する。
Next, the control means 14 sets X to the initial value rX2 in the register 22.
The +IJ and XR registers 26 are stored with the initial value "x1-]" (524), and the process proceeds to S19, where operations are performed according to the determination result of S19.

またS21のチエツクで格納情報が「1」でなければ(
従っでrQJであれば)、所定の文字線が検出されなか
った走査線の、次の走査線で所定の文字線が検出されな
かったことを表すので、S21の次に322〜24を行
なわずに、S19の処理を行なう。
Also, if the stored information is not "1" in the check in S21 (
Therefore, if rQJ), it means that the predetermined character line was not detected in the next scan line after the scan line in which the predetermined character line was not detected, so steps 322 to 24 are not performed after S21. Then, the process of S19 is performed.

II:文字線検出手段の動作 次に、第4図を参照し検出手段12の動作につき説明す
る。
II: Operation of character line detection means Next, the operation of the detection means 12 will be explained with reference to FIG.

検出手段12は、制御手段14からの起動信号を入力す
ると文字線検出のための動作を開始する(*5TART
 ) 。
The detection means 12 starts an operation for character line detection upon input of the activation signal from the control means 14 (*5TART
).

動作を開始した検出手段12は、BUレジスタに走査中
を表す情報例えば「1」を格納しくSl)、さらにDI
Rレジスタの格納情報をチエツクする(*S2)。
The detection means 12 that has started its operation stores information indicating that scanning is in progress in the BU register, for example, "1" (Sl), and further DI
Check the information stored in the R register (*S2).

*S2のチエツクで格納情報が一方方向の走査を指定す
る情報例えば「0」であれば、検出手段12は定数値D
ADDとして例えばr I J 7jDADDレジスタ
に格納する(*S3)、DADD= 1とすることによ
って、X軸の正方向(×座標が大きくなる方向)へ走査
線上の画像データを走査することになる。
*If the stored information in the check in S2 is information specifying one-way scanning, for example "0", the detection means 12 detects the constant value D.
By storing ADD in the r I J 7j DADD register (*S3) and setting DADD=1, the image data on the scanning line is scanned in the positive direction of the X axis (the direction in which the x coordinate increases).

また、*S2のチエツクで格納情報が「O」ではなく他
方方向の走査を指定する情報例えば「1」であれば、検
出手段12は定数値0A00として例えばr −I J
 !DADDレジスタに格納する(*S4)。DADD
= −1とすることによって、X軸の負方向(×座標が
小ざくなる方向)へ走査線上の画像データを走査するこ
とになる。
Also, if the stored information is not "O" in the check of *S2, but information specifying scanning in the other direction, for example, "1", the detection means 12 sets a constant value of 0A00 to, for example, r - I J
! Store in the DADD register (*S4). DADD
By setting = -1, the image data on the scanning line is scanned in the negative direction of the X axis (the direction in which the x coordinate becomes smaller).

動作を開始した検出手段12は、ざらにBレジスタに初
期値「o」を格納しく*S5)、走査開始座標Xst主
走査座標XSCとしてX8Cレジスタに格納する(*S
6)。
The detection means 12 that has started its operation roughly stores the initial value "o" in the B register *S5), and stores it in the X8C register as the scanning start coordinate Xst and the main scanning coordinate XSC (*S5).
6).

*S1〜6の処理の後、検出手段12は走査座標XSC
及びYSCによって指定される画素位置の画像データを
画像メモリ30から読み込み(*S7)、読み込んだ画
像データの画素値が文字画素を表す′ 画素値か否か(
この実施例では画素値「1」であるか否か)をチエツク
する(*S8)、*S8のチエツクの結果に応じて、検
出手段12は次のΦ〜■に述べるように動作する。
*After the processing of S1 to S6, the detection means 12 detects the scanning coordinate XSC
Read the image data at the pixel position specified by YSC and YSC from the image memory 30 (*S7), and check whether the pixel value of the read image data is a pixel value representing a character pixel (
In this embodiment, a check is made as to whether the pixel value is "1" (*S8). Depending on the result of the check at *S8, the detection means 12 operates as described in the following Φ to (2).

■文字画素を検出したとき *S8のチエツクで読み込んだ画像データの画素値が文
字画素を表す所定の画素値「1」であれば、文字画素を
走査線上で検出したことを表すので、計数値Bを「1」
だけインクリメントしく*S9)、次に8=1か否かを
チエツクする(*510)。
■When a character pixel is detected *If the pixel value of the image data read in by the check in S8 is the predetermined pixel value "1" representing a character pixel, it means that a character pixel has been detected on the scanning line, so the count value B is “1”
*S9), and then checks whether 8=1 (*510).

検出手段12は、*S10のチエツクで8=1であれば
所定の文字線の始端座標XCIの候補(Xc+候補)と
してこのときの走査座標XSCをX。、レジスタに格納
しくXc+候補の書込み、*511)、B=1でなけれ
ばXC+候補の書込みを行なわない。B=1のときのみ
X。1候補の書込みを行なうことによって、始端座標X
。1を検出出来る。
If 8=1 in the check in *S10, the detection means 12 sets the current scanning coordinate XSC to X as a candidate (Xc+candidate) for the starting end coordinate XCI of a predetermined character line. , writing of Xc+ candidate to be stored in register, *511), writing of XC+ candidate is not performed unless B=1. X only when B=1. By writing one candidate, the starting end coordinate
. 1 can be detected.

次に検出手段12は計数値Bと任意好適に設定される閾
値BTHL  (例えばB THL = 3 )とを比
較する(*512)。
Next, the detection means 12 compares the count value B with an arbitrarily set threshold value BTHL (for example, BTHL = 3) (*512).

*S12の比較の結果、B=8.、LであればBTHL
だけ連続して検出された文字画素はノイズではなく文字
図形パタンを構成する文字線とみなされ、従って所定の
文字線が検出されたことを表す。従って検出手段12は
、連続して検出された文字画素のうちBT)IL番目に
検出された文字画素の主走査座標Xsc’f、走査停止
座標X。とじて、Xcレジスタに格納しく*513)、
走査を停止することを表す情報「1」をB。レジスタに
格納しく*314)、その後動作を停止する(*εND
 ) 。
*As a result of the comparison in S12, B=8. , if L then BTHL
Character pixels that have been detected consecutively for a number of times are considered not as noise but as character lines constituting a character graphic pattern, and therefore represent that a predetermined character line has been detected. Therefore, the detection means 12 detects the main scanning coordinate Xsc'f and the scanning stop coordinate X of the character pixel detected BT)ILth among the continuously detected character pixels. and store it in the Xc register *513),
B indicates information “1” indicating that scanning is to be stopped. Store it in the register *314), then stop the operation (*εND
).

B=B、HLとなった結果、XCIレジスタに格納され
ているX。、候補が検出すべき始端座標XCIとなる。
As a result of B=B, HL, X is stored in the XCI register. , the starting point coordinates XCI to be detected by the candidate.

また*S12の比較の結果B”BTHLでなければ、検
出手段12は、走査線上の次の画素の画像データの走査
のために主走査座標Xscに定数値0^DDを加算しく
*511)、走査線−ラインの走査を終えたか否かを判
定するために座標Xscと座標Xεとを比較する(*S
 16) 。
If the comparison result in *S12 is not B"BTHL, the detection means 12 adds a constant value 0^DD to the main scanning coordinate Xsc in order to scan the image data of the next pixel on the scanning line *511), Scanning line - Coordinate Xsc and coordinate Xε are compared to determine whether scanning of the line has been completed (*S
16).

*S16の比較の結果X sc> X Eであれば所定
の文字線を検出することなく走査線−ラインの走査を終
了したことを表すので、検出手段12はこのときの走査
座標X5c(=Xp +1)’i走走査停止座標X上し
てXcレジスタに格納しく*513)、さらに走査を停
止したことを表す情報roJ88uレジスタに格納しく
*314)、動作を停止する(*END)。
*If the result of the comparison in S16 is X sc> +1) 'i-scan Scanning stop coordinate X is increased and stored in the Xc register *513), information indicating that scanning has been stopped is stored in the roJ88u register *314), and the operation is stopped (*END).

*S16の比較の結果XSC>XEでなければ走査線−
ラインの走査ヲ終了していないことを表すので、次の画
素の画像データを走査すべく*S7に戻る。
*If the comparison result in S16 is not XSC>XE, the scanning line -
Since this indicates that the scanning of the line has not been completed, the process returns to *S7 to scan the image data of the next pixel.

■背景画素を検出したとき *S7のチエツクで読み込んだ画像データの画素値が文
字画素を表す所定の画素値「1」でなければ従って背景
画素を表す所定の画素値「0」であれば、検出手段12
は計数値Bを初期化し計数値Bとして「oJをBレジス
タに格納しく*517)、その後*S15〜16を行な
い、*S16の比較結果に応じで動作する。尚、ここに
言う背景画素とは、背景パタンを構成する画素を表す所
定の画素+a(濃度)を有する画素を表すものとする。
■When a background pixel is detected *If the pixel value of the image data read in the check in S7 is not the predetermined pixel value "1" representing a character pixel, therefore, if the predetermined pixel value representing a background pixel is "0", Detection means 12
initializes the count value B and stores oJ in the B register as the count value *517), then performs *S15-16 and operates according to the comparison result of *S16. is assumed to represent a pixel having a predetermined pixel+a (density) representing a pixel forming a background pattern.

*S17で計数値Bの初期化を行なうことによって、文
字画素が連続しで検出される場合にのみ文字画素の個数
を計数することが出来る。
*By initializing the count value B in S17, the number of character pixels can be counted only when character pixels are detected consecutively.

上述のように動作する文字線検出手段12は、B、HL
−J、満連続する文字画素をノイズとみなし、少なくと
もBTHLだけ連続する文字画素を文字図形パタンを構
成する所定の文字線とみなし、この所定の文字線の有無
と、始端座標X。、とを検出する。従って、例えば孤立
した一個の文字画素をノイズとして無視し、所定の文字
線の有無情報と始端座標XCIとを第一〜第四座標を検
出するための処理に利用するので、第一〜第四座標の検
出精度を向上することが出来る。しかも、文字の個数が
少い行の場合であっても第一〜第四座標を精度良く検出
することが出来る。
The character line detection means 12 that operates as described above includes B, HL
-J, character pixels that are completely continuous are regarded as noise, character pixels that are continuous by at least BTHL are regarded as a predetermined character line that constitutes a character figure pattern, and the presence or absence of this predetermined character line and the starting end coordinate X are determined. , and detect. Therefore, for example, one isolated character pixel is ignored as noise, and the presence/absence information of a predetermined character line and the starting end coordinate XCI are used in the processing for detecting the first to fourth coordinates. The accuracy of coordinate detection can be improved. Furthermore, even in the case of a line with a small number of characters, the first to fourth coordinates can be detected with high accuracy.

1=叉茄あ 第二実施例では、制御手段14を、文字画素が検出され
た走査線が所定の本数以上連続するとき、第一、第二、
第三及び第四座標を出力する手段とする他は、第−実施
例と同様の構成とする。以下、第二実施例につき説明す
るが、第−実施例と同様の構成成分についでは説明を省
略し、第−実施例と相違する点につき説明する。
In the second embodiment, when the number of consecutive scanning lines in which character pixels are detected is equal to or greater than a predetermined number, the control means 14 is set to the first, second,
The configuration is similar to that of the third embodiment except for the means for outputting the third and fourth coordinates. The second embodiment will be described below, but the explanation of the same components as in the first embodiment will be omitted, and only the points that are different from the second embodiment will be explained.

第5図は第三実施例の文字行検出制御手段の説明に供す
る動作流れ図である。尚、第二実施例の制御手段14の
S14〜20の動作は、第一実施例の814〜2oの動
作(第3図(8)参照)と同様なので、第二実施例の3
14〜20については図を省略する。
FIG. 5 is an operational flowchart for explaining the character line detection control means of the third embodiment. Note that the operations of S14 to S20 of the control means 14 of the second embodiment are similar to the operations of S814 to S20 of the first embodiment (see FIG. 3 (8)), so
14 to 20 are omitted from the drawing.

第二実施例の制御手段14は文字線が検出された走査線
の本数(計数値)T+%計数するためのT1カウンタ(
或はレジスタ)を備える。
The control means 14 of the second embodiment has a T1 counter (
or a register).

第5図にも示すように、この実施例の制御手段14は、
S2においてPレジスタの初期化と共に計数値T1を初
期化する(初期値「0」)。
As also shown in FIG. 5, the control means 14 of this embodiment includes:
In S2, the P register is initialized and the count value T1 is initialized (initial value "0").

またS7のチエツクで所定の文字線が検出されたことが
判明すると、制御手段14は計数値T、V「1」だけイ
ンクリメントして、文字線が検出された走査線(以下、
文字走査線と称す)の本数を計数する(S25)。
Further, if it is found by the check in S7 that a predetermined character line has been detected, the control means 14 increments the count values T and V by ``1'' (hereinafter referred to as the scanning line where the character line was detected).
The number of character scanning lines (referred to as character scanning lines) is counted (S25).

ざらに制御手段14は、S23のチエツクでP=1が判
明すると、Pレジスタ16に文字線か検出されなかった
ことを表す情報「○」を格納しく522)、その後計数
値T1と任意好適に設定される閾値T、工□、とを比較
する(S26)。
Roughly speaking, when the control means 14 finds that P=1 by the check in S23, it stores information "○" indicating that no character line has been detected in the P register 16 (522), and then sets the count value T1 to any suitable value. The set threshold value T and □ are compared (S26).

S26の比較の結果、TI>TITHLであればT1□
HLヲ越える本数だけ連続する文字走査線上の、文字線
はノイズではないとしで、323〜24の処理を行い、
計数値T、を初期化する(S27)。
As a result of the comparison in S26, if TI>TITHL, T1□
Assuming that the character lines on the consecutive character scanning lines exceeding HL are not noise, perform the processing in steps 323 and 24,
The count value T is initialized (S27).

またS26の比較の結果、TI>T11H5でなければ
T、アHL以下の本数だけ連続して検出された文字走査
線上の、文字線はノイズであるとして、823〜24の
処理を行なわずに、計数値T1の初期化を行なう(S2
7)。
Further, as a result of the comparison in S26, if TI>T11H5, the character lines on the character scanning lines that have been consecutively detected by the number of characters equal to or less than T, AHL are considered to be noise, and the processing in 823 to 24 is not performed. Initialize the count value T1 (S2
7).

S27で計数値T1の初期化を行なうことによって、文
字走査線が連続する場合にのみ、文字走査線の本数を計
数することが出来る。
By initializing the count value T1 in S27, the number of character scanning lines can be counted only when the character scanning lines are continuous.

S27の処理の後、制御手段14はS19の処理を行な
う(第3図(B)9照)。
After the process of S27, the control means 14 performs the process of S19 (see 9 in FIG. 3(B)).

第二実施例では、ノイズが文字線として検出された場合
の座標YT、Y[l、XL及びXえの検出精度の低下を
回避し、これら座標の検出精度の向上を図れる。
In the second embodiment, it is possible to avoid a decrease in the detection accuracy of the coordinates YT, Y[l, XL, and XE when noise is detected as a character line, and improve the detection accuracy of these coordinates.

1旦叉見立 第三実施例では、制御手段14を、文字画素が検出され
なかった走査線が所定の複数本以上連続するとき、第一
、第二、第三及び第四座標を出力する手段とする他は、
第一実施例と同様の構成とする。以下、第三実施例につ
き説明するが、第−実施例と同様の構成成分については
説明を省略し、第一実施例と相違する点につき説明する
In the third embodiment, the control means 14 outputs the first, second, third, and fourth coordinates when a predetermined plurality of consecutive scanning lines in which no character pixels are detected are consecutive. In addition to using it as a means,
The configuration is similar to that of the first embodiment. The third embodiment will be described below, but the explanation of the same components as in the first embodiment will be omitted, and only the points that are different from the first embodiment will be explained.

第6図は第三実施例の文字行検出制御手段の説明に供す
る動作流れ図である。尚、第三実施例の制御手段14の
S14〜20の動作は、第一実施例の314〜20の動
作(第3図(B)9照)と同様なので、第三実施例の3
14〜20については図を省略する。
FIG. 6 is an operational flowchart for explaining the character line detection control means of the third embodiment. Incidentally, the operations of S14 to S20 of the control means 14 of the third embodiment are similar to the operations of S314 to S20 of the first embodiment (see 9 in FIG. 3(B)).
14 to 20 are omitted from the drawing.

第三実施例の制御手段14は文字線が検出されなかった
走査線の本数(計数値)T2を計数するためのT2カウ
ンタ(或はレジスタ)を備える。
The control means 14 of the third embodiment includes a T2 counter (or register) for counting the number (count value) T2 of scanning lines in which no character line is detected.

第6図にも示すように、この実施例の制御手段14はS
2においてPレジスタ16の初期化と共に計数値T2T
HLヲ初期化(初期値「0」)する。
As shown in FIG. 6, the control means 14 of this embodiment is
2, the P register 16 is initialized and the count value T2T is
Initialize HL (initial value "0").

またS7のチエツクで所定の文字線が検出されることな
く走査線−ラインの走査を終了したことが判明すると、
制御手段14は、文字線が検出されなかった走査線(以
下、背景走査線と称す)の本数を計数するためT2を「
]」だけインクリメントしく528)、その俊計数値T
2と任意好適に設定される閾値T2THLとを比較する
(S29)。
Also, if it is found in the check in S7 that the scanning line-to-line scanning has been completed without detecting a predetermined character line,
The control means 14 sets T2 as
]” is incremented by 528), and its shun count value T
2 and an arbitrarily set threshold T2THL (S29).

S29の比較の結果、T2 >T2□1であればT2工
sL%越える本数だけ連続する背景走査線は行と行の間
の余白領域を走査した走査線であるとみなして、制御手
段14はS21の判定を行ない、この判定結果に応じた
処理を行なう。
As a result of the comparison in S29, if T2 > T2□1, the control means 14 considers that the consecutive background scanning lines exceeding T2 tsL% are scanning lines that scanned the blank area between the lines. A determination is made in S21, and processing is performed according to the result of this determination.

S29の比較の結果、T 2 > T 2THLでなけ
ればT2□H5以下の本数だけ連続する背景走査線は文
字行中の所謂白抜は領域或はかすれ領域を走査した走査
線であるとみなして、321〜24の処理を行なわずに
319の処理を行なう(第3図(B)参照)。これがた
め、文字行中に白抜は或はかすれが存在する場合(例え
ば連続する複数の文字走査線、連続するT2□HL以下
の本数の背景走査線及び連続する複数の文字走査線が順
次に並ぶ場合)に、文字走査線の次の走査線が背景走査
線であったとしても座標Y□、Y8、XL及びXRを誤
って出力するのを回避することが出来る。
As a result of the comparison in S29, unless T 2 > T 2THL, the background scanning lines that are consecutive in number equal to or less than T2□H5 are considered to be the scanning lines that scanned the so-called white areas or blurred areas in the character line. , 319 is performed without performing the processes of 321 to 24 (see FIG. 3(B)). Therefore, if there is a white spot or blur in a character line (for example, multiple consecutive character scan lines, consecutive background scan lines with a number of T2□HL or less, and multiple consecutive character scan lines in sequence) Even if the next scanning line after the character scanning line is the background scanning line, it is possible to avoid erroneously outputting the coordinates Y□, Y8, XL, and XR.

さらに87のチエツクで文字線が検出されたことが判明
すると、検出制御手段14は計数値T2%初期化する(
S30)、文字線が検出された場合に計数値T2の初期
化を行なうことによって、連続する背景走査線の本数の
みを計数することが出来る。
Furthermore, when it is found that a character line has been detected by the check in step 87, the detection control means 14 initializes the count value T2% (
In S30), by initializing the count value T2 when a character line is detected, only the number of continuous background scanning lines can be counted.

第三実施例では、文字行中の白抜は或はかすれによる座
標YT、Y8、XL及びXRの検出精度の低下を回避し
、これら座標の検出精度の向上を図れる。
In the third embodiment, it is possible to avoid a decrease in the detection accuracy of the coordinates YT, Y8, XL, and XR due to white spots or blurring in the character line, and to improve the detection accuracy of these coordinates.

1旦叉流に 第四実施例では、文字行検出装置10が画像データの画
素の画素@(濃度)の決定を当該画素近傍の任意好適個
数の他の画素の画素値を利用して行なう、フィルタを備
えている他は、第一実施例と同様の構成とする。以下、
第四実施例につき説明するが、第一実施例と同様の構成
成分については説明を省略し、第一実施例と相違する点
につき説明する。
Firstly, in the fourth embodiment, the character line detection device 10 determines the pixel@(density) of a pixel of image data by using the pixel values of an arbitrary suitable number of other pixels in the vicinity of the pixel. The configuration is similar to that of the first embodiment except that a filter is provided. below,
The fourth embodiment will be explained, but the explanation of the same components as in the first embodiment will be omitted, and the points different from the first embodiment will be explained.

この実施例では、フィルタを画像データDのノイズを除
去するために用い、例えば画像メモリ30及び検出手段
12の間にフィルタを設ける。
In this embodiment, a filter is used to remove noise from the image data D, and is provided between the image memory 30 and the detection means 12, for example.

第7図(A)〜(B)はフィルタの説明図であり、図の
(A)はフィルタの一構成例を示す機能ブロック図及び
(B)はフィルタの観測窓の一例を示す図である。
FIGS. 7(A) to 7(B) are explanatory diagrams of the filter, in which (A) is a functional block diagram showing an example of the configuration of the filter, and (B) is a diagram showing an example of the observation window of the filter. .

第7図(A)に示すように、この実施例の文字行検出装
置10が備えるフィルタ34は、読出し手段34aとメ
モリ34bとから成り、例えば、3x3の観測窓を有す
る。この観測窓は、第7図(B)に示すように画素値を
決定すべき画素(注目画素)u5を中心にしてu1〜u
9の画素を3行3列に配置した構成を有する。注目画素
u5の画素値の決定は、この画素u5以外の他の画素(
観測画素)u+〜u4及びu6〜u9G利用して行われ
る。尚、注目画素及び観測画素の配百闇係は図示例に限
定されず、任意好適に変更することが出来る。
As shown in FIG. 7(A), the filter 34 included in the character line detection device 10 of this embodiment consists of a reading means 34a and a memory 34b, and has, for example, a 3×3 observation window. As shown in FIG. 7(B), this observation window is centered on the pixel (target pixel) u5 whose pixel value is to be determined, and
It has a configuration in which 9 pixels are arranged in 3 rows and 3 columns. The pixel value of the pixel of interest u5 is determined by determining the pixel value of the pixel u5 other than this pixel u5 (
Observation pixels) u+ to u4 and u6 to u9G are used. Note that the arrangement of the pixel of interest and the observation pixel is not limited to the illustrated example, and can be changed as desired.

読出し手段34aは、検出手段12からの走査座標X5
C1Y sc%入力すると、これら座標X SC% Y
 8Cで指定される画素位置の画素を注目画素U5とし
て、注目画素U5の画像データDを画像メモリ30から
読み込む、これと共に、注目画素u5と特定の位】関係
にある観測画素U、〜u4及びu8〜U9の画像データ
Du画像メモリ30から読み込む、これら観測画素の画
素位百は、注目画素u5と特定の位百関係にあるので座
標X SC,Y SCから例えば計算することによって
、決定することが出来る。従って、読出し手段34aは
座標X、。、Y、。
The reading means 34a reads the scanning coordinate X5 from the detecting means 12.
If you input C1Y sc%, these coordinates X SC% Y
The pixel at the pixel position specified by 8C is taken as the pixel of interest U5, and the image data D of the pixel of interest U5 is read from the image memory 30. At the same time, the observed pixels U, ~u4 and The pixel position of these observed pixels read from the image data Du image memory 30 of u8 to U9 has a specific positional relationship with the pixel of interest u5, so it can be determined, for example, by calculation from the coordinates XSC, YSC. I can do it. Therefore, the reading means 34a has the coordinate X. ,Y.

を入力することによって、注目画素及び観測画素の画像
データC1読み込むことが出来る。
By inputting , the image data C1 of the pixel of interest and the observed pixel can be read.

そしてこの実施例では、例えば、画素ul〜u9の画素
値の総和が任意好適な所定の比較値に、以上になると、
注目画素の画素値を文字図形パタンDI%意味する画素
値に修正しで出力するようなフィルタ論理を用い、この
フィルタ論理に従って走査座標×、。、Yscによって
指定される画素位置の画像データDの画素値を決定する
。すなわちこの実施例では、注目画素U、の近傍の濃度
分布から画素U5の画素値を決定する。
In this embodiment, for example, when the sum of the pixel values of pixels ul to u9 reaches or exceeds an arbitrarily suitable predetermined comparison value,
A filter logic is used that corrects the pixel value of the pixel of interest to a pixel value representing the character/figure pattern DI% and outputs it, and according to this filter logic, the scanning coordinates x,. , Ysc determines the pixel value of the image data D at the pixel position specified by Ysc. That is, in this embodiment, the pixel value of the pixel U5 is determined from the density distribution in the vicinity of the pixel of interest U.

このようなフィルタ論理を有するフィルタの構成は、従
来画像処理において用いられている任意好適な構成とす
ることが出来、従って以下に述べるものに限定するもの
ではないが、以下にこの実施例のフィルタの構成を詳細
に説明する。
The configuration of a filter having such filter logic can be any suitable configuration conventionally used in image processing, and is therefore not limited to what is described below. The configuration will be explained in detail.

上述のようなフィルタ論理を達成するため、読出し手段
34aは、上述のような特定の位置関係にある画素U、
〜U、の画像データDを画像メモリ30から読み込むと
、その後、これら画素の画素値t1〜t9 (画素u1
の画素値をt、、u2の画素値をt2、・・・・・・、
u9の画素値をt、とする)をメモリ34bに格納され
ている修正された画素値(修正画素値)を読出すための
アドレスとして利用する。読出し手段34aは、この場
合には画素値t1〜t9を用いて表現される9桁の2値
のアドレスを、メモリ34bに対し出力する。
In order to achieve the filter logic as described above, the reading means 34a reads pixels U, which are in a specific positional relationship as described above,
When the image data D of ~U is read from the image memory 30, the pixel values t1 to t9 of these pixels (pixel u1
The pixel value of u2 is t, the pixel value of u2 is t2,...
The pixel value of u9 is assumed to be t) is used as an address for reading the corrected pixel value (corrected pixel value) stored in the memory 34b. In this case, the reading means 34a outputs a nine-digit binary address expressed using pixel values t1 to t9 to the memory 34b.

ざらにメモリ34bは、読出し手段34aからのアドレ
スを入力すると、このアドレスによって指定される注目
画素u5の修正画素値を出力する。その結果、修正画素
値から成る修正きれた画像データDが、メモリ34bか
ら検出手段12へ出力される。
Roughly, when the address from the reading means 34a is input, the memory 34b outputs the corrected pixel value of the pixel of interest u5 designated by this address. As a result, corrected image data D consisting of corrected pixel values is output from the memory 34b to the detection means 12.

ざらに説明を加えればメモリ34bにあっては、される
アドレスに、文字図形パタンDlu意味する画素値(こ
の実施例では画素値「1」)が予め格納され、 されるアドレスに、背景パタンD2を意味する画素値(
この実施例では画素値「0」)が予め格納されている。
To briefly explain, in the memory 34b, the pixel value (pixel value "1" in this embodiment) representing the character/figure pattern Dlu is stored in advance at the address indicated, and the background pattern D2 is stored at the address indicated. The pixel value (
In this embodiment, the pixel value "0") is stored in advance.

ところで、文字図形パタンD1を黒ビット(画素値「1
」)及び背景パタンD2を白ビット(画素値「0」)で
表現するこの実施例では、背景パタンD2中の黒ビット
がノイズとなるが、前述の■の場合、注目画素U、がた
とえ黒ビットであったとしても、メモリ34bは注目画
素u5の画素値を背景パタンD27a意味する白ビット
に修正して出力することとなる。
By the way, the character figure pattern D1 has a black bit (pixel value "1")
'') and background pattern D2 are expressed with white bits (pixel value "0"), the black bits in the background pattern D2 become noise, but in the case of (2) above, even if the pixel of interest U is black, Even if it is a bit, the memory 34b corrects the pixel value of the pixel of interest u5 to a white bit meaning the background pattern D27a and outputs it.

比較値kfの値は任意好適な値とすることが出来るが、
例えば、3×3の観測窓を用いる場合にはkf=5とす
れば良い。3x3の観測窓を用いkf=5とした場合に
は、2×2ビツトより小さなノイズを除去することが出
来る。
The value of the comparison value kf can be any suitable value, but
For example, when using a 3×3 observation window, kf=5 may be used. When a 3x3 observation window is used and kf=5, noise smaller than 2x2 bits can be removed.

第四実施例では、フィルタを用いることによって、ノイ
ズを低減した修正された画像データDに基づいて第一〜
第四座標の検出を行なうので、これら座標の検出精度を
向上することが出来る。
In the fourth embodiment, the first to
Since the fourth coordinate is detected, the detection accuracy of these coordinates can be improved.

尚、第四実施例の文字行検出装置!10において検出手
段12に修正された画像データDが入力された後、検出
手段12及び制御手段14が行なう行位置の検出のため
の動作は、第一実施例と同様に行なわれる。
In addition, the character line detection device of the fourth embodiment! After the corrected image data D is input to the detection means 12 in step 10, the operation for detecting the line position performed by the detection means 12 and the control means 14 is performed in the same manner as in the first embodiment.

この第四実施例では、上述した実施例の他フィルタ論理
として、観測画素U、〜u4及びu6〜u9の画素値の
総和が比較値kf以上となるとき、注目画素の画素値を
(注目画素の画素値に拘らず)文字図形パタンD1を意
味する画素値に修正して出力し、これと共に観測画素U
1〜u4及びU6〜u9の画素値の総和が比較値kfよ
りも小さいとき背景パタンD2を意味する画素値に修正
して出力する論理を用いでも良い。
In this fourth embodiment, in addition to the above-described filter logic, when the sum of the pixel values of observed pixels U, ~u4, and u6 to u9 is greater than or equal to the comparison value kf, the pixel value of the pixel of interest is (regardless of the pixel value of) is corrected to a pixel value that means the character/figure pattern D1 and output, and along with this, the observed pixel U
It is also possible to use a logic that when the sum of the pixel values of 1 to u4 and U6 to u9 is smaller than the comparison value kf, the pixel value is corrected to indicate the background pattern D2 and output.

また文字図形パタンD1を白ビット及び背景パタンD2
を黒ヒツトで表現する場合には、フィルタ論理として、
注目画素U、及び観測画素U、〜tJ4、ue〜U9の
画素値の総和が比較値に、以下になると、注目画素の画
素値を、文字図形パタンD1を意味する画素値に修正し
で出力し、これと共に画素値の総和が比較値kfよりも
大きくなるとき注目画素u5の画素値を背景パタンD2
%意味する画素値に修正しで出力する論理を用いても良
い。
In addition, the character figure pattern D1 is used as the white bit and the background pattern D2.
When expressed as a black hit, as a filter logic,
When the sum of the pixel values of the pixel of interest U and the observed pixels U, ~tJ4, and ue~U9 is equal to or less than the comparison value, the pixel value of the pixel of interest is corrected to a pixel value representing the character/figure pattern D1 and output. At the same time, when the sum of pixel values becomes larger than the comparison value kf, the pixel value of the pixel of interest u5 is set to the background pattern D2.
It is also possible to use logic that corrects and outputs the pixel value to mean %.

また上述した実施例においで、注目画素か文字線を表す
特定のパタンを形成する場合に注目画素の画素値を文字
図形パタンDIを表す画素値に修正しで出力し、注目画
素が文字線を表す特定のパタンD2を形成しない場合に
注目画素の画素値を背景パタンを表す画素値に修正しで
出力するように、フィルタ論理を構成しても良い。例え
ば第7図(B)に示すようにフィルタが3x3の観測窓
を有する場合には、次の(1)〜(4)のときに注目画
素u5の画素値を文字図形パタンを表す画素値例えば「
1」とし、(1)〜(4)以外のときに注目画素u5の
画素値を背景パタンを表す画素値例えば「0」とする。
Furthermore, in the above-described embodiment, when forming a specific pattern representing a pixel of interest or a character line, the pixel value of the pixel of interest is corrected to a pixel value representing the character figure pattern DI and then output, so that the pixel of interest forms a character line. The filter logic may be configured so that when the specific pattern D2 to be represented is not formed, the pixel value of the pixel of interest is corrected to a pixel value representing the background pattern and output. For example, when the filter has a 3x3 observation window as shown in FIG. "
1", and in cases other than (1) to (4), the pixel value of the pixel of interest u5 is set to a pixel value representing the background pattern, for example, "0".

(1)少なくとも画素LJI、u5及びU9の画素値か
文字図形パタンを表す画素値となるとき(2)少なくと
も画素u2、u5及びu8の画素値か文字図形パタンを
表す画素値となるとき(3)少なくとも画素u 3 、
u 5及びu7の画素値か文字図形パタンを表す画素値
となるとき(4)少なくとも画素u 8 、’J 5及
びu4の画素値か文字図形パタンを表す画素値となると
きこの発明は上述した実施例にのみ限定されるものでは
なく、従って各構成成分の構成及び動作や、第一〜第四
座標を検出する1とめの信号の流れや、数値的条件及び
その他の条件を種々に変更或は変形するすることが出来
る。
(1) When at least the pixel values of pixels LJI, u5, and U9 are the pixel values representing a character/graphic pattern (2) When the pixel values of at least the pixels u2, u5, and u8 are the pixel values representing the character/graphic pattern (3) ) at least pixel u 3 ,
When the pixel values of u 5 and u 7 are pixel values representing a character/graphic pattern (4) When the pixel values of at least pixels u 8 , 'J 5 and u4 are pixel values representing a character/graphic pattern, this invention is as described above. The present invention is not limited to the examples, and therefore the configuration and operation of each component, the flow of the first signal for detecting the first to fourth coordinates, numerical conditions, and other conditions may be changed or modified in various ways. can be transformed.

例えば、文字行検出装置は主走査方向(X軸方向)か文
字行方向とするため、例えば従来画像処理で行なわれる
ようにx−y座標系或は画像データを回転させたりして
も良い。例えば文字行の傾斜量で文字行方向を表現する
場合、x−y座標系或は画像データを傾斜量に応じた1
1だけ回転させることによって、主走査方向を文字行方
向とすることか出来る。文字行方向は従来提案されてい
る方法或は装置によって容易に検出することが出来る。
For example, since the character line detection device operates in the main scanning direction (X-axis direction) or in the character line direction, the x-y coordinate system or the image data may be rotated, as is done in conventional image processing. For example, when expressing the direction of a character line by the amount of inclination of the character line, the x-y coordinate system or image data is
By rotating by 1, the main scanning direction can be set to the character line direction. The character line direction can be easily detected using conventionally proposed methods or devices.

光電変換部を用いて、帳票、原稿等を文字の行方向に主
走査することによって、画像データを得、この画像デー
タを画像メモリに保存するようにしても良い。
Image data may be obtained by main-scanning a form, manuscript, etc. in the character line direction using a photoelectric conversion section, and this image data may be stored in an image memory.

また上述した実施例では第2図に示すX−Y座標系にお
いで、文字行方向をX軸に沿った方向としX軸方向を画
像データの主走査方向として動作説明を行なったが、文
字行方向ty軸方向としy軸方向を画像データの主走査
方向として最初に検出される文字画素の座標を検出する
ようにしても良い(例えば縦書き文書の場合)。y軸方
向を画像データの主走査方向とする場合の文字行検出装
置は、上述した実施例の動作と実質的に同しに動作し、
従って上述した実施例をもとにして容易に構成すること
が出来る。
In addition, in the above embodiment, the operation was explained with the character line direction being along the X-axis and the X-axis direction being the main scanning direction of image data in the X-Y coordinate system shown in FIG. The coordinates of the first detected character pixel may be detected with the ty-axis direction and the y-axis direction as the main scanning direction of the image data (for example, in the case of a vertically written document). The character line detection device when the y-axis direction is the main scanning direction of image data operates substantially in the same manner as in the embodiment described above,
Therefore, it can be easily constructed based on the embodiments described above.

従って画像データの主走査方向tx軸方向或はy軸方向
とする指示信号の入力に応して画像データをX軸方向に
或はy軸方向に主走査するように、文字行検出袋M%構
成することも出来る。
Therefore, the character line detection bag M% is set so that the image data is main scanned in the X-axis direction or the y-axis direction in response to the input of the instruction signal to set the main scanning direction of the image data in the tx-axis direction or the y-axis direction. It can also be configured.

また各構成成分の動作の流れは図示例に限定されるもの
ではなく任意好適に変更することか出来る。
Further, the flow of operation of each component is not limited to the illustrated example and can be changed as desired.

(発明の効果) 上述した説明からも明らかなように、この発明の文字行
検出装置によれば、行の外接枠を規定するための第一〜
第四座標を検出する。従って、これら座標を用いで規定
される外接枠内の領域を行領域とすることによって、従
来よりも余白の少ない行領域を得ることが出来、これが
ため文字行領域内の文字切出し等の画像処理を行なう際
に、余分な余白領域の画像データの走査を回避して画像
処理の効率化を図れる。
(Effects of the Invention) As is clear from the above description, according to the character line detection device of the present invention, the first to
Detect the fourth coordinate. Therefore, by using these coordinates to define the area within the circumscribed frame as the line area, it is possible to obtain a line area with less margin than before, and this allows image processing such as character extraction within the character line area. When performing image processing, it is possible to improve the efficiency of image processing by avoiding scanning image data in extra blank areas.

さらに第一〜第四座標の検出処理は簡単なので、装置構
成を簡素化出来る。また第一〜第四座標検出のために従
来のようにヒストグラムを作成する必要がないので、こ
れら座標の検出のためのメモリ容量が小さくて済み、装
置構成を簡素化出来る。装置構成が簡素化されることに
よって、装置規模の縮小を図ると共に土産コストの低減
も図れる。
Furthermore, since the detection processing of the first to fourth coordinates is simple, the device configuration can be simplified. Further, since it is not necessary to create a histogram for detecting the first to fourth coordinates as in the conventional method, the memory capacity for detecting these coordinates can be small, and the device configuration can be simplified. By simplifying the device configuration, it is possible to reduce the scale of the device and reduce the cost of souvenirs.

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

第1図は第一実施例の文字行検出装置の説明に供する機
能ブロック図、 第2図は画像データの説明に供する図、第3図(A)及
び(B)は第一実施例の文字行検出制御手段の動作説明
に供する図、 第4図は第一実施例の文字線検出手段の動作説明に供す
る図、 第5図は第二実施例の文字行検出制御手段の動作説明に
供する図、 第6図は第三実施例の文字行検出制御手段の動作説明に
供する図、 第7図(A)及び(B)は第四実施例のフィルタの説明
に供する図、 第8図は従来製画の説明に供する図である。 10・・・文字行検出装置、12・・・文字線検出手段
14・・・文字行検出制御手段 16・・・Pレジスタ、  18・・・Y□レジスタ2
0・・・Y8レジスタ、 22・・・XLレジスタ26
・・・XRレジスタ、 34・・・フィルタ。 特許出願人   沖電気工業株式会社 画像データの説明図 第2図 第−実施例の制御手段の動作流れ同 第3図(B) フィルタの説明図 第7図 平成元年6月23日
Fig. 1 is a functional block diagram for explaining the character line detection device of the first embodiment, Fig. 2 is a diagram for explaining image data, and Figs. 3 (A) and (B) are the characters of the first embodiment. Figure 4 provides an explanation of the operation of the line detection control means; Figure 4 provides an explanation of the operation of the character line detection means of the first embodiment; Figure 5 provides an explanation of the operation of the character line detection control means of the second embodiment. Figure 6 is a diagram for explaining the operation of the character line detection control means of the third embodiment, Figures 7 (A) and (B) are diagrams for explaining the filter of the fourth embodiment, and Figure 8 is a diagram for explaining the operation of the character line detection control means of the third embodiment. It is a figure used for explanation of conventional drawing. 10...Character line detection device, 12...Character line detection means 14...Character line detection control means 16...P register, 18...Y□ register 2
0...Y8 register, 22...XL register 26
...XR register, 34...filter. Patent applicant Oki Electric Industry Co., Ltd. Explanatory diagram of image data Figure 2 - Operation flow of the control means of the embodiment Figure 3 (B) Explanatory diagram of filter Figure 7 June 23, 1989

Claims (9)

【特許請求の範囲】[Claims] (1)行を構成する文字図形パタンを含む画像データを
走査することによって、文字行領域を検出するための文
字行検出装置において、 前記画像データを一方の方向へ走査して最初に検出され
る文字画素の座標と、前記画像データを他方の方向へ走
査して最初に検出される文字画素の座標とを検出するた
めの文字線検出手段と、前記文字画素を検出しなかった
走査線の次の走査線上で文字画素を検出したとき、当該
文字画素を検出した走査線の走査座標を、前記行の外接
枠を規定するための第一座標として検出し、 前記文字画素を検出した走査線の次の走査線上で文字画
素を検出しなかったとき、当該文字画素を検出した走査
線の走査座標を前記外接枠を規定するための第二座標と
して検出し、 前記第一座標から第二座標までの間の走査線上で検出さ
れた前記文字画素の座標のうち最小の座標を、前記外接
枠を規定するための第三座標として検出し、 前記第一座標から第二座標までの間の走査線上で検出さ
れた前記文字画素の座標のうち最大の座標を、前記外接
枠を規定するための第四座標として検出する文字行検出
制御手段とを備えて成ることを特徴とする文字行検出装
置。
(1) In a character line detection device for detecting a character line area by scanning image data including character/figure patterns constituting a line, the image data is first detected by scanning the image data in one direction. character line detection means for detecting the coordinates of a character pixel and the coordinates of a character pixel detected first by scanning the image data in the other direction; When a character pixel is detected on the scanning line where the character pixel is detected, the scanning coordinates of the scanning line where the character pixel is detected are detected as the first coordinates for defining the circumscribing frame of the line, and the scanning coordinates of the scanning line where the character pixel is detected are When no character pixel is detected on the next scanning line, the scanning coordinates of the scanning line where the character pixel was detected are detected as second coordinates for defining the circumscribed frame, and from the first coordinate to the second coordinate. detecting the smallest coordinate among the coordinates of the character pixel detected on the scanning line between the first and second coordinates as the third coordinate for defining the circumscribing frame; a character line detection control means for detecting a maximum coordinate among the coordinates of the character pixel detected as a fourth coordinate for defining the circumscribed frame.
(2)前記一方の方向の走査で文字画素が検出された走
査線上の画像データを他方の方向へ走査することを特徴
とする請求項1に記載の文字行検出装置。
(2) The character line detection device according to claim 1, wherein image data on a scanning line in which character pixels are detected by scanning in one direction is scanned in the other direction.
(3)あらかじめ定めた個数以上連続する複数の文字画
素の、最初に検出される文字画素の座標を検出すること
を特徴とする請求項1〜2に記載の文字行検出装置。
(3) The character line detection device according to any one of claims 1 to 2, wherein the coordinates of a first detected character pixel among a plurality of consecutive character pixels of a predetermined number or more are detected.
(4)前記文字線検出手段を、前記文字画素の座標を保
存する手段としたことを特徴とする請求項1〜3のいず
れか一項に記載の文字行検出装置。
(4) The character line detection device according to any one of claims 1 to 3, wherein the character line detection means is a means for storing coordinates of the character pixels.
(5)前記文字画素を検出した走査線の次の走査線上で
文字画素を検出しなかったとき、第一、第二、第三及び
第四座標を出力することを特徴とする請求項1〜4のい
ずれか一項に記載の文字行検出装置。
(5) When a character pixel is not detected on a scanning line following the scanning line in which the character pixel was detected, first, second, third, and fourth coordinates are output. 4. The character line detection device according to any one of 4.
(6)前記文字画素が検出された走査線が所定の本数以
上連続するとき、前記第一、第二、第三及び第四座標を
出力することを特徴とする請求項1〜5のいずれか一項
に記載の文字行検出装置。
(6) The first, second, third, and fourth coordinates are output when a predetermined number or more of consecutive scanning lines in which the character pixels are detected are output. The character line detection device according to item 1.
(7)前記文字画素が検出されなかった走査線が所定の
本数以上連続するとき、前記第一、第二、第三及び第四
座標を出力することを特徴とする請求項1〜6のいずれ
か一項に記載の文字行検出装置。
(7) The first, second, third, and fourth coordinates are output when a predetermined number or more of consecutive scanning lines in which the character pixel is not detected are output. The character line detection device according to item (1).
(8)前記画像データの画素の画素値の決定を、当該画
素近傍の任意好適個数の他の画素の画素値を利用して行
なう、フィルタを備えて成ることを特徴とする請求項1
〜7のいずれか一項に記載の文字行検出装置。
(8) Claim 1 characterized in that it comprises a filter that determines the pixel value of the pixel of the image data by using the pixel values of any suitable number of other pixels in the vicinity of the pixel.
8. The character line detection device according to any one of 7 to 7.
(9)前記行に沿った方向を、前記画像データの主走査
方向としたことを特徴とする請求項1〜8項のいずれか
一項に記載の文字行検出装置。
(9) The character line detection device according to any one of claims 1 to 8, wherein the direction along the line is the main scanning direction of the image data.
JP63087684A 1988-04-09 1988-04-09 Character raw detector Pending JPH01259474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63087684A JPH01259474A (en) 1988-04-09 1988-04-09 Character raw detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63087684A JPH01259474A (en) 1988-04-09 1988-04-09 Character raw detector

Publications (1)

Publication Number Publication Date
JPH01259474A true JPH01259474A (en) 1989-10-17

Family

ID=13921756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63087684A Pending JPH01259474A (en) 1988-04-09 1988-04-09 Character raw detector

Country Status (1)

Country Link
JP (1) JPH01259474A (en)

Similar Documents

Publication Publication Date Title
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
JPS5932029B2 (en) image resizer
JPH08242358A (en) Image processor
JPH07236056A (en) Picture improvement circuit
JPH01259474A (en) Character raw detector
US5361309A (en) Character recognition apparatus and method with low-resolution storage for character extraction
JPH04255080A (en) Image input device
JPH01213768A (en) Character array detecting device
JPH05151388A (en) Designating system for processing area and processing condition
US5666440A (en) Method and apparatus for extracting outline data from bi-level image data
JPH01253076A (en) Line area detecting device
JPH05151350A (en) Method for correcting position distortion of image data
JP2005191607A (en) Image region separating method
JP2926842B2 (en) Character extraction circuit
JP2962525B2 (en) Text block recognition method
JP2957050B2 (en) Image data enlarger
JPH0652536B2 (en) Recognition device
JPH0390971A (en) Character background processor
JPH0276084A (en) Fast character and pattern separating device
JPH0237391A (en) Image interpolating system
JPS63157192A (en) Correction of dot character pattern
JPH01245376A (en) Character segmenting device for character reader
JPS6214274A (en) Drawing input controller
JPH0685557B2 (en) Image processing method
JPH11328424A (en) Method and circuit for edge detection