JPH10829A - Image processor and image processing method - Google Patents

Image processor and image processing method

Info

Publication number
JPH10829A
JPH10829A JP8154117A JP15411796A JPH10829A JP H10829 A JPH10829 A JP H10829A JP 8154117 A JP8154117 A JP 8154117A JP 15411796 A JP15411796 A JP 15411796A JP H10829 A JPH10829 A JP H10829A
Authority
JP
Japan
Prior art keywords
line
character
underline
ruled
document
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.)
Withdrawn
Application number
JP8154117A
Other languages
Japanese (ja)
Inventor
Hiroshi Maruoka
広 丸岡
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP8154117A priority Critical patent/JPH10829A/en
Publication of JPH10829A publication Critical patent/JPH10829A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Electrophotography Configuration And Component (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To read out the rule information contained in the image information of a document with small memory capacity by registering an underline in a character data constituting a character line in units of that character data based on the positions of the character line and the underline. SOLUTION: A first line is formed (S51) and the head of an ascending order table is pointed (S52). A decision is then made whether or not the pointed position exceeds the end of the ascending order table (S53). When the end is exceeded, the remaining line is formed between the last line already formed and the lower blank (S69). Subsequently, an underline data region between the upper and lower blanks is checked for the underline and when no underline is present, an underline is registered in a character data in units of that character data based on the positions of the character line and the underline before setting an underline in a sentence (S70). According to the method, rule information contained in the document can be read out accurately with small memory capacity.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、原稿を読み取り、
画像処理する画像処理装置及びその処理方法に関し、特
に、読み取った画像データから罫線を抽出する画像処理
装置及びその処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention reads an original,
The present invention relates to an image processing apparatus for performing image processing and a processing method thereof, and more particularly to an image processing apparatus for extracting a ruled line from read image data and a processing method thereof.

【0002】[0002]

【従来の技術】従来の画像処理装置においては、罫線を
読み取る方法として、罫線を図形化して読み取る方法、
罫線をベクトル罫線あるいは文字罫線として文書上に取
り込む方法等がある。
2. Description of the Related Art In a conventional image processing apparatus, as a method of reading a ruled line, a method of converting a ruled line into a graphic and reading the figure is described.
There is a method of taking a ruled line into a document as a vector ruled line or a character ruled line.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来の画像処理装置においては、自装置内部に読み取るべ
き原稿の全体、例えば1ページ分の画像情報を格納可能
なメモリを備える必要があるため、A4用紙やB4用紙
等のようにサイズが大きい用紙を読み取る場合は、大き
なメモリ容量が必要となりコストを低減する上で問題と
なっている。この問題についての対策として、文書読み
込み時に解像度を落とすことにより、必要なメモリ容量
を低減することが考えられる。しかしこの方法では、あ
る程度以上解像度を低下させると、読み取り精度が低下
して原稿の状態により読み取った画像情報から罫線情報
が欠落する等の問題が生ずる。
However, in the above-mentioned conventional image processing apparatus, it is necessary to provide a memory capable of storing image information of the entire original to be read, for example, one page, in the apparatus itself. When reading large-sized paper such as paper or B4 paper, a large memory capacity is required, which is a problem in reducing costs. As a countermeasure against this problem, it is conceivable to reduce the required memory capacity by lowering the resolution when reading the document. However, in this method, if the resolution is lowered to a certain degree or more, there arises a problem that reading accuracy is lowered and ruled line information is missing from the read image information depending on the state of the document.

【0004】また、前記の罫線を図形化して読み取る方
法は、文書として読み取らずに図形データに変換される
ことにより、文字と下線が連動しないという欠点があっ
た。また、罫線をベクトル罫線、或は文字罫線として文
書上に取り込む方法は、下線としての横罫線も罫線とし
て読み取りってしまうため、下線データへ再編集しなけ
ればならず編集効率が悪くなるという欠点があった。
Further, the above-mentioned method of converting a ruled line into a graphic has the disadvantage that characters and underlines do not interlock because they are converted into graphic data without being read as a document. Also, the method of taking ruled lines into a document as vector ruled lines or character ruled lines is that a horizontal ruled line as an underline is also read as a ruled line, so that the underlined data must be re-edited and the editing efficiency deteriorates. was there.

【0005】そこで、本発明は、原稿の画像情報に含ま
れる罫線情報を少ないメモリ容量で正確に読み取り、更
にその罫線情報に含まれる文字の下線部分に文字行を生
成する画像処理装置及びその処理方法の提供を目的とす
る。
Accordingly, the present invention provides an image processing apparatus and an image processing apparatus for accurately reading ruled line information included in image information of a document with a small memory capacity and generating a character line in an underline portion of a character included in the ruled line information. The purpose is to provide a method.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
め、本発明の画像処理装置及びその処理方法は以下の構
成を備える。
In order to achieve the above object, an image processing apparatus and a processing method according to the present invention have the following arrangement.

【0007】即ち、原稿を読み取ることにより得られた
画像データから、前記原稿に示された罫線を抽出する罫
線抽出手段(または工程)と、前記罫線における行方向
の罫線と交差しない桁方向の罫線を、前記原稿上の下線
として抽出する下線抽出手段(または工程)と、前記罫
線における行方向の罫線の間に文字行を作成する文字行
作成手段(または工程)と、その文字行作成手段(また
は工程)により作成した文字行の位置と、前記下線抽出
手段(または工程)により得られた下線の位置とに基づ
いて、前記文字行を構成する文字データに前記下線を、
その文字データ単位で登録する登録手段(または工程)
とを備えたことを特徴とし、例えば、前記文字行作成手
段(または工程)は、作成した文字行の位置やその行の
構造を表す行データを生成し、前記登録手段は、前記文
字行作成手段により得られた文字行の行毎の行ピッチを
所定の値に調整し、前記行データに登録することを特徴
とし、前記行データは、前記文字行を構成する文字デー
タを有することを特徴とする。これにより、原稿上の下
線部分に文字行が作成し、読み取った原稿画像のその後
の編集、文字入力を容易にする。
That is, a ruled line extracting means (or step) for extracting a ruled line shown in the document from image data obtained by reading the document, and a ruled line in a digit direction which does not intersect a ruled line in the line direction of the ruled line. Underline extracting means (or step) for extracting a character line as an underline on the document, a character line creating means (or step) for creating a character line between the ruled lines in the line direction of the ruled line, and a character line creating means (or step) Or step), based on the position of the character line created by the underline extraction means (or step), the underline in the character data constituting the character line,
Registration means (or process) for registering in character data units
For example, the character line creating means (or step) generates line data representing the position of the created character line and the structure of the line, and the registration means creates the character line creating The line pitch of each character line obtained by the means is adjusted to a predetermined value and registered in the line data, and the line data includes character data constituting the character line. And As a result, a character line is created in the underlined portion on the document, and subsequent editing and character input of the read document image are facilitated.

【0008】また、前記罫線抽出手段(または工程)
は、前記原稿を複数の領域に分割して読み取る分割読み
取り手段(または工程)と、その分割読み取り手段(ま
たは工程)により得られた分割画像データを記憶する記
憶手段(または工程)と、その記憶手段(または工程)
に記憶した分割画像データから罫線を抽出する分割罫線
抽出手段(または工程)と、その分割罫線抽出手段(ま
たは工程)により得られた各分割罫線のうち、行方向に
接続している罫線を接続する分割罫線合成手段(または
工程)とを備える。これにより、大きなサイズの原稿を
読み込む際、記憶容量の限られた記憶手段しか有しない
場合でも正確に原稿を読み込み、原稿上の罫線を表現す
る。
Further, the ruled line extracting means (or step)
A division reading unit (or step) for reading the original document by dividing the original into a plurality of areas; a storage unit (or step) for storing divided image data obtained by the division reading unit (or step); Means (or process)
A ruled line extracting means (or step) for extracting a ruled line from the divided image data stored in the storage unit, and a ruled line connected in a row direction among the divided ruled lines obtained by the divided ruled line extracting means (or step). Divided ruled line synthesizing means (or step). Thus, when reading a large-sized document, the document is accurately read even when only a storage unit having a limited storage capacity is provided, and ruled lines on the document are represented.

【0009】[0009]

【発明の実施の形態】以下、本発明の実施形態を図面を
参照して詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0010】はじめに、本実施形態の概要を述べれば、
1ページの原稿をイメージ情報として読み取る際、所定
範囲の複数の領域に分割して読み込み、各領域から罫線
を抽出した後、1ページ分の罫線として合成する。そし
て、その罫線の内で行方向(横書きの原稿であれば縦方
向)罫線と交差しない桁方向(横書きの原稿であれば横
方向)罫線を原稿上の文字の下線(アンダーライン)と
して抽出し、その位置に文字行を生成するものである。
First, an outline of the present embodiment will be described.
When reading a one-page document as image information, the document is read by dividing it into a plurality of regions in a predetermined range, extracting ruled lines from each region, and combining them as ruled lines for one page. Then, a ruled line (horizontal direction for a horizontally written original) that does not intersect a line direction (vertical direction for a horizontally written original) among the ruled lines is extracted as an underline (underline) of a character on the original. , A character line is generated at that position.

【0011】図1は、本発明の一実施形態としての画像
処理装置のブロック構成図である。
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

【0012】図中、1は中央演算処理装置(CPU)、
2は読出し専用メモリ(ROM)であって後述する処理
手順のプログラム等を記憶する。3は読書き自在なメモ
リ(RAM)、4は外部に増設された読出し専用メモリ
(外部ROM)、5はキーボード制御装置(KBC)、
6はキーボード制御装置5に接続されたキーボード(K
B)、7は表示制御装置(CRTC)、8は表示制御装
置7に接続された表示装置(CRT)、9は周辺装置制
御装置(PKC)である。10は周辺装置制御装置9に
接続された外部記憶装置FDD(フロッピーディスクド
ライブ)、11は周辺装置制御装置9に接続された外部
記憶装置HDD(ハードディスクドライブ)であり、F
DD10及びHDD11は後述する処理手順のプログラ
ムを記憶しておいてもよい。12は印刷装置(PR
T)、13はポインティングデバイス(PD)、14は
文書等の読み取り手段としてのイメージスキャナ(SC
N)である。そしてCPU1、ROM2、RAM3、外
部ROM4、KBC5、CRTC7、PKC9、PRT
12、PD13及びSCN14は、各装置間のデータ送
受信を行うためのシステムバス15を介して相互に接続
されている。
In the figure, 1 is a central processing unit (CPU),
Reference numeral 2 denotes a read-only memory (ROM) which stores a program for a processing procedure described later. 3 is a readable / writable memory (RAM), 4 is a read-only memory externally added (external ROM), 5 is a keyboard controller (KBC),
Reference numeral 6 denotes a keyboard (K) connected to the keyboard control device 5.
B) and 7 are a display control device (CRTC), 8 is a display device (CRT) connected to the display control device 7, and 9 is a peripheral device control device (PKC). Reference numeral 10 denotes an external storage device FDD (floppy disk drive) connected to the peripheral device control device 9, reference numeral 11 denotes an external storage device HDD (hard disk drive) connected to the peripheral device control device 9, and F
The DD 10 and the HDD 11 may store a program for a processing procedure described later. 12 is a printing device (PR
T), 13 is a pointing device (PD), and 14 is an image scanner (SC) as reading means of a document or the like.
N). CPU1, ROM2, RAM3, external ROM4, KBC5, CRTC7, PKC9, PRT
The PD 12, the PD 13 and the SCN 14 are connected to each other via a system bus 15 for transmitting and receiving data between the devices.

【0013】本実施形態における画像処理装置に使用さ
れるプログラムは、ROM2、FDD10、HDD11
あるいはRAM3に格納され、CPU1がシステムバス
15を介して逐次プログラムをROM2、FDD10、
HDD11あるいはRAM3から読み出して所定の処理
を行う。
The programs used in the image processing apparatus according to the present embodiment include ROM 2, FDD 10, HDD 11
Alternatively, the program is stored in the RAM 3 and the CPU 1 sequentially reads the program via the system bus 15 into the ROM 2, the FDD 10,
A predetermined process is performed by reading from the HDD 11 or the RAM 3.

【0014】次に、本実施形態の画像処理装置の文字処
理の全体的な流れを説明する。
Next, the overall flow of the character processing of the image processing apparatus according to the present embodiment will be described.

【0015】図2は、本発明の一実施形態としての文字
処理の概要を示すフローチャートである。
FIG. 2 is a flowchart showing an outline of character processing according to an embodiment of the present invention.

【0016】画像処理装置は、電源が投入されて立ち上
げると、ROM2に予め記憶されている初期化プログラ
ムが起動され、不図示の作業メニュー画面がCRT8に
表示され、以下の処理が始まる。
When the image processing apparatus is powered on and started up, an initialization program stored in advance in the ROM 2 is started, a work menu screen (not shown) is displayed on the CRT 8, and the following processing starts.

【0017】図中、ステップS21では、機能選択処理
に移行する。本実施形態において罫線の読み取りを行う
には、CRT8に表示された作業メニュー画面(不図
示)内の「罫線読み取り」に対応した項目を所定の操作
によって選択することにより文書中の罫線を読み取る機
能を選択する。ここで、「罫線読み取り」に対応した項
目を指示した場合にはステップS23に移行する。一
方、「罫線読み取り」以外の他の機能の項目を指示した
場合には、ステップS22へ移行しその他の機能処理
(本実施形態では説明を省略する)を行う。
In the figure, in a step S21, the processing shifts to a function selection processing. In this embodiment, a ruled line is read by selecting an item corresponding to “ruled line reading” in a work menu screen (not shown) displayed on the CRT 8 by a predetermined operation. Select Here, when an item corresponding to “ruled line reading” is designated, the process proceeds to step S23. On the other hand, when an item of a function other than the “ruled line reading” is designated, the process proceeds to step S22 to perform other function processing (the description is omitted in the present embodiment).

【0018】ステップS23では、罫線が印刷された原
稿を読み取るための原稿読み取り処理を行う(この原稿
読み取り処理の詳細については後述する)。概要を説明
すれば、オペレータが原稿をSCN14にセットし、K
B6を介して読み取り開始を入力する。すると、予めR
OM2に記憶されている制御プログラムに従って、所定
範囲幅毎(例えば、512ドットライン分)の2値デー
タがRAM3内に確保された画像バッファに記憶され
る。更に、2値データが記憶された画像バッファより罫
線情報における垂直線または水平線を始点座標と終点座
標との組みとして抽出し、RAM3内に確保した罫線デ
ータの領域に記憶する。尚、本実施形態において、画像
バッファにおける読み取った原稿の2値データは、SC
N14の解像度に応じたドット座標データとして原稿の
左上を座標原点としてその右方向をX座標、その下方向
をY座標とするように格納される。
In step S23, a document reading process for reading a document on which ruled lines are printed is performed (the details of the document reading process will be described later). In brief, the operator sets a document on the SCN 14 and
A start of reading is input via B6. Then, R
In accordance with the control program stored in the OM 2, binary data for each predetermined range width (for example, 512 dot lines) is stored in an image buffer secured in the RAM 3. Further, a vertical line or a horizontal line in the ruled line information is extracted from the image buffer in which the binary data is stored as a set of start point coordinates and end point coordinates, and is stored in the ruled line data area secured in the RAM 3. In this embodiment, the binary data of the read original in the image buffer is SC data.
The dot coordinate data corresponding to the resolution of N14 is stored such that the upper left of the document is the coordinate origin, the right direction is the X coordinate, and the lower direction is the Y coordinate.

【0019】そしてステップS24に移行し、ステップ
S23で抽出した罫線データを文書に変換する文書変換
処理を行う(この文書変換処理の詳細については後述す
る)。
Then, the process shifts to step S24 to perform a document conversion process for converting the ruled line data extracted in step S23 into a document (the details of the document conversion process will be described later).

【0020】ステップS25では、ROM2に予め記憶
されている文書編集プログラムを起動させてステップS
24で作成した文書メモリ100の内容をCRT8に表
示し、オペレータによる編集を可能とする。
In step S25, a document editing program stored in advance in the ROM 2 is started, and step S25 is executed.
The contents of the document memory 100 created in step 24 are displayed on the CRT 8 so that the operator can edit the contents.

【0021】<原稿読み取り処理>以下、ステップS2
3の原稿読み取り処理について図3を参照して説明す
る。
<Original reading process> Hereinafter, step S2
3 will be described with reference to FIG.

【0022】図3は、本発明の一実施形態としての原稿
読み取り処理のフローチャートである。
FIG. 3 is a flowchart of a document reading process according to an embodiment of the present invention.

【0023】図中、ステップS31では、読み取り処理
を行うに際してRAM3内の制御情報等の初期化を行う
ための初期値設定処理を行う。即ち、罫線データ領域及
び罫線データワーク領域をRAM3に確保し、罫線デー
タ領域は未使用状態に初期化しておく。次に、原稿であ
る用紙上の読み取り範囲を記録するための用紙読み取り
位置を内容を0としてRAM3に記憶しておく。尚、用
紙読み取り位置は、ドット座標値で扱われる。次に、R
AM3に読み取った画像を記憶する画像バッファをRA
M3に確保する。また、読み取った画像を画像バッファ
に記憶するための読み取り開始位置及び読み取り終了位
置をRAM3に確保し、内容をそれぞれ0としておく。
尚、読み取り開始位置及び読み取り終了位置は、ドット
座標値で扱われる。ここで、読み取り開始位置は、前記
の原稿用紙における読み取り範囲を指定した領域の上端
位置であり、この値が0の場合は画像バッファにおける
Y方向先頭位置にあたる。読み取り終了位置は、用紙の
縦方向の最大読み取り幅である(画像バッファ内ではY
方向の最大ドット幅となる)。そして、ドット座標値で
ある抽出終了位置をRAM3に確保し、内容をY方向最
大ドット幅に設定する。ここで、抽出終了位置は、画像
バッファ内の画像データにおいて、画像バッファにおけ
るY方向先頭位置からどこまでを罫線として抽出するか
を指定するための位置情報である。
In the figure, in step S31, an initial value setting process for initializing control information and the like in the RAM 3 when performing a reading process is performed. That is, the ruled line data area and the ruled line data work area are secured in the RAM 3, and the ruled line data area is initialized to an unused state. Next, the content of the sheet reading position for recording the reading range on the sheet of the original is set to 0 and stored in the RAM 3. Note that the paper reading position is handled by dot coordinate values. Next, R
The image buffer for storing the read image in the AM3 is RA
Secure in M3. Further, a reading start position and a reading end position for storing the read image in the image buffer are secured in the RAM 3, and the contents are set to 0 respectively.
Note that the reading start position and the reading end position are handled by dot coordinate values. Here, the reading start position is the upper end position of the area in which the reading range is specified in the above-mentioned original paper, and when this value is 0, it corresponds to the head position in the Y direction in the image buffer. The reading end position is the maximum reading width in the vertical direction of the paper (Y in the image buffer).
The maximum dot width in the direction). Then, the extraction end position, which is the dot coordinate value, is secured in the RAM 3, and the content is set to the maximum dot width in the Y direction. Here, the extraction end position is position information for designating a portion from the head position in the Y direction in the image buffer to be extracted as a ruled line in the image data in the image buffer.

【0024】ステップS32からステップS37は、罫
線が存在する1ページ分の原稿を、複数の所定範囲(罫
線認識領域)に区切って2値データとして画像バッファ
に読み取るルーチンである。即ち、原稿をスキャナ(S
CN)14にセットし、KB6を介して読み取り開始キ
ーを入力することにより、原稿を読み取り開始位置から
読み取り終了位置まで複数の領域に区切り、それらの領
域を個々に読み取ることにより2値データとして画像バ
ッファに入力する。
Steps S32 to S37 are routines for reading an original of one page having a ruled line into a plurality of predetermined ranges (ruled line recognition areas) and reading the data as binary data into the image buffer. That is, the original is scanned by the scanner (S
CN) 14 and inputting a reading start key via the KB 6 divides the document into a plurality of areas from a reading start position to a reading end position, and individually reads those areas to form binary image data. Fill the buffer.

【0025】ステップS32では、今回の罫線認識領域
を2値データとして画像バッファに読み取る。
In step S32, the current ruled line recognition area is read into the image buffer as binary data.

【0026】次にステップS33では、画像バッファ内
の読み取り終了位置(今回の罫線認識領域における下端
位置)付近に横線(後述の罫線における桁方向罫線を含
む)や斜行、読み取り誤差等(以下、横線等)により次
の読み取り範囲にまで線が斜めにまたがって存在するこ
とがあるので、そのような部分を今回の罫線認識領域か
ら除外し、次回の読み取り範囲(罫線認識領域)に含め
るためのバッファ境界処理を行う。即ち、今回の罫線認
識領域における下端位置付近に横線等が存在するか否か
をドットラインの状態等に基づいて判断し、横線等があ
ると判断した場合には、今回の罫線認識領域における抽
出終了位置を横線等が存在しないところまで−Y方向に
変更する。尚、ステップS33にて今回の罫線認識領域
を狭めた分、次の読み取り範囲を調整する処理はステッ
プS37にて説明する。
Next, in step S33, a horizontal line (including a digit direction ruled line in a ruled line to be described later), a skewed line, a reading error, etc. (hereinafter, referred to as a near line) near the reading end position (the lower end position in the current ruled line recognition area) in the image buffer. The line may extend diagonally to the next reading range due to a horizontal line, etc., and such a portion is excluded from the current ruled line recognition area and included in the next reading range (ruled line recognition area). Perform buffer boundary processing. That is, it is determined whether a horizontal line or the like exists near the lower end position in the current ruled line recognition area based on the state of the dot line or the like. The end position is changed in the −Y direction until a horizontal line or the like does not exist. Note that the process of adjusting the next reading range by the amount by which the current ruled line recognition area is narrowed in step S33 will be described in step S37.

【0027】次にステップS34では、画像バッファ内
の2値画像データにおける罫線データを抽出する罫線抽
出処理を行う。即ち、今回の罫線認識領域にあたる画像
バッファの方向先頭位置から抽出終了位置までの2値デ
ータを走査し、公知の方式により垂直線(縦線)または
水平線(横線)を始点座標と終点座標の組として抽出
し、罫線データワーク領域に記憶する。
Next, in step S34, a ruled line extraction process for extracting ruled line data in the binary image data in the image buffer is performed. That is, binary data from the head position in the direction of the image buffer corresponding to the current ruled line recognition area to the extraction end position is scanned, and a vertical line (vertical line) or a horizontal line (horizontal line) is set to a start point coordinate and an end point coordinate by a known method. And stores it in the ruled line data work area.

【0028】次にステップS35では、抽出した罫線デ
ータのうち、縦線について既に読み取った罫線と合成す
る境界罫線合成処理を行う。即ち、罫線データ領域が未
使用状態であれば、罫線データワーク領域を罫線データ
領域にコピーして使用状態にする。一方、罫線データ領
域が使用状態であれば、罫線データワーク領域に記憶さ
れている横線及び縦線のうち、今回の罫線認識領域の上
端位置に接していない縦線を罫線データ領域に座標変換
して移動する。次に、罫線データ領域及び罫線データワ
ーク領域の縦線について、それぞれ前回の罫線認識領域
の下端位置と現在の罫線認識領域の上端位置とが接して
いる縦線について、その接続状態を判定する。接続して
いる縦線は、罫線データ領域にて対応する縦線のY成分
に、罫線データワーク領域の縦線のY成分のサイズを加
える。一方、接続していない縦線が罫線データワーク領
域に存在すれば、それらを罫線データ領域に座標変換し
て移動する。
Next, in step S35, of the extracted ruled line data, a boundary ruled line synthesizing process for synthesizing a vertical line with a ruled line already read is performed. That is, if the ruled line data area is unused, the ruled line data work area is copied to the ruled line data area to be used. On the other hand, if the ruled line data area is in use, the vertical line that is not in contact with the upper end position of the current ruled line recognition area among the horizontal and vertical lines stored in the ruled line data work area is subjected to coordinate conversion into the ruled line data area. Move. Next, with respect to the vertical lines in the ruled line data area and the ruled line data work area, the connection state of the vertical line in which the lower end position of the previous ruled line recognition area is in contact with the upper end position of the current ruled line recognition area is determined. For the connected vertical line, the size of the Y component of the vertical line in the ruled line data work area is added to the Y component of the corresponding vertical line in the ruled line data area. On the other hand, if there are unconnected vertical lines in the ruled line data work area, they are moved to the ruled line data area by coordinate conversion.

【0029】次にステップS36では、原稿の用紙を1
頁分読み取ったかを判定する。即ち、用紙読み取り位置
に読み取り終了位置の値を加算し、その結果とSCN1
4の解像度に対応した用紙の縦サイズのドット値を比較
し、用紙の縦サイズの方が大きい場合はまだ1頁分読み
取っていないことを表すため、次の罫線認識領域を読み
取るためにステップS37に移行する。一方、用紙サイ
ズの方が小さいか等しい場合は1頁分読み取ったことを
表すため、図3の原稿読み取り処理を正常に行われたと
して終了し、図2のステップS23に移行する。
Next, in step S36, the original paper is
It is determined whether pages have been read. That is, the value of the reading end position is added to the sheet reading position, and the result is added to the SCN1.
The dot value of the vertical size of the paper corresponding to the resolution of 4 is compared, and if the vertical size of the paper is larger, it means that one page has not been read yet, so that the next ruled line recognition area is read in step S37. Move to On the other hand, if the paper size is smaller or equal, it indicates that one page has been read, and the process ends assuming that the document reading process of FIG. 3 has been normally performed, and proceeds to step S23 of FIG.

【0030】ステップS37では、次の罫線認識領域を
読み取る前に、画像バッファ内に存在する今回の罫線認
識領域の2値画像データを必要に応じて移動するバッフ
ァ内移動処理を行う。即ち、抽出終了位置と読み取り終
了位置とを比較し、抽出終了位置の方が小さければ、抽
出終了位置から読み取り終了位置までの画像バッファ内
のデータ内容を読み取り開始位置に移動し、読み取り終
了位置から抽出終了位置の差の値を、読み取り開始位置
に設定する。抽出終了位置と読み取り終了位置が等しけ
れば、0即ち画像バッファの上端位置を読み取り開始位
置に設定する。次に、次の読み取り幅を求めるため、用
紙の縦ドットサイズから用紙読み取り位置を減算した結
果とY方向最大ドット幅とを比較し、減算した結果の方
が大きいか等しければ読み取り終了位置にY方向最大ド
ット幅を設定し、減算した結果の方が小さければ読み取
り終了位置に減算した結果の値を設定する。そして、抽
出終了位置に読み取り終了位置の値を設定しステップS
32に戻る。
In step S37, before reading the next ruled line recognition area, an in-buffer moving process for moving the binary image data of the current ruled line recognition area present in the image buffer as necessary is performed. That is, the extraction end position is compared with the reading end position, and if the extraction end position is smaller, the data content in the image buffer from the extraction end position to the reading end position is moved to the reading start position, and from the reading end position. The value of the difference between the extraction end positions is set as the reading start position. If the extraction end position is equal to the reading end position, 0, that is, the upper end position of the image buffer is set as the reading start position. Next, in order to obtain the next reading width, the result of subtracting the sheet reading position from the vertical dot size of the sheet is compared with the maximum dot width in the Y direction. If the result of the subtraction is larger or equal, Y is set to the reading end position. The maximum dot width in the direction is set, and if the subtraction result is smaller, the value of the subtraction result is set at the reading end position. Then, the value of the reading end position is set to the extraction end position, and step S
Return to 32.

【0031】(原稿読み取り処理の変形例)尚、上述の
原稿読み取り処理では、原稿を読み取る際の用紙のセッ
トの仕方により、原稿が斜めになる(斜行する)場合に
ついては特に触れていないが、この場合も、例えば分割
して原稿を読み取る単位で斜行補正を行い、その補正量
に基づいて次回の読み取り画像を画像バッファ内でまず
Y軸方向へずらし、斜行補正を行うことにより用紙全体
に斜行補正を行う構成にしてもよい。
(Modification of Original Reading Process) In the above-described original reading process, although the case where the original is skewed (skewed) is not particularly described, depending on how the paper is set when reading the original, In this case as well, for example, skew correction is performed in units of reading a document in a divided manner, and the next read image is first shifted in the Y-axis direction in the image buffer based on the correction amount, and skew correction is performed. It may be configured to perform skew correction on the whole.

【0032】また、本実施形態では、原稿を分割して罫
線認識領域の単位で読み取る毎に、前回までの抽出した
罫線データと境界罫線合成処理を行っていたが、使用す
るメモリの容量が許す範囲であれば、抽出した罫線デー
タを分割して読み取った領域毎に記憶しておき、最後に
1ページ全体として境界罫線合成処理を行う構成にして
もよい。これにより、より精度の高い罫線読み取りが可
能になる。
Further, in the present embodiment, each time the original is divided and read in units of the ruled line recognition area, the ruled line data extracted up to the previous time and the boundary ruled line synthesizing process are performed, but the capacity of the memory used allows. If it is within the range, the extracted ruled line data may be divided and stored for each read region, and finally, the boundary ruled line synthesizing process may be performed for the entire page. As a result, more accurate ruled line reading becomes possible.

【0033】<文書変換処理>以下、ステップS24の
文書変換処理について詳細に説明する。
<Document Conversion Processing> The document conversion processing in step S24 will be described in detail below.

【0034】図7は、本発明の一実施形態としての読み
取るべき原稿の一例を示す図であり、P51は原稿の大
きさを示し、P52及びP53は罫線を示す。
FIG. 7 is a view showing an example of a document to be read according to an embodiment of the present invention. P51 indicates the size of the document, and P52 and P53 indicate ruled lines.

【0035】図8は、本発明の一実施形態としての罫線
データを文書変換した後の原稿の一例を示す図であり、
P61の各ドットは文字が記入可能な、例えば半角桁の
位置を示す白紙マークやスペースである。
FIG. 8 is a diagram showing an example of a document after ruled line data is converted into a document according to an embodiment of the present invention.
Each dot of P61 is a blank mark or space indicating the position of a half-width digit where characters can be written.

【0036】ステップS24において、例えば図7の原
稿に文書変換処理を行うことにより図8に示す文書に変
換される。
In step S24, for example, the document shown in FIG. 7 is converted into a document shown in FIG. 8 by performing a document conversion process.

【0037】まず、読み取った罫線イメージを文書に変
換するために用いられるRAM3内の確保される文書メ
モリについて、図9〜図11を参照して説明する。
First, a document memory secured in the RAM 3 used for converting the read ruled line image into a document will be described with reference to FIGS.

【0038】図9は、本発明の一実施形態としての頁情
報と行データとの関係を示す図である。
FIG. 9 is a diagram showing the relationship between page information and line data according to one embodiment of the present invention.

【0039】図中、文書メモリ100は、テキスト情報
領域110、頁情報領域120、書式情報領域130、
そしてフォームオーバレイ図形領域140を有する。以
下それぞれを説明する。
In the figure, a document memory 100 includes a text information area 110, a page information area 120, a format information area 130,
It has a form overlay figure area 140. Each of these will be described below.

【0040】テキスト情報領域110には、1行単位で
行書式情報111及び行内文字データ112が格納され
る。更に、この行書式情報111の構成を図10、行内
文字データ112を図11に示す。
The text information area 110 stores line format information 111 and in-line character data 112 in units of one line. FIG. 10 shows the configuration of the line format information 111, and FIG. 11 shows the in-line character data 112.

【0041】図10は、本発明の一実施形態としての行
書式情報の一例を示す図であり、各行毎の行ピッチの指
定値(例えば、0.1mm単位の幅)及び印刷行ピッチ
値(行ピッチ指定値を印刷した時の印刷ピッチ値に変換
した値)が記憶される。
FIG. 10 is a diagram showing an example of line format information according to an embodiment of the present invention. The line pitch designation value (for example, width in units of 0.1 mm) and the print line pitch value (for example, a width of 0.1 mm) for each line are shown. (A value converted into a print pitch value when the line pitch designation value is printed) is stored.

【0042】図11は、本発明の一実施形態としての行
内文字データの一例を示す図であり、各文字毎に修飾フ
ラグ(例えば下線修飾)及び文字コードが記憶される。
FIG. 11 is a diagram showing an example of in-line character data according to an embodiment of the present invention, in which a modification flag (for example, underline modification) and a character code are stored for each character.

【0043】文書メモリ100では、行位置に変更を加
える編集操作(例えば、文書初期化、文書呼出、行削
除、行挿入、行ピッチ変更、行移動等)が行われる度
に、変更が必要な部分の先頭行から文末行までの行書式
情報111内の行ピッチ指定値あるいは印刷行ピッチ値
を変更し、この過程で書式情報領域130内の文書書式
情報等を用いて頁の境を越える行と判定された場合に
は、該当する頁情報領域120内で当該行の行番号を更
新することにより、編集処理の終了時に文書メモリ10
0内には頁単位及び行単位の印刷時の位置情報が記憶さ
れることになる。
In the document memory 100, every time an editing operation for changing the line position (for example, document initialization, document call, line deletion, line insertion, line pitch change, line movement, etc.) is required, a change is required. The line pitch designation value or the print line pitch value in the line format information 111 from the first line to the last line of the part is changed, and in this process, the line crossing the page boundary is used by using the document format information in the format information area 130. Is determined, the line number of the line is updated in the corresponding page information area 120, so that the document memory 10
In 0, position information at the time of printing in page units and line units is stored.

【0044】また、書式情報領域130には、各頁に定
型の図形を文書に重ねて表示・印刷するためのデータ
(フォームオーバレイ)の存在を管理するためのフォー
ムオーバレイ有無フラグを有し、フォームオーバレイが
存在する(フォームオーバレイ有無フラグが有りを示
す)場合は、フォームオーバレイ図形領域140がテキ
スト情報領域110とは別領域に存在する。
The format information area 130 has a form overlay presence / absence flag for managing the existence of data (form overlay) for displaying / printing a fixed figure on a document over a document on each page. When an overlay is present (indicating that the form overlay presence / absence flag is present), the form overlay graphic area 140 exists in a different area from the text information area 110.

【0045】次に、文書変換処理を図4のフローチャー
トに沿って説明する。
Next, the document conversion processing will be described with reference to the flowchart of FIG.

【0046】図4は、本発明の一実施形態としての文書
変換処理を示すフローチャートである。
FIG. 4 is a flowchart showing a document conversion process according to an embodiment of the present invention.

【0047】図中、ステップS41において図2のステ
ップS23で抽出された罫線データが格納された領域
(以下、罫線データ領域)内の罫線情報(垂直線/水平
線)のドット座標をSCN14の解像度を用いて長さを
表すmm座標に変換するドット/mm変換処理を行う。
本実施形態では、ドットからmmに変換する際に0.1
mm単位に四捨五入するようにしている。
In the figure, in step S41, the dot coordinates of the ruled line information (vertical / horizontal lines) in the area (hereinafter, ruled line data area) storing the ruled line data extracted in step S23 of FIG. Then, a dot / mm conversion process for converting into a mm coordinate representing a length is performed.
In the present embodiment, when converting from dots to mm, 0.1 is used.
It is rounded to the nearest millimeter.

【0048】次に、ステップS42に移行し、図9に示
す文書メモリ100の各領域をRAM3に確保し、且つ
初期化するための文書メモリ確保・初期化処理を行う。
尚、初期化した段階では、テキスト情報領域110、頁
情報領域120、書式情報領域130、空き領域(図9
に不図示)及びこれらの領域を管理するための制御領域
(図9に不図示)が文書メモリ100内に配置される。
Next, the flow shifts to step S42, in which a document memory securing / initializing process for securing each area of the document memory 100 shown in FIG.
At the stage of initialization, the text information area 110, the page information area 120, the format information area 130, and the empty area (FIG. 9)
And a control area (not shown in FIG. 9) for managing these areas are arranged in the document memory 100.

【0049】次に、ステップS43に移行し、抽出され
た罫線のうちで縦罫線と交差しない横罫線のみを抽出す
る下線抽出処理を行う。即ち、前記の罫線データ領域内
を調べ、水平線のうちで垂直線と一ヶ所も交わらない水
平線を抽出し、始点座標及び終点座標の組として、RA
M3に確保された下線データ領域に記憶する。そして、
抽出された水平線を罫線データ領域から削除する。
Next, the process shifts to step S43 to perform an underline extraction process of extracting only horizontal ruled lines that do not intersect with vertical ruled lines among the extracted ruled lines. That is, the inside of the ruled line data area is examined, and a horizontal line that does not intersect the vertical line at any one position is extracted from the horizontal lines, and RA is set as a set of start point coordinates and end point coordinates.
It is stored in the underlined data area secured in M3. And
The extracted horizontal line is deleted from the ruled line data area.

【0050】次に、ステップS44に移行し、抽出され
た罫線をフォームオーバレイの図形に変換する罫線/フ
ォームオーバレイ変換処理を行う。即ち、図9で示す書
式情報領域130内のフォームオーバレイ有無フラグを
「有]に設定し、フォームオーバレイ図形領域140を
文書メモリ100内の空き領域に確保し、罫線データ領
域に存在する罫線情報を図形データに変換して格納す
る。この図形データヘの変換は例えば、形式を水平線ま
たは垂直線に、属性を実線に、位置情報を始点と終点の
mm座標にそれぞれ設定することにより行う。
Next, the flow shifts to step S44, where a ruled line / form overlay conversion process for converting the extracted ruled line into a form overlay figure is performed. That is, the form overlay presence / absence flag in the format information area 130 shown in FIG. 9 is set to “Yes”, the form overlay graphic area 140 is secured in an empty area in the document memory 100, and the ruled line information existing in the ruled line data area is deleted. The conversion into graphic data is performed by, for example, setting the format to a horizontal line or a vertical line, setting the attribute to a solid line, and setting the position information to mm coordinates of the start point and the end point.

【0051】次に、ステップS45に移行し、罫線デー
タ領域内の水平線を行方向(横書きの原稿であれば縦方
向)について昇順に取り出す水平線行方向についての昇
順表作成処理を行う。即ち、水平線のY座標成分に基づ
いてY=0から昇順に、罫線データ内に存在する水平線
をRAM3に確保した昇順表領域に格納する。尚、Y成
分が同じ水平線については最初の1本のみを格納する。
Next, the process proceeds to step S45, in which ascending order table creation processing is performed on the horizontal line row direction in which horizontal lines in the ruled line data area are extracted in ascending order in the row direction (vertical direction for a horizontally written original). That is, the horizontal lines existing in the ruled line data are stored in the ascending order table area secured in the RAM 3 in ascending order from Y = 0 based on the Y coordinate component of the horizontal line. Note that only the first one of the horizontal lines having the same Y component is stored.

【0052】ついで、ステップS46に移行し、罫線の
行間隔、即ち罫線の縦の間隔に基づいて文書全体の文字
サイズを決定する文字サイズ決定処理を行う。即ち、ス
テップS35で確保した昇順表領域の水平線のY成分に
基づいて各水平線の間隔を求め、この間隔を例えば本実
施形態における最小の印字サイズである6ポイントの大
きさと比較し、その結果が6ポイントに等しいか、或は
大きいサイズのうちで最小の間隔を求め、RAM3に確
保した文字サイズ値に記憶する。
Then, the flow shifts to step S46, in which a character size determination process for determining the character size of the entire document based on the line spacing of the ruled lines, that is, the vertical spacing of the ruled lines, is performed. That is, the interval between each horizontal line is obtained based on the Y component of the horizontal line of the ascending table area secured in step S35, and this interval is compared with, for example, the size of 6 points which is the minimum print size in this embodiment. The minimum interval among the sizes equal to or larger than 6 points is obtained and stored in the character size value secured in the RAM 3.

【0053】次に、ステップS47に移行し、ステップ
S45で作成した昇順表領域とステップS46で求めた
文字サイズ値とに基づいて水平線の間に行を作成する行
数/行ピッチ算出/行作成処理を行い(詳細は後述す
る)、図2のステップS25に移行する。
Next, the process proceeds to step S47, where the number of lines / line pitch calculation / line creation is calculated based on the ascending table area created in step S45 and the character size value found in step S46. The process is performed (details will be described later), and the process proceeds to step S25 in FIG.

【0054】(行数/行ピッチ算出/行作成処理)ここ
で、ステップS47の行数/行ピッチ算出/行作成処理
について図5及び図6に示すフローチャート及び図12
を参照して説明する。
(Number of Lines / Line Pitch Calculation / Line Creation Process) Here, the number of lines / line pitch calculation / line creation process in step S47 will be described with reference to the flowcharts shown in FIGS.
This will be described with reference to FIG.

【0055】図12は、本発明の一実施形態としての罫
線と作成する行との変換関係を示す図である。
FIG. 12 is a diagram showing a conversion relationship between ruled lines and lines to be created according to an embodiment of the present invention.

【0056】図中、P91は水平線、P92は文字、P
93及びP94は行ピッチ、Kは水平線の間隔、Sは文
字サイズ、Gは文字とその文字の上方に位置する水平線
との間隔、Aは文字とその文字の下方に位置する水平線
との間隔である。
In the figure, P91 is a horizontal line, P92 is a character, P
93 and P94 are the line pitch, K is the distance between horizontal lines, S is the character size, G is the distance between the character and the horizontal line located above the character, and A is the distance between the character and the horizontal line located below the character. is there.

【0057】図5及び図6は、本発明の一実施形態とし
ての行数/行ピッチ算出/行作成処理の流れを示すフロ
ーチャートである。
FIGS. 5 and 6 are flowcharts showing the flow of the number of rows / row pitch calculation / row creation process according to one embodiment of the present invention.

【0058】まず、ステップS51で第1行目の行の作
成を行う。即ち、例えば第1行目の行を文書全体におけ
る上余白値の位置に設定し、行書式情報等は所定の値と
して作成し、RAM3に確保した累積値に−1を設定す
る。
First, a first row is created in step S51. That is, for example, the first line is set at the position of the upper margin value in the entire document, the line format information is created as a predetermined value, and the accumulated value secured in the RAM 3 is set to -1.

【0059】次に、ステップS52に移行し、昇順表の
先頭をポイントする。即ち、昇順表領域内に存在する水
平線における先頭の水平線をポインタによりポイントす
る。
Next, the process shifts to step S52 to point to the head of the ascending order table. In other words, the first horizontal line in the ascending order table area is pointed by the pointer.

【0060】次に、ステップS53に移行し、ポイント
位置が昇順表の最後を越えたか否かを判別する。即ち、
ステップS52及びステップS55でポイントしたポイ
ンタが昇順表を越えたか否かを判別する。越えていなけ
ればステップS54に移行し、越えていればステップS
69に移行する。
Next, the flow shifts to step S53, where it is determined whether or not the point position has exceeded the end of the ascending order table. That is,
It is determined whether or not the pointer pointed in step S52 and step S55 has exceeded the ascending order table. If not, the process proceeds to step S54.
It moves to 69.

【0061】ステップS69では、既に作成した行の最
終行と下余白位置との間に、例えば書式情報で規定され
る行ピッチ値の行を埋める残り行の作成を行う。
In step S69, a remaining line is created between the last line of the already created line and the lower margin position to fill, for example, the line with the line pitch value specified by the format information.

【0062】次にステップS70に移行し、上余白位置
と下余白位置とを用いて、この間に存在する下線データ
領域内の下線を調べ、必要であれば既に作成した行の行
ピッチの調整を行う本文内の下線行設定処理を行う。
Next, the flow shifts to step S70, using the upper margin position and the lower margin position, checking the underline in the underline data area existing between them, and adjusting the line pitch of the already created line if necessary. Perform the underlined line setting process in the text to be performed.

【0063】即ち、上余白位置と下余白位置との範囲に
存在する下線を下線データ領域内で検索し、1つも存在
しない場合は、行数/行ピッチ算出/行作成処理が正常
に行われたとして処理を終了し、図2のステップS25
に移行する。一方、下線が1つでも存在する場合は、そ
の存在した下線について、既に作成済みの行の下線位置
を満足するかを判断する。満足すればその行として下線
設定処理する。一方、満足しない場合は、現在注目して
いる水平線の範囲外に行が出ない範囲、且つ前後の行を
越えない範囲で既存の行を上下にずらすことが可能かを
判定し、ずらせない場合は処理せず、ずらせる場合は、
行ピッチを前の行との間で調整して下線設定処理する。
下線設定する場合は、下線データ領域のX成分より桁位
置成分に変換し、対応する文字桁範囲内の文字に図11
に示すように下線フラグを設定する。ここで下線位置と
は、(対象行の上端位置+S+文字すき間位置)であ
る。また、文字すき間とは、文字と下線の間に存在する
すき間のことである。この値は印字した場合に見栄えの
よい値を設定すれば良い。下線設定処理が終了したら図
2のステップS25に移行する。
That is, the underline existing in the range between the upper margin position and the lower margin position is searched in the underline data area, and if there is no line, the number of lines / line pitch calculation / line creation processing is performed normally. And terminates the process, and proceeds to step S25 in FIG.
Move to On the other hand, if at least one underline exists, it is determined whether or not the existing underline satisfies the underline position of the already created line. If satisfied, the line is underlined. On the other hand, if not satisfied, it is determined whether an existing line can be shifted up and down within a range where no line is out of the range of the current horizontal line and within a range not exceeding the previous and next lines, If you do not want to process,
Underline setting processing is performed by adjusting the line pitch with the previous line.
When an underline is set, the X component of the underline data area is converted into a digit position component, and characters within the corresponding character digit range are converted to those shown in FIG.
Set the underline flag as shown in. Here, the underline position is (upper end position of target line + S + character gap position). The character gap is a gap existing between a character and an underline. This value may be set to a value that looks good when printed. Upon completion of the underline setting process, the flow shifts to step S25 in FIG.

【0064】ステップS54では、Y成分と上余白位置
との大小関係を判別する。即ち、ポイントした水平線の
Y成分位置と上余白位置とを比較し、(Y成分位置≧上
余白位置)であればステップS56に移行し、(Y成分
位置<上余白位置)であればステップS55に移行す
る。
In step S54, the magnitude relationship between the Y component and the upper margin position is determined. That is, the Y component position of the pointed horizontal line is compared with the upper margin position. If (Y component position ≧ upper margin position), the process proceeds to step S56, and if (Y component position <upper margin position), step S55. Move to

【0065】ステップS55では、(Y成分位置≧上余
白位置)を満たす水平線をポイントするため昇順表内で
次のポイントに更新し再度ステップS53に移行する。
In step S55, the next line in the ascending order table is updated to point to a horizontal line that satisfies (Y component position ≧ upper margin position), and the process returns to step S53.

【0066】一方、ステップS56では、(Y成分位置
≧上余白位置)を満足した水平線のY成分値により、R
AM3内に確保した累積値に(Y成分位置−上余白位
置)を設定する。
On the other hand, in step S56, the R component is calculated based on the Y component value of the horizontal line that satisfies (Y component position ≧ upper margin position).
(Y component position−upper margin position) is set to the accumulated value secured in AM3.

【0067】次にステップS57に移行し、上余白位置
と、(Y成分位置≧上余白位置)を満足した水平線のY
成分位置とを用いてこの間に存在する下線を下線データ
領域内で調べ、必要なら下線行の追加を行う上余白側下
線行設定処理を行う。即ち、ポイントしてある水平線と
上余白の範囲内に存在する下線を下線データ領域内で検
索し、ひとつも存在しなければステップS58に移行す
る。一方存在すれば、存在した下線について、既に作成
済の第1行と下線のY成分位置を比較し、第1行目の下
線位置より上余白側である下線は処理せず、第1行目の
下線位置を満足する下線は第1行目で処理する。この場
合、下線データ領域のX成分より桁位置成分に変換し、
対応する文字桁範囲内の文字データに図12に示すよう
に下線フラグを設定する。尚、第1行目の下線位置より
下余白側に位置する場合は、新たな行を(下線Y成分位
置−文字すき間−S)の位置に追加して同様の処理を行
う。新たな行を追加した場合は、累積値の更新を行う。
即ち、最終行であった行の行上端位置と新たな最終行の
行上端位置の差を、累積値から減算する。
Then, the flow shifts to step S57, where the upper margin position and the Y of the horizontal line satisfying (Y component position ≧ upper margin position) are satisfied.
The underline existing between them is checked in the underline data area using the component position, and if necessary, an underline line setting process for adding an underline is performed. That is, the underline existing within the range of the pointed horizontal line and the upper margin is searched in the underline data area, and if there is no such line, the process proceeds to step S58. On the other hand, if the underline exists, the Y component position of the already created first line and the underline is compared, and the underline that is on the upper margin side from the underline position of the first line is not processed, and the underline of the first line is not processed. Underlines that satisfy the position are processed in the first line. In this case, the X component of the underlined data area is converted into a digit position component,
An underline flag is set for the character data within the corresponding character digit range as shown in FIG. If the line is located on the lower margin side from the underline position of the first line, a new line is added to the position of (underline Y component position-character gap-S) and the same processing is performed. When a new row is added, the cumulative value is updated.
That is, the difference between the upper end position of the last line and the upper end position of the new last line is subtracted from the accumulated value.

【0068】ステップS58では、間隔Kを求めること
が可能か否か判別する。即ち、図12に示すように、ポ
イントしている水平線とその次の水平線のY成分とに基
づいてこれらの水平線間の間隔Kを求めるために、次の
水平線が昇順表内に存在するか否かを判別する。次のポ
イントが昇順表の最後を越えていなければ次の水平線が
存在することを表すのでステップS59に移行する。一
方、次のポイントが昇順表の最後を越えていれば次の水
平線が存在しないことを表すため、ステップS71に移
行する。
In step S58, it is determined whether the interval K can be obtained. That is, as shown in FIG. 12, in order to obtain the interval K between these horizontal lines based on the horizontal line that is pointed and the Y component of the next horizontal line, it is determined whether or not the next horizontal line exists in the ascending order table. Is determined. If the next point does not exceed the end of the ascending order table, it indicates that the next horizontal line exists, and the flow shifts to step S59. On the other hand, if the next point is beyond the end of the ascending order table, it means that the next horizontal line does not exist, and the process shifts to step S71.

【0069】ステップS71では、既に作成した行の最
終行と下余白位置との間に、例えば書式情報で規定され
る行ピッチ値の行を埋める残り行の作成を行う。
In step S71, a remaining line is created between the last line of the already created line and the lower margin position to fill, for example, a line with a line pitch value specified by format information.

【0070】次にステップS72に移行し、現在のポイ
ントのY成分位置と下余白位置とを用いて、この間に存
在する下線を下線データ領域内で調べ、必要であれば既
に作成した行の行ピッチの調整を行う下余白位置の下線
行設定処理を行う。
Next, the flow shifts to step S72, using the Y component position of the current point and the lower margin position, to check the underline existing between them in the underline data area, and if necessary, the line of the already created line An underline line setting process is performed for the lower margin position for adjusting the pitch.

【0071】即ち、現在のポイントが下余白内の位置に
存在する場合は、行数/行ピッチ算出/行作成処理が正
常に行われたとして処理を終了し、図2のステップS2
5に移行する。一方、現在のポイントが下余白内の位置
に存在しない場合は、現在のポイントされている水平線
から下余白の位置する範囲に存在する下線を下線データ
領域内で検索する。その結果、下線が1つも存在しない
場合は、行数/行ピッチ算出/行作成処理が正常に行わ
れたとして処理を終了し、図2のステップS25に移行
する。一方、下線が1つでも存在する場合は、その存在
した下線について、既に作成済みの行の下線位置を満足
するかを判断する。満足すればその行として下線設定処
理する。一方、満足しない場合は、現在注目している水
平線の範囲外に行が出ない範囲、且つ前後の行を越えな
い範囲で既存の行を上下にずらすことが可能かを判定
し、ずらせない場合は処理せず、ずらせる場合は、行ピ
ッチを前の行との間で調整して下線設定処理する。下線
設定する場合は、下線データ領域のX成分より桁位置成
分に変換し、対応する文字桁範囲内の文字データに図1
1に示すように下線フラグを設定する。ここで下線位置
とは、(対象行の上端位置+S+文字すき間位置)であ
る。また、文字すき間とは、文字と下線の間に存在する
すき間のことである。この値は印字した場合に見栄えの
よい値を設定すれば良い。下線設定処理が終了したら図
2のステップS25に移行する。
That is, if the current point is located at a position within the lower margin, it is determined that the line number / line pitch calculation / line creation processing has been normally performed, and the processing is terminated.
Move to 5. On the other hand, if the current point does not exist at the position within the lower margin, an underline existing within a range of the lower margin from the current pointed horizontal line is searched for in the underline data area. As a result, if there is no underline, it is determined that the number of rows / row pitch calculation / row creation processing has been normally performed, the processing is terminated, and the routine proceeds to step S25 in FIG. On the other hand, if at least one underline exists, it is determined whether or not the existing underline satisfies the underline position of the already created line. If satisfied, the line is underlined. On the other hand, if not satisfied, it is determined whether an existing line can be shifted up and down within a range where no line is out of the range of the current horizontal line and within a range not exceeding the previous and next lines, In the case of shifting, the line pitch is adjusted between the previous line and the underline, and the underline setting process is performed. When setting an underline, the X component of the underline data area is converted into a digit position component, and the character data within the corresponding character digit range is converted to the character data shown in FIG.
Set the underline flag as shown in FIG. Here, the underline position is (upper end position of target line + S + character gap position). The character gap is a gap existing between a character and an underline. This value may be set to a value that looks good when printed. Upon completion of the underline setting process, the flow shifts to step S25 in FIG.

【0072】ステップS59では、間隔Kを求める。即
ち、次のポイントのY成分から現在のポイントのY成分
を減算した結果をRAM3内に確保した間隔Kに設定す
る。
In step S59, an interval K is obtained. That is, the result of subtracting the Y component of the current point from the Y component of the next point is set as the interval K secured in the RAM 3.

【0073】そしてステップS60に移行し、間隔Kと
図4のステップS46で求めた文字サイズSとの大小関
係を判別する。即ち、(間隔K≧文字サイズS)であれ
ば少なくとも1行分の行が作成できるためステップS6
1に移行する。(間隔K<文字サイズS)であれば、こ
の間隔Kでは文字サイズSの行を作成しても間隔Kから
はみ出すため、行は作成せずステップS68に移行す
る。
Then, the flow shifts to step S60, where a magnitude relationship between the interval K and the character size S obtained in step S46 in FIG. 4 is determined. That is, if (interval K ≧ character size S), at least one line can be created, so that step S6
Move to 1. If (interval K <character size S), even if a line of character size S is created at this interval K, it goes beyond the interval K, so that no line is created and the process proceeds to step S68.

【0074】ステップS68では、累積値の加算を行
う。即ち、すでに作成した最終行の行ピッチ値を算出す
るための累積値に間隔Kを加算する。
In step S68, the cumulative value is added. That is, the interval K is added to the accumulated value for calculating the row pitch value of the last row already created.

【0075】ステップS61では、間隔Kにおいて作成
できる行数を算出し行を作成する。即ち、例えば、行数
=1+[K/3S](但し[n]は、nの少数点以下を
切り捨てる)により行数を算出し、例えば行書式情報等
は所定の値として得られた行数の行を作成する。
In step S61, the number of rows that can be created at the interval K is calculated to create a row. That is, for example, the number of lines is calculated by the number of lines = 1 + [K / 3S] (where [n] is rounded down to the decimal point of n). For example, the line format information or the like is obtained as a predetermined number of lines. Create a row.

【0076】次に、ステップS62に移行し、間隔K内
での先頭行とその前の行との行ピッチ算出とその前の行
への行ピッチ設定を行う。即ち、ステップS61で求め
た行数により、例えば、 G=(K−行数×S)/(2×行数) 行ピッチ値=累積値+G により間隔K内の先頭行の前行の行ピッチ値を算出し、
前の行の行書式情報内の行ピッチ指定値に設定する。
Then, the flow shifts to step S62, where the line pitch between the first line and the line preceding the line within the interval K is calculated, and the line pitch for the previous line is set. That is, according to the number of rows determined in step S61, for example, G = (K−number of rows × S) / (2 × number of rows) Row pitch value = cumulative value + G The row pitch of the row preceding the first row in the interval K Calculate the value,
Set to the line pitch specification value in the line format information of the previous line.

【0077】次にステップS63に移行し、行数が2行
以上かを判別する。即ち、行数>1であればステップS
64に移行する。行数が行数≦1であればステップS6
5に移行する。
Next, the flow shifts to step S63, where it is determined whether the number of rows is two or more. That is, if the number of rows is greater than 1, step S
Move to 64. If the number of rows is equal to or less than 1, the step S6
Move to 5.

【0078】ステップS64では、間隔K内の最終行の
前の行までの行ピッチを算出し設定する。即ち、間隔K
内の最終行までの行ピッチ値を、 行ピッチ値=S+2G により算出し、その前の行の行書式情報内の行ピッチ指
定値に設定する。
In step S64, the line pitch up to the line before the last line in the interval K is calculated and set. That is, the interval K
Is calculated by the line pitch value = S + 2G, and is set to the line pitch designation value in the line format information of the previous line.

【0079】次にステップS65に移行し、現在のポイ
ントのY成分位置と、次のポイントのY成分位置を用い
て、この間に存在する下線データ領域内の下線を調べ、
必要であれば既に作成した行の行ピッチの調整を行う本
文内の罫線間の下線行設定処理を行う。
Next, the flow shifts to step S65, using the Y component position of the current point and the Y component position of the next point, to check the underline in the underline data area existing between them,
If necessary, an underlined line setting process between the ruled lines in the text for adjusting the line pitch of the already created line is performed.

【0080】即ち、現在ポイントされている水平線と次
にポイントされる水平線の範囲に存在する下線を下線デ
ータ領域内で検索し、1つも存在しない場合は、ステッ
プS66に移行する。一方、下線が1つでも存在する場
合は、その存在した下線について、既に作成済みの行の
下線位置を満足するかを判断する。満足すればその行と
して下線設定処理する。一方、満足しない場合は、現在
注目している水平線の範囲外に行が出ない範囲、且つ前
後の行を越えない範囲で既存の行を上下にずらすことが
可能かを判定し、ずらせない場合は処理せず、ずらせる
場合は、行ピッチを前の行との間で調整して下線設定処
理する。下線設定する場合は、下線データ領域のX成分
より桁位置成分に変換し、対応する文字桁範囲内の文字
データに図11に示すように下線フラグを設定する。
That is, the underline existing in the range between the currently pointed horizontal line and the next pointed horizontal line is searched in the underline data area. If no underline exists, the process proceeds to step S66. On the other hand, if at least one underline exists, it is determined whether or not the existing underline satisfies the underline position of the already created line. If satisfied, the line is underlined. On the other hand, if not satisfied, it is determined whether an existing line can be shifted up and down within a range where no line is out of the range of the current horizontal line and within a range not exceeding the previous and next lines, In the case of shifting, the line pitch is adjusted between the previous line and the underline, and the underline setting process is performed. When setting an underline, the X component of the underline data area is converted into a digit position component, and an underline flag is set for character data within the corresponding character digit range as shown in FIG.

【0081】ステップS66では、累積値の更新を行
う。即ち、間隔K内の最終行の行上端位置と次の水平線
との間隔Aを求め、累積値に上書きして設定する。
In step S66, the cumulative value is updated. That is, the interval A between the upper end position of the last line in the interval K and the next horizontal line is obtained and set by overwriting the accumulated value.

【0082】次に、ステップS67に移行し、昇順表を
ポイントするポインタを次の水平線の位置に更新し、ス
テップS58に戻る。
Next, the flow shifts to step S67, where the pointer pointing to the ascending order table is updated to the position of the next horizontal line, and the flow returns to step S58.

【0083】このように図4のステップS47の処理が
正常に行われ終了すると、図2のステップS25に移行
する。
When the processing in step S47 in FIG. 4 is normally performed and completed, the process proceeds to step S25 in FIG.

【0084】(文書変換処理の変形例)尚、前述の文書
変換処理では、下線設定する際に水平線間に行を作成し
た後、その行に対して下線位置を調整する方法について
説明したが、まず水平線間の下線位置に対応して行を作
成し、その後必要な場合には、水平線と下線行との間に
行を作成する構成にしてもよい。
(Modification of Document Conversion Process) In the above-described document conversion process, a method has been described in which a line is created between horizontal lines when an underline is set, and then the underline position is adjusted with respect to the line. First, a line may be created corresponding to the underline position between the horizontal lines, and then, if necessary, a line may be created between the horizontal line and the underline line.

【0085】また、本実施形態は、横書き書式の原稿を
変換する場合の例を示したが、縦書き書式の原稿を読み
取る場合には、下線位置が行に対して右側に位置する点
を除き横書き書式と制御方法が変わらないため、縦書き
書式の原稿にも適用できることはいうまでもない。
In this embodiment, an example in which a document in a horizontal writing format is converted has been described. However, when a document in a vertical writing format is read, except that the underline position is located on the right side of the line. Since the control method is the same as that in the horizontal writing format, it goes without saying that the present invention can be applied to a manuscript in a vertical writing format.

【0086】尚、本発明は、複数の機器(例えばホスト
コンピュータ,インタフェイス機器,リーダ,プリンタ
等)から構成されるシステムに適用しても、一つの機器
からなる装置(例えば、複写機,ファクシミリ装置等)
に適用してもよい。
The present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), and can be applied to a single device (for example, a copier, a facsimile). Equipment)
May be applied.

【0087】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
An object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0088】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0089】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROM等
を用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, magnetic tape, non-volatile memory card, ROM, etc. can be used.

【0090】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)等が実際の処理の一部または全部
を行い、その処理によって前述した実施形態の機能が実
現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) And the like perform part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0091】更に、記憶媒体から読出されたプログラム
コードが、コンピュータに挿入された機能拡張ボードや
コンピュータに接続された機能拡張ユニットに備わるメ
モリに書込まれた後、そのプログラムコードの指示に基
づき、その機能拡張ボードや機能拡張ユニットに備わる
CPU等が実際の処理の一部または全部を行い、その処
理によって前述した実施形態の機能が実現される場合も
含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, It goes without saying that a CPU or the like provided in the function expansion board or the function expansion unit performs a part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0092】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図13のメモリマップ例に示す各モジュール
を記憶媒体に格納することになる。
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts. Each module shown will be stored in a storage medium.

【0093】図13は、本発明の一実施形態としての画
像処理装置のメモリマップ例を示す図である。即ち、少
なくとも原稿に示された罫線を抽出する「罫線抽出モジ
ュール」、原稿上の文字に施された下線として抽出する
「下線抽出モジュール」、行方向の罫線の間に文字行を
作成する「文字行作成モジュール」、抽出した下線を行
内文字データに文字データ毎に登録する「登録モジュー
ル」の各モジュールのプログラムコードを記憶媒体に格
納すればよい。
FIG. 13 is a diagram showing an example of a memory map of the image processing apparatus as one embodiment of the present invention. That is, a "ruled line extraction module" for extracting at least the ruled line shown in the document, a "underline extraction module" for extracting as an underline applied to characters on the document, and a "character for forming a character line between ruled lines in the line direction" What is necessary is just to store the program code of each module of the "line creation module" and the "registration module" for registering the extracted underline in the in-line character data for each character data in the storage medium.

【0094】[0094]

【発明の効果】以上説明したように、本発明によれば、
原稿の画像情報に含まれる罫線情報を少ないメモリ容量
で正確に読み取り、更にその罫線情報に含まれる文字の
下線部分に文字行を生成する画像処理装置及びその処理
方法の提供が実現する。
As described above, according to the present invention,
It is possible to provide an image processing apparatus and an image processing method for accurately reading ruled line information included in image information of a document with a small memory capacity and generating a character line in an underline portion of a character included in the ruled line information.

【0095】即ち、1ページの原稿をイメージ情報とし
て読み取る際、所定範囲の複数の領域に分割して読み込
み、各領域から罫線を抽出した後、1ページ分の罫線と
して合成したことにより、原稿の大きさに関らず、比較
的小さいメモリ容量であっても読み取り時の解像度で処
理が行える。更に、読み取った罫線のうちで行方向罫線
と交差しない桁方向罫線を下線として抽出し、その位置
に文書作成用の文字行の作成が可能となるため、編集作
業に要する時間を削減できる。
That is, when a one-page document is read as image information, the document is read by dividing it into a plurality of regions within a predetermined range, extracting ruled lines from each region, and combining them as one-page ruled lines. Regardless of the size, processing can be performed with a resolution at the time of reading even with a relatively small memory capacity. Further, among the read ruled lines, digit-directional ruled lines that do not intersect with the line-directional ruled lines are extracted as underlines, and character lines for document creation can be created at those positions, so that the time required for editing work can be reduced.

【0096】[0096]

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

【図1】本発明の一実施形態としての画像処理装置のブ
ロック構成図である。
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

【図2】本発明の一実施形態としての文字処理の概要を
示すフローチャートである。
FIG. 2 is a flowchart illustrating an outline of character processing according to an embodiment of the present invention.

【図3】本発明の一実施形態としての原稿読み取り処理
のフローチャートである。
FIG. 3 is a flowchart of a document reading process as one embodiment of the present invention.

【図4】本発明の一実施形態としての文書変換処理を示
すフローチャートである。
FIG. 4 is a flowchart showing a document conversion process as one embodiment of the present invention.

【図5】本発明の一実施形態としての行数/行ピッチ算
出/行作成処理の流れを示すフローチャートである。
FIG. 5 is a flowchart showing a flow of a row number / row pitch calculation / row creation process as one embodiment of the present invention.

【図6】本発明の一実施形態としての行数/行ピッチ算
出/行作成処理の流れを示すフローチャートである。
FIG. 6 is a flowchart illustrating a flow of a row number / row pitch calculation / row creation process as one embodiment of the present invention.

【図7】本発明の一実施形態としての読み取るべき原稿
の一例を示す図である。
FIG. 7 is a diagram illustrating an example of a document to be read according to an embodiment of the present invention.

【図8】本発明の一実施形態としての罫線データを文書
変換した後の原稿の一例を示す図である。
FIG. 8 is a diagram illustrating an example of a document after converting ruled line data into a document according to an embodiment of the present invention.

【図9】本発明の一実施形態としての頁情報と行データ
との関係を示す図である。
FIG. 9 is a diagram illustrating a relationship between page information and line data according to an embodiment of the present invention.

【図10】本発明の一実施形態としての行書式情報の一
例を示す図である。
FIG. 10 is a diagram illustrating an example of line format information according to an embodiment of the present invention.

【図11】本発明の一実施形態としての行内文字データ
の一例を示す図である。
FIG. 11 is a diagram illustrating an example of in-line character data according to an embodiment of the present invention.

【図12】本発明の一実施形態としての罫線と作成する
行との変換関係を示す図である。
FIG. 12 is a diagram illustrating a conversion relationship between ruled lines and lines to be created according to an embodiment of the present invention.

【図13】本発明の一実施形態としての画像処理装置の
メモリマップ例を示す図である。
FIG. 13 is a diagram illustrating an example of a memory map of the image processing apparatus as one embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 CPU 2 ROM 3 RAM 4 外部ROM 5 キーボード制御装置(KBC) 6 キーボード(KB) 7 表示制御装置(CRTC) 8 表示装置(CRT) 9 周辺装置制御装置(DKC) 10 フロッピーディスクドライブ(FDD) 11 ハードディスクドライブ(HDD) 12 印刷装置(PRT) 13 ポインティングデバイス(PD) 14 イメージスキャナ(SCN) 15 システムバス 1 CPU 2 ROM 3 RAM 4 External ROM 5 Keyboard control device (KBC) 6 Keyboard (KB) 7 Display control device (CRTC) 8 Display device (CRT) 9 Peripheral device control device (DKC) 10 Floppy disk drive (FDD) 11 Hard disk drive (HDD) 12 Printing device (PRT) 13 Pointing device (PD) 14 Image scanner (SCN) 15 System bus

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 原稿を読み取ることにより得られた画像
データから、前記原稿に示された罫線を抽出する罫線抽
出手段と、 前記罫線における行方向の罫線と交差しない桁方向の罫
線を、前記原稿上の下線として抽出する下線抽出手段
と、 前記罫線における行方向の罫線の間隔に基づいて、文字
の大きさを決定し、その文字よるなる文字行を作成する
文字行作成手段と、 その文字行作成手段により作成した文字行の位置と、前
記下線抽出手段により得られた下線の位置とに基づい
て、前記文字行を構成する文字データに前記下線を、そ
の文字データ単位で登録する登録手段と、を備えたこと
を特徴とする画像処理装置。
1. A ruled line extracting means for extracting a ruled line shown in the document from image data obtained by reading the document, Underline extraction means for extracting as an upper underline; character line creation means for determining the size of a character based on the interval between the ruled lines in the line direction in the ruled line and creating a character line composed of the character; Registration means for registering the underline in character data constituting the character line based on the position of the character line created by the creation means and the position of the underline obtained by the underline extraction means, in units of the character data; An image processing apparatus comprising:
【請求項2】 前記文字行作成手段は、作成した文字行
の位置やその行の構造を表す行データを生成し、前記登
録手段は、前記文字行作成手段により得られた文字行の
行毎の行ピッチを所定の値に調整し、前記行データに登
録することを特徴とする請求項1記載の画像処理装置。
2. The character line creating means generates line data representing the position of the created character line and the structure of the line, and the registration means stores each character line obtained by the character line creating means for each line. 2. The image processing apparatus according to claim 1, wherein the line pitch of the image data is adjusted to a predetermined value and registered in the line data.
【請求項3】 前記行データは、前記文字行を構成する
文字データを有することを特徴とする請求項2記載の画
像処理装置。
3. The apparatus according to claim 2, wherein the line data includes character data constituting the character line.
【請求項4】 前記罫線抽出手段は、 前記原稿を複数の領域に分割して読み取る分割読み取り
手段と、 その分割読み取り手段により得られた分割画像データを
記憶する記憶手段と、 その記憶手段に記憶した分割画像データから罫線を抽出
する分割罫線抽出手段と、 その分割罫線抽出手段により得られた各分割罫線のう
ち、行方向に接続している罫線を接続する分割罫線合成
手段と、を備えることを特徴とする請求項1乃至請求項
3の何れかに記載の画像処理装置。
4. A ruled line extracting means for dividing and reading the document into a plurality of areas, reading means for storing divided image data obtained by the divided reading means, and storing in the storage means Divided ruled line extracting means for extracting ruled lines from the divided image data, and divided ruled line synthesizing means for connecting ruled lines connected in the row direction among the divided ruled lines obtained by the divided ruled line extracting means. The image processing apparatus according to claim 1, wherein:
【請求項5】 前記分割読み取り手段は、前記複数の領
域のうちのある領域を読み取った際、その領域の下端付
近に斜め線がある場合はその斜め線の部分を除外し、次
の読み取り領域に含めることを特徴とする請求項4記載
の画像処理装置。
5. When reading a certain area of the plurality of areas, if there is a diagonal line near the lower end of the area, the divided reading unit excludes the diagonal line part and reads the next reading area. The image processing apparatus according to claim 4, wherein the image processing apparatus includes:
【請求項6】 原稿を読み取ることにより得られた画像
データから、前記原稿に示された罫線を抽出する罫線抽
出工程と、 前記罫線における行方向の罫線と交差しない桁方向の罫
線を、前記原稿上の下線として抽出する下線抽出工程
と、 前記罫線における行方向の罫線の間隔に基づいて、文字
の大きさを決定し、その文字よるなる文字行を作成する
文字行作成工程と、 その文字行作成工程で作成した文字行の位置と、前記下
線抽出工程で得られた下線の位置とに基づいて、前記文
字行を構成する文字データに前記下線を、その文字デー
タ単位で登録する登録工程と、を備えたことを特徴とす
る画像処理方法。
6. A ruled line extracting step of extracting a ruled line shown in the document from image data obtained by reading the document, and forming a ruled line in the digit direction which does not intersect with a linewise ruled line in the ruled line. An underline extraction step of extracting as an upper underline, a character line creation step of determining the size of a character based on the interval between the ruled lines in the line direction in the ruled line, and creating a character line composed of the character, A registration step of registering the underline in character data constituting the character line based on the position of the character line created in the creation step and the position of the underline obtained in the underline extraction step, in units of the character data; An image processing method comprising:
【請求項7】 前記罫線抽出工程は、 前記原稿を複数の領域に分割して読み取る分割読み取り
工程と、 その分割読み取り工程により得られた分割画像データを
記憶する記憶工程と、 その記憶工程に記憶した分割画像データから罫線を抽出
する分割罫線抽出工程と、 その分割罫線抽出工程で得られた各分割罫線のうち、行
方向に接続している罫線を接続する分割罫線合成工程
と、を備えることを特徴とする請求項6記載の画像処理
方法。
7. The ruled line extraction step includes: a division reading step of dividing the original into a plurality of regions to read the document; a storage step of storing divided image data obtained by the division reading step; and a storage step of storing the divided image data. A dividing ruled line extracting step of extracting a ruled line from the divided image data, and a dividing ruled line combining step of connecting ruled lines connected in a row direction among the divided ruled lines obtained in the divided ruled line extracting step. 7. The image processing method according to claim 6, wherein:
【請求項8】 画像処理装置を制御するプログラムコー
ドを納めたコンピュータ可読メモリであって、原稿を読
み取ることにより得られた画像データから、前記原稿に
示された罫線を抽出する罫線抽出工程のコードと、 前記罫線における行方向の罫線と交差しない桁方向の罫
線を、前記原稿上の下線として抽出する下線抽出工程の
コードと、 前記罫線における行方向の罫線の間隔に基づいて、文字
の大きさを決定し、その文字よるなる文字行を作成する
文字行作成工程のコードと、 その文字行作成工程で作成した文字行の位置と、前記下
線抽出工程で得られた下線の位置とに基づいて、前記文
字行を構成する文字データに前記下線を、その文字デー
タ単位で登録する登録工程のコードと、を備えたことを
特徴とするコンピュータ可読メモリ。
8. A computer-readable memory containing a program code for controlling an image processing apparatus, wherein a code for a ruled line extracting step for extracting a ruled line indicated on the document from image data obtained by reading the document. A code for an underline extraction step of extracting a ruled line in the digit direction that does not intersect with a linewise ruled line in the ruled line as an underline on the document; and a character size based on the interval between the linewise ruled lines in the ruled line. Is determined, based on the code of the character line creation step of creating a character line consisting of the character, the position of the character line created in the character line creation step, and the position of the underline obtained in the underline extraction step A code for a registration step of registering the underline in character data constituting the character line in units of the character data.
JP8154117A 1996-06-14 1996-06-14 Image processor and image processing method Withdrawn JPH10829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8154117A JPH10829A (en) 1996-06-14 1996-06-14 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8154117A JPH10829A (en) 1996-06-14 1996-06-14 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JPH10829A true JPH10829A (en) 1998-01-06

Family

ID=15577302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8154117A Withdrawn JPH10829A (en) 1996-06-14 1996-06-14 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JPH10829A (en)

Similar Documents

Publication Publication Date Title
US5553217A (en) Document layout using tiling
CN102117269B (en) Apparatus and method for digitizing documents
US4538183A (en) Image editing apparatus
EP0629078B1 (en) Apparatus for processing and reproducing image information
JP2536966B2 (en) Text editing system
EP0690415B1 (en) Editing scanned document images using simple interpretations
EP0864987A2 (en) Document processing apparatus
US8339664B2 (en) Image processing method, image processing apparatus, and control method thereof
JP4232679B2 (en) Image forming apparatus and program
JP3083314B2 (en) Document processing method and apparatus
JPH0221024B2 (en)
US8749834B2 (en) Information processing apparatus that perform margin reduction depending on the column group structure, method for controlling same, and storage medium on which computer program has been recorded
US5088050A (en) Apparatus for preparing output data from input image data, using basic output-image unit pattern data
EP0415742B1 (en) Image processing apparatus
JP2000322417A (en) Device and method for filing image and storage medium
JPH10829A (en) Image processor and image processing method
JP4281236B2 (en) Image recognition apparatus, image recognition method, and computer-readable recording medium storing image recognition program
JPH0755572B2 (en) Printer
JP2000353233A (en) System and method for printing map data and recording medium where processing program thereof is recorded
KR100238814B1 (en) Data processing apparatus and method
JP5361315B2 (en) Information processing apparatus and information processing method
JPH0493275A (en) Image filing device
JP2006293970A (en) Image processor, image processing method and image processing program
JP2854344B2 (en) How to display mixed mode documents
JP2001086320A (en) Method for information processing and information processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030902