JPH03225477A - Image processor - Google Patents

Image processor

Info

Publication number
JPH03225477A
JPH03225477A JP2021538A JP2153890A JPH03225477A JP H03225477 A JPH03225477 A JP H03225477A JP 2021538 A JP2021538 A JP 2021538A JP 2153890 A JP2153890 A JP 2153890A JP H03225477 A JPH03225477 A JP H03225477A
Authority
JP
Japan
Prior art keywords
color
image
document
processing
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021538A
Other languages
Japanese (ja)
Inventor
Masahisa Yano
矢野 雅久
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2021538A priority Critical patent/JPH03225477A/en
Publication of JPH03225477A publication Critical patent/JPH03225477A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To perform desired image processing on a desired area by applying the image processing to a document drawing image according to a processing function corresponding to a classified color. CONSTITUTION:A mode switching part 2 is set at a learning mode, and a color command sheet in which the processing function corresponding to the color of a color pen is defined is read prior to the reading of an original, and after the color characteristic of the color pen described on the color command sheet is learned, learned color characteristic and the processing function are registered as a pair. Next, the mode switching part 2 is switched to an original reading mode, and a color mark described additionally on the original is separated from a document/drawing, and is extracted, and the color mark is classified by every color, and an image processing part 4 performs the image processing on a document/drawing image according to the processing function corresponding to the classified color. Thereby, it is possible to perform the desired image processing on the desired area.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は画像処理装置に係り、特に文書/図面にこれと
異なる色のカラーマークが追記された原稿を読み取って
、当該カラーマークの色に対応して定義された処理を文
書/図面上に施こす画像処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device, and particularly to an image processing device that reads a document/drawing in which a color mark of a different color has been added, and processes the image processing device according to the color of the color mark. The present invention relates to an image processing device that performs correspondingly defined processing on documents/drawings.

[従来の技術] 従来1文書/図面と異なる色のペン(以下刃ラーペンと
いう)で、マークを追記した原稿を読み取り、マーキン
グした領域と他の領域とに対して異なる処理を行なう方
法として次にあげる3つの方法が知られている。
[Prior Art] Conventionally, the following is a method of reading a document with additional marks added using a pen of a different color from that of the document/drawing (hereinafter referred to as a blade pen) and performing different processing on the marked area and other areas. There are three known methods.

(1)第1の方法は、特開昭58−114280号公報
に開示されている方法で、入力される図面中で読み取り
解像度を上げたい部分に解像度の精度に応じたマーキン
グを異なる色で施こし、マーキング部を検出した時化の
領域を読み取る時と異なる解像度で読み取る方法である
(1) The first method is the method disclosed in Japanese Patent Application Laid-Open No. 58-114280, in which markings are applied in different colors to the parts of the input drawing where the reading resolution is desired to be increased, depending on the accuracy of the resolution. However, this is a method of reading at a resolution different from that used when reading the roughened area where the marking part is detected.

(2)第2の方法は、特開昭58−60876号公報に
開示されている方法で、特定色で塗り潰した領域を有す
る原稿上の画像情報及び前記領域を読み取り、前記領域
の内の画像情報に対しては、前記領域の外の画像情報に
対して施こす画像処理とは異なった処理を施こす方法で
ある。
(2) The second method is a method disclosed in Japanese Unexamined Patent Publication No. 58-60876, in which image information on a document having an area filled with a specific color and the area are read, and an image within the area is read. This is a method of performing processing on information that is different from image processing performed on image information outside the area.

(3)第3の方法は、マークを追記することなく原稿の
全領域を読み取った画像を一旦CRT等に表示し、マウ
スやタブレット等を用いて領域指定した後に、領域ごと
に異なった処理を施こす方法である。
(3) The third method is to display an image of the entire document scanned without adding marks on a CRT, specify the area using a mouse or tablet, and then perform different processing for each area. This is a method of applying

[発明が解決しようとする課題] しかし上述した(1)の方法は、施こす処理が1種類に
限定されているため、利用分野が限定され汎用性に欠け
るという問題点がある。
[Problems to be Solved by the Invention] However, the above-mentioned method (1) is limited to one type of processing, and therefore has the problem that the field of application is limited and lacks versatility.

また(2)の方法は、マークの色が特定されるばかりか
、処理モードの設定に当たっては人手によりコンソール
パネルから行なう必要があるため、原稿作成者と機械操
作者の意志が通していない場合には、処理機能を間違え
る危険性がある。
In addition, method (2) not only specifies the color of the mark, but also requires setting the processing mode manually from the console panel. There is a risk that the processing function will be misunderstood.

さらに、処理機能が増えた場合、機械操作も煩雑となる
という問題点がある。
Furthermore, when the number of processing functions increases, there is a problem that the machine operation becomes complicated.

(3)の方法は汎用性には富んでいるが、リアルタイム
処理が不可能であり、処理機能の設定の他に領域指定も
行なう必要があるため、処理機能が増えた場合機械に依
存した複雑な操作が必要となるという問題点がある。
Although method (3) is highly versatile, it is not possible to perform real-time processing, and it is necessary to specify the area in addition to setting the processing functions. The problem is that it requires a number of operations.

本発明は上述した3つの問題点を解消するためになされ
たもので、汎用性゛が高く操作性に優れ、しかも簡単な
処理と構成で実現することの出来るヒユーマンフレンド
リ−な画像処理装置を提供することを目的とする。
The present invention has been made to solve the above-mentioned three problems, and provides a human-friendly image processing device that is highly versatile, has excellent operability, and can be implemented with simple processing and configuration. The purpose is to

[課題を解決するための手段] 本発明の画像処理装置は、原稿上の画像の色および/ま
たは濃淡に応じた画像情報を出力する画像入力部と、前
記画像情報を入力信号とし学習モードと原稿読取りモー
ドとを切換えるモード切換え部と、前記モード切換え部
が学習モードに設定されている場合には1文書/図面の
画像に施こす処理機能を定義するために設定されたカラ
ーコマンド用紙の所定領域の情報を色特性として読み取
り、前記処理機能に対応するコードと共に登録するカラ
ーコマンド設定部と、前記モード切換え部が原稿読取り
モードに設定されている場合には、前記画像入力部から
出力される画像情報を文書/図面の画像と、マークの画
像とに分離抽出し、前記カラーコマンド設定部に登録さ
れた色特性に対応した処理を分離抽出した前記文書/図
面の画像に対して施す画像処理部とを設けたものである
[Means for Solving the Problems] The image processing device of the present invention includes an image input section that outputs image information corresponding to the color and/or shading of an image on a document, and a learning mode using the image information as an input signal. a mode switching section for switching between the document reading mode and a predetermined color command paper set to define a processing function to be applied to an image of one document/drawing when the mode switching section is set to the learning mode; a color command setting section that reads area information as color characteristics and registers it together with a code corresponding to the processing function; and when the mode switching section is set to document reading mode, output from the image input section. Image processing that separates and extracts image information into a document/drawing image and a mark image, and performs processing corresponding to the color characteristics registered in the color command setting section on the separated and extracted document/drawing image. It has a section.

[作用] 本発明ではモード切換え部を学習モードに設定し、カラ
ーペンの色に対応した処理機能を定義したカラーコマン
ド用紙を原稿読取りに先行して読み取り、このカラーコ
マンド用紙に記載されたカラーペンの色特性を学習した
後、学習した色特性と処理機能とをペアで登録する。
[Function] In the present invention, the mode switching section is set to learning mode, and a color command sheet that defines processing functions corresponding to the color of the color pen is read prior to reading the document, and the color pen written on the color command sheet is read. After learning the color characteristics of , the learned color characteristics and the processing function are registered as a pair.

ついでモード切換え部を原稿読取りモードに切換え、原
稿上に追記したカラーマークと文書/図面とを分離抽出
すると共に、カラーマークを色ごとにに分類し、分類し
た色に対応する処理機能にしたがって文書/図面画像に
画像処理を施こすように動作する。
Next, the mode switching section is switched to document reading mode, the color marks added on the document and the document/drawing are separated and extracted, the color marks are classified by color, and the document is read according to the processing function corresponding to the classified color. / Operates to perform image processing on drawing images.

[実施例] 以下本発明の一実施例を図面に基づいて詳細に説明する
[Example] An example of the present invention will be described in detail below based on the drawings.

第1図は本発明の一実施例を示すブロック図である。本
発明による画像処理装置は、原稿やカラーコマンド用紙
から画像情報を入力して次段に出力する画像入力部1と
、画像入力部1の出力を入力とするモード切換え部2と
、このモード切換え部2の出力を受けてカラーコマンド
の設定を行なうカラーコマンド設定部3と、各種の画像
処理を行なう画像処理部4と、画像処理部4の処理結果
を格納する結果格納部5とから構成されている。
FIG. 1 is a block diagram showing one embodiment of the present invention. The image processing apparatus according to the present invention includes an image input section 1 that inputs image information from a document or color command paper and outputs it to the next stage, a mode switching section 2 that receives the output of the image input section 1 as input, and a mode switching section 2 that inputs image information from a document or color command paper and outputs it to the next stage. It consists of a color command setting section 3 that receives the output from the section 2 and sets color commands, an image processing section 4 that performs various image processing, and a result storage section 5 that stores the processing results of the image processing section 4. ing.

画像入力部1は図示しない用紙上に記載されているマー
クや文書/図面の濃淡や色に応した色情報、例えば、濃
度多値レベル信号または赤、緑、青の三原色の多値レベ
ル信号を出力する。
The image input unit 1 receives color information corresponding to the shading and color of marks written on paper (not shown) or documents/drawings, such as a density multilevel signal or a multilevel signal of the three primary colors of red, green, and blue. Output.

モー1く切換え部2は、図示しないスイッチ等によって
学習モードあるいは原稿読取リモードに切換えられる。
The mode switching unit 2 is switched to a learning mode or a document reading remote mode by a switch (not shown) or the like.

ここでモード切換え部2が学習モードに設定されている
場合には、画像入力部1からの画像情報をカラーコマン
ド設定部3に出力すると共に、カラーコマンド設定部3
の処理を開始させるための設定起動信号を出力する。ま
たモード切換え部2が原稿読取りモードに設定されてい
る場合には、画像入力部1からの画像出力を画像処理部
4に出力すると共に、画像処理部4の処理を開始させる
ための画像処理起動信号を出力する。
Here, if the mode switching section 2 is set to the learning mode, the image information from the image input section 1 is output to the color command setting section 3, and the color command setting section 3
Outputs a setting start signal to start processing. In addition, when the mode switching section 2 is set to the document reading mode, the image output from the image input section 1 is output to the image processing section 4, and image processing is activated to start the processing of the image processing section 4. Output a signal.

カラーコマンド設定部3は設定起動(8号によって動作
が開始され、入力された用紙の所定の領域の色情報のみ
を選択し、当該色情報を色特性として認識し、前記所定
の領域に定義された文書/図面の画像に施こす処理機能
に対応するコードとともに登録する。なおここで登録さ
れる色特性としては、前述した濃度多値レベル信号でも
良いし、赤(R)、緑(G)、青(B)の三原色の多値
レベル信号であっても良い。またこれらに限定される事
無く他の公知の色特性に変換し登録することも出来る。
The color command setting unit 3 starts operation by setting activation (No. 8), selects only the color information of a predetermined area of the input paper, recognizes the color information as a color characteristic, and selects the color information defined in the predetermined area. It is registered along with the code corresponding to the processing function to be applied to the image of the document/drawing.The color characteristics registered here may be the density multilevel signal mentioned above, red (R), green (G), etc. , blue (B).Also, the signal is not limited to these, and can be converted into other known color characteristics and registered.

なお以下の実施例ではRGB系の公知の座標変換式(1
)を用いてXYZ系に変換し、から求められたx、y、
zをもとに(2)式を用いてx、yを計算し、 求められたX、 y 。
In addition, in the following examples, the known coordinate transformation formula (1
) to convert to the XYZ system, and x, y, found from
Calculate x and y using equation (2) based on z, and obtain the obtained X and y.

Yを色特性として登録する。Register Y as a color characteristic.

ここでx、y、zはJISで定められているように三刺
激値と呼ばれる。
Here, x, y, and z are called tristimulus values as defined by JIS.

またx、yは色相と彩度を、Yは明度を表わすものであ
る。
Further, x and y represent hue and saturation, and Y represents lightness.

なお上述したRGB系からXYZ系への変換式(1)や
色相と彩度とを表わすx、yを求める計算式(2)は、
それぞれR,G、Bを入力し、XY、Zを出力するRO
Mを用い、さらにXYZを入力し、x、yを整数形式で
出力するROMを用いることにより変換が可能であり、
このように構成することにより計算時間が不要となり、
処理を高速化することが可能となる。
The conversion formula (1) from the RGB system to the XYZ system and the calculation formula (2) for calculating x and y representing hue and saturation are as follows.
RO that inputs R, G, and B and outputs XY and Z.
Conversion is possible by using M, inputting XYZ, and using a ROM that outputs x and y in integer format.
This configuration eliminates the need for calculation time,
It becomes possible to speed up the processing.

次に色特性の登録例について説明する。整数化したx、
yをアドレスとする2次元メモリで第3図(a)に示す
ような色度図を構成し、求められた整数化したx、yで
決まる2次元メモリの1点を“1″に設定することによ
り、色相および彩度に対応する色特性を登録する。
Next, an example of color characteristic registration will be explained. x converted into an integer,
Construct a chromaticity diagram as shown in Figure 3(a) using a two-dimensional memory whose address is y, and set one point in the two-dimensional memory determined by the obtained integer x and y to "1". By doing so, color characteristics corresponding to hue and saturation are registered.

なお前述した2次元メモリの初期値は110 I+であ
る。また明度Yに関しては、その最小値、最大値を走査
点(画素)毎に更新することによって登録する。
Note that the initial value of the two-dimensional memory mentioned above is 110 I+. Furthermore, the brightness Y is registered by updating its minimum and maximum values for each scanning point (pixel).

また所定の領域に定義する文書/図面の画像に施こす処
理機能としては、処理対象の文書/図面に基づいて定め
たもので良く、さらに処理機能に対応するコートとして
は、処理機能との対応付けが出来るものであればいかな
る形式のものでも良い。例えば、カラーコマンド用紙に
設定された領域の位置座標順に整数1から昇順に付した
番号であってもよい。
In addition, the processing function to be applied to the image of the document/drawing defined in a predetermined area may be determined based on the document/drawing to be processed, and the coat corresponding to the processing function may be determined based on the processing function. Any type of material may be used as long as it can be attached. For example, the numbers may be assigned in ascending order starting from the integer 1 in order of the positional coordinates of the areas set on the color command paper.

画像処理部4は画像処理起動信号によって動作が開始さ
れ、モード切換え部2を経由して画像入力部1から出力
される色情報から計算される色特性とカラーコマンド設
定部3に登録された色特性とに基づいて1文書/図面画
像とマーク画像とに画像情報を分離抽出し、このマーク
の色に一致する色特性に対応した処理を文書/図面画像
に対して施こし、その結果を結果格納部5へ格納する。
The image processing section 4 starts operating in response to an image processing start signal, and processes the color characteristics calculated from the color information output from the image input section 1 via the mode switching section 2 and the colors registered in the color command setting section 3. Image information is separated and extracted into one document/drawing image and a mark image based on the characteristics, and processing corresponding to the color characteristics that match the color of this mark is applied to the document/drawing image, and the results are Store it in the storage unit 5.

第2図は本発明に用いられるカラーコマンド用紙の説明
図である。このカラーコマンド用紙は、原稿の画像に対
して施こす処理に対して付与された名称f+(x=1.
2.3、・・・)と、f。
FIG. 2 is an explanatory diagram of color command paper used in the present invention. This color command paper has a name f+(x=1.
2.3,...) and f.

と一対に設けられたカラーコマンド記入領域を表わす枠
mz+(i=1.2.3、・・・)とから構成されてい
る。通常f1.mzlは黒で印刷または書かれている。
and a pair of frames mz+(i=1.2.3, . . . ) representing color command entry areas. Usually f1. mzl is printed or written in black.

なおfl、m21の色、形状、数および枠m21の位置
と処理機能の対応関係については予め装置内に定義され
ているものとする。またfi、mz+の色、形状、数お
よび枠m、1の位置と処理機能との対応関係は第2図に
示すものに限定されるわけではない。
It is assumed that the color, shape, number of fl and m21, and the correspondence between the position of the frame m21 and the processing function are defined in advance within the apparatus. Furthermore, the correspondence relationships between the colors, shapes, and numbers of fi, mz+, the positions of frames m and 1, and processing functions are not limited to those shown in FIG.

第2図において、枠m21は用紙の左上端からyy2.
xx、の位置に1番目の枠の左上角点を持ち、以Fd 
y yzの距離で繰り返し設定されたdXX、dyy+
の大きさを持つ矩形領域である。
In FIG. 2, the frame m21 is yy2.
The upper left corner point of the first frame is at the position xx, and hereafter Fd
dXX, dyy+ repeatedly set at a distance of y yz
It is a rectangular area with a size of .

読み取りに先行して、この矩形領域内を所望の色のカラ
ーペンで塗布しておく。
Prior to reading, the inside of this rectangular area is painted with a color pen of a desired color.

なお矩形領域内がカラーペンによって塗布されていない
場合には、この矩形領域に対応する処理は使われないも
のとする。矩形領域内がカラーペンによって塗布されて
いるか否かは用紙の背景が白である場合、画像入力部l
の出力信号Iく、G。
Note that if the inside of the rectangular area is not painted with a color pen, the process corresponding to this rectangular area is not used. If the background of the paper is white, whether or not the inside of the rectangular area is painted with a color pen is determined by the image input section l.
The output signal I,G.

Bの信号レベルに差があり、かつ所定値以]−であるか
否かによって判別できる。
The determination can be made based on whether there is a difference in the signal level of B and whether it is equal to or greater than a predetermined value.

またカラーコマンド記入領域内が白で、原稿の文書/図
面は黒、灰、白の無彩色、追記するカラコマンドは有彩
色であると定義することにより使用するカラーペンの色
種別の制限を除去することができる。
Also, by defining that the color command entry area is white, the original document/drawing is an achromatic color of black, gray, or white, and the color command to be added is a chromatic color, the restriction on the color type of the color pen to be used is removed. can do.

第2図におけるカラーコマンド用紙は、iM述した説明
からも明らかのように、追記するマークについてのみ定
義したものであるため、人力される原稿の文書/図面に
掲載される文字、図形、写真等は黒、灰の無彩色、背景
は白であると想定して設計したものである。
As is clear from the explanation given in Figure 2, the color command paper in Figure 2 defines only the marks to be added, so it does not contain the characters, figures, photographs, etc. that appear in manual documents/drawings. was designed assuming that it is achromatic colors such as black and gray, and that the background is white.

第3図は画像入力部1から出力さ九る色情報をXYZ系
に変換した色特性の説明図であって、背景部が白で文字
、図形、写真部が黒または灰色の文書/図面に赤のマー
クを追記した原稿の色特性を模擬的に表わしたものであ
る。
FIG. 3 is an explanatory diagram of the color characteristics when the color information output from the image input section 1 is converted into the XYZ system, and the background part is white and the text, figures, and photographs are black or gray in the document/drawing. This is a simulated representation of the color characteristics of a document with red marks added.

なお図中に示すY、x、yは前述の(1)式および(2
)式によって求めたものである。記載された追記マーク
は濃淡の変動が多く、明度Yだけでは、文書/図面と区
別できない場合にもyを縦軸、Xを横軸で表わす色度図
上では区別可能であることがわかる。
Note that Y, x, and y shown in the figure are based on the above-mentioned formula (1) and (2).
) was calculated using the formula. It can be seen that even if the written write-once marks have many variations in shading and cannot be distinguished from documents/drawings based on the brightness Y alone, they can be distinguished on the chromaticity diagram in which y is represented on the vertical axis and X is represented on the horizontal axis.

第4図はカラーコマンド設定部3の詳細構成を示すブロ
ック図である。カラーコマンド設定部3は、第4図にみ
られるように、フォーマット設定部31と色特性学習部
32とカラーコマンド登録部33とから構成されている
。フォーマット設定部31は第2図に示すカラーコマン
ド用紙のカラコマンド証人領域m2.の用紙上の位置お
よび領域情報と、該情報に対応する処理機能とが予め設
定されている。そしてフォーマット設定部31は前記位
置および領域情報を、色特性学習部32およびカラーコ
マンド登録部33に出力し、後述する画像処理部45の
各処理機能451  (1=1.2・・・n)を作動さ
せるための情報をカラーコマンド登録部33に出力する
FIG. 4 is a block diagram showing the detailed configuration of the color command setting section 3. As shown in FIG. As shown in FIG. 4, the color command setting section 3 includes a format setting section 31, a color characteristic learning section 32, and a color command registration section 33. The format setting section 31 sets the color command witness area m2. of the color command paper shown in FIG. The position and area information on the paper and the processing function corresponding to the information are set in advance. The format setting section 31 then outputs the position and area information to the color characteristic learning section 32 and color command registration section 33, and each processing function 451 (1=1.2...n) of the image processing section 45, which will be described later. Information for operating the color command register 33 is output to the color command registration section 33.

色特性学習部32はフォーマント設定部31から入力す
る位置および領域情報と画像入力部1の走査点の位置情
報とに基づいて、モード切換え部2を経由して人力され
る画像入力部1の色情報を学習し、色特性としてカラー
コマンド登録部33に出力する。
The color characteristic learning section 32 adjusts the image input section 1 manually via the mode switching section 2 based on the position and area information input from the formant setting section 31 and the position information of the scanning point of the image input section 1. The color information is learned and outputted to the color command registration unit 33 as color characteristics.

なお前述した色特性は次のようにして求められる。モー
ド切換え部2を経由して入力される画像入力部1からの
色情報であるRGBの多値データを前述した(1)式お
よび(2)式を用いてY、x、yに変換し、明度に対応
するYについては各カラーコマンド指定領域〕毎に当該
領域内の最大値Y l+maX、最小値yl+al□を
求める。
Note that the above-mentioned color characteristics are obtained as follows. RGB multi-value data, which is color information from the image input unit 1 input via the mode switching unit 2, is converted into Y, x, y using the above-mentioned equations (1) and (2), Regarding Y corresponding to brightness, the maximum value Yl+maX and minimum value yl+al□ within the area are determined for each color command specified area.

ついでx−yについては、例えば、100分率(%)化
した整数値X%(=xX100)、y%(=yxlOO
)に変換し、X軸、y軸の最大値を100とするアドレ
スを持った2次元のメモリ(カラーマツプ)上の(y%
、y%)で表わされる1点にカラーコマンド指定領域ご
とに付与した番号1(1,2、・・・n)を格納する。
Next, regarding x-y, for example, the integer value X% (=xX100) converted into a 100th fraction (%), y% (=yxlOO
) and (y%) on a two-dimensional memory (color map) with an address where the maximum value of the
, y%) and stores the number 1 (1, 2, . . . n) assigned to each color command designated area.

このカラーマンプとYlmIn、Yl、、、xとを色特
性としてカラーコマンド登録部33に出力する。
This color map and YlmIn, Yl, . . . x are output to the color command registration unit 33 as color characteristics.

カラーコマンド登録部33は、画像人力部1の走査点の
位置情報とフォーマット設定部31から構成される装置
および領域情報とに基づいて、色特性学習部32から出
力される色特性が画像処理部45のどの機能を作動させ
るものかを決定し、前記色特性と画像処理部の該当機能
を作動させるための画像処理コートとをカラーコマンド
として登録する。
The color command registration unit 33 determines that the color characteristics output from the color characteristic learning unit 32 are registered in the image processing unit based on the position information of the scanning point of the image processing unit 1 and the device and area information constituted by the format setting unit 31. 45 is to be activated, and the color characteristics and an image processing code for activating the corresponding function of the image processing section are registered as a color command.

第5図は第1図の画像処理部4の詳細構成を示すブロッ
ク図である。図において、41は画像分類部であって、
モード切換え部2を経由して入力された画像入力部1か
らのRGBの多値画像ブタ2Sを、カラーコマンド登録
部33にRtaされている色特性に関する情報33S1
に基づいてマーク画像信号と文書画像信号とに分離する
FIG. 5 is a block diagram showing the detailed configuration of the image processing section 4 shown in FIG. 1. In the figure, 41 is an image classification section,
Information 33S1 regarding the color characteristics Rta of the RGB multi-valued image 2S input from the image input unit 1 via the mode switching unit 2 to the color command registration unit 33
The signal is separated into a mark image signal and a document image signal based on the image signal.

マーク画像については登録されている色特性に対応した
順序符号(例えば登録した色特性が3色の場合1.2.
3)を付してマーク画像信号として出力し1文書/図面
画像については背景部およびマーク部をLL Q 11
、文字、図形、写真部を′1″として2色画像データを
文書画像信号として出力する。
For mark images, the order code corresponding to the registered color characteristics (for example, if the registered color characteristics are three colors, 1.2.
3) and output it as a mark image signal, and for one document/drawing image, the background part and mark part are LL Q 11
, characters, graphics, and photographs are set to '1', and two-color image data is output as a document image signal.

次に前述したマーク画像信号および文書画像信号を得る
ための処理について説明する。なお、ここで原稿の背景
は白で、文字、図形、写真は黒の無彩色、マークは有彩
色であると仮定する。
Next, the processing for obtaining the mark image signal and document image signal mentioned above will be explained. It is assumed here that the background of the document is white, the characters, figures, and photographs are achromatic black, and the marks are chromatic.

まずモード切換え部2を経由して入力される画像入力部
1のRGBの多値データを前述の(1)式および(2)
式を用いて、Y、x、yに変換する。ついで変換したY
、x、yと、カラーコマンド登録部33に登録されてい
る色特性とに基づいて1文書画像信号およびマーク画像
信号を出力する。
First, the RGB multi-value data of the image input unit 1 input via the mode switching unit 2 is calculated using the above-mentioned equations (1) and (2).
Convert to Y, x, y using the formula. Then converted Y
, x, y, and the color characteristics registered in the color command registration section 33, a one-document image signal and a mark image signal are output.

文書画像信号はYおよびx、yが下記、条件1を満たす
時にはl ]−TI、満たさない時にはit O+1に
設定する。
The document image signal is set to l]-TI when Y, x, and y satisfy the following condition 1, and it is set to it O+1 when not.

(条件1)  Yが第3図(b)に示すように、文字、
図形の明度範囲内であってx、yを100分率化した整
数値(XX、y%)をアドレスとするカラーマツプ上の
点の値(番号)がOである。
(Condition 1) As shown in Figure 3(b), Y is a character,
The value (number) of a point on the color map whose address is an integer value (XX, y%) obtained by converting x and y into 100 parts within the brightness range of the figure is O.

またマーク画像信号はYおよびx、yが下記。In addition, Y, x, and y of the mark image signal are as follows.

条件2を満たす時その条件を満たす番号11 i I+
満たさない時II O11とする。
When condition 2 is satisfied, the number that satisfies that condition is 11 i I+
If not satisfied, set II O11.

(条件2)x、yを100分率化した整数値(XX、y
%)をアドレスとするカラーマツプ上の点の値(番号)
がO以外の数値1であって、Yが前記lの色に対応する
明度範囲Y l+++InとY 、、、。
(Condition 2) Integer values (XX, y
%) is the value (number) of the point on the color map whose address is
is a numerical value 1 other than O, and Y is a lightness range Y corresponding to the color of said l+++In and Y.

どの間にある。In between.

マーク画像記憶部42は画像入力部1の主走査方向をX
軸、副走査方向をY軸とする2次元のバタンメモリであ
って、画像入力部1の主走査点XX、副走査点YYを各
々Xアドレス、Yアドレスとする位置に前述のマーク画
像信号を色ラベルとして記憶する。
The mark image storage unit 42 is configured so that the main scanning direction of the image input unit 1 is
The mark image signal is a two-dimensional button memory whose Y axis is the axis and the sub-scanning direction, and the above-mentioned mark image signal is placed at the positions where the main scanning point XX and the sub-scanning point YY of the image input section 1 are the X address and the Y address, respectively. Save as a color label.

文書画像記憶部43はマーク画像記憶部42と同じ座標
系を持つ2次元の2値パタンメモリであって、画像入力
部1の主走査点XX、副走査点YYを各々Xアドレス、
Yアドレスとする位置に前述した文書画像信号を順次記
憶させる。
The document image storage section 43 is a two-dimensional binary pattern memory having the same coordinate system as the mark image storage section 42, and stores the main scanning point XX and sub-scanning point YY of the image input section 1 at an X address, respectively.
The document image signals described above are sequentially stored at the positions designated as the Y address.

文書画像分類抽出部44はマーク画像記憶部42と文書
画像記憶部43とを同時に走査して、マーク画像記憶部
42の主走査線」二で同一のラベル番号間に挟まれる領
域内の文書画像を抽出すると共に、ラベル番号に対応す
る画像処理部45の処理機能を作動させるための作動信
号を出力する。
The document image classification extraction unit 44 simultaneously scans the mark image storage unit 42 and the document image storage unit 43, and extracts document images within the area sandwiched between the same label numbers on the main scanning line 2 of the mark image storage unit 42. At the same time, it outputs an activation signal for activating the processing function of the image processing section 45 corresponding to the label number.

画像処理部45は文書画像分類抽出部44から出力され
る文書画像に対して、前記作動信号に基づいた処理を施
こし処理結果を、第1図に示す処理結果格納部5に格納
する。
The image processing section 45 performs processing on the document image output from the document image classification and extraction section 44 based on the actuation signal, and stores the processing result in the processing result storage section 5 shown in FIG.

ついでカラーコマンド設定部3、画像処理部4の動作に
ついて第2図〜第9図を参照して詳細に説明する。
Next, the operations of the color command setting section 3 and the image processing section 4 will be explained in detail with reference to FIGS. 2 to 9.

まずカラーコマンド設定部3と画像処理部41の処理過
程について説明する。なお、以下の説明においては図に
おける用紙平面の座標系については、色特性を表わすX
、Y、Zとの混乱を避けるため、主走査方向あるいは水
平方向をXX、副走査方向をYYと表現する。
First, the processing steps of the color command setting section 3 and the image processing section 41 will be explained. In addition, in the following explanation, the coordinate system of the paper plane in the figure will be referred to as
, Y, and Z, the main scanning direction or horizontal direction is expressed as XX, and the sub-scanning direction is expressed as YY.

第6図は本発明の一実施例の処理過程を示す区である0
図においてステップSTI、2は画像入力部1の走査順
序を示すものであって、用紙のネ平方向XXを主走査方
向、垂直方向YYを副走遣方向として順次走査すること
を示している。なお以下の説明では、用紙の左上端を走
査開始点〔加点(Cl、O) )とし、右下端を走査終
了点(x。
FIG. 6 is a section showing the processing process of an embodiment of the present invention.
In the figure, step STI, 2 indicates the scanning order of the image input unit 1, and indicates that the paper is sequentially scanned with the horizontal direction XX of the paper as the main scanning direction and the vertical direction YY of the paper as the sub-scanning direction. In the following explanation, the upper left end of the paper is taken as the scanning start point [additional points (Cl, O)), and the lower right end is taken as the scanning end point (x).

6、 3’a++d)とする座標系で走査していくもの
とし、マーク画像記憶部42、文書画像記憶部43の同
一の座標系で構成され、同期して動作するものとする。
6, 3'a++d), and it is assumed that the mark image storage section 42 and the document image storage section 43 are configured with the same coordinate system and operate synchronously.

ステップST3において、モード切換え部2の設定が学
習モードに設定されている場合、カラーコマンド設定部
3はステップ5TIO111の処理によって原稿に追記
するマークの色および濃淡に対応する色特性および/ま
たは背景と文書1図面の色および濃淡に対応する色特性
を学暑し登録する。
In step ST3, if the mode switching section 2 is set to the learning mode, the color command setting section 3 sets the color characteristics and/or background corresponding to the color and shading of the mark to be added to the document by the process of step 5TIO111. Document 1 The color characteristics corresponding to the colors and shading of the drawing are registered.

まずステップ5TIOにおいて、予めカラーコマンド設
定部3に設定されているカラーコマンド登録用領域を示
す座標データと、走査点の座標との比較によって走査点
がカラーコマンド登録用領域内にあるか否が判定する。
First, in step 5TIO, it is determined whether the scanning point is within the color command registration area by comparing the coordinate data indicating the color command registration area set in advance in the color command setting section 3 with the coordinates of the scanning point. do.

第2図に示した例では走査点の座標の値XX、YYが次
に示す(3)式を満たす時カラーコマンド登録用領域内
であると判定する。
In the example shown in FIG. 2, it is determined that the scanning point is within the color command registration area when the coordinate values XX, YY satisfy the following equation (3).

yy2+β+dyyz *(i−1)≦YY≦yy2+
dyy□〜βここでβはスキャナと用紙の設定許容値、
色特性マーク記入条件などに基づいて決まる定数、iは
カラーコマンド設定領域番号をそれぞれ示す。
yy2+β+dyyz *(i-1)≦YY≦yy2+
dyy□〜β Here, β is the allowable setting value for the scanner and paper,
A constant determined based on the color characteristic mark writing conditions, etc., and i each indicate a color command setting area number.

ステップ11では学習用紙/原稿識別部2を経て入力さ
れる画像入力部1のRGB系の色情報を前述した(1)
式を用いてXYZ系に変換し、さらに(2)式を用いて
求めたx、yを整数化し、当該Y、x、yを用いて第1
図の説明で述べたようにして学習中の色特性を更新する
。ステップST3において、モード切換え部2の設定が
原、稿読取りモードの場合、画像分類部41の動作が開
始される。ステップ5T12において走査点の色特性が
カラーコマンド設定部3に登録されている色特性の範囲
内にある場合、すなわちモード切換え部2を経て入力さ
れる画像入力部1のRGB系の色情報を前述の(1)式
を用いてXYZ系に変換し、明度を表わすYの値がカラ
ーコマンド設定領域番号iに対応して、登録された明度
範囲Y 1m1n+ Y 1m、R例えば第3図(b)
に示すマーク部の明度範囲にある時、さらに(2)式を
用いて求めたx= yを整数化し、当該x、yをアドレ
スとする色度図に対応した2次元メモリの内容がiであ
る時、例えば第3図(a)に示す左斜め上がりの斜線部
内にあると判定された場合には、マーク画像記憶部42
には5番目のカラーコマンドの色特性に対応するマーク
画像を示す色ラベル番号11 i”を書き込み、文書画
像記憶部43には背景を示す“OITを書き込む(ステ
ップS T 13)。
In step 11, the RGB color information of the image input unit 1 input via the study paper/manuscript identification unit 2 is input as described above (1).
Convert to the XYZ system using the formula, convert the x and y obtained using the formula (2) into integers, and use the Y, x, and y to convert the first
The color characteristics being learned are updated as described in the explanation of the figure. In step ST3, if the mode switching section 2 is set to the original or manuscript reading mode, the operation of the image classification section 41 is started. In step 5T12, if the color characteristics of the scanning point are within the range of color characteristics registered in the color command setting section 3, that is, the RGB color information of the image input section 1 input via the mode switching section 2 is The value of Y representing brightness corresponds to the color command setting area number i, and the registered brightness range Y 1m1n + Y 1m, R is shown in FIG. 3(b).
When the brightness of the mark is within the brightness range shown in (2), x = y obtained using equation (2) is converted into an integer, and the contents of the two-dimensional memory corresponding to the chromaticity diagram with x and y as addresses are i. At some point, for example, if it is determined that the mark is located within the diagonally upward-left diagonal line shown in FIG. 3(a), the mark image storage unit 42
A color label number 11i indicating a mark image corresponding to the color characteristics of the fifth color command is written in the document image storage unit 43, and an OIT indicating the background is written in the document image storage unit 43 (step S T 13).

なお文書図面に色情報を伴う画像を必要とする場合には
、カラーコマンド設定部3に登録さ九ている背景部に相
当する色情報を文書画像記憶部43に書き込む、マーク
画像をラベル画像とせず2値画像形式とし、マーク画像
記憶部42とは別に設けた図示しないマークテーブルに
色情報あるいは、対応する色コードを登録するようにし
てもよい。なおマークテーブルには連結するマーク画像
の任意の1点、例えば最初にマーク画像が検出された走
査点の座標あるいは連結するマーク画像の外接枠と、前
述した色コードとを1対とするデータを書き込むように
するのが好適である。
If the document drawing requires an image with color information, the color information corresponding to the background registered in the color command setting section 3 can be written into the document image storage section 43, and the mark image can be used as a label image. The color information or the corresponding color code may be registered in a mark table (not shown) provided separately from the mark image storage section 42 by using a binary image format. Note that the mark table contains data that includes a pair of any one point of the mark images to be connected, for example, the coordinates of the scanning point where the mark image is first detected, or the circumscribing frame of the mark images to be connected, and the color code described above. It is preferable to write it.

次にステップ5T12において、走査点の色特性が文書
、図面条件範囲にある場合、マーク画像記憶部42には
背景を示す“0”を書き込み、文書画像記憶部43には
文書、図面を示す“1″を書き込む(ステップS T 
14)。
Next, in step 5T12, if the color characteristics of the scanning point are within the document/drawing condition range, "0" indicating the background is written in the mark image storage section 42, and "0" indicating the document/drawing is written in the document image storage section 43. Write 1″ (step S T
14).

なお文書図面に色情報を伴う画像を必要とする場合には
、画像入力部lから出力される色情報を直接文書画像記
憶部43に書き込む、マーク画像については通常、背景
は意味を持たないのでステップ5T14の説明の通りと
し、前述のマークテーブルも更新しない。
Note that when an image with color information is required for a document drawing, the color information output from the image input section 1 is written directly into the document image storage section 43.As for mark images, the background usually has no meaning. The explanation in step 5T14 is followed, and the mark table mentioned above is not updated.

次にステップ5T12において走査点の色特性が背景条
件範囲にある場合、あるいはマーク条件範囲内ではなく
、かつ文書、図面条件範囲内にない場合にはマーク画像
記憶部42および文書画像記憶部43には、共に背景を
表わす“0″を書き込む(ステップ5T15)。色情報
を必要とする画像が必要な場合には前述と同様の処理を
行なう。
Next, in step 5T12, if the color characteristics of the scanning point are within the background condition range, or are not within the mark condition range and are not within the document or drawing condition range, the mark image storage unit 42 and document image storage unit 43 are stored. Both write "0" representing the background (step 5T15). If an image requiring color information is required, the same processing as described above is performed.

第7図は本発明によるカラーマークが追記された原稿用
紙を、第8図(a)、(b)は第7図に示す原稿用紙を
第2図に示すカラーコマンド用紙を用いて設定したカラ
ーコマンド登録情報に基づいて、分類抽出したマーク画
像と文書図面画像とを示したものである。これらの分離
抽出されたマーク部のラベル画像はマーク画像記憶部4
2に、文書図面画像は文書画像記憶部43にそれぞれ2
値画像として格納される。
FIG. 7 shows the manuscript paper on which color marks according to the present invention have been added, and FIGS. 8(a) and (b) show the colors set using the manuscript paper shown in FIG. 7 using the color command paper shown in FIG. 2. This figure shows mark images and document drawing images that have been classified and extracted based on command registration information. The label images of these separated and extracted mark parts are stored in the mark image storage unit 4.
2, document drawing images are stored in the document image storage section 43, respectively.
Stored as a value image.

次に第9図および第10図を用いて、文書画像分離部4
4と、画像処理部45の処理過程を説明する。ステップ
5T21はカラーコマンド設定部3に登録されているカ
ラーコマンド全ての処理を行なうことを示している。ス
テップ5T23.24は画像入力部1が用紙を走査する
のと同じ手順でマーク画像記憶部42、文書画像記憶部
43を水平方向Xxを主走査方向、垂直方向YYを副走
査方向として同時にかつ順次走査することを示す。ステ
ップ5T25では、ステップ5T21で設定された色の
マーク画像領域内の文書画像を抽出し、画像処理部45
に出力する6画像処理部45においては前述したマーク
画像領域内の文書画像を入力し、ステップ5T21で設
定した処理機能を実行し、その結果を結果格納部5に格
納する。
Next, using FIGS. 9 and 10, document image separation unit 4
4 and the processing process of the image processing section 45 will be explained. Step 5T21 indicates that all color commands registered in the color command setting section 3 are processed. In steps 5T23 and 24, the mark image storage section 42 and document image storage section 43 are simultaneously and sequentially scanned in the horizontal direction Xx as the main scanning direction and the vertical direction YY as the sub-scanning direction in the same procedure as the image input section 1 scans the paper. Indicates scanning. In step 5T25, the document image within the mark image area of the color set in step 5T21 is extracted, and the image processing unit 45
The document image in the above-mentioned mark image area is input to the image processing section 45 which outputs the image, executes the processing function set in step 5T21, and stores the result in the result storage section 5.

次にステップ5T25の動作について第10図を参照し
て説明する。なおここではステップ5T21において設
定された色(ラベル)番号は2.ステップ5T22にお
いて設定された処理機能は文字認識であると仮定する。
Next, the operation of step 5T25 will be explained with reference to FIG. Note that here, the color (label) number set in step 5T21 is 2. It is assumed that the processing function set in step 5T22 is character recognition.

マーク画像記憶部42から出力されるラベルは、副走査
YYI行までは背景を示す110 IIであるため画像
処理部45は起動されない、しかし副走査YY2行には
文字認識処理機能を示す2のラベルを示す画素が存在す
るため画像処理部45に対し文字認識処理のための起動
信号を出力する。
The labels output from the mark image storage unit 42 are 110 II indicating the background up to the sub-scanning YYI line, so the image processing unit 45 is not activated. However, the label 2 indicating the character recognition processing function is output to the sub-scanning YY2 line. Since there is a pixel indicating , an activation signal for character recognition processing is output to the image processing section 45.

ついで副走査行YY3においては、前走査行YY2にお
けるラベル2のマーク画像に連結する2つのマーク画像
に挟まれた領域内の文書画像を抽出して画像処理部45
に送出する。
Next, in the sub-scanning line YY3, the document image in the area sandwiched between the two mark images connected to the mark image of the label 2 in the previous scanning line YY2 is extracted and processed by the image processing unit 45.
Send to.

同様な文書画像の抽出処理は副走査行YYn−1まで続
けられる。YYn行では前走査行YYn−1のラベル2
の画像に連結するマーク画像が存在しないため1画像処
理部45に対して文字認識機能の終了を指示する。
Similar document image extraction processing continues up to sub-scanning row YYn-1. In row YYn, label 2 of previous scanning row YYn-1
Since there is no mark image connected to the image, the one-image processing section 45 is instructed to terminate the character recognition function.

公報に詳述されており1次に示す(4)式および(5)
式を用いて判定することが出来る。
Equations (4) and (5), which are detailed in the official gazette and shown in the first order, are
It can be determined using the formula.

X BYi−1≦XνYi          ・・・
(4)X WYi−1≧XBYi          
−(5)ここでXBYi−1、XすYi−1は各々、走
査行Yiの前走査行Yi−1のラベル0からラベル2へ
の変化点およびラベル2からラベルOへの変化点ペアの
X座標を示し、XBYi 、 XνYiは各々走査行Y
iのラベルOからラベル2への変化点およびラベル2か
らラベルOへの変化点ペアのX座標を示す。
X BYi-1≦XνYi...
(4) X WYi-1≧XBYi
-(5) Here, XBYi-1 and XYi-1 are the change point pair from label 0 to label 2 and from label 2 to label O in the previous scan row Yi-1 of scan row Yi, respectively. Indicates the X coordinate, and XBYi and XνYi are each scanning row Y
The X coordinates of the change point pair of i from label O to label 2 and from label 2 to label O are shown.

第11図は画像処理部45の他の処理過程を示す図であ
って、前述した処理とは異なり、画像処理部45が有す
る処理機能を並列的に作動させるようにし、処理の高速
化と処理手段の簡略化を計ったものである。第11図の
処理において第5図の画像分類部41および文書画像分
類抽出部44の処理を同時に行なうようにしているため
、マーク画像記憶部42と文書画像記憶部43とを省略
することが可能である。第11図において、ステップ(
1)、(2)は前述した第6図と同様に1画像処理部1
の操作を示している。ステップ5T31.32.33は
画像処理対象とする文書図面画像を出力する処理を示し
ている。ステップ5T34〜38は文書図面画像に対す
る画像処理機能を切換えるための処理で、色特性番号0
が選択される場合には色特性番号0以外の画像処理機能
は停止する。ステップ5T31〜38の処理は走査点の
色特性と、カラーコマンド設定部3に登録された色特性
とに基づいて行われる。ステップ5T33を実行する場
合にはカラーコマンド設定部3には予め文書、図面画像
に対する背景画像データを登録しておく必要がある。ま
たステップ5T35の処理を実行するためには、マーク
を施した領域外の文書画像に対する処理を予めコマンド
設定部3に登録しておく。
FIG. 11 is a diagram showing another processing process of the image processing unit 45, and unlike the processing described above, the processing functions of the image processing unit 45 are operated in parallel to speed up the processing and This is intended to simplify the method. In the process of FIG. 11, the image classification section 41 and the document image classification and extraction section 44 of FIG. 5 are performed simultaneously, so the mark image storage section 42 and the document image storage section 43 can be omitted. It is. In FIG. 11, step (
1) and (2) are 1 image processing unit 1 as in FIG. 6 described above.
The operation is shown below. Steps 5T31, 32, and 33 indicate processing for outputting a document drawing image to be subjected to image processing. Steps 5T34 to 38 are processes for switching the image processing function for document drawing images, and the color characteristic number is 0.
When is selected, image processing functions for colors other than color characteristic number 0 are stopped. The processing in steps 5T31 to 38 is performed based on the color characteristics of the scanning point and the color characteristics registered in the color command setting section 3. When executing step 5T33, it is necessary to register background image data for the document and drawing images in the color command setting section 3 in advance. Further, in order to execute the process of step 5T35, the process for the document image outside the marked area is registered in the command setting section 3 in advance.

ステップ5T35の処理は、省略することが出来る5な
お本処理の場合文書図面画像としてRGBの多値データ
を出力するようにしているため、2値化、デイザ画像作
成等の多値画像処理も、画像処理機能として設定するこ
とが出来る。また第6図を用いた説明で述べたようにス
テップ5T31.32.33の中に2値化処理を含める
ことも出来る。
The process in step 5T35 can be omitted.5Note that in this process, RGB multi-value data is output as a document drawing image, so multi-value image processing such as binarization and dither image creation is also possible. It can be set as an image processing function. Furthermore, as described in the explanation using FIG. 6, binarization processing can be included in steps 5T31, 32, and 33.

さらに、同一の色番号に複数の処理を設定するか、複数
の色マークで同一領域を囲むようにするかによって、同
一領域内の画像に対して複数の画像処理を行わせること
も出来る。
Furthermore, it is also possible to perform a plurality of image processes on an image within the same area by setting a plurality of processes for the same color number or by surrounding the same area with a plurality of color marks.

なお第6図および第9図の処理に対しても前述した処理
が適用できることは言うまでもない。
It goes without saying that the above-described processing can also be applied to the processing shown in FIGS. 6 and 9.

第12図は画像処理対象とする文書図面の色特性を学習
するために用いる用紙の一例を示している。文書、図面
の色特性を学習するのは、文書図面中の背景が白息外で
、文字1図形、写真等が黒以外の色特性を有する文書や
図面にも対処できるようにするためである。
FIG. 12 shows an example of a sheet of paper used to learn the color characteristics of a document drawing to be subjected to image processing. The purpose of learning the color characteristics of documents and drawings is to be able to deal with documents and drawings in which the background in a document or drawing is not white and the characters, figures, photographs, etc. have color characteristics other than black. .

第12図に示すような用紙を学習するために、モード切
換え部2の学習モードを、カラーコマンド学習モードと
文書画像特性学習モードとに分割し、文書画像特性学習
モードに対応してカラーコマンド設定部3に例えば次の
ような機能を追加する。
In order to learn the paper as shown in FIG. 12, the learning mode of the mode switching unit 2 is divided into a color command learning mode and a document image characteristic learning mode, and the color command is set corresponding to the document image characteristic learning mode. For example, the following functions are added to section 3.

入力用紙の任意の学習領域内の色特性毎に頻度分布をと
って、頻度の多い順に色特性を設定する。例えば背景お
よび文字、図形、写真が各々−色である場合、文書図面
は背景の領域の方が多いという性質を利用して、色特性
の類似しない上位2種を各々背景および文字、図形、写
真の色特性とする6文字、図形、写真が複数の色となる
場合には、第1位を背景とし上位n種を背景とする。
A frequency distribution is determined for each color characteristic within an arbitrary learning area of the input paper, and the color characteristics are set in descending order of frequency. For example, if the background, text, figure, and photo each have a color, the background, text, figure, and photo each have the top two types with dissimilar color characteristics, taking advantage of the fact that the document drawing has more area in the background. When the 6 characters, figures, and photographs with color characteristics have multiple colors, the first color is used as the background, and the top n types are used as the background.

また学習領域の面積に基づいた閾値を設定しておくこと
により、文字1図形、写真の色の数に制限される事無く
文書図面の色特性を学習、登録することが可能となる。
Furthermore, by setting a threshold value based on the area of the learning area, it becomes possible to learn and register the color characteristics of documents and drawings without being limited by the number of colors in one character, figure, or photograph.

以上のような色特性を用いることにより、下記の特徴を
もった画像処理装置を実現することが出来る。
By using the above color characteristics, an image processing device having the following characteristics can be realized.

■ 文書図面に対して2値化、デイザ画像作成等の画像
処理を行なう場合、最良のパラメータ選択が可能となり
、良質の画像処理結果を得ることが出来る。
(2) When performing image processing such as binarization and dither image creation on document drawings, it is possible to select the best parameters and obtain high-quality image processing results.

■ カラーコマンドに用いるカラーペンの色特性を学習
、設定する場合、原稿とカラーペンの色彩に関して、詳
細な条件を付加することが出来るため、カラーコマンド
と文書画像の分離が正確となり結果的に良質な画像処理
結果を得ることが出来る。
■ When learning and setting the color characteristics of the color pen used for color commands, it is possible to add detailed conditions regarding the color of the original and the color pen, so the color command and document image can be separated accurately, resulting in high quality. It is possible to obtain accurate image processing results.

■ 濃淡の存在する写真を含む文書、図面やカラー文書
図面等マルチメディアの文書1図面、新聞等の質の悪い
用紙に対しても対処可能となり、カラーペン、用紙の種
類、印刷の種類等の制限を除去することが出来る。また
カラーの透明カバー上に追記したカラーコマンドに対す
る画像処理を、カバー内の文書図面に対しても施こすこ
とが可能となる。
■ It is now possible to deal with documents including photos with shading, drawings, color documents, multimedia documents such as single drawings, and poor quality paper such as newspapers, etc. Restrictions can be removed. Furthermore, image processing for color commands added on a color transparent cover can also be applied to document drawings inside the cover.

なお原稿に追記するカラーコマンドの形状は、前述した
実施例では、閉ループ図形であったが、これに限定され
るものではなく、第13図に示すような閉ループ図形以
外のカラーコマンドも使用することが出来る。ここで第
13図(へ)は水平線と垂直線とを各々−辺とする矩形
領域をカラーコマンドの対象領域としている。
Although the shape of the color command added to the manuscript is a closed loop shape in the above-described embodiment, it is not limited to this, and color commands other than the closed loop shape as shown in FIG. 13 may also be used. I can do it. Here, in FIG. 13(f), a rectangular area whose sides are the horizontal line and the vertical line is the target area of the color command.

また第13図1)は垂直線と垂直線間、ある、いは垂直
線と用紙端間の領域をカラーコマンドの対象領域として
いる。
Further, in FIG. 13 (1), the area between vertical lines or between the vertical line and the edge of the paper is set as the target area of the color command.

さらに第13図(C)はカギカッコ間を対角線とする矩
形領域内をカラーコマンドの対象領域としている。
Furthermore, in FIG. 13(C), a rectangular area with diagonal lines between square brackets is set as the target area of the color command.

これらの領域抽出は、公知の領域抽出方法を用いて実現
することが出来る。
These area extractions can be realized using known area extraction methods.

またカラーコマンド用紙に定義する画像処理機能および
領域の形状は、前述したものに限定されるものではない
0例えばDCT、MR,MMR、ランレングス圧縮等の
画像の圧縮処理1回転、拡大、縮小、あみかけ、ぬりつ
ぶし、反転、鏡像。
In addition, the image processing functions and area shapes defined on the color command paper are not limited to those described above. Amikake, coloring, inversion, mirror image.

色変換等の出力処理、文字認識、図形認識、ベクトル化
等の認識処理、γ補正、MTF補正、シェーディング補
正などの補正処理等々数多くの処理を対象とすることが
可能である。
It is possible to target a large number of processes such as output processing such as color conversion, recognition processing such as character recognition, figure recognition, and vectorization, correction processing such as γ correction, MTF correction, and shading correction.

第14図法)〜(a)はそれぞれカラーコマンド用紙の
一例を示したものである。
Figures 14) to (a) each show an example of color command paper.

なお前述した画像入力部1を取り除き、磁気ディスクな
どの記憶装置から画像データを直接入力するように構成
することも出来る。
It is also possible to remove the image input section 1 described above and to directly input image data from a storage device such as a magnetic disk.

[発明の効果] 以上実施例に基づいて詳細に説明したように、本発明で
はカラーペンの色に対応した処理機能定義したカラーコ
マンド用紙を、原稿読取りに先行り、テ11取り、この
カラーコマンド用紙に記載されたカラーペンの色特性を
学習して、学習した色特性と前述した処理機能とをペア
で登録し、前記色特性に基づいて原稿上に追記したカラ
ーマークと文書図面とを分離抽出すると共に、前記カラ
ーマークを色毎に分類し、該分類した色に対応する処理
機能にしたがって、文書図面画像に画像処理を施こすよ
うにしているため、所望の領域に所望の画像処理を施こ
すことが出来る。
[Effects of the Invention] As described above in detail based on the embodiments, in the present invention, a color command paper having a processing function defined corresponding to the color of a color pen is read, and the color command is Learns the color characteristics of the color pen written on the paper, registers the learned color characteristics and the processing function described above as a pair, and separates the color mark added on the document from the document drawing based on the color characteristics. At the same time as extraction, the color marks are classified by color and image processing is applied to the document drawing image according to the processing function corresponding to the classified color, so the desired image processing can be applied to the desired area. It can be applied.

しかも用紙の種類や文書図面の印刷の種類、さらにカラ
ーペンの種類が限定されない汎用性の高い操作性の優れ
た画像処理装置を、簡単な処理と構成で実現することが
出来る。
Moreover, it is possible to realize an image processing device with high versatility and excellent operability, which is not limited to the types of paper, the types of documents and drawings to be printed, and the types of color pens, with simple processing and configuration.

また本装置の機能を限定し0CR1文書読取り装置、編
集装置、FAX、電子黒板等に実装することにより、汎
用性の高い操作性の優れた装置を得ることが出来る。
Furthermore, by limiting the functions of this device and implementing it in an 0CR1 document reading device, editing device, FAX, electronic blackboard, etc., a device with high versatility and excellent operability can be obtained.

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

第1図は本発明の一実施例を示すブロック図。 第2図は本発明に用いられるカラーコマンド用紙の説明
図、第3図は色特性の説明図、第4図はカラーコマンド
設定部の詳細ブロック図、第5図は本発明の画像処理部
の詳細構成を示すブロック図、第6図は本発明の一実施
例の処理過程を示す図、第7図は本発明で用いられるカ
ラーマークが追記された原稿用紙を示す図、第8図は第
7図の原稿用紙から分離抽出されたマーク画像と文書図
面画像とを示す図、第9図は文書画像分類抽出部と画像
処理部との処理過程を示す図、第10図は文書画像分類
抽出部の説明図、第11図は本発明の画像処理部の他の
処理過程を示す図、第12図は文字、図形、写真と背景
の色特性を学習するための用紙、第13図は追記される
カラーコマンドの各種例を示す図、第14図はカラーコ
マンド用紙の一例を示す図である。 −・カラーコマンド設定部、4・・・・・・画像処理部
、5−・・・・結果格納部。
FIG. 1 is a block diagram showing one embodiment of the present invention. Fig. 2 is an explanatory diagram of the color command paper used in the present invention, Fig. 3 is an explanatory diagram of color characteristics, Fig. 4 is a detailed block diagram of the color command setting section, and Fig. 5 is an illustration of the image processing section of the present invention. FIG. 6 is a block diagram showing the detailed configuration, FIG. 6 is a diagram showing the processing process of an embodiment of the present invention, FIG. 7 is a diagram showing manuscript paper on which color marks used in the present invention are added, and FIG. Figure 7 is a diagram showing the mark image and document drawing image separated and extracted from the manuscript paper, Figure 9 is a diagram showing the processing process of the document image classification extraction unit and the image processing unit, and Figure 10 is the document image classification extraction. Figure 11 is a diagram showing other processing steps of the image processing unit of the present invention, Figure 12 is a sheet for learning the color characteristics of characters, figures, photographs and backgrounds, Figure 13 is an additional page. FIG. 14 is a diagram showing an example of a color command sheet. - Color command setting unit, 4... Image processing unit, 5-... Result storage unit.

Claims (1)

【特許請求の範囲】 文書/図面とこれと異なる色のマークとからなる画像が
記載された原稿を読み取って、このマークの色に対応す
る処理を前記文書/図面の画像に対して施こす画像処理
装置において、 原稿上の画像の色および/または濃淡に応じた画像情報
を出力する画像入力部と、 前記画像情報を入力信号とし学習モードと原稿読み取り
モードとを切換えるモード切換部と、前記モード切換部
が学習モードに設定されている場合には、文書/図面の
画像に対して施こす処理機能を定義するために設定され
たカラーコマンド用紙の所定領域の情報を色特性として
読み取り前記処理機能に対応するコードと共に登録する
カラーコマンド設定部と、 前記モード切換部が原稿読み取りモードに設定されてい
る場合には、前記画像入力部から出力される画像情報を
文書/図面の画像とマークの画像とに分離、抽出し前記
カラーコマンド設定部に登録された色特性に対応した処
理を分離、抽出した前記文書/図面の画像に対して施こ
す画像処理部とを設けたことを特徴とする画像処理装置
[Claims] An image in which a document containing an image consisting of a document/drawing and a mark of a different color is read, and a process corresponding to the color of the mark is applied to the image of the document/drawing. The processing device includes: an image input unit that outputs image information according to the color and/or shading of an image on a document; a mode switching unit that uses the image information as an input signal to switch between a learning mode and a document reading mode; and the mode When the switching unit is set to the learning mode, information in a predetermined area of the color command paper set to define a processing function to be applied to an image of a document/drawing is read as a color characteristic and the processing function is read. a color command setting section which is registered along with a code corresponding to the color command setting section, and when the mode switching section is set to the document reading mode, the image information output from the image input section is input to the image of the document/drawing and the image of the mark. and an image processing unit that performs processing corresponding to the color characteristics separated and extracted and registered in the color command setting unit on the separated and extracted image of the document/drawing. Processing equipment.
JP2021538A 1990-01-30 1990-01-30 Image processor Pending JPH03225477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021538A JPH03225477A (en) 1990-01-30 1990-01-30 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021538A JPH03225477A (en) 1990-01-30 1990-01-30 Image processor

Publications (1)

Publication Number Publication Date
JPH03225477A true JPH03225477A (en) 1991-10-04

Family

ID=12057747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021538A Pending JPH03225477A (en) 1990-01-30 1990-01-30 Image processor

Country Status (1)

Country Link
JP (1) JPH03225477A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5579407A (en) * 1992-04-21 1996-11-26 Murez; James D. Optical character classification
WO2003065295A1 (en) * 2002-01-29 2003-08-07 Simpleware Limited Colour code assisted image matching method
JP2012096386A (en) * 2010-10-29 2012-05-24 Kyocera Mita Corp Image forming apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5579407A (en) * 1992-04-21 1996-11-26 Murez; James D. Optical character classification
WO2003065295A1 (en) * 2002-01-29 2003-08-07 Simpleware Limited Colour code assisted image matching method
JP2012096386A (en) * 2010-10-29 2012-05-24 Kyocera Mita Corp Image forming apparatus

Similar Documents

Publication Publication Date Title
JP3258122B2 (en) Image processing device
EP0369702A2 (en) Image processing apparatus and method
US20090027732A1 (en) Image processing apparatus, image processing method, and computer program
US7986832B2 (en) Image combining apparatus and control method for the same
CN104412299A (en) Image processing device and recording medium
CN101382944A (en) Image processing device and method, image forming device, image reading device
US8498024B2 (en) Image processing apparatus, method, and storage medium for information processing according to information on a scanned sheet
JPH0727725Y2 (en) Image editing equipment
JP2020107982A (en) Image processing device, color conversion method, and color conversion program
JPH03225477A (en) Image processor
JP2000029198A (en) Color proof device, image processor and recording medium
JP2896919B2 (en) Image processing device
US6809742B1 (en) Image editing device permitting user to register desired patterns
JPH03248279A (en) Picture processor
JP3113633B2 (en) Plate inspection device
JPH0424879A (en) Picture processor
JPH03263277A (en) Picture processor
JP2871570B2 (en) Character recognition apparatus and method
JPH03276267A (en) Image processor
JPH05128225A (en) Color designation / extraction device and color designation / extraction method
JPH03263273A (en) Picture processor
JP2000115522A (en) Image processing device
KR101684626B1 (en) Picture recognition method of paper and video representation method using this
JP2001126025A (en) OCR format parameter creation method
JPH041864A (en) Image processor