JPH10222585A - Ruled line processor and storage medium - Google Patents

Ruled line processor and storage medium

Info

Publication number
JPH10222585A
JPH10222585A JP9021640A JP2164097A JPH10222585A JP H10222585 A JPH10222585 A JP H10222585A JP 9021640 A JP9021640 A JP 9021640A JP 2164097 A JP2164097 A JP 2164097A JP H10222585 A JPH10222585 A JP H10222585A
Authority
JP
Japan
Prior art keywords
line
ruled line
character
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.)
Pending
Application number
JP9021640A
Other languages
Japanese (ja)
Inventor
Atsurou Tsuho
敦郎 津保
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP9021640A priority Critical patent/JPH10222585A/en
Publication of JPH10222585A publication Critical patent/JPH10222585A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To recognize the number of rows and columns of a table and the number of characters among ruled lines in the directions of the rows and columns, to decide the number of rows and columns in accordance with the maximum character number and to easily create a table document when a scanner reads and recognizes a table that is created by handwriting and creates a document. SOLUTION: A CPU 2 executes table original read processing, makes an image scanner 5 that is mounted on a carriage which mounts a print head of a printer 8 read a table that is handwritten on original paper, acquires/identifies a ruled line coordinate of the read table image, and after that, recognizes a maximum column number and a maximum row number of the table based on the maximum column number and a maximum row number of characters that are written in each block which is surrounded with row and column ruled lines of the table image. The ratio of the recognized maximum column number and maximum row number to a detected paper size is calculated, a character point number and column and row pitches in the table block are calculated based on the ratio, the ruled line coordinate of a new table is calculated, only ruled lines of the table are shown on a display device 7 and then, table and document edit processing is executed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、手書き入力された
表罫線を認識して所定書式に基づいて整形する罫線処理
装置及びその罫線処理プログラムを格納した記憶媒体に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a ruled line processing device for recognizing a handwritten input table ruled line and shaping it based on a predetermined format, and a storage medium storing the ruled line processing program.

【0002】[0002]

【従来の技術】近時、ワードプロセッサーでは印字ヘッ
ドを搭載したキャリッジ部分にCCD(Charge Coupled
Device )等から構成されたイメージスキャナヘッドを
搭載して、給紙部に載置された原稿の文書をイメージと
して読み取って、その文書内容を認識して、その認識し
た文書内容を編集文書として扱えるようにしたイメージ
スキャナ機能及び文書認識機能を備えたものが普及して
きている。
2. Description of the Related Art Recently, in a word processor, a charge-coupled device (CCD) is mounted on a carriage portion on which a print head is mounted.
Device), an image scanner head is configured to read an original document placed on a paper feed unit as an image, recognize the document content, and handle the recognized document content as an edited document. Devices provided with such an image scanner function and a document recognition function have become widespread.

【0003】このようにワードプロセッサーに搭載され
たイメージスキャナで読み取られる文書としては、例え
ば、所定サイズ(A4サイズ等)の用紙に印刷された罫
線で囲まれた表形式の文書を読み取り、その内容を認識
し、その内容を文書として作成する場合がある。また、
手書きで作成された罫線で囲まれた表形式の文書を読み
込んだ場合は、その手書きのイメージのままを読み込む
ため、表内の行桁ピッチには大きなゆれが残ったままで
あり、特にその表罫線の整形処理等は行われていなかっ
た。
As a document read by an image scanner mounted on a word processor as described above, for example, a document in a table format surrounded by ruled lines printed on paper of a predetermined size (A4 size or the like) is read, and the contents are read. Recognize and create the contents as a document. Also,
If you read a tabular document that is surrounded by ruled lines created by handwriting, the handwritten image will be read as it is, so there will be large fluctuations in the row column pitch in the table. Was not performed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の印字ヘッドを搭載したキャリッジ部分にイメ
ージスキャナヘッドを搭載し、イメージスキャナ機能及
び文書認識機能を備えたワードプロセッサーにあって
は、手書きで作成された罫線で囲まれた表形式の文書を
読み込んだ場合は、その手書きのイメージのままを読み
込むため、表内の行桁ピッチには大きなゆれが残ったま
まであり、特にその表罫線の整形処理等は行われていな
かったため、その認識した表に対して適切な行桁数を割
り当てることができず、文書の作成に移行し難いという
問題があった。
However, in a word processor having an image scanner function and a document recognition function in which an image scanner head is mounted on a carriage portion on which such a conventional print head is mounted, handwriting is performed by handwriting. When a table-format document that is surrounded by the ruled lines is read, the handwritten image is read as it is, so the row-column pitch in the table still has large fluctuations. And so on, the appropriate number of lines cannot be assigned to the recognized table, and there is a problem that it is difficult to shift to document creation.

【0005】本発明の課題は、手書きで作成された表を
イメージスキャナで読み取り認識して文書を作成する際
に、その表の行桁数をその行桁方向の罫線間にある文字
数を認識し、その最大の文字数に合わせて行数・桁数を
決定して、表文書の作成を容易にすることである。
An object of the present invention is to read a table created by handwriting with an image scanner and recognize the same, when creating a document, by recognizing the number of lines in the table by the number of characters between ruled lines in the line and column direction. The number of lines and the number of digits are determined in accordance with the maximum number of characters, thereby facilitating creation of a table document.

【0006】[0006]

【課題を解決するための手段】請求項1記載の発明は、
手書きの表罫線とその表罫線内の文字列とを認識する認
識手段と、その認識された表罫線の表ブロック毎に文字
列の最大行桁数を判別する判別手段と、出力サイズを入
力する入力手段と、前記判別された行桁数と前記入力さ
れた出力サイズに基づいて表ブロック毎の行桁ピッチを
求め、前記文字の最大行桁数と行桁ピッチにより新たな
表ブロック毎の表罫線を求める制御手段と、を具備し、
前記求められた表罫線に前記認識された表罫線を置き換
えるようにしたことを特徴としている。
According to the first aspect of the present invention,
Recognizing means for recognizing a handwritten table ruled line and a character string in the table ruled line, determining means for determining the maximum number of line digits of the character string for each table block of the recognized table ruled line, and inputting an output size An input means, a line-column pitch for each table block is obtained based on the determined number of line-columns and the input output size, and a new table for each table block is obtained based on the maximum number of line-columns and the line-column pitch of the character. Control means for obtaining a ruled line,
It is characterized in that the recognized table rule line is replaced with the determined table rule line.

【0007】この請求項1記載の発明の罫線処理装置に
よれば、手書きの表罫線とその表罫線内の文字列とを認
識手段で認識すると、その認識された表罫線の表ブロッ
ク毎に文字列の最大行桁数を判別手段で判別し、制御手
段により、この判別された行桁数と入力手段により入力
された出力サイズに基づいて表ブロック毎の行桁ピッチ
を求め、前記文字の最大行桁数と行桁ピッチにより新た
な表ブロック毎の表罫線を求め、前記求められた表罫線
に前記認識された表罫線を置き換えるようにしている。
According to the ruled line processing apparatus of the first aspect of the present invention, when a handwritten table ruled line and a character string in the table ruled line are recognized by the recognizing means, a character is set for each table block of the recognized table ruled line. The maximum number of rows and columns of the column is determined by the determination unit, and the control unit obtains the row and column pitch of each table block based on the determined number of rows and the output size input by the input unit. A table ruled line for each new table block is determined based on the number of line digits and the line column pitch, and the determined table ruled line is replaced with the recognized table ruled line.

【0008】したがって、桁ピッチが曖昧な手書きの表
原稿を読み取った場合に、必要な行桁数を表罫線として
認識/整形して、文書上に利用することが容易にでき
る。
[0008] Therefore, when a hand-drawn table document with an ambiguous digit pitch is read, the required number of line digits can be recognized / shaped as a table ruled line and easily used in a document.

【0009】[0009]

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

【0010】図1〜図11は、本発明の罫線処理装置及
び記憶媒体を適用したワードプロセッサーの一実施の形
態を示す図である。
FIGS. 1 to 11 are diagrams showing an embodiment of a word processor to which a ruled line processing device and a storage medium according to the present invention are applied.

【0011】まず、構成を説明する。First, the configuration will be described.

【0012】図1は、本実施の形態のワードプロセッサ
ー1の要部構成を示すブロック図である。この図1にお
いて、ワードプロセッサー1は、CPU2、入力装置
3、RAM4、イメージスキャナ5、用紙サイズ検出部
6、表示装置7、印刷装置8、記憶装置9及び記憶媒体
10により構成されており、記憶媒体10を除く各部は
バス11により接続されている。
FIG. 1 is a block diagram showing a main configuration of a word processor 1 according to the present embodiment. In FIG. 1, a word processor 1 includes a CPU 2, an input device 3, a RAM 4, an image scanner 5, a paper size detection unit 6, a display device 7, a printing device 8, a storage device 9, and a storage medium 10. Each part except 10 is connected by a bus 11.

【0013】CPU(Central Processing Unit )2
は、記憶装置9に記憶されている当該ワードプロセッサ
ー1に対応する各種アプリケーションプログラムの中か
ら指定されたアプリケーションプログラム、入力装置3
から入力される各種指示あるいはデータをRAM4内の
ワークメモリ4eに格納し、この入力指示及び入力デー
タに応じて記憶装置9内に格納したアプリケーションプ
ログラムに従って各種処理を実行し、その処理結果をR
AM4内のワークメモリ4eに格納するとともに、表示
装置7に表示する。そして、ワークメモリ4eに格納し
た処理結果を入力部3から入力指示される記憶装置9内
の保存先に保存する。
CPU (Central Processing Unit) 2
Is an application program designated from the various application programs corresponding to the word processor 1 stored in the storage device 9, and the input device 3.
Are stored in the work memory 4e in the RAM 4, and various processes are executed in accordance with the application programs stored in the storage device 9 in accordance with the input instructions and the input data.
It is stored in the work memory 4e in the AM 4 and displayed on the display device 7. Then, the processing result stored in the work memory 4e is stored in a storage destination in the storage device 9 which is instructed to be input from the input unit 3.

【0014】また、CPU2は、後述する表原稿読取処
理を実行し、印刷装置7の図示しない用紙載置位置にセ
ットされた読取対象の原稿用紙に手書きで書かれた表
を、印刷装置7の印字ヘッドを搭載するキャリッジに搭
載されたイメージスキャナ5により読み取らせ、その読
み取った表イメージの罫線座標を取得/識別した後、そ
の表イメージの行桁罫線で囲まれた各ブロック内に記入
された文字の最大桁数及び最大行数に基づいて、表の最
大桁数と最大行数を認識する。そして、CPU2は、そ
の認識した最大桁数と最大行数の検出した用紙サイズに
対する比率を算出し、その比率に基づいて表ブロック内
の文字ポイント数と行桁ピッチを求め、求めた文字ポイ
ント数と行桁ピッチから新たな表の罫線座標を求めて表
の罫線だけを表示装置7に表示して、その表内での文書
編集を可能とする編集処理へと移行する。
The CPU 2 executes a table original reading process described later, and writes a table written by hand on a document sheet to be read set at a sheet mounting position (not shown) of the printing device 7. After being read by the image scanner 5 mounted on the carriage on which the print head is mounted, and acquiring / identifying the ruled line coordinates of the read-out table image, it is written in each block surrounded by the line-column ruled line of the table image. Recognize the maximum number of digits and the maximum number of rows in a table based on the maximum number of digits and the maximum number of rows of characters. Then, the CPU 2 calculates the ratio of the recognized maximum number of digits and the maximum number of lines to the detected paper size, calculates the number of character points and the line column pitch in the table block based on the ratio, and calculates the calculated number of character points. Then, the coordinates of the ruled line of the new table are obtained from the row and column pitches, and only the ruled line of the table is displayed on the display device 7, and the process shifts to an editing process for enabling document editing in the table.

【0015】入力装置3は、文書編集処理や表原稿読取
処理に必要な各種キーとして、イメージリーダー5にセ
ットされる原稿の読み取り範囲を設定するカーソルキ
ー、拡大/縮小倍率を設定する数値キーや拡大/縮小を
指定する指定キー、作成したイメージデータを確定する
確定キー等を備え、そのキー入力操作に応じた指示信号
をCPU2に出力する。また、入力装置3には、図示し
ないがポインティングデバイスであるマウスも備えられ
ており、編集中のイメージデータの領域指定操作等をマ
ウス操作により行うことができる。
The input device 3 includes, as various keys necessary for document editing processing and front document reading processing, cursor keys for setting a reading range of a document set on the image reader 5, numeric keys for setting an enlargement / reduction ratio, and the like. A designation key for designating enlargement / reduction, a decision key for confirming the created image data, and the like are provided, and an instruction signal corresponding to the key input operation is output to the CPU 2. Although not shown, the input device 3 is also provided with a mouse as a pointing device, and can perform an area designation operation of image data being edited by mouse operation.

【0016】RAM(Random Access Memory)4は、C
PU2により文書編集処理あるいは表原稿読取処理が行
われる際に処理される文書データやイメージデータ等の
各種データを一時的に格納するメモリエリアを形成して
おり、このメモリエリアとしては、図2に示すイメージ
データメモリ4aと、桁数メモリ4bと、行数メモリ4
cと、文書メモリ4dと、ワークメモリ4eと、桁間カ
ウンタ4fと、行間カウンタ4gと、ポイントテーブル
4hと、桁数カウンタ4iと、行数カウンタ4jと、を
有する。
A RAM (Random Access Memory) 4 is a C
The PU2 forms a memory area for temporarily storing various data such as document data and image data to be processed when the document editing process or the front document reading process is performed. This memory area is as shown in FIG. Image data memory 4a, digit number memory 4b, and row number memory 4
c, document memory 4d, work memory 4e, digit counter 4f, line counter 4g, point table 4h, digit counter 4i, and line counter 4j.

【0017】イメージデータメモリ4aには、CPU2
により表原稿読取処理が行われる際に処理される表イメ
ージデータを格納し、桁数メモリ4bには、表原稿読取
処理に際して識別される表罫線ブロック内の桁間座標と
関連付けて最大文字桁数を格納し、行数メモリ4cに
は、表原稿読取処理に際して識別される表罫線ブロック
内の行間座標と関連付けて最大文字行数を格納する。そ
の桁数メモリ4bの記憶内容の具体例を図3(a)に、
その行数メモリ4cの記憶内容の具体例を図3(b)に
示す。
The image data memory 4a includes a CPU 2
The table memory 4b stores the table image data processed when the front document reading process is performed, and stores the maximum number of character digits in association with the inter-digit coordinates in the table ruled line block identified at the time of the front document reading process. And the maximum number of character lines is stored in the line number memory 4c in association with the line-to-line coordinates in the table ruled line block identified during the front document reading process. FIG. 3A shows a specific example of the storage contents of the digit number memory 4b.
FIG. 3B shows a specific example of the storage contents of the row number memory 4c.

【0018】また、文書メモリ4dには、CPU2によ
り文書編集処理が行われる際に処理される文書データを
格納し、ワークメモリ4eには、CPU2により文書編
集処理あるいは表原稿読取処理等が行われる際に処理さ
れる各種データを一時的に格納する。桁間カウンタ4f
には、CPU2により表原稿読取処理が行われる際に処
理される表イメージデータ中の表罫線ブロックの各ブロ
ックの桁間数のカウント値を格納し、行間カウンタ4g
には、CPU2により表原稿読取処理が行われる際に処
理される表イメージデータ中の表罫線ブロックの各ブロ
ックの御得間数のカウント値を格納する。
The document memory 4d stores document data to be processed when the CPU 2 performs the document editing process, and the work memory 4e performs the document editing process or the front document reading process by the CPU 2. Various data processed at the time are temporarily stored. Digit counter 4f
Stores a count value of the number of digits of each block of the table ruled line block in the table image data processed when the CPU 2 performs the table document reading process, and stores a line spacing counter 4g.
Stores the count value of the number of wins of each block of the table ruled line block in the table image data processed when the CPU 2 performs the table original reading process.

【0019】さらに、ポイントテーブル4hには、CP
U2により表原稿読取処理が行われる際に処理される表
イメージデータ中の表罫線ブロックから求める文字桁ピ
ッチと文字ポイント数を予め設定して格納しており、そ
の設定内容の具体例を図4に示す。桁数カウンタ4iに
は、CPU2により表原稿読取処理が行われる際に処理
される表イメージデータ中の行間ブロック内の文字行数
のカウント値を格納し、行数カウンタ4jには、CPU
2により表原稿読取処理が行われる際に処理される表イ
メージデータ中の桁間ブロック内の文字桁数のカウント
値を格納する。
Further, the point table 4h includes a CP
The character digit pitch and the number of character points obtained from the table ruled line block in the table image data processed when the front document reading process is performed by U2 are set and stored in advance. A specific example of the setting contents is shown in FIG. Shown in The digit number counter 4i stores the count value of the number of character lines in the line spacing block in the table image data processed when the CPU 2 performs the front document reading process.
2 stores the count value of the number of character digits in the inter-digit block in the table image data processed when the front document reading process is performed.

【0020】イメージスキャナ5は、CCD等のライン
イメージセンサにより構成され、印字装置8内の図示し
ない印字ヘッドが搭載されたキャリッジに搭載され、上
記CPU2により表原稿読取処理が実行された際に、印
刷装置8の印刷用紙載置位置にセットされた表原稿をラ
イン毎に走査して読み取って、その読み取ったライン毎
の表イメージデータをCPU2に転送する。
The image scanner 5 is constituted by a line image sensor such as a CCD, and is mounted on a carriage in the printing device 8 on which a print head (not shown) is mounted. The front document set at the printing paper placement position of the printing device 8 is scanned and read line by line, and the read table image data for each line is transferred to the CPU 2.

【0021】用紙サイズ検出部6は、印刷装置8の印刷
用紙載置位置にセットされた印刷用紙や表原稿の用紙サ
イズを検出し、その検出結果をCPU2に転送する。
The paper size detection unit 6 detects the size of the printing paper set at the printing paper mounting position of the printing device 8 or the size of the front document, and transfers the detection result to the CPU 2.

【0022】表示装置7は、CRT(Cathode Ray Tub
e)や液晶ディスプレイ等から構成され、上記CPU2
により実行される文書編集処理あるいは表原稿読取処理
中の文書データやイメージデータや入力装置3から入力
される入力データ等を表示する。印字装置6は、図示し
ない印字ヘッドが搭載されたキャリッジに上記イメージ
スキャナ5を搭載し、印刷用紙載置位置にセットされた
印刷用紙にCPU2により文書編集処理で作成された文
書データを印字し、また、CPU2により表原稿読取処
理が実行される際に印字ヘッドキャリッジを表原稿上を
走査して、イメージスキャナ5により表イメージを読み
取らせる。
The display device 7 is a CRT (Cathode Ray Tub).
e) and a liquid crystal display.
The document data, image data, input data input from the input device 3, and the like are displayed during the document editing process or the front document reading process executed by. The printing device 6 mounts the image scanner 5 on a carriage on which a print head (not shown) is mounted, and prints document data created by the document editing process by the CPU 2 on printing paper set at a printing paper mounting position. Further, when the front document reading process is executed by the CPU 2, the print head carriage scans over the front document and causes the image scanner 5 to read the front image.

【0023】記憶装置9は、プログラムやデータ等が予
め記憶されている記憶媒体10を有しており、この記憶
媒体10は磁気的、光学的記録媒体、若しくは半導体メ
モリで構成されている。この記憶媒体10は、記憶装置
9に固定的に設けたもの、若しくは着脱自在に装着する
ものであり、この記憶媒体10には、上記文書編集処理
プログラム、表原稿読取処理プログラム及び各種処理プ
ログラムで処理されたデータ等を記憶する。
The storage device 9 has a storage medium 10 in which programs, data and the like are stored in advance, and this storage medium 10 is constituted by a magnetic or optical recording medium or a semiconductor memory. The storage medium 10 is fixedly provided in the storage device 9 or is removably mounted. The storage medium 10 includes the above-described document editing processing program, front document reading processing program, and various processing programs. The processed data and the like are stored.

【0024】また、この記憶媒体10に記憶するプログ
ラム、データ等は、LANを介して接続された他の機器
から受信して記憶する構成にしてもよく、更に、LAN
等を介して接続された他の機器側に上記記憶媒体10を
備えた記憶装置9を設け、この記憶媒体10に記憶され
ているプログラム、データを通信回線を介して使用する
構成にしてもよい。
The program, data, and the like stored in the storage medium 10 may be configured to be received from another device connected via the LAN and stored.
A storage device 9 provided with the storage medium 10 may be provided on another device connected via the like, and a program and data stored in the storage medium 10 may be used via a communication line. .

【0025】次に、本実施の形態の動作を説明する。Next, the operation of this embodiment will be described.

【0026】上記CPU2により実行される表原稿読取
処理について図5に示すフローチャートに基づいて説明
する。
The front document reading process executed by the CPU 2 will be described with reference to the flowchart shown in FIG.

【0027】CPU2は、入力装置3からの入力指示に
より表原稿読取処理が指定されると、印刷装置7の印刷
用紙載置位置にセットされた表原稿をイメージスキャナ
5が搭載されたキャリッジをライン毎に走査させて表原
稿の読取処理を開始し(ステップS1)、その読み取っ
た表イメージデータを表示装置7に表示する(ステップ
S2)。
When the front document reading process is specified by an input instruction from the input device 3, the CPU 2 moves the front document set at the printing paper mounting position of the printing device 7 to the carriage on which the image scanner 5 is mounted by a line. Each time scanning is started, the reading process of the front document is started (step S1), and the read front image data is displayed on the display device 7 (step S2).

【0028】この読取処理される表原稿の具体例を図8
(a)に示す。この図8(a)に示す例では、A4サイ
ズの用紙に手書きの表が記入された表原稿の場合を示し
ており、そのA4用紙の横幅297mmのうち図中の内
枠280mmの範囲を読取範囲としてイメージスキャナ
5により表イメージが読み取られるものとする。なお、
図8(a)中の“出力最大桁数30桁”及び“表桁数1
5桁”については、後述する処理中において説明する。
FIG. 8 shows a specific example of the front document to be read.
(A). The example shown in FIG. 8A shows a case of a table original in which a handwritten table is written on A4 size paper, and a range of an inner frame 280 mm in the figure in the width of 297 mm of the A4 paper is read. It is assumed that a table image is read by the image scanner 5 as the range. In addition,
In FIG. 8A, “the maximum number of output digits is 30” and “the number of table digits is 1”.
The “five digits” will be described later in the processing.

【0029】そして、その読み取った表イメージから罫
線イメージを抽出し、その罫線イメージから罫線の座標
を取得する(ステップS3)。例えば、図9に示すよう
に、罫線で囲まれた罫線ブロック毎の座標を、桁方向の
座標を、、、として取得し、行方向の座標を
(ア)、(イ)、(ウ)として取得して、その桁座標及
び行座標を図3(a)、(b)に示した桁数メモリ4b
の“桁間欄”及び行数メモリ4cの“行間欄”に設定す
るものとする。次いで、その取得した桁座表及び行座標
に基づいて各罫線ブロックを認識する(ステップS
4)。
Then, a ruled line image is extracted from the read table image, and the coordinates of the ruled line are obtained from the ruled line image (step S3). For example, as shown in FIG. 9, the coordinates of each ruled line block surrounded by ruled lines are obtained as the coordinates in the digit direction as, and the coordinates in the row direction as (A), (A) and (C). The acquired digit coordinates and row coordinates are stored in the digit number memory 4b shown in FIGS. 3 (a) and 3 (b).
And "line spacing column" of the line number memory 4c. Next, each ruled line block is recognized based on the acquired digit table and row coordinates (step S).
4).

【0030】次いで、その認識した罫線ブロック内の文
字桁数を識別するブロック内桁数認識処理を実行する
(ステップS5)。このブロック内桁数認識処理につい
て図6に示すフローチャートに基づいて説明する。
Next, a process of recognizing the number of digits in the block for identifying the number of characters in the recognized ruled line block is executed (step S5). The process of recognizing the number of digits in a block will be described with reference to the flowchart shown in FIG.

【0031】図6において、まず、RAM4内の桁間カ
ウンタ4fに取得した桁座標のうち最初の桁座標をセ
ットし(ステップS51)、RAM4内の行数カウンタ
4jに“1”をセットする(ステップS52)。これら
の桁座標のセット及び行数カウンタ値1のセットによ
り、図9において桁座標で示す罫線ブロック内の1行
目が指定されたことになる。
In FIG. 6, first, the first digit coordinate among the acquired digit coordinates is set in the digit counter 4f in the RAM 4 (step S51), and "1" is set in the row number counter 4j in the RAM 4 (step S51). Step S52). The set of the digit coordinates and the set of the row number counter value 1 indicate that the first line in the ruled line block indicated by the digit coordinates in FIG. 9 is specified.

【0032】そして、その指定された1行目の桁方向の
文字桁数を識別し(ステップS53)、その識別した文
字桁数が桁座標の罫線ブロック内で最大文字桁数か否
かを判別する(ステップS54)。最大文字桁数である
場合は、その桁間カウンタ4fにセットした桁座標の値
と文字桁数の値とを関連付けて桁数メモリ4bに記憶
する(ステップS55)。また、最大文字桁数でない場
合、あるいはステップS55の処理を終了した後、その
指定した桁座標の罫線ブロック内の全行について文字
桁数の識別処理が終了したか否かを確認する(ステップ
S56)。全行について文字桁数の識別処理が終了して
いなければ、行間カウンタ4gをカウントアップ(+
1)し(ステップS57)、ステップS53に戻って次
の1行の桁方向の文字桁数を認識する。当該行の文字桁
数が桁座標の罫線ブロック内で最大文字桁数か否かを
判別する(ステップS54)。
Then, the number of character digits in the column direction of the designated first line is identified (step S53), and it is determined whether or not the identified number of character digits is the maximum number of character digits in the ruled line block of digit coordinates. (Step S54). If it is the maximum number of character digits, the value of the digit coordinate set in the inter-digit counter 4f and the value of the number of character digits are stored in the digit number memory 4b in association with each other (step S55). If the number of character digits is not the maximum, or after the processing of step S55 is completed, it is confirmed whether or not the identification processing of the number of character digits has been completed for all lines in the ruled line block at the designated digit coordinates (step S56). ). If the character digit number identification processing has not been completed for all lines, the line spacing counter 4g is counted up (+
1) (Step S57), and return to Step S53 to recognize the number of character digits in the digit direction of the next one line. It is determined whether or not the number of character digits of the line is the maximum number of character digits in the ruled line block of the digit coordinates (step S54).

【0033】以上のようにして、ステップS53からス
テップS57の処理を繰返し実行することにより、桁座
標の罫線ブロック内の最大文字桁数の行を認識して、
その認識結果である桁間座標と最大文字桁数との関係を
桁数メモリ4bに記憶する。
As described above, by repeatedly executing the processing from step S53 to step S57, the line having the maximum number of character digits in the ruled line block of the digit coordinates is recognized.
The relationship between the inter-digit coordinates and the maximum number of character digits, which is the recognition result, is stored in the digit number memory 4b.

【0034】そして、その最初に指定した桁座標の罫
線ブロック内での全行の文字桁数の認識処理が終了する
と、全桁間ブロックにおける文字桁数の認識処理が終了
したか否かを確認する(ステップS58)。全桁間ブロ
ックにおける文字桁数の認識処理が終了していなけれ
ば、桁間カウンタ4fをカウントアップ(+1)し、す
なわち、桁座標をからに変更指定し(ステップS5
9)、ステップS52に戻って行数カウンタ4jに再度
“1”をセットする。これらの桁座標のセット及び行
数カウンタ値1のセットにより、図9において桁座標
で示す罫線ブロック内の1行目が指定されたことにな
る。
When the process of recognizing the number of character digits of all lines in the ruled line block of the first designated digit coordinate is completed, it is confirmed whether or not the process of recognizing the number of character digits of the inter-digit block is completed. (Step S58). If the recognition processing of the number of character digits in all the inter-digit blocks has not been completed, the inter-digit counter 4f is counted up (+1), that is, the digit coordinates are changed to empty (step S5).
9) Returning to step S52, "1" is set again in the row number counter 4j. The set of the digit coordinates and the set of the row number counter value 1 indicate that the first line in the ruled line block indicated by the digit coordinates in FIG. 9 is specified.

【0035】そして、その指定された1行目の桁方向の
文字桁数を識別し(ステップS53)、その識別した文
字桁数が桁座標の罫線ブロック内で最大文字桁数か否
かを判別する(ステップS54)。最大文字桁数である
場合は、その桁間カウンタ4fにセットした桁座標の値
と文字桁数の値とを関連付けて桁数メモリ4bに記憶
する(ステップS55)。また、最大文字桁数でない場
合、あるいはステップS55の処理を終了した後、その
指定した桁座標の罫線ブロック内の全行について文字
桁数の識別処理が終了したか否かを確認する(ステップ
S56)。全行について文字桁数の識別処理が終了して
いなければ、行間カウンタ4gをカウントアップ(+
1)し(ステップS57)、ステップS53に戻って次
の1行の桁方向の文字桁数を認識する。当該行の文字桁
数が桁座標の罫線ブロック内で最大文字桁数か否かを
判別する(ステップS54)。
Then, the number of character digits in the column direction of the designated first line is identified (step S53), and it is determined whether or not the identified number of character digits is the maximum number of character digits in the ruled line block of digit coordinates. (Step S54). If it is the maximum number of character digits, the value of the digit coordinate set in the inter-digit counter 4f and the value of the number of character digits are stored in the digit number memory 4b in association with each other (step S55). If the number of character digits is not the maximum, or after the processing of step S55 is completed, it is confirmed whether or not the identification processing of the number of character digits has been completed for all lines in the ruled line block at the designated digit coordinates (step S56). ). If the character digit number identification processing has not been completed for all lines, the line spacing counter 4g is counted up (+
1) (Step S57), and return to Step S53 to recognize the number of character digits in the digit direction of the next one line. It is determined whether or not the number of character digits of the line is the maximum number of character digits in the ruled line block of the digit coordinates (step S54).

【0036】以上のようにして、ステップS53からス
テップS57の処理を繰返し実行することにより、桁座
標の罫線ブロック内の最大文字桁数の行を認識して、
その認識結果である桁間座標と最大文字桁数との関係を
桁数メモリ4bに記憶する。
As described above, by repeatedly executing the processing from step S53 to step S57, the line having the maximum number of character digits in the ruled line block of the digit coordinates is recognized.
The relationship between the inter-digit coordinates and the maximum number of character digits, which is the recognition result, is stored in the digit number memory 4b.

【0037】以上のようにして、ステップS52からス
テップS58の処理を繰返し実行することにより、図9
に示す桁座標及び桁座標の各罫線ブロック内の最大
文字桁数の行を認識して、その認識結果である桁間座標
と最大文字桁数との関係を桁数メモリ4bに記憶して、
本ブロック内桁数識別処理を終了する。
As described above, by repeatedly executing the processing from step S52 to step S58, FIG.
And the relationship between the inter-digit coordinate and the maximum number of character digits as a result of the recognition is stored in the digit number memory 4b.
The process for identifying the number of digits in the block is completed.

【0038】次に、図5のメインフローのステップS6
に戻って、認識した罫線ブロック内の文字行数を識別す
るブロック内行数認識処理を実行する。このブロック内
行数認識処理について図7に示すフローチャートに基づ
いて説明する。
Next, step S6 of the main flow of FIG.
Then, the number of lines in the block for identifying the number of character lines in the recognized ruled line block is executed. The process of recognizing the number of lines in a block will be described with reference to the flowchart shown in FIG.

【0039】図7において、まず、RAM4内の行間カ
ウンタ4gに取得した行座標のうち最初の行座標(ア)
をセットし(ステップS61)、RAM4内の桁数カウ
ンタ4iに“1”をセットする(ステップS62)。こ
れらの行座標(ア)のセット及び桁数カウンタ値1のセ
ットにより、図9において行座標(ア)で示す罫線ブロ
ック内の1桁目が指定されたことになる。
In FIG. 7, first, the first row coordinates (A) of the row coordinates acquired by the line spacing counter 4g in the RAM 4 are shown.
Is set (step S61), and "1" is set to the digit number counter 4i in the RAM 4 (step S62). By setting the row coordinates (A) and the digit number counter value 1, the first digit in the ruled line block indicated by the row coordinates (A) in FIG. 9 is designated.

【0040】そして、その指定された1桁目の行方向の
文字行数を識別し(ステップS63)、その識別した文
字行数が行座標(ア)の罫線ブロック内で最大文字行数
か否かを判別する(ステップS64)。最大文字行数で
ある場合は、その行間カウンタ4gにセットした行座標
の値(ア)と文字行数の値とを関連付けて行数メモリ4
cに記憶する(ステップS65)。また、最大文字行数
でない場合、あるいはステップS65の処理を終了した
後、その指定した行座標(ア)の罫線ブロック内の全桁
について文字行数の識別処理が終了したか否かを確認す
る(ステップS66)。全桁について文字行数の識別処
理が終了していなければ、桁間カウンタ4fをカウント
アップ(+1)し(ステップS67)、ステップS63
に戻って次の1桁の行方向の文字行数を認識する。当該
桁の文字行数が行座標(ア)の罫線ブロック内で最大文
字行数か否かを判別する(ステップS64)。
Then, the number of character lines in the line direction of the designated first digit is identified (step S63), and whether the identified number of character lines is the maximum number of character lines in the ruled line block having the line coordinates (A) is determined. Is determined (step S64). If it is the maximum number of character lines, the value of the line coordinates (a) set in the line spacing counter 4g and the value of the number of character lines are associated with each other,
c (step S65). If it is not the maximum number of character lines, or after ending the processing of step S65, it is confirmed whether or not the identification processing of the number of character lines has been completed for all the digits in the ruled line block at the designated line coordinates (A). (Step S66). If the character line number identification process has not been completed for all digits, the digit counter 4f is counted up (+1) (step S67), and step S63 is performed.
To recognize the number of character lines in the next one-digit line direction. It is determined whether or not the number of character lines of the digit is the maximum number of character lines in the ruled line block having the line coordinates (A) (step S64).

【0041】以上のようにして、ステップS63からス
テップS67の処理を繰返し実行することにより、行座
標(ア)の罫線ブロック内の最大文字行数の桁を認識し
て、その認識結果である行間座標と最大文字行数との関
係を行数メモリ4cに記憶する。
As described above, by repeatedly executing the processing from step S63 to step S67, the digits of the maximum number of character lines in the ruled line block at the line coordinates (A) are recognized, and the line spacing as the recognition result is obtained. The relationship between the coordinates and the maximum number of character lines is stored in the line number memory 4c.

【0042】そして、その最初に指定した行座標(ア)
の罫線ブロック内での全桁の文字行数の認識処理が終了
すると、全行間ブロックにおける文字行数の認識処理が
終了したか否かを確認する(ステップS68)。全行間
ブロックにおける文字行数の認識処理が終了していなけ
れば、行間カウンタ4gをカウントアップ(+1)し、
すなわち、行座標を(ア)から(イ)に変更指定し(ス
テップS69)、ステップS62に戻って桁数カウンタ
4fに再度“1”をセットする。これらの行座標(イ)
のセット及び桁数カウンタ値1のセットにより、図9に
おいて行座標(イ)で示す罫線ブロック内の1桁目が指
定されたことになる。
Then, the first designated row coordinate (A)
When the process of recognizing the number of character lines of all digits in the ruled line block is completed, it is checked whether the process of recognizing the number of character lines in the inter-line block has been completed (step S68). If the process of recognizing the number of character lines in all the interline blocks has not been completed, the line interval counter 4g is counted up (+1), and
That is, the line coordinates are changed and designated from (A) to (A) (step S69), and the process returns to step S62 to set "1" to the digit number counter 4f again. These row coordinates (b)
And the setting of the digit number counter value 1, the first digit in the ruled line block indicated by the row coordinate (a) in FIG. 9 is designated.

【0043】そして、その指定された1桁目の行方向の
文字行数を識別し(ステップS63)、その識別した文
字行数が行座標(イ)の罫線ブロック内で最大文字行数
か否かを判別する(ステップS64)。最大文字行数で
ある場合は、その行間カウンタ4gにセットした行座標
の値(イ)と文字行数の値とを関連付けて行数メモリ4
cに記憶する(ステップS65)。また、最大文字行数
でない場合、あるいはステップS65の処理を終了した
後、その指定した行座標(イ)の罫線ブロック内の全桁
について文字行数の識別処理が終了したか否かを確認す
る(ステップS66)。全桁について文字行数の識別処
理が終了していなければ、桁間カウンタ4fをカウント
アップ(+1)し(ステップS67)、ステップS63
に戻って次の1行の桁方向の文字行数を認識する。当該
桁の文字行数が行座標(イ)の罫線ブロック内で最大文
字行数か否かを判別する(ステップS64)。
Then, the number of character lines in the line direction of the designated first digit is identified (step S63), and whether or not the identified number of character lines is the maximum number of character lines in the ruled line block at the line coordinates (a) is determined. Is determined (step S64). If it is the maximum number of character lines, the line number memory 4 associates the line coordinate value (a) set in the line spacing counter 4g with the character line number value.
c (step S65). If it is not the maximum number of character lines, or after ending the processing of step S65, it is confirmed whether or not the identification processing of the number of character lines has been completed for all the digits in the ruled line block at the specified line coordinates (A). (Step S66). If the identification processing of the number of character lines has not been completed for all digits, the digit counter 4f is counted up (+1) (step S67), and step S63 is performed.
And the number of character lines in the column direction of the next one line is recognized. It is determined whether or not the number of character lines of the digit is the maximum number of character lines in the ruled line block at the line coordinates (a) (step S64).

【0044】以上のようにして、ステップS63からス
テップS67の処理を繰返し実行することにより、行座
標(イ)の罫線ブロック内の最大文字行数の桁を認識し
て、その認識結果である行間座標と最大文字行数との関
係を行数メモリ4cに記憶する。
As described above, by repeatedly executing the processing from step S63 to step S67, the digit of the maximum number of character lines in the ruled line block of the line coordinates (A) is recognized, and the line spacing as the recognition result is obtained. The relationship between the coordinates and the maximum number of character lines is stored in the line number memory 4c.

【0045】以上のようにして、ステップS62からス
テップS68の処理を繰返し実行することにより、図9
に示す行座標(ウ)の各罫線ブロック内の最大文字行数
の桁を認識して、その認識結果である行間座標と最大文
字行数との関係を行数メモリ4cに記憶して、本ブロッ
ク内行数識別処理を終了する。
As described above, by repeatedly executing the processing from step S62 to step S68, FIG.
The maximum number of character lines in each ruled line block at the line coordinates (c) shown in (1) is recognized, and the relationship between the line coordinates and the maximum number of character lines as the recognition result is stored in the line number memory 4c. The process of identifying the number of lines in a block is completed.

【0046】次に、図5のメインフローのステップS7
に戻って、用紙サイズ検出部6により検出される表原稿
の用紙サイズ、図8(a)の例では用紙サイズ“A4”
を検出し、図8(a)の用紙サイズA4の読取範囲28
0mmを検出する。そして、その検出した用紙サイズA
4の読取範囲280mmに対する表示中の表イメージの
比率を算出する(ステップS8)。例えば、読取範囲2
80mmに対して表イメージのサイズが140mmであ
ったとすると、比率は“2:1”となる。
Next, step S7 of the main flow of FIG.
Returning to FIG. 8, the sheet size of the front document detected by the sheet size detection unit 6, the sheet size “A4” in the example of FIG.
Is detected, and the reading range 28 of the paper size A4 in FIG.
0 mm is detected. Then, the detected paper size A
Then, the ratio of the displayed table image to the reading range 280 mm of No. 4 is calculated (step S8). For example, reading range 2
Assuming that the size of the front image is 140 mm with respect to 80 mm, the ratio is “2: 1”.

【0047】次いで、この比率“2:1”から表部分の
桁数から用紙全体の桁数を算出する(ステップS9)。
すなわち、上記ステップS5のブロック内桁数識別処理
により桁数メモリ4bに記憶した各桁座標ブロック〜
内の各最大文字桁数を合計した桁数を表桁数として、
この表最大桁数が図8(a)に示すように“15桁”で
あったとすると、用紙の出力最大桁数は“15桁”×2
で“30桁”となる。
Next, from this ratio "2: 1", the number of digits of the entire sheet is calculated from the number of digits of the table portion (step S9).
That is, each digit coordinate block stored in the digit number memory 4b by the digit number identification process in the block in the step S5.
Is the total number of characters in the
Assuming that the maximum number of digits in the table is “15 digits” as shown in FIG. 8A, the maximum number of digits of the paper output is “15 digits” × 2.
Becomes "30 digits".

【0048】次いで、表示中の手書き表イメージ中の桁
座標〜及び行座標(ア)〜(ウ)で指定される各罫
線ブロック内に記入されている文書内の全行桁数を識別
し(ステップS10)、ステップS7で検出された用紙
サイズ(読取範囲280mm)と、手書きの文字ポイン
ト数及びステップS10で認識した全文字行桁数により
文字間の行桁ピッチを求める(ステップS11)。図8
(a)に示す表原稿の例では、表サイズが“140m
m”で表最大桁数が“15桁”であるため、文字間の文
字桁ピッチは、“140mm÷15桁=9.3mm”と
なる。
Next, the number of digits in all the lines in the document written in each ruled line block designated by the column coordinates and line coordinates (A) to (C) in the displayed handwritten table image is identified ( In step S10, the line-to-line pitch between characters is determined from the paper size (reading range 280 mm) detected in step S7, the number of handwritten character points, and the total number of character line digits recognized in step S10 (step S11). FIG.
In the example of the table original shown in (a), the table size is “140 m”.
Since the maximum number of digits in the table is “15” for “m”, the character digit pitch between characters is “140 mm ÷ 15 digits = 9.3 mm”.

【0049】この求めた文字桁ピッチ“9.3”から図
4に示したポイントテーブル4hを参照して、桁ピッチ
に最適な文字ポイント“22”を取得する(ステップS
12)。このようにして求めた文字の行桁ピッチと、上
記ステップS10で識別した表示中の手書き表イメージ
中の桁座標〜及び行座標(ア)〜(ウ)で指定され
る各罫線ブロック内の文字行桁数と、により新たな罫線
座標(桁間、行間)を求める(ステップS13)。すな
わち、表示中の手書き表イメージの罫線座標を整形する
ための罫線座標(桁間、行間)を、ステップS10で識
別した各罫線ブロック内の文字行桁数、ステップS11
で求めた文字行桁ピッチ及びステップS12で取得した
文字ポイントに基づいて、図10に示すように、新たな
表の外枠罫線及び桁間、行間罫線座標(X,Y)、(X
1 ,Y)、〜(X3 ,Y)、(X,Y1 )、〜(X,Y
2 )を求める。
With reference to the point table 4h shown in FIG. 4 from the obtained character digit pitch "9.3", an optimum character point "22" for the digit pitch is obtained (step S).
12). The line digit pitch of the character obtained in this manner, the character coordinates in the displayed handwritten table image identified in step S10 and the characters in each ruled line block designated by the line coordinates (A) to (C) New ruled line coordinates (between digits and between lines) are obtained from the number of line digits (step S13). That is, the ruled line coordinates (between digits and lines) for shaping the ruled line coordinates of the displayed handwritten table image are determined by the number of character lines in each ruled line block identified in step S10, and step S11.
As shown in FIG. 10, based on the character line digit pitch obtained in step S12 and the character points acquired in step S12, the outer frame ruled line and digit space, line ruled line coordinates (X, Y), (X
1, Y), ~ (X3, Y), (X, Y1), ~ (X, Y
2) Ask for.

【0050】そして、現在表示中の表原稿から読み取っ
た表イメージデータに変えて、新たに求めた桁間、行間
座標に基づく表の罫線だけを図8(b)に示すように表
示する(ステップS14)。すなわち、手書きで罫線ブ
ロック内に書かれていた文字は消去して罫線枠だけを表
示装置7に表示する。次いで、処理モードを文書・表の
編集モードに自動的に切り換えて(ステップS15)、
新たに整形表示した表内における文書データの入力を可
能とし、新たに表示した表データだけをRAM4内の文
書メモリ4dに記憶する(ステップS16)。
Then, instead of the table image data read from the currently displayed table document, only the ruled lines of the table based on the newly obtained digit and row coordinates are displayed as shown in FIG. 8B (step). S14). That is, characters written in the ruled line block by handwriting are deleted, and only the ruled line frame is displayed on the display device 7. Next, the processing mode is automatically switched to the document / table editing mode (step S15),
The input of the document data in the newly formatted table is enabled, and only the newly displayed table data is stored in the document memory 4d in the RAM 4 (step S16).

【0051】そして、編集モードにおいて、表示中の表
内に文書データの入力や表の編集指示が入力されると、
その各入力指示に従って編集処理を実行し(ステップS
17)、編集処理の終了指示を確認して(ステップS1
8)、その編集データに名前を付けて文書メモリ4dに
記憶して(ステップS19)、本表原稿読取処理を終了
する。
In the editing mode, when input of document data or an instruction to edit the table is input into the displayed table,
The editing process is executed according to each input instruction (step S
17), and confirms the end instruction of the editing process (step S1)
8) The edited data is given a name and stored in the document memory 4d (step S19), and the main-table original reading process ends.

【0052】以上のように、本実施の形態のワードプロ
セッサー1では、CPU2は表原稿読取処理において読
取対象の原稿用紙に手書きで書かれた表を、印刷装置7
の印字ヘッドを搭載するキャリッジに搭載されたイメー
ジスキャナ5により読み取らせ、その読み取った表イメ
ージの罫線座標を取得/識別した後、その表イメージの
行桁罫線で囲まれた各ブロック内に記入された文字の最
大桁数及び最大行数に基づいて、表の最大桁数と最大行
数を認識する。そして、CPU2は、その認識した最大
桁数と最大行数の検出した用紙サイズに対する比率を算
出し、その比率に基づいて表ブロック内の文字ポイント
数と行桁ピッチを求め、求めた文字ポイント数と行桁ピ
ッチから新たな表の罫線座標を求めて表の罫線だけを表
示装置7に表示して、その表内での文書編集を可能とす
る編集処理へと移行するようにしたため、表編集処理へ
移行するための操作負担を省略して、作業性を向上させ
ることができる。
As described above, in the word processor 1 of the present embodiment, the CPU 2 prints the table written by hand on the document sheet to be read in the front document reading process.
Is read by an image scanner 5 mounted on a carriage having a print head, and the coordinates of the ruled lines of the read table image are obtained / identified, and then written in each block surrounded by the line and column ruled lines of the table image. The maximum number of digits and the maximum number of lines of the table are recognized based on the maximum number of digits and the maximum number of lines of the character. Then, the CPU 2 calculates the ratio of the recognized maximum number of digits and the maximum number of lines to the detected paper size, calculates the number of character points and the line column pitch in the table block based on the ratio, and calculates the calculated number of character points. Since the coordinates of the ruled line of the new table are determined from the row and column pitches, only the ruled line of the table is displayed on the display device 7, and the process shifts to an editing process in which a document can be edited in the table. The operability can be improved by omitting the operation burden for shifting to the processing.

【0053】したがって、イメージスキャナを搭載した
ワードプロセッサー1において、行桁ピッチが曖昧な手
書きの表原稿を読み取った場合に、必要な行桁数を表罫
線として認識/整形して、文書上に利用することが容易
にできる。また、イメージスキャナを搭載したワードプ
ロセッサーにおいて、手書き表原稿の読取及びイメージ
整形機能を充実させて、表文書の作成を容易にすること
ができ、手書き帳票等を読み取って利用することを容易
にすることができる。その結果、ワードプロセッサーの
表編集処理機能の充実を図ることができ、利用性を向上
させることができる。
Therefore, in a word processor 1 equipped with an image scanner, when a handwritten table document having an unclear line-digit pitch is read, the required number of line digits is recognized / shaped as a ruled line and used in a document. Can be done easily. Further, in a word processor equipped with an image scanner, a function of reading a handwritten table original and an image shaping function can be enhanced to facilitate creation of a table document, and to facilitate reading and using a handwritten form. Can be. As a result, the table editing function of the word processor can be enhanced, and the usability can be improved.

【0054】なお、上記図5に示した表原稿読取処理で
は、手書き文書は全て消去して、表の罫線のみを新たに
表示して編集処理への移行を容易にした場合を説明した
が、図5中の“A”で示す部分に図11に示すフローチ
ャートを追加することにより手書き表と手書きの文字を
記憶させることも可能となる。
In the front document reading process shown in FIG. 5, a case has been described in which all handwritten documents are deleted and only the ruled lines of the table are newly displayed to facilitate the transition to the editing process. By adding the flowchart shown in FIG. 11 to the portion indicated by "A" in FIG. 5, it becomes possible to store a handwritten table and handwritten characters.

【0055】すなわち、図11に示す手書き文字認識処
理では、表示中の表イメージ中の手書き文字を認識し、
その認識した文字を文字コードに変換して、認識した各
文字コードと表中の対応する罫線座標とを対応付けて記
憶する(ステップS101)。次いで、この変換した各
文字コードを表中に表示する際には、その文字コードの
配置位置と文字ポイントと行桁ピッチに基づいて表内に
表示するが、各対応付けて記憶した罫線座標に基づいて
先に罫線を表示し、文字コードを対応する配置位置に表
示する(ステップS102)。
That is, in the handwritten character recognition process shown in FIG. 11, handwritten characters in the displayed table image are recognized.
The recognized characters are converted into character codes, and the recognized character codes are stored in association with the corresponding ruled line coordinates in the table (step S101). Next, when each of the converted character codes is displayed in the table, it is displayed in the table based on the arrangement position of the character code, the character point, and the line column pitch. First, the ruled line is displayed based on the character code, and the character code is displayed at the corresponding arrangement position (step S102).

【0056】以上の2つのステップ処理を追加すること
により、表中の手書き文字の認識/整形した表中へ表示
することが可能となり、編集処理に移行した後の文字入
力の手間を省略することができる。
By adding the above two steps, the handwritten characters in the table can be recognized / displayed in the formatted table, and the trouble of inputting the characters after the process shifts to the editing process can be omitted. Can be.

【0057】また、上記実施の形態では、ワードプロセ
ッサー1に本発明を適用した場合を説明したが、イメー
ジスキャナを別途設けたシステム構成に対しても本発明
は適用可能である。
In the above-described embodiment, the case where the present invention is applied to the word processor 1 has been described. However, the present invention can be applied to a system configuration in which an image scanner is separately provided.

【0058】また、上記表原稿読取処理では、読取対象
の表原稿サイズを“A4”として説明したが、その他の
用紙サイズの表原稿も処理可能であることは勿論であ
り、読取対象として制限されるとすれば、イメージスキ
ャナの読み取り可能範囲にのみ制限される。
In the above-described front document reading process, the size of the front document to be read has been described as "A4". However, it is needless to say that a front document of another paper size can be processed, and that the size of the document to be read is limited. If so, it is limited only to the readable range of the image scanner.

【0059】[0059]

【発明の効果】請求項1記載の発明の罫線処理装置によ
れば、桁ピッチが曖昧な手書きの表原稿を読み取った場
合に、必要な行桁数を表罫線として認識/整形して、文
書上に利用することが容易にできる。
According to the ruled line processing apparatus of the first aspect of the present invention, when a handwritten table document having an unclear digit pitch is read, the required number of line digits is recognized / shaped as a table ruled line, and the document is rewritten. Can be easily used on top.

【0060】請求項2記載の発明の罫線処理装置によれ
ば、前記求められた表罫線に前記認識された表罫線を置
き換える場合、当該表罫線内のイメージを消去するよう
にしたため、その表に対する文書入力処理への移行を容
易にすることができる。
According to the ruled line processing apparatus of the present invention, when replacing the recognized table ruled line with the determined table ruled line, the image in the table ruled line is erased. The transition to the document input process can be facilitated.

【0061】請求項3記載の発明の罫線処理装置によれ
ば、前記表罫線内のイメージを消去した後、当該表罫線
内に文字等の入力を行える編集処理に移行するようにし
ため、表編集処理へ移行するための操作負担を省略し
て、作業性を向上させることができる。
According to the ruled line processing apparatus of the present invention, after erasing the image in the table ruled line, the process shifts to an editing process in which characters and the like can be entered in the table ruled line. The operability can be improved by omitting the operation burden for shifting to the processing.

【0062】請求項4記載の発明の罫線処理装置によれ
ば、前記求められた表罫線に前記認識された表罫線を置
き換える場合、当該表罫線内のイメージを再配置するよ
うにしたため、編集処理に移行した後の文字入力の手間
を省略することができ、作業性を向上させることができ
る。
According to the ruled line processing apparatus of the present invention, when the recognized table ruled line is replaced with the determined table ruled line, the image in the table ruled line is rearranged. Can save the trouble of character input after shifting to, and can improve workability.

【0063】請求項5記載の発明の記憶媒体によれば、
桁ピッチが曖昧な手書きの表原稿を読み取った場合に、
必要な行桁数を表罫線として認識/整形して、文書上に
利用することが容易にするプログラムをコンピュータで
実行することができる。
According to the storage medium of the invention described in claim 5,
When reading a handwritten front manuscript with an ambiguous digit pitch,
A computer can execute a program that recognizes / shapes the required number of line digits as a ruled line and makes it easy to use on a document.

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

【図1】本発明の罫線処理装置及び記憶媒体を適用した
ワードプロセッサーの要部構成を示すブロック図。
FIG. 1 is a block diagram showing a main configuration of a word processor to which a ruled line processing device and a storage medium of the present invention are applied.

【図2】図1のRAM4内のメモリ構成を示す図。FIG. 2 is a diagram showing a memory configuration in a RAM 4 of FIG. 1;

【図3】図2の桁数メモリ4bの構成(同図(a))及
び図2の行数メモリ4cの構成(同図(b))を示す
図。
FIG. 3 is a diagram showing a configuration of a digit number memory 4b of FIG. 2 (FIG. 3A) and a configuration of a row number memory 4c of FIG. 2 (FIG. 2B).

【図4】図2のポイントテーブル4hの構成を示す図。FIG. 4 is a diagram showing a configuration of a point table 4h in FIG. 2;

【図5】図1のCPU2により実行される表原稿読取処
理のフローチャート。
FIG. 5 is a flowchart of a front document reading process executed by a CPU 2 of FIG. 1;

【図6】図5の表原稿読取処理内において実行されるブ
ロック内桁数識別処理のフローチャート。
FIG. 6 is a flowchart of a process for identifying the number of digits in a block, which is executed in the front document reading process of FIG. 5;

【図7】図5の表原稿読取処理内において実行されるブ
ロック内行数識別処理のフローチャート。
FIG. 7 is a flowchart of a line number identification process in a block executed in the front document reading process of FIG. 5;

【図8】図5の表原稿読取処理において読み取られる手
書きの表が記入された表原稿の具体例(同図(a))
と、その表原稿の表イメージの罫線枠を整形した例(同
図(b))と、を示す図。
FIG. 8 is a specific example of a front manuscript in which a handwritten table to be read in the front manuscript reading process of FIG. 5 is written (FIG. 8A).
FIG. 3 is a diagram showing an example (FIG. 3B) in which a ruled line frame of a table image of the front document is shaped.

【図9】図5の表原稿読取処理において取得される表イ
メージの桁座標及び行座標の具体例を示す図。
FIG. 9 is a diagram showing a specific example of digit coordinates and row coordinates of a table image acquired in the table document reading process of FIG. 5;

【図10】図5の表原稿読取処理において手書き表イメ
ージの罫線座標データが整形された新たな罫線座標が設
定された状態を示す図。
FIG. 10 is a diagram showing a state where new ruled line coordinates obtained by shaping ruled line coordinate data of a handwritten table image are set in the table original reading process of FIG. 5;

【図11】図5の表原稿読取処理において手書き文字を
認識して表内に表示するために追加する手書き文字認識
処理のフローチャート。
FIG. 11 is a flowchart of a handwritten character recognition process added in order to recognize a handwritten character and display it in the table in the front document reading process of FIG. 5;

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

1 ワードプロセッサー 2 CPU 3 入力装置 4 RAM 4a イメージデータメモリ 4b 桁数メモリ 4c 行数メモリ 4d 文書メモリ 4e ワークメモリ 4f 桁間カウンタ 4g 行間カウンタ 4h ポイントテーブル 4i 桁数カウンタ 4j 行数カウンタ 5 イメージスキャナ 6 用紙サイズ検出部 7 表示装置 8 印刷装置 9 記憶装置 10 記憶媒体 11 バス 1 Word Processor 2 CPU 3 Input Device 4 RAM 4a Image Data Memory 4b Digit Number Memory 4c Line Number Memory 4d Document Memory 4e Work Memory 4f Digit Counter 4g Line Counter 4h Point Table 4i Digit Counter 4j Line Counter 5 Image Scanner 6 Paper Size detector 7 Display device 8 Printing device 9 Storage device 10 Storage medium 11 Bus

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】手書きの表罫線とその表罫線内の文字列と
を認識する認識手段と、 その認識された表罫線の表ブロック毎に文字列の最大行
桁数を判別する判別手段と、 出力サイズを入力する入力手段と、 前記判別された行桁数と前記入力された出力サイズに基
づいて表ブロック毎の行桁ピッチを求め、前記文字の最
大行桁数と行桁ピッチにより新たな表ブロック毎の表罫
線を求める制御手段と、 を具備し、前記求められた表罫線に前記認識された表罫
線を置き換えるようにしたことを特徴とする罫線処理装
置。
1. A recognizing means for recognizing a handwritten table ruled line and a character string in the table ruled line, a discriminating means for discriminating the maximum number of line digits of the character string for each table block of the recognized table ruled line, An input unit for inputting an output size, a line-column pitch for each table block is obtained based on the determined line-column number and the input output size, and a new line-column pitch and a new line-column pitch for the character are obtained. Control means for obtaining table ruled lines for each table block, wherein the recognized table ruled lines are replaced with the determined table ruled lines.
【請求項2】前記求められた表罫線に前記認識された表
罫線を置き換える場合、当該表罫線内のイメージを消去
するようにしたことを特徴とする請求項1記載の罫線処
理装置。
2. The ruled line processing device according to claim 1, wherein, when the recognized table ruled line is replaced with the determined table ruled line, an image in the table ruled line is erased.
【請求項3】前記表罫線内のイメージを消去した後、当
該表罫線内に文字等の入力を行える編集処理に移行する
ようにしたことを特徴とする請求項2記載の罫線処理装
置。
3. The ruled line processing device according to claim 2, wherein, after erasing the image in the table ruled line, the process shifts to an editing process for inputting characters and the like in the table ruled line.
【請求項4】前記求められた表罫線に前記認識された表
罫線を置き換える場合、当該表罫線内のイメージを再配
置するようにしたことを特徴とする請求項1記載の罫線
処理装置。
4. The ruled line processing apparatus according to claim 1, wherein, when replacing the recognized table ruled line with the determined table ruled line, an image in the table ruled line is rearranged.
【請求項5】コンピュータが実行可能なプログラムを格
納した記憶媒体であって、 その認識された表罫線の表ブロック毎に文字列の最大行
桁数を判別させるためのコンピュータが実行可能なプロ
グラムコードと、 前記判別された行桁数と入力された出力サイズに基づい
て表ブロック毎の行桁ピッチを求め、前記文字の最大行
桁数と行桁ピッチにより新たな表ブロック毎の表罫線を
求めさせるためのコンピュータが実行可能なプログラム
コードと、 前記求められた表罫線に前記認識された表罫線を置き換
えさせるためのコンピュータが実行可能なプログラムコ
ードと、 を含むプログラムを格納したことを特徴とする記憶媒
体。
5. A storage medium storing a computer-executable program, wherein the computer-executable program code for determining the maximum number of lines in a character string for each table block of the recognized table ruled line. And determining the line-column pitch for each table block based on the determined number of line-columns and the input output size, and calculating a new ruled line for each table block based on the maximum number of line-digits and the line-column pitch of the character. And a computer-executable program code for causing the determined table rule line to replace the recognized table rule line. Storage medium.
JP9021640A 1997-02-04 1997-02-04 Ruled line processor and storage medium Pending JPH10222585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9021640A JPH10222585A (en) 1997-02-04 1997-02-04 Ruled line processor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9021640A JPH10222585A (en) 1997-02-04 1997-02-04 Ruled line processor and storage medium

Publications (1)

Publication Number Publication Date
JPH10222585A true JPH10222585A (en) 1998-08-21

Family

ID=12060674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9021640A Pending JPH10222585A (en) 1997-02-04 1997-02-04 Ruled line processor and storage medium

Country Status (1)

Country Link
JP (1) JPH10222585A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015033809A (en) * 2013-08-09 2015-02-19 株式会社イシダ Label printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015033809A (en) * 2013-08-09 2015-02-19 株式会社イシダ Label printing device

Similar Documents

Publication Publication Date Title
EP0081767B1 (en) Character and image processing apparatus
JP4945372B2 (en) Multi-function input / output device and control method thereof, multi-function input / output device control program, and recording medium
JPH0535938A (en) Picture processor
JP3795238B2 (en) Document image processing apparatus and document image processing method
JPH0221024B2 (en)
JPH0447351B2 (en)
JPH10222585A (en) Ruled line processor and storage medium
JP2000322417A (en) Device and method for filing image and storage medium
JP3951492B2 (en) Image processing device
JPS6224834B2 (en)
JP2635312B2 (en) Image processing device
JPH09204422A (en) Read data processor
JPH0346081A (en) On-line hand-written character input method
JPS5887616A (en) Managing system for ruled data in word processor
JP2539395B2 (en) Information processing device
JP3084041B2 (en) Character processor
JPH042987B2 (en)
JPH0661112B2 (en) Pattern recognition method
JPH04288691A (en) Character recognition device
JPH04321376A (en) Picture processing unit
JP2909072B2 (en) Document processing method and apparatus
JP2610180B2 (en) Facsimile machine
JPH0762859B2 (en) Character pattern recognition and correction device
JP2595399B2 (en) Document processing method
JPH08185470A (en) Document reader