JPH0272492A - Fair copying device - Google Patents

Fair copying device

Info

Publication number
JPH0272492A
JPH0272492A JP22532688A JP22532688A JPH0272492A JP H0272492 A JPH0272492 A JP H0272492A JP 22532688 A JP22532688 A JP 22532688A JP 22532688 A JP22532688 A JP 22532688A JP H0272492 A JPH0272492 A JP H0272492A
Authority
JP
Japan
Prior art keywords
pattern
rectangular area
local
local rectangular
lines
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
JP22532688A
Other languages
Japanese (ja)
Other versions
JP2762476B2 (en
Inventor
Takashi Sonoda
隆志 園田
Hiroshi Kawamoto
川本 浩史
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP22532688A priority Critical patent/JP2762476B2/en
Publication of JPH0272492A publication Critical patent/JPH0272492A/en
Application granted granted Critical
Publication of JP2762476B2 publication Critical patent/JP2762476B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To automatically convert incompletely drawn longitudinal and lateral lines such as handwritten ruled lines into horizontal and vertical straight lines, and to make a fair copy by repeating a local conversion obtained with selecting positions at random over the whole area of a picture. CONSTITUTION:In the area of an original chart stored into a picture memory 41, the position of local rectangular areas are designated at random, segmented by a local rectangular area segmenting part 42, and judged to which picture pattern fixed beforehand the pattern of the segmented local rectangular area is included by a pattern judging part 43. A local rectangular area picture converting part 45 converts the picture in the local rectangular area into the arranged linear picture consisting of the straight lines according to the result of pattern judgement. The local conversion obtained by selecting the positions at random is repeated over the whole area of the picture. Thus, the longitudinal and lateral lines including the oblique components of a handwritten table can be all converted and shaped into the horizontal and vertical straight lines.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、手書きした文書における図表の線部分(罫線
部)のような不完全な形に描かれた線画像部分を含む図
表を完全な形に整形する清書装置nに関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention provides a method for completely converting charts and tables containing incompletely drawn line image parts, such as line parts (ruled line parts) of charts in handwritten documents. This invention relates to a copying device n for shaping into a shape.

(従来の技術) 従来、手書した文書の原稿を清書するには、ワードプロ
セッサを清書装置として用いて、原稿を見ながらキーボ
ードやポインティングデバイスを操作して文章や図表を
入力し、後で小舅することによって行なうのが一般的で
ある。
(Prior art) Conventionally, in order to make a correct copy of a handwritten document, a word processor is used as a copying device, and while looking at the document, a keyboard or pointing device is operated to input sentences and figures, and the data is edited later. This is generally done by

しかしながら、その入力作業には、ワードプロセッサの
操作に熟練したオペレータを必要とし、また、時間もか
かるものである。
However, this input work requires an operator skilled in word processor operations and is time consuming.

このような入力作業の負担を軽減するために、パターン
認識装置を用いることも試みられているが、図表に関し
て手書きの不完全さを含む原画像を整形して清書した図
表を得ることのできる装置は、従来例に見あたらない。
In order to reduce the burden of such input work, attempts have been made to use pattern recognition devices, but there is a device that can format original images that include handwritten imperfections regarding charts and tables to obtain clean-cut charts. is not found in the conventional example.

(発明が解決しようとする課題) 本発明の目的は文書に含まれる図表の手書きの罫線等の
ような不完全に描かれた縦横の線を完全な水平および垂
直の直線に自動的に変換して清書する清書装置を提供す
ることにある。
(Problem to be Solved by the Invention) The purpose of the present invention is to automatically convert imperfectly drawn vertical and horizontal lines, such as hand-drawn ruled lines on charts included in a document, into perfect horizontal and vertical straight lines. An object of the present invention is to provide a copying device for copying.

(課題を解決するための手段) 本発明の清書装置は、2値化した原図表の情報を記憶す
る画像メモリと、画像メモリの原図表の記憶された領域
内において局所矩形領域を無作為に位置指定して切り出
す局所矩形領域切り出し手段と、切り出した局所矩形領
域のパターンが予め定めた画像パターンのいずれに属す
るがを判断するパターン判断手段と、パターン判断の結
果に応じて局所矩形領域の画像を直線からなる整った線
画像に変換する局所矩形領域画像変換手段とを備えたこ
とを特徴とする。
(Means for Solving the Problems) The fairing device of the present invention includes an image memory that stores information on a binarized original chart, and a local rectangular area at random within an area of the image memory where the original chart is stored. A local rectangular area cutting means for specifying a position and cutting out a local rectangular area; a pattern determining means for determining which of predetermined image patterns the pattern of the extracted local rectangular area belongs to; and an image of the local rectangular area according to the result of pattern judgment. and local rectangular area image conversion means for converting the image into a neat line image made up of straight lines.

本発明の一態様によれば、前記パターン判断手段は、局
所矩形領域の枠の4辺が図表の線とどのように交わるか
を調べ、 01辺で交わるパターン [1]1辺で交わるパターン ■隣合う2辺で交わるパターン 03辺で交わるパターン 04辺で交わるパターン のいずれのパターンに屈するかを判断するよう構成され
ている。
According to one aspect of the present invention, the pattern determining means examines how the four sides of the frame of the local rectangular area intersect with the lines of the chart, and determines the pattern that intersects at 01 sides [1] and the pattern that intersects at 1 side ■ It is configured to determine which pattern to yield to, a pattern that intersects on two adjacent sides, a pattern that intersects on side 03, and a pattern that intersects on side 04.

そして、局所矩形領域画像変換手段は、パターン判断手
段の判断に応じて、 (’a)1辺で交わるとき、枠内の画像を消去する (b)向い合う2辺で交わるとき、交点の間の直線に描
き換える (C)隣合う2辺で交わるとき、各交点から垂直にのば
した線で構成される角に描き換える(d)3辺で交わる
とき、向かい合う2辺上の交点間に直線を引き、他の1
辺上の交点からその直線まで垂線をのばして、丁字状に
描き換える(e)4辺で交わるとき、向かい合う2辺上
の交点間にそれぞれ直線°を描いて、十字状に描き換え
る といういずれかの変換処理を行なうよう構成される。
Then, the local rectangular area image conversion means, according to the judgment of the pattern judgment means, ('a) erases the image within the frame when it intersects on one side; (b) erases the image within the frame when it intersects on two opposite sides; (C) When two adjacent sides intersect, redraw it as an angle formed by a line extending perpendicularly from each intersection. (d) When three sides intersect, there is a line between the intersections on the two opposite sides. Draw a straight line and draw the other 1
Extend a perpendicular line from the intersection on the sides to that straight line and redraw it in a T-shape (e) When they intersect on four sides, draw a straight line ° between each intersection on the two opposite sides and redraw it in a cross-shape. is configured to perform conversion processing.

また、本発明の一態様によれば、前記パターン判断手段
は、さらに ■縦の1辺が2本以上の線と交わるパターンおよび ■横の1辺が2本以上の線と交わるパターンを検出する
よう構成される。
According to one aspect of the present invention, the pattern determining means further detects (1) a pattern in which one vertical side intersects with two or more lines, and (2) a pattern in which one horizontal side intersects with two or more lines. It is configured like this.

そして、局所矩形領域変換終了毎に次の変換のための局
所矩形領域の枠サイズを拡大し、かつ枠サイズを広げた
結果前記■■のパターンが検出されたとき枠サイズを縮
小することにより、枠サイズを調整する局所矩形領域枠
サイズ調整手段が設けられる。
Then, each time the local rectangular area conversion is completed, the frame size of the local rectangular area for the next conversion is expanded, and as a result of expanding the frame size, when the pattern of ■■ is detected, the frame size is reduced, A local rectangular area frame size adjustment means is provided for adjusting the frame size.

(作用) 本発明の動作は、画像メモリ記憶された原図表の領域内
において局所矩形領域を無作為に位置指定して局所矩形
領域切り出し手段により切り出し、その切り出した局所
矩形領域のパターンが予め定めた画像パターンのいずれ
に属するかをパターン判断手段により判断する。局所矩
形領域画像変換手段はパターン判断の結果に応じて局所
矩形領域の画像を直線からなる整った線画像に変換する
(Operation) The operation of the present invention is to randomly specify a local rectangular area within the area of the original chart stored in the image memory and cut it out by the local rectangular area cutting means, and the pattern of the cut out local rectangular area is predetermined. The pattern determining means determines to which of the image patterns the image belongs to. The local rectangular area image converting means converts the image of the local rectangular area into a neat line image consisting of straight lines in accordance with the result of pattern determination.

このような無作為に位置を選んでの局所的な変換を画像
の全領域にわたって繰り返すことにより、手書きの表の
斜めの成分をも含む縦および横の線を、すべて水平およ
び垂直の直線に変換、整形することができる。
By repeating this local transformation at randomly selected positions over the entire area of the image, all vertical and horizontal lines, including diagonal components, in a handwritten table are converted into horizontal and vertical straight lines. , can be shaped.

局所矩形領域の変換のためのパターンは、具体的態様に
お〜1ては、前記パターン■〜■の5種類だけであり、
そのパターンに応じた線の描き換えの処理は、前記処理
(a)〜(e)のように、点と点を直線で結ぶこと、お
よびある点から直線に対して水平線または垂直線をのば
すことと(1う非常に簡単な処理からなるので、処理の
ための構成が比較的簡単であり。高速に実行が可能であ
る。
In a specific embodiment, there are only five types of patterns for converting a local rectangular area:
The process of redrawing lines according to the pattern involves connecting the points with a straight line, and extending a horizontal line or a vertical line from a certain point to the straight line, as in processes (a) to (e) above. (1) Since it consists of very simple processing, the configuration for processing is relatively simple and it can be executed at high speed.

また、本発明において局所矩形領域枠サイズ調整部を設
けた態様においては、1辺が線と2点で交わる変換不能
なパターンを除去するように、各局所矩形領域の選択毎
に枠の大きさを最適に調整することができ、効率的で正
確な清書を行なうことができる。
In addition, in an aspect of the present invention in which a local rectangular area frame size adjustment unit is provided, the size of the frame is adjusted for each selection of each local rectangular area so as to remove an unconvertible pattern in which one side intersects with a line at two points. can be optimally adjusted, and efficient and accurate copying can be performed.

(実施例) 第1図は本発明の一実施例の構成を示すもので、手書き
された縦横の罫線(表の線部分)と文字からなる表を含
む文書を清書するための装(在の全体の構成を示すブロ
ック図である。
(Embodiment) Fig. 1 shows the configuration of an embodiment of the present invention, which is a device for copying a document including a table consisting of handwritten vertical and horizontal ruled lines (line part of the table) and characters. FIG. 2 is a block diagram showing the overall configuration.

この装置は、手書きの原図表を2値化して取り込むイメ
ージスキャナ1と、取り込んだ画像から文字部分とそれ
以外の画像部分に分離し、必要な前処理を行なう文字・
画像分離装r!12と、分離した文字画像を認識し対応
する文字コードを出力する文字認識装置t!3と、表か
ら文字部分を除いた縦横の罫線の部分を整形して水平お
よび垂直の直線からなる罫線に変換する罫線部清書装[
4と、文字認識部5の出力および罫線部清四装Et4の
出力を合成して、清書済み図表を得る文字・画像合成装
置5からなっている。
This device consists of an image scanner 1 that binarizes and captures handwritten original charts, and a text/image scanner that separates text and other image parts from the captured image and performs necessary preprocessing.
Image separation r! 12, and a character recognition device t! that recognizes the separated character image and outputs the corresponding character code. 3, and a ruled line cleansing device that formats the vertical and horizontal ruled lines from the table excluding the text and converts them into ruled lines consisting of horizontal and vertical straight lines.
4, and a character/image synthesizing device 5 which synthesizes the output of the character recognition section 5 and the output of the ruled line clearing section Et4 to obtain a faired chart.

罫線部清書装!+24が、本発明の特徴部分であり、フ
レームメモリ411局所矩形領域切り出し部42、パタ
ーン判断部43、局所矩形領域枠サイズ調整部44、お
よび局所領域画像変換部45からなっている。
Lined section clean book! +24 is a characteristic part of the present invention, which is composed of a frame memory 411, a local rectangular area cutting unit 42, a pattern determining unit 43, a local rectangular area frame size adjusting unit 44, and a local area image converting unit 45.

第2図はその動作フロー図である。FIG. 2 is an operational flow diagram.

手書きの原図表はイメージスキャナlによって読み込ま
れ、文字・画像分離装置2により文字領域が除かれ、必
要な前処理をされた第5図に示すような罫線部分の2値
画像がフレームメモリ41に蓄えられる(第2図■)。
The handwritten original diagram is read by the image scanner l, the character area is removed by the character/image separation device 2, and a binary image of the ruled line portion, as shown in FIG. It is stored (Fig. 2 ■).

局所矩形領域切り出し部42は、フレームメモリ41に
蓄えられた線画像上の任意の一点Pを無作為に選ぶ(■
)。例えば、乱数発生器によりフレームメモリの41の
1つのアドレスを発生し、そのアドレスの画素を読み出
し、それが黒画素であればそのアドレスを点Pのアドレ
スとし、白画素であればもう一度点Pを選びなおす。そ
して選んだ点Pを中心にして縦が縦横がbの大きさの矩
形領域内の各アドレスを順次発生し、そのアドレスによ
り画像データをフレームメモリ41から読み出す(■)
The local rectangular area cutting unit 42 randomly selects an arbitrary point P on the line image stored in the frame memory 41 (■
). For example, generate one address of 41 in the frame memory using a random number generator, read out the pixel at that address, and if it is a black pixel, use that address as the address of point P, and if it is a white pixel, read point P again. Re-select. Then, each address in a rectangular area of size b in length and width is sequentially generated with the selected point P as the center, and image data is read from the frame memory 41 using the address (■)
.

パターン判断部43は局所矩形領域切り出し部42によ
って読み出された局所矩形領域のパターンを判断する。
The pattern determining unit 43 determines the pattern of the local rectangular area read out by the local rectangular area cutting unit 42.

即ち、局所矩形領域の枠の各辺が画像の線とどのように
交わるかを調べ、次のどのパターンに属するかを決定す
る(■)。
That is, it is checked how each side of the frame of the local rectangular area intersects with the line of the image, and it is determined which of the following patterns it belongs to (■).

(a) 1辺で交わるパターン (b)  向い合う2辺で交わるパターン(C)  隣
り合う2辺で交わるパターン(d) 3辺で交わるパタ
ーン (e) 4辺で交わるパターン (f)  縦の1辺aが2本以上の線と交わるパターン
(a) Pattern that intersects on one side (b) Pattern that intersects on two opposite sides (C) Pattern that intersects on two adjacent sides (d) Pattern that intersects on three sides (e) Pattern that intersects on four sides (f) Vertical 1 A pattern where side a intersects two or more lines.

(g)viの1辺すが2本以上の腺と交わるパターン。(g) A pattern in which one side of vi intersects two or more glands.

局所矩形領域枠サイズ調整部44は、局所矩形領域が矩
形の各辺の2点以上において図表の罫線を横切らないも
のだけを選ぶように調整するために、上記(f)、(g
)のパターンを検出したとき、各辺al bを短くして
局所矩形領域を読み出すよう局所矩形領域切りだし部4
2に指示する(■。
The local rectangular area frame size adjustment unit 44 adjusts the local rectangular area to select only those that do not cross the borders of the diagram at two or more points on each side of the rectangle.
) is detected, the local rectangular area cutting unit 4 shortens each side al b and reads out the local rectangular area.
Instruct 2 (■.

■)。また、各局所矩形領域の描き換えが終る毎に全領
域の変換処理が終了したか否かを判定しく@)、まだ終
了していないとき、各辺al bを長(して次の局所矩
形領域の処理に移る(@)。
■). In addition, each time the redrawing of each local rectangular area is completed, it is determined whether the conversion process of the entire area has been completed (@), and if it has not been completed yet, each side al b is Move on to area processing (@).

このように各辺al  bを長くして次の局所矩形領域
を切り出し、長すぎたら短くするよう調整することによ
り、変換の進行に従ってより大きい適切な範囲の直線化
の変換を行なうことができる。
In this way, by lengthening each side alb to cut out the next local rectangular area, and adjusting to shorten it if it is too long, it is possible to perform linearization conversion over a larger and more appropriate range as the conversion progresses.

第3図は、局所矩形領域画像変換部45の変換動作を説
明するための図である。
FIG. 3 is a diagram for explaining the conversion operation of the local rectangular area image conversion section 45.

パターン判断部43の判断結果が各辺と図表の線とが1
辺で交わることを示すとき、同図(a)に示すように線
を消去する(■)。
The judgment result of the pattern judgment unit 43 is that each side and the line of the chart are 1
When indicating that the lines intersect at a side, the lines are erased (■) as shown in (a) of the same figure.

同様に向い合う2辺で交わるとき第3図(b)に示すよ
うに、交点間を直線で結ぶよう描き換える(■)。
Similarly, when two opposite sides intersect, as shown in Figure 3(b), the intersection points are redrawn so as to be connected by a straight line (■).

隣合う2辺で交わるとき、第3図(C)に示すように、
各交点から辺に垂直にのばした線で溝成される角に描き
換える(■)。
When two adjacent sides intersect, as shown in Figure 3 (C),
Redraw the corners to be grooved by lines extending perpendicular to the sides from each intersection (■).

3辺で交わるとき、第3図(d)に示すように、向かい
合う2辺上の交点間に直線を引き、他の1辺上の交点か
らその直線まで垂線をのばして、丁字状に描き換える(
@l)。
When they intersect on three sides, as shown in Figure 3(d), draw a straight line between the intersection points on the two opposite sides, extend a perpendicular line from the intersection on the other side to that straight line, and redraw it in a T-shape. (
@l).

4辺で交わるとき、第3図(e)に示すように、向かい
合う2辺上の交点間にそれぞれ直線を描いて、十字状に
描き換える(■)。
When they intersect on four sides, as shown in Figure 3(e), draw straight lines between the intersection points on the two opposite sides and redraw them in a cross shape (■).

一つの局所矩形領域の変換が終わる毎に、全領域の変換
が終了したかどうかを判定する(@)。
Every time the conversion of one local rectangular area is completed, it is determined whether the conversion of all areas is completed (@).

その判定は例えば、全領域中に斜めの線が存在するか否
かを調べることによって行なうことができる。判定の結
果まだ斜めの線が存在し、従って変換が終了していない
とき、前述のように領域のサイズを拡大指定して(@)
、次の無作為に選んだ点Pを中心とする局所矩形領域の
処理に移る。
This determination can be made, for example, by checking whether a diagonal line exists in the entire area. As a result of the judgment, if there are still diagonal lines and therefore the conversion is not completed, specify the enlargement of the area size as described above (@)
, the process moves on to the next local rectangular area centered on the randomly selected point P.

以上のような処理を繰り返して図表全体の整形を進める
。終了判定の結果、斜めの線が存在しなくなったとき、
処理が終了する。
The above process is repeated to format the entire diagram. When the diagonal line no longer exists as a result of the end judgment,
Processing ends.

第4図は変換の経過の一例を示すもので、(a)(b)
、(c)と描き換えを何回か繰り返して行くうちに処理
前の曲線のほぼ中心に位置するようになり、かつ、全体
的に次第に直線に近付いて行く様子がわかる。
Figure 4 shows an example of the process of conversion; (a) (b)
, (c) are repeated several times, it comes to be located almost at the center of the curve before processing, and it can be seen that the overall shape gradually approaches a straight line.

第5図に示す手書きの表の罫線は、処理の終了後に、第
6図のように直線のみからなり、不要な線が削除され、
角、交点が整えられたものとなる。
After the processing is completed, the handwritten table ruled lines shown in Figure 5 consist of only straight lines, as shown in Figure 6, and unnecessary lines are deleted.
The corners and intersections will be arranged.

なお、本実施例は、最も外側に枠のある閉じた表を対象
として清書する場合について説明したが、最も外側に枠
のない開いた表やアンダーラインのような線分を対象と
する場合には、線の端部のパターンに対する描き換えの
条件を代えればよい。
Note that this embodiment has been explained for the case where a closed table with a frame on the outermost side is to be formatted, but when the target is an open table without a frame on the outermost side or a line segment such as an underline. In this case, the conditions for redrawing the pattern at the end of the line may be changed.

(発明の効果) 以上に詳述したように、本発明は無作為に位置を選んで
の局所的な変換を画像の全領域にわたって繰り返すこと
により、手書きの表の斜めの成分をも含む縦および横の
線を、すべて水平および垂直の直線に変換、整形するこ
とができ、従来技術には見られない図表の清書装置を実
現することができる。
(Effects of the Invention) As described in detail above, the present invention enables vertical and vertical transformations, including diagonal components of a handwritten table, to be performed by randomly selecting positions and repeating local transformation over the entire area of the image. All horizontal lines can be converted and shaped into horizontal and vertical straight lines, making it possible to realize a chart and table copying device that has not been found in the prior art.

もし、その局所的な変′換の位置を規則的に順次選んで
いくと、始点位置に直線成分が収束し、偏寄した図表と
なってしまうが、本発明では上述のように局所的な変換
位置を無作為に選ぶので、原図表の線分存在領域の平均
的な位置に(即ち、偏りのない位置に)水平および垂直
の直線を形成することができる。
If the positions of the local transformations are selected in sequence in a regular manner, the straight line components will converge to the starting point position, resulting in a biased diagram, but in the present invention, as described above, the local transformation Since the conversion positions are selected at random, horizontal and vertical straight lines can be formed at average positions (that is, at unbiased positions) in the line segment existing area of the original chart.

本発明の具体的態様においては、局所矩形領域の変換の
ためのパターンは、前記パターン■〜■の5種類だけで
あり、そのパターンに応じた線の描き換えの処理は、枠
内消去、直線、角、丁字、十字の各処理のように、点と
点を直線で結ぶこと、およびある点から直線に対して水
平線または垂直線をのばすことという非常に簡単な処理
からなるので、処理のためのtrIff成が比較的11
 Illであり、高速に実行が可能である。
In a specific embodiment of the present invention, there are only five types of patterns for converting a local rectangular area, and the processing for redrawing lines according to the patterns includes frame erasure, straight line , corners, cloves, and crosses, which consist of very simple processes such as connecting points with a straight line and extending a horizontal or perpendicular line from a certain point to the straight line. trIff configuration is relatively 11
Ill, and can be executed at high speed.

また、本発明において局所矩形領域枠サイズ調整部を設
けた態様においては、1辺が線と2点で交わる変換不能
なパターンを除去するように、各局所矩形領域の選択毎
に枠の大きさを最適に調整することができ、効率的で正
確な?+’t aを行なうことができる。
In addition, in an aspect of the present invention in which a local rectangular area frame size adjustment unit is provided, the size of the frame is adjusted for each selection of each local rectangular area so as to remove an unconvertible pattern in which one side intersects with a line at two points. Can be adjusted optimally, efficiently and accurately? +'t a can be performed.

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。 第2図は第1図の実施例の動作を示す動作フロー図であ
る。 第3図(a)〜(e)は局所矩形領域のパターン毎の描
き換えの処理を示す図である。 第4図(a)〜(d)は描き換えの例を示す図である。 第5図は手書きの表の文字部を除いた罫線部の一例を示
す図である。 第6図は第5図の手書きの罫線部を本発明により清書し
た結果を示す図である。 1・・・イメージスキャナ、2・・・文字・画像分離装
置、3・・・文字認識装置、4・・・罫線部清書装置、
41・・・フレームメモリ、42・・・局所矩形領域切
り出し部、43・・・パターン判断部、44・・・局所
矩形領域枠サイズ調整部、45・・・局所矩形領域画像
変換部、5・・・文字・画像合成装置。 特許出願人 富士ゼロックス株式会社 代  理  人  弁理士  岩  上  界第2図 第1図 第3図 第4図 イ
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is an operation flow diagram showing the operation of the embodiment of FIG. 1. FIGS. 3A to 3E are diagrams showing the redrawing process for each pattern of a local rectangular area. FIGS. 4(a) to 4(d) are diagrams showing examples of redrawing. FIG. 5 is a diagram showing an example of the ruled line portion of a handwritten table excluding the character portion. FIG. 6 is a diagram showing the result of fine-printing the handwritten ruled line portion of FIG. 5 according to the present invention. 1... Image scanner, 2... Character/image separation device, 3... Character recognition device, 4... Ruled line copying device,
41... Frame memory, 42... Local rectangular area cutting unit, 43... Pattern determining unit, 44... Local rectangular area frame size adjustment unit, 45... Local rectangular area image converting unit, 5. ...Character/image synthesis device. Patent applicant: Fuji Xerox Co., Ltd. Representative: Patent attorney Kai Iwakami Figure 2 Figure 1 Figure 3 Figure 4 I

Claims (3)

【特許請求の範囲】[Claims] (1)2値化した原図表の情報を記憶する画像メモリと
、 画像メモリの原図表の記憶された領域内において局所矩
形領域を無作為に位置指定して切り出す局所矩形領域切
り出し手段と、 切り出した局所矩形領域のパターンが予め定めた画像パ
ターンのいずれに属するかを判断するパターン判断手段
と、 パターン判断の結果に応じて局所矩形領域の画像を直線
からなる整った線画像に変換する局所矩形領域画像変換
手段と を備えたことを特徴とする表の清書装置。
(1) An image memory that stores information on the binarized original chart; a local rectangular region cutting means that randomly specifies a position and cuts out a local rectangular region within the area where the original chart is stored in the image memory; a pattern determination means for determining which of predetermined image patterns the pattern of the local rectangular area belongs to; and a local rectangle for converting the image of the local rectangular area into a neat line image made of straight lines according to the result of the pattern determination. A table formatting device comprising: area image conversion means.
(2)前記パターン判断手段は、局所矩形領域の枠の4
辺が図表の線とどのように交わるかを調べ、 [1]1辺で交わるパターン [2]向い合う2辺で交わるパターン [3]隣合う2辺で交わるパターン [4]3辺で交わるパターン [5]4辺で交わるパターン のいずれのパターンに属するかを判断するものであり、 前記局所矩形領域画像変換手段は、パターン判断手段の
判断に応じて、 [1]1辺で交わるとき、枠内の画像を消去する [2]向い合う2辺で交わるとき、交点の間の直線に描
き換える [3]隣合う2辺で交わるとき、各交点から辺に垂直に
のばした線で構成される角に描き換える [4]3辺で交わるとき、向かい合う2辺上の交点間に
直線を引き、他の1辺上の交点からその直線まで垂線を
のばして、丁字状に描き換える [5]4辺で交わるとき、向かい合う2辺上の交点間に
それぞれ直線を描いて、十字状に描き換える といういずれかの変換処理を行なうものであることを特
徴とする請求項(1)記載の清書装置。
(2) The pattern determining means may be configured to
Examine how the sides intersect with the lines on the diagram, and find out: [1] A pattern that intersects on one side [2] A pattern that intersects on two opposite sides [3] A pattern that intersects on two adjacent sides [4] A pattern that intersects on three sides [5] The local rectangular area image conversion means determines which of the patterns that intersect on four sides belongs to, and the local rectangular area image conversion means performs the following steps according to the judgment of the pattern judgment means: [1] When the patterns intersect on one side, the frame [2] When two opposite sides intersect, draw a straight line between the intersection points. [3] When two adjacent sides intersect, the line is drawn perpendicularly to the side from each intersection. [4] When three sides intersect, draw a straight line between the intersection points on the two opposite sides, extend a perpendicular line from the intersection on the other side to that straight line, and redraw it in a T-shape [5] The fairing device according to claim (1), wherein when the four sides intersect, a straight line is drawn between the intersection points on two opposite sides, and the conversion process is performed to redraw the lines in a cross shape. .
(3)前記パターン判断手段を、さらに [6]縦の1辺が2本以上の線と交わるパターンおよび [7]横の1辺が2本以上の線と交わるパターンを検出
するよう構成すると共に、 一つの局所矩形領域変換終了毎に次の変換のための局所
矩形領域を限定する矩形枠のサイズを広大し、かつ矩形
枠のサイズを広げた結果前記[6][7]のパターンが
検出されたとき矩形枠のサイズを縮小することにより、
矩形枠のサイズを調整する局所矩形領域枠サイズ調整手
段を設けたことを特徴とする請求項(2)記載の清書装
置。
(3) The pattern determining means is further configured to detect [6] a pattern in which one vertical side intersects with two or more lines, and [7] a pattern in which one horizontal side intersects with two or more lines, and , Each time one local rectangular area conversion is completed, the size of the rectangular frame that limits the local rectangular area for the next conversion is enlarged, and as a result of expanding the size of the rectangular frame, the patterns in [6] and [7] above are detected. By reducing the size of the rectangular frame when
3. The fair copying apparatus according to claim 2, further comprising local rectangular area frame size adjusting means for adjusting the size of the rectangular frame.
JP22532688A 1988-09-07 1988-09-07 Copy-writing device Expired - Lifetime JP2762476B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22532688A JP2762476B2 (en) 1988-09-07 1988-09-07 Copy-writing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22532688A JP2762476B2 (en) 1988-09-07 1988-09-07 Copy-writing device

Publications (2)

Publication Number Publication Date
JPH0272492A true JPH0272492A (en) 1990-03-12
JP2762476B2 JP2762476B2 (en) 1998-06-04

Family

ID=16827600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22532688A Expired - Lifetime JP2762476B2 (en) 1988-09-07 1988-09-07 Copy-writing device

Country Status (1)

Country Link
JP (1) JP2762476B2 (en)

Also Published As

Publication number Publication date
JP2762476B2 (en) 1998-06-04

Similar Documents

Publication Publication Date Title
JP3504054B2 (en) Document processing apparatus and document processing method
JP3805005B2 (en) Image processing apparatus, optical character recognition apparatus, and methods thereof
US6208744B1 (en) Document image processor and method for setting a document format conforming to a document image
US6327384B1 (en) Character recognition apparatus and method for recognizing characters
JPH0713995A (en) Automatic determination device of feature of text
US6178264B1 (en) Image cutout method and apparatus
JP2006345314A (en) Image processing apparatus and image processing method
JPH0612540B2 (en) Document creation support device
JPH0272492A (en) Fair copying device
JP3122476B2 (en) Automatic document copy machine
JPH07121734A (en) Character image editing device
JPH0877324A (en) Electronic filing device
JPH05292294A (en) Digital copying machine
JP4574347B2 (en) Image processing apparatus, method, and program
JPH05159062A (en) Document recognition device
JP2937607B2 (en) Layout creation device
JPS61198376A (en) Optical character reader
JP2755299B2 (en) Image processing method
JP2933947B2 (en) Image processing method and apparatus
JP3660143B2 (en) Seal image processing device
JPH0728934A (en) Document image processor
JP3157534B2 (en) Table recognition method
JPH0459668B2 (en)
JPH03103996A (en) Optical character reader
JPS6327990A (en) Character recognizing method