Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3763966B2 - Image recognition method, apparatus and recording medium - Google Patents
[go: Go Back, main page]

JP3763966B2 - Image recognition method, apparatus and recording medium - Google Patents

Image recognition method, apparatus and recording medium Download PDF

Info

Publication number
JP3763966B2
JP3763966B2 JP09553698A JP9553698A JP3763966B2 JP 3763966 B2 JP3763966 B2 JP 3763966B2 JP 09553698 A JP09553698 A JP 09553698A JP 9553698 A JP9553698 A JP 9553698A JP 3763966 B2 JP3763966 B2 JP 3763966B2
Authority
JP
Japan
Prior art keywords
distance
pattern
extracted
dictionary
elements
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.)
Expired - Lifetime
Application number
JP09553698A
Other languages
Japanese (ja)
Other versions
JPH11296683A (en
Inventor
利夫 宮澤
竜弥 倉永
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP09553698A priority Critical patent/JP3763966B2/en
Publication of JPH11296683A publication Critical patent/JPH11296683A/en
Application granted granted Critical
Publication of JP3763966B2 publication Critical patent/JP3763966B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、入力された原稿画像中から所定のパターンを精度よく抽出する画像認識方法、装置および記録媒体に関する。
【0002】
【従来の技術】
カラー画像における画像認識方法としては、従来から種々の方法が提案されている。例えば、本出願人は先に、カラー画像の内、特に抽出しようとする画像が予め決められた規則に従って描かれているパターンを対象として、カラー画像の認識処理を行なう際に、画像認識に必要な情報量を確保しつつ、回転の影響を受けずに、データ量を圧縮して高速に対象物を認識するカラー画像認識方法を提案した(特開平8−263662号公報を参照)。
【0003】
【発明が解決しようとする課題】
しかし、上記した画像認識方法では、基本マーク(エレメント)間の距離を用いて、認識対象パターンであるか否かを判定しているため、例えば図7に示すように各基本マーク(A1,A2)が同一の距離にある反転したパターン(B1,B2)を抽出することができないという問題があった。
【0004】
本発明の目的は、基本マーク間の距離とベクトル外積を用いることにより、反転したパターンも識別可能な画像認識方法、装置および記録媒体を提供することにある。
【0005】
【課題を解決するための手段】
前記目的を達成するために、請求項1記載の発明では、入力された原稿画像から所定のエレメントを抽出し、該抽出された複数のエレメントから構成された所定のパターンを抽出し、該抽出されたパターンを基に前記入力原稿画像が所定の原稿画像であるか否を認識する画像認識方法であって、前記抽出された1つのエレメントを基準とし、該基準エレメントと他のエレメントとの間の距離を求め、該距離を辞書と照合し、前記辞書内の第1の距離に一致するエレメントをエレメント1、前記辞書内の第2の距離に一致するエレメントをエレメント2とし、前記エレメント1とエレメント2との距離(以下、第3の距離)を求め、さらに前記基準エレメントから前記エレメント1へのベクトルと、前記基準エレメントから前記エレメント2へのベクトルとの外積を求め、前記第3の距離と外積が前記辞書の値と一致しているとき、前記基準エレメント、エレメント1、エレメント2から構成されたパターンを、前記所定のパターンとして抽出することを特徴としている。
【0006】
請求項2記載の発明では、前記外積を基に、反転したパターンを識別することを特徴としている。
【0007】
請求項3記載の発明では、入力された原稿画像から所定のエレメントを抽出するエレメント抽出手段と、エレメント間の距離とベクトル外積を登録した辞書と、前記抽出された複数のエレメントから構成された所定のパターンを抽出するパターン抽出手段とを備え、該抽出されたパターンを基に前記入力原稿画像が所定の原稿画像であるか否を認識する画像認識装置であって、前記パターン抽出手段は、前記抽出された1つのエレメントを基準とし、該基準エレメントと他のエレメントとの間の距離を求め、該距離を前記辞書と照合し、前記辞書内の第1の距離に一致するエレメントをエレメント1、前記辞書内の第2の距離に一致するエレメントをエレメント2とし、前記エレメント1とエレメント2との距離(以下、第3の距離)を求め、さらに前記基準エレメントから前記エレメント1へのベクトルと、前記基準エレメントから前記エレメント2へのベクトルとの外積を求め、前記第3の距離と外積が前記辞書の値と一致しているとき、前記基準エレメント、エレメント1、エレメント2から構成されたパターンを、前記所定のパターンとして抽出することを特徴としている。
【0008】
請求項4記載の発明では、請求項1または2記載の画像認識方法をコンピュータに実現させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体であることを特徴としている。
【0009】
【発明の実施の形態】
以下、本発明の一実施例を図面を用いて具体的に説明する。
〈実施例1〉
図1は、本発明の実施例の構成を示す。図において、1は認識対象原稿などを光学的に読み取る画像入力部、2は画像入力部によって入力されるカラー画像から2値化画像を作成する画像2値化部、3は2値化画像から基本エレメント(前掲した公報の基本マーク)を抽出する基本エレメント抽出部、4は基本エレメントの座標を格納するメモリ、5はエレメント間の距離とベクトル外積を登録した辞書、6は複数の基本エレメントからなる基本パターンを抽出する基本パターン抽出部、7はエレメント候補を格納するメモリ、8は抽出された基本パターンを基に入力原稿が認識対象原稿であるか否かを判定する判定部、9は判定結果を出力する出力部である。
【0010】
図2は、認織対象原稿例と、その基本パターン例を示す。図2に示すように、例えばチケットのように認識対象原稿21の全面に印刷されている繰り返しパターンを検出し、認識する場合を例にして本実施例を説明する。また、繰り返しパターンを構成する基本パターン23としては、図中に破線で示した三角形の各頂点に基本エレメント(黒丸)22があるパターンを例にして説明する。
【0011】
まず始めに、画像2値化部2では、図2の原稿例において、検出対象の繰り返しパターンではない文字部分を除外し(例えば、所定の閾値以上の値を持つ画素を抽出する)、繰り返しパターンのみの2値画像を生成する。
【0012】
次いで、前掲した公報の画像認識方法で説明されている手法などを用いて、基本エレメント抽出部3では、基本エレメント(この例では黒丸)を抽出する。図2の例では、エレメント0,1,2が抽出される。ここで抽出された基本エレメントの座標位置(例えば、エレメント0の座標位置x0,y0)を基本エレメント座標格納メモリ4に保存する。
【0013】
基本パターン抽出部6は、基本エレメント座標格納メモリ4に保存された基本エレメントの座標位置を順次読み出し、基本パターンとしての条件を満たすか否かを判定する。基本パターンの例を図2で説明すると、基本パターン23は、3個のエレメント0、1、2からなる三角形であり、エレメント0とエレメント1との距離がr1、エレメント0とエレメント2との距離がr2、エレメント1とエレメント2との距離がr3であるとする。ここでは、まず三角形の基本パターンの中の1つの基本エレメントを基準エレメント(図2のエレメント0)と仮定して、その他の基本エレメントとの距離、ベクトル外積を用いることによって判定を行なう。
【0014】
図3は、基本パターン判定の処理フローチャートである。まず、基本パターン抽出部6は、基本エレメントの座標を格納したメモリ4から未処理の基本エレメント(=注目エレメント)の座標を読み出し、これを基準エレメント(=エレメント0)であると仮定する(ステップ101)。
【0015】
次に、エレメント0に対するエレメント1、2候補を探索する(ステップ102)。注目しているエレメント0候補と、その近傍にあるその他のエレメントとの間の距離を求め、その距離を辞書5と照合し、辞書中の距離と一致したとき
(あるいはその距離が所定の範囲内にあるとき)、そのエレメントの候補として、エレメント番号を、エレメント候補格納メモリ7の候補リストに加えていく。
【0016】
図4は、エレメント候補の探索例を示す。図中、丸数字の0〜10は抽出された基本エレメントであり、これらをそれぞれエレメント番号0〜10とする。いま、注目エレメント0候補をエレメント番号5とすると、注目エレメントを中心として辞書内の距離r1に一致するエレメント番号7、8と、距離r2に一致するエレメント番号1、10がエレメント候補として選択される。これにより注目エレメントをエレメント0としたときのエレメント1候補群(エレメント番号7、8)とエレメント2候補群(エレメント番号1、10)が決定し、エレメント候補格納メモリ7に書き込まれる。
【0017】
エレメント1、2のすべてにエレメント候補が存在した場合には(ステップ103)、基本パターンである可能性があるため、次のステップ104に進む。エレメント候補が存在しない場合は、基本パターンではないとして、ステップ101に戻り、次のエレメント0候補(図4の例では、エレメント番号6)に処理が移る。
【0018】
エレメント1候補群のエレメントの1つに注目し(ステップ104)、これをエレメント1であると仮定して、エレメント2の検索を行なう(ステップ105)。図5は、エレメント2の第1の探索例を示す。エレメント1候補群の中からエレメント1候補1として、エレメント番号7を選ぶ。そして、エレメント番号7と、エレメント2の候補であるエレメント番号1との距離、エレメント番号7と、エレメント2の候補であるエレメント番号10との距離を求める。
【0019】
また、エレメント0候補(エレメント番号5)からエレメント1候補(エレメント番号7)へのベクトルと、エレメント0候補からエレメント2候補(エレメント番号1)へのベクトルとの外積と、エレメント0候補(エレメント番号5)からエレメント1候補(エレメント番号7)へのベクトルと、エレメント0候補からエレメント2候補(エレメント番号10)へのベクトルとの外積を求める。
【0020】
ここで外積は、エレメント0候補の座標を(X0、Y0)、エレメント1候補の座標を(X1、Y1)、エレメント2候補の座標を(X2、Y2)、としたとき、(X1−X0)*(Y2−Y0)−(X2−X0)*(Y1−Y0)と定義する。
【0021】
反転パターンを判定する際にベクトル外積が有効であることを図7を用いて補足説明する。原点Oに対して反転の位置にある点A(A1、A2)、点B(B1,B2)を考えると、従来の距離のみの判定方法では両者を識別できない。ところが、ベクトル外積を用いると、
ベクトルA1とA2の外積は、(X1−X0)*(Y2−Y0)−(X2−X0)*(Y1−Y0)となり、
ベクトルB1とB2の外積は、(−X1−X0)*(Y2−Y0)−(−X2−X0)*(Y1−Y0)=−{(X1+X0)*(Y2−Y0)−(X2+X0)*(Y1−Y0)}となる。ここで、X0=0、Y0=0とすると、
ベクトルA1とA2の外積は、X1Y2−X2Y1
ベクトルB1とB2の外積は、−(X1Y2−X2Y1)
となり、符号が反転することから、反転の位置にある点Aと点Bの識別が可能となる。
【0022】
上記したように求めた距離とベクトル外積の両方を辞書5と比較し、両方が辞書中の値に一致しているとき、あるいはその値が所定の範囲にあるとき(ステップ106)、注目しているエレメント0およびエレメント1に対するエレメント2が存在したとして、フラグをセットし、エレメント番号を記憶する(ステップ107)。つまり、フラグがセットされていれば、注目しているエレメント0に対して、エレメント1、2が所定の位置に存在している可能性があり、これらエレメントからなるパターンが基本パターンとして検出されることになる。全てのエレメントが処理されていないときは、次のエレメント1候補に処理を移す(ステップ104)。
【0023】
図5の例では、エレメント1候補1であるエレメント番号7を中心として、エレメント番号7とエレメント番号1の距離、エレメント番号7とエレメント番号10の距離は、辞書内のr3の条件を満たさないので(ステップ106)、ステップ108、ステップ104に進み、エレメント1候補群の中から、次のエレメント1候補2として、エレメント番号8を選ぶ。
【0024】
図6に示すように、図5と同様にエレメント番号8を中心として、エレメント番号8−1間の距離、エレメント番号8−10間の距離を求める。また、エレメント0候補(エレメント番号5)からエレメント1候補(エレメント番号8)へのベクトルと、エレメント0候補からエレメント2候補(エレメント番号1)へのベクトルとの外積と、エレメント0候補(エレメント番号5)からエレメント1候補(エレメント番号8)へのベクトルと、エレメント0候補からエレメント2候補(エレメント番号10)へのベクトルとの外積を求める。
【0025】
図6の例で、エレメント番号8と1との距離とその外積が、共に辞書5中の値に一致しているとき、あるいはその値が所定の範囲にあるとき(ステップ106)、エレメント番号1がエレメント2候補となる。そして、注目しているエレメント0(エレメント番号5)およびエレメント1(エレメント番号8)に対するエレメント2(エレメント番号1)が存在するので、フラグをセットし、そのエレメント番号(5、8、1)を、エレメント候補格納メモリ7に記憶する(ステップ107)。これにより、フラグがセットされているエレメント番号(5、8、1)からなるパターンが基本パターンとして検出される。基本パターン抽出部6は、上記した処理を全てのエレメントに対して行う。判定部8は、上記したようにして抽出された基本パターンをエレメント候補格納メモリ7から読み出し、その個数が対象原稿中に所定の個数以上あるなどの条件を用いて、認識対象原稿であるか否かの判定を行い、その判定結果を出力部9に出力する。
【0026】
〈実施例2〉
図8は、本発明をソフトウェアによって実現する場合の実施例である。本発明をソフトウェアによって実現する場合には、図8に示すように、CPU、メモリ、表示装置、ハードディスク、キーボード、CD−ROMドライブ、スキャナなどからなるコンピュータシステムを用意し、CD−ROMなどのコンピュータ読み取り可能な記録媒体には、本発明の画像認識機能を実現するプログラム、辞書などが記録されている。また、処理対象となる原稿画像などはハードディスクなどに格納されている。そして、該プログラムが起動されると、原稿画像データが読み込まれて、画像認識処理を実行し、その認識結果をディスプレイなどに出力する。
【0027】
【発明の効果】
以上、説明したように、本発明によれば、基準エレメントと他のエレメントとの間の距離と、ベクトル外積を基に基準エレメントと他のエレメントから構成された所定のパターンを抽出しているので、所定のパターンを精度よく認識でき、また反転したパターンを識別することが可能となる。
【図面の簡単な説明】
【図1】 本発明の実施例の構成を示す。
【図2】 認織対象原稿例と、その基本パターン例を示す。
【図3】 基本パターン判定の処理フローチャートである。
【図4】 エレメント候補の探索例を示す。
【図5】 エレメント2の第1の探索例を示す。
【図6】 エレメント2の第2の探索例を示す。
【図7】 反転パターンを判定する際にベクトル外積が有効であることを説明する図である。
【図8】 本発明をソフトウェアによって実現する場合の構成例を示す。
【符号の説明】
1 画像入力部
2 画像2値化部
3 基本エレメント抽出部
4 基本エレメント座標格納メモリ
5 辞書
6 基本パターン抽出部
7 エレメント候補格納メモリ
8 判定部
9 出力部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image recognition method, apparatus, and recording medium that accurately extract a predetermined pattern from an input document image.
[0002]
[Prior art]
Various methods have been proposed as image recognition methods for color images. For example, the present applicant needs to perform image recognition when performing color image recognition processing on a color image, in particular, a pattern in which an image to be extracted is drawn according to a predetermined rule. A color image recognition method has been proposed that recognizes an object at high speed by compressing the amount of data without affecting the rotation while ensuring a large amount of information (see Japanese Patent Laid-Open No. 8-263661).
[0003]
[Problems to be solved by the invention]
However, in the image recognition method described above, since the distance between the basic marks (elements) is used to determine whether the pattern is a recognition target pattern, for example, as shown in FIG. 7, each basic mark (A1, A2) is determined. ) Cannot be extracted with inverted patterns (B1, B2) having the same distance.
[0004]
An object of the present invention is to provide an image recognition method, apparatus, and recording medium that can identify an inverted pattern by using a distance between basic marks and a vector outer product.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, according to the first aspect of the present invention, a predetermined element is extracted from the input document image, a predetermined pattern composed of the plurality of extracted elements is extracted, and the extracted pattern is extracted. An image recognition method for recognizing whether or not the input document image is a predetermined document image based on the pattern, and using the extracted one element as a reference, between the reference element and another element. The distance is obtained, the distance is checked against the dictionary, the element that matches the first distance in the dictionary is element 1, the element that matches the second distance in the dictionary is element 2, and the element 1 and element the distance between the 2 (hereinafter, a third distance) is obtained, further the vector from the reference element to the element 1, to the element 2 from the reference element Obtains an outer product of a vector, when the third distance and the outer product is consistent with the value of the dictionary, the reference element, the element 1, the configuration pattern from the element 2, extracting a predetermined pattern It is characterized by.
[0006]
The invention according to claim 2 is characterized in that an inverted pattern is identified based on the outer product.
[0007]
According to the third aspect of the present invention, an element extracting means for extracting a predetermined element from the input document image, a dictionary in which the distance between the elements and the vector outer product are registered, and the predetermined element composed of the plurality of extracted elements. of a pattern extracting means for extracting a pattern, the input document image based on the extracted pattern is an image recognition apparatus recognizes whether a predetermined document image, said pattern extraction means, said Using one extracted element as a reference, a distance between the reference element and another element is obtained, the distance is compared with the dictionary, and an element that matches the first distance in the dictionary is element 1, The element that matches the second distance in the dictionary is element 2, and the distance between the element 1 and element 2 (hereinafter referred to as the third distance) is obtained. Further the vector to the element 1 from the reference element, obtains the outer product of the vector to the element 2 from the reference element, when the third distance and the outer product is consistent with the value of the dictionary, the reference A pattern composed of elements, element 1 and element 2 is extracted as the predetermined pattern.
[0008]
The invention described in claim 4 is a computer-readable recording medium recording a program for causing a computer to realize the image recognition method described in claim 1 or 2.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
<Example 1>
FIG. 1 shows the configuration of an embodiment of the present invention. In the figure, 1 is an image input unit that optically reads a document to be recognized and the like, 2 is an image binarization unit that creates a binarized image from a color image input by the image input unit, and 3 is from a binarized image. Basic element extraction unit for extracting basic elements (basic marks in the above-mentioned publication), 4 is a memory for storing the coordinates of basic elements, 5 is a dictionary in which distances between elements and vector outer products are registered, and 6 is a plurality of basic elements A basic pattern extracting unit for extracting a basic pattern, 7 a memory for storing element candidates, 8 a determining unit for determining whether or not an input document is a recognition target document based on the extracted basic pattern, and 9 for determining It is an output part which outputs a result.
[0010]
FIG. 2 shows an example of a document to be certified and a basic pattern example thereof. As shown in FIG. 2, the present embodiment will be described by taking as an example a case where a repetitive pattern printed on the entire surface of the recognition target document 21 such as a ticket is detected and recognized. Further, the basic pattern 23 constituting the repetitive pattern will be described by taking, as an example, a pattern having a basic element (black circle) 22 at each vertex of a triangle indicated by a broken line in the drawing.
[0011]
First, the image binarization unit 2 excludes a character portion that is not a repetitive pattern to be detected in the example of the document in FIG. 2 (for example, extracts pixels having a value equal to or greater than a predetermined threshold), and repeats the pattern. Only binary images are generated.
[0012]
Next, the basic element extraction unit 3 extracts basic elements (black circles in this example) using the method described in the image recognition method of the above-mentioned publication. In the example of FIG. 2, elements 0, 1, and 2 are extracted. The basic element coordinate position extracted here (for example, the coordinate position x0, y0 of the element 0) is stored in the basic element coordinate storage memory 4.
[0013]
The basic pattern extraction unit 6 sequentially reads out the coordinate positions of the basic elements stored in the basic element coordinate storage memory 4 and determines whether or not a condition as a basic pattern is satisfied. An example of the basic pattern will be described with reference to FIG. 2. The basic pattern 23 is a triangle composed of three elements 0, 1, and 2. The distance between element 0 and element 1 is r1, and the distance between element 0 and element 2 is as follows. Is r2, and the distance between element 1 and element 2 is r3. Here, first, assuming that one basic element in the triangular basic pattern is a reference element (element 0 in FIG. 2), the determination is performed by using the distance from other basic elements and the vector outer product.
[0014]
FIG. 3 is a flowchart of basic pattern determination processing. First, the basic pattern extraction unit 6 reads the coordinates of an unprocessed basic element (= target element) from the memory 4 that stores the coordinates of the basic element, and assumes that this is the reference element (= element 0) (step 0). 101).
[0015]
Next, element 1 and 2 candidates for element 0 are searched (step 102). When the distance between the element 0 candidate of interest and other elements in the vicinity of the candidate is obtained, the distance is compared with the dictionary 5 and matches the distance in the dictionary (or the distance is within a predetermined range). The element number is added to the candidate list in the element candidate storage memory 7 as a candidate for that element.
[0016]
FIG. 4 shows an example of searching for element candidates. In the figure, circle numbers 0 to 10 are extracted basic elements, which are element numbers 0 to 10, respectively. If the element 0 candidate of interest is now element number 5, element numbers 7 and 8 that match the distance r1 in the dictionary centered on the element of interest and element numbers 1 and 10 that match the distance r2 are selected as element candidates. . Thus, the element 1 candidate group (element numbers 7 and 8) and the element 2 candidate group (element numbers 1 and 10) when the element of interest is element 0 are determined and written to the element candidate storage memory 7.
[0017]
If there are element candidates in all of the elements 1 and 2 (step 103), the process proceeds to the next step 104 because there is a possibility of a basic pattern. If there is no element candidate, it is determined that the pattern is not a basic pattern, and the process returns to step 101 to move to the next element 0 candidate (element number 6 in the example of FIG. 4).
[0018]
Focusing on one element of the element 1 candidate group (step 104), assuming that this is element 1, search for element 2 is performed (step 105). FIG. 5 shows a first search example of element 2. Element number 7 is selected as element 1 candidate 1 from the element 1 candidate group. Then, the distance between element number 7 and element number 1 which is a candidate for element 2 and the distance between element number 7 and element number 10 which is a candidate for element 2 are obtained.
[0019]
Further, an outer product of a vector from the element 0 candidate (element number 5) to the element 1 candidate (element number 7) and a vector from the element 0 candidate to the element 2 candidate (element number 1), and an element 0 candidate (element number) The outer product of the vector from 5) to the element 1 candidate (element number 7) and the vector from the element 0 candidate to the element 2 candidate (element number 10) is obtained.
[0020]
Here, the outer product is (X1-X0) where the coordinates of the element 0 candidate are (X0, Y0), the coordinates of the element 1 candidate are (X1, Y1), and the coordinates of the element 2 candidate are (X2, Y2). * (Y2-Y0)-(X2-X0) * (Y1-Y0).
[0021]
A supplementary explanation will be given with reference to FIG. 7 that the vector cross product is effective in determining the inversion pattern. Considering the point A (A1, A2) and the point B (B1, B2) that are in the reverse positions with respect to the origin O, the conventional determination method using only the distance cannot identify both. However, using vector cross product,
The outer product of the vectors A1 and A2 is (X1-X0) * (Y2-Y0)-(X2-X0) * (Y1-Y0),
The outer product of the vectors B1 and B2 is (-X1-X0) * (Y2-Y0)-(-X2-X0) * (Y1-Y0) =-{(X1 + X0) * (Y2-Y0)-(X2 + X0) * (Y1-Y0)}. Here, if X0 = 0 and Y0 = 0,
The outer product of the vectors A1 and A2 is X1Y2-X2Y1
The outer product of the vectors B1 and B2 is-(X1Y2-X2Y1)
Since the sign is inverted, the point A and the point B at the inversion position can be identified.
[0022]
Compare both the distance and the vector cross product obtained as described above with the dictionary 5, and when both match the values in the dictionary, or when the values are within a predetermined range (step 106), pay attention. Assuming that element 2 for element 0 and element 1 exist, a flag is set and the element number is stored (step 107). In other words, if the flag is set, there is a possibility that the elements 1 and 2 exist at a predetermined position with respect to the element 0 of interest, and a pattern including these elements is detected as a basic pattern. It will be. When all the elements have not been processed, the processing is transferred to the next element 1 candidate (step 104).
[0023]
In the example of FIG. 5, the distance between element number 7 and element number 1 and the distance between element number 7 and element number 10 centering on element number 7 which is element 1 candidate 1 do not satisfy the condition of r3 in the dictionary. (Step 106), proceeding to Step 108 and Step 104, the element number 8 is selected as the next element 1 candidate 2 from the element 1 candidate group.
[0024]
As shown in FIG. 6, the distance between element numbers 8-1 and the distance between element numbers 8-10 are obtained centering on element number 8 as in FIG. Further, an outer product of a vector from the element 0 candidate (element number 5) to the element 1 candidate (element number 8) and a vector from the element 0 candidate to the element 2 candidate (element number 1), and an element 0 candidate (element number) The outer product of the vector from 5) to the element 1 candidate (element number 8) and the vector from the element 0 candidate to the element 2 candidate (element number 10) is obtained.
[0025]
In the example of FIG. 6, when the distance between the element numbers 8 and 1 and the outer product thereof both match the values in the dictionary 5 or when the values are within a predetermined range (step 106), the element number 1 Becomes an element 2 candidate. Since there is element 2 (element number 1) for element 0 (element number 5) and element 1 (element number 8) of interest, a flag is set and the element numbers (5, 8, 1) are set. And stored in the element candidate storage memory 7 (step 107). As a result, a pattern composed of element numbers (5, 8, 1) for which a flag is set is detected as a basic pattern. The basic pattern extraction unit 6 performs the above processing on all elements. The determination unit 8 reads out the basic pattern extracted as described above from the element candidate storage memory 7, and uses a condition such that the number of the basic patterns is equal to or greater than a predetermined number in the target document to determine whether the document is a recognition target document. The determination result is output to the output unit 9.
[0026]
<Example 2>
FIG. 8 shows an embodiment when the present invention is realized by software. When the present invention is realized by software, as shown in FIG. 8, a computer system including a CPU, a memory, a display device, a hard disk, a keyboard, a CD-ROM drive, a scanner, etc. is prepared, and a computer such as a CD-ROM is prepared. On the readable recording medium, a program for realizing the image recognition function of the present invention, a dictionary, and the like are recorded. A document image to be processed is stored in a hard disk or the like. When the program is started, the original image data is read, image recognition processing is executed, and the recognition result is output to a display or the like.
[0027]
【The invention's effect】
As described above, according to the present invention, the predetermined pattern composed of the reference element and the other element is extracted based on the distance between the reference element and the other element and the vector outer product. The predetermined pattern can be recognized with high accuracy, and the inverted pattern can be identified.
[Brief description of the drawings]
FIG. 1 shows a configuration of an embodiment of the present invention.
FIG. 2 shows an example of a document to be certified and an example of its basic pattern.
FIG. 3 is a process flowchart of basic pattern determination.
FIG. 4 shows an example of searching for element candidates.
FIG. 5 shows a first search example of element 2;
FIG. 6 shows a second search example of element 2;
FIG. 7 is a diagram for explaining that a vector cross product is effective in determining an inversion pattern.
FIG. 8 shows a configuration example when the present invention is realized by software.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Image input part 2 Image binarization part 3 Basic element extraction part 4 Basic element coordinate storage memory 5 Dictionary 6 Basic pattern extraction part 7 Element candidate storage memory 8 Judgment part 9 Output part

Claims (4)

入力された原稿画像から所定のエレメントを抽出し、該抽出された複数のエレメントから構成された所定のパターンを抽出し、該抽出されたパターンを基に前記入力原稿画像が所定の原稿画像であるか否を認識する画像認識方法であって、前記抽出された1つのエレメントを基準とし、該基準エレメントと他のエレメントとの間の距離を求め、該距離を辞書と照合し、前記辞書内の第1の距離に一致するエレメントをエレメント1、前記辞書内の第2の距離に一致するエレメントをエレメント2とし、前記エレメント1とエレメント2との距離(以下、第3の距離)を求め、さらに前記基準エレメントから前記エレメント1へのベクトルと、前記基準エレメントから前記エレメント2へのベクトルとの外積を求め、前記第3の距離と外積が前記辞書の値と一致しているとき、前記基準エレメント、エレメント1、エレメント2から構成されたパターンを、前記所定のパターンとして抽出することを特徴とする画像認識方法。A predetermined element is extracted from the input document image, a predetermined pattern composed of the extracted elements is extracted, and the input document image is a predetermined document image based on the extracted pattern. An image recognition method for recognizing whether or not an extracted element is used as a reference, a distance between the reference element and another element is obtained, the distance is compared with a dictionary, The element matching the first distance is element 1, the element matching the second distance in the dictionary is element 2, and the distance between the element 1 and element 2 (hereinafter referred to as the third distance) is obtained. and a vector from the reference element to the element 1, obtains an outer product of a vector from the reference element to the element 2, the third distance and the cross product is pre When match the value of the dictionary, the image recognition method, characterized in that said reference element, the element 1, the configuration pattern from the element 2 is extracted as the predetermined pattern. 前記外積を基に、反転したパターンを識別することを特徴とする請求項1記載の画像認識方法。  The image recognition method according to claim 1, wherein an inverted pattern is identified based on the outer product. 入力された原稿画像から所定のエレメントを抽出するエレメント抽出手段と、エレメント間の距離とベクトル外積を登録した辞書と、前記抽出された複数のエレメントから構成された所定のパターンを抽出するパターン抽出手段とを備え、該抽出されたパターンを基に前記入力原稿画像が所定の原稿画像であるか否を認識する画像認識装置であって、前記パターン抽出手段は、前記抽出された1つのエレメントを基準とし、該基準エレメントと他のエレメントとの間の距離を求め、該距離を前記辞書と照合し、前記辞書内の第1の距離に一致するエレメントをエレメント1、前記辞書内の第2の距離に一致するエレメントをエレメント2とし、前記エレメント1とエレメント2との距離(以下、第3の距離)を求め、さらに前記基準エレメントから前記エレメント1へのベクトルと、前記基準エレメントから前記エレメント2へのベクトルとの外積を求め、前記第3の距離と外積が前記辞書の値と一致しているとき、前記基準エレメント、エレメント1、エレメント2から構成されたパターンを、前記所定のパターンとして抽出することを特徴とする画像認識装置。 Element extraction means for extracting predetermined elements from the input document image, a dictionary in which distances between elements and vector outer products are registered, and pattern extraction means for extracting a predetermined pattern composed of the plurality of extracted elements with the door, the input document image based on the extracted pattern is an image recognition apparatus recognizes whether a predetermined document image, said pattern extraction means, based on the one of the elements the extracted The distance between the reference element and another element is obtained, the distance is checked against the dictionary, the element that matches the first distance in the dictionary is element 1, and the second distance in the dictionary elements that match the element 2, the distance between the element 1 and the element 2 (hereinafter, the third distance) seeking further the reference elementary And vector to the element 1 from obtains an outer product of a vector from the reference element to the element 2, when the third distance and the outer product is consistent with the value of the dictionary, the reference element, the element 1 An image recognition apparatus that extracts a pattern composed of elements 2 as the predetermined pattern. 請求項1または2記載の画像認識方法をコンピュータに実現させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。  A computer-readable recording medium on which a program for causing a computer to realize the image recognition method according to claim 1 or 2 is recorded.
JP09553698A 1998-04-08 1998-04-08 Image recognition method, apparatus and recording medium Expired - Lifetime JP3763966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09553698A JP3763966B2 (en) 1998-04-08 1998-04-08 Image recognition method, apparatus and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09553698A JP3763966B2 (en) 1998-04-08 1998-04-08 Image recognition method, apparatus and recording medium

Publications (2)

Publication Number Publication Date
JPH11296683A JPH11296683A (en) 1999-10-29
JP3763966B2 true JP3763966B2 (en) 2006-04-05

Family

ID=14140295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09553698A Expired - Lifetime JP3763966B2 (en) 1998-04-08 1998-04-08 Image recognition method, apparatus and recording medium

Country Status (1)

Country Link
JP (1) JP3763966B2 (en)

Also Published As

Publication number Publication date
JPH11296683A (en) 1999-10-29

Similar Documents

Publication Publication Date Title
JP3445394B2 (en) How to compare at least two image sections
JP2002133426A (en) Ruled line extraction device for extracting ruled lines from multi-valued images
JP4704601B2 (en) Character recognition method, program, and recording medium
WO2000062243A1 (en) Character string extracting device and method based on basic component in document image
Cardoso et al. A connected path approach for staff detection on a music score
JPH1131226A (en) Information processing method and apparatus
CN112085816A (en) Font curve generation method and device
CN112818983B (en) Method for judging character inversion by using picture acquaintance
Rahman et al. Text Information Extraction from Digital Image Documents Using Optical Character Recognition
JP2898562B2 (en) License plate determination method
JP3798179B2 (en) Pattern extraction device and character segmentation device
CN113971804B (en) Signature forgery detection device, method, computing device and storage medium
JP3763966B2 (en) Image recognition method, apparatus and recording medium
EP1930852B1 (en) Image search method and device
CN118071831A (en) Image coarse positioning method, device and computer readable storage medium
JP3814334B2 (en) Image processing apparatus and method
JP3090070B2 (en) Form identification method and device
JP4878057B2 (en) Character recognition method, program, and recording medium
JP3756660B2 (en) Image recognition method, apparatus and recording medium
JP2011076374A (en) Device, method and program for recognizing graphic shape
JP3388918B2 (en) String reader
JP2004280530A (en) System and method for processing form
Baudrier et al. A method for image local-difference visualization
JP3163698B2 (en) Character recognition method
JP2007140729A (en) Method and apparatus for detecting the position and orientation of an article

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050411

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050426

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050627

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060117

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060118

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100127

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110127

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120127

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130127

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140127

Year of fee payment: 8

EXPY Cancellation because of completion of term