JPH04299761A - Table preparing device - Google Patents

Table preparing device

Info

Publication number
JPH04299761A
JPH04299761A JP3064814A JP6481491A JPH04299761A JP H04299761 A JPH04299761 A JP H04299761A JP 3064814 A JP3064814 A JP 3064814A JP 6481491 A JP6481491 A JP 6481491A JP H04299761 A JPH04299761 A JP H04299761A
Authority
JP
Japan
Prior art keywords
line segment
line
virtual frame
segment data
frame
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.)
Granted
Application number
JP3064814A
Other languages
Japanese (ja)
Other versions
JP3326187B2 (en
Inventor
Hideto Yamamoto
英人 山本
Masayoshi Okamoto
正義 岡本
Takatoshi Yoshikawa
隆敏 吉川
Hiroshi Horii
洋 堀井
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP06481491A priority Critical patent/JP3326187B2/en
Publication of JPH04299761A publication Critical patent/JPH04299761A/en
Application granted granted Critical
Publication of JP3326187B2 publication Critical patent/JP3326187B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the table preparing device equipped with a function to prepare a table intended by an operator by recognizing a handwritten and inputted table vaguely describing connecting relation of a table inputted by a mouse or the like with unclear connection. CONSTITUTION:The table preparing device recognizes table line segment data from image information handwritten and inputted to a tablet 1 at a table recognition part 2, inputs the line segment data to a table according to the position relation and compresses the table according to the distance of coordinates managed in a description column at a table compression part 4. At the compressed table, a rectangular area including plural line segments having the connecting relation is extracted as a first virtual frame, the virtual frame including all the intersections of horizontal and vertical line segment in the frame is extracted as the second virtual frame, and a table line connection processing is executed with the second virtual frame as a table frame.

Description

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

【0001】0001

【産業上の利用分野】本発明は表作成可能なCAD、パ
ソコン、ワープロ等の表作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to table creation devices for CAD, personal computers, word processors, etc., which are capable of creating tables.

【0002】0002

【従来の技術】従来のワープロ等の文書作成装置には、
キーボードのキ−操作によって表を記述できる表作成機
能が備えられていた。このような表作成機能では、キー
ボードの特定のキーを押すことによって、そのキーに連
動している画面上のカーソルを移動させ、このカーソル
移動によって罫線を伸ばしていく手法が一般に用いられ
ていた。また、表作成の効率を上げるために、自動表作
成機能等の表作成支援ツールも開発されている。しかし
ながら、これらの表作成装置は表を作成する際、罫線を
伸ばして行う表作成と自動表作成の操作に隔たりがあり
、また表の修正等、操作手順が複雑で使いにくい等の問
題がある。
[Prior Art] Conventional document creation devices such as word processors have
It was equipped with a table creation function that allowed users to write tables using keyboard keystrokes. In such a table creation function, a method is generally used in which pressing a specific key on the keyboard moves a cursor on the screen that is linked to that key, and the ruled lines are extended by this cursor movement. Furthermore, table creation support tools such as automatic table creation functions have been developed to improve the efficiency of table creation. However, when creating a table, these table creation devices have problems such as a difference between table creation by extending the ruled lines and automatic table creation, and the operation procedures for table correction etc. are complicated and difficult to use. .

【0003】また、マウスを用いた表作成方法も用いら
れているが、意図した通りに正確にマウスを動かして、
線分を接続するためには、非常に神経を費やしているの
が現状である。
[0003] A table creation method using a mouse is also used, but by moving the mouse exactly as intended,
Currently, it takes a lot of effort to connect line segments.

【0004】そのために、近年、手書きによる表作成装
置が考案されている。(情報処理学会第38回全国大会
6C−8,p194記載の「階層的弛緩法による手書き
図表の清書」等)。
[0004] To this end, in recent years, handwritten table creation devices have been devised. (“Cleanup of handwritten diagrams using hierarchical relaxation method” described in Information Processing Society of Japan 38th National Conference 6C-8, p. 194).

【0005】しかしながら、これらの表作成装置は、近
傍にある線分を接続するのみであり、通常、人間が紙の
上に筆記するような接続関係の曖昧な表には適用できな
い問題がある。例えば、図3の如き接続関係の曖昧な手
書き表入力に対し、これを図6の如き完全なる表を再現
する事はできなかった。
However, these table creation devices only connect adjacent line segments, and there is a problem in that they cannot be applied to tables in which connection relationships are ambiguous, such as those drawn by humans on paper. For example, it has not been possible to reproduce a complete table as shown in FIG. 6 in response to a handwritten table input with ambiguous connection relationships as shown in FIG.

【0006】[0006]

【発明が解決しようとする課題】本発明は、接続関係が
曖昧な表からでも、オペレータが意図した通りに正確に
線分を接続し、表作成の際のオペレータの負担の軽減を
はかる表作成装置を提供するものである。
[Problems to be Solved by the Invention] The present invention is a table creation system that connects line segments accurately as intended by the operator even from a table with ambiguous connection relationships, thereby reducing the burden on the operator when creating the table. It provides equipment.

【0007】[0007]

【課題を解決するための手段】本発明の表作成装置は、
手書きの線分データを入力する入力処理部と、該入力処
理部で入力された複数の線分データに基づいて、各線分
夫々の両端位置のx−y座標を、各線分間の位置関係を
反映したx−y配列テーブルに記述入力するテーブル入
力部、該テーブル内の座標データに基づいて線分データ
の接続関係を判定する判定手段と、該判定手段で判定し
た接続関係に従った線分データからなる表を出力する出
力部とを設けたものであって、前記判定手段は、前記テ
ーブルに於いて、各線分端部のx−y座標が記述された
x−y記述欄に隣接するx、y4方向の記述欄に存在す
る線分との距離を求め、該距離が特定のしきい値より小
さい時の隣接するテーブル記述欄を同一視することによ
りテーブル圧縮を行うテーブル圧縮部からなる表作成装
置を備えている。
[Means for Solving the Problems] A table creation device of the present invention includes:
An input processing unit that inputs handwritten line segment data, and based on the plurality of line segment data input by the input processing unit, the x-y coordinates of both end positions of each line segment, reflecting the positional relationship between each line segment. a table input section for inputting descriptions into the x-y array table, a determining means for determining the connection relationship of line segment data based on the coordinate data in the table, and line segment data according to the connection relationship determined by the determining means. and an output unit that outputs a table consisting of , a table consisting of a table compression unit that calculates the distance to a line segment existing in the description field in the y4 direction, and performs table compression by equating adjacent table description fields when the distance is smaller than a specific threshold. Equipped with a creation device.

【0008】また、本発明の表作成装置は、手書きの線
分データを入力する入力処理部と、該入力処理部で入力
された複数の線分データに基づいて、各線分夫々の両端
位置のx−y座標を、各線分間の位置関係を反映したx
−y配列テーブルに記述入力するテーブル入力部、該テ
ーブル内の座標データに基づいて線分データの接続関係
を判定する判定手段と、該判定手段で判定した接続関係
に従った線分データからなる表を出力する出力部とを設
けたものであって、前記判定手段は、前記テーブルに於
いて、各線分端部のx−y座標が記述されたx−y記述
欄に隣接するx、y4方向の記述欄に存在する線分との
距離を求め、該距離が特定のしきい値より小さい時の隣
接するテーブル記述欄を同一視することによりテーブル
圧縮を行うテーブル圧縮部と、該テーブル圧縮部で得ら
れた線分データの内、接続関係のある複数線分を含む最
小の矩形領域の境界を第1の仮想枠とし、該第1の仮想
枠内で、水平、垂直線分の全交点を含む最小の矩形領域
の境界を第2の仮想枠とし、該第2の仮想枠を表枠と見
做す表枠抽出部を備えている。
Further, the table creation device of the present invention includes an input processing section for inputting handwritten line segment data, and a calculation of both end positions of each line segment based on a plurality of line segment data inputted by the input processing section. The x-y coordinate is an x that reflects the positional relationship between each line segment.
- Consists of a table input section for inputting descriptions into the y array table, a determination means for determining the connection relationship of line segment data based on the coordinate data in the table, and line segment data according to the connection relationship determined by the determination means. and an output unit that outputs a table, and the determining means includes an x, y 4 A table compression unit that performs table compression by calculating the distance to a line segment existing in a direction description field and equating adjacent table description fields when the distance is smaller than a specific threshold; Among the line segment data obtained in the section, the boundary of the smallest rectangular area containing multiple connected line segments is set as the first virtual frame, and within the first virtual frame, all horizontal and vertical line segments are The boundary of the smallest rectangular area including the intersection point is defined as a second virtual frame, and a table frame extracting unit is provided that regards the second virtual frame as a table frame.

【0009】更に、本発明の表作成装置は、手書きの線
分データを入力する入力処理部と、該入力処理部で入力
された複数の線分データに基づいて、各線分夫々の両端
位置のx−y座標を、各線分間の位置関係を反映したx
−y配列テーブルに記述入力するテーブル入力部、該テ
ーブル内の座標データに基づいて線分データの接続関係
を判定する判定手段と、該判定手段で判定した接続関係
に従った線分データからなる表を出力する出力部とを設
けたものであり、前記判定手段は、前記テーブルに於い
て、各線分端部のx−y座標が記述されたx−y記述欄
に隣接するx、y4方向の記述欄に存在する線分との距
離を求め、該距離が特定のしきい値より小さい時の隣接
するテーブル記述欄を同一視することによりテーブル圧
縮を行うテーブル圧縮部と、該テーブル圧縮部で得られ
た線分データの内、接続関係のある複数線分を含む最小
の矩形領域の境界を第1の仮想枠とし、該第1の仮想枠
内で、水平、垂直線分の全交点を含む最小の矩形領域の
境界を第2の仮想枠とし、該第2の仮想枠を表枠と見做
す表枠抽出部と、前記第1の仮想枠と該第2の仮想枠の
間に存在する線端の内、他の線分と接続していない線端
を第2の仮想枠まで縮める処理、あるいは前記第2の仮
想枠内に存在する線端の内、他の線端と接続していない
線端を該第2の仮想枠まで伸ばす表線処理部とを備えて
いる。
Furthermore, the table creation device of the present invention includes an input processing section for inputting handwritten line segment data, and a calculation of both end positions of each line segment based on a plurality of line segment data inputted by the input processing section. The x-y coordinate is an x that reflects the positional relationship between each line segment.
- Consists of a table input section for inputting descriptions into the y array table, a determination means for determining the connection relationship of line segment data based on the coordinate data in the table, and line segment data according to the connection relationship determined by the determination means. and an output unit that outputs a table, and the determining means is configured to determine whether the x and y four directions adjacent to the x-y description column in which the x-y coordinates of each line segment end are described in the table are a table compression unit that performs table compression by calculating the distance to a line segment existing in a description field and equating adjacent table description fields when the distance is smaller than a specific threshold; Among the line segment data obtained in , the boundary of the smallest rectangular area containing multiple connected line segments is set as the first virtual frame, and within the first virtual frame, all intersections of horizontal and vertical line segments are a table frame extraction unit that sets the boundary of the smallest rectangular area including the second virtual frame as a second virtual frame, and considers the second virtual frame as a table frame; A process of shrinking line ends that are not connected to other line segments among line ends that exist in the second virtual frame, or a process of shrinking line ends that are not connected to other line segments within the second virtual frame, or a process of shrinking line ends that are not connected to other line segments within the second virtual frame, or and a front line processing unit that extends unconnected line ends to the second virtual frame.

【0010】0010

【作用】本発明によれば、手書きの線分データを入力し
、その入力された複数の線分データに基づいて、各線分
夫々の両端位置のx−y座標を、各線分間の位置関係を
反映したx−y配列テーブルに記述入力し、そのテーブ
ルに於いて、各線分端部のx−y座標が記述されたx−
y記述欄に隣接するx、y4方向の記述欄に存在する線
分との距離を求め、その距離が特定のしきい値より小さ
い時の隣接するテーブル記述欄を同一視することにより
テーブル圧縮を行う。また、そのテーブル圧縮により得
られた線分データの内、接続関係のある複数線分を含む
最小の矩形領域の境界を第1の仮想枠とし、その第1の
仮想枠内で、水平、垂直線分の全交点を含む最小の矩形
領域の境界を第2の仮想枠とし、その第2の仮想枠を表
枠と見做す。しかる後、その第1の仮想枠と第2の仮想
枠の間に存在する線端の内、他の線分と接続していない
線端を第2の仮想枠まで縮めるか、あるいは前記第2の
仮想枠内に存在する線端の内、他の線端と接続していな
い線端をその第2の仮想枠まで伸ばす処理をする。
[Operation] According to the present invention, handwritten line segment data is input, and based on a plurality of input line segment data, the x-y coordinates of both end positions of each line segment are calculated, and the positional relationship between each line segment is calculated. Enter the description into the reflected x-y array table, and in that table, write the x-y coordinates of each line segment end.
Table compression is performed by calculating the distance from the line segment existing in the description field in the x and y directions adjacent to the y description field, and equating the adjacent table description fields when the distance is smaller than a specific threshold. conduct. In addition, among the line segment data obtained by table compression, the boundary of the smallest rectangular area containing multiple connected line segments is set as the first virtual frame, and within the first virtual frame, horizontal and vertical The boundary of the smallest rectangular area that includes all the intersections of the line segments is defined as a second virtual frame, and the second virtual frame is regarded as the table frame. Thereafter, among the line ends existing between the first virtual frame and the second virtual frame, line ends that are not connected to other line segments are shortened to the second virtual frame, or the second virtual frame is Among the line ends existing within the virtual frame, the line ends that are not connected to other line ends are extended to the second virtual frame.

【0011】[0011]

【実施例】図1は本発明の表作成装置の一実施例の機能
構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the functional configuration of an embodiment of a table creation apparatus according to the present invention.

【0012】同図において、手書き表イメージは、タブ
レット等の入力部1に書き込み入力され、そのイメージ
情報が送出される。表認識部2は、入力部1で得られた
手書きイメージ情報から、線分の両端座標等の表線分デ
ータを作成し、その表線分データをテーブル入力部3に
送出する。この表線分データを作成する処理に於ては、
線分の傾きが水平、垂直に近い線分は、水平、垂直線分
と見做す処理も行う。また、平行に近く、近接している
表線分同士を同一線分化し、データを少なくする処理を
行う場合もある。テーブル入力部3は、その表線分デー
タに基づいて、各線分夫々の両端位置のx−y座標を、
各線分間の位置関係を反映したx−y配列テーブルに記
述入力する。この例では、上述のx−y配列テーブルの
配列位置に、各線分間の位置関係を反映する情報として
、線分の有無の情報、この配列位置に対応する座標値、
この配列位置と隣合うx,y4方向の配列位置との接続
関係情報を用いる。また、このテーブルでは、特定のy
方向の配列位置に対応するx方向のそれぞれの配列位置
で管理している座標値のy座標値は同一であり、特定の
x方向の配列位置に対応するy方向のそれぞれの配列位
置で管理している座標値のx座標値も同一であるので、
全ての配列位置にその配列位置に対応する座標値をもた
す必要はない。テーブル圧縮部4は、上述のテーブルに
於いて、各線分端部のx−y座標が記述されたx−y記
述欄に隣接するx、y4方向の記述欄に存在する線分と
の距離を求め、その距離が特定のしきい値より小さい時
の隣接するテーブル記述欄を同一視することによりテー
ブル圧縮を行う。斜線接続判定部5は、そのテーブルに
於て、まだ水平、垂直線分の交点と接続していない斜線
の端点をテーブルより抽出し、その端点が接続すべき交
点が存在するか否かを判定する。接続すべき交点が存在
すれば、接続処理部6で前記端点をその交点と接続する
。表枠抽出部7は、そのテーブルで管理されている線分
データの接続関係に基づき、接続関係のある線分全てを
含む最小領域の境界を第1の仮想枠とし、その仮想枠内
で、水平、垂直線分の全交点を含む最小領域の境界であ
る第2の仮想枠を抽出する。以下その2つめの仮想枠を
表枠と見做して処理を行う。表線処理判定部8は、前記
の第1の仮想枠と第2の仮想枠の間に存在する線端の内
、他の線分と接続していない線端、及び第2の仮想枠内
に存在する線端の内、他の線分と接続していない線端を
抽出し、その抽出した線端について表線処理部9で、第
2の仮想枠との接続処理を行う。清書処理部10は、表
示の際の表線の間隔の設定等のレイアウト処理を行う。 出力部11は、清書処理部10の処理結果を出力する。
[0012] In the figure, a handwritten table image is written and input into an input unit 1 such as a tablet, and the image information is sent out. The table recognition unit 2 creates table line segment data such as the coordinates of both ends of the line segment from the handwritten image information obtained by the input unit 1, and sends the table line segment data to the table input unit 3. In the process of creating this table line segment data,
Line segments whose slopes are close to horizontal or vertical are treated as horizontal or vertical line segments. Further, there are cases in which table line segments that are close to each other and are close to each other are divided into the same line to reduce the amount of data. The table input unit 3 calculates the x-y coordinates of both end positions of each line segment based on the table line segment data.
A description is input into an x-y arrangement table that reflects the positional relationship between each line segment. In this example, the information reflecting the positional relationship between each line segment in the arrangement position of the above-mentioned x-y arrangement table includes information on the presence or absence of a line segment, coordinate values corresponding to this arrangement position,
Connection relationship information between this array position and adjacent array positions in the four x and y directions is used. Also, in this table, a specific y
The y-coordinate values of the coordinate values managed at each array position in the x-direction corresponding to the array position in the x-direction are the same, and the y-coordinate values are managed at each array position in the y-direction corresponding to a specific array position in the x-direction. Since the x coordinate values of the coordinate values are also the same,
It is not necessary for every array position to have a coordinate value corresponding to that array position. In the above-mentioned table, the table compression unit 4 calculates the distance between the line segment existing in the x and y four direction description fields adjacent to the x-y description field in which the x-y coordinates of each line segment end are described. Table compression is performed by equating adjacent table description fields when the distance is smaller than a specific threshold value. The diagonal line connection determination unit 5 extracts from the table the end points of the diagonal lines that are not yet connected to the intersections of horizontal and vertical line segments, and determines whether there is an intersection to which the end points should be connected. do. If there is an intersection to be connected, the connection processing section 6 connects the end point to that intersection. Based on the connection relationships of the line segment data managed in the table, the table frame extraction unit 7 sets the boundary of the minimum area that includes all the line segments with connection relationships as a first virtual frame, and within that virtual frame, A second virtual frame, which is the boundary of the minimum area including all the intersections of horizontal and vertical line segments, is extracted. Hereafter, the second virtual frame is regarded as the table frame and processing is performed. The front line processing determination unit 8 determines the line ends that are not connected to other line segments among the line ends existing between the first virtual frame and the second virtual frame, and the line ends within the second virtual frame. Among the line ends existing in the line segment, the line ends that are not connected to other line segments are extracted, and the front line processing unit 9 performs connection processing with the second virtual frame for the extracted line ends. The fairwriting processing unit 10 performs layout processing such as setting the interval between front lines during display. The output unit 11 outputs the processing result of the fair copy processing unit 10.

【0013】また、入力部1に表を筆記入力するかわり
に、マウス等のポインティングデバイスにより表線分デ
ータを直接入力することも可能であり、この場合には、
表認識部2でイメージ情報から表線分データを作成する
必要はなくなる。
Furthermore, instead of inputting the table by hand into the input section 1, it is also possible to directly input the table line segment data using a pointing device such as a mouse; in this case,
There is no need for the table recognition unit 2 to create table line segment data from image information.

【0014】図2に本発明の表作成装置のシステム構成
を示す。
FIG. 2 shows the system configuration of the table creation device of the present invention.

【0015】同図において、表示一体型タブレット12
は図1の入力部1、及び出力部11に対応しており、入
力ペン先のアップ/ダウン情報、及びx,y座標を検出
し、I/O13を介してデータの受け渡しをしている。 CPU14は図1の表認識部2、及びテーブル処理3〜
10に相当する機能、及び装置全体を制御する中央処理
部である。ROM15はCPU14の処理プログラムを
格納している。RAM16は上述のテーブルに対応し、
さらにROM15に格納されている各種プログラムのワ
ークエリア(一時待避エリア)として用いられる。プリ
ンタ18は図1の出力部11に対応し、I/O17を介
して表を出力する。バスライン19は上述の各要素間の
メモリーアドレスやデータ転送等を行う。
In the figure, a display-integrated tablet 12
corresponds to the input section 1 and output section 11 in FIG. The CPU 14 includes the table recognition unit 2 and table processing 3 in FIG.
10 and a central processing unit that controls the entire device. The ROM 15 stores processing programs for the CPU 14. RAM16 corresponds to the above table,
Furthermore, it is used as a work area (temporary save area) for various programs stored in the ROM 15. The printer 18 corresponds to the output unit 11 in FIG. 1 and outputs a table via the I/O 17. The bus line 19 performs memory addresses, data transfer, etc. between the above-mentioned elements.

【0016】図3〜図6は本発明の表作成装置の一実施
例における入力、及び出力を上述のテーブル[図2のR
AM16]での線分データ管理状態と併せて示している
FIGS. 3 to 6 show inputs and outputs in an embodiment of the table creation device of the present invention as shown in the above-mentioned table [R in FIG.
AM16] is shown together with the line segment data management state.

【0017】図3の50〜62の線分は、それぞれ図4
の70〜82、図5の90〜102、図6の110〜1
22に対応している。
Line segments 50 to 62 in FIG. 3 are respectively shown in FIG.
70-82 in Figure 5, 90-102 in Figure 5, 110-1 in Figure 6
It corresponds to 22.

【0018】図3は図1の表認識部2の処理結果に対応
し、この例の入力を示している。
FIG. 3 corresponds to the processing result of the table recognition unit 2 of FIG. 1, and shows the input of this example.

【0019】従来の表作成装置においては、同図の線分
54と線分50等のように近接している線分同士の接続
は可能であったが、線分61と線分53等のように離れ
て位置し、しかも延長線上にない線分同士の接続はでき
なかった。本発明においてはこのように接続関係が正確
に筆記入力されていない表からオペレータが意図する表
を作成するところに特徴がある。
In the conventional table creation device, it was possible to connect adjacent line segments such as line segment 54 and line segment 50 in the figure, but it was possible to connect line segments such as line segment 61 and line segment 53, etc. It was not possible to connect line segments that were so far apart that they were not on an extension line. The present invention is characterized in that a table intended by the operator is created from a table in which connection relationships are not accurately written and input.

【0020】図4は図1のテーブル入力部3の処理結果
に対応し、本発明の表作成装置に図3の入力がなされた
時のテーブル[図2のRAM16]の表線分データ管理
状態を示すものである。
FIG. 4 corresponds to the processing results of the table input unit 3 of FIG. 1, and shows the table line segment data management state of the table [RAM 16 of FIG. 2] when the input of FIG. 3 is made to the table creation device of the present invention. This shows that.

【0021】図5は図4に示す状態のテーブルにおいて
、図1の4〜9のテーブル処理を施した時のテーブルの
表線分データ管理状態を示しており、図6にこのテーブ
ルの状態に基づいた表を図1の出力部11に出力した状
態を示す。
FIG. 5 shows the table line segment data management state of the table shown in FIG. 4 when the table processes 4 to 9 in FIG. 1 are performed, and FIG. 6 shows the state of this table. The table shown in FIG. 1 is outputted to the output unit 11 in FIG. 1.

【0022】本発明の表作成装置のテーブル処理方法を
図7〜図12を用いて詳述する。
The table processing method of the table creation device of the present invention will be explained in detail with reference to FIGS. 7 to 12.

【0023】図7の線分130は第1ストロークであり
、図8の線分140、図9の線分150、160、17
0、図10の線分180、図11の線分190に対応し
ている。また図7の線分131は第2ストロークであり
、図8の線分141、図9の線分161、171、図1
0の線分181、図11の線分191に対応し、図7の
線分132は第3ストロークであり、図8の線分142
、図9の線分172、図10の線分182、図11の線
分192に対応している。さらにそれぞれの線分の始点
、終点を黒抜き、白抜きの丸、三角、四角の記号で示し
ている。
Line segment 130 in FIG. 7 is the first stroke, line segment 140 in FIG. 8, line segments 150, 160, 17 in FIG.
0, corresponds to line segment 180 in FIG. 10 and line segment 190 in FIG. Also, the line segment 131 in FIG. 7 is the second stroke, the line segment 141 in FIG. 8, the line segments 161 and 171 in FIG.
The line segment 181 in FIG. 0 corresponds to the line segment 191 in FIG. 11, the line segment 132 in FIG. 7 is the third stroke, and the line segment 142 in FIG.
, corresponds to line segment 172 in FIG. 9, line segment 182 in FIG. 10, and line segment 192 in FIG. Furthermore, the starting and ending points of each line segment are indicated by black or white circles, triangles, and squares.

【0024】図7は図1の入力部1[図2のタブレット
12]に表の一部である3本のストロークが筆記入力さ
れた状態である。
FIG. 7 shows a state in which three strokes, which are part of a table, have been handwritten and input into the input unit 1 of FIG. 1 [the tablet 12 of FIG. 2].

【0025】図8は図1の表認識部2[図2のCPU1
4]で得られた表線分データを示している。
FIG. 8 shows the table recognition unit 2 in FIG. 1 [CPU 1 in FIG.
4] shows the table line segment data obtained in [4].

【0026】図9は図8に示す3本の表線分データを上
述のテーブル[図2のRAM16]に順に入力した状態
を(a)、(b)、(c)に示す。
FIG. 9 shows (a), (b), and (c) the state in which the three table line segment data shown in FIG. 8 are input in order into the above-mentioned table [RAM 16 in FIG. 2].

【0027】(a)は第1ストローク入力後のテーブル
の状態であり、第1ストロークの始点と終点の入力位置
関係により、y方向は同一で、x方向は隣合うテーブル
記述欄(始点が左)に同表線分データが入力されている
(a) shows the state of the table after the first stroke is input.Due to the input positional relationship between the start point and end point of the first stroke, the y direction is the same, and the x direction is the same in the table description field (starting point is on the left). ) is input with line segment data in the same table.

【0028】(b)は第2ストローク入力後のテーブル
状態であり、第1ストロークと第2ストロークのそれぞ
れの始点、及び終点の位置関係により、該当するテーブ
ル記述欄に表線分データが入力される。すなわち、この
テーブルの状態においては、第2ストロークの始点のx
方向は第1ストロークの始点と終点の間で、y方向は第
1ストロークより下(同図における)に位置する。また
終点のx方向は同線分の始点と同一で、y方向は同線分
の始点より下に位置する。
(b) shows the table state after the second stroke is input, and the table line segment data is input into the corresponding table description column according to the positional relationship between the start and end points of the first stroke and the second stroke. Ru. That is, in the state of this table, x at the starting point of the second stroke
The direction is between the start point and the end point of the first stroke, and the y direction is located below the first stroke (in the same figure). Further, the x direction of the end point is the same as the starting point of the same line segment, and the y direction of the end point is located below the starting point of the same line segment.

【0029】(c)は第3ストローク入力後のテーブル
状態であり、このテーブルにおいては、(b)における
線分の位置関係に加えて、第3ストロークとの位置関係
を付加する。つまり、第3ストロークの始点のx方向は
第1ストロークの始点と第2ストロークの始点の間で、
y方向は第2ストロークの始点と同線分の終点との間に
位置し、終点のx方向は第1ストロークの始点より左で
、y方向は同線分の始点と同一位置に位置する。このよ
うに、本発明の表作成装置においては、表線分データの
始点と終点の位置関係、接続関係に基づいてテーブル入
力していくものである。
(c) shows the table state after the third stroke is input, and in this table, in addition to the positional relationship of the line segments in (b), the positional relationship with the third stroke is added. In other words, the x direction of the starting point of the third stroke is between the starting point of the first stroke and the starting point of the second stroke,
The y direction is located between the starting point of the second stroke and the end point of the same line segment, the x direction of the end point is to the left of the starting point of the first stroke, and the y direction is located at the same position as the starting point of the same line segment. In this way, in the table creation device of the present invention, table input is performed based on the positional relationship and connection relationship between the starting point and end point of the table line segment data.

【0030】図10は図9(c)の表線分データ管理状
態のテーブルに、図1のテーブル圧縮部4[図2のCP
U14]で、x、y4方向の記述欄に存在する線分との
距離を求め、その距離がしきい値より小さい時の隣接す
るテーブル記述欄を同一視する処理を施した時のテーブ
ル状態であり、このテーブル状態に基づいて、線分を図
2のタブレットの表示面に出力した図を図11に示す。
FIG. 10 shows that the table line segment data management state table in FIG.
U14], calculate the distance to the line segment existing in the description field in the x and y4 directions, and when the distance is smaller than the threshold, the table state when processing is performed to make adjacent table description fields the same. 11 shows a diagram in which line segments are output on the display screen of the tablet shown in FIG. 2 based on this table state.

【0031】図12(a)は図1のテーブル入力部3[
図2のタブレット12]に入力された表線分データの一
例である。
FIG. 12(a) shows the table input section 3 [
This is an example of table line segment data input into the tablet 12 of FIG. 2.

【0032】まず、この表線分データを上述のテーブル
[図2のRAM16]に入力し、そのテーブルに図1の
テーブル圧縮部4で上述の圧縮処理を施す。この圧縮処
理により、線端206、207は近接している縦線へ、
線端205は近接している横線に接続される(テーブル
圧縮の際の距離のしきい値により変わる)。
First, this table line segment data is input into the above-mentioned table [RAM 16 in FIG. 2], and the table is subjected to the above-described compression process by the table compression section 4 in FIG. Through this compression process, the line ends 206 and 207 become adjacent vertical lines,
Line ends 205 are connected to adjacent horizontal lines (depending on the distance threshold during table compression).

【0033】次に、図1の斜線接続判定部5[図2のC
PU14]でまだ接続していない斜線端点(214、2
15)について、接続すべき水平、垂直線分の交点があ
るか否かの判定を行い、もしあれば図1の接続処理部6
[図2のCPU14]で接続処理を行う。
Next, the diagonal connection determination section 5 in FIG. 1 [C in FIG.
PU14], the hatched end points (214, 2
15), it is determined whether or not there is an intersection of horizontal and vertical line segments to be connected, and if there is, the connection processing unit 6 of FIG.
[CPU 14 in FIG. 2] performs connection processing.

【0034】また、図1の表枠抽出部7[図2のCPU
14]で、そのテーブル内の線分データの接続関係に基
づき、接続関係のある線分全てが存在する最小領域の境
界を第1の仮想枠、また、その仮想枠内で、水平、垂直
線分の全交点の存在する最小領域の境界を第2の仮想枠
とし抽出し、その第2の仮想枠を表枠とする。
[0034] Furthermore, the table frame extraction unit 7 in FIG. 1 [CPU in FIG.
14], based on the connection relationship of the line segment data in the table, the boundary of the minimum area where all the line segments with connection relationship exist is the first virtual frame, and within that virtual frame, horizontal and vertical lines are The boundary of the minimum area in which all the intersection points of the minutes exist is extracted as a second virtual frame, and the second virtual frame is used as the table frame.

【0035】次に図1の表線処理判定部8で、その第1
の表枠内で他の線分と接続していない線端を抽出し、図
1の表線処理部8で、その線端と表枠との接続処理を行
う。つまり、その第1の仮想枠と2つめの仮想枠の間に
存在する線端の内、他の線分と接続していない線端(2
00〜204、208)をその第2の仮想枠まで縮める
処理とその第2の仮想枠内に存在する線端の内、他の線
分と接続していない線端(209〜213)をその第2
の仮想枠まで伸ばす処理を行う。
Next, in the table line processing determination section 8 of FIG.
Line ends that are not connected to other line segments within the table frame are extracted, and the table line processing unit 8 in FIG. 1 performs connection processing between the line ends and the table frame. In other words, among the line ends that exist between the first virtual frame and the second virtual frame, the line ends that are not connected to other line segments (2
00 to 204, 208) to its second virtual frame, and among the line ends existing within the second virtual frame, line ends (209 to 213) that are not connected to other line segments are Second
Extend the image to the virtual frame.

【0036】また、図1の清書処理部10で表欄間隔の
清書等の清書処理を行う。以上のテーブル処理を行うこ
とによりオペレータが意図した表(同図(b))を得る
ことが可能となる。
[0036] Further, the fair copying processing unit 10 shown in FIG. 1 performs a fair copying process such as fair copying of table column intervals. By performing the above table processing, it becomes possible to obtain the table intended by the operator (FIG. 2(b)).

【0037】[0037]

【発明の効果】以上に述べた様に、手書きされたイメー
ジ情報から認識された表枠、表線情報、及びマウス等で
入力された表枠、表線情報等、表枠、表線の接続関係が
曖昧な表からでも、オペレータが意図する表を完成でき
るので、表線入力の際、接続関係を気にする必要がなく
なる。また、表の一部の筆記から自動的に表を完成でき
るので、全ての表線を入力する必要がなくなる等、オペ
レータの表入力の際の負担が著しく軽減される。また、
手書き入力を用いると人間の表作図動作と同じ要領で、
簡単に表を入力でき、自動表作成  機能等の操作も簡
単な操作で行える等、操作手順が簡略化されるので、だ
れでも容易に表作成が行える。また、表線の接続判定、
及び表線間隔の設定等、表全体の位置関係を考慮して行
え、表データもベクトルで管理しているので、適切な清
書処理ができる。
[Effects of the Invention] As described above, table frames and table line information recognized from handwritten image information, table frame and table line information, etc. input with a mouse, etc., connection of table frames and table lines, etc. Since the operator can complete the table he or she intends even from a table with ambiguous relationships, there is no need to worry about connection relationships when inputting table lines. Furthermore, since the table can be automatically completed by writing a part of the table, there is no need to input all the table lines, and the burden on the operator when inputting the table is significantly reduced. Also,
When handwritten input is used, it can be done in the same way as a human table drawing operation.
Anyone can easily create tables because the operating procedures are simplified, such as easy input of tables and easy operation of the automatic table creation function. In addition, connection judgment of front line,
The table line spacing can be set in consideration of the positional relationship of the entire table, and the table data is also managed in vectors, so appropriate formatting can be performed.

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

【図1】本発明の表作成装置の一実施例の機能構成を示
すブロック図
FIG. 1 is a block diagram showing the functional configuration of an embodiment of the table creation device of the present invention.

【図2】本発明装置のシステム構成を示す図[Figure 2] Diagram showing the system configuration of the device of the present invention

【図3】本
発明装置のテーブル入力部への入力例(1)を示す図
[Fig. 3] A diagram showing an example (1) of input to the table input section of the device of the present invention.

【図4】本発明装置のテーブルでの入力例(1)の表線
分データ記憶状態を示す図
FIG. 4 is a diagram showing the table line segment data storage state of input example (1) in the table of the device of the present invention.

【図5】本発明装置のテーブルでの入力例(1)に対す
る処理結果の表線分データ記憶状態を示す図
FIG. 5 is a diagram showing the storage state of table line segment data of processing results for input example (1) in the table of the device of the present invention;

【図6】本
発明装置の入力例(1)の処理結果を示す図
[Fig. 6] A diagram showing processing results of input example (1) of the device of the present invention

【図7】本
発明装置の入力部への手書き入力例を示す図
FIG. 7 is a diagram showing an example of handwritten input to the input unit of the device of the present invention.

【図8】本
発明装置のテーブル入力部への入力例(2)を示す図
FIG. 8 is a diagram showing an example (2) of input to the table input unit of the device of the present invention.

【図9】本発明装置のテーブル入力部への入力例(2)
の入力を詳述する図
[Fig. 9] Example of input to the table input section of the device of the present invention (2)
Diagram detailing the input of

【図10】本発明装置のテーブル圧縮部での入力例(2
)の処理結果を示す図
FIG. 10: Example of input in the table compression unit of the device of the present invention (2
) Diagram showing the processing results of

【図11】本発明の入力例(2)の処理結果を示す図FIG. 11 is a diagram showing the processing results of input example (2) of the present invention


図12】本発明のテーブル入力部への入力例(3)、及
び処理結果を示す図
[
FIG. 12 is a diagram showing an example (3) of input to the table input unit of the present invention and processing results

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

1    入力部 2    表認識部 3    テーブル入力部 4    テーブル圧縮部 5    斜線接続判定部 6    接続処理部 7    表枠抽出部 8    表線処理判定部 9    表線処理部 10  清書処理部 11  出力部 1 Input section 2 Table recognition section 3 Table input section 4 Table compression section 5 Diagonal line connection determination section 6 Connection processing section 7 Table frame extraction part 8 Table line processing judgment section 9   Table line processing section 10 Fair copy processing department 11 Output section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  手書きの線分データを入力する入力処
理部と、該入力処理部で入力された複数の線分データに
基づいて、各線分夫々の両端位置のx−y座標を、各線
分間の位置関係を反映したx−y配列テーブルに記述入
力するテーブル入力部、該テーブル内の座標データに基
づいて線分データの接続関係を判定する判定手段と、該
判定手段で判定した接続関係に従った線分データからな
る表を出力する出力部とを設け、前記判定手段は、前記
テーブルに於いて、各線分端部のx−y座標が記述され
たx−y記述欄に隣接するx、y4方向の記述欄に存在
する線分との距離を求め、該距離が特定のしきい値より
小さい時の隣接するテーブル記述欄を同一視することに
よりテーブル圧縮を行うテーブル圧縮部からなる表作成
装置。
Claim 1: An input processing unit that inputs handwritten line segment data; and an input processing unit that calculates the x-y coordinates of both end positions of each line segment based on a plurality of line segment data input by the input processing unit. a table input unit for inputting descriptions into an x-y array table reflecting the positional relationship of the table; a determining means for determining the connection relationship of the line segment data based on the coordinate data in the table; and an output unit that outputs a table consisting of the line segment data according to the table, and the determining means is configured to determine whether the x-y coordinates of each line segment end are adjacent to the , a table consisting of a table compression unit that calculates the distance to a line segment existing in the description field in the y4 direction, and performs table compression by equating adjacent table description fields when the distance is smaller than a specific threshold. Creation device.
【請求項2】  手書きの線分データを入力する入力処
理部と、該入力処理部で入力された複数の線分データに
基づいて、各線分夫々の両端位置のx−y座標を、各線
分間の位置関係を反映したx−y配列テーブルに記述入
力するテーブル入力部、該テーブル内の座標データに基
づいて線分データの接続関係を判定する判定手段と、該
判定手段で判定した接続関係に従った線分データからな
る表を出力する出力部とを設け、前記判定手段は、前記
テーブルに於いて、各線分端部のx−y座標が記述され
たx−y記述欄に隣接するx、y4方向の記述欄に存在
する線分との距離を求め、該距離が特定のしきい値より
小さい時の隣接するテーブル記述欄を同一視することに
よりテーブル圧縮を行うテーブル圧縮部と、該テーブル
圧縮部で得られた線分データの内、接続関係のある複数
線分を含む最小の矩形領域の境界を第1の仮想枠とし、
該第1の仮想枠内で、水平、垂直線分の全交点を含む最
小の矩形領域の境界を第2の仮想枠とし、該第2の仮想
枠を表枠と見做す表枠抽出部を備えた表作成装置。
2. An input processing unit that inputs handwritten line segment data; a table input unit for inputting descriptions into an x-y array table reflecting the positional relationship of the table; a determining means for determining the connection relationship of the line segment data based on the coordinate data in the table; and an output unit that outputs a table consisting of the line segment data according to the table, and the determining means is configured to determine whether the x-y coordinates of each line segment end are adjacent to the , a table compression unit that performs table compression by calculating the distance to a line segment existing in the description field in the y4 direction and equating adjacent table description fields when the distance is smaller than a specific threshold; Among the line segment data obtained by the table compression unit, the boundary of the smallest rectangular area including multiple line segments with a connection relationship is set as a first virtual frame,
A table frame extraction unit that defines a boundary of the smallest rectangular area including all intersections of horizontal and vertical line segments within the first virtual frame as a second virtual frame, and regards the second virtual frame as a table frame. A table creation device equipped with
【請求項3】  手書きの線分データを入力する入力処
理部と、該入力処理部で入力された複数の線分データに
基づいて、各線分夫々の両端位置のx−y座標を、各線
分間の位置関係を反映したx−y配列テーブルに記述入
力するテーブル入力部、該テーブル内の座標データに基
づいて線分データの接続関係を判定する判定手段と、該
判定手段で判定した接続関係に従った線分データからな
る表を出力する出力部とを設け、前記判定手段は、前記
テーブルに於いて、各線分端部のx−y座標が記述され
たx−y記述欄に隣接するx、y4方向の記述欄に存在
する線分との距離を求め、該距離が特定のしきい値より
小さい時の隣接するテーブル記述欄を同一視することに
よりテーブル圧縮を行うテーブル圧縮部と、該テーブル
圧縮部で得られた線分データの内、接続関係のある複数
線分を含む最小の矩形領域の境界を第1の仮想枠とし、
該第1の仮想枠内で、水平、垂直線分の全交点を含む最
小の矩形領域の境界を第2の仮想枠とし、該第2の仮想
枠を表枠と見做す表枠抽出部と、前記第1の仮想枠と該
第2の仮想枠の間に存在する線端の内、他の線分と接続
していない線端を第2の仮想枠まで縮める処理、あるい
は前記第2の仮想枠内に存在する線端の内、他の線端と
接続していない線端を該第2の仮想枠まで伸ばす表線処
理部とを備えた表作成装置。
3. An input processing section that inputs handwritten line segment data; a table input unit for inputting descriptions into an x-y array table reflecting the positional relationship of the table; a determining means for determining the connection relationship of the line segment data based on the coordinate data in the table; and an output unit that outputs a table consisting of the line segment data according to the table, and the determining means is configured to determine whether the x-y coordinates of each line segment end are adjacent to the , a table compression unit that performs table compression by calculating the distance to a line segment existing in the description field in the y4 direction and equating adjacent table description fields when the distance is smaller than a specific threshold; Among the line segment data obtained by the table compression unit, the boundary of the smallest rectangular area including multiple line segments with a connection relationship is set as a first virtual frame,
A table frame extraction unit that defines a boundary of the smallest rectangular area including all intersections of horizontal and vertical line segments within the first virtual frame as a second virtual frame, and regards the second virtual frame as a table frame. and a process of shrinking line ends that are not connected to other line segments among the line ends existing between the first virtual frame and the second virtual frame to the second virtual frame, or the second virtual frame. A table creation device comprising: a front line processing unit that extends line ends that are not connected to other line ends among line ends existing in the virtual frame to the second virtual frame.
JP06481491A 1991-03-28 1991-03-28 Table making device Expired - Fee Related JP3326187B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06481491A JP3326187B2 (en) 1991-03-28 1991-03-28 Table making device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06481491A JP3326187B2 (en) 1991-03-28 1991-03-28 Table making device

Publications (2)

Publication Number Publication Date
JPH04299761A true JPH04299761A (en) 1992-10-22
JP3326187B2 JP3326187B2 (en) 2002-09-17

Family

ID=13269091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06481491A Expired - Fee Related JP3326187B2 (en) 1991-03-28 1991-03-28 Table making device

Country Status (1)

Country Link
JP (1) JP3326187B2 (en)

Also Published As

Publication number Publication date
JP3326187B2 (en) 2002-09-17

Similar Documents

Publication Publication Date Title
US6999061B2 (en) Electronic whiteboard system
JPH0814822B2 (en) Command input device
JP2559792B2 (en) CAD sketch input drawing method
JPH07129312A (en) Picture processor
JPH06131436A (en) Method and device for plotting processing
CN107967105A (en) Handwritten content editing equipment and method
JPH04299761A (en) Table preparing device
CN114415876A (en) Hand-drawn image processing method and device and electronic equipment
JPH07104756B2 (en) Information processing method
WO2016070785A1 (en) Handwritten content dividing method, device and handwritten content editing device
JPH01126774A (en) Graphic input device
US20230289517A1 (en) Display apparatus, display method, and non-transitory recording medium
JP2644796B2 (en) Drawing processing method for character figures, etc.
JP2851852B2 (en) Information processing device
JPH06168278A (en) Facility data retrieving device
JP3089525B2 (en) CAD system
JPH02226387A (en) Segmenting apparatus and method for handwritten character
JPH0289117A (en) Correction system for handwritten data
JP2616427B2 (en) String display device
JPS6320681A (en) Tabulating and processing system
JPH0525141B2 (en)
JP2817845B2 (en) Graphic processing apparatus and method
JPH0586585B2 (en)
JPH0756900A (en) Method for preparing table by computer
JPH01191928A (en) Data input device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees