JPH0875552A - Writing instrument discriminator - Google Patents

Writing instrument discriminator

Info

Publication number
JPH0875552A
JPH0875552A JP6209805A JP20980594A JPH0875552A JP H0875552 A JPH0875552 A JP H0875552A JP 6209805 A JP6209805 A JP 6209805A JP 20980594 A JP20980594 A JP 20980594A JP H0875552 A JPH0875552 A JP H0875552A
Authority
JP
Japan
Prior art keywords
writing instrument
writing
discriminating
color image
medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6209805A
Other languages
Japanese (ja)
Other versions
JP3126597B2 (en
Inventor
Isao Sugano
功 菅野
Koji Ito
晃治 伊東
Koichi Higuchi
浩一 樋口
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 JP06209805A priority Critical patent/JP3126597B2/en
Publication of JPH0875552A publication Critical patent/JPH0875552A/en
Application granted granted Critical
Publication of JP3126597B2 publication Critical patent/JP3126597B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To obtain a highly efficient writing instrument discriminator in which a frame for putting a mark on a medium to be discriminated can be eliminated along with a work for filling the frame by means of a writing instrument. CONSTITUTION: The color image of a medium to be discriminated is taken in at a scanning section 10 and stored in a color image memory section 20. Only the pixels corresponding to a part written by means of the writing instrument are then extracted at a pixel extracting section 30 from the color image stored in the memory section 20. A writing instrument being used is discriminated at a writing instrument deciding section 40 based on the difference of color information distribution of the pixels corresponding to the part written by means of the writing instrument extracted at the pixel extracting section 30.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、文書、帳票等の被読取
媒体に書かれた文字を光学的に読み取る光学文字読取装
置等において、使用された筆記具の種類を光学的に判別
する筆記具判別装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a writing instrument discrimination for optically discriminating the type of writing instrument used in an optical character reading device for optically reading a character written on a medium to be read such as a document or a form. It relates to the device.

【0002】[0002]

【従来の技術】従来、このような分野の技術としては、
例えば次のような文献に記載されるものがあった。 文献;特開昭62−112124号公報 一般に、文書、帳票等の被読取媒体に文字や図形等を記
入する場合、それに使用する筆記具には、黒色の鉛筆や
ボールペン等が多く用いられている。ところが、同じ黒
色であっても、鉛筆とボールペンでは、記入部分の濃度
等が異なるために、同一条件下で光学的に画像の取り込
みを行う際には、かすれや、つぶれ等といった不具合が
生じる場合がある。そのため、例えば従来の光学文字読
取装置では、記入筆記具が鉛筆であるのか、ボールペン
であるのかを、該光学文字読取装置のオペレータが指示
を行い、筆記具別の条件によって画像の取り込みを行う
といった工夫が行われていた。しかし、このような方法
では、オペレータが筆記具の種類を光学文字読取装置に
入力しなければならないので、オペレータに過度の負担
をかけるばかりでなく、高速処理が困難になったり、オ
ペレータの指示誤りによる操作ミスが発生するといった
問題があった。そこで、このような問題を解決するた
め、前記文献の技術では、光学文字読取装置における筆
記具判別手段を次のように提案している。この文献の技
術では、ある筆記具を用いて被読取媒体上に記入された
文字等を読み取る場合に、その被読取媒体の所定の箇所
に、使用された筆記具と同一の筆記具を用いてマークを
記入させる。そして、被読取媒体の所定の箇所に記入さ
れたマークの画像イメージを光学センサで読み取り、こ
のセンサの光電変換出力を筆記具の種類別に用意された
基準値と比較手段で比較する。その後、比較手段の比較
結果から、被読取媒体の記入用に使用された筆記具を判
別し、これに対応した適切な光学フィルタをセットして
被読取媒体上の文字等を読み取るようにしている。
2. Description of the Related Art Conventionally, techniques in such a field include:
For example, some documents were described in the following documents. Reference: Japanese Patent Application Laid-Open No. 62-112124 Generally, when writing characters or figures on a medium to be read such as a document or a form, a black pencil or a ballpoint pen is often used as a writing instrument used for the writing. However, even if it is the same black color, the pencil and the ballpoint pen have different densities in the filled area, so when the images are optically captured under the same conditions, problems such as blurring and crushing may occur. There is. Therefore, for example, in a conventional optical character reading device, an operator of the optical character reading device may instruct whether the writing writing tool is a pencil or a ball-point pen, and an image may be captured according to the conditions for each writing tool. It was done. However, in such a method, since the operator has to input the type of writing instrument into the optical character reading device, not only an excessive burden is imposed on the operator, but also high-speed processing becomes difficult and an instruction error by the operator may occur. There was a problem that an operation mistake occurred. Then, in order to solve such a problem, the technique of the said literature proposes the writing tool discrimination | determination means in an optical character reader as follows. In the technology of this document, when reading a character or the like written on a medium to be read using a writing instrument, a mark is written at a predetermined position on the medium to be read using the same writing instrument as the writing instrument used. Let Then, the image of the mark written in the predetermined portion of the medium to be read is read by the optical sensor, and the photoelectric conversion output of this sensor is compared with the reference value prepared for each type of writing instrument by the comparison means. After that, the writing tool used for writing on the medium to be read is discriminated from the comparison result of the comparing means, and an appropriate optical filter corresponding to this is set to read the characters on the medium to be read.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
光学文字読取装置における筆記具判別装置では、被読取
媒体の所定位置のマーク記入用の枠内を、被読取媒体記
入時に使用した筆記具で塗りつぶさなければならないた
め、被読取媒体記入時の作業効率の面では大変不利であ
るという問題があり、それを解決することが困難であっ
た。本発明は、前記従来技術が持っていた課題を解決
し、被判別媒体上のマーク記入用の枠及び使用筆記具に
よる塗りつぶし作業の必要がなく、作業効率の高い筆記
具判別装置を提供するものである。
However, in the writing instrument discrimination apparatus in the conventional optical character reading apparatus, the inside of the mark writing frame at the predetermined position on the medium to be read must be filled with the writing instrument used when writing the medium to be read. Therefore, there is a problem that it is very disadvantageous in terms of work efficiency when writing a medium to be read, and it is difficult to solve it. SUMMARY OF THE INVENTION The present invention solves the problems of the prior art, and provides a writing implement discriminating apparatus with high work efficiency, which eliminates the need for a marking operation on a medium to be discriminated and a writing operation using a writing implement. .

【0004】[0004]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、被判別媒体上に文字等を書くために
使用した筆記具を判別する筆記具判別装置において、前
記被判別媒体のカラー画像イメージを記憶する記憶手段
と、前記記憶手段に記憶されているカラー画像イメージ
から、前記筆記具により書かれた部分に該当する画素の
みを抽出する筆記具画素抽出手段と、前記筆記具画素抽
出手段により抽出された画素の色情報の分布状況の違い
により、前記筆記具の判別を行う筆記具判別手段とを、
備えている。第2の発明では、被判別媒体のカラー画像
イメージから、前記筆記具により書かれた部分に該当す
る画素のみを抽出する筆記具画素抽出手段と、前記筆記
具画素抽出手段により抽出された画素の色情報の分布状
況の違いにより、前記筆記具の判別を行う筆記具判別手
段とを、備えている。第3の発明では、被判別媒体のカ
ラー画像イメージを記憶する記憶手段と、前記記憶手段
に記憶されているカラー画像イメージから、前記被判別
媒体1枚毎に、前記筆記具により書かれた部分に該当す
る画素のみを抽出する筆記具画素抽出手段と、前記筆記
具画素抽出手段により抽出された被判別媒体1枚毎の画
素の色情報の分布状況の違いにより、前記筆記具の判別
を行う筆記具判別手段とを、備えている。
In order to solve the above-mentioned problems, a first invention is a writing instrument discriminating apparatus for discriminating a writing instrument used for writing characters or the like on a medium to be discriminated. A storage means for storing a color image image; a writing tool pixel extraction means for extracting only pixels corresponding to a portion written by the writing tool from the color image image stored in the storage means; and a writing tool pixel extraction means. A writing instrument discrimination means for discriminating the writing instrument according to the difference in the distribution state of the extracted pixel color information,
I have it. In the second invention, a writing tool pixel extracting means for extracting only pixels corresponding to a portion written by the writing tool from a color image image of a medium to be discriminated, and color information of pixels extracted by the writing tool pixel extracting means. A writing tool determination unit that determines the writing tool depending on the distribution state is provided. According to a third aspect of the present invention, a storage unit that stores a color image image of a medium to be discriminated, and a color image image stored in the storage unit are provided to a portion written by the writing instrument for each sheet of the medium to be discriminated. Writing instrument pixel extracting means for extracting only the corresponding pixels, and writing instrument determining means for determining the writing instrument based on the difference in the distribution status of the color information of the pixels for each of the determination target media extracted by the writing instrument pixel extracting means. Is equipped with.

【0005】第4の発明では、被判別媒体のカラー画像
イメージを記憶する記憶手段と、前記記憶手段に記憶さ
れているカラー画像イメージから、1文字あるいは1図
形を切り出す文字・図形切出手段と、前記文字・図形切
出手段により切り出されたカラー画像イメージから、前
記筆記具により書かれた部分に該当する画素のみを抽出
する筆記具画素抽出手段と、前記筆記具画素抽出手段に
より抽出された画素の色情報の分布状況の違いにより、
前記筆記具の判別を行う筆記具判別手段とを、備えてい
る。第5の発明では、被判別媒体のカラー画像イメージ
を記憶する記憶手段と、前記記憶手段に記憶されている
カラー画像イメージから、文字あるいは図形を行単位に
切り出す行切出手段と、前記行切出手段により切り出さ
れたカラー画像イメージから、前記筆記具により書かれ
た部分に該当する画素のみを抽出する筆記具画素抽出手
段と、前記筆記具画素抽出手段により抽出された画素の
色情報の分布状況の違いにより、前記筆記具の判別を行
う筆記具判別手段とを、備えている。第6の発明では、
第1、第2、第3、第4又は第5の発明の筆記具判別手
段が、前記筆記具により書かれた部分に該当する画素の
色情報の分布状況の違いにより、前記筆記具の判別を行
ってその判別結果を外部に出力する手段を具備してい
る。
According to a fourth aspect of the present invention, storage means for storing a color image image of the medium to be discriminated, and character / graphic cutting means for cutting out one character or one figure from the color image image stored in the storage means. , A writing tool pixel extracting means for extracting only pixels corresponding to a portion written by the writing tool from the color image image cut out by the character / graphic cutting means, and a color of the pixel extracted by the writing tool pixel extracting means Depending on the distribution of information,
And a writing tool discriminating means for discriminating the writing instrument. According to a fifth aspect of the present invention, storage means for storing the color image image of the medium to be discriminated, line cutting means for cutting out characters or figures in line units from the color image image stored in the storage means, and the line cutting means. Difference between the distribution state of the color information of the writing tool pixel extracting means for extracting only the pixels corresponding to the portion written by the writing tool from the color image image cut out by the outputting means, and the color information of the pixels extracted by the writing tool pixel extracting means According to the above, there is provided a writing tool determination means for determining the writing tool. In the sixth invention,
The writing instrument determination means according to the first, second, third, fourth or fifth aspect of the present invention determines the writing instrument based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing instrument. A means for outputting the determination result to the outside is provided.

【0006】第7の発明では、第1、第2、第3、第
4、第5又は第6の発明の筆記具判別手段における前記
色情報が、赤(R)、緑(G)、青(B)の画像イメー
ジ信号となっている。第8の発明では、第1、第2、第
3、第4、第5又は第6の発明の筆記具判別手段におけ
る前記色情報が、色相(H)、彩度(S)、あるいは明
度(V)のいずれか一つあるいは複数の組み合せとなっ
ている。第9の発明では、第7の発明の筆記具判別手段
を、判別対象筆記具を黒の鉛筆とボールペンとし、使用
筆記具により書かれた部分に該当する画素の赤(R)の
濃度値の緑(G)の濃度値あるいは青(B)の濃度値に
対する大小関係を用いて筆記具の判別を行う構成にして
いる。
In the seventh invention, the color information in the writing instrument discrimination means of the first, second, third, fourth, fifth or sixth invention is red (R), green (G), blue ( It is the image image signal of B). In an eighth invention, the color information in the writing instrument discrimination means of the first, second, third, fourth, fifth or sixth invention is hue (H), saturation (S), or lightness (V). ) Any one or a combination of multiple. In the ninth invention, the writing tool discrimination means of the seventh invention is such that the writing instrument to be discriminated is a black pencil and a ballpoint pen, and the red (R) density value green (G) of the pixel corresponding to the portion written by the writing instrument used. ) Or the blue (B) density value is used to determine the writing instrument.

【0007】[0007]

【作用】第1の発明によれば、以上のように筆記具判別
装置を構成したので、被判別媒体のカラー画像イメージ
が入力されると、それが記憶手段に格納される。記憶手
段に格納されたカラー画像イメージのうち、筆記具によ
り書かれた部分に該当する画素のみが筆記具画素抽出手
段で抽出され、筆記具判別手段へ送られる。筆記具判別
手段では、筆記具画素抽出手段により抽出された、筆記
具により書かれた部分に該当する画素の色情報の分布状
況の違いに基づき、使用筆記具の判別を行う。第2の発
明によれば、被判別媒体のカラー画像イメージが入力さ
れると、そのカラー画像イメージから、筆記具画素抽出
手段により、筆記具により書かれた部分に該当する画素
のみが抽出され、筆記具判別手段へ送られる。筆記具判
別手段では、筆記具画素抽出手段により抽出された、筆
記具により書かれた部分に該当する画素の色情報の分布
状況の違いに基づき、使用筆記具の判別を行う。第3の
発明によれば、被判別媒体のカラー画像イメージが入力
されると、それが記憶手段に格納される。記憶手段に格
納されたカラー画像イメージから、筆記具画素抽出手段
により、被判別媒体1枚毎に、筆記具により書かれた部
分に該当する画素のみが抽出されて筆記具判別手段へ送
られる。筆記具判別手段では、筆記具画素抽出手段によ
って抽出された被判別媒体1枚毎の、筆記具により書か
れた部分に該当する画素の色情報の分布状況の違いに基
づき、使用筆記具の判別を行う。
According to the first aspect of the present invention, the writing instrument discriminating apparatus is constructed as described above, so that when the color image of the medium to be discriminated is inputted, it is stored in the storage means. Among the color image images stored in the storage means, only the pixels corresponding to the portion written by the writing tool are extracted by the writing tool pixel extraction means and sent to the writing tool determination means. The writing instrument determination means determines the writing instrument to be used based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing instrument extracted by the writing instrument pixel extraction means. According to the second invention, when the color image image of the medium to be discriminated is input, only the pixels corresponding to the portion written by the writing instrument are extracted from the color image image by the writing instrument pixel extraction means. Sent to the means. The writing instrument determination means determines the writing instrument to be used based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing instrument extracted by the writing instrument pixel extraction means. According to the third aspect, when the color image of the medium to be discriminated is input, it is stored in the storage means. From the color image image stored in the storage means, the writing tool pixel extraction means extracts only the pixels corresponding to the portion written by the writing tool for each discriminating medium and sends them to the writing tool discrimination means. The writing instrument determination means determines the writing instrument to be used based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing instrument for each of the determination target media extracted by the writing instrument pixel extraction means.

【0008】第4の発明によれば、被判別媒体のカラー
画像イメージが入力されると、それが記憶手段に格納さ
れる。記憶手段に格納されたカラー画像イメージから、
文字・図形切出手段により、1文字あるいは1図形が切
り出される。この切り出されたカラー画像イメージか
ら、筆記具画素抽出手段により、筆記具により書かれた
部分に該当する画素のみが抽出され、筆記具判別手段へ
送られる。筆記具判別手段では、筆記具画素抽出手段に
よって抽出された、筆記具により書かれた部分に該当す
る画素の色情報の分布状況の違いに基づき、使用筆記具
の判別を行う。第5の発明によれば、被判別媒体のカラ
ー画像イメージが入力されると、それが記憶手段に格納
される。記憶手段に格納されたカラー画像イメージか
ら、行切出手段により、文字あるいは図形が行単位に切
り出される。この切り出されたカラー画像イメージか
ら、筆記具画素抽出手段により、筆記具により書かれた
部分に該当する画素のみが抽出され、筆記具判別手段へ
送られる。筆記具判別手段では、筆記具画素抽出手段に
よって抽出された、筆記具により書かれた部分に該当す
る画素の色情報の分布状況の違いに基づき、使用筆記具
の判別を行う。第6の発明によれば、筆記具判別手段
は、筆記具により書かれた部分に該当する画素の色情報
の分布状況の違いに基づき、使用筆記具の判別を行って
その判別結果を外部へ出力する。
According to the fourth invention, when the color image of the medium to be discriminated is input, it is stored in the storage means. From the color image image stored in the storage means,
One character or one figure is cut out by the character / graphic cutting means. From the cut out color image image, only the pixels corresponding to the portion written by the writing tool are extracted by the writing tool pixel extraction means and sent to the writing tool determination means. The writing tool determination means determines the writing tool to be used based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing tool, which is extracted by the writing tool pixel extraction means. According to the fifth aspect, when the color image of the medium to be discriminated is input, it is stored in the storage means. Characters or figures are cut out line by line from the color image image stored in the storage means by the line cutout means. From the cut out color image image, only the pixels corresponding to the portion written by the writing tool are extracted by the writing tool pixel extraction means and sent to the writing tool determination means. The writing tool determination means determines the writing tool to be used based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing tool, which is extracted by the writing tool pixel extraction means. According to the sixth aspect, the writing instrument determination means determines the writing instrument used based on the difference in the distribution status of the color information of the pixels corresponding to the portion written by the writing instrument, and outputs the determination result to the outside.

【0009】第7の発明によれば、筆記具判別手段は、
筆記具により書かれた部分に該当する画素のR、G、B
の画像イメージ信号の違いに基づき、使用筆記具の判別
を行う。第8の発明によれば、筆記具判別手段は、筆記
具により書かれた部分に該当する画素のH、S、あるい
はVのいずれか一つあるいは複数の組み合せの違いによ
り、筆記具の判別を行う。第9の発明によれば、筆記具
判別手段は、黒の鉛筆とボールペンで書かれた部分に該
当する画素のRの濃度値のGの濃度値あるいはBの濃度
値に対する大小関係を用いてそれらの筆記具の判別を行
う。従って、前記課題を解決できるのである。
According to the seventh invention, the writing instrument discrimination means is
R, G, B of the pixel corresponding to the part written by the writing instrument
The writing instrument to be used is discriminated based on the difference in the image signal. According to the eighth aspect, the writing instrument determination means determines the writing instrument based on the difference in one or a plurality of combinations of H, S, and V of the pixels corresponding to the portion written by the writing instrument. According to the ninth aspect of the invention, the writing instrument determination means uses the magnitude relationship of the R density value of the pixel corresponding to the portion written with the black pencil and the ballpoint pen with respect to the G density value or the B density value. Identify writing instruments. Therefore, the above problem can be solved.

【0010】[0010]

【実施例】第1の実施例 図1は、本発明の第1の実施例を示す筆記具判別装置の
機能ブロック図である。この筆記具判別装置は、集積回
路等を用いた個別回路、あるいはプログラム制御される
プロセッサ等で構成されるもので、被判別媒体からR、
G、Bの3色のカラー画像イメージを取り込む走査部1
0を有している。走査部10は、光電変換素子等で構成
され、被判別媒体上を走査してその被判別媒体のカラー
画像イメージを電気信号の形で取り込む機能を有し、そ
の出力側にカラーイメージ記憶部20が接続されてい
る。カラーイメージ記憶部20は、走査部10により取
り込まれたカラー画像イメージを記憶する記憶手段とし
ての機能を有し、その出力側に筆記具画素抽出部30が
接続されている。筆記具画素抽出部30は、カラーイメ
ージ記憶部20に記憶されているカラー画像イメージか
ら使用筆記具にて書かれた部分に該当する画素のみを抽
出する筆記具画素抽出手段としての機能を有し、その出
力側に筆記具判別部40が接続されている。筆記具判別
部40は、筆記具画素抽出部30により抽出された画素
(使用筆記具により書かれた部分に該当する画素)の
R、G、B値の分布状況の違いにより、筆記具の判別を
行ってその判別結果を外部に出力する筆記具判別手段と
しての機能を有している。この筆記具判別部40は、筆
記具画素抽出部30により抽出された使用筆記具による
画素のR、G、B値を用いて筆記具判別のための評価値
を算出する評価値算出部41と、該評価値算出部41に
おいて得られる評価値に対する例えば鉛筆及びボールペ
ンの基準となる値を記憶する基準値記憶部42と、該評
価値算出部41により得られる評価値と該基準値記憶部
42に記憶されている基準値とを比較して筆記具の判別
を行う比較部43とで、構成されている。以上のように
構成される筆記具判別装置の動作を図2、図3及び図4
(a),(b)を参照しつつ説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a functional block diagram of a writing instrument discriminating apparatus showing a first embodiment of the present invention. This writing instrument discriminating apparatus comprises an individual circuit using an integrated circuit or the like, or a program-controlled processor or the like.
Scanning unit 1 for capturing color image images of three colors G and B
Has 0. The scanning unit 10 is composed of a photoelectric conversion element or the like, has a function of scanning on the medium to be discriminated and capturing the color image of the medium to be discriminated in the form of an electric signal, and the color image storage unit 20 is provided on the output side thereof. Are connected. The color image storage unit 20 has a function as a storage unit for storing the color image image captured by the scanning unit 10, and the writing instrument pixel extraction unit 30 is connected to the output side thereof. The writing instrument pixel extraction unit 30 has a function as a writing instrument pixel extraction unit that extracts only the pixels corresponding to the portion written by the writing instrument used from the color image image stored in the color image storage unit 20, and outputs it. The writing instrument determination unit 40 is connected to the side. The writing implement discriminating unit 40 discriminates the writing implement based on the difference in the distribution status of the R, G, and B values of the pixels extracted by the writing implement pixel extracting unit 30 (pixels corresponding to the portion written by the writing implement used). It has a function as a writing instrument discrimination means for outputting the discrimination result to the outside. The writing instrument determination unit 40 includes an evaluation value calculation unit 41 that calculates an evaluation value for writing instrument determination using the R, G, and B values of the pixels of the writing instrument used extracted by the writing instrument pixel extraction unit 30, and the evaluation value. A reference value storage unit 42 that stores, for example, a reference value of a pencil and a ballpoint pen with respect to an evaluation value obtained by the calculation unit 41, an evaluation value obtained by the evaluation value calculation unit 41, and a reference value storage unit 42 that stores the evaluation value. It is configured with a comparison unit 43 that compares the reference value with the reference value and determines the writing tool. The operation of the writing instrument discriminating apparatus configured as described above will be described with reference to FIGS.
A description will be given with reference to (a) and (b).

【0011】図2は、図1の筆記具判別装置で使用する
被判別媒体50を示す図である。この被判別媒体50
は、例えば、地色が白色であり、被判別筆記具として黒
色の鉛筆あるいはボールペンを用いて「ABC」の文字
51が書かれている。図3は、被判別媒体50のカラー
画像イメージを走査部10で取り込む際の走査の方向
(主走査方向61及び副走査方向62)を示す図であ
る。図1の筆記具判別装置で筆記具を判別する場合、走
査部10により、図2の被判別媒体50上を図3に示す
主走査方向61及び副走査方向62に光学的に走査し、
R、G、Bの3色のカラー画像イメージを順次取り込
み、カラーイメージ記憶部20に格納する。カラー画像
イメージは、例えば、R、G、Bそれぞれ8ビット(0
〜255)多値にて取り込まれ、カラーイメージ記憶部
20に格納される。走査部10により、被判別媒体50
のカラー画像イメージがカラーイメージ記憶部20に格
納されると、筆記具画素抽出部30では、カラーイメー
ジ記憶部20に格納されたカラー画像イメージより、所
定領域内部の部分のイメージを取り出し、画素単位に、
一般に黒色はR、G、B値がすべて小さく、白色は逆に
R、G、B値がすべて大きいことを利用して次の条件
(1)を満たすとき、文字51を構成する画素であると
判定する。
FIG. 2 is a diagram showing a discriminating medium 50 used in the writing instrument discriminating apparatus of FIG. This discriminating medium 50
For example, the background color is white, and the character 51 of "ABC" is written using a black pencil or a ballpoint pen as the writing instrument to be discriminated. FIG. 3 is a diagram showing scanning directions (main scanning direction 61 and sub-scanning direction 62) when the color image of the medium to be discriminated 50 is captured by the scanning unit 10. When discriminating a writing instrument with the writing instrument discriminating apparatus shown in FIG. 1, the scanning unit 10 optically scans the medium to be discriminated 50 shown in FIG. 2 in the main scanning direction 61 and the sub-scanning direction 62 shown in FIG.
The color image images of three colors of R, G and B are sequentially taken in and stored in the color image storage unit 20. The color image image is, for example, 8 bits (0
Up to 255) Multi-valued data is captured and stored in the color image storage unit 20. By the scanning unit 10, the medium 50 to be discriminated
When the color image image of is stored in the color image storage unit 20, the writing instrument pixel extraction unit 30 extracts the image of the portion inside the predetermined area from the color image image stored in the color image storage unit 20, and the pixel unit is used. ,
Generally, black has all R, G, and B values small, and white has all R, G, and B values all large. On the contrary, when the following condition (1) is satisfied, it is a pixel forming a character 51. judge.

【0012】 R<THr かつ G<THg かつ B<THb ・・・(1) 但し、THr、THg及びTHb;それぞれR、G及び
B値に対する所定閾値条件(1)の所定領域は、記入文
字51を構成する画素を含む領域であるとする。筆記具
画素抽出部30によって文字51を構成する画素が抽出
されると、筆記具判別部40内の評価値算出部41で
は、次式(2)により、筆記具判別のための評価値Ar
gbを算出する。
R <THr and G <THg and B <THb (1) However, THr, THg and THb; the predetermined area of the predetermined threshold value condition (1) for the R, G and B values, respectively, is the written character 51. It is assumed that the area includes the pixels constituting the. When the pixels forming the character 51 are extracted by the writing implement pixel extraction unit 30, the evaluation value calculation unit 41 in the writing implement determination unit 40 uses the following expression (2) to evaluate the evaluation value Ar for the writing implement determination.
Calculate gb.

【数1】 この評価値Argbの計算は、筆記具画素抽出部30に
よる文字51を構成する画素の抽出と同時に行う。即
ち、筆記具画素抽出部30により、文字51を構成する
画素Rn,Gn,Bnが抽出されるたびに、評価値算出
部41では、 (Rn−Gn)+(Rn−Bn) ・・・(3) を逐次計算し、その計算結果を累積していくと同時に、
文字51を構成する画素数Nをカウントアップし、すべ
ての所定領域内部の画素について筆記具画素抽出部30
による文字51を構成する画素の抽出動作が終了したと
き、累積された(3)式の計算結果を、文字51を構成
する画素数Nで割る。評価値算出部41によって評価値
Argbが算出されると、比較部43では、評価値Ar
gbと、基準値記憶部42に予め記憶されている筆記具
判別のための基準閾値とを比較し、鉛筆であるのか、ボ
ールペンであるのか、あるいはどちらでもないのかを判
別し、その判別結果を外部へ出力する。
[Equation 1] The calculation of the evaluation value Argb is performed at the same time when the writing tool pixel extraction unit 30 extracts the pixels forming the character 51. That is, each time the writing tool pixel extraction unit 30 extracts the pixels Rn, Gn, Bn forming the character 51, the evaluation value calculation unit 41 calculates (Rn−Gn) + (Rn−Bn) (3). ) Is calculated sequentially and the calculation results are accumulated at the same time,
The number N of pixels forming the character 51 is counted up, and the writing tool pixel extraction unit 30 is executed for all the pixels inside the predetermined area.
When the operation of extracting the pixels forming the character 51 by means of is completed, the accumulated calculation result of the equation (3) is divided by the number N of pixels forming the character 51. When the evaluation value calculation unit 41 calculates the evaluation value Argb, the comparison unit 43 calculates the evaluation value Argb.
gb is compared with a reference threshold value for writing instrument determination stored in advance in the reference value storage unit 42 to determine whether it is a pencil, a ballpoint pen, or neither, and the determination result is output to the outside. Output to.

【0013】次に、筆記具判別のための評価値Argb
を、(2)式とした根拠を図4(a),(b)を参照し
つつ説明する。図4(a),(b)は図1の筆記具判別
装置で判別される筆記具の濃度ヒストグラムを示す図で
あり、同図(a)は黒色の鉛筆のR、G、B値の濃度ヒ
ストグラムの例を示し、同図(b)は黒色のボールペン
のR、G、B値の濃度ヒストグラムの例を示している。
図4(a)に示す如く、黒色の鉛筆では、R値が、G値
あるいはB値に比べ、小さい値を示す場合が多い。ま
た、図4(b)に示す如く、黒色のボールペンでは、R
値が、G値あるいはB値に比べ、大きいか、同程度の値
を示す場合が多い。つまり、R値のG値あるいはB値に
対する大小関係が、黒色の鉛筆とボールペンでは異なっ
ているのである。従って、(2)式は文字51を構成す
る各画素の(R−G)及び(R−B)の合計の平均値で
あり、この値が小さければ鉛筆書きであり、大きければ
ボールペン書きである可能性が高いことになる。
Next, an evaluation value Argb for discriminating writing instruments
The reason for using equation (2) will be described with reference to FIGS. 4 (a) and 4 (b). FIGS. 4 (a) and 4 (b) are diagrams showing a density histogram of the writing instrument determined by the writing instrument determination device of FIG. 1, and FIG. 4 (a) is a concentration histogram of R, G, and B values of a black pencil. FIG. 3B shows an example of a density histogram of R, G, B values of a black ballpoint pen.
As shown in FIG. 4A, the R value of the black pencil is often smaller than the G value or the B value. In addition, as shown in FIG. 4B, with a black ballpoint pen, R
In many cases, the value is larger than or equal to the G value or the B value. That is, the magnitude relationship between the R value and the G value or the B value is different between the black pencil and the ballpoint pen. Therefore, the expression (2) is an average value of the sum of (RG) and (RB) of each pixel forming the character 51. If this value is small, it is a pencil writing, and if it is large, it is a ballpoint pen writing. It is likely.

【0014】以上のように、この第1の実施例では、次
のような利点がある。 (1) 筆記具の判別にカラー画像イメージを用いてい
るので、従来のようなモノクロ画像イメージを用いた方
法に比べ、色情報を判別に用いることができる。そのた
め、色の異なる筆記具同士については勿論、さらに一見
ほぼ同色と感じる筆記具同士の色の微妙な違いについて
も、高精度に判別を行うことができる。 (2) 筆記具判別を行う文字51を構成する画素の色
情報を直接用いて筆記具判別を行っているので、従来の
ように被判別媒体50上の所定位置にマーク記入枠を設
ける必要がなく、それと同時に、筆記者によるマーク記
入枠を塗りつぶす必要もないため、作業効率の面で大変
有利となる。 (3) 筆記具の判別のための評価値が(2)式に示す
ようなR、G、B値をそのまま使った簡単な式で算出さ
れるため、高速な判別が可能となる。
As described above, the first embodiment has the following advantages. (1) Since the color image image is used for the determination of the writing instrument, the color information can be used for the determination as compared with the conventional method using the monochrome image image. Therefore, it is possible to highly accurately determine not only writing instruments having different colors but also subtle differences in colors of writing instruments that seem to be almost the same color. (2) Since the writing tool determination is performed by directly using the color information of the pixels that form the writing tool determination character 51, it is not necessary to provide a mark entry frame at a predetermined position on the determination target medium 50, unlike the conventional case. At the same time, there is no need for the scribe to fill the mark entry frame, which is very advantageous in terms of work efficiency. (3) Since the evaluation value for discriminating the writing instrument is calculated by a simple equation using the R, G, and B values as it is as shown in the equation (2), the discrimination can be performed at high speed.

【0015】第2の実施例 図5は、本発明の第2の実施例を示す筆記具判別装置の
機能ブロック図であり、第1の実施例を示す図1中の要
素と共通の要素には共通の符号が付されている。この筆
記具判別装置では、第1の実施例のカラーイメージ記憶
部20を省略し、走査部10の出力側を筆記具画素抽出
部30Aの入力側に接続した構成になっている。即ち、
被判別媒体からR、G、Bの3色のカラー画像イメージ
を取り込む走査部10の出力側には、筆記具画素抽出部
30Aが接続されている。筆記具画素抽出部30Aは、
走査部10により取り込まれたカラー画像イメージから
使用筆記具にて書かれた部分に該当する画素のみを抽出
する筆記具画素抽出手段としての機能を有し、その出力
側に筆記具判別部40Aが接続されている。筆記具判別
部40Aは、筆記具画素抽出部30Aにより抽出された
画素(使用筆記具により書かれた部分に該当する画素)
のR、G、B値の分布状況の違いにより、筆記具の判別
を行ってその判別結果を出力する筆記具判別手段として
の機能を有し、第1の実施例とほぼ同様の評価値算出部
41A、基準値記憶部42A、及び比較部43Aで構成
されている。
Second Embodiment FIG. 5 is a functional block diagram of a writing instrument discriminating apparatus showing a second embodiment of the present invention. Elements common to those in FIG. 1 showing the first embodiment are shown in FIG. Common reference numerals are attached. In this writing instrument determination device, the color image storage section 20 of the first embodiment is omitted, and the output side of the scanning section 10 is connected to the input side of the writing instrument pixel extraction section 30A. That is,
A writing instrument pixel extraction unit 30A is connected to the output side of the scanning unit 10 that captures three color image images of R, G, and B from the medium to be discriminated. The writing instrument pixel extraction unit 30A
It has a function as a writing tool pixel extracting means for extracting only the pixels corresponding to the portion written by the writing tool from the color image image captured by the scanning section 10, and the writing tool determining section 40A is connected to the output side thereof. There is. The writing instrument determination unit 40A includes pixels extracted by the writing instrument pixel extraction unit 30A (pixels corresponding to the portion written by the writing instrument used).
According to the difference in the distribution of the R, G, and B values, the writing value determination unit 41A has a function as a writing instrument determination unit that determines the writing instrument and outputs the determination result, which is almost the same as that of the first embodiment. , A reference value storage unit 42A and a comparison unit 43A.

【0016】以上のように構成される筆記具判別装置の
動作を説明する。第1の実施例と同様に、図2に示す被
判別媒体50には、黒色の鉛筆あるいはボールペンで
「ABC」の文字51が書かれている。この文字51を
書くために使用された筆記具を判別する場合、図5の走
査部10では、被判別媒体50上を図3に示す主走査方
向61及び副走査方向62に光学的に走査してR、G、
Bの3色のカラー画像イメージを順次取り込む。なお、
ここでは、第1の実施例と同様に、カラー画像イメージ
はR、G、Bそれぞれ8ビット(0〜255)多値にて
取り込むこととし、また被判別筆記具は黒色の鉛筆及び
ボールペンであるとし、被判別媒体50の地色が白色で
あるとする。走査部10による、被判別媒体50のカラ
ー画像イメージの取り込みが開始すると、筆記具画素抽
出部30Aでは、該走査部10から受け取った画素につ
いて、画素単位に、一般に黒色はR、G、B値がすべて
小さく、白色は逆にR、G、B値がすべて大きいことを
利用して前記条件(1)を満たすとき、文字51を構成
する画素であると逐次判定する。筆記具画素抽出部30
Aによって文字51を構成する画素が抽出されると、筆
記具判別部40A内の評価値算出部41Aでは、前記
(2)式により、筆記具判別のための評価値Argbの
算出を開始する。この評価値Argbの計算は、筆記具
画素抽出部30Aによる文字51を構成する画素の抽出
と同時に行う。
The operation of the writing instrument discriminating apparatus constructed as above will be described. Similar to the first embodiment, the character 51 of "ABC" is written on the medium to be discriminated 50 shown in FIG. 2 with a black pencil or a ballpoint pen. When discriminating the writing instrument used to write the character 51, the scanning unit 10 in FIG. 5 optically scans the discriminating medium 50 in the main scanning direction 61 and the sub-scanning direction 62 shown in FIG. R, G,
The three color image images of B are sequentially captured. In addition,
Here, as in the first embodiment, it is assumed that the color image is captured in multi-values of 8 bits (0 to 255) for each of R, G, and B, and the writing instrument to be discriminated is a black pencil and a ballpoint pen. It is assumed that the ground color of the medium to be discriminated 50 is white. When the scanning unit 10 starts capturing the color image image of the medium to be discriminated 50, the writing instrument pixel extraction unit 30A outputs R, G, and B values for the pixels received from the scanning unit 10 in pixel units, generally black. When all of the values are small and white is conversely the R, G, and B values are all large, when the above condition (1) is satisfied, it is sequentially determined that the pixel is a pixel forming the character 51. Writing instrument pixel extraction unit 30
When the pixels forming the character 51 are extracted by A, the evaluation value calculation unit 41A in the writing tool determination unit 40A starts calculation of the evaluation value Argb for the writing tool determination according to the equation (2). The calculation of the evaluation value Argb is performed simultaneously with the extraction of the pixels forming the character 51 by the writing implement pixel extraction unit 30A.

【0017】即ち、筆記具画素抽出部30Aによって文
字51を構成する画素R、G、Bが抽出されるたびに、
評価値算出部41Aでは、第1の実施例と同様に、前記
(3)式を逐次計算し、その計算結果を累積していくと
同時に、文字51を構成する画素数Nをカウントアップ
し、すべての被判別媒体50の画素について筆記具画素
抽出部30Aによる文字51を構成する画素の抽出動作
が終了したとき、累積された(3)式の計算結果を、文
字51を構成する画素数Nで割る。従って、走査部10
による被判別媒体50の走査が終了した直後に、評価値
Argbの算出が終了する。評価値算出部41Aによっ
て評価値Argbが算出されると、第1の実施例と同様
に、比較部43Aでは、該評価値Argbと、基準値記
憶部42Aに予め記憶されている筆記具判別のための基
準閾値とを比較し、鉛筆であるのか、ボールペンである
のか、あるいはどちらでもないのかを判別し、その判別
結果を外部へ出力する。この第2の実施例では、次のよ
うな利点がある。 (a) 第1の実施例の利点(1),(2),(3)と
同様の利点がある。 (b) 本実施例では、走査部10による被判別媒体5
0の走査と同時に、評価値算出部41Aによって筆記具
判別のための評価値の算出を行うので、この面において
も筆記具判別が高速に行える。
That is, every time the writing tool pixel extraction unit 30A extracts the pixels R, G, and B which form the character 51,
Similar to the first embodiment, the evaluation value calculation unit 41A sequentially calculates the formula (3), accumulates the calculation results, and at the same time counts up the number N of pixels forming the character 51, When the writing tool pixel extraction unit 30A completes the extraction operation of the pixels forming the character 51 with respect to all the pixels of the medium to be discriminated 50, the accumulated calculation result of the expression (3) is represented by the number N of pixels forming the character 51. Break. Therefore, the scanning unit 10
Immediately after the scanning of the medium 50 to be discriminated by is finished, the calculation of the evaluation value Argb is finished. When the evaluation value calculation unit 41A calculates the evaluation value Argb, the comparison unit 43A determines the evaluation value Argb and the writing instrument stored in the reference value storage unit 42A in advance as in the first embodiment. Is compared with the reference threshold value of 1 to determine whether it is a pencil, a ballpoint pen, or neither, and the determination result is output to the outside. The second embodiment has the following advantages. (A) There are advantages similar to the advantages (1), (2), and (3) of the first embodiment. (B) In this embodiment, the medium 5 to be discriminated by the scanning unit 10
At the same time as the scanning of 0, the evaluation value calculation unit 41A calculates the evaluation value for the writing tool determination, so that the writing tool determination can be performed at high speed also in this aspect.

【0018】第3の実施例 図6は、本発明の第3の実施例を示す筆記具判別装置の
機能ブロック図であり、第1の実施例を示す図1中の要
素と共通の要素には共通の符号が付されている。この筆
記具判別装置では、図1の筆記具画素抽出部30及び筆
記具判別部40と異なる構成の筆記具画素抽出部30B
及び筆記具判別部40Bが設けられている。即ち、この
筆記具判別装置では、第1の実施例と同様に、被判別媒
体からR、G、Bの3色のカラー画像イメージを取り込
む走査部10と、該走査部10により取り込まれたカラ
ー画像イメージを記憶するカラーイメージ記憶部20と
が設けられている。カラーイメージ記憶部20の出力側
には、筆記具画素抽出部30Bが接続されている。筆記
具画素抽出部30Bは、カラーイメージ記憶部20に記
憶されているカラー画像イメージから、被判別媒体1枚
毎に、使用筆記具にて書かれた部分に該当する画素のみ
を抽出する筆記具画素抽出手段としての機能を有し、そ
の出力側に筆記具判別部40Bが接続されている。筆記
具判別部40Bは、筆記具画素抽出部30Bにより抽出
された画素(被判別媒体1枚毎の、使用筆記具によって
書かれた部分に該当する画素)のR、G、B値の分布状
況の違いによって筆記具の判別を行い、その判別結果を
外部に出力する筆記具判別手段としての機能を有し、第
1の実施例とほぼ同様に、評価値算出部41B、基準値
記憶部42B、及び比較部43Bで構成されている。
Third Embodiment FIG. 6 is a functional block diagram of a writing instrument discriminating apparatus showing a third embodiment of the present invention. Elements common to the elements in FIG. 1 showing the first embodiment are shown in FIG. Common reference numerals are attached. In this writing instrument determination device, a writing instrument pixel extraction unit 30B having a different configuration from the writing instrument pixel extraction unit 30 and the writing instrument determination unit 40 of FIG.
Also, a writing instrument discriminating section 40B is provided. That is, in this writing instrument determination device, as in the first embodiment, the scanning unit 10 that captures the color image images of the three colors R, G, and B from the medium to be discriminated, and the color image captured by the scanning unit 10. A color image storage unit 20 for storing an image is provided. A writing implement pixel extraction unit 30B is connected to the output side of the color image storage unit 20. The writing instrument pixel extraction unit 30B extracts, from the color image image stored in the color image storage unit 20, only the pixels corresponding to the portion written by the writing instrument used for each medium to be discriminated. And the writing tool determination unit 40B is connected to the output side thereof. The writing instrument discriminating unit 40B determines whether the pixels extracted by the writing instrument pixel extracting unit 30B (pixels corresponding to the portion written by the writing instrument used for each discriminating medium) have different R, G, and B values. It has a function as a writing instrument determination means for determining the writing instrument and outputting the determination result to the outside. The evaluation value calculation section 41B, the reference value storage section 42B, and the comparison section 43B are similar to those in the first embodiment. It is composed of.

【0019】図7は、図6の筆記具判別装置で使用する
被判別媒体50を示す図であり、それには黒色の鉛筆あ
るいはボールペンによって「ABC」の文字51と「X
YZ」の文字52とが書かれている。図8は、走査部1
0によって被判別媒体50のカラー画像イメージを取り
込む際の走査の方向(主走査方向61及び副走査方向6
2)を示す図である。これらの図7及び図8を参照しつ
つ、図6に示す筆記具判別装置の動作を説明する。走査
部10は、図7の被判別媒体50上を図8に示す主走査
方向61及び副走査方向62に光学的に走査して、その
被判別媒体1枚分のR、G、Bの3色のカラー画像イメ
ージを順次取り込み、カラーイメージ記憶部20に格納
する。なお、ここでは、第1の実施例と同様に、カラー
画像イメージはR、G、Bそれぞれ8ビット(0〜25
5)多値にて取り込むこととし、また被判別筆記具は黒
色の鉛筆及びボールペンであるとし、被判別媒体50の
地色は白色であるとする。走査部10により、被判別媒
体50のカラー画像イメージがカラーイメージ記憶部2
0に格納されると、筆記具画素抽出部30Bでは、該カ
ラーイメージ記憶部20に格納された被判別媒体1枚分
のカラー画像イメージより、画素単位に、一般に黒色は
R、G、B値がすべて小さく、白色は逆にR、G、B値
がすべて大きいことを利用して前記条件(1)を満たす
とき、文字51,52を構成する画素であると判定す
る。
FIG. 7 is a diagram showing a medium 50 to be discriminated which is used in the writing instrument discriminating apparatus of FIG. 6, in which the letters 51 and “X” of “ABC” and “X” are drawn with a black pencil or a ballpoint pen.
The character 52 of "YZ" is written. FIG. 8 shows the scanning unit 1.
The scanning direction (main scanning direction 61 and sub-scanning direction 6) when the color image of the medium to be discriminated 50 is captured by 0
It is a figure which shows 2). The operation of the writing instrument determination device shown in FIG. 6 will be described with reference to FIGS. 7 and 8. The scanning unit 10 optically scans the medium 50 to be discriminated in FIG. 7 in the main scanning direction 61 and the sub-scanning direction 62 shown in FIG. The color image images of the colors are sequentially captured and stored in the color image storage unit 20. Note that, here, as in the first embodiment, the color image has 8 bits (0 to 25) for each of R, G, and B.
5) It is assumed that multi-valued reading is performed, the writing instrument to be discriminated is a black pencil and a ballpoint pen, and the ground color of the discrimination medium 50 is white. The color image storage unit 2 converts the color image of the medium 50 to be discriminated by the scanning unit 10.
When it is stored in 0, the writing instrument pixel extraction unit 30B has R, G, and B values for each pixel in general in black from the color image image of one sheet of the determination target medium stored in the color image storage unit 20. It is determined that the pixels are the pixels forming the characters 51 and 52 when the condition (1) is satisfied by utilizing the fact that all of the values are small and the values of R, G, and B are all large in white.

【0020】筆記具画素抽出部30Bによる文字51,
52を構成する画素の抽出が開始されると、筆記具判別
部40B内の評価値算出部41Bでは、前記(2)式に
より、筆記具判別のための評価値Argbの算出を開始
する。この評価値Argbの計算は、筆記具画素抽出部
30Bによる文字51,52を構成する画素の抽出と同
時に行う。即ち、筆記具画素抽出部30Bにより、文字
51,52を構成する画素Rn,Gn,Bnが抽出され
るたびに、評価値算出部41Bでは、前記(3)式を逐
次計算し、その計算結果を累積していくと同時に、文字
51,52を構成する画素数Nをカウントアップし、被
判別媒体50のすべての画素について筆記具画素抽出部
30Bによる文字51,52を構成する画素の抽出動作
が終了したとき、累積された(3)式の計算結果を、文
字51,52を構成する画素数Nで割る。評価値算出部
41Bによって評価値Argbが算出されると、第1の
実施例とほぼ同様に、比較部43Bでは、評価値Arg
bと、基準値記憶部42Bに予め記憶されている筆記具
判別のための基準閾値とを比較し、鉛筆であるのか、ボ
ールペンであるのか、あるいはどちらでもないのかを判
別し、その判別結果を被判別媒体1枚毎に外部へ出力す
る。この第3の実施例では、第1の実施例の利点
(1),(2),(3)と同一の利点を有する上に、さ
らに次のような利点(c)がある。(c) 本実施例で
は、筆記具画素抽出部30Bにより抽出された被判別媒
体1枚全体について、筆記具判別部40Bで一括して筆
記具の判別を行うため、高速かつ正確な判別が行える。
そのため、被判別媒体毎に筆記者が異なっており、それ
ぞれの筆記者毎に筆記具が一定であるような場合に有効
である。
Character 51 by the writing instrument pixel extraction unit 30B,
When the extraction of the pixels forming 52 is started, the evaluation value calculation unit 41B in the writing tool determination unit 40B starts calculation of the evaluation value Argb for the writing tool determination according to the equation (2). The calculation of the evaluation value Argb is performed simultaneously with the extraction of the pixels forming the characters 51 and 52 by the writing implement pixel extraction unit 30B. That is, each time the writing tool pixel extraction unit 30B extracts the pixels Rn, Gn, Bn that form the characters 51, 52, the evaluation value calculation unit 41B sequentially calculates the formula (3), and the calculated result is obtained. Simultaneously with the accumulation, the number N of pixels forming the characters 51, 52 is counted up, and the extraction operation of the pixels forming the characters 51, 52 by the writing instrument pixel extraction unit 30B is completed for all the pixels of the medium 50 to be discriminated. Then, the accumulated calculation result of the equation (3) is divided by the number N of pixels forming the characters 51 and 52. When the evaluation value calculation unit 41B calculates the evaluation value Argb, the comparison unit 43B calculates the evaluation value Arg in the same manner as in the first embodiment.
b is compared with a reference threshold value for writing instrument determination stored in advance in the reference value storage unit 42B to determine whether it is a pencil, a ballpoint pen, or neither, and the determination result is recorded. The discrimination media are output to the outside one by one. The third embodiment has the same advantages as the advantages (1), (2) and (3) of the first embodiment, and further has the following advantage (c). (C) In the present embodiment, the writing implement discriminating unit 40B collectively discriminates the writing implements for one entire medium to be discriminated extracted by the writing implement pixel extracting unit 30B, so that the discrimination can be performed quickly and accurately.
Therefore, it is effective when the writer is different for each medium to be discriminated and the writing tool is constant for each writer.

【0021】第4の実施例 図9は、本発明の第4の実施例を示す筆記具判別装置の
機能ブロック図であり、第1の実施例を示す図1中の要
素と共通の要素には共通の符号が付されている。この筆
記具判別装置では、図1のカラーイメージ記憶部20と
筆記具画素抽出部30との間に、新たに文字切出部21
が設けられている。即ち、この筆記具判別装置では、第
1の実施例と同様に、被判別媒体からR、G、Bの3色
のカラー画像イメージを取り込む走査部10と、該走査
部10によって取り込まれたカラー画像イメージを記憶
するカラーイメージ記憶部20とを、備えている。カラ
ーイメージ記憶部20の出力側には、文字切出部21が
接続されている。文字切出部21は、カラーイメージ記
憶部20に記憶されているカラー画像イメージから、1
文字単位(あるいは1図形単位)に文字(あるいは図
形)を切り出す文字・図形切出手段としての機能を有
し、その出力側に筆記具画素抽出部30Cが接続されて
いる。筆記具画素抽出部30Cは、文字切出部21によ
って切り出された1文字分のカラー画像イメージから、
使用筆記具にて書かれた部分に該当する画素のみを抽出
する筆記具画素抽出手段としての機能を有し、その出力
側に筆記具判別部40Cが接続されている。筆記具判別
部40Cは、筆記具画素抽出部30Cによって抽出され
た画素(使用筆記具により書かれた部分に該当する画
素)のR、G、B値の分布状況の違いにより、筆記具の
判別を行ってその判別結果を外部に出力する筆記具判別
手段としての機能を有し、第1の実施例とほぼ同様に、
評価値算出部41C、基準値記憶部42C、及び比較部
43Cで構成されている。
Fourth Embodiment FIG. 9 is a functional block diagram of a writing instrument discriminating apparatus showing a fourth embodiment of the present invention. Elements common to those in FIG. 1 showing the first embodiment are shown in FIG. Common reference numerals are attached. In this writing instrument discriminating apparatus, a character cutting section 21 is newly provided between the color image storage section 20 and the writing instrument pixel extraction section 30 of FIG.
Is provided. That is, in this writing instrument determination device, as in the first embodiment, the scanning unit 10 that captures the color image images of three colors R, G, and B from the medium to be discriminated, and the color image captured by the scanning unit 10. A color image storage unit 20 for storing an image. A character cutout unit 21 is connected to the output side of the color image storage unit 20. The character cut-out unit 21 selects 1 from the color image image stored in the color image storage unit 20.
It has a function as a character / graphic cutting means for cutting out a character (or a figure) in character units (or one figure unit), and the writing instrument pixel extraction unit 30C is connected to the output side thereof. The writing instrument pixel extraction unit 30C, from the color image image for one character cut out by the character cutting unit 21,
It has a function as a writing tool pixel extraction means for extracting only the pixels corresponding to the portion written by the writing tool used, and the writing tool determination unit 40C is connected to the output side thereof. The writing implement discriminating unit 40C discriminates the writing implement based on the difference in the distribution status of the R, G, and B values of the pixels extracted by the writing implement pixel extracting unit 30C (pixels corresponding to the portion written by the writing implement used). It has a function as a writing instrument discrimination means for outputting the discrimination result to the outside, and is similar to the first embodiment,
The evaluation value calculation unit 41C, the reference value storage unit 42C, and the comparison unit 43C are included.

【0022】以上のように構成される筆記具判別装置の
動作を説明する。走査部10は、図2の被判別媒体50
上を図3に示す主走査方向61及び副走査方向62に光
学的に走査して、R、G、Bの3色のカラー画像イメー
ジを順次取り込み、カラーイメージ記憶部20に格納す
る。ここでは、第1の実施例と同様に、カラー画像イメ
ージはR、G、Bそれぞれ8ビット(0〜255)多値
にて取り込むこととする。走査部10により、被判別媒
体50のカラー画像イメージがカラーイメージ記憶部2
0に格納されると、文字切出部21では、該カラーイメ
ージ記憶部20に格納されているカラー画像イメージよ
り、文字画像に該当するカラー画像イメージを、1文字
分づつ切り出す。文字切出部21による、1文字毎の文
字画像の切り出しが終了すると、筆記具画素抽出部30
Cでは、切り出されたカラー画像イメージから、画素単
位に、一般に黒色はR、G、B値がすべて小さく、白色
は逆にR、G、B値がすべて大きいことを利用して前記
条件(1)を満たすとき、文字を構成する画素であると
判定する。筆記具画素抽出部30Cにより、1文字毎に
文字を構成する画素の抽出が開始されると、筆記具判定
部40C内の評価値算出部41Cでは、前記(2)式に
より、1文字毎に筆記具判別のための評価値Argbの
算出を開始する。この評価値Argbの計算は、筆記具
画素抽出部30Cによる文字を構成する画素の抽出と同
時に行う。
The operation of the writing instrument discriminating apparatus constructed as above will be described. The scanning unit 10 is a medium 50 to be discriminated in FIG.
The upper part is optically scanned in the main scanning direction 61 and the sub-scanning direction 62 shown in FIG. 3, and the color image images of three colors of R, G, and B are sequentially captured and stored in the color image storage unit 20. Here, as in the case of the first embodiment, the color image is assumed to be captured in multi-values of 8 bits (0 to 255) for each of R, G, and B. The color image storage unit 2 converts the color image of the medium 50 to be discriminated by the scanning unit 10.
When it is stored in 0, the character cutout unit 21 cuts out the color image images corresponding to the character images from the color image images stored in the color image storage unit 20 one by one. When the character cutout unit 21 cuts out the character image for each character, the writing instrument pixel extraction unit 30
In C, the above-mentioned condition (1) is used by utilizing that R, G, B values are generally small for black and R, G, B values are all large for white in a pixel unit from the cut out color image image. ), It is determined that the pixel is a pixel. When the writing tool pixel extraction unit 30C starts extraction of pixels that form a character for each character, the evaluation value calculation unit 41C in the writing tool determination unit 40C determines the writing tool determination for each character according to the equation (2). The calculation of the evaluation value Argb for is started. The calculation of the evaluation value Argb is performed at the same time when the writing tool pixel extraction unit 30C extracts the pixels forming the character.

【0023】即ち、筆記具画素抽出部30Cにより、文
字を構成する画素Rn,Gn,Bnが抽出されるたび
に、評価値算出部41Cでは、前記(3)式を逐次計算
し、その計算結果を累積していくと同時に、文字を構成
する画素数Nをカウントアップし、すべての文字単位の
画素について筆記具画素抽出部30Cによる文字を構成
する画素の抽出動作が終了したとき、累積された(3)
式の計算結果を、文字を構成する画素数Nで割る。評価
値算出部41Cによって評価値Argbが算出される
と、比較部43Cでは、第1の実施例とほぼ同様に、評
価値Argbと、基準値記憶部42Cに予め記憶されて
いる筆記具判別のための基準閾値とを比較し、鉛筆であ
るのか、ボールペンであるのか、あるいはどちらでもな
いのかを判別し、その判別結果を文字毎に外部へ出力す
る。以上の一連の筆記具判別処理を、被判別媒体50上
のすべての文字51について行う。この第4の実施例で
は、第1の実施例の利点(1),(2),(3)と同一
の利点を有する上に、次のような利点(d)がある。 (d) 本実施例では、文字切出部21で切り出した1
文字毎に筆記具判別部40Cで使用筆記具の種類を判別
し、外部へ出力しているので、文字毎に筆記具の種類を
換えることが可能となる。
That is, each time the writing tool pixel extraction unit 30C extracts pixels Rn, Gn, Bn that form a character, the evaluation value calculation unit 41C sequentially calculates the equation (3), and the calculated result is obtained. At the same time as it is accumulated, the number N of pixels forming a character is counted up, and when the operation of extracting the pixels forming a character by the writing implement pixel extraction unit 30C is completed for all the pixels of each character, the accumulation is performed (3 )
The calculation result of the equation is divided by the number of pixels N that form a character. When the evaluation value calculation unit 41C calculates the evaluation value Argb, the comparison unit 43C determines the evaluation value Argb and the writing instrument stored in advance in the reference value storage unit 42C, as in the first embodiment. It is determined whether it is a pencil, a ballpoint pen, or neither, by comparing the result with the reference threshold value of No., and the determination result is output externally for each character. The above-described series of writing instrument determination processing is performed for all the characters 51 on the determination target medium 50. In addition to the advantages (1), (2) and (3) of the first embodiment, the fourth embodiment has the following advantage (d). (D) In the present embodiment, 1 cut out by the character cutting portion 21
Since the writing tool discriminating unit 40C discriminates the type of the writing instrument used for each character and outputs it to the outside, the type of the writing instrument can be changed for each character.

【0024】第5の実施例 図10は、本発明の第5の実施例を示す筆記具判別装置
の機能ブロック図であり、第1の実施例を示す図1中の
要素と共通の要素には共通の符号が付されている。この
筆記具判別装置では、第1の実施例のカラーイメージ記
憶部20と筆記具画素抽出部30との間に、新たに行切
出部22が設けられている。即ち、この筆記具判別装置
では、第1の実施例と同様に、被判別媒体からR、G、
Bの3色のカラー画像イメージを取り込む走査部10
と、該走査部10によって取り込まれたカラー画像イメ
ージを記憶するカラーイメージ記憶部20とを、備えて
いる。カラーイメージ記憶部20の出力側には、行切出
部22が接続されている。行切出部22は、カラーイメ
ージ記憶部20に記憶されているカラー画像イメージか
ら、1行単位に文字列を切り出す行切出手段としての機
能を有し、その出力側に筆記具画素抽出部30Dが接続
されている。筆記具画素抽出部30Dは、行切出部22
によって切り出された1行分のカラー画像イメージか
ら、使用筆記具にて書かれた部分に該当する画素のみを
抽出する筆記具画素抽出手段としての機能を有し、その
出力側に筆記具判別部40Dが接続されている。筆記具
判別部40Dは、筆記具画素抽出部30Dによって抽出
された画素(使用筆記具によって書かれた部分に該当す
る画素)のR、G、B値の分布状況の違いにより、筆記
具の判別を行ってその判別結果を外部へ出力する筆記具
判別手段としての機能を有し、第1の実施例とほぼ同様
に、評価値算出部41D、基準値記憶部42D、及び比
較部43Dで構成されている。
Fifth Embodiment FIG. 10 is a functional block diagram of a writing instrument discriminating apparatus showing a fifth embodiment of the present invention. Elements common to the elements in FIG. 1 showing the first embodiment are shown in FIG. Common reference numerals are attached. In this writing instrument discriminating apparatus, a line cutting section 22 is newly provided between the color image storage section 20 and the writing instrument pixel extraction section 30 of the first embodiment. That is, in this writing instrument discriminating apparatus, R, G, and
Scanning unit 10 for capturing the three color image images of B
And a color image storage unit 20 for storing the color image image captured by the scanning unit 10. A line cutout unit 22 is connected to the output side of the color image storage unit 20. The line cutout unit 22 has a function as a line cutout unit that cuts out a character string from the color image image stored in the color image storage unit 20 line by line, and the writing tool pixel extraction unit 30D is provided on the output side thereof. Are connected. The writing instrument pixel extraction unit 30D includes a line cutout unit 22.
It has a function as a writing tool pixel extracting means for extracting only the pixels corresponding to the portion written by the writing tool used from the color image image for one line cut out by the writing tool discriminating section 40D connected to the output side. Has been done. The writing implement discriminating unit 40D discriminates the writing implement based on the difference in the distribution state of the R, G, and B values of the pixels extracted by the writing implement pixel extracting unit 30D (pixels corresponding to the portion written by the writing implement used). It has a function as a writing instrument discrimination means for outputting the discrimination result to the outside, and is composed of an evaluation value calculation unit 41D, a reference value storage unit 42D, and a comparison unit 43D, as in the first embodiment.

【0025】図11は、図10に示す筆記具判別装置で
使用する被判別媒体50を示す図である。この被判別媒
体50には、文字の記入領域を示す文字記入枠53,5
4が予め印刷されており、その文字記入枠53,54内
部に、黒色の鉛筆あるいはボールペンで「ABC」の文
字51と「XYZ」の文字52が書き込まれている。図
12は、被判別媒体50のカラー画像イメージを取り込
む際の走査部10の走査の方向(主走査方向61及び副
走査方向62)を示す図である。これらの図11及び図
12を参照しつつ、図10に示す筆記具判別装置の動作
を説明する。走査部10は、図11の被判別媒体50上
を図12に示す主走査方向61及び副走査方向62に光
学的に走査し、R、G、Bの3色のカラー画像イメージ
を順次取り込み、カラーイメージ記憶部20に格納す
る。ここでは、第1の実施例と同様に、カラー画像イメ
ージはR、G、Bそれぞれ8ビット(0〜255)多値
にて取り込むこととし、また被判別筆記具は黒色の鉛筆
及びボールペンであるとし、被判別媒体50の地色は白
色であるとする。走査部10によって被判別媒体50の
カラー画像イメージがカラーイメージ記憶部20に格納
されると、行切出部22では、該カラーイメージ記憶部
20に格納されているカラー画像イメージより、行単位
に文字画像に該当する部分のカラー画像イメージを切り
出す。ここでは、各行の切り出し領域は、文字記入枠5
3及び54それぞれの内部とし、予め与えられているも
のとする。
FIG. 11 is a diagram showing a discriminating medium 50 used in the writing instrument discriminating apparatus shown in FIG. In the medium 50 to be discriminated, character entry frames 53, 5 indicating a character entry area are provided.
4 is printed in advance, and the characters 51 of “ABC” and the characters 52 of “XYZ” are written in the character entry frames 53 and 54 with a black pencil or a ballpoint pen. FIG. 12 is a diagram showing the scanning directions (main scanning direction 61 and sub-scanning direction 62) of the scanning unit 10 when capturing the color image image of the medium to be discriminated 50. The operation of the writing instrument determination device shown in FIG. 10 will be described with reference to FIGS. 11 and 12. The scanning unit 10 optically scans the medium to be discriminated 50 shown in FIG. 11 in the main scanning direction 61 and the sub-scanning direction 62 shown in FIG. 12 to sequentially capture color image images of three colors of R, G, and B, It is stored in the color image storage unit 20. Here, as in the first embodiment, it is assumed that the color image is captured in multi-values of 8 bits (0 to 255) for each of R, G, and B, and the writing instrument to be discriminated is a black pencil and a ballpoint pen. The ground color of the medium 50 to be discriminated is white. When the scanning unit 10 stores the color image image of the medium to be discriminated 50 in the color image storage unit 20, the line cutout unit 22 reads the color image image stored in the color image storage unit 20 line by line. Cut out the color image image of the part corresponding to the character image. Here, the cutout area of each line is the character entry frame 5
It is assumed to be the inside of each of 3 and 54 and given in advance.

【0026】行切出部22によって行単位のカラー画像
イメージの切り出しが終了すると、筆記具画素抽出部3
0Dでは、切り出されたカラー画像イメージから、画素
単位に、一般に黒色はR、G、B値がすべて小さく、白
色は逆にR、G、B値がすべて大きいことを利用して前
記条件(1)を満たすとき、文字51,52を構成する
画素であると判定する。筆記具画素抽出部30Dによる
行単位の文字51,52を構成する画素の抽出が開始さ
れると、筆記具判別部40D内の評価値算出部41Dで
は、前記(2)式により、行単位に筆記具判別のための
評価値Argbの算出を開始する。この評価値Argb
の計算は、筆記具画素抽出部30Dによる文字51,5
2を構成する画素の抽出と同時に行う。即ち、筆記具画
素抽出部30Dによって文字を構成する画素Rn,G
n,Bnが抽出されるたびに、評価値算出部41Dで
は、前記(3)式を逐次計算し、その計算結果を累積し
ていくと同時に、文字を構成する画素数Nをカウントア
ップし、すべての行単位の画素について筆記具画素抽出
部30Dによる文字を構成する画素の抽出動作が終了し
たとき、累積された(3)式の計算結果を、文字を構成
する画素数Nで割る。評価値算出部41Dによって評価
値Argbが算出されると、第1の実施例とほぼ同様
に、比較部43Dでは、評価値Argbと、基準値記憶
部42Dに予め記憶されている筆記具判別のための基準
閾値とを比較し、鉛筆であるのか、ボールペンであるの
か、あるいはどちらでもないのかを判別し、その判別結
果を行単位に外部へ出力する。
When the line cutout unit 22 completes the cutout of the color image for each line, the writing instrument pixel extraction unit 3
In 0D, the R, G, B values of black are generally small and the R, G, B values of white are all large in the pixel unit from the cut-out color image image. ) Is satisfied, it is determined that the pixel is a pixel forming the characters 51 and 52. When the writing tool pixel extraction unit 30D starts the extraction of the pixels forming the characters 51 and 52 in line units, the evaluation value calculation unit 41D in the writing tool determination unit 40D uses the expression (2) to determine the writing tool in line units. The calculation of the evaluation value Argb for is started. This evaluation value Argb
Is calculated by the writing tool pixel extraction unit 30D
This is carried out at the same time as the extraction of the pixels that make up 2. That is, the pixels Rn, G that form a character by the writing tool pixel extraction unit 30D.
Each time n and Bn are extracted, the evaluation value calculation unit 41D sequentially calculates the formula (3), accumulates the calculation results, and at the same time, counts up the number N of pixels forming a character. When the writing tool pixel extraction unit 30D completes the extraction operation of the pixels forming the character for all the pixels in the row unit, the accumulated calculation result of the expression (3) is divided by the number N of the pixels forming the character. When the evaluation value calculation unit 41D calculates the evaluation value Argb, the comparison unit 43D determines the evaluation value Argb and the writing instrument stored in the reference value storage unit 42D in advance, in substantially the same manner as in the first embodiment. It is determined whether it is a pencil, a ballpoint pen, or neither, and the result of the determination is output line by line to the outside.

【0027】以上の一連の筆記具判別処理を被判別媒体
50上のすべての文字行について行う。この第5の実施
例では、第1の実施例の利点(1),(2),(3)と
同一の利点を有する上に、次のような利点(e)があ
る。 (e) 本実施例では、行切出部22で切り出した行単
位に筆記具判別部40Dによって使用筆記具の種類を判
別し、その判別結果を外部へ出力しているので、例え
ば、文字51は鉛筆書きで、文字52はボールペン書き
といったように、1枚の被判別媒体50に複数の筆記具
による記入文字列の行単位の混在が可能となる。なお、
本発明は上記第1〜第5の実施例に限定されず、種々の
変形が可能である。その変形例としては、例えば次のよ
うなものがある。 (i) 上記実施例では、判別対象を鉛筆及びボールペ
ンで書いた文字の場合について説明したが、例えば各筆
記具による図形等を判別対象としても、上記実施例と同
様の作用、効果が得られる。 (ii) 上記実施例では、文字51,52を構成する画
素を抽出する方法として、R、G、B値がすべて所定閾
値より小さい画素を抽出する場合について説明したが、
これにかかわらず、これ以外のいずれかの好適な方法を
用いてもよい。 (iii) 上記実施例では、筆記具を判別するための評価
値を(2)式により求める場合について説明したが、
R、G、B値の分布状況を考慮した、例えば次式(4)
あるいは(5)式を用いてもよい。
The above series of writing instrument discrimination processing is performed for all the character lines on the medium 50 to be discriminated. In addition to the advantages (1), (2) and (3) of the first embodiment, the fifth embodiment has the following advantage (e). (E) In the present embodiment, the type of writing instrument used is discriminated by the writing instrument discriminating section 40D for each line cut out by the line cutting section 22, and the discrimination result is output to the outside. In writing, the characters 52 can be mixed line by line in a written character string by a plurality of writing instruments on one discriminating medium 50, such as writing with a ballpoint pen. In addition,
The present invention is not limited to the first to fifth embodiments described above, and various modifications are possible. The following are examples of such modifications. (I) In the above-described embodiment, the case where the discrimination target is a character written with a pencil and a ballpoint pen has been described, but the same operation and effect as those of the above-described embodiment can be obtained even when a figure or the like by each writing instrument is used as the discrimination target. (Ii) In the above-described embodiment, as the method of extracting the pixels forming the characters 51 and 52, the case of extracting the pixels whose R, G, and B values are all smaller than the predetermined threshold value has been described.
Regardless of this, any other suitable method may be used. (iii) In the above embodiment, the case where the evaluation value for discriminating the writing instrument is obtained by the equation (2) has been described.
Considering the distribution of R, G, and B values, for example, the following equation (4)
Alternatively, equation (5) may be used.

【0028】[0028]

【数2】 (iv) 上記実施例では、筆記具判別にR、G、B値の
分布状況の違いを利用する場合について説明したが、こ
れ以外の例えば、H(色相)、S(彩度)、V(明度)
等の値の違いを利用してもよい。 (v) 上記実施例では、走査部10によってカラー画
像イメージを取り込むようにしたが、この走査部10を
省略し、イメージファイル等からカラー画像イメージを
入力する構成にしてもよい。
[Equation 2] (Iv) In the above-described embodiment, the case where the difference in the distribution status of R, G, and B values is used for the writing instrument determination has been described, but other than this, for example, H (hue), S (saturation), V (lightness) )
You may use the difference of the value of. (V) In the above-described embodiment, the color image is captured by the scanning unit 10, but the scanning unit 10 may be omitted and the color image may be input from an image file or the like.

【0029】[0029]

【発明の効果】第1、第6、第7及び第9の発明によれ
ば、記憶手段、筆記具画素抽出手段、及び筆記具判別手
段を備えており、次のような効果がある。 (1) 筆記具の判別にカラー画像イメージを用いてい
るので、従来のモノクロ画像イメージを用いた方法に比
べ、色情報を判別に用いることができる。そのため、色
の異なる筆記具同士については勿論、さらに一見ほぼ同
色と感じる筆記具同士の色の微妙な違いについても高精
度に判別を行うことができる。 (2) 筆記具判別を行う文字を構成する画素の色情報
を直接用いて筆記具判別を行っているので、従来のよう
に被判別媒体上の所定位置にマーク記入枠を設ける必要
がなく、それと同時に、筆記者によるマーク記入枠を塗
りつぶす必要もないため、作業効率の面で大変有利とな
る。 (3) 筆記具の判別のための評価値が、例えばR、
G、B値をそのまま使った簡単な式で算出できるので、
高速な判別が可能となる。第2の発明によれば、筆記具
画素抽出手段、及び筆記具判別手段を備えており、次の
ような効果がある。 (a) 第1の発明の効果(1),(2),(3)と同
様の効果がある。 (b) 被判別媒体の画像イメージの入力と同時に、筆
記具判別のための評価値の算出を行うことにより、筆記
具判別を高速に行える。
According to the first, sixth, seventh and ninth aspects of the invention, the storage means, the writing tool pixel extracting means, and the writing tool discriminating means are provided, and the following effects are obtained. (1) Since the color image image is used for the determination of the writing instrument, the color information can be used for the determination as compared with the conventional method using the monochrome image image. Therefore, it is possible to highly accurately determine not only writing instruments of different colors but also subtle differences in colors of writing instruments that seem to be almost the same color. (2) Since the writing tool determination is performed by directly using the color information of the pixels forming the character for which the writing tool determination is performed, it is not necessary to provide a mark entry frame at a predetermined position on the medium to be discriminated as in the conventional case, and at the same time Since it is not necessary to fill the mark entry frame by the writer, it is very advantageous in terms of work efficiency. (3) The evaluation value for discriminating the writing instrument is, for example, R,
Since it can be calculated by a simple formula using G and B values as they are,
High-speed discrimination is possible. According to the second invention, the writing tool pixel extracting means and the writing tool determining means are provided, and the following effects are obtained. (A) Effects similar to the effects (1), (2), and (3) of the first invention are obtained. (B) By simultaneously calculating the image of the medium to be discriminated and calculating the evaluation value for discriminating the writing implement, the writing implement discrimination can be performed at high speed.

【0030】第3の発明によれば、記憶手段、筆記具画
素抽出手段、及び筆記具判別手段を備えており、第1の
発明の効果(1),(2),(3)と同様の効果を有す
る上に、さらに次のような効果がある。被判別媒体1枚
全体について一括して筆記具の判別を行うため、高速か
つ正確な判別が行える。そのため、被判別媒体毎に筆記
者が異なっており、それぞれの筆記者毎に筆記具は一定
であるような場合に有効である。第4の発明によれば、
記憶手段、文字・図形切出手段、筆記具画素抽出手段、
及び筆記具判別手段を備えており、第1の発明の効果
(1),(2),(3)と同様の効果を有する上に、さ
らに次のような効果がある。1文字あるいは1図形など
毎に使用筆記具の種類を判別し、その判別結果を外部へ
出力しているので、文字毎あるいは図形毎などに筆記具
の種類を換えることが可能となる。第5の発明によれ
ば、記憶手段、行切出手段、筆記具画素抽出手段、及び
筆記具判別手段を備えており、第1の発明の効果
(1),(2),(3)と同様の効果を有する上に、さ
らに次のような効果がある。行切出手段によって切り出
した行単位に使用筆記具の種類を判別し、その判別結果
を外部へ出力しているので、例えば、ある行の文字は鉛
筆書きで、他の行の文字はボールペン書きといったよう
に、1枚の被判別媒体に複数の筆記具による記入文字列
あるいは記入図形列等の行単位の混在が可能となる。第
8の発明によれば、色情報としてH、SあるいはVのい
ずれか一つあるいは複数の組み合せを用いているので、
相関性の強いR、G、Bに比べて判別精度をより向上で
きる場合がある。
According to the third aspect of the invention, the storage means, the writing instrument pixel extraction means, and the writing instrument determination means are provided, and the same effects as the effects (1), (2), and (3) of the first invention are achieved. In addition to having the following effects. Since the writing instruments are discriminated collectively for the entire one medium to be discriminated, high-speed and accurate discrimination can be performed. Therefore, the writer is different for each medium to be discriminated, and the writing tool is effective for each writer. According to the fourth invention,
Storage means, character / graphic cutting means, writing instrument pixel extraction means,
Also, the writing tool discriminating means is provided, and in addition to the effects (1), (2), and (3) of the first invention, the following effects are further provided. Since the type of writing instrument used is discriminated for each character or figure and the discrimination result is output to the outside, it is possible to change the type of writing instrument for each character or each figure. According to the fifth aspect of the invention, the storage means, the line cutting-out means, the writing tool pixel extracting means, and the writing tool determining means are provided, and the same effects (1), (2), and (3) of the first invention are provided. In addition to the effects, there are the following effects. The type of writing utensil used for each line cut out by the line cutting means is discriminated, and the discrimination result is output to the outside. For example, the characters in one line are written in pencil, and the characters in other lines are written in ballpoint pen. As described above, it becomes possible to mix the written character string or the written figure string in a line unit by a plurality of writing instruments on one discriminating medium. According to the eighth invention, any one or a combination of H, S, and V is used as the color information.
In some cases, the discrimination accuracy can be further improved as compared with R, G, and B having strong correlation.

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

【図1】本発明の第1の実施例を示す筆記具判別装置の
機能ブロック図である。
FIG. 1 is a functional block diagram of a writing instrument determination device according to a first embodiment of the present invention.

【図2】図1で使用する被判別媒体を示す図である。FIG. 2 is a diagram showing a discriminating medium used in FIG.

【図3】図1の走査部の走査方向を示す図である。FIG. 3 is a diagram showing a scanning direction of a scanning unit in FIG.

【図4】図1で判別される筆記具の濃度ヒストグラムを
示す図である。
FIG. 4 is a diagram showing a density histogram of the writing instrument determined in FIG.

【図5】本発明の第2の実施例を示す筆記具判別装置の
機能ブロック図である。
FIG. 5 is a functional block diagram of a writing instrument determination device according to a second embodiment of the present invention.

【図6】本発明の第3の実施例を示す筆記具判別装置の
機能ブロック図である。
FIG. 6 is a functional block diagram of a writing instrument determination device showing a third embodiment of the present invention.

【図7】図6で使用する被判別媒体を示す図である。FIG. 7 is a diagram showing a discriminating medium used in FIG. 6;

【図8】図6の走査部の走査方向を示す図である。FIG. 8 is a diagram showing a scanning direction of a scanning unit in FIG.

【図9】本発明の第4の実施例を示す筆記具判別装置の
機能ブロック図である。
FIG. 9 is a functional block diagram of a writing instrument determination device showing a fourth example of the present invention.

【図10】本発明の第5の実施例を示す筆記具判別装置
の機能ブロック図である。
FIG. 10 is a functional block diagram of a writing instrument determination device showing a fifth embodiment of the present invention.

【図11】図10で使用する被判別媒体を示す図であ
る。
11 is a diagram showing a medium to be discriminated used in FIG.

【図12】図10の走査部の走査方向を示す図である。12 is a diagram showing a scanning direction of a scanning unit in FIG.

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

10 走査部 20 カラーイメ
ージ記憶部 21 文字切出部 22 行切出部 30,30A,30B,30C,30D 筆記具画素
抽出部 40,40A,40B,40C,40D 筆記具判別
部 41,41A,41B,41C,41D 評価値算出
部 42,42A,42B,42C,42D 基準値記憶
部 43,43A,43B,43C,43D 比較部 50 被判別媒体 51,52 文字 53,54 文字記入枠 61 主走査方向 62 副走査方向
10 Scanning Part 20 Color Image Storage Part 21 Character Cutout Part 22 Line Cutout Part 30, 30A, 30B, 30C, 30D Writing Tool Pixel Extracting Section 40, 40A, 40B, 40C, 40D Writing Tool Discriminating Section 41, 41A, 41B, 41C , 41D evaluation value calculation unit 42, 42A, 42B, 42C, 42D reference value storage unit 43, 43A, 43B, 43C, 43D comparison unit 50 discriminating medium 51, 52 characters 53, 54 character entry frame 61 main scanning direction 62 sub Scanning direction

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 7/00 H04N 1/46 H04N 1/46 Z (72)発明者 山下 義征 東京都港区虎ノ門1丁目7番12号 沖電気 工業株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI Technical indication location G06T 7/00 H04N 1/46 H04N 1/46 Z (72) Inventor Yoshimasa Yamashita Minato-ku, Tokyo Toranomon 1-7-12 Oki Electric Industry Co., Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 被判別媒体のカラー画像イメージを記憶
する記憶手段と、 前記記憶手段に記憶されているカラー画像イメージか
ら、前記筆記具により書かれた部分に該当する画素のみ
を抽出する筆記具画素抽出手段と、 前記筆記具画素抽出手段により抽出された画素の色情報
の分布状況の違いにより、前記筆記具の判別を行う筆記
具判別手段とを、 備えたことを特徴とする筆記具判別装置。
1. A storage unit for storing a color image image of a medium to be discriminated, and a writing instrument pixel extraction for extracting only pixels corresponding to a portion written by the writing instrument from the color image image stored in the storage unit. A writing instrument distinguishing device comprising: a writing instrument and a writing instrument discriminating unit that discriminates the writing instrument based on a difference in distribution of color information of pixels extracted by the writing instrument pixel extracting unit.
【請求項2】 被判別媒体のカラー画像イメージから、
該筆記具により書かれた部分に該当する画素のみを抽出
する筆記具画素抽出手段と、 前記筆記具画素抽出手段により抽出された画素の色情報
の分布状況の違いにより、前記筆記具の判別を行う筆記
具判別手段とを、 備えたことを特徴とする筆記具判別装置。
2. From the color image of the medium to be discriminated,
Writing instrument pixel extraction means for extracting only the pixels corresponding to the portion written by the writing instrument, and writing instrument determination means for determining the writing instrument based on the difference in the distribution status of the color information of the pixels extracted by the writing instrument pixel extraction means. A writing instrument discriminating apparatus characterized by comprising:
【請求項3】 被判別媒体のカラー画像イメージを記憶
する記憶手段と、 前記記憶手段に記憶されているカラー画像イメージか
ら、前記被判別媒体1枚毎に、前記筆記具により書かれ
た部分に該当する画素のみを抽出する筆記具画素抽出手
段と、 前記筆記具画素抽出手段により抽出された被判別媒体1
枚毎の画素の色情報の分布状況の違いにより、前記筆記
具の判別を行う筆記具判別手段とを、 備えたことを特徴とする筆記具判別装置。
3. A storage unit for storing a color image image of a medium to be discriminated, and a color image image stored in the storage unit corresponds to a portion written by the writing instrument for each sheet of the medium to be discriminated. Writing tool pixel extracting means for extracting only the pixels to be identified, and the discrimination target medium 1 extracted by the writing tool pixel extracting means
A writing implement discriminating apparatus comprising: a writing implement discriminating means for discriminating the writing implement according to a difference in color information distribution state of pixels for each sheet.
【請求項4】 被判別媒体のカラー画像イメージを記憶
する記憶手段と、 前記記憶手段に記憶されているカラー画像イメージか
ら、1文字あるいは1図形を切り出す文字・図形切出手
段と、 前記文字・図形切出手段により切り出されたカラー画像
イメージから、前記筆記具により書かれた部分に該当す
る画素のみを抽出する筆記具画素抽出手段と、 前記筆記具画素抽出手段により抽出された画素の色情報
の分布状況の違いにより、前記筆記具の判別を行う筆記
具判別手段とを、 備えたことを特徴とする筆記具判別装置。
4. A storage means for storing a color image image of a medium to be discriminated, a character / graphic cutout means for cutting out one character or one figure from the color image image stored in the storage means, and the character / graphic A writing tool pixel extracting means for extracting only pixels corresponding to a portion written by the writing tool from a color image image cut out by the figure cutting means, and a distribution state of color information of pixels extracted by the writing tool pixel extracting means And a writing implement discriminating means for discriminating the writing implement according to the difference.
【請求項5】 被判別媒体のカラー画像イメージを記憶
する記憶手段と、 前記記憶手段に記憶されているカラー画像イメージか
ら、文字あるいは図形を行単位に切り出す行切出手段
と、 前記行切出手段により切り出されたカラー画像イメージ
から、前記筆記具により書かれた部分に該当する画素の
みを抽出する筆記具画素抽出手段と、 前記筆記具画素抽出手段により抽出された画素の色情報
の分布状況の違いにより、前記筆記具の判別を行う筆記
具判別手段とを、 備えたことを特徴とする筆記具判別装置。
5. A storage means for storing a color image image of a medium to be discriminated, a line cutout means for cutting out a character or a figure in line units from the color image image stored in the storage means, and the line cutout. From the color image image cut out by the means, the writing tool pixel extraction means for extracting only the pixels corresponding to the portion written by the writing tool, and the difference in the distribution status of the color information of the pixels extracted by the writing tool pixel extraction means A writing implement discriminating apparatus comprising: a writing implement discriminating means for discriminating the writing implement.
【請求項6】 請求項1、2、3、4又は5記載の筆記
具判別装置において、前記筆記具判別手段は、前記筆記
具により書かれた部分に該当する画素の色情報の分布状
況の違いにより、前記筆記具の判別を行ってその判別結
果を外部に出力する手段を具備することを特徴とする筆
記具判別装置。
6. The writing instrument discriminating apparatus according to claim 1, 2, 3, 4, or 5, wherein the writing instrument discriminating means changes the distribution state of color information of pixels corresponding to a portion written by the writing instrument. A writing instrument discriminating apparatus comprising means for discriminating the writing instrument and outputting the discrimination result to the outside.
【請求項7】 請求項1、2、3、4、5又は6記載の
筆記具判別装置において、前記筆記具判別手段における
前記色情報は、赤、緑、青の画像イメージ信号であるこ
とを特徴とする筆記具判別装置。
7. The writing instrument discriminating apparatus according to claim 1, wherein the color information in the writing instrument discriminating means is an image image signal of red, green, and blue. Writing instrument discrimination device.
【請求項8】 請求項1、2、3、4、5又は6記載の
筆記具判別装置において、前記筆記具判別手段における
前記色情報は、色相、彩度、あるいは明度のいずれか一
つあるいは複数の組み合せであることを特徴とする筆記
具判別装置。
8. The writing instrument discrimination apparatus according to claim 1, wherein the color information in the writing instrument discrimination means is one or more of hue, saturation, and lightness. A writing instrument determination device characterized by being a combination.
【請求項9】 請求項7記載の筆記具判別装置におい
て、前記筆記具判別手段は、判別対象筆記具を黒色の鉛
筆とボールペンとし、使用筆記具により書かれた部分に
該当する画素の赤の濃度値の緑の濃度値あるいは青の濃
度値に対する大小関係を用いて筆記具の判別を行う構成
にしたことを特徴とする筆記具判別装置。
9. The writing instrument discriminating device according to claim 7, wherein the writing instrument discriminating means uses a black pencil and a ballpoint pen as a discrimination object writing instrument, and a red density value green of a pixel corresponding to a portion written by the writing instrument used. Writing instrument discriminating apparatus characterized in that the writing instrument discriminating apparatus is configured to discriminate a writing instrument by using the magnitude relationship with the density value of the above or the density value of blue.
JP06209805A 1994-09-02 1994-09-02 Writing implement identification device Expired - Fee Related JP3126597B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06209805A JP3126597B2 (en) 1994-09-02 1994-09-02 Writing implement identification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06209805A JP3126597B2 (en) 1994-09-02 1994-09-02 Writing implement identification device

Publications (2)

Publication Number Publication Date
JPH0875552A true JPH0875552A (en) 1996-03-22
JP3126597B2 JP3126597B2 (en) 2001-01-22

Family

ID=16578898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06209805A Expired - Fee Related JP3126597B2 (en) 1994-09-02 1994-09-02 Writing implement identification device

Country Status (1)

Country Link
JP (1) JP3126597B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008152870A1 (en) * 2007-06-14 2008-12-18 Sharp Kabushiki Kaisha Color discriminating apparatus
JP2009205699A (en) * 2009-06-15 2009-09-10 Seiko Epson Corp Image evaluation method, medium having image evaluation program recorded thereon, and image evaluation device
US7756328B2 (en) 2004-01-13 2010-07-13 Olympus Corporation Color chart processing apparatus, color chart processing method, and color chart processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756328B2 (en) 2004-01-13 2010-07-13 Olympus Corporation Color chart processing apparatus, color chart processing method, and color chart processing program
US7995838B2 (en) 2004-01-13 2011-08-09 Olympus Corporation Color chart processing apparatus, color chart processing method, and color chart processing program
WO2008152870A1 (en) * 2007-06-14 2008-12-18 Sharp Kabushiki Kaisha Color discriminating apparatus
JP2009205699A (en) * 2009-06-15 2009-09-10 Seiko Epson Corp Image evaluation method, medium having image evaluation program recorded thereon, and image evaluation device

Also Published As

Publication number Publication date
JP3126597B2 (en) 2001-01-22

Similar Documents

Publication Publication Date Title
US6898316B2 (en) Multiple image area detection in a digital image
US6738154B1 (en) Locating the position and orientation of multiple objects with a smart platen
US8184902B2 (en) Image combining apparatus and control method for the same
KR20010053109A (en) Image processor, image processing method, and medium on which image processing program is recorded
EP2270714A2 (en) Image processing device and image processing method
CN101923644A (en) Image processing method, image processing apparatus and image forming apparatus
CN107346580A (en) Billing information recognition methods and device
KR100691651B1 (en) Automatic Recognition of Characters on Structured Background by Combination of the Models of the Background and of the Characters
US10887491B2 (en) Image processing apparatus for processing of highlighted regions
JPH0875552A (en) Writing instrument discriminator
JP5887242B2 (en) Image processing apparatus, image processing method, and program
CN101197913B (en) Image processing apparatus and control method
JP4167680B2 (en) Document reading apparatus and document reading method
EP0975146B1 (en) Locating the position and orientation of multiple objects with a smart platen
JP3955467B2 (en) Image processing program and image processing apparatus
JPH0773271A (en) Area dividing method
JP2003087562A (en) Image processor and image processing method
EP0715274A2 (en) Method and apparatus for detecting whether an electronic image has been faxed
JP2896919B2 (en) Image processing device
JPH0877292A (en) Image processor
JPH09238256A (en) Image processing method and image processing unit
JPH08163367A (en) Picture processor
JPH08202816A (en) Writing tool discrimination device
TW503377B (en) Image processing method and system with multiple modes
JPH0950489A (en) Character recognizing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001024

LAPS Cancellation because of no payment of annual fees