JPH0520495A - Image processing device - Google Patents
Image processing deviceInfo
- Publication number
- JPH0520495A JPH0520495A JP3171133A JP17113391A JPH0520495A JP H0520495 A JPH0520495 A JP H0520495A JP 3171133 A JP3171133 A JP 3171133A JP 17113391 A JP17113391 A JP 17113391A JP H0520495 A JPH0520495 A JP H0520495A
- Authority
- JP
- Japan
- Prior art keywords
- data
- conversion
- image
- image data
- converted
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Character Input (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Character Discrimination (AREA)
Abstract
(57)【要約】
【目的】 1つの画像データを他の形式のデータに変換
する際、変換対象の画像を、その部分ごとに異なる形式
のデータに一度に変換できるようにする。
【構成】 IMEM4に格納されている画像データはC
RT13に表示されている。オペレータは表示されてい
る画像データから、文字認識して文字コードに変換する
部分と、図形データに変換する部分とを指定する。変換
開始が指示されると、先に指定された領域を指定された
形式に変換し、PMEM3またはIMEM4の空き領域
に格納しておく。変換が終了したら、変換後のデータを
格納先から読み出し、イメージデータを再構成してそれ
らを合成し、CRT13に表示する。
(57) [Abstract] [Purpose] When converting one image data into data of another format, an image to be converted can be converted into data of different formats at a time for each part. [Structure] Image data stored in IMEM4 is C
It is displayed on RT13. The operator designates, from the displayed image data, a portion for character recognition and conversion into a character code and a portion for conversion into graphic data. When the conversion start is instructed, the previously specified area is converted into the specified format and stored in the empty area of the PMEM 3 or IMEM 4. When the conversion is completed, the converted data is read from the storage destination, the image data is reconstructed, they are combined, and the CRT 13 is displayed.
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば画像を読み取っ
てデータ変換する画像処理装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for reading an image and converting the data.
【0002】[0002]
【従来の技術】従来ひとつの画像データを、図形データ
と文字データのように異なる種類のデータに変換する装
置にあっては、画像データを図形データに変換する機能
と画像データを文字データに変換する機能という様に、
各変換機能が独立して存在していた。このため、ひとつ
の画像のある部分を図形データに、別の部分を文字デー
タに変換するという場合には、まず図形データを得るた
めに画像をスキヤナ等から読み込み、読み込んだ画像を
編集して不要な部分を取り去った後で図形データに変換
して、得られた図形データを一時的に記憶しておく。次
に文字データを得るために前記画像データを再度スキヤ
ナ等から読み直し、読み込んだ画像を編集して文字デー
タに変換する。この様に各変換を独立して行い、得られ
たデータから画像データを再生し、それらを再合成して
初めて元の画像を再現できた。2. Description of the Related Art Conventionally, in an apparatus for converting one type of image data into different types of data such as graphic data and character data, there is a function of converting the image data into graphic data and the image data into character data. Function to do,
Each conversion function existed independently. For this reason, if you want to convert one part of an image to graphic data and another part to character data, you need to first read the image from scanner, etc. to obtain the graphic data, and then edit the read image. After removing these portions, the data is converted into graphic data and the obtained graphic data is temporarily stored. Next, in order to obtain the character data, the image data is read again from the scanner and the read image is edited and converted into the character data. In this way, each conversion was performed independently, image data was reproduced from the obtained data, and the original image could be reproduced only by recombining them.
【0003】[0003]
【発明が解決しようとしている課題】しかしながら上述
した装置においては、ひとつの画像データ内のある部分
を文字データに、別のある部分を図形データに変換した
い場合でも、文字データに変換するために画像データを
読み込み、また図形データに変換するために再度同一の
画像データを読み直さねばならない。この様に、変換の
種類が変わるごとに画像を読み直す必要があり、処理が
煩雑になるという問題点と、画像データを読み込むため
の入力装置がスキヤナであつた場合には、読み込む度に
画像がわずかではあるが変化してしまうため、正確な変
換がしずらいという問題点があつた。However, in the above-mentioned device, even when it is desired to convert one portion of one image data into character data and another portion into graphic data, the image is converted to the character data. The same image data must be read again in order to read the data and convert it into graphic data. In this way, it is necessary to re-read the image every time the type of conversion changes, and the problem that the process becomes complicated, and if the input device for reading the image data is a scanner, the image is read every time it is read. There is a problem that it is difficult to perform accurate conversion because it changes slightly.
【0004】また上述した装置においては、画像データ
を何度も読み直すという手間に加え、必要な領域のみを
図形データ、または文字データに変換させねばならない
ため、読み込む度にその画像データに対して画像編集等
をおこなわなければならないという問題点があつた。Further, in the above-mentioned apparatus, in addition to the trouble of re-reading the image data many times, only the necessary area has to be converted into graphic data or character data. There was a problem that editing had to be done.
【0005】本発明は上記従来例に鑑みてなされたもの
で、1つの画像データに対して指定した部分ごとに異な
る変換を一度に施すことができ、変換して得られた異な
る種類のデータから元の画像を簡単に再構成できる画像
処理装置を提供することを目的とする。The present invention has been made in view of the above-described conventional example, and different conversions can be applied to one image data at a time for each designated portion, and different types of data obtained by the conversion can be used. An object is to provide an image processing device that can easily reconstruct an original image.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に本発明の画像処理装置は次の様な構成からなる。In order to achieve the above object, the image processing apparatus of the present invention has the following configuration.
【0007】画像データを他の形式に変換して格納して
おく画像処理装置であって、画像データを他のデータ形
式に変換する際のその形式を指定する第1の指定手段
と、該指定手段で指定された形式に変換する領域を画像
データ中に指定する第2の指定手段とを1組の形式指定
手段として、前記第1の指定手段で指定するデータ形式
が異なる複数の形式であるような複数組の形式指定手段
と、前記形式指定手段により指定された領域内の画像デ
ータを指定されたデータ形式に変換する変換手段とを備
える。An image processing apparatus for converting image data into another format and storing the converted image data, the first specifying means for specifying the format when converting the image data into another data format, and the specification. The second designating means for designating the area to be converted into the format designated by the means in the image data is a set of format designating means, and the data formats designated by the first designating means are different formats. A plurality of sets of format designating means and a converting means for converting the image data in the area designated by the format designating means into a designated data format are provided.
【0008】[0008]
【作用】上記構成により本発明の画像処理装置は、1つ
の画像データをいくつかの部分に分け、その部分ごとに
異なる形式のデータに変換する。また、変換されたデー
タを画像データに戻し、それらを合成することができ
る。With the above construction, the image processing apparatus of the present invention divides one image data into several parts, and converts each part into data of a different format. Also, the converted data can be returned to the image data and they can be combined.
【0009】[0009]
【実施例】以下、添付図面に従つて本発明の実施例を詳
細に説明する。なお、本発明の機能が実行されるのであ
れば、単体の機器であつても、複数の機器からなるシス
テムであつても、LAN等のネツトワークを介して処理
が行なわれるシステムであつても、本発明が適用される
ことは言うまでもない。Embodiments of the present invention will now be described in detail with reference to the accompanying drawings. As long as the functions of the present invention are executed, it may be a single device, a system including a plurality of devices, or a system in which processing is performed via a network such as a LAN. Needless to say, the present invention is applied.
【0010】[実施例1]図1は本発明の実施例である
画像処理システムのシステムブロツク図である。1はシ
ステムバスであり、これから説明する各構成ブロツクは
このシステムバスに接続されている。2はCPU(Cent
rtal Processing Uint)である。3はプログラムあるい
はテキストを格納するメモリ(以下PMEMと称す)で
ある。編集処理のためのプログラムは適宜ハードデイス
ク14からPMEM3に選択/読み込みされ、CPU2
にて実行される。又、キーボード9から入力されたデー
タは、PMEM3にコード情報として格納される。画像
データから変換された図形データもPMEMに格納され
る。4はイメージメモリ(以下IMEMと称す)、5は
イメージスキヤナ、6は画像入出力制御部、7はプリン
タであり、イメージスキヤナ5から読み込まれた画像デ
ータは、4のIMEMに展開されたのちVRAM11上
に展開され、CRT13に表示される。また、印刷イメ
ージはビツトマツプデータとしてIMEM4に展開され
たのち、画像入出力制御部6の制御によりプリンタ7に
出力される。8は入力制御部であり、キーボード9・マ
ウス10等の入力装置が接続される。操作者はこのキー
ボード9を操作することによりシステムの動作指令等を
行う。またマウス10はCRT13上で画像情報を選択
・加工指示するためのもので、本実施例ではマウスを使
用しているがポインテイングデバイスであれば良い。マ
ウス10によりCRT13上のマウスカーソルをX・Y
方向に任意に移動して、メニユーの選択・画像データの
選択・図形データの選択・編集を行なう。11はビデオ
イメージメモリ(以下、VRAMと称す)、12は表示
出力制御部、13はCRTである。CRT13に表示さ
れるデータはVRAM11にビツトマツプデータとして
展開されている。例えば、図形データであれば、その位
置・属性情報に対応した図形パターンがVRAMにイメ
ージとして展開されている。またソフト制御によりVR
AMのデータに直接カーソルを発生し表示することが可
能である。14は外部記憶装置制御部、15・16はデ
ータフアイル用のデイスクで、15はハード・デイスク
(以下HDと称す)であり、16はフロツピ・デイスク
(以下FDと称す)である。[First Embodiment] FIG. 1 is a system block diagram of an image processing system according to a first embodiment of the present invention. Reference numeral 1 is a system bus, and each constituent block to be described below is connected to this system bus. 2 is CPU (Cent
rtal Processing Uint). Reference numeral 3 is a memory (hereinafter referred to as PMEM) that stores a program or text. A program for editing processing is appropriately selected / read from the hard disk 14 to the PMEM 3, and the CPU 2
It is executed in. The data input from the keyboard 9 is stored in the PMEM 3 as code information. The graphic data converted from the image data is also stored in the PMEM. Reference numeral 4 is an image memory (hereinafter referred to as IMEM), 5 is an image scanner, 6 is an image input / output control unit, 7 is a printer, and the image data read from the image scanner 5 is expanded into 4 IMEMs. After that, it is developed on the VRAM 11 and displayed on the CRT 13. Further, the print image is developed in the IMEM 4 as bit map data and then output to the printer 7 under the control of the image input / output control unit 6. An input control unit 8 is connected with input devices such as a keyboard 9 and a mouse 10. The operator operates the keyboard 9 to issue operation commands for the system. The mouse 10 is for selecting and instructing image information on the CRT 13. In this embodiment, the mouse is used, but any pointing device may be used. Use the mouse 10 to move the mouse cursor on the CRT 13 to XY
Move freely in any direction to select menu, image data, graphic data, or edit. Reference numeral 11 is a video image memory (hereinafter referred to as VRAM), 12 is a display output control unit, and 13 is a CRT. The data displayed on the CRT 13 is expanded in the VRAM 11 as bit map data. For example, in the case of graphic data, a graphic pattern corresponding to the position / attribute information is developed as an image in the VRAM. Also, VR can be controlled by software.
It is possible to directly generate and display a cursor on the AM data. Reference numeral 14 is an external storage device control unit, 15 and 16 are disks for data files, 15 is a hard disk (hereinafter referred to as HD), and 16 is a floppy disk (hereinafter referred to as FD).
【0011】図2から図7までは、本実施例の画像処理
システムの動作内容を説明する図である。2 to 7 are diagrams for explaining the operation contents of the image processing system of this embodiment.
【0012】図2はイメージスキヤナ5から画像を読み
込み、CRT13に表示した状態を示した図であり、2
1は表示画像データである。FIG. 2 is a diagram showing a state in which an image is read from the image scanner 5 and displayed on the CRT 13,
Reference numeral 1 is display image data.
【0013】図3は表示画像データ21内で図形データ
に変換したい領域を指定した図である。マウス10のC
RT13上における位置を示すカーソル(以下マウスカ
ーソルと称す)31を、変換したい領域の開始位置32
から変換したい領域の終了位置33まで、マウスの左ボ
タンを押下しながら移動することにより作られる領域3
4が変換領域となる。FIG. 3 is a diagram in which an area to be converted into graphic data is designated in the display image data 21. Mouse 10 C
A cursor (hereinafter referred to as a mouse cursor) 31 indicating a position on the RT 13 is set to a start position 32 of a region to be converted.
Area 3 created by moving from the end position 33 of the area to be converted while pressing the left mouse button
4 is the conversion area.
【0014】図4は、上記変換領域34内の画像データ
を図形データに変換する際の条件を設定するための画面
を示した図である。41は図形変換条件設定ウインドウ
であり、ウインドウ41内の条件入力エリア42にキー
ボード9から数字を入力すると、画像データの連続する
点列の長さが前記入力数字以上である場合のみ、図形デ
ータに変換する。何も入力しない場合は、図形変換領域
内の全ての画像データが図形データに変換される。確認
ボタン43を指定することにより、図形変換の条件が決
定されることになる。FIG. 4 is a view showing a screen for setting conditions for converting the image data in the conversion area 34 into graphic data. Reference numeral 41 is a figure conversion condition setting window. When a number is input from the keyboard 9 to the condition input area 42 in the window 41, the figure data is converted into the figure data only when the length of the continuous point sequence of the image data is the input number or more. Convert. If nothing is input, all the image data in the graphic conversion area is converted into graphic data. By designating the confirmation button 43, the condition for graphic conversion is determined.
【0015】図5は、連続する点列を図形データに変換
する条件を具体的に示した図である。図中、B・C・D
・Eは分岐点であり、この点で連続する点列は切れる。
すなわち本図の場合、連続する点列(以下、線分と呼
ぶ)はAB・BC・CD・DE・EF・BG・CH・D
I・EJの9個であり、これらの線分が各々独立した図
形データに変換される。例えば分岐点Bに注目すると、
線分BGの長さが図4で設定した条件に合わなかつたと
しても、線分ABまたはBCの長さが図4で設定した条
件に合っていれば、それにつながつている線分BGも条
件を満たしているとして図形に変換される。FIG. 5 is a diagram concretely showing the conditions for converting a continuous point sequence into graphic data. B, C, D in the figure
・ E is a branch point, and the continuous point sequence is cut off at this point.
That is, in the case of this figure, continuous point sequences (hereinafter referred to as line segments) are AB, BC, CD, DE, EF, BG, CH, D.
There are 9 I and EJ, and these line segments are converted into independent graphic data. For example, paying attention to the branch point B,
Even if the length of the line segment BG does not meet the condition set in FIG. 4, if the length of the line segment AB or BC meets the condition set in FIG. 4, the line segment BG connected to it also satisfies the condition. Is converted to a figure as
【0016】図6は表示画像データ21内で文字データ
に変換したい領域を指定した図であり、図3での説明と
同様の指定方法でマウスカーソル31を用いて指定す
る。このようにして指定した領域が61・62・63・
64であり、図形変換領域34と区別するために破線で
示される。図6では文字変換領域は図形変換領域の内側
に存在しているが、これは説明の都合上内側にきたため
で、実際には画像データ内のどこにあつてもかまわな
い。FIG. 6 is a diagram in which an area to be converted into character data in the display image data 21 is designated, and is designated by using the mouse cursor 31 in the same designation method as described in FIG. The areas specified in this way are 61, 62, 63,
64, which is indicated by a broken line to distinguish it from the graphic conversion area 34. In FIG. 6, the character conversion area exists inside the figure conversion area, but this is because it is inside for the sake of convenience of explanation, so that it may actually exist anywhere in the image data.
【0017】図7は画像データ内の図形変換領域34と
文字変換領域61・62・63・64を各々図形データ
および文字データに変換したあとの状態を示した図であ
る。図中71・72・73・74・75は文字データに
変換された領域で、それ以外は図形データに変換されて
いる。また、図6の画像データで表示されていながら図
7に示されていない画像は、図形データに変換する際に
前記の図形変換条件により図形データに変換されなかつ
た画像データであり、このような画像データは白く消去
されている。FIG. 7 is a diagram showing a state after the graphic conversion area 34 and the character conversion areas 61, 62, 63 and 64 in the image data are converted into graphic data and character data, respectively. In the figure, 71, 72, 73, 74, and 75 are areas converted into character data, and the other areas are converted into graphic data. The image displayed in the image data of FIG. 6 but not shown in FIG. 7 is the image data that has not been converted into the graphic data according to the above-mentioned graphic conversion condition when converting into the graphic data. The image data is erased white.
【0018】次に、実施例の画像処理システムの動作に
ついて、フローチャートを用いて説明する。Next, the operation of the image processing system of the embodiment will be described using a flow chart.
【0019】図8および図9・図10は本実施例の動作
を説明するフローチヤートであり、CPU2によって実
行される処理の手順を示したものである。図8のフロー
チヤートは図形変換・文字変換を行なうまでの画像デー
タに対する変換領域指定の動作を説明しており、図9の
フローチヤートは図形変換の処理過程を、図10のフロ
ーチャートは文字変換を実際におこない、その結果をC
RT13上に表示するまでの動作を説明している。これ
らは便宜的に分割されているが一連の処理である。また
図示したのは変換処理にかかわる部分だけで、関係ない
部分は省いてある。FIG. 8 and FIGS. 9 and 10 are flow charts for explaining the operation of the present embodiment and show the procedure of processing executed by the CPU 2. The flow chart of FIG. 8 describes the operation of designating a conversion area for image data until graphic conversion / character conversion, the flow chart of FIG. 9 shows the process of graphic conversion, and the flow chart of FIG. It is actually done and the result is C
The operation up to displaying on the RT 13 has been described. Although these are divided for convenience, they are a series of processes. Also, only the parts related to the conversion process are shown, and the unrelated parts are omitted.
【0020】まずオペレータは、図形をイメージスキャ
ナ5から読み込ませる。First, the operator reads the figure from the image scanner 5.
【0021】ステツプS1において、イメージスキヤナ
5から読み込んだ画像の画像データをIMEM4に格納
し、VRAM11に展開してCRT13に画像データを
表示する。At step S1, the image data of the image read from the image scanner 5 is stored in the IMEM 4, expanded in the VRAM 11 and displayed on the CRT 13.
【0022】次に、オペレータは図形変換領域を指定す
るために図形変換条件指定をメニユーよりマウス10を
用いて選択する。メニューが選択されたなら、選択され
た内容についてテストする。Next, the operator selects the graphic conversion condition designation from the menu using the mouse 10 to specify the graphic conversion region. If the menu is selected, test for the selected content.
【0023】まずステツプS2において、選択されたメ
ニューが図形への変換であるか文字への変換であるかテ
ストする。図形への変換であれば、ステップS3で対象
となる領域を指定させる。即ち、オペレータは画像デー
タ内の任意位置でマウスの左ボタンの押下を開始し、押
下の状態のままマウスを移動すると、上記押下開始位置
と現在のマウスカーソル位置を対角線とすると矩形が実
線で描かれる。この矩形内の領域が図形データ変換領域
となり、この領域はマウスの左ボタンの押下を終了する
ことにより確定される。図形変換領域は複数であつても
かまわない。First, in step S2, it is tested whether the selected menu is a graphic conversion or a character conversion. In the case of conversion into a figure, the target area is designated in step S3. That is, the operator starts pressing the left mouse button at an arbitrary position in the image data, and if the mouse is moved in the pressed state, the rectangle is drawn as a solid line if the pressing start position and the current mouse cursor position are diagonal lines. Be done. The area within this rectangle becomes the graphic data conversion area, and this area is determined by ending the pressing of the left mouse button. There may be a plurality of graphic conversion areas.
【0024】ステツプS4は、上記図形変換領域を指定
した時に表示される条件設定ウインドウ(図4に示す)
に対し、図形データへの変換条件を入力させるステツプ
である。オペレータはウインドウの指示に従つて条件を
入力し、確認を指定することにより図形変換条件が確定
する。この変換条件設定ウインドウは図形変換領域ひと
つについて1回表示されるため、各変換領域に対し異な
つた条件を設定することができる。Step S4 is a condition setting window (shown in FIG. 4) displayed when the graphic conversion area is designated.
On the other hand, the step for inputting the conversion condition to the graphic data. The operator inputs the conditions in accordance with the instructions in the window and designates confirmation, whereby the figure conversion conditions are fixed. Since this conversion condition setting window is displayed once for each graphic conversion region, different conditions can be set for each conversion region.
【0025】ひとつの条件設定が終えると、再びメニュ
ーから項目を選択させる。その選択内容をテストし(ス
テップS7・S2)、文字への変換条件の設定であれば
ステップS5で対象領域の指定を行わせる。すなわち、
オペレータが画像データ内の任意位置でマウスの左ボタ
ンの押下を開始し押下の状態のままマウスを移動する
と、押下開始位置と現在のマウスカーソル位置を対角線
とする矩形が破線で描かれる。破線で描かれるのは、図
形変換領域と区別できるようにしたためである。この矩
形内の領域が文字データ変換領域となり、この領域はマ
ウスの左ボタンの押下を終了することにより確定され
る。文字変換領域は複数であつてもかまわない。When one condition is set, the item is again selected from the menu. The selected contents are tested (steps S7 and S2), and if the conversion condition for the character is set, the target area is designated in step S5. That is,
When the operator starts pressing the left mouse button at an arbitrary position in the image data and moves the mouse in the pressed state, a rectangle with the pressing start position and the current mouse cursor position as a diagonal line is drawn by a broken line. The reason why it is drawn with a broken line is that it can be distinguished from the figure conversion area. The area within this rectangle becomes the character data conversion area, and this area is determined by ending the pressing of the left mouse button. There may be a plurality of character conversion areas.
【0026】ステツプS6は、文字変換領域が指定され
た時に表示される文字認識条件決定ウインドウに対し、
指定した領域内の文字が横書きか、縦書きか、スペース
を認識するか等の文字データの識別条件を入力させるス
テツプである。ウインドウの指示にしたがつてオペレー
タは認識条件を入力し、確認を指定することにより、文
字認識条件が確定される。この文字認識条件設定ウイン
ドウは変換領域ひとつについて1回表示されるため、各
変換領域に対し異なった文字認識条件を設定することが
できる。In step S6, the character recognition condition determination window displayed when the character conversion area is specified is displayed.
This is a step for inputting a character data identification condition such as whether the character in the designated area is horizontally written, vertically written, or whether a space is recognized. The operator inputs the recognition conditions according to the instruction in the window and designates confirmation, whereby the character recognition conditions are fixed. Since this character recognition condition setting window is displayed once for each conversion area, different character recognition conditions can be set for each conversion area.
【0027】図形変換領域および文字変換領域の指定が
完了した後、またメニューから項目を選択させる。その
選択内容をテストし(ステップS7)、変換処理開始が
選択されていると、指定された変換領域に対し変換処理
を開始する。変換の際に内部的にまずおこなう処理は、
文字変換領域があるかどうかの判断であり、いいかえれ
ば操作者がステツプS5・6を行なったかどうかであ
る。このステツプがステツプS8である。After the designation of the graphic conversion area and the character conversion area is completed, the item is selected from the menu again. The selected contents are tested (step S7), and when the conversion process start is selected, the conversion process is started for the designated conversion area. When converting, the first internal processing is
It is determined whether or not there is a character conversion area, in other words, whether or not the operator has performed step S5.6. This step is step S8.
【0028】ステツプS8において、文字変換領域が無
いと判断した場合には、ステツプS9・ステツプS10
は行なわず、図形変換処理にそのまま進む。If it is determined in step S8 that there is no character conversion area, steps S9 and S10 are performed.
Is not performed, and the graphic conversion processing is directly performed.
【0029】ステツプS7において、文字変換領域があ
ると判断した場合には、次のステツプS9に進み、PM
EM3もしくはIMEM4内の空いた領域に文字変換用
のバツフアを新たにとり、そこに文字変換領域内の画像
データをコピーする。このコピーバツフアは文字変換領
域ひとつに対しひとつ存在している。If it is determined in step S7 that there is a character conversion area, the process proceeds to the next step S9, where PM
A buffer for character conversion is newly created in an empty area in EM3 or IMEM4, and the image data in the character conversion area is copied there. There is one copy buffer for each character conversion area.
【0030】コピー終了後、ステツプS10において、
画像データ内の文字変換領域を白く消去する。これは図
形変換の際に、文字変換領域内の画像データを図形に誤
認識するのを防ぐ意味と、図形変換のスピードを速くす
る意味をもつている。After the copying is completed, in step S10,
The character conversion area in the image data is erased white. This has the meaning of preventing the image data in the character conversion area from being erroneously recognized as a graphic at the time of graphic conversion, and the meaning of increasing the speed of graphic conversion.
【0031】以上、条件の設定が終了したなら、ステツ
プS11から実際の図形変換・文字変換処理に入る。When the conditions have been set as described above, the actual graphic conversion / character conversion processing starts from step S11.
【0032】図9のフローチヤートについて説明する。The flow chart of FIG. 9 will be described.
【0033】まずステップS11で、変換対象の図形に
指定された変換領域があるかテストする。もしあるなら
ば、ステツプS12において図形変換領域内の画像デー
タの細線化処理を行なう。細線化処理とは、画像データ
を1ドツト幅の線画データにする処理である。本実施例
の画像処理システムでは、図形の認識の前段階の処理と
して細線化のアルゴリズムを用いているが、この細線化
手法は一手法であって、これ以外の手法を採用していて
も問題はない。First, in step S11, it is tested whether or not there is a designated conversion area in the graphic to be converted. If there is, the thinning process of the image data in the figure conversion area is performed in step S12. The thinning process is a process of converting image data into line drawing data having a width of one dot. In the image processing system of the present embodiment, the thinning algorithm is used as the process before the figure recognition, but this thinning method is only one method, and other methods are also problematic. There is no.
【0034】図形変換領域内の画像データの細線化処理
が終了した後、ステツプS13において、図形変換領域
内を走査し、画像データの連続した点列を1組抽出す
る。After the thinning process of the image data in the graphic conversion area is completed, in step S13, the graphic conversion area is scanned to extract one continuous point sequence of the image data.
【0035】次に、ステツプS14において、ステツプ
S13で抽出された連続した点列が、ステツプS4で設
定した図形変換条件に合うかどうかを判断する。ここで
条件を満たしていると判断した場合には、次のステツプ
S15に進み、満たしていなければステツプS13に戻
り、次の連続した点列の抽出を行なう。Next, in step S14, it is judged whether or not the continuous point sequence extracted in step S13 meets the graphic conversion condition set in step S4. If it is determined that the condition is satisfied, the process proceeds to the next step S15, and if not satisfied, the process returns to step S13 to extract the next continuous point sequence.
【0036】ステツプS14で条件を満たしていれば、
ステツプS15において、ステツプS13で抽出された
連続した点列について、角となる点(以下、角点と称
す)を抽出する。この角点の抽出は、本実施例では点列
の曲率を求めることによりおこなつている。ただし、こ
れ以外の手法であつても問題ない。If the condition is satisfied in step S14,
In step S15, points that become corners (hereinafter referred to as corner points) are extracted from the continuous point sequence extracted in step S13. The extraction of the corner points is performed in this embodiment by obtaining the curvature of the point sequence. However, there is no problem with other methods.
【0037】ステツプS16においては、角点を挟んで
分けられる2組の点列の一方が直線でもう一方が曲線で
あるという様に、点列の形状が異なつていると認識した
場合には、その角点で上記連続する点列を分割する。In step S16, when it is recognized that the shapes of the point sequences are different, such that one of the two sets of point sequences divided by the corner points is a straight line and the other is a curved line, The continuous point sequence is divided at the corner points.
【0038】さらに、ステツプS17において、曲線と
認識された点列に対しては、まず折れ線近似し、その近
似により求まった屈曲点をスプライン曲線の制御点とし
て、曲線の近似を行う。もちろん、近似する曲線がスプ
ライン曲線でなく、ベジエ曲線等であつても、なんら問
題はない。Further, in step S17, the point sequence recognized as a curve is first subjected to polygonal line approximation, and the curve is approximated using the bending point obtained by the approximation as a control point of the spline curve. Of course, there is no problem even if the approximated curve is not a spline curve but a Bezier curve or the like.
【0039】ステツプS18では、ステツプS17まで
の認識内容に基づいて、実際の図形データへの変換を行
なっている。本実施例においては、直線・折れ線・曲線
の3種の図形データに変換される。直線はその両端に位
置する2点を、折れ線は両端及び各頂点を、曲線は代表
点(制御点)及びそれらの点を通る近似関数を図形デー
タとする。得られた図形データはPMEM3あるいはI
MEM4の空き領域に格納しておく。変換される図形デ
ータの種類として上記3種類以外のものをつけ加えても
良い。At step S18, conversion into actual graphic data is performed based on the recognition contents up to step S17. In the present embodiment, it is converted into three types of graphic data: straight line, broken line, and curved line. A straight line has two points located at both ends thereof, a polygonal line has both ends and each vertex, and a curve has representative points (control points) and an approximate function passing through those points as graphic data. The obtained graphic data is PMEM3 or I
It is stored in the empty area of MEM4. Other than the above three types may be added as the types of converted graphic data.
【0040】ステツプS19において、細線化したデー
タ全てを図形データに変換したかどうかを判断し、まだ
全て変換していない場合は、ステツプS13の点列の抽
出処理から繰返す。In step S19, it is determined whether all the thinned data have been converted into graphic data, and if not all converted, the process is repeated from the point sequence extraction processing in step S13.
【0041】以上で図形データへの変換が終了する。次
に、図10の文字変換処理についての説明を行なう。This completes the conversion into graphic data. Next, the character conversion process of FIG. 10 will be described.
【0042】文字認識の最初のステツプとして、文字変
換すべき領域が指定されているかテストする(ステップ
S20)。As the first step of character recognition, it is tested whether an area to be converted is designated (step S20).
【0043】もしあれば、ステツプS21においてステ
ツプS9でコピーされたバツフア内の画像データに対し
て文字切り処理を行なう。If there is, in step S21, character cutting processing is performed on the image data in the buffer copied in step S9.
【0044】次にステツプS22において、文字切りさ
れた画像について文字の認識処理を実行する。Next, in step S22, character recognition processing is executed for the image cut into characters.
【0045】ステツプS23において、ステツプS22
での文字認識した結果と単語辞書との単語照合を行な
う。In step S23, step S22
The word matching is performed with the result of character recognition in the word dictionary.
【0046】ステツプS24において、ステツプS22
での文字認識結果に基づき、文字(コード)データに変
換する。変換された結果のデータは、PMEM3あるい
はIMEM4の空き領域に格納される。In step S24, step S22
It is converted into character (code) data based on the character recognition result in. The converted data is stored in the empty area of PMEM3 or IMEM4.
【0047】ステツプS25においては、全ての文字変
換画像に対する変換処理が終了したかどうかを判断す
る。まだ終了していないと判断した場合は、すべての変
換対象について文字コードへの変換が済むまで、ステツ
プS21からの処理を繰返す。ステツプS19で図形変
換処理が終了し、ステツプS25で文字変換処理が終了
したと判断した場合には、ステツプS26に進む。この
ステツプS26では、変換後の図形データから、画像を
再構成して表示用のビットマップデータを作成し、VR
AM11に格納する。この画像をCRT13に表示す
る。In step S25, it is determined whether or not the conversion processing for all the character converted images has been completed. If it is determined that the conversion has not been completed yet, the processing from step S21 is repeated until the conversion into character codes is completed for all conversion targets. If it is determined in step S19 that the graphic conversion process has ended and in step S25 that the character conversion process has ended, the process proceeds to step S26. In this step S26, an image is reconstructed from the converted graphic data to create bitmap data for display, and VR is displayed.
Store in AM11. This image is displayed on the CRT 13.
【0048】ステツプS27においては、文字変換済の
文字データを、ステツプS5で文字変換の指定をした領
域、つまりステップS10で白抜き去れた領域に内に流
し込み、その結果をCRT13に表示する。これは、V
RAM11のビットマップデータに、文字コードデータ
から得られた文字の画像を重ね合わせて新たな画像デー
タを作成し、それを表示することである。In step S27, the character-converted character data is poured into the area designated for character conversion in step S5, that is, the area left blank in step S10, and the result is displayed on the CRT 13. This is V
This is to create new image data by superimposing the image of the character obtained from the character code data on the bitmap data of the RAM 11 and display it.
【0049】以上の手順で、もとの画像から得られた図
形データと文字データとを得、得られたデータから画像
を再現することができる。また、変換時に条件を指定す
ることで、文字画像が安易に図形データに変換されるこ
とがなくなり、図形データの情報量が文字画像をも図形
データに変換した場合に比べ少なくて済むという効果が
ある。また、図形データへの変換と文字データへの変換
を同時に行うことにより、変換処理が効率化するという
効果も有る。With the above procedure, the graphic data and the character data obtained from the original image can be obtained, and the image can be reproduced from the obtained data. Also, by specifying the conditions during conversion, it is possible to prevent the character image from being easily converted into graphic data, and the amount of information of the graphic data can be smaller than when converting the character image into graphic data. is there. Further, there is also an effect that the conversion processing becomes efficient by performing the conversion into the graphic data and the conversion into the character data at the same time.
【0050】[0050]
[実施例2]実施例1においては、文字画像データの図
形データへの変換を防ぐことを主な目的として、指定し
た長さ以上の連続した点列のみを図形データに変換する
という簡単な条件付けをさせている。これに文字のポイ
ント数を条件として加えることにより、指定ポイント数
から得られる1文字の領域内に、連続する点列が納まっ
ていれば、連続する点列が操作者の指定した長さ以上の
データであつても、図形データへの変換は行なわないと
いうことが可能になる。こうすることにより、文字デー
タと図形データの切り分けが一層明確化される。[Second Embodiment] In the first embodiment, a simple condition that only a continuous point sequence having a specified length or more is converted into graphic data, mainly for the purpose of preventing conversion of character image data into graphic data. I am making By adding the number of character points as a condition to this, if a continuous point sequence is within the area of one character obtained from the specified number of points, the continuous point sequence will have a length equal to or greater than the length specified by the operator. Even for data, it is possible to perform no conversion to graphic data. By doing so, the distinction between the character data and the graphic data is further clarified.
【0051】また、上記説明におけるポイント数の指定
にかえて、縦横の長さ(ドツト数でもmmでもかまわな
い)を直接指定することでも可能である。例えば、表示
画像データ内の適当な1文字を囲むような領域を、マウ
ス10により指定することで自動的に1文字分の縦横の
長さを求めるようにしてもかまわないし、マウスにより
直線を描くことによつて(ただし、この直線は図形デー
タとは関係ない)、描かれた直線から求まる長さを条件
としてもよい。Instead of specifying the number of points in the above description, it is also possible to directly specify the vertical and horizontal lengths (either dot number or mm). For example, the vertical and horizontal lengths of one character may be automatically obtained by designating with the mouse 10 an area that surrounds an appropriate one character in the display image data, or draw a straight line with the mouse. Therefore (however, this straight line is not related to the graphic data), the length obtained from the drawn straight line may be used as the condition.
【0052】また、実施例1においては、操作者が指定
した長さ以上の連続する点列を図形データに変換するよ
うにしているが、「以上」と「以下」を操作者が指定で
きるようにしてもよい。これによつて、「以下」を指定
することにより細かい画像データのみを図形データに変
換させることが可能となる。これは上記で述べたポイン
ト数の指定においても同様である。Further, in the first embodiment, the continuous point sequence having a length equal to or longer than the operator's designation is converted into graphic data, but the operator can designate "greater than or equal to" and "less than or equal to". You may With this, it becomes possible to convert only fine image data into graphic data by designating "below". This also applies to the designation of the number of points described above.
【0053】実施例1においては、一連の操作はマウス
等のポインテイングデバイスを用いることにより行なっ
ているが、キーボードから操作できるようにしてもよ
い。In the first embodiment, the series of operations is performed by using a pointing device such as a mouse, but it may be operated by a keyboard.
【0054】また、実施例1においては、画像データの
入力はイメージスキヤナからおこなつているが、画像デ
ータが取り込めさえすれば、他の入力装置からでも、外
部記憶装置に記憶された画像データであつても構わな
い。In the first embodiment, the image data is input from the image scanner, but the image data stored in the external storage device can be input from another input device as long as the image data can be captured. It doesn't matter.
【0055】また、図形データおよび図形データに変換
する画像データの領域指定は、矩形領域で行なっている
が、円・楕円・多角形などの閉領域であつてもよい。Although the area of the graphic data and the image data to be converted into the graphic data is specified as a rectangular area, it may be a closed area such as a circle, an ellipse, or a polygon.
【0056】実施例1においては、変換後の図形データ
の表示する際、図形データ自身の確認が容易なように、
変換前の画像データを消去しているが、画像データをそ
のまま残しておいてもよいし、画像データ表示消去の切
り替え手段を設けることにより、操作者が任意のタイミ
ングで表示・消去を行なえるようにしてもよい。In the first embodiment, when the converted graphic data is displayed, it is easy to confirm the graphic data itself.
Although the image data before conversion is erased, the image data may be left as it is, and by providing a switching means for image data display / erasure, the operator can perform display / erasure at any timing. You may
【0057】[実施例3]実施例1・2の装置では、1
つの画像を文字の部分と図形の部分とに分け、それぞれ
文字・図形のデータ形式に変換するものであった。しか
し変換はこの2種に限ったものでなく、他の変換が混じ
っていても良い。[Embodiment 3] In the apparatus of Embodiments 1 and 2, 1
One image was divided into a character portion and a graphic portion, and each was converted into a character / graphic data format. However, the conversion is not limited to these two types, and other conversions may be mixed.
【0058】実施例1の文字・図形データへの変換に加
えて、無変換という変換を行う。即ち、画像データその
ままの領域を指定させる。図11において、1点鎖線で
囲まれた領域が画像データそのままであると指定された
部分である。この様に第3の変換をするならば、まず変
換条件の設定のメニューにもう1種追加する必要があ
る。即ち、図8のステップS3〜S6と並んで無変換領
域の指定をさせる処理が追加される。また、ステップ1
0で文字変換領域をとりだした後、無変換領域の有無を
テストし、有るならば、その領域をとりだしてメモリの
空き部分に退避し、画像データから無変換領域111を
消去してしまう。無変換であるから変換にかかわる処理
は特にない。画像を再現する際に、図形データから再生
された画像と文字データから再生された画像の合成が終
えてから、無変換領域として保存されていた領域111
を更に合成してビットマップデータを作り、CRT13
に表示する。In addition to the conversion to the character / graphic data of the first embodiment, a conversion of no conversion is performed. That is, the area of the image data as it is is designated. In FIG. 11, the area surrounded by the one-dot chain line is the portion designated as the image data as it is. If the third conversion is performed in this way, it is necessary to add another type to the conversion condition setting menu. That is, the process of designating the non-conversion area is added along with the steps S3 to S6 of FIG. Also, step 1
After taking out the character conversion area with 0, the presence or absence of the non-conversion area is tested, and if there is, the area is taken out and saved in an empty area of the memory, and the non-conversion area 111 is erased from the image data. Since there is no conversion, there is no particular processing related to conversion. When the image is reproduced, the area 111 saved as the non-conversion area after the synthesis of the image reproduced from the graphic data and the image reproduced from the character data is completed.
Are further combined to create bitmap data, and CRT13
To display.
【0059】この様に、3種類の変換を取り混ぜて行
い、変換されたデータから画像を再構成する装置でも実
施例1と同様に処理することができる。As described above, an apparatus for reconstructing an image from the converted data can be processed in the same manner as in the first embodiment by mixing three kinds of conversions.
【0060】尚、本発明は複数の機器から構成されるシ
ステムに適用しても、1つの機器から成る装置に適用し
ても良い。また、本発明はシステム或は装置にプログラ
ムを供給することによつて達成される場合にも適用でき
ることは言うまでもない。The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.
【0061】[0061]
【発明の効果】以上説明したように、本発明に係る画像
処理装置は、1つの画像データに対して指定した部分ご
とに異なる変換を一度に施すことができ、変換して得ら
れた異なる種類のデータから元の画像を簡単に再構成す
ることができる。As described above, the image processing apparatus according to the present invention can perform different conversions on one image data at a time for each designated portion, and different types obtained by the conversion. The original image can be easily reconstructed from the data.
【図1】実施例における画像処理装置のシステムブロツ
ク図である。FIG. 1 is a system block diagram of an image processing apparatus according to an embodiment.
【図2】実施例の原画像である。FIG. 2 is an original image of an example.
【図3】[Figure 3]
【図4】図形データへの変換時の表示である。FIG. 4 is a display during conversion to graphic data.
【図5】図形データへの変換する条件を説明した図であ
る。FIG. 5 is a diagram illustrating conditions for conversion into graphic data.
【図6】文字データへの変換時の表示である。FIG. 6 is a display during conversion to character data.
【図7】再現された画像である。FIG. 7 is a reproduced image.
【図8】[Figure 8]
【図9】[Figure 9]
【図10】実施例のフローチヤートである。FIG. 10 is a flow chart of an example.
【図11】実施例の表示例である。FIG. 11 is a display example of the embodiment.
1…システムバス 2…CPU 3…PMEM 4…IMEM 5…イメージスキヤナ 6…画像入出力制御部 7…プリンタ 8…入力制御部 9…キーボード 10…マウス 11…VRAM 12…表示出力制御部 13…CRT 14…外部記憶制御部 15…ハードデイスク 16…フロツピデイスク 1 ... System bus 2 ... CPU 3 ... PMEM 4 ... IMEM 5 ... Image scan 6 ... Image input / output control unit 7 ... Printer 8 ... Input control unit 9 ... Keyboard 10 ... Mouse 11 ... VRAM 12 ... Display output control unit 13 ... CRT 14 ... External storage controller 15 ... Hard disk 16 ... Flotspi disk
Claims (3)
ておく画像処理装置であって、 画像データを他のデータ形式に変換する際のその形式を
指定する第1の指定手段と、 該指定手段で指定された形式に変換する領域を画像デー
タ中に指定する第2の指定手段と、 を1組の形式指定手段として、前記第1の指定手段で指
定するデータ形式が異なる複数の形式であるような複数
組の形式指定手段と、 前記形式指定手段により指定された領域内の画像データ
を指定されたデータ形式に変換する変換手段と、 を備えることを特徴とする画像処理装置。1. An image processing apparatus for converting image data into another format and storing the converted image data, and a first specifying means for specifying the format when converting the image data into another data format. A second designating means for designating an area to be converted into the format designated by the designating means in the image data, and a plurality of different data formats designated by the first designating means as one set of format designating means. An image processing apparatus comprising: a plurality of sets of format designating means having different formats; and conversion means for transforming image data in the area designated by the format designating means into a designated data format.
に逆変換する逆変換手段と、 該逆変換手段で得られた画像データを合成する合成手段
と、 を備えることを特徴とする請求項1の画像処理装置。2. An inverse conversion means for inversely converting the converted data format into image data, and a combining means for combining the image data obtained by the inverse conversion means. Image processing device.
式は文字コードデータと図形データとであることを特徴
とする請求項1の画像処理装置。3. The image processing apparatus according to claim 1, wherein the formats designated by the first designating means are character code data and graphic data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3171133A JPH0520495A (en) | 1991-07-11 | 1991-07-11 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3171133A JPH0520495A (en) | 1991-07-11 | 1991-07-11 | Image processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0520495A true JPH0520495A (en) | 1993-01-29 |
Family
ID=15917598
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3171133A Withdrawn JPH0520495A (en) | 1991-07-11 | 1991-07-11 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0520495A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6983077B2 (en) | 2000-03-30 | 2006-01-03 | Minolta Co., Ltd. | Image processor |
| JP2017084301A (en) * | 2015-10-30 | 2017-05-18 | ダイキン工業株式会社 | Graphic processing apparatus, graphic processing method, and graphic processing program |
-
1991
- 1991-07-11 JP JP3171133A patent/JPH0520495A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6983077B2 (en) | 2000-03-30 | 2006-01-03 | Minolta Co., Ltd. | Image processor |
| JP2017084301A (en) * | 2015-10-30 | 2017-05-18 | ダイキン工業株式会社 | Graphic processing apparatus, graphic processing method, and graphic processing program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0221024B2 (en) | ||
| JPH0520495A (en) | Image processing device | |
| JPH06231224A (en) | Operation guidance generation device and operation guidance generation method | |
| JPH041862A (en) | Graphic selecting method | |
| JP2508151B2 (en) | Image input control device | |
| JPH0520493A (en) | Image processing device | |
| JPH0581395A (en) | Data processing system and method for treating exchangeable image-object for document having plurality of size | |
| JP3015066B2 (en) | Document processing device | |
| JP2800254B2 (en) | Image single character processing device | |
| JP2000298730A (en) | Method and apparatus for editing raster data | |
| JP3154790B2 (en) | Optical character reader | |
| JP4309987B2 (en) | Raster data editing method and apparatus | |
| JPH05143702A (en) | Image processor | |
| JPH0512396A (en) | Image information processor | |
| JPH0594511A (en) | Image processing device | |
| JP3155617B2 (en) | Document processing method and apparatus | |
| JP2752667B2 (en) | Curve editing method of figure editing device | |
| JPH04235686A (en) | Image processing device | |
| JP2866464B2 (en) | Line figure boundary extraction method | |
| JPH0472432B2 (en) | ||
| JPH06149213A (en) | Document processor | |
| JP2001209640A (en) | Image information conversion device, image processing device, method and recording medium | |
| JPH11164141A (en) | Image processing apparatus, image processing method, and recording medium recording image processing program | |
| JPH0581428A (en) | Picture processing method | |
| JPH04139585A (en) | Image processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19981008 |