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
JP6309867B2 - Imprint image generation program, imprint image generation method, and imprint image generation apparatus - Google Patents
[go: Go Back, main page]

JP6309867B2 - Imprint image generation program, imprint image generation method, and imprint image generation apparatus - Google Patents

Imprint image generation program, imprint image generation method, and imprint image generation apparatus Download PDF

Info

Publication number
JP6309867B2
JP6309867B2 JP2014195102A JP2014195102A JP6309867B2 JP 6309867 B2 JP6309867 B2 JP 6309867B2 JP 2014195102 A JP2014195102 A JP 2014195102A JP 2014195102 A JP2014195102 A JP 2014195102A JP 6309867 B2 JP6309867 B2 JP 6309867B2
Authority
JP
Japan
Prior art keywords
imprint
image
value
binarization
frame
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 - Fee Related
Application number
JP2014195102A
Other languages
Japanese (ja)
Other versions
JP2016066268A (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.)
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Frontech 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 Fujitsu Frontech Ltd filed Critical Fujitsu Frontech Ltd
Priority to JP2014195102A priority Critical patent/JP6309867B2/en
Publication of JP2016066268A publication Critical patent/JP2016066268A/en
Application granted granted Critical
Publication of JP6309867B2 publication Critical patent/JP6309867B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Collating Specific Patterns (AREA)

Description

本発明は、印影データベースに登録する登録印影を生成するため、又は登録印影と照合する被照合印影を生成するための印影画像生成プログラム、印影画像生成方法及び印影画像生成装置に関する。   The present invention relates to an imprint image generation program, an imprint image generation method, and an imprint image generation apparatus for generating a registered imprint to be registered in an imprint database or generating a checked imprint to be collated with a registered imprint.

従来、紙文書の真正性を保証する手段として、印鑑の押印によって得られる印影画像(印章)が用いられている。例えば銀行において顧客が小切手などによる払い戻しを求める場合、小切手に押印されている印影が予め登録された登録印影と一致しているか否かを照合することにより、その小切手の真正性を確認する。   Conventionally, as a means for assuring the authenticity of a paper document, a seal image (a seal) obtained by stamping a seal stamp has been used. For example, when a customer requests a refund by a check or the like at a bank, the authenticity of the check is confirmed by checking whether or not the stamp imprinted on the check matches a registered seal imprinted in advance.

印鑑登録装置は、銀行等の金融機関又は区役所等の行政機関において、帳票に押印された印鑑の印影を画像読取装置(スキャナ)で読み取り、その読み取った印影画像を登録印影として印鑑データベースに登録する(例えば、特許文献1参照。)。また、印鑑照合装置は、同様に画像読取装置で読み取った被照合印影としての印影画像と、印鑑データベースに登録された登録印影とを照合し、所定の割合で一致する登録印影が登録されているか否かを判断する。   The seal registration device reads an imprint of a seal stamped on a form with an image reader (scanner) in a financial institution such as a bank or an administrative institution such as a ward office, and registers the read seal image as a registered seal in the seal database. (For example, refer to Patent Document 1). Similarly, the seal collation device collates the imprint image as the collated imprint read by the image reading device with the registered imprint registered in the seal stamp database, and whether a registered imprint that matches at a predetermined ratio is registered. Judge whether or not.

登録印影の登録は、印影画像を二値化して実行される。また、登録印影と被照合印影の照合は、二値化された両印影画像を用いて実行される。そのため、画像読取装置で読み取った登録印影及び被照合印影の多値画像(カラー画像、256グレースケール画像等)を二値画像に変換(二値化)する必要がある(例えば、特許文献2参照。)。   Registration of the registered seal is performed by binarizing the seal image. In addition, the registered seal stamp and the check target seal are collated using the binarized both imprint images. Therefore, it is necessary to convert (binarize) a multi-valued image (color image, 256 grayscale image, etc.) of a registered imprint and a check target imprint read by the image reading apparatus (for example, refer to Patent Document 2). .)

多値画像の二値化には、例えば、Niblack(ニブラック)法を用いた既知の技術がある。Niblack法の二値化技術では、パラメタ設定によって二値化の閾値の調整が可能となっている。そのため、濃い印影画像の場合は閾値を上げ、薄い印影画像の場合は閾値を下げることで、二値化画像を最適に調整することが可能である(例えば、特許文献3参照。)。   For binarization of a multi-valued image, for example, there is a known technique using the Niblack method. In the binarization technique of the Niblack method, the threshold value for binarization can be adjusted by parameter setting. Therefore, the binarized image can be optimally adjusted by increasing the threshold value in the case of a dark imprint image and decreasing the threshold value in the case of a thin imprint image (see, for example, Patent Document 3).

特開2012−48513号公報JP 2012-48513 A 特開平9−128537号公報JP-A-9-128537 特開2005−100441号公報JP 2005-100441 A

上述のように、登録印影及び被照合印影は、画像読取装置で読み取った多値画像を二値画像に二値化する必要がある。従来の二値化技術は、二値化パラメタの設定が多値の印影全体に適用されるため、印影全体が濃い場合、又は印影全体が薄い場合に有効な技術である。   As described above, it is necessary to binarize the multi-valued image read by the image reading device into a binary image for the registered seal and the check target seal. The conventional binarization technique is effective when the entire imprint is dark or the entire imprint is thin because the binarization parameter settings are applied to the entire multi-value imprint.

しかしながら、押印の偏りによって印影の濃淡に偏りがある場合、すなわち、印影の片側が濃く滲み、反対側が薄く擦れている場合がある。このような印影を二値化する場合、濃い部分に合わせた二値化閾値を用いると薄い部分が擦れてしまい、薄い部分に合わせた二値化閾値を用いると濃い部分が滲んでしまう。   However, there is a case where the density of the imprint is uneven due to the imbalance of the stamp, that is, one side of the imprint imprints heavily and the other side is rubbed lightly. When binarizing such an imprint, if a binarization threshold matched to a dark part is used, a thin part will rub, and if a binarization threshold matched to a thin part is used, a dark part will blur.

図1は、濃淡の偏った印影を二値化する際の問題点を説明するための図である。
図1において、(A)の画像は、画像読取装置で読み取った多値の印影画像である。この(A)の印影画像は、その濃淡が偏っている。この印影画像を所定の二値化閾値を用いて二値化すると、(B)の画像になる。(B)の画像は、印影の濃淡に偏りがあるのが特徴になっている。すなわち、図面の左側の印影が濃く、その反対側である右側が薄くなっている。一方向に濃度のグラデーションが生じていると言える。
FIG. 1 is a diagram for explaining a problem in binarizing an imprint with uneven shading.
In FIG. 1, an image (A) is a multi-value imprint image read by an image reading apparatus. The imprint image of (A) is unevenly shaded. When this imprint image is binarized using a predetermined binarization threshold, an image of (B) is obtained. The image of (B) is characterized in that the imprint density is uneven. That is, the imprint on the left side of the drawing is dark and the right side, which is the opposite side, is thin. It can be said that a gradation of density occurs in one direction.

そこで、二値化閾値の値を大きくして濃い部分に合わせると、(C)の画像のように薄い部分が擦れて擦れ部分11が生じてしまう。他方、二値化閾値の値を小さくして薄い部分に合わせると、(D)の画像のように濃い部分が滲んで滲み部分12が生じてしまう。すなわち、押印の偏りによって濃淡に偏りがある印影を二値化する場合、印影全体で均一な二値化を実現することが困難である。   Therefore, when the binarization threshold value is increased to match the darker portion, the thin portion is rubbed and the rubbed portion 11 is generated as in the image of (C). On the other hand, when the binarization threshold value is decreased and matched to a thin portion, the dark portion is blurred and the blurred portion 12 is generated as in the image of (D). In other words, when binarizing an imprint that is uneven in density due to the imbalance of the stamp, it is difficult to realize uniform binarization over the entire imprint.

そのため、二値化画像を最適な見え方に調整することが困難であり、オペレーション効率が低下したり、印影画像全体が均一に二値化されないことで印鑑の照合精度が低下したりする、という問題点があった。   Therefore, it is difficult to adjust the binarized image to the optimum appearance, and the operation efficiency is reduced, or the accuracy of the seal stamp is lowered because the entire imprint image is not binarized uniformly. There was a problem.

本発明は、上述のような実状に鑑みたものであり、印影の濃淡に偏りがある印影画像の濃淡を自動補正し、印影画像全体で均一な二値化を実現することが可能な印影画像生成プログラム、印影画像生成方法及び印影画像生成装置を提供することを目的とする。   The present invention has been made in view of the above-described situation, and an imprint image that can automatically correct the shading of an imprint image with a bias in the imprint density and realize uniform binarization over the entire imprint image. It is an object to provide a generation program, an imprint image generation method, and an imprint image generation apparatus.

本発明は、上記課題を解決するため、下記のような構成を採用した。
すなわち、本発明の一態様によれば、本発明の印影画像生成プログラムは、印影画像生成装置のコンピュータを、画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を取得する印影多値画像取得手段、前記印影多値画像取得手段によって取得された印影多値画像を予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する第1の二値化手段、前記第1の二値化手段によって生成された印影二値画像の外周枠を検出する印影枠検出手段、前記印影枠検出手段によって検出された外周枠の複数個所の濃淡度を検出する印影枠濃淡検出手段、前記印影多値画像を分割して複数の部分印影多値画像を生成する画像分割手段、前記画像分割手段によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出手段によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する第2の二値化手段、前記第2の二値化手段によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する画像合成手段、前記第1の二値化手段によって生成された印影二値画像の中心を検出する印影中心検出手段として機能させ、前記印影枠濃淡検出手段が、前記印影中心検出手段によって検出された中心を通る直線と前記印影枠検出手段によって検出された外周枠との交点を中心とした所定領域の黒画素数に基づいて、前記外周枠の濃淡度を検出することを特徴とする印影画像生成プログラムである。
The present invention employs the following configuration in order to solve the above problems.
That is, according to one aspect of the present invention, the imprint image generation program of the present invention causes the computer of the imprint image generation apparatus to acquire an imprint multi-value image of a seal stamp stamped on a medium read by the image reading apparatus. Multi-valued image acquisition means, a first binary for generating an imprint binary image by binarizing an imprinted multi-valued image acquired by the imprinted multi-valued image acquiring means using a first binarization threshold value determined in advance A binarizing unit; an imprint frame detecting unit for detecting an outer frame of the imprint binary image generated by the first binarizing unit; and detecting the intensity at a plurality of locations of the outer frame detected by the imprint frame detecting unit. Each of the imprint frame grayscale detecting means, the image dividing means for dividing the impression multivalued image to generate a plurality of partial impression multivalued images, and the plurality of partial impression multivalued images divided by the image dividing means, Imprint frame density inspection Second binarization that generates a plurality of partial imprint binary images by binarization using a second binarization threshold different from the first binarization threshold based on the intensity detected by the means Generated by the binarizing means, the image synthesizing means for synthesizing a plurality of partial impression binary images generated by the second binarizing means and generating one synthesized binary image, and generated by the first binarizing means The imprinted frame binary image is detected by the imprinted frame detecting unit and the straight line passing through the center detected by the imprinted image center detecting unit. An imprint image generation program characterized by detecting the gray level of the outer peripheral frame based on the number of black pixels in a predetermined area centered on an intersection with the outer peripheral frame .

また、本発明の一態様によれば、本発明の印影画像生成プログラムは、印影画像生成装置のコンピュータを、画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を取得する印影多値画像取得手段、前記印影多値画像取得手段によって取得された印影多値画像を予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する第1の二値化手段、前記第1の二値化手段によって生成された印影二値画像の外周枠を検出する印影枠検出手段、前記印影枠検出手段によって検出された外周枠の複数個所の濃淡度を検出する印影枠濃淡検出手段、前記印影多値画像を分割して複数の部分印影多値画像を生成する画像分割手段、前記画像分割手段によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出手段によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する第2の二値化手段、前記第2の二値化手段によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する画像合成手段、前記第1の二値化手段によって生成された印影二値画像の中心を検出する印影中心検出手段として機能させ、前記印影枠濃淡検出手段が、前記印影中心検出手段によって検出された中心を通る直線と前記印影枠検出手段によって検出された外周枠との交点の前記直線方向の黒画素数(印影枠幅)に基づいて、前記外周枠の濃淡度を検出することを特徴とする印影画像生成プログラムであるFurther , according to one aspect of the present invention, the imprint image generation program of the present invention causes the computer of the imprint image generation apparatus to acquire an imprint multi-value image of a seal stamp on a medium read by the image reading apparatus. Multi-valued image acquisition means, a first binary for generating an imprint binary image by binarizing an imprinted multi-valued image acquired by the imprinted multi-valued image acquiring means using a first binarization threshold value determined in advance. A binarizing unit; an imprint frame detecting unit for detecting an outer frame of the imprint binary image generated by the first binarizing unit; and detecting the intensity at a plurality of locations of the outer frame detected by the imprint frame detecting unit. Each of the imprint frame grayscale detecting means, the image dividing means for dividing the impression multivalued image to generate a plurality of partial impression multivalued images, and the plurality of partial impression multivalued images divided by the image dividing means, Imprint frame shading detection hand A second binary value that is binarized using a second binarization threshold value different from the first binarization threshold value to generate a plurality of partial imprint binary images based on the intensity detected by Generating means, image synthesizing means for synthesizing a plurality of partial impression binary images generated by the second binarizing means to generate one synthesized binary image, and generated by the first binarizing means. The imprinted image binary detection unit functions as an imprinted image center detecting unit that detects the center of the imprinted binary image, and the imprinted frame grayscale detecting unit detects a straight line passing through the center detected by the imprinted image center detecting unit and an outer periphery detected by the imprinted frame detecting unit. An imprint image generation program characterized by detecting the shade of the outer peripheral frame based on the number of black pixels (imprint frame width) in the linear direction at the intersection with the frame.

また、本発明の印影画像生成プログラムは、前記画像分割手段が、前記印影枠濃淡検出手段によって検出された黒画素数が最多である前記交点を求めた前記直線と直交する直線によって、前記印影多値画像を分割して部分印影多値画像を生成することが望ましい。   Further, the imprint image generation program of the present invention is characterized in that the image dividing means uses the straight line orthogonal to the straight line obtained by obtaining the intersection where the number of black pixels detected by the imprint frame density detection means is the largest. It is desirable to divide the value image to generate a partial impression multi-value image.

また、本発明の印影画像生成プログラムは、前記画像分割手段が、前記印影中心検出手段によって検出された中心を通る直線によって、前記印影多値画像を分割して部分印影多値画像を生成することが望ましい。   In the imprint image generation program of the present invention, the image dividing unit divides the imprint multivalue image by a straight line passing through the center detected by the imprint center detection unit to generate a partial imprint multivalue image. Is desirable.

また、本発明の一態様によれば、本発明の印影画像生成方法は、印影画像生成装置において実行される印影画像生成方法であって、画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を、予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成し、前記生成された印影二値画像の外周枠を検出し、前記生成された印影二値画像の中心を検出し、前記検出された中心を通る直線と前記検出された外周枠との交点を中心とした所定領域の黒画素数に基づいて、前記検出された外周枠の複数個所の濃淡度を検出し、前記印影多値画像を分割して複数の部分印影多値画像を生成し、前記分割された複数の部分印影多値画像のそれぞれを、前記検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成し、前記生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成することを特徴とする。 Further, according to one aspect of the present invention, the imprint image generation method of the present invention is an imprint image generation method executed in an imprint image generation apparatus, wherein a seal stamp stamped on a medium read by an image reading apparatus is used. The imprinted multi-valued image is binarized using a predetermined first binarization threshold value to generate an imprinted binary image, an outer peripheral frame of the generated imprinted binary image is detected, and the generated A plurality of the detected outer peripheral frames are detected on the basis of the number of black pixels in a predetermined area centered on an intersection between the detected straight line and the detected outer peripheral frame. Detecting the intensity of the location, dividing the impression multi-value image to generate a plurality of partial impression multi-value images, and each of the divided partial impression multi-value images to the detected intensity Based on a second binarization threshold different from the first binarization threshold By binarizing it was used to generate a plurality of partial imprint binary image, and generating one composite binary image by combining a plurality of partial imprint binary image that is generated.

また、本発明の一態様によれば、本発明の印影画像生成装置は、印影画像生成装置において、画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を取得する印影多値画像取得部と、前記印影多値画像取得部によって取得された印影多値画像を予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する第1の二値化部と、前記第1の二値化部によって生成された印影二値画像の外周枠を検出する印影枠検出部と、前記第1の二値化部によって生成された印影二値画像の中心を検出する印影中心検出部と、前記印影中心検出部によって検出された中心を通る直線と前記印影枠検出部によって検出された外周枠との交点を中心とした所定領域の黒画素数に基づいて、前記印影枠検出部によって検出された外周枠の複数個所の濃淡度を検出する印影枠濃淡検出部と、前記印影多値画像を分割して複数の部分印影多値画像を生成する画像分割部と、前記画像分割部によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出部によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する第2の二値化部と、前記第2の二値化部によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する画像合成部とを備えることを特徴とする。 Further, according to one aspect of the present invention, an imprint image generation apparatus according to the present invention is an imprint image multi-apparatus that acquires an imprint multi-value image of a seal stamped on a medium read by an image reading apparatus in the imprint image generation apparatus. A first binary that generates an imprint binary image by binarizing the image multi-value image acquired by the image acquisition unit and the imprint multi-value image acquisition unit using a predetermined first binarization threshold value An imprinting unit, an imprinted frame detecting unit for detecting an outer frame of the imprinted binary image generated by the first binarizing unit, and a center of the imprinted binary image generated by the first binarizing unit Based on the number of black pixels in a predetermined region centered on the intersection of the straight line passing through the center detected by the imprint center detecting unit and the outer peripheral frame detected by the imprint frame detecting unit. a plurality of outer peripheral frame detected by the seal impression frame detector An imprint frame density detecting unit for detecting the intensity of the place, an image dividing unit for dividing the impression multi-valued image to generate a plurality of partial imprinted multi-valued images, and a plurality of partial impressions divided by the image dividing unit Each of the multi-valued images is binarized using a second binarization threshold different from the first binarization threshold based on the shade detected by the imprint frame shade detection unit, and a plurality of images A second binarization unit that generates a partial imprint binary image and an image that generates a single composite binary image by combining a plurality of partial imprint binary images generated by the second binarization unit And a combining unit.

本発明によれば、印影の濃淡に偏りがある印影画像の濃淡を自動補正し、印影画像全体で均一な二値化を実現することができる、という効果を奏する。   According to the present invention, there is an effect that it is possible to automatically correct the density of an imprint image in which the density of the imprint is uneven and to realize uniform binarization in the entire imprint image.

濃淡の偏った印影を二値化する際の問題点を説明するための図である。It is a figure for demonstrating the problem at the time of binarizing the impression stamp with which the shading was biased. 本実施の形態の概要を説明するための図である。It is a figure for demonstrating the outline | summary of this Embodiment. 本実施の形態における印影制御装置を備えるシステム構成図である。It is a system block diagram provided with the imprint control apparatus in this Embodiment. 本実施の形態における印影制御装置のハードウェア構成図である。It is a hardware block diagram of the imprint control apparatus in this Embodiment. 本実施の形態における印影画像生成装置の機能ブロック図である。It is a functional block diagram of an imprint image generating device in this embodiment. 印影二値画像の部分領域分割を示す図である。It is a figure which shows the partial area | region division | segmentation of an imprint binary image. 外周黒画素率を説明するための図(その1)である。It is FIG. (1) for demonstrating a peripheral black pixel rate. 外周黒画素率を説明するための図(その2)である。It is FIG. (2) for demonstrating a peripheral black pixel rate. 外周黒画素率及び外周黒画素率の差の一覧を例示するテーブルを示す図である。It is a figure which shows the table which illustrates the list of the difference of an outer periphery black pixel rate and an outer periphery black pixel rate. 印影多値画像の分割例を示す図(その1)である。It is a figure (the 1) which shows the example of a division | segmentation of an imprint multi-value image. 印影多値画像の分割例を示す図(その2)である。It is FIG. (2) which shows the example of a division | segmentation of an imprint multi-value image. 印影画像生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of an imprint image production | generation process. 二値化パラメタテーブルの例を示す図である。It is a figure which shows the example of a binarization parameter table. サブルーチン「印影情報検出処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of a subroutine "imprinting information detection process." 印影情報テーブルの例を示す図である。It is a figure which shows the example of an imprint information table. 第1実施例におけるサブルーチン「印影濃淡検出処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "imprint shadow detection process" in 1st Example. サブルーチン「外周黒画素算出処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of a subroutine "outer periphery black pixel calculation process". 第1実施例における環境定義テーブルの例を示す図である。It is a figure which shows the example of the environment definition table in 1st Example. 外周黒画素率テーブルの例を示す図である。It is a figure which shows the example of an outer periphery black pixel rate table. 第1実施例におけるサブルーチン「濃淡補正判断処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "shading correction judgment process" in 1st Example. 外周黒画素率差テーブルの例を示す図である。It is a figure which shows the example of an outer periphery black pixel rate difference table. 第1実施例におけるサブルーチン「印影多値画像分割処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "imprinted multi-value image division | segmentation process" in 1st Example. 印影分割イメージテーブルの例を示す図である。It is a figure which shows the example of an imprint division | segmentation image table. 第1実施例におけるサブルーチン「分割画像二値化処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "divided image binarization process" in 1st Example. 補正二値化パラメタテーブルの例を示す図である。It is a figure which shows the example of a correction | amendment binarization parameter table. 二値化イメージテーブルの例を示す図である。It is a figure which shows the example of a binarization image table. 外周幅の算出を説明するための図である。It is a figure for demonstrating calculation of an outer periphery width | variety. 外周幅及びその差の算出結果を示す図であるIt is a figure which shows the calculation result of an outer periphery width | variety and its difference. 印鑑の文字の一部を含んだ外周幅の算出を説明するための図である。It is a figure for demonstrating calculation of the outer periphery width | variety containing a part of character of a seal stamp. 補正後の外周幅及びその差の算出結果を示す図である。It is a figure which shows the outer peripheral width after correction | amendment, and the calculation result of the difference. 第2実施例におけるサブルーチン「印影濃淡検出処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "imprint shadow detection process" in 2nd Example. サブルーチン「エッジデータ抽出処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of a subroutine "edge data extraction process." エッジデータテーブルの例を示す図である。It is a figure which shows the example of an edge data table. サブルーチン「外周幅算出処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of a subroutine "outer periphery width calculation process." 第2実施例における環境定義テーブルの例を示す図である。It is a figure which shows the example of the environment definition table in 2nd Example. 外周幅テーブルの例を示す図である。It is a figure which shows the example of an outer periphery width table. 第2実施例におけるサブルーチン「濃淡補正判断処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "shading correction judgment process" in 2nd Example. 外周幅差テーブルの例を示す図である。It is a figure which shows the example of an outer periphery width difference table. 第2実施例におけるサブルーチン「印影多値画像分割処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "imprinted multi-valued image division | segmentation process" in 2nd Example. 第2実施例におけるサブルーチン「分割画像二値化処理」の流れを示すフローチャートである。It is a flowchart which shows the flow of the subroutine "divided image binarization process" in 2nd Example. 印影登録装置の表示画面例である。It is an example of a display screen of an imprint registration apparatus. 濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その1)である。It is a display screen example (part 1) of an imprint registration apparatus that displays a message indicating that density correction has been performed. 濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その2)である。It is a display screen example (part 2) of the seal imprint registration apparatus that displays a message indicating that density correction has been performed. 濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その3)である。It is a display screen example (part 3) of the seal imprint registration apparatus that displays a message indicating that the shading correction has been performed. 濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その4)である。It is a display screen example (the 4) of the seal imprint registration apparatus which displays the message which shows that the shading correction was performed. 印影照合装置の表示画面例である。It is an example of a display screen of an imprint verification apparatus. 濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その1)である。It is a display screen example (the 1) of the seal impression collation apparatus which displays the message which shows that the shading correction was performed. 濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その2)である。It is a display screen example (the 2) of the stamp collation apparatus which displays the message which shows that the shading correction was performed. 濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その3)である。It is a display screen example (the 3) of the stamp collation apparatus which displays the message which shows that the shading correction was performed. 濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その4)である。It is a display screen example (the 4) of the seal stamp collation apparatus which displays the message which shows that the shading correction was performed.

以下、本発明の実施の形態について、図面を参照しながら詳細に説明する。
図2は、本実施の形態の概要を説明するための図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 2 is a diagram for explaining the outline of the present embodiment.

図2において、(A)の画像は、画像読取装置で読み取った多値の印影画像である。この(A)の印影画像は、その濃淡が偏っている。そこで、濃淡度に従って(A)の印影画像を、例えば分割領域21a、21b、21cで分割する。分割領域21aの分割画像は、比較的濃い画像であり、分割領域21bの分割画像は、中程度の画像、分割領域21cの分割画像は、比較的薄い(淡い)画像である。   In FIG. 2, an image (A) is a multi-value imprint image read by an image reading apparatus. The imprint image of (A) is unevenly shaded. Therefore, the imprinted image of (A) is divided by, for example, the divided areas 21a, 21b, and 21c according to the shade. The divided image of the divided area 21a is a relatively dark image, the divided image of the divided area 21b is a medium image, and the divided image of the divided area 21c is a relatively thin (light) image.

そして、その濃淡度に応じた二値化閾値を用いてそれぞれの分割画像を二値化する。すなわち、比較的濃い画像である分割領域21aの分割画像については、所定の二値化閾値よりも大きい値の二値化閾値を用いて二値化する。その結果を(B)に示す。中程度の画像である分割領域21bの分割画像については、所定の二値化閾値と同程度の二値化閾値を用いて二値化する。その結果を(C)に示す。比較的薄い画像である分割領域21cの分割画像については、所定の二値化閾値よりも小さい値の二値化閾値を用いて二値化する。その結果を(D)に示す。   Then, each divided image is binarized using a binarization threshold value corresponding to the intensity. That is, the divided image of the divided region 21a, which is a relatively dark image, is binarized using a binarization threshold value that is larger than a predetermined binarization threshold value. The results are shown in (B). The divided image of the divided region 21b, which is an intermediate image, is binarized using a binarization threshold that is approximately the same as a predetermined binarization threshold. The result is shown in (C). The divided image of the divided region 21c, which is a relatively thin image, is binarized using a binarization threshold value that is smaller than a predetermined binarization threshold value. The result is shown in (D).

次に、これら二値化された分割画像を結合することで、(E)に示すように、全体で均一に二値化された印影画像を生成する。   Next, by combining these binarized divided images, an imprint image binarized uniformly as a whole is generated as shown in (E).

図3は、本実施の形態における印影制御装置を備えるシステム構成図である。
図3において、印影制御システム30は、印影制御装置40、印影制御装置40と接続された画像読取装置50及び印影データベース60を備える。印影制御装置40は、印影画像生成装置41、印影登録装置42及び印影照合装置43を備える。また、印影制御装置40は、表示装置70と一体に接続されている。ここで、本実施の形態の印影制御システム30は、例えば金融機関の届印の登録及び照会などに用いられている。
FIG. 3 is a system configuration diagram including the imprint control apparatus according to the present embodiment.
In FIG. 3, the imprint control system 30 includes an imprint control device 40, an image reading device 50 connected to the imprint control device 40, and an imprint database 60. The imprint control device 40 includes an imprint image generation device 41, an imprint registration device 42, and an imprint collation device 43. The imprint control device 40 is connected integrally with the display device 70. Here, the seal imprint control system 30 according to the present embodiment is used, for example, for registration and inquiry of a registered seal of a financial institution.

印影制御装置40は、例えば、ワークステーション、サーバ、パーソナルコンピュータ等のコンピュータの機能を備えており、印影画像生成処理、印影登録処理及び印影照合処理を実行する。印影画像生成処理は、印影画像生成装置41によって実行される。印影登録処理は、印影登録装置42によって実行される。印影照合処理は、印影照合装置43によって実行される。   The imprint control device 40 has functions of a computer such as a workstation, a server, and a personal computer, for example, and executes an imprint image generation process, an imprint registration process, and an imprint collation process. The seal image generation process is executed by the seal image generation device 41. The seal registration process is executed by the seal registration apparatus 42. The imprint verification process is executed by the imprint verification device 43.

画像読取装置50は、例えば、画像スキャナであり、印鑑の押印により印影が形成された印鑑票等を光学的に読み取り、印影制御装置40に送出する。   The image reading device 50 is, for example, an image scanner, and optically reads a seal stamp or the like on which a seal is formed by stamping the seal, and sends it to the seal control device 40.

印影データベース60は、例えば、ハードディスク装置であり、印影登録装置42の印影登録処理によって登録印影として処理された画像データを口座番号等と対応付けて格納する。   The imprint database 60 is, for example, a hard disk device, and stores image data processed as a registered imprint by the imprint registration processing of the imprint registration device 42 in association with an account number or the like.

表示装置70は、読み込んだ印影、印影データベース60に登録されている印影、印影が関連付けられている顧客番号等、及び照合結果を表示する。   The display device 70 displays the read stamp, the seal registered in the seal database 60, the customer number associated with the seal, and the matching result.

印影画像生成装置41によって実行される印影画像生成処理は、画像読取装置50によって読み取った多値の印影画像を二値化して二値の印影画像を生成する。詳細については、後述する。   The imprint image generation process executed by the imprint image generation apparatus 41 binarizes the multivalued imprint image read by the image reading apparatus 50 to generate a binary imprint image. Details will be described later.

印影登録装置42によって実行される印影登録処理は、印影画像生成処理によって生成された二値の印影画像と、入力された顧客番号(CIF:Customer’s Information Files)、支店の番号である店番、口座の種類である科目、その口座の口座番号等、印鑑に対応する識別情報と対応付けて、印影データベース60に登録する。   The seal registration processing executed by the seal registration apparatus 42 includes a binary seal image generated by the seal image generation process, an input customer number (CIF: Customer's Information Files), a branch number, a store number, and an account The type of subject, the account number of the account, and the like are registered in the seal impression database 60 in association with identification information corresponding to the seal.

印影照合装置43によって実行される印影照合処理は、例えば、入力された顧客番号(CIF)に対応付けられた登録印影を印影データベース60から読み出す。一方、照合するために押印された印影を画像読取装置50で読み取り、印影画像生成装置41によって二値化された印影画像を生成する。そして、これらの2画像を照合する。印影画像の照合は、例えば、印影画素全てにわたる画素単位のパターンマッチングに加え、印影のかすれやにじみも考慮して特徴データを使用する。   In the seal collation processing executed by the seal collation apparatus 43, for example, a registered seal stamp associated with the input customer number (CIF) is read from the seal stamp database 60. On the other hand, an imprint imprinted for collation is read by the image reading device 50, and a binarized imprint image is generated by the imprint image generating device 41. Then, these two images are collated. The verification of the imprint image uses, for example, feature data in consideration of blurring and blurring of the imprint in addition to pattern matching in pixel units over all the imprint pixels.

図4は、本実施の形態における印影制御装置のハードウェア構成図である。
図4において、印影制御装置40は、CPU(Central Processing Unit)401、入力装置402、出力装置403、ROM(Read Only Memory)404、RAM(Random Access Memory)405、インターフェース(I/F)406がバス407に接続されて構成されている。入力装置402は、例えば、キーボード、ジョイスティック、ライトペン、マウス、タッチパッド、タッチパネル、トラックボール等、各種のデータや信号等を入力する。出力装置403は、例えば、LCD(Liquid Cristal Display)等の各種ディスプレイ、プリンタ等、画像やその他の情報を出力する。出力装置403は、上述の表示装置70に対応する。ROM404は、印影制御装置40において実行する処理を実行するプログラムの他、印影制御装置40の各機能を制御し実行するための制御プログラム及びテーブルデータなどを収納する。RAM405は、出力装置403用のフレームバッファや一部のアプリケーションプログラム等を格納する。インターフェース406は、USB(Universal Serial Bus)等のシリアルインターフェースやイーサネット(登録商標)等のパラレルインターフェース等、外部機器と接続するためのユニットである。CPU401は、これらの各部を制御している。
FIG. 4 is a hardware configuration diagram of the imprint control apparatus according to the present embodiment.
In FIG. 4, the imprint control device 40 includes a CPU (Central Processing Unit) 401, an input device 402, an output device 403, a ROM (Read Only Memory) 404, a RAM (Random Access Memory) 405, and an interface (I / F) 406. It is configured to be connected to the bus 407. The input device 402 inputs various data and signals such as a keyboard, a joystick, a light pen, a mouse, a touch pad, a touch panel, and a trackball. The output device 403 outputs images and other information, for example, various displays such as an LCD (Liquid Cristal Display), a printer, and the like. The output device 403 corresponds to the display device 70 described above. The ROM 404 stores a control program and table data for controlling and executing each function of the imprint control device 40 in addition to a program for executing processing executed in the imprint control device 40. The RAM 405 stores a frame buffer for the output device 403, some application programs, and the like. The interface 406 is a unit for connecting to an external device such as a serial interface such as USB (Universal Serial Bus) or a parallel interface such as Ethernet (registered trademark). The CPU 401 controls these units.

図5は、本実施の形態における印影画像生成装置の機能ブロック図である。
図5において、印影画像生成装置41は、印影多値画像取得部411、第1の二値化部412、印影情報検出部413、印影情報検出部413、印影枠濃淡検出部416、画像分割部417、第2の二値化部418及び画像合成部419を備える。そして、印影情報検出部413は、印影枠検出部414及び印影中心検出部415を備える。
FIG. 5 is a functional block diagram of the seal image generation apparatus according to the present embodiment.
In FIG. 5, an imprint image generation device 41 includes an imprint multi-value image acquisition unit 411, a first binarization unit 412, an imprint information detection unit 413, an imprint information detection unit 413, an imprint frame grayscale detection unit 416, and an image division unit. 417, a second binarization unit 418 and an image composition unit 419 are provided. The imprint information detection unit 413 includes an imprint frame detection unit 414 and an imprint center detection unit 415.

印影多値画像取得部411は、画像読取装置50で読み取った媒体上に押印された印鑑の印影多値画像を、印影登録の場合には印影登録装置42から取得し、印影照合の場合には印影照合装置43から取得する。   The seal impression multivalued image acquisition unit 411 acquires the seal stamp multivalue image of the seal stamp stamped on the medium read by the image reading device 50 from the seal stamp registration device 42 in the case of seal registration, and in the case of seal check. Acquired from the seal collation device 43.

第1の二値化部412は、印影多値画像取得部411によって取得された印影多値画像を、予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する。例えば、印影多値画像のそれぞれの画素値が第1の二値化閾値以上の場合には最大値(256階調の場合は255)に変換し、第1の二値化閾値未満の場合には最小値(0)に変換する。   The first binarization unit 412 binarizes the imprint multi-value image acquired by the imprint multi-value image acquisition unit 411 using a predetermined first binarization threshold to generate an imprint binary image. To do. For example, when each pixel value of the seal impression multi-valued image is equal to or greater than the first binarization threshold, it is converted to the maximum value (255 in the case of 256 gradations), and when it is less than the first binarization threshold Converts to the minimum value (0).

印影情報検出部413は、前記第1の二値化部412によって生成された印影二値画像の外周枠及び中心を検出する。すなわち、印影枠検出部414は、前記第1の二値化部412によって生成された印影二値画像の外周枠を検出する。例えば、印影二値画像に対してハフ変換をおこなうことで、印影二値画像から外周枠を抽出する。また、印影中心検出部415は、前記第1の二値化部412によって生成された印影二値画像の中心を検出する。例えば、白画素で囲まれた所定サイズの領域を印影二値画像の領域として認識し、その領域を二等分する垂直方向の直線とその領域を二等分する水平方向の直線との交点を印影二値画像の中心として検出する。白画素で囲まれた所定サイズの領域の代わりに、印影枠検出部414で検出された外周枠で囲まれた領域を用いても良い。なお、印影情報検出部413は、印影枠検出部414による外周枠及び中心の検出、及び印影中心検出部415による中心の検出に限らず、前記第1の二値化部412によって生成された印影二値画像の外周枠及び中心を検出できれば良い。   The imprint information detection unit 413 detects the outer peripheral frame and the center of the imprint binary image generated by the first binarization unit 412. That is, the imprint frame detection unit 414 detects the outer peripheral frame of the imprint binary image generated by the first binarization unit 412. For example, the outer frame is extracted from the imprint binary image by performing Hough transform on the imprint binary image. Also, the seal impression center detection unit 415 detects the center of the seal binary image generated by the first binarization unit 412. For example, an area of a predetermined size surrounded by white pixels is recognized as an imprinted binary image area, and the intersection of a vertical straight line that bisects the area and a horizontal straight line that bisects the area is determined. It is detected as the center of the imprint binary image. Instead of an area of a predetermined size surrounded by white pixels, an area surrounded by an outer peripheral frame detected by the imprint frame detection unit 414 may be used. The imprint information detection unit 413 is not limited to the detection of the outer peripheral frame and the center by the imprint frame detection unit 414 and the detection of the center by the imprint center detection unit 415, but the imprint generated by the first binarization unit 412. It suffices if the outer peripheral frame and center of the binary image can be detected.

印影枠濃淡検出部416は、前記印影枠検出部414によって検出された外周枠の複数個所の濃淡度を検出する。例えば、前記印影中心検出部415によって検出された中心を通る直線と前記印影枠検出部414によって検出された外周枠との交点を中心とした所定の外周領域の黒画素数に基づいて、前記外周枠の濃淡度を検出する。又は、前記印影枠濃淡検出部416は、前記印影中心検出部415によって検出された中心を通る直線と前記印影枠検出部414によって検出された外周枠との交点の前記直線方向の黒画素数、すなわち印影枠幅に基づいて、前記外周枠の濃淡度を検出する。   The imprint frame shade detection unit 416 detects the shades at a plurality of locations on the outer peripheral frame detected by the imprint frame detection unit 414. For example, based on the number of black pixels in a predetermined outer peripheral area centering on the intersection of a straight line passing through the center detected by the imprint center detecting unit 415 and the outer peripheral frame detected by the imprint frame detecting unit 414, Detects the intensity of the frame. Alternatively, the imprint frame density detection unit 416 includes the number of black pixels in the linear direction at the intersection of the straight line passing through the center detected by the imprint center detection unit 415 and the outer frame detected by the imprint frame detection unit 414. That is, the shade of the outer peripheral frame is detected based on the imprint frame width.

画像分割部417は、前記印影多値画像取得部411によって取得された印影多値画像を分割して複数の部分印影多値画像を生成する。例えば、前記印影枠濃淡検出部416によって検出された黒画素数が最多である前記交点を求めた前記直線と直交する直線によって、前記印影多値画像を分割して部分印影多値画像を生成する。又は、前記画像分割部417は、前記印影中心検出部415によって検出された中心を通る直線によって、前記印影多値画像を分割して部分印影多値画像を生成する。   The image dividing unit 417 generates a plurality of partial impression multi-value images by dividing the impression multi-value image acquired by the impression multi-value image acquisition unit 411. For example, the imprint multi-valued image is divided by a straight line orthogonal to the straight line obtained from the intersection where the number of black pixels detected by the imprint frame grayscale detection unit 416 is the largest, thereby generating a partial imprint multi-valued image. . Alternatively, the image dividing unit 417 divides the impression multi-value image by a straight line passing through the center detected by the impression center detection unit 415 to generate a partial impression multi-value image.

第2の二値化部418は、前記画像分割部417によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出部416によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する。例えば、濃淡度の値が高い場合、すなわち濃い場合は、第1の二値化閾値よりも高い値の第2の二値化閾値を用いる。他方、濃淡度の値が低い場合、すなわち薄い場合は、第1の二値化閾値よりも低い値の第2の二値化閾値を用いる。   The second binarization unit 418 determines each of the plurality of partial impression multi-value images divided by the image division unit 417 based on the gray level detected by the imprint frame gray level detection unit 416. Binarization is performed using a second binarization threshold value different from the binarization threshold value, and a plurality of partial impression binary images are generated. For example, when the value of the lightness is high, that is, when the value is dark, the second binarization threshold value higher than the first binarization threshold value is used. On the other hand, when the value of shading is low, that is, when the value is light, the second binarization threshold value lower than the first binarization threshold value is used.

画像合成部419は、前記第2の二値化部418によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する。   The image synthesis unit 419 synthesizes a plurality of partial impression binary images generated by the second binarization unit 418 to generate one synthesized binary image.

次に、上述の印影画像生成装置41が実行する印影画像生成処理の流れについて、本実施の形態における第1の実施例及び第2の実施例を説明する。   Next, a first example and a second example of the present embodiment will be described regarding the flow of the imprint image generation process executed by the above-described imprint image generation apparatus 41.

まず、図6、図7、図8、図9、図10及び図11を用いて、第1の実施例の概要を説明する。   First, the outline of the first embodiment will be described with reference to FIGS. 6, 7, 8, 9, 10, and 11.

図6は、印影二値画像の部分領域分割を示す図である。図7及び図8は、外周黒画素率を説明するための図である。図9は、外周黒画素率及び外周黒画素率の差の一覧を例示するテーブルを示す図である。図10及び図11は、印影多値画像の分割例を示す図である。   FIG. 6 is a diagram showing the partial area division of the imprint binary image. 7 and 8 are diagrams for explaining the peripheral black pixel ratio. FIG. 9 is a table illustrating a list of differences between the peripheral black pixel ratio and the peripheral black pixel ratio. 10 and 11 are diagrams illustrating an example of division of an imprint multi-value image.

まず、既知の印影検出技術により、印影の中心、印影の直径、及び印影のエッジデータを求める。   First, the center of the seal, the diameter of the seal, and the edge data of the seal are obtained by a known seal detection technique.

環境定義の二値化パラメタで二値化した印影イメージを、印影の中心を通る線分でn等分にし、その中心角(360/n)を単位濃淡検出角度とする。   The imprint image binarized with the binarization parameter of the environment definition is divided into n equal parts by a line segment passing through the center of the imprint, and the central angle (360 / n) is set as a unit grayscale detection angle.

図6の例では8等分にしており、単位濃淡検出角度は45度(=360/8)である。
濃淡検出角度毎に印影の中心からの距離が印影の半径である点を算出し、印影の外周上の点の座標を求める。
In the example of FIG. 6, it is divided into eight equal parts, and the unit grayscale detection angle is 45 degrees (= 360/8).
A point whose distance from the center of the imprint is the radius of the imprint is calculated for each density detection angle, and the coordinates of the point on the outer periphery of the imprint are obtained.

外周上の点の座標を中心としたm×mの外周領域について、黒画素率を算出する。図7及び図8の例ではm=7とし、7×7の外周領域を示している。   The black pixel ratio is calculated for an m × m outer peripheral area centered on the coordinates of a point on the outer periphery. In the example of FIGS. 7 and 8, m = 7 and a 7 × 7 outer peripheral area is shown.

ある濃淡検出角度の外周黒画素率とその角度から180度ずらした角度の外周黒画素率の差を算出する。差の算出は、中心角0度以上180度未満の範囲で単位濃淡検出角度毎に行う。   The difference between the peripheral black pixel rate at a certain gray level detection angle and the peripheral black pixel rate at an angle shifted by 180 degrees from the angle is calculated. The difference is calculated for each unit grayscale detection angle in the range of the central angle of 0 degree or more and less than 180 degrees.

黒画素率の差が最大の角度を最大濃淡角度とする。
図9に示すように、この例の場合、0度において黒画素率の差が最大であるため、最大濃淡角度は0度である。
The angle at which the difference in black pixel ratio is the maximum is the maximum gray angle.
As shown in FIG. 9, in the case of this example, since the difference in the black pixel ratio is the maximum at 0 degrees, the maximum shade angle is 0 degrees.

そして、最大濃淡角度における黒画素率の差の絶対値が環境定義の閾値以上であるかを判定する。例えば、閾値25%以上であるかを判定する。   Then, it is determined whether or not the absolute value of the difference in the black pixel ratio at the maximum shading angle is equal to or larger than the environment definition threshold. For example, it is determined whether the threshold is 25% or more.

黒画素率の差の絶対値が環境定義の閾値以上の場合、印影に濃淡があると判定し、濃淡補正処理を実行する。   If the absolute value of the difference in the black pixel ratio is equal to or greater than the environment-defined threshold, it is determined that the imprint has shading, and shading correction processing is executed.

他方、黒画素率の差の絶対値が閾値未満の場合、印影に濃淡がないと判定し濃淡補正処理を実行しない。   On the other hand, if the absolute value of the difference in the black pixel ratio is less than the threshold value, it is determined that there is no shading in the imprint and the shading correction process is not executed.

最大濃淡角度における黒画素率の差の絶対値は49%であり、閾値以上の値であるため、以降の濃淡補正処理を実行する。   Since the absolute value of the difference in the black pixel ratio at the maximum gray angle is 49%, which is a value equal to or larger than the threshold value, the subsequent gray level correction process is executed.

そして、最大濃淡角度と直交する線分で印影イメージをp等分し、印影イメージを濃度毎に分割する。図10の例ではp=3とし、3等分にしている。   Then, the imprint image is divided into p equal parts by a line segment orthogonal to the maximum shading angle, and the imprint image is divided for each density. In the example of FIG. 10, p = 3, and it is divided into three equal parts.

環境定義の二値化パラメタを基準として、部分領域毎に二値化パラメタを補正して二値化を行う。各部分領域の二値化パラメタは最大濃淡角度の外周黒画素率の差をインプットにして補正を行う。部分領域毎に二値化した印影イメージを結合して、均一な二値化イメージを生成する。   Binarization is performed by correcting the binarization parameter for each partial area with reference to the binarization parameter of the environment definition. The binarization parameter of each partial area is corrected using the difference in the peripheral black pixel ratio of the maximum gray angle as an input. A uniform binary image is generated by combining the binarized impression images for each partial area.

この例では説明を簡単にするため、最大濃淡角度に直交する線分のみで分割しているが、図11に示すように、更に最大濃淡角度の線分で分割し、角度毎の黒画素率の差をインプットにして補正を行ってもよい。   In this example, for simplification of explanation, only the line segment orthogonal to the maximum gray angle is divided, but as shown in FIG. 11, the line is further divided by the maximum gray angle line, and the black pixel rate for each angle. Correction may be performed using the difference between the two as an input.

この場合、部分領域1104及び部分領域1106の濃淡補正には、濃淡検出角度0度における黒画素率の差−49%をインプットとして補正する。   In this case, for the density correction of the partial area 1104 and the partial area 1106, the difference of −49% of the black pixel ratio at the density detection angle of 0 degree is corrected as an input.

部分領域1103及び部分領域1107の濃淡補正には、濃淡検出角度45度における黒画素率の差−4%をインプットとして補正する。   For the density correction of the partial area 1103 and the partial area 1107, a black pixel rate difference of −4% at a density detection angle of 45 degrees is corrected as an input.

部分領域1102及び部分領域1108の濃淡補正には、濃淡検出角度90度における黒画素率の差−12%をインプットとして補正する。   For the density correction of the partial area 1102 and the partial area 1108, the difference of −12% in the black pixel rate at the density detection angle of 90 degrees is corrected as an input.

部分領域1101及び部分領域1109の濃淡補正には、濃淡検出角度135度における黒画素率の差27%をインプットとして補正する。   For the density correction of the partial area 1101 and the partial area 1109, the black pixel rate difference of 27% at the density detection angle of 135 degrees is corrected as an input.

次に、図6、図7、図8、図10、図11、図12、図13、図14、図15、図16、図17、図18、図19、図20、図21、図22、図23、図24、図25及び図26を用いて、第1の実施例を詳細に説明する。   Next, FIGS. 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22. The first embodiment will be described in detail with reference to FIGS. 23, 24, 25, and 26. FIG.

図12は、印影画像生成処理の流れを示すフローチャートである。図13は、二値化パラメタテーブルの例を示す図である。   FIG. 12 is a flowchart showing the flow of the seal image generation process. FIG. 13 is a diagram illustrating an example of a binarization parameter table.

第1実施例における印影画像生成処理は、印影登録装置42が登録印影を均一に二値化する場合に、印影登録装置42からの指示で印影画像生成装置41が実行する。また、印影照合装置43が被照合印影を均一に二値化する場合に、印影照合装置43からの指示で印影画像生成装置41が実行する。   The imprint image generation processing in the first embodiment is executed by the imprint image generation device 41 in response to an instruction from the imprint registration device 42 when the imprint registration device 42 binarizes the registered imprint uniformly. In addition, when the imprint collation device 43 binarizes the collated imprint uniformly, the imprint image generation device 41 executes in response to an instruction from the imprint collation device 43.

まず、図12のステップS1201において、印影多値画像取得部411が、画像読取装置50で読み取った媒体上に押印された印鑑の印影多値画像を、印影登録の場合には印影登録装置42から取得し、印影照合の場合には印影照合装置43から取得する。   First, in step S1201 of FIG. 12, the stamp multi-valued image acquisition unit 411 reads the seal stamp multi-value image stamped on the medium read by the image reading device 50 from the seal stamp registration device 42 in the case of stamp registration. In the case of imprint verification, it is acquired from the imprint verification device 43.

ステップS1202において、第1の二値化部412が、図13に例示するような二値化パラメタテーブルより二値化パラメタを取得し、ステップS1201で取得した印影多値画像を、二値化パラメタを用いて二値化して印影二値画像を生成する。例えば、256階調の印影多値画像の各画素を、二値化パラメタ(パラメタ1)の値「128」(二値化閾値)を用いて、白画素又は黒画素から構成される印影二値画像を生成する。二値化パラメタテーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S1202, the first binarization unit 412 acquires the binarization parameter from the binarization parameter table as illustrated in FIG. 13, and the imprint multi-value image acquired in step S1201 is converted into the binarization parameter. Is used to generate a seal impression binary image. For example, each pixel of a 256-gradation imprint multi-value image is formed by using a binarization parameter (parameter 1) value “128” (binarization threshold value) to form an imprint binary composed of white pixels or black pixels. Generate an image. The binarization parameter table is stored in, for example, the ROM 404 or an external recording medium.

ステップS1203において、サブルーチン「印影情報検出処理」を実行し、ステップS1202で二値化した印影二値画像の中心及び外周枠を検出する。「印影情報検出処理」の詳細については、図14及び図15を用いて後述する。   In step S1203, the subroutine “imprint information detection processing” is executed to detect the center and outer peripheral frame of the binary image imprint binarized in step S1202. Details of the “imprint information detection process” will be described later with reference to FIGS. 14 and 15.

ステップS1204において、サブルーチン「印影濃淡検出処理」を実行し、ステップS1202で二値化した印影二値画像の外周枠の複数個所の濃淡度を検出する。「印影濃淡検出処理」の詳細については、図6、図7、図8、図16、図17、図18、図19、図20及び図21を用いて後述する。   In step S1204, the subroutine “imprint density detection processing” is executed to detect the density of a plurality of locations in the outer peripheral frame of the binary image imprint binarized in step S1202. Details of the “imprint density detection process” will be described later with reference to FIGS. 6, 7, 8, 16, 17, 18, 19, 20, and 21.

ステップS1205において、後述するサブルーチン「印影濃淡検出処理」で印影の濃淡の補正が必要であると判断されたか否かを判定する。すなわち、図20を用いて後述する「濃淡補正判断処理」で設定された濃淡補正有無フラグFが、補正が必要であることを示す「TRUE」であるか、補正が不要であることを示す「FALSE」であるかを判定する。濃淡補正有無フラグFが「TRUE」であれば(ステップS1205:YES)、ステップS1206に進み、「FALSE」であれば(ステップS1205:NO)、印影画像生成処理を終了する。   In step S1205, it is determined whether or not it has been determined in a subroutine “imprint density detection process” described later that the density of the impression is necessary. That is, the shading correction presence / absence flag F set in the “shading correction determination process” to be described later with reference to FIG. 20 is “TRUE” indicating that correction is necessary, or “correction is not necessary”. It is determined whether it is “FALSE”. If the density correction presence / absence flag F is “TRUE” (step S1205: YES), the process proceeds to step S1206, and if it is “FALSE” (step S1205: NO), the imprint image generation process ends.

ステップS1206において、サブルーチン「印影多値画像分割処理」を実行し、ステップS1201で取得した印影多値画像を分割して複数の部分印影多値画像を生成する。「印影多値画像分割処理」の詳細については、図10、図11、図22及び図23を用いて後述する。   In step S1206, the subroutine “imprinted multi-valued image dividing process” is executed to divide the imprinted multi-valued image acquired in step S1201 to generate a plurality of partial imprinted multi-valued images. Details of the “imprint multi-valued image dividing process” will be described later with reference to FIGS. 10, 11, 22, and 23.

ステップS1207において、サブルーチン「分割画像二値化処理」を実行し、ステップS1206で分割した複数の部分印影多値画像のそれぞれを、ステップS1204で検出した濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する。「分割画像二値化処理」の詳細については、図24、図25及び図26を用いて後述する。   In step S1207, a subroutine “divided image binarization process” is executed, and the first binary data is determined for each of the plurality of partial impression multivalued images divided in step S1206 based on the gray level detected in step S1204. Binarization is performed using a second binarization threshold different from the binarization threshold to generate a plurality of partial imprint binary images. Details of the “divided image binarization process” will be described later with reference to FIGS. 24, 25, and 26.

そして、ステップS1208において、画像合成部419が、ステップS1207で生成した複数の部分印影二値画像を合成して1つの合成二値画像を生成する。例えば、後述する図24のステップS2409で記録した部分印影二値画像を、印刷分割イメージテーブル(図26参照)から読み出して合成し、「印影画像生成処理」を終了する。二値化イメージテーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S1208, the image composition unit 419 generates a single composite binary image by combining the plurality of partial impression binary images generated in step S1207. For example, the partial imprint binary image recorded in step S2409 of FIG. 24 described later is read out from the print divided image table (see FIG. 26) and synthesized, and the “imprint image generation process” is completed. The binarized image table is stored in, for example, the ROM 404 or an external recording medium.

これにより、印影の濃淡に偏りがある印影画像の濃淡を補正し、印影画像全体で均一な二値化を実現することができる。   As a result, it is possible to correct the shading of the imprint image with a bias in the imprint density, and to realize uniform binarization in the entire imprint image.

次に、サブルーチン「印影情報検出処理」(ステップS1203)、「印影濃淡検出処理」(ステップS1204)、「印影多値画像分割処理」(ステップS1206)及び「分割画像二値化処理」(ステップS1207)について、詳細に説明する。   Next, subroutines “imprint information detection processing” (step S1203), “imprint density detection processing” (step S1204), “imprint multi-value image division processing” (step S1206), and “divided image binarization processing” (step S1207). ) Will be described in detail.

図14は、サブルーチン「印影情報検出処理」の流れを示すフローチャートである。図15は、印影情報テーブルの例を示す図である。   FIG. 14 is a flowchart showing a flow of a subroutine “imprint information detection process”. FIG. 15 is a diagram illustrating an example of an imprint information table.

サブルーチン「印影情報検出処理」は、図12のステップS1202で二値化した印影二値画像の中心及び外周枠を検出する。   The subroutine “imprint information detection processing” detects the center and outer peripheral frame of the binary image imprint binarized in step S1202 of FIG.

まず、図14のステップS1401において、図12のステップS1202で生成した印影二値画像に対してラベリングを実行し、求めたラベル数を変数Rに代入する。ラベリングは、二値化画像処理された画像において、黒の部分(又は白の部分)が連続した画素に同じ番号を割り振る従来技術であり、同じ番号ごとの面積(画素数)や幅、高さなどの特徴量を求めて欠陥検査や分類処理などに用いる。ここでは、印影二値画像の外枠の検出に用いる。例えば、「中澤」という文字の周囲を円状の枠で囲った印鑑の印影の場合、「中」、「澤のさんずいの1画目」、「澤のさんずいの2画目」、「澤のさんずいの3画目」、「澤の旁部分」、「枠部分」の6つにラベリングされることが想定される。   First, in step S1401 in FIG. 14, labeling is executed on the imprint binary image generated in step S1202 in FIG. 12, and the obtained number of labels is substituted into a variable R. Labeling is a conventional technique that assigns the same number to pixels in which black portions (or white portions) are continuous in an image that has been binarized, and the area (number of pixels), width, and height for each same number. Are used for defect inspection and classification processing. Here, it is used for detection of the outer frame of the imprint binary image. For example, in the case of an imprint of a seal that encloses the word “Nakazawa” with a circular frame, “Middle”, “First stroke of Sawa no Suizu”, “Second stroke of Sawa no Suizu”, “ It is assumed that the label will be labeled as "Sansui's 3rd stroke", "Sawa no Sakai", and "Frame".

ステップS1404乃至ステップS1406をラベル数だけ繰返し実行するために、ステップS1402において、カウンタ変数nに1を代入し、ステップS1403において、ラベル数Rがn以上か否かを判断する。   In order to repeatedly execute steps S1404 to S1406 for the number of labels, 1 is substituted into the counter variable n in step S1402, and in step S1403, it is determined whether or not the number of labels R is n or more.

Rがn以上であると判断された場合(ステップS1403:YES)は、ステップS1404において、n番目のラベル番号が付された黒画素(又は白画素)全てを含む最小の円を求める。   If it is determined that R is greater than or equal to n (step S1403: YES), in step S1404, the smallest circle including all the black pixels (or white pixels) with the nth label number is obtained.

ステップS1405において、ステップS1404で求めた円の中心及び半径を算出する。   In step S1405, the center and radius of the circle obtained in step S1404 are calculated.

ステップS1406において、ステップS1405で算出した円の中心と半径から、その円周上の黒画素数を求め、その円周(の長さ)に対する黒画素数の割合としての印影度Xを算出する。ここで、印影度とは、その画像が印影枠である度合いを示す。   In step S1406, the number of black pixels on the circumference is obtained from the center and radius of the circle calculated in step S1405, and the imprint degree X is calculated as a ratio of the number of black pixels to the circumference (length). Here, the imprinting degree indicates the degree to which the image is an imprinting frame.

そして、ステップS1407において、nの値を1インクリメント(変数の値を1加算)して、ステップS1403に戻る。   In step S1407, the value of n is incremented by 1 (the variable value is incremented by 1), and the process returns to step S1403.

ステップS1403でRがn以上でないと判断された場合(ステップS1403:NO)は、ステップS1408において、ステップS1406で算出した印影度Xのうち最大値の印影度を算出したラベル番号の円を、印影枠として検出する。   If it is determined in step S1403 that R is not greater than or equal to n (step S1403: NO), in step S1408, the circle with the label number for which the maximum imprinting degree is calculated among the imprinting degrees X calculated in step S1406 is imprinted. Detect as a frame.

そして、ステップS1409において、ステップS1408で検出した印影枠の中心座標O(xo,yo)と、半径roを、図15に示すような印影情報テーブルに記録する。印影情報テーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S1409, the center coordinates O (xo, yo) of the imprint frame detected in step S1408 and the radius ro are recorded in the imprint information table as shown in FIG. The imprint information table is stored in, for example, the ROM 404 or an external recording medium.

サブルーチン「印影情報検出処理」を終了することにより、図12のステップS1203を終了する。   When the subroutine “imprint information detection processing” is terminated, step S1203 in FIG. 12 is terminated.

なお、サブルーチン「印影情報検出処理」は、上述の処理に限らず、図12のステップS1202で二値化した印影二値画像の中心及び外周枠を検出すれば良い。例えば、印影枠検出部414が、図12のステップS1202で二値化した印影二値画像に対してハフ変換をおこなうことで、印影二値画像から外周枠を抽出し、印影中心検出部415が、白画素で囲まれた所定サイズの領域を印影二値画像の領域として認識し、その領域を二等分する垂直方向の直線とその領域を二等分する水平方向の直線との交点を、印影二値画像の中心として検出しても良い。   Note that the subroutine “imprint information detection process” is not limited to the above-described process, and it is only necessary to detect the center and outer peripheral frame of the binary image imprint binarized in step S1202 of FIG. For example, the imprint frame detection unit 414 extracts the outer frame from the imprint binary image by performing the Hough transform on the binarized image that has been binarized in step S1202 of FIG. , A region of a predetermined size surrounded by white pixels is recognized as a region of the imprint binary image, and an intersection of a vertical straight line that bisects the region and a horizontal straight line that bisects the region, You may detect as the center of an imprint binary image.

図16は、第1実施例におけるサブルーチン「印影濃淡検出処理」の流れを示すフローチャートである。   FIG. 16 is a flowchart showing the flow of the subroutine “imprint density detection process” in the first embodiment.

図16のサブルーチン「印影濃淡検出処理」は、図12のステップS1202で二値化し、図14のサブルーチン「印影情報検出処理」で中心及び外周枠を検出した印影二値画像の外周枠の濃淡度を検出する。例えば、ステップS1601において、サブルーチン「外周黒画素算出処理」を実行し、図14を用いて説明したサブルーチン「印影情報検出処理」で検出した印影枠の中心座標O(xo,yo)を通る直線と外周枠との交点を中心とした所定サイズの外周領域の黒画素数に基づいて、外周枠の濃淡度を検出する。そして、ステップS1602において、サブルーチン「濃淡補正判断処理」を実行し、検出した濃淡度に基づいて、印影の濃淡の補正が必要であるか否かを判断する。   The subroutine “imprint density detection process” in FIG. 16 is binarized in step S1202 in FIG. 12, and the density of the outer frame of the imprint binary image in which the center and outer frame are detected in the subroutine “imprint information detection process” in FIG. Is detected. For example, in step S1601, a subroutine “peripheral black pixel calculation process” is executed, and a straight line passing through the center coordinates O (xo, yo) of the imprint frame detected by the subroutine “imprint information detection process” described with reference to FIG. Based on the number of black pixels in the outer peripheral area of a predetermined size centered on the intersection with the outer peripheral frame, the density of the outer peripheral frame is detected. In step S1602, a subroutine “shading correction determination processing” is executed, and it is determined whether or not the shading correction of the seal is necessary based on the detected lightness.

サブルーチン「印影濃淡検出処理」を終了することにより、図12のステップS1204を終了する。   When the subroutine “imprint density detection processing” is terminated, step S1204 in FIG. 12 is terminated.

次に、サブルーチン「外周黒画素算出処理」、及び「濃淡補正判断処理」について詳細に説明する。   Next, the subroutines “peripheral black pixel calculation process” and “shading correction determination process” will be described in detail.

図17は、サブルーチン「外周黒画素算出処理」の流れを示すフローチャートである。図18は、第1実施例における環境定義テーブルの例を示す図である。図19は、外周黒画素率テーブルの例を示す図である。   FIG. 17 is a flowchart showing the flow of the subroutine “peripheral black pixel calculation process”. FIG. 18 is a diagram illustrating an example of the environment definition table in the first embodiment. FIG. 19 is a diagram illustrating an example of the peripheral black pixel rate table.

まず、図17のステップS1701において、図18に示すような環境定義テーブルから、中心角分割数n及び外周黒画素率算出領域サイズmを取得する。環境定義テーブルは、例えば、ROM404や外部記録媒体等に格納されている。中心角分割数nは、「8」、「16」、「32」、「64」等が好ましく、例えば、中心角分割数nとして「8」を取得する。また、外周黒画素率算出領域サイズmは、「5」、「7」、「9」等が好ましく、例えば、外周黒画素率算出領域サイズmとして「7」を取得する。   First, in step S1701 in FIG. 17, the center angle division number n and the peripheral black pixel rate calculation area size m are acquired from the environment definition table as shown in FIG. The environment definition table is stored in, for example, the ROM 404 or an external recording medium. The central angle division number n is preferably “8”, “16”, “32”, “64”, etc. For example, “8” is acquired as the central angle division number n. Also, the outer peripheral black pixel rate calculation area size m is preferably “5”, “7”, “9”, etc. For example, “7” is acquired as the outer peripheral black pixel ratio calculation area size m.

ステップS1702において、360度を中心角分割数nで除算し、単位濃淡検出角度αを算出(α=360/n)する。中心角分割数nが8であれば、単位濃淡検出角度αは45度となる。単位濃淡検出角度αは、図6に示すように、印影二値画像の濃淡を検出するために、印影二値画像を部分領域に分割する角度である。   In step S1702, 360 degrees is divided by the center angle division number n to calculate a unit grayscale detection angle α (α = 360 / n). When the center angle division number n is 8, the unit grayscale detection angle α is 45 degrees. As shown in FIG. 6, the unit grayscale detection angle α is an angle at which the imprint binary image is divided into partial areas in order to detect the grayscale of the imprint binary image.

そして、図14のステップS1409で記録した図15に示すような印影情報テーブルから、ステップS1703において、印影の中心座標O(xo,yo)を取得し、ステップS1704において、印影の半径roを取得する。   Then, in step S1703, the center coordinates O (xo, yo) of the imprint are acquired from the imprint information table as shown in FIG. 15 recorded in step S1409 of FIG. 14, and the radius of the imprint is acquired in step S1704. .

ステップS1706乃至ステップS1721を中心角分割数だけ繰返し実行するために、ステップS1705において、カウンタ変数iに0を代入し、ステップS1706において、中心角分割数nがiより大きいか否かを判断する。   In order to repeatedly execute Steps S1706 to S1721 for the center angle division number, 0 is substituted into the counter variable i in Step S1705, and in Step S1706, it is determined whether or not the center angle division number n is larger than i.

ステップS1706で中心角分割数nがiより大きいと判断された場合(ステップS1706:YES)、ステップS1707において、印影枠の中心座標O(xo,yo)を通る直線と外周枠との交点を中心とした所定サイズの外周領域の黒画素数をカウントするための外周黒画素カウンタziに、初期値0を代入する。   When it is determined in step S1706 that the center angle division number n is larger than i (step S1706: YES), in step S1707, the intersection point between the straight line passing through the center coordinates O (xo, yo) of the imprint frame and the outer peripheral frame is the center. The initial value 0 is substituted into the peripheral black pixel counter zi for counting the number of black pixels in the peripheral area of the predetermined size.

ステップS1708において、xi=xo+ro・cos(α×i)、yi=yo+ro・sin(α×i)を算出し、印影二値画像の印影枠上であって、単位濃淡検出角度α毎の画素である外周黒画素率算出中心座標Bi(xi,xi)を求める。中心角分割数nが8の場合、45度毎に8つの外周黒画素率算出中心座標Bi(xi,xi)が求められる。   In step S 1708, xi = xo + ro · cos (α × i) and yi = yo + ro · sin (α × i) are calculated, and the pixel is on the imprint frame of the imprint binary image at the unit grayscale detection angle α. A certain peripheral black pixel ratio calculation center coordinate Bi (xi, xi) is obtained. When the center angle division number n is 8, eight peripheral black pixel rate calculation center coordinates Bi (xi, xi) are obtained every 45 degrees.

8つの外周黒画素率算出中心座標Bi(xi,xi)毎に、ステップS1711乃至ステップS1717を外周黒画素率算出領域サイズだけ繰返し実行するために、ステップS1709において、カウンタ変数jに0を代入し、ステップS1710において、外周黒画素率算出領域サイズmがjより大きいか否かを判断する。   In order to repeatedly execute steps S1711 to S1717 for the outer peripheral black pixel rate calculation area size for each of the eight outer peripheral black pixel rate calculation center coordinates Bi (xi, xi), 0 is substituted into the counter variable j in step S1709. In step S1710, it is determined whether or not the peripheral black pixel rate calculation area size m is larger than j.

ステップS1710で外周黒画素率算出領域サイズmがjより大きいと判断された場合(ステップS1710:YES)、ステップS1711において、xj=xi−(m−1)/2+jを算出し、外周黒画素判定X座標xjを求める。   When it is determined in step S1710 that the peripheral black pixel rate calculation area size m is larger than j (step S1710: YES), in step S1711, xj = xi− (m−1) / 2 + j is calculated to determine the peripheral black pixel. The X coordinate xj is obtained.

ステップS1713乃至ステップS1716を外周黒画素率算出領域サイズだけ繰返し実行するために、ステップS1712において、カウンタ変数kに0を代入し、ステップS1713において、外周黒画素率算出領域サイズmがkより大きいか否かを判断する。   In order to repeatedly execute steps S1713 to S1716 for the outer peripheral black pixel rate calculation region size, 0 is substituted into the counter variable k in step S1712, and in step S1713, is the outer black pixel rate calculation region size m larger than k? Judge whether or not.

ステップS1713で外周黒画素率算出領域サイズmがkより大きいと判断された場合(ステップS1713:YES)、ステップS1714において、yk=yi−(m−1)/2+kを算出し、外周黒画素判定、Y座標ykを求める。   If it is determined in step S1713 that the peripheral black pixel rate calculation area size m is larger than k (step S1713: YES), yk = yi− (m−1) / 2 + k is calculated in step S1714 to determine the peripheral black pixel. Y coordinate yk is obtained.

そして、ステップS1715において、座標(xj,yk)が黒画素か否かを判定する。   In step S1715, it is determined whether or not the coordinates (xj, yk) are black pixels.

ステップS1715で座標(xj,yk)が黒画素であれば(ステップS1715:YES)、ステップS1716において、外周黒画素カウンタziを1インクリメントして、ステップS1717に進む。他方、ステップS1715で座標(xj,yk)が黒画素でなければ(ステップS1715:NO)、ステップS1717に進む。   If the coordinate (xj, yk) is a black pixel in step S1715 (step S1715: YES), the outer peripheral black pixel counter zi is incremented by 1 in step S1716, and the process proceeds to step S1717. On the other hand, if the coordinate (xj, yk) is not a black pixel in step S1715 (step S1715: NO), the process proceeds to step S1717.

そして、ステップS1717において、kの値を1インクリメントして、ステップS1713に戻る。   In step S1717, the value of k is incremented by 1, and the process returns to step S1713.

ステップS1713で外周黒画素率算出領域サイズmがkより大きくないと判断された場合(ステップS1713:NO)、ステップS1718において、jの値を1インクリメントして、ステップS1710に戻る。   If it is determined in step S1713 that the peripheral black pixel rate calculation area size m is not larger than k (step S1713: NO), the value of j is incremented by 1 in step S1718, and the process returns to step S1710.

ステップS1710で外周黒画素率算出領域サイズmがjより大きくないと判断された場合(ステップS1710:NO)、ステップS1719において、βi=100×zi/(m×m) を算出し、外周黒画素率βiを求める。例えば、図7に示した例では、外周黒画素率算出中心座標B0(x0,x0)701を中心とした外周領域711には、黒画素が11個であるので、外周黒画素率β0は22%となり、外周黒画素率算出中心座標B4(x4,x4)702を中心とした外周領域712には、黒画素が35個であるので、外周黒画素率β4は71%となる。また、図8に示した例では、外周黒画素率算出中心座標B3(x3,x3)801を中心とした外周領域811には、黒画素が28個であるので、外周黒画素率β3は57%となり、外周黒画素率算出中心座標B7(x7,x7)802を中心とした外周領域812には、黒画素が15個であるので、外周黒画素率β7は30%となる。   If it is determined in step S1710 that the peripheral black pixel rate calculation area size m is not larger than j (step S1710: NO), βi = 100 × zi / (m × m) is calculated in step S1719, and the peripheral black pixel is calculated. The rate βi is obtained. For example, in the example shown in FIG. 7, since there are 11 black pixels in the outer peripheral area 711 centered on the outer peripheral black pixel ratio calculation center coordinate B0 (x0, x0) 701, the outer peripheral black pixel ratio β0 is 22 Since there are 35 black pixels in the outer peripheral area 712 centered on the outer peripheral black pixel ratio calculation center coordinate B4 (x4, x4) 702, the outer peripheral black pixel ratio β4 is 71%. In the example shown in FIG. 8, there are 28 black pixels in the peripheral area 811 centered on the peripheral black pixel ratio calculation center coordinate B3 (x3, x3) 801, and therefore the peripheral black pixel ratio β3 is 57. Since there are 15 black pixels in the outer peripheral region 812 centered on the outer peripheral black pixel rate calculation center coordinate B7 (x7, x7) 802, the outer peripheral black pixel rate β7 is 30%.

ステップS1720において、ステップSで算出した外周黒画素率βiを、図19に示すような外周黒画素率テーブルに記録する。外周黒画素率テーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S1720, the peripheral black pixel rate βi calculated in step S is recorded in the peripheral black pixel rate table as shown in FIG. The peripheral black pixel rate table is stored in, for example, the ROM 404 or an external recording medium.

そして、ステップS1721において、iの値を1インクリメントして、ステップS1706に戻る。   In step S1721, the value of i is incremented by 1, and the process returns to step S1706.

ステップS1706で中心角分割数nがiより大きくないと判断された場合(ステップS1706:NO)、サブルーチン「外周黒画素算出処理」を終了することにより、図16のステップS1601を終了する。   If it is determined in step S1706 that the center angle division number n is not greater than i (step S1706: NO), the subroutine “outer peripheral black pixel calculation process” is ended, thereby ending step S1601 in FIG.

図20は、第1の実施例におけるサブルーチン「濃淡補正判断処理」の流れを示すフローチャートである。図21は、外周黒画素率差テーブルの例を示す図である。   FIG. 20 is a flowchart showing the flow of a subroutine “shading correction determination process” in the first embodiment. FIG. 21 is a diagram illustrating an example of the peripheral black pixel rate difference table.

図20のサブルーチン「濃淡補正判断処理」は、図17を用いて説明した「外周黒画素算出処理」で算出した外周黒画素率に基づいて、濃淡補正を実行するか否かを判断する。   The subroutine “shading correction determination process” in FIG. 20 determines whether or not to execute the shading correction based on the outer peripheral black pixel ratio calculated in the “outer peripheral black pixel calculation process” described with reference to FIG.

まず、図20のステップS2001において、図18に示すような環境定義テーブルから、濃淡補正閾値tを取得し、ステップS2002において、濃淡補正有無フラグFに補正が不要であることを示す「FALSE」を設定し初期化しておく。   First, in step S2001 of FIG. 20, the density correction threshold value t is acquired from the environment definition table as shown in FIG. 18, and in step S2002, “FALSE” indicating that correction is not necessary for the density correction presence / absence flag F. Set and initialize.

ステップS2004乃至ステップS2011を中心角分割数の2分の1だけ繰返し実行するために、ステップS2003において、カウンタ変数iに0を代入し、ステップS2004において、中心角分割数nの2分の1がiより大きいか否かを判断する。   In order to repeatedly execute steps S2004 to S2011 by a half of the central angle division number, 0 is substituted into the counter variable i in step S2003, and in step S2004, one half of the central angle division number n is calculated. It is determined whether it is larger than i.

ステップS2004で中心角分割数nの2分の1がiより大きいと判断された場合(ステップS2004:YES)、図19に示すような外周黒画素率テーブルから、ステップS2005において、インデックスiの外周黒画素率βiを取得し、ステップS2006において、インデックスi+n/2の外周黒画素率βi´を取得する。   If it is determined in step S2004 that half of the center angle division number n is larger than i (step S2004: YES), the outer periphery of the index i is determined in step S2005 from the outer peripheral black pixel ratio table as shown in FIG. The black pixel ratio βi is acquired, and in step S2006, the outer peripheral black pixel ratio βi ′ of the index i + n / 2 is acquired.

ステップS2007において、γi=βi−βi´を算出し、外周黒画素率差γiを求める。   In step S2007, [gamma] i = [beta] i- [beta] i 'is calculated to obtain the peripheral black pixel rate difference [gamma] i.

ステップS2008において、ステップS2007で算出した外周黒画素率差γiを、図21に示すような外周黒画素率差テーブルに記録する。外周黒画素率差テーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S2008, the outer peripheral black pixel rate difference γi calculated in step S2007 is recorded in an outer peripheral black pixel rate difference table as shown in FIG. The peripheral black pixel rate difference table is stored in, for example, the ROM 404 or an external recording medium.

そして、ステップS2009において、γiの絶対値が濃淡補正閾値tより大きいか否か(|γi|>t?)を判断することにより、濃淡補正の有無を判定する。   In step S2009, it is determined whether the density correction is performed by determining whether the absolute value of γi is greater than the density correction threshold t (| γi |> t?).

γiの絶対値が濃淡補正閾値tより大きい場合(ステップS2009:YES)、ステップS2010において、濃淡補正有無フラグFを「TRUE」に設定する。他方、γiの絶対値が濃淡補正閾値tより大きくない場合(ステップS2009:NO)、ステップS2011に進む。   If the absolute value of γi is greater than the light / dark correction threshold t (step S2009: YES), the light / dark correction flag F is set to “TRUE” in step S2010. On the other hand, when the absolute value of γi is not larger than the density correction threshold t (step S2009: NO), the process proceeds to step S2011.

そして、ステップS2011において、iの値を1インクリメントして、ステップS2004に戻る。   In step S2011, the value of i is incremented by 1, and the process returns to step S2004.

ステップS2004で中心角分割数nの2分の1がiより大きくないと判断された場合(ステップS2004:NO)、サブルーチン「濃淡補正判断処理」を終了することにより、図16のステップS1602を終了する。   If it is determined in step S2004 that one half of the center angle division number n is not greater than i (step S2004: NO), the subroutine “shading correction determination processing” is ended, thereby ending step S1602 in FIG. To do.

図22は、第1実施例におけるサブルーチン「印影多値画像分割処理」の流れを示すフローチャートである。図23は、印影分割イメージテーブルの例を示す図である。   FIG. 22 is a flowchart showing a flow of a subroutine “imprinted multi-valued image dividing process” in the first embodiment. FIG. 23 is a diagram illustrating an example of the seal impression division image table.

図22のサブルーチン「印影多値画像分割処理」は、図12のステップS1205で濃淡補正有無フラグFが「TRUE」であった場合(ステップS1205:YES)に実行される。サブルーチン「印影多値画像分割処理」は、図12のステップS1201で取得した印影多値画像を分割して複数の部分印影多値画像を生成する。   The subroutine “imprint multi-valued image dividing process” of FIG. 22 is executed when the density correction presence / absence flag F is “TRUE” in step S1205 of FIG. 12 (step S1205: YES). In the subroutine “imprinted multi-valued image dividing process”, the imprinted multi-valued image acquired in step S1201 in FIG. 12 is divided to generate a plurality of partial imprinted multi-valued images.

まず、ステップS2201において、図18に示すような環境定義テーブルから二値化補正のための印影分割数pを取得する。   First, in step S2201, the imprint division number p for binarization correction is acquired from the environment definition table as shown in FIG.

そして、図21に示すような外周黒画素率差テーブルから、ステップS2202において、外周黒画素率差γiを取得し、ステップS2203において、外周黒画素率差が最大となる濃淡検出角度ωを取得する。   Then, from the outer black pixel rate difference table as shown in FIG. 21, the outer black pixel rate difference γi is acquired in step S2202, and the gray level detection angle ω that maximizes the outer black pixel rate difference is acquired in step S2203. .

ステップS2204において、印影の中心を通る濃淡検出角度ωの線分の座標を算出する。この時の線分の長さは印影の直径となる。   In step S2204, the coordinates of the line segment of the shade detection angle ω that passes through the center of the seal impression are calculated. The length of the line segment at this time becomes the diameter of the seal impression.

ステップS2205において、濃淡検出角度ωの線分をp等分する座標Cを算出する。
ステップS2206において、ステップS2205で算出した座標Cを通る濃淡検出角度ω+90度の線分Dを算出する。この時の線分の長さは印影の直径となる。
In step S2205, a coordinate C for dividing the line segment of the density detection angle ω into p equal parts is calculated.
In step S2206, a line segment D having a light / dark detection angle ω + 90 degrees passing through the coordinates C calculated in step S2205 is calculated. The length of the line segment at this time becomes the diameter of the seal impression.

ステップS2207において、図12のステップS1201で取得した印影多値画像を線分Dで分割する。   In step S2207, the seal impression multivalued image acquired in step S1201 of FIG.

ステップS2208において、図23に示すような印影分割イメージテーブルに、ステップS2207で分割した部分印影多値画像を記録する。印影分割イメージテーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S2208, the partial impression multivalued image divided in step S2207 is recorded in the impression divided image table as shown in FIG. The imprint division image table is stored in, for example, the ROM 404 or an external recording medium.

サブルーチン「印影多値画像分割処理」を終了することにより、図12のステップS1206を終了する。   By terminating the subroutine “imprinted multi-value image dividing process”, step S1206 in FIG. 12 is terminated.

図24は、第1実施例におけるサブルーチン「分割画像二値化処理」の流れを示すフローチャートである。図25は、補正二値化パラメタテーブルの例を示す図である。図26は、二値化イメージテーブルの例を示す図である。   FIG. 24 is a flowchart showing a flow of a subroutine “divided image binarization process” in the first embodiment. FIG. 25 is a diagram illustrating an example of a correction binarization parameter table. FIG. 26 is a diagram illustrating an example of a binarized image table.

図24のサブルーチン「分割画像二値化処理」は、図22のサブルーチン「印影多値画像分割処理」で分割された複数の部分印影多値画像のそれぞれを、図16のサブルーチン「印影濃淡検出処理」で検出された濃淡度に基づいて、図12のステップS1202で用いた二値化パラメタとは異なる二値化パラメタを用いて二値化して複数の部分印影二値画像を生成する。例えば、濃淡度の値が高い場合、すなわち濃い場合は、より高い値の二値化パラメタを用いる。他方、濃淡度の値が低い場合、すなわち薄い場合は、より低い値の二値化パラメタを用いる。   The subroutine “divided image binarization processing” in FIG. 24 is performed by substituting each of the plurality of partial impression multi-value images divided by the subroutine “imprint impression multi-value image division processing” in FIG. Are binarized using a binarization parameter different from the binarization parameter used in step S1202 of FIG. 12 to generate a plurality of partial impression binary images. For example, when the value of shade is high, that is, when the value is dark, a higher value binarization parameter is used. On the other hand, when the value of the lightness is low, that is, when the lightness is low, a binarization parameter having a lower value is used.

まず、ステップS2401において、図21に示すような外周黒画素率差テーブルから、最大の外周黒画素率差γmaxを取得する。   First, in step S2401, the maximum peripheral black pixel rate difference γmax is obtained from the peripheral black pixel rate difference table as shown in FIG.

ステップS2402において、ステップS2401で取得したγmaxと図22のステップS2201で取得した印影分割数pに基づいて、二値化パラメタを補正する。   In step S2402, the binarization parameter is corrected based on γmax acquired in step S2401 and the imprint division number p acquired in step S2201 of FIG.

ステップS2403において、ステップS2402で補正した二値化パラメタを、図25に示すような補正二値化パラメタテーブルに記録する。補正二値化パラメタテーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S2403, the binarization parameter corrected in step S2402 is recorded in the correction binarization parameter table as shown in FIG. The corrected binarization parameter table is stored in, for example, the ROM 404 or an external recording medium.

そして、ステップS2405乃至ステップS2410を印影分割数pだけ繰返し実行するために、ステップS2404において、カウンタ変数iに0を代入し、ステップS2405において、印影分割数pがiより大きいか否かを判断する。   In order to repeatedly execute steps S2405 to S2410 for the number of imprint divisions p, 0 is substituted for the counter variable i in step S2404, and in step S2405, it is determined whether or not the number of imprint divisions p is greater than i. .

ステップS2405で印影分割数pがiより大きいと判断された場合(ステップS2405:YES)、ステップS2406において、図23に示すような印影分割イメージテーブルから、インデックスiの部分印影多値画像を取得する。   If it is determined in step S2405 that the imprint division number p is greater than i (step S2405: YES), in step S2406, a partial imprint multi-value image with index i is obtained from the imprint division image table as shown in FIG. .

ステップS2407において、図25に示すような補正二値化パラメタテーブルからインデックスiの補正した二値化パラメタを取得する。   In step S2407, the binarization parameter corrected by the index i is acquired from the correction binarization parameter table as shown in FIG.

ステップS2408において、ステップS2407で取得した補正二値化パラメタで部分印影多値画像を二値化する。   In step S2408, the partial impression multi-value image is binarized using the correction binarization parameter acquired in step S2407.

ステップS2409において、図26に示すような二値化イメージテーブルに、ステップS2408で二値化した部分印影多値画像を記録する。二値化イメージテーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S2409, the partial impression multilevel image binarized in step S2408 is recorded in the binarized image table as shown in FIG. The binarized image table is stored in, for example, the ROM 404 or an external recording medium.

そして、ステップS2410において、iの値を1インクリメントして、ステップS2405に戻る。   In step S2410, the value of i is incremented by 1, and the process returns to step S2405.

ステップS2405で印影分割数pがiより大きくないと判断された場合(ステップS2405:NO)、サブルーチン「分割画像二値化処理」を終了することにより、図12のステップS1207を終了する。   If it is determined in step S2405 that the imprint division number p is not greater than i (step S2405: NO), the subroutine “divided image binarization processing” is terminated, thereby terminating step S1207 in FIG.

以上、図6、図7、図8、図10、図11、図12、図13、図14、図15、図16、図17、図18、図19、図20、図21、図22、図23、図24、図25及び図26を用いて、第1の実施例を詳細に説明した。   6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 22. The first embodiment has been described in detail with reference to FIGS. 23, 24, 25 and 26.

次に、図6、図10、図11、図27、図28、図29及び図30を用いて、第2の実施例の概要を説明する。   Next, the outline of the second embodiment will be described with reference to FIGS. 6, 10, 11, 27, 28, 29, and 30. FIG.

図27は、外周幅の算出を説明するための図である。図28は、外周幅及びその差の算出結果を示す図である。図29は、印鑑の文字の一部を含んだ外周幅の算出を説明するための図である。図30は、補正後の外周幅及びその差の算出結果を示す図である。   FIG. 27 is a diagram for explaining calculation of the outer peripheral width. FIG. 28 is a diagram showing the calculation results of the outer peripheral width and the difference between them. FIG. 29 is a diagram for explaining the calculation of the outer peripheral width including a part of the character of the seal. FIG. 30 is a diagram illustrating a calculation result of the corrected outer peripheral width and the difference between the corrected outer peripheral width and the difference.

まず、既知の印影検出技術により、印影の中心、印影の直径、及び印影のエッジデータを求める。   First, the center of the seal, the diameter of the seal, and the edge data of the seal are obtained by a known seal detection technique.

環境定義の二値化パラメタで二値化した印影イメージを、印影の中心を通る線分でn等分にし、その中心角(360/n)を単位濃淡検出角度とする。   The imprint image binarized with the binarization parameter of the environment definition is divided into n equal parts by a line segment passing through the center of the imprint, and the central angle (360 / n) is set as a unit grayscale detection angle.

図6の例では8等分にしており、単位濃淡検出角度は45度(=360/8)である。
濃淡検出角度毎に印影の中心から最も遠い2つのエッジデータを求め、その2点間の距離を計算することで印影の外周幅を算出する。図27(A)は、濃淡検出角度0度及び濃淡検出角度180度のそれぞれにおける、印影の中心から最も遠い2つのエッジデータ間の距離を算出した結果を示す。濃淡検出角度0度における外周幅は、1[px]であり、濃淡検出角度180度における外周幅は、5[px]である。また、同様に、図27(B)は、濃淡検出角度135度及び濃淡検出角度315度のそれぞれにおける、外周幅である。濃淡検出角度135度における外周幅は、3[px]であり、濃淡検出角度315度における外周幅は、1[px]である。
In the example of FIG. 6, it is divided into eight equal parts, and the unit grayscale detection angle is 45 degrees (= 360/8).
Two edge data farthest from the center of the imprint are obtained for each density detection angle, and the outer peripheral width of the imprint is calculated by calculating the distance between the two points. FIG. 27A shows the result of calculating the distance between the two edge data farthest from the center of the seal impression at each of the light / dark detection angle 0 degree and the light / dark detection angle 180 degrees. The outer peripheral width at a gray level detection angle of 0 degrees is 1 [px], and the outer peripheral width at a gray level detection angle of 180 degrees is 5 [px]. Similarly, FIG. 27B shows the outer peripheral width at each of the gray level detection angle of 135 degrees and the gray level detection angle of 315 degrees. The outer peripheral width at a density detection angle of 135 degrees is 3 [px], and the outer peripheral width at a density detection angle of 315 degrees is 1 [px].

印影が薄いと外周のエッジデータが存在しない場合がある。このような場合は、例えば外周幅を0ピクセル[px]とする。外周のエッジデータが存在しない場合、印影の中心から最も遠いエッジデータは印影の中の文字のエッジとなる場合がある。このような場合のエッジデータの印影中心からの距離は、印影の半径よりも小さな数値となる。そこで、外周幅が0[px]の場合を検出するために、円周検出補正値aを設定する。また、外周幅が1[px]の場合、印影の中心から最も遠いエッジデータは印影の外周上にあり、二番目に遠いエッジデータは印影の外周より内側の座標となる。そこで、印影の中心から最も遠いエッジデータの印影の中心からの距離が印影の半径±aの範囲内であり、かつ、二番目に遠いエッジデータの印影の中心からの距離が印影の半径±aの範囲外の場合は、外周幅を1[px]に設定する。   If the imprint is thin, there may be no peripheral edge data. In such a case, for example, the outer peripheral width is set to 0 pixel [px]. If there is no peripheral edge data, the edge data farthest from the center of the seal may be the edge of the character in the seal. In such a case, the distance from the center of the imprint of the edge data is a numerical value smaller than the radius of the imprint. Therefore, in order to detect the case where the outer peripheral width is 0 [px], the circumference detection correction value a is set. When the outer peripheral width is 1 [px], the edge data farthest from the center of the imprint is on the outer periphery of the imprint, and the second farthest edge data is the coordinates inside the outer periphery of the imprint. Therefore, the distance from the center of the imprint of the edge data farthest from the center of the imprint is within the range of the imprint radius ± a, and the distance from the center of the imprint of the edge data second farthest is the radius of the imprint ± a. If it is out of the range, the outer peripheral width is set to 1 [px].

このようにして、濃淡検出角度毎に印影の外周の外周幅を算出する。その結果を図28に示す。   In this way, the outer peripheral width of the outer periphery of the imprint is calculated for each density detection angle. The result is shown in FIG.

次に、ある濃淡検出角度の外周幅とその角度から180度ずらした角度の外周幅との差を算出する。差の算出は、中心角0度以上180度未満の範囲で単位濃淡検出角度毎に行う。   Next, the difference between the outer peripheral width of a certain shade detection angle and the outer peripheral width of an angle shifted by 180 degrees from the angle is calculated. The difference is calculated for each unit grayscale detection angle in the range of the central angle of 0 degree or more and less than 180 degrees.

濃淡検出角度によっては、印影の中心から2番目に遠いエッジデータが印影内の文字の一部であることがある。その場合、外周幅の値は他に比べて大きな値になってしまい、濃淡検出が正しく行えなくなってしまう。   Depending on the density detection angle, the edge data that is the second most distant from the center of the imprint may be a part of the character in the imprint. In that case, the value of the outer peripheral width becomes a larger value than the others, and the shading detection cannot be performed correctly.

例えば、図29に示したような例では、角度270度で「澤」の一部を含んだ幅が算出されており、外周幅が正しく算出されていない。   For example, in the example shown in FIG. 29, the width including a part of “sawa” is calculated at an angle of 270 degrees, and the outer peripheral width is not calculated correctly.

そこで、本第2実施例では非外周幅を検出するための「非外周幅補正値」を設ける。算出した外周幅の中央値に非外周幅補正値をかけた値を非外周幅しきい値とし、非外周幅しきい値を超える外周幅を非外周幅と判定する。   Therefore, in the second embodiment, a “non-peripheral width correction value” for detecting the non-peripheral width is provided. A value obtained by multiplying the calculated median value of the outer peripheral widths by the non-peripheral width correction value is set as a non-outer peripheral width threshold value, and an outer peripheral width exceeding the non-outer peripheral width threshold value is determined as a non-outer peripheral width.

例えば、非外周幅と判定された外周幅の値には、前後の濃淡検出角度の外周幅の平均値を設定する。非外周幅と判定された外周幅に設定する値は、他にも外周幅全体の平均値、中央値、前後の値などを設定してもよく、システム環境に応じて最適な値を設定することができる。   For example, the average value of the outer peripheral widths of the front and rear grayscale detection angles is set as the value of the outer peripheral width determined to be the non-peripheral width. As the value to be set for the outer peripheral width determined as non-peripheral width, the average value, the median value, the value before and after the entire outer peripheral width may be set, and the optimum value is set according to the system environment be able to.

図28に示した例では、非外周幅補正値を2.5とし、中央値は3である。よって、非外周幅のしきい値は3×2.5=7.5[px]である。この例では、濃淡検出角度が225度と270度において非外周幅のしきい値を超えている。そのため、濃淡検出角度が225度と270度の外周幅には、それぞれの前後の濃淡検出角度である180度と315度の平均値(5+1)/2=3を補正値として設定する。   In the example shown in FIG. 28, the non-peripheral width correction value is 2.5, and the median is 3. Therefore, the threshold value of the non-peripheral width is 3 × 2.5 = 7.5 [px]. In this example, the lightness / darkness detection angle exceeds the threshold value of the non-peripheral width at 225 degrees and 270 degrees. For this reason, the average value (5 + 1) / 2 = 3 of the 180 ° and 315 ° light and shade detection angles before and after each is set as the correction value for the outer peripheral widths of the light and shade detection angles of 225 ° and 270 °.

以降の処理では、図30に示したような補正後の外周幅を使用する。
次に、外周幅の差が最大の角度を最大濃淡角度とする。上述した例の場合、0度における外周幅の差が最大であるため、最大濃淡角度は0度である。
In the subsequent processing, the corrected outer peripheral width as shown in FIG. 30 is used.
Next, the angle with the largest difference in the outer peripheral width is set as the maximum shade angle. In the case of the above-described example, since the difference in the outer peripheral width at 0 degree is the maximum, the maximum gray angle is 0 degree.

そして、最大濃淡角度における外周幅の差の絶対値が環境定義のしきい値以上であるかを判定する。外周幅の差の絶対値が環境定義のしきい値以上の場合、印影に濃淡があると判定し、濃淡補正処理を実行する。   Then, it is determined whether the absolute value of the difference between the outer peripheral widths at the maximum gray angle is equal to or larger than the environment-defined threshold. If the absolute value of the difference between the outer peripheral widths is equal to or greater than the environment-defined threshold value, it is determined that the seal has shading, and shading correction processing is executed.

他方、しきい値未満の場合、印影に濃淡がないと判定し濃淡補正処理を実行しない。
上述の例では環境定義のしきい値が2[px]の場合を想定する。最大濃淡角度における外周幅の差の絶対値は4[px]であり、しきい値以上の値であるため、以降の濃淡補正処理を実行する。
On the other hand, if it is less than the threshold value, it is determined that the seal has no shading, and the shading correction process is not executed.
In the above example, it is assumed that the environment definition threshold is 2 [px]. The absolute value of the difference between the outer peripheral widths at the maximum gray angle is 4 [px], which is a value equal to or larger than the threshold value.

次に、最大濃淡角度と直交する線分で印影イメージをp等分し、印影イメージを濃度毎に分割する。図10の例ではp=3とし、3等分にしている。   Next, the imprint image is divided into p equal parts by a line segment orthogonal to the maximum shading angle, and the imprint image is divided for each density. In the example of FIG. 10, p = 3, and it is divided into three equal parts.

環境定義の二値化パラメタを基準として、部分領域毎に二値化パラメタを補正して二値化を行う。各部分領域の二値化パラメタは最大濃淡角度の外周幅の差をインプットにして補正を行う。部分領域毎に二値化した印影イメージを結合して、均一な二値化イメージを生成する。   Binarization is performed by correcting the binarization parameter for each partial area with reference to the binarization parameter of the environment definition. The binarization parameter of each partial area is corrected using the difference in the outer peripheral width of the maximum gray angle as an input. A uniform binary image is generated by combining the binarized impression images for each partial area.

この例では説明を簡単にするため、最大濃淡角度に直交する線分のみで分割しているが、図11に示すように、更に最大濃淡角度の線分で分割し、角度毎の外周幅の差をインプットにして補正を行ってもよい。   In this example, for simplification of explanation, only the line segment orthogonal to the maximum gray angle is divided, but as shown in FIG. Correction may be performed using the difference as an input.

この場合、部分領域1104及び部分領域1106の濃淡補正には、濃淡検出角度0度における外周幅の差−4[px]をインプットとして補正する。   In this case, for the density correction of the partial area 1104 and the partial area 1106, the outer peripheral width difference −4 [px] at the density detection angle of 0 degrees is corrected as an input.

部分領域1103及び部分領域1107の濃淡補正には、濃淡検出角度45度における外周幅の差1[px]をインプットとして補正する。   For the density correction of the partial area 1103 and the partial area 1107, the difference 1 [px] in the outer peripheral width at the density detection angle of 45 degrees is corrected as an input.

部分領域1102及び部分領域1108の濃淡補正には、濃淡検出角度90度における外周幅の差0[px]をインプットとして補正する。   For the density correction of the partial area 1102 and the partial area 1108, the difference 0 [px] in the outer peripheral width at the density detection angle of 90 degrees is corrected.

部分領域1101及び部分領域1109の濃淡補正には、濃淡検出角度135度における外周幅の差2[px]をインプットとして補正する。   For the density correction of the partial area 1101 and the partial area 1109, the difference 2 [px] in the outer peripheral width at the density detection angle of 135 degrees is corrected as an input.

次に、図12、図14、図15、図23、図25、図26、図31、図32、図33、図34、図35、図36、図37、図38、図39及び図40を用いて、第2の実施例を詳細に説明する。   Next, FIGS. 12, 14, 15, 23, 25, 26, 31, 31, 32, 33, 34, 35, 36, 37, 38, 39, and 40. The second embodiment will be described in detail with reference to FIG.

第2実施例における印影画像生成処理は、第1実施例における印影画像生成処理と同様、印影登録装置42が登録印影を均一に二値化する場合に、印影登録装置42からの指示で印影画像生成装置41が実行する。また、印影照合装置43が被照合印影を均一に二値化する場合に、印影照合装置43からの指示で印影画像生成装置41が実行する。   The imprint image generation process in the second embodiment is similar to the imprint image generation process in the first embodiment when the imprint registration apparatus 42 uniformly binarizes the registered imprint in accordance with an instruction from the imprint registration apparatus 42. The generation device 41 executes. In addition, when the imprint collation device 43 binarizes the collated imprint uniformly, the imprint image generation device 41 executes in response to an instruction from the imprint collation device 43.

図12及び図14は、第1の実施例と共通であるので、説明は省略する。
図31は、第2実施例におけるサブルーチン「印影濃淡検出処理」の流れを示すフローチャートである。
12 and 14 are the same as those in the first embodiment, and a description thereof will be omitted.
FIG. 31 is a flowchart showing the flow of the subroutine “imprint density detection processing” in the second embodiment.

図31のサブルーチン「印影濃淡検出処理」は、図12のステップS1202で二値化し、図14のサブルーチン「印影情報検出処理」で中心及び外周枠を検出した印影二値画像の外周枠の濃淡度を検出する。例えば、ステップS3101において、サブルーチン「エッジデータ抽出処理」を実行し、図12のステップS1202で二値化した印影二値画像のエッジデータを抽出する。次に、ステップS3102において、サブルーチン「外周幅算出処理」を実行し、ステップS3101で抽出したエッジデータを用いて、印影二値画像の外周幅を算出する。そして、ステップS3103において、第2実施例におけるサブルーチン「濃淡補正判断処理」を実行し、検出した外周幅に基づいて、印影の濃淡の補正が必要であるか否かを判断する。   The subroutine “imprint density detection process” in FIG. 31 is binarized in step S1202 in FIG. 12, and the density of the outer frame of the imprint binary image in which the center and outer frame are detected in the subroutine “imprint information detection process” in FIG. Is detected. For example, in step S 3101, the subroutine “edge data extraction process” is executed, and the edge data of the imprint binary image binarized in step S 1202 of FIG. 12 is extracted. Next, in step S3102, a subroutine “peripheral width calculation process” is executed, and the outer peripheral width of the imprint binary image is calculated using the edge data extracted in step S3101. In step S3103, the subroutine “shading correction determination process” in the second embodiment is executed, and it is determined whether or not the shading correction of the seal is necessary based on the detected outer peripheral width.

サブルーチン「印影濃淡検出処理」を終了することにより、図12のステップS1204を終了する。   When the subroutine “imprint density detection processing” is terminated, step S1204 in FIG. 12 is terminated.

次に、サブルーチン「エッジデータ抽出処理」、サブルーチン「外周幅算出処理」、及びサブルーチン「濃淡補正判断処理」について詳細に説明する。   Next, the subroutine “edge data extraction process”, the subroutine “peripheral width calculation process”, and the subroutine “shading correction determination process” will be described in detail.

図32は、サブルーチン「エッジデータ抽出処理」の流れを示すフローチャートである。図33は、エッジデータテーブルの例を示す図である。   FIG. 32 is a flowchart showing the flow of a subroutine “edge data extraction process”. FIG. 33 is a diagram illustrating an example of the edge data table.

まず、図32のステップS3201において、図12のステップS1202で二値化した印影二値画像から黒画素数Bを含む黒画素情報を取得する。   First, in step S3201 in FIG. 32, black pixel information including the black pixel number B is acquired from the imprint binary image binarized in step S1202 in FIG.

ステップS3203乃至ステップS3207を黒画素数だけ繰返し実行するために、ステップS3202において、カウンタ変数iに0を代入し、ステップS3203において、黒画素数Bがiより大きいか否かを判断する。   In order to repeatedly execute Steps S3203 to S3207 for the number of black pixels, 0 is substituted for the counter variable i in Step S3202, and it is determined whether or not the number of black pixels B is larger than i in Step S3203.

ステップS3203で黒画素数Bがiより大きいと判断された場合(ステップS3203:YES)、ステップS3204において、ステップS3201で取得した黒画素情報から、注目黒画素を1つ選出する。   If it is determined in step S3203 that the number of black pixels B is greater than i (step S3203: YES), one black pixel of interest is selected from the black pixel information acquired in step S3201 in step S3204.

ステップS3205において、ステップS3204で選出した注目黒画素の周辺画素に白画素が存在するか否かを判断する。   In step S3205, it is determined whether a white pixel exists in the peripheral pixels of the target black pixel selected in step S3204.

白画素が存在する場合(ステップS3205:YES)、ステップS3206において、注目している黒画素をエッジデータとして、図33に示すようにエッジデータテーブルに記録して、ステップS3207に進む。他方、白画素が存在しない場合(ステップS3205:NO)、ステップS3207に進む。   If there is a white pixel (step S3205: YES), in step S3206, the black pixel of interest is recorded as edge data in the edge data table as shown in FIG. 33, and the process proceeds to step S3207. On the other hand, when there is no white pixel (step S3205: NO), the process proceeds to step S3207.

そして、ステップS3207において、iの値を1インクリメントして、ステップS3203に戻る。   In step S3207, the value of i is incremented by 1, and the process returns to step S3203.

ステップS3203で黒画素数Bがiより大きくないと判断された場合(ステップS3203:NO)、サブルーチン「エッジデータ抽出処理」を終了することにより、図31のステップS3101を終了する。   If it is determined in step S3203 that the number of black pixels B is not greater than i (step S3203: NO), the subroutine “edge data extraction processing” is terminated, and step S3101 in FIG. 31 is terminated.

図34は、サブルーチン「外周幅算出処理」の流れを示すフローチャートである。図35は、第2実施例における環境定義テーブルの例を示す図である。図36は、外周幅テーブルの例を示す図である。   FIG. 34 is a flowchart showing the flow of a subroutine “peripheral width calculation process”. FIG. 35 is a diagram illustrating an example of an environment definition table in the second embodiment. FIG. 36 is a diagram illustrating an example of the outer peripheral width table.

まず、図34のステップS3401において、図35に示すような環境定義テーブルから、中心角分割数n、円周検出補正値a及び非外周幅補正値bを取得する。   First, in step S3401 of FIG. 34, the center angle division number n, the circumference detection correction value a, and the non-outer circumference width correction value b are acquired from the environment definition table as shown in FIG.

ステップS3402において、360度を中心角分割数nで除算し、単位濃淡検出角度αを算出(α=360/n)する。   In step S3402, 360 degrees is divided by the center angle division number n to calculate a unit grayscale detection angle α (α = 360 / n).

ステップS3403において、図14のステップS1409で記録した印影情報テーブル(図15)から、印影の半径ro及び印影の中心座標O(xo,yo)を取得する。   In step S3403, the imprint radius ro and the imprint center coordinates O (xo, yo) are acquired from the imprint information table (FIG. 15) recorded in step S1409 of FIG.

ステップS3405乃至ステップS3415を中心角分割数だけ繰返し実行するために、ステップS3404において、カウンタ変数iに0を代入し、ステップS3405において、中心角分割数nがiより大きいか否かを判断する。   In order to repeatedly execute steps S3405 to S3415 for the center angle division number, 0 is substituted into the counter variable i in step S3404, and in step S3405, it is determined whether or not the center angle division number n is larger than i.

ステップS3405で中心角分割数nがiより大きいと判断された場合(ステップS3405:YES)、ステップS3406において、印影の中心座標Oを通る角度α×iの線分Eを算出する。   If it is determined in step S3405 that the center angle division number n is larger than i (step S3405: YES), in step S3406, a line segment E having an angle α × i passing through the center coordinates O of the impression is calculated.

ステップS3407において、図33に示すようなエッジデータテーブルから、ステップS3406で算出した線分E上であって、かつ、角度α×i方向のエッジデータの座標を取得する。   In step S3407, coordinates of edge data on the line segment E calculated in step S3406 and in the angle α × i direction are acquired from the edge data table as shown in FIG.

ステップS3408において、ステップS3407で取得したエッジデータの内、印影の中心から最も遠いエッジデータ座標P1と2番目に遠いエッジデータ座標P2を取得する。   In step S3408, among the edge data acquired in step S3407, the edge data coordinate P1 farthest from the center of the impression and the edge data coordinate P2 farthest from the center are acquired.

そして、ステップS3409において、印影の中心座標Oとエッジデータ座標P1との距離が印影半径ro±aの範囲内か否かを判断する。   In step S3409, it is determined whether or not the distance between the center coordinates O of the imprint and the edge data coordinates P1 is within the range of the imprint radius ro ± a.

範囲内であれば(ステップS3409:NO)、ステップS3410において、外周幅Wiに0を設定し、ステップS3414に進む。   If within the range (step S3409: NO), in step S3410, the outer peripheral width Wi is set to 0, and the process proceeds to step S3414.

他方、印影の中心座標Oとエッジデータ座標P1との距離が印影半径ro±aの範囲内でなければ(ステップS3409:YES)、ステップS3411において、印影の中心座標Oとエッジデータ座標P2との距離が印影半径ro±aの範囲内か否かを判断する。   On the other hand, if the distance between the imprint center coordinate O and the edge data coordinate P1 is not within the imprint radius ro ± a (step S3409: YES), in step S3411, the imprint center coordinate O and the edge data coordinate P2 It is determined whether the distance is within the range of the imprint radius ro ± a.

範囲内でなければ(ステップS3411:NO)、ステップS3412において、外周幅Wiに1を設定し、ステップS3414に進む。   If it is not within the range (step S3411: NO), in step S3412, 1 is set to the outer peripheral width Wi, and the process proceeds to step S3414.

他方、印影の中心座標Oとエッジデータ座標P2との距離が印影半径ro±aの範囲内であれば(ステップS3411:YES)、ステップS3413において、エッジデータ座標P1とエッジデータ座標P2との距離を外周幅Wiに設定し、ステップS3414に進む。   On the other hand, if the distance between the center coordinates O of the imprint and the edge data coordinates P2 is within the imprint radius ro ± a (step S3411: YES), the distance between the edge data coordinates P1 and the edge data coordinates P2 in step S3413. Is set to the outer peripheral width Wi, and the process proceeds to step S3414.

ステップS3414において、これらステップS3410、S3412又はS3413で設定した外周幅Wiを、図36に示すような外周幅テーブルに記録する。   In step S3414, the outer peripheral width Wi set in step S3410, S3412 or S3413 is recorded in the outer peripheral width table as shown in FIG.

そして、ステップS3415において、jの値を1インクリメントして、ステップS3405に戻る。   In step S3415, the value of j is incremented by 1, and the process returns to step S3405.

ステップS3405で中心角分割数nがiより大きくないと判断された場合(ステップS3405:NO)、ステップS3417乃至ステップS3421を中心角分割数だけ繰返し実行するために、ステップS3416において、カウンタ変数jに0を代入し、ステップS3417において、中心角分割数nがjより大きいか否かを判断する。   When it is determined in step S3405 that the center angle division number n is not larger than i (step S3405: NO), in order to repeatedly execute steps S3417 to S3421 by the center angle division number, the counter variable j is set in step S3416. 0 is substituted, and in step S3417, it is determined whether the center angle division number n is larger than j.

ステップS3417で中心角分割数nがjより大きいと判断された場合(ステップS3417:YES)、ステップS3418において、外周幅Wの中央値sを算出する。   If it is determined in step S3417 that the center angle division number n is greater than j (step S3417: YES), the median value s of the outer peripheral width W is calculated in step S3418.

そして、ステップS3419において、インデックスjの外周幅Wjがs×bより大きいか否かを判断する。   In step S3419, it is determined whether or not the outer peripheral width Wj of the index j is larger than s × b.

外周幅Wjがs×bより大きいと判断された場合(ステップS3419:YES)、ステップS3420において、インデックスjの外周幅Wjを補正し、ステップS3421に進む。   If it is determined that the outer peripheral width Wj is larger than s × b (step S3419: YES), the outer peripheral width Wj of the index j is corrected in step S3420, and the process proceeds to step S3421.

外周幅Wjがs×bより大きくないと判断された場合(ステップS3419:NO)、インデックスjの外周幅Wjを補正は行わず、ステップS3421に進む。   If it is determined that the outer peripheral width Wj is not larger than s × b (step S3419: NO), the outer peripheral width Wj of the index j is not corrected and the process proceeds to step S3421.

そして、ステップS3421において、jの値を1インクリメントして、ステップS3417に戻る。   In step S3421, the value of j is incremented by 1, and the process returns to step S3417.

ステップS3417で中心角分割数nがjより大きくないと判断された場合(ステップS3417:NO)、サブルーチン「外周幅算出処理」を終了することにより、図31のステップS3102を終了する。   If it is determined in step S3417 that the center angle division number n is not greater than j (step S3417: NO), the subroutine “outer peripheral width calculation process” is terminated, thereby terminating step S3102 in FIG.

図37は、第2実施例におけるサブルーチン「濃淡補正判断処理」の流れを示すフローチャートである。図38は、外周幅差テーブルの例を示す図である。   FIG. 37 is a flowchart showing the flow of a subroutine “shading correction determination process” in the second embodiment. FIG. 38 is a diagram illustrating an example of the outer peripheral width difference table.

図37のサブルーチン「濃淡補正判断処理」は、図34を用いて説明した「外周幅算出処理」で算出した外周幅に基づいて、濃淡補正を実行するか否かを判断する。   The subroutine “shading correction determination process” in FIG. 37 determines whether or not to execute the shading correction based on the outer peripheral width calculated in the “peripheral width calculation process” described with reference to FIG.

まず、図37のステップS3701において、図35に示すような環境定義テーブルから、濃淡補正閾値uを取得し、ステップS3702において、濃淡補正有無フラグFに補正が不要であることを示す「FALSE」を設定し初期化しておく。   First, in step S3701 of FIG. 37, the density correction threshold u is acquired from the environment definition table as shown in FIG. 35. In step S3702, “FALSE” indicating that correction is not necessary for the density correction presence / absence flag F. Set and initialize.

ステップS3704乃至ステップS3711を中心角分割数の2分の1だけ繰返し実行するために、ステップS3703において、カウンタ変数iに0を代入し、ステップS3704において、中心角分割数nの2分の1がiより大きいか否かを判断する。   In order to repeatedly execute steps S3704 to S3711 by one-half of the center angle division number, 0 is substituted into the counter variable i in step S3703, and in step S3704, one half of the center angle division number n is calculated. It is determined whether it is larger than i.

ステップS3704で中心角分割数nの2分の1がiより大きいと判断された場合(ステップS3704:YES)、図36に示すような外周幅テーブルから、ステップS3705において、インデックスiの外周幅Wiを取得し、ステップS3706において、インデックスi+n/2の外周幅Wi´を取得する。   If it is determined in step S3704 that one half of the center angle division number n is larger than i (step S3704: YES), the outer peripheral width Wi of the index i is determined in step S3705 from the outer peripheral width table shown in FIG. In step S3706, the outer peripheral width Wi ′ of the index i + n / 2 is acquired.

ステップS3707において、δi=Wi−Wi´ を算出し、外周幅差δiを求める。   In step S3707, δi = Wi−Wi ′ is calculated to obtain the outer peripheral width difference δi.

ステップS3708において、ステップS3707で算出した外周幅差δiを、図38に示すような外周幅差テーブルに記録する。外周幅差テーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S3708, the outer peripheral width difference δi calculated in step S3707 is recorded in an outer peripheral width difference table as shown in FIG. The outer peripheral width difference table is stored in, for example, the ROM 404 or an external recording medium.

そして、ステップS3709において、δiの絶対値が濃淡補正閾値uより大きいか否か(|δi|> u?)を判断することにより、濃淡補正の有無を判定する。   In step S3709, it is determined whether or not density correction is performed by determining whether or not the absolute value of δi is greater than the density correction threshold u (| δi |> u?).

δiの絶対値が濃淡補正閾値uより大きい場合(ステップS3709:YES)、ステップS3710において、濃淡補正有無フラグFを「TRUE」に設定する。他方、δiの絶対値が濃淡補正閾値uより大きくない場合(ステップS3709:NO)、ステップS3711に進む。   When the absolute value of δi is larger than the density correction threshold u (step S3709: YES), the density correction presence / absence flag F is set to “TRUE” in step S3710. On the other hand, when the absolute value of δi is not larger than the density correction threshold u (step S3709: NO), the process proceeds to step S3711.

そして、ステップS3711において、iの値を1インクリメントして、ステップS3704に戻る。   In step S3711, the value of i is incremented by 1, and the process returns to step S3704.

ステップS3704で中心角分割数nの2分の1がiより大きくないと判断された場合(ステップS3704:NO)、サブルーチン「濃淡補正判断処理」を終了することにより、図31のステップS3103を終了する。   If it is determined in step S3704 that ½ of the center angle division number n is not greater than i (step S3704: NO), the subroutine “shading correction determination process” is ended, thereby ending step S3103 in FIG. To do.

図39は、第2実施例におけるサブルーチン「印影多値画像分割処理」の流れを示すフローチャートである。   FIG. 39 is a flowchart showing a flow of a subroutine “imprinted multi-valued image dividing process” in the second embodiment.

図39のサブルーチン「印影多値画像分割処理」は、図12のステップS1205で濃淡補正有無フラグFが「TRUE」であった場合(ステップS1205:YES)に実行される。サブルーチン「印影多値画像分割処理」は、図12のステップS1201で取得した印影多値画像を分割して複数の部分印影多値画像を生成する。   The subroutine “imprint multi-valued image division process” of FIG. 39 is executed when the density correction presence / absence flag F is “TRUE” in step S1205 of FIG. 12 (step S1205: YES). In the subroutine “imprinted multi-valued image dividing process”, the imprinted multi-valued image acquired in step S1201 in FIG. 12 is divided to generate a plurality of partial imprinted multi-valued images.

まず、ステップS3901において、図35に示すような環境定義テーブルから二値化補正のための印影分割数pを取得する。   First, in step S3901, the imprint division number p for binarization correction is acquired from the environment definition table as shown in FIG.

そして、図38に示すような外周幅差テーブルから、ステップS3902において、外周幅差δiを取得し、ステップS3903において、外周幅差が最大となる濃淡検出角度ωを取得する。   Then, from the outer peripheral width difference table as shown in FIG. 38, the outer peripheral width difference δi is acquired in step S3902, and in step S3903, the gray level detection angle ω that maximizes the outer peripheral width difference is acquired.

ステップS3904において、印影の中心を通る濃淡検出角度ωの線分の座標を算出する。この時の線分の長さは印影の直径となる。   In step S3904, the coordinates of the line segment of the shade detection angle ω that passes through the center of the seal impression are calculated. The length of the line segment at this time becomes the diameter of the seal impression.

ステップS3905において、濃淡検出角度ωの線分をp等分する座標Cを算出する。
ステップS3906において、ステップS3905で算出した座標Cを通る濃淡検出角度ω+90度の線分Dを算出する。この時の線分の長さは印影の直径となる。
In step S3905, a coordinate C that divides the line segment of the density detection angle ω into p equal parts is calculated.
In step S3906, a line segment D having a light / dark detection angle ω + 90 degrees passing through the coordinates C calculated in step S3905 is calculated. The length of the line segment at this time becomes the diameter of the seal impression.

ステップS3907において、図12のステップS1201で取得した印影多値画像を線分Dで分割する。   In step S3907, the seal impression multivalued image acquired in step S1201 of FIG.

ステップS3908において、図23に示すような印影分割イメージテーブルに、ステップS3907で分割した部分印影多値画像を記録する。印影分割イメージテーブルは、例えば、ROM404や外部記録媒体等に格納されている。   In step S3908, the partial impression multivalued image divided in step S3907 is recorded in the impression divided image table as shown in FIG. The imprint division image table is stored in, for example, the ROM 404 or an external recording medium.

サブルーチン「印影多値画像分割処理」を終了することにより、図12のステップS1206を終了する。   By terminating the subroutine “imprinted multi-value image dividing process”, step S1206 in FIG. 12 is terminated.

図40は、第2実施例におけるサブルーチン「分割画像二値化処理」の流れを示すフローチャートである。   FIG. 40 is a flowchart showing a flow of a subroutine “divided image binarization process” in the second embodiment.

図40のサブルーチン「分割画像二値化処理」は、図39のサブルーチン「印影多値画像分割処理」で分割された複数の部分印影多値画像のそれぞれを、図31のサブルーチン「印影濃淡検出処理」で検出された濃淡度に基づいて、図12のステップS1202で用いた二値化パラメタとは異なる二値化パラメタを用いて二値化して複数の部分印影二値画像を生成する。例えば、濃淡度の値が高い場合、すなわち濃い場合は、より高い値の二値化パラメタを用いる。他方、濃淡度の値が低い場合、すなわち薄い場合は、より低い値の二値化パラメタを用いる。   The subroutine “divided image binarization processing” in FIG. 40 is executed by substituting each of the plurality of partial impression multi-value images divided by the subroutine “imprint impression multi-value image division processing” in FIG. Are binarized using a binarization parameter different from the binarization parameter used in step S1202 of FIG. 12 to generate a plurality of partial impression binary images. For example, when the value of shade is high, that is, when the value is dark, a higher value binarization parameter is used. On the other hand, when the value of the lightness is low, that is, when the lightness is low, a binarization parameter having a lower value is used.

まず、ステップS4001において、図38に示すような外周幅差テーブルから、最大の外周幅差δmaxを取得する。   First, in step S4001, the maximum outer peripheral width difference δmax is acquired from the outer peripheral width difference table as shown in FIG.

ステップS4002において、ステップS4001で取得したδmaxと図39のステップS3901で取得した印影分割数pに基づいて、二値化パラメタを補正する。   In step S4002, the binarization parameter is corrected based on δmax acquired in step S4001 and the imprint division number p acquired in step S3901 of FIG.

ステップS4003において、ステップS4002で補正した二値化パラメタを、図25に示すような補正二値化パラメタテーブルに記録する。   In step S4003, the binarization parameter corrected in step S4002 is recorded in a correction binarization parameter table as shown in FIG.

そして、ステップS4005乃至ステップS4010を印影分割数pだけ繰返し実行するために、ステップS4004において、カウンタ変数iに0を代入し、ステップS4005において、印影分割数pがiより大きいか否かを判断する。   In order to repeatedly execute steps S4005 to S4010 for the number of imprint divisions p, 0 is substituted for the counter variable i in step S4004, and in step S4005, it is determined whether or not the number of imprint divisions p is greater than i. .

ステップS4005で印影分割数pがiより大きいと判断された場合(ステップS4005:YES)、ステップS4006において、図23に示すような印影分割イメージテーブルから、インデックスiの部分印影多値画像を取得する。   If it is determined in step S4005 that the imprint division number p is greater than i (step S4005: YES), in step S4006, a partial imprint multi-value image with index i is obtained from the imprint division image table as shown in FIG. .

ステップS4007において、図25に示すような補正二値化パラメタテーブルからインデックスiの補正した二値化パラメタを取得する。   In step S4007, the binarization parameter corrected by the index i is acquired from the correction binarization parameter table as shown in FIG.

ステップS4008において、ステップS4007で取得した補正二値化パラメタで部分印影多値画像を二値化する。   In step S4008, the partially imprinted multi-valued image is binarized using the correction binarization parameter acquired in step S4007.

ステップS4009において、図26に示すような二値化イメージテーブルに、ステップS4008で二値化した部分印影多値画像を記録する。   In step S4009, the partial impression multilevel image binarized in step S4008 is recorded in the binarized image table as shown in FIG.

そして、ステップS4010において、iの値を1インクリメントして、ステップS4005に戻る。   In step S4010, the value of i is incremented by 1, and the process returns to step S4005.

ステップS4005で印影分割数pがiより大きくないと判断された場合(ステップS4005:NO)、サブルーチン「分割画像二値化処理」を終了することにより、図12のステップS1207を終了する。   If it is determined in step S4005 that the imprint division number p is not greater than i (step S4005: NO), the subroutine “divided image binarization processing” is terminated, thereby ending step S1207 in FIG.

以上、図12、図14、図15、図23、図25、図26、図31、図32、図33、図34、図35、図36、図37、図38、図39及び図40を用いて、第2の実施例を詳細に説明した。   12, 14, 15, 23, 25, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, and 40. In use, the second embodiment has been described in detail.

以上説明したように、第1の実施例及び第2の実施例を含む実施の形態における印影画像生成装置41は、第1の実施例及び第2の実施例のような印影画像生成処理を実行し、画像読取装置50によって読み取った多値の印影画像を二値化して二値の印影画像を生成する。そして、印影登録装置42が、生成された二値の印影画像と、入力された顧客番号、支店の番号である店番、口座の種類である科目、その口座の口座番号等、印鑑に対応する識別情報と対応付けて、印影データベース60に登録する。   As described above, the imprint image generation apparatus 41 in the embodiment including the first example and the second example executes the imprint image generation process as in the first example and the second example. Then, the multi-value imprint image read by the image reading device 50 is binarized to generate a binary imprint image. Then, the imprint registration device 42 identifies the generated binary imprint image, the input customer number, the branch number, the account number, the account type, the account number of the account, etc. The information is registered in the seal impression database 60 in association with the information.

図41は、印影登録装置の表示画面例である。
印影登録装置42は、印影画像生成装置41による印影画像生成処理を実行させ、図41に示したように、生成した二値の印影画像を「印鑑部」欄に表示する。そして、「登録」ボタンを押下することにより、登録印として登録する。
FIG. 41 is a display screen example of the seal imprint registration apparatus.
The imprint registration device 42 causes the imprint image generation device 41 to execute an imprint image generation process, and displays the generated binary imprint image in the “seal stamp section” field, as shown in FIG. 41. Then, the registration mark is registered by pressing the “Register” button.

図42は、濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その1)である。   FIG. 42 is a display screen example (part 1) of the seal imprint registration apparatus that displays a message indicating that the shading correction has been performed.

印影登録装置42は、印影画像生成装置41による印影画像生成処理を自動的に実行させ、生成した二値の印影画像を「印鑑部」欄に表示する。その際、図42に示したように、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、備考情報欄に表示するようにしても良い。   The imprint registration device 42 automatically executes the imprint image generation processing by the imprint image generation device 41 and displays the generated binary imprint image in the “sealing part” field. At this time, as shown in FIG. 42, a message indicating that the density correction has been performed on the binarized seal image may be displayed in the remark information column.

図43は、濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その2)である。   FIG. 43 is a display screen example (part 2) of the seal impression registration apparatus that displays a message indicating that the shading correction has been performed.

印影登録装置42は、印影画像生成装置41による印影画像生成処理を自動的に実行させ、生成した二値の印影画像を「印鑑部」欄に表示する。その際、図43に示したように、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、メッセージダイアログに表示するようにしても良い。   The imprint registration device 42 automatically executes the imprint image generation processing by the imprint image generation device 41 and displays the generated binary imprint image in the “sealing part” field. At this time, as shown in FIG. 43, a message indicating that the density correction has been performed on the binarized impression image may be displayed in the message dialog.

図44は、濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その3)である。   FIG. 44 is a display screen example (part 3) of the seal registration apparatus that displays a message indicating that the shading correction has been performed.

印影登録装置42は、図44に示すように、操作者が「印影濃淡補正」ボタンを押下することにより、印影画像生成装置41による印影画像生成処理が実行されるようにしても良い。このような場合にも、印影登録装置42は、生成した二値の印影画像を「印鑑部」欄に表示する。その際、図44に示したように、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、備考情報欄に表示するようにしても良い。   As shown in FIG. 44, the imprint registration device 42 may execute the imprint image generation processing by the imprint image generation device 41 when the operator presses the “imprint density correction” button. Even in such a case, the imprint registration device 42 displays the generated binary imprint image in the “Seal” section. At that time, as shown in FIG. 44, a message indicating that the density correction has been performed on the binarized impression image may be displayed in the remark information column.

図45は、濃淡補正が行われたことを示すメッセージを表示する印影登録装置の表示画面例(その4)である。   FIG. 45 is a display screen example (part 4) of the seal registration apparatus that displays a message indicating that the shading correction has been performed.

印影登録装置42は、図44に示す例と同様、図45に示すように、操作者が「印影濃淡補正」ボタンを押下することにより、印影画像生成装置41による印影画像生成処理が実行される。その際、印影登録装置42は、生成した二値の印影画像を「印鑑部」欄に表示し、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、メッセージダイアログに表示するようにしても良い。   As in the example shown in FIG. 44, the imprint registration device 42 executes the imprint image generation processing by the imprint image generation device 41 when the operator presses the “imprint density correction” button as shown in FIG. . At that time, the imprint registration device 42 displays the generated binary imprint image in the “Seal” section, and displays a message in the message dialog indicating that the density correction has been performed on the binarized imprint image. You may make it do.

図46は、印影照合装置の表示画面例である。
印影照合装置43は、印影画像生成装置41による印影画像生成処理を実行させ、図46に示したように、生成した二値の印影画像を「読取印」欄に表示する。
FIG. 46 is an example of a display screen of the seal collation apparatus.
The seal impression device 43 executes the seal image generation processing by the seal image generation device 41 and displays the generated binary seal image in the “read seal” field as shown in FIG.

図47は、濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その1)である。   FIG. 47 is an example (part 1) of a display screen of the seal collation apparatus that displays a message indicating that the shading correction has been performed.

印影照合装置43は、印影画像生成装置41による印影画像生成処理を自動的に実行させ、生成した二値の印影画像を「読取印」欄に表示する。その際、図47に示したように、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、備考情報欄に表示するようにしても良い。   The imprint verification device 43 automatically executes the imprint image generation processing by the imprint image generation device 41 and displays the generated binary imprint image in the “reading stamp” field. At this time, as shown in FIG. 47, a message indicating that the shading correction has been performed on the binarized imprint image may be displayed in the remark information column.

図48は、濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その2)である。   FIG. 48 is a display screen example (part 2) of the stamp collation apparatus that displays a message indicating that the shading correction has been performed.

印影照合装置43は、印影画像生成装置41による印影画像生成処理を自動的に実行させ、生成した二値の印影画像を「読取印」欄に表示する。その際、図48に示したように、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、メッセージダイアログに表示するようにしても良い。   The imprint verification device 43 automatically executes the imprint image generation processing by the imprint image generation device 41 and displays the generated binary imprint image in the “reading stamp” field. At this time, as shown in FIG. 48, a message indicating that the density correction has been performed on the binarized imprint image may be displayed in the message dialog.

図49は、濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その3)である。   FIG. 49 is a display screen example (No. 3) of the seal collation apparatus that displays a message indicating that the shading correction has been performed.

印影照合装置43は、図49に示すように、操作者が「印影濃淡補正」ボタンを押下することにより、印影画像生成装置41による印影画像生成処理が実行されるようにしても良い。このような場合にも、印影照合装置43は、生成した二値の印影画像を「読取印」欄に表示する。その際、図49に示したように、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、備考情報欄に表示するようにしても良い。   As shown in FIG. 49, the seal impression device 43 may execute the seal image generation process by the seal image generation device 41 when the operator presses the “imprint density correction” button. Even in such a case, the imprint verification device 43 displays the generated binary imprint image in the “reading stamp” field. At that time, as shown in FIG. 49, a message indicating that the shading correction has been performed on the binarized imprint image may be displayed in the remark information column.

図50は、濃淡補正が行われたことを示すメッセージを表示する印影照合装置の表示画面例(その4)である。   FIG. 50 is a display screen example (No. 4) of the seal collation apparatus that displays a message indicating that the shading correction has been performed.

印影照合装置43は、図49に示す例と同様、図50に示すように、操作者が「印影濃淡補正」ボタンを押下することにより、印影画像生成装置41による印影画像生成処理が実行される。その際、印影照合装置43は、生成した二値の印影画像を「読取印」欄に表示し、二値化された印影画像について濃淡補正が行われたことを示すメッセージを、メッセージダイアログに表示するようにしても良い。   As in the example shown in FIG. 49, the seal impression device 43 executes the seal image generation processing by the seal image generation device 41 when the operator presses the “imprint density correction” button as shown in FIG. . At that time, the imprint checking device 43 displays the generated binary imprint image in the “reading stamp” field, and displays a message indicating that the density correction has been performed on the binarized imprint image on the message dialog. You may make it do.

以上、本発明の実施の形態を、図面を参照しながら説明してきたが、本発明が適用される印影画像生成装置は、上述の実施の形態に限定されない。   As described above, the embodiments of the present invention have been described with reference to the drawings. However, the imprint image generating apparatus to which the present invention is applied is not limited to the above-described embodiments.

例えば、実施の形態では、円形の印影を例として説明しているが、印影は形状が点対称であれば適用可能であり、楕円形の印影、四角形の印影についても同様に濃淡補正が可能である。   For example, in the embodiment, a circular imprint is described as an example. However, an imprint can be applied if the shape is point-symmetric, and shading correction can be similarly applied to an elliptical imprint and a square imprint. is there.

以上説明したように、本発明の実施の形態によれば、濃淡に偏りがある印影でも印影全体で均一な二値化が実現される。例えば、印鑑登録においては、印鑑登録の際に、印鑑票の印鑑に濃淡がある場合でも、自動で均一に二値化されるため、操作者による二値化パラメタの調整作業を低減できる。また、印鑑照合においては、読取印が均一に二値化されることで、印鑑照合精度が向上する。照合精度が向上することで操作者による照合目視確認が容易になりオペレーション効率が向上する。また、均一な二値化が自動的に行われることで、操作者による二値化パラメタの調整作業を低減でき、オペレーション効率が向上する。また、登録印の印影イメージが均一に二値化されるため、照合操作時に照合の精度が向上され、印鑑照合及び印鑑登録の総合的な操作でオペレーション効率が向上する。   As described above, according to the embodiment of the present invention, uniform binarization is realized over the entire imprint even if the imprint is uneven in density. For example, in the seal registration, even when the seal stamp of the seal slip has a shading, it is automatically binarized evenly, so that the adjustment work of the binarization parameter by the operator can be reduced. Further, in the stamp verification, the reading stamp is uniformly binarized, so that the accuracy of the stamp verification is improved. By improving the collation accuracy, it is easy for the operator to visually check the collation and the operation efficiency is improved. In addition, since the uniform binarization is automatically performed, the adjustment work of the binarization parameter by the operator can be reduced, and the operation efficiency is improved. In addition, since the imprint image of the registration mark is uniformly binarized, the accuracy of the collation is improved during the collation operation, and the operation efficiency is improved by a comprehensive operation of the seal collation and the seal registration.

上述してきた本発明の実施の形態は、印影画像生成装置の一機能としてハードウェアまたはDSP(Digital Signal Processor)ボードやCPUボードでのファームウェアもしくはソフトウェアにより実現することができる。   The embodiment of the present invention described above can be realized by hardware or firmware or software on a DSP (Digital Signal Processor) board or CPU board as one function of the seal image generation apparatus.

また、本発明が適用される印影画像生成装置は、その機能が実行されるのであれば、上述の実施の形態に限定されることなく、単体の装置であっても、複数の装置からなるシステムあるいは統合装置であっても、LAN、WAN等のネットワークを介して処理が行なわれるシステムであってもよいことは言うまでもない。   In addition, the imprint image generating apparatus to which the present invention is applied is not limited to the above-described embodiment as long as the function is executed, and a system composed of a plurality of apparatuses even if it is a single apparatus. Needless to say, the integrated device may be a system in which processing is performed via a network such as a LAN or a WAN.

また、バスに接続されたCPU、ROMやRAMのメモリ、入力装置、出力装置、外部記録装置、媒体駆動装置、ネットワーク接続装置で構成されるシステムでも実現できる。すなわち、前述してきた実施の形態のシステムを実現するソフトェアのプログラムを記録したROMやRAMのメモリ、外部記録装置、可搬記録媒体を、印影画像生成装置に供給し、その印影画像生成装置のコンピュータがプログラムを読み出し実行することによっても、達成されることは言うまでもない。   It can also be realized by a system including a CPU, a ROM or RAM memory connected to a bus, an input device, an output device, an external recording device, a medium driving device, and a network connection device. That is, a ROM or RAM memory, an external recording device, or a portable recording medium that records a software program for realizing the system of the above-described embodiment is supplied to the imprint image generating device, and the imprint image generating device computer Needless to say, this can also be achieved by reading and executing the program.

この場合、可搬記録媒体等から読み出されたプログラム自体が本発明の新規な機能を実現することになり、そのプログラムを記録した可搬記録媒体等は本発明を構成することになる。   In this case, the program itself read from the portable recording medium or the like realizes the novel function of the present invention, and the portable recording medium or the like on which the program is recorded constitutes the present invention.

プログラムを供給するための可搬記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、DVD−ROM、DVD−RAM、磁気テープ、不揮発性のメモリーカード、ROMカード、電子メールやパソコン通信等のネットワーク接続装置(言い換えれば、通信回線)を介して記録した種々の記録媒体などを用いることができる。   Examples of portable recording media for supplying the program include flexible disks, hard disks, optical disks, magneto-optical disks, CD-ROMs, CD-Rs, DVD-ROMs, DVD-RAMs, magnetic tapes, and nonvolatile memory cards. Various recording media recorded via a network connection device (in other words, a communication line) such as a ROM card, electronic mail or personal computer communication can be used.

また、コンピュータ(情報処理装置)がメモリ上に読み出したプログラムを実行することによって、前述した実施の形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが実際の処理の一部又は全部を行ない、その処理によっても前述した実施の形態の機能が実現される。   The computer (information processing apparatus) executes the program read out on the memory, thereby realizing the functions of the above-described embodiment, and an OS running on the computer based on the instructions of the program. Performs part or all of the actual processing, and the functions of the above-described embodiments are also realized by the processing.

さらに、可搬型記録媒体から読み出されたプログラムやプログラム(データ)提供者から提供されたプログラム(データ)が、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部又は全部を行ない、その処理によっても前述した実施の形態の機能が実現され得る。   Furthermore, a program read from a portable recording medium or a program (data) provided by a program (data) provider is stored in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. After being written, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiment are realized by the processing. obtain.

すなわち、本発明は、以上に述べた実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で種々の構成又は形状を取ることができる。   That is, the present invention is not limited to the embodiments described above, and can take various configurations or shapes without departing from the gist of the present invention.

11 擦れ部分
12 滲み部分
21a、21b、21c 分割領域
30 印影制御システム
40 印影制御装置
41 印影画像生成装置
42 印影登録装置
43 印影照合装置
50 画像読取装置
60 印影データベース
70 表示装置
401 CPU(Central Processing Unit)
402 入力装置
403 出力装置
404 ROM(Read Only Memory)
405 RAM(Random Access Memory)
406 インターフェース(I/F)
407 バス
411 印影多値画像取得部
412 第1の二値化部
413 印影情報検出部
414 印影枠検出部
415 印影中心検出部
416 印影枠濃淡検出部
417 画像分割部
418 第2の二値化部
419 画像合成部
701 外周黒画素率算出中心座標B0(x0,x0)
702 外周黒画素率算出中心座標B4(x4,x4)
711、712 外周領域
801 外周黒画素率算出中心座標B3(x3,x3)
802 外周黒画素率算出中心座標B7(x7,x7)
811、812 外周領域
1101、1102、1103、1104、1105、1106、1107、1108、1109 部分領域
DESCRIPTION OF SYMBOLS 11 Rub part 12 Bleeding part 21a, 21b, 21c Division | segmentation area | region 30 Imprint control system 40 Imprint control apparatus 41 Imprint image production | generation apparatus 42 Imprint registration apparatus 43 Impression collation apparatus 50 Image reading apparatus 60 Impression database 70 Display apparatus 401 CPU (Central Processing Unit) )
402 Input device 403 Output device 404 ROM (Read Only Memory)
405 RAM (Random Access Memory)
406 Interface (I / F)
407 Bus 411 Imprint multi-value image acquisition unit 412 First binarization unit 413 Imprint information detection unit 414 Imprint frame detection unit 415 Imprint center detection unit 416 Imprint frame density detection unit 417 Image division unit 418 Second binarization unit 419 Image composition unit 701 Peripheral black pixel ratio calculation center coordinate B0 (x0, x0)
702 Peripheral black pixel ratio calculation center coordinates B4 (x4, x4)
711, 712 Outer peripheral area 801 Outer peripheral black pixel ratio calculation center coordinates B3 (x3, x3)
802: Peripheral black pixel ratio calculation center coordinate B7 (x7, x7)
811, 812 Outer peripheral area 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109 Partial area

Claims (6)

印影画像生成装置のコンピュータを、
画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を取得する印影多値画像取得手段、
前記印影多値画像取得手段によって取得された印影多値画像を予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する第1の二値化手段、
前記第1の二値化手段によって生成された印影二値画像の外周枠を検出する印影枠検出手段、
前記印影枠検出手段によって検出された外周枠の複数個所の濃淡度を検出する印影枠濃淡検出手段、
前記印影多値画像を分割して複数の部分印影多値画像を生成する画像分割手段、
前記画像分割手段によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出手段によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する第2の二値化手段、
前記第2の二値化手段によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する画像合成手段、
前記第1の二値化手段によって生成された印影二値画像の中心を検出する印影中心検出手段、
として機能させ、
前記印影枠濃淡検出手段は、前記印影中心検出手段によって検出された中心を通る直線と前記印影枠検出手段によって検出された外周枠との交点を中心とした所定領域の黒画素数に基づいて、前記外周枠の濃淡度を検出する、ことを特徴とする印影画像生成プログラム。
The computer of the imprint image generating device,
An imprint multi-value image acquisition means for acquiring an imprint multi-value image of a seal stamp stamped on a medium read by an image reader;
First binarization means for binarizing the impression multivalue image acquired by the impression multivalue image acquisition means using a predetermined first binarization threshold to generate an impression binary image;
An imprint frame detection means for detecting an outer peripheral frame of the imprint binary image generated by the first binarization means;
An imprint frame shade detection means for detecting shades at a plurality of locations on the outer peripheral frame detected by the imprint frame detection means;
Image dividing means for dividing the impression multi-value image to generate a plurality of partial impression multi-value images;
Each of the plurality of partially imprinted multi-valued images divided by the image dividing means is converted into a second second value that is different from the first binarization threshold based on the shade detected by the imprint frame shade detection means. A second binarization unit that binarizes using a binarization threshold and generates a plurality of partial imprint binary images;
Image synthesizing means for synthesizing a plurality of partial impression binary images generated by the second binarizing means to generate one synthesized binary image;
An imprint center detection means for detecting the center of the imprint binary image generated by the first binarization means;
Function as
The imprint frame shade detection means is based on the number of black pixels in a predetermined area centered on the intersection of the straight line passing through the center detected by the imprint center detection means and the outer peripheral frame detected by the imprint frame detection means. wherein detecting the density of the peripheral frame, sign shadow image generation program that is characterized in that.
印影画像生成装置のコンピュータを、
画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を取得する印影多値画像取得手段、
前記印影多値画像取得手段によって取得された印影多値画像を予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する第1の二値化手段、
前記第1の二値化手段によって生成された印影二値画像の外周枠を検出する印影枠検出手段、
前記印影枠検出手段によって検出された外周枠の複数個所の濃淡度を検出する印影枠濃淡検出手段、
前記印影多値画像を分割して複数の部分印影多値画像を生成する画像分割手段、
前記画像分割手段によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出手段によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する第2の二値化手段、
前記第2の二値化手段によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する画像合成手段、
前記第1の二値化手段によって生成された印影二値画像の中心を検出する印影中心検出手段、
として機能させ、
前記印影枠濃淡検出手段は、前記印影中心検出手段によって検出された中心を通る直線と前記印影枠検出手段によって検出された外周枠との交点の前記直線方向の黒画素数に基づいて、前記外周枠の濃淡度を検出する、ことを特徴とする印影画像生成プログラム。
The computer of the imprint image generating device,
An imprint multi-value image acquisition means for acquiring an imprint multi-value image of a seal stamp stamped on a medium read by an image reader;
First binarization means for binarizing the impression multivalue image acquired by the impression multivalue image acquisition means using a predetermined first binarization threshold to generate an impression binary image;
An imprint frame detection means for detecting an outer peripheral frame of the imprint binary image generated by the first binarization means;
An imprint frame shade detection means for detecting shades at a plurality of locations on the outer peripheral frame detected by the imprint frame detection means;
Image dividing means for dividing the impression multi-value image to generate a plurality of partial impression multi-value images;
Each of the plurality of partially imprinted multi-valued images divided by the image dividing means is converted into a second second value that is different from the first binarization threshold based on the shade detected by the imprint frame shade detection means. A second binarization unit that binarizes using a binarization threshold and generates a plurality of partial imprint binary images;
Image synthesizing means for synthesizing a plurality of partial impression binary images generated by the second binarizing means to generate one synthesized binary image;
An imprint center detection means for detecting the center of the imprint binary image generated by the first binarization means;
Function as
The imprint frame grayscale detection means is based on the number of black pixels in the linear direction at the intersection of the straight line passing through the center detected by the imprint center detection means and the outer peripheral frame detected by the imprint frame detection means. detecting the density of the frame, sign shadow image generation program that is characterized in that.
前記画像分割手段は、前記印影枠濃淡検出手段によって検出された黒画素数が最多である前記交点を求めた前記直線と直交する直線によって、前記印影多値画像を分割して部分印影多値画像を生成する、ことを特徴とする請求項に記載の印影画像生成プログラム。 The image dividing means divides the imprint multi-value image by a straight line orthogonal to the straight line obtained from the intersection where the number of black pixels detected by the imprint frame shade detection means is the largest, and a partial imprint multi-value image The imprint image generation program according to claim 2 , wherein: 前記画像分割手段は、前記印影中心検出手段によって検出された中心を通る直線によって、前記印影多値画像を分割して部分印影多値画像を生成する、ことを特徴とする請求項に記載の印影画像生成プログラム。 Said image splitting means by a straight line passing through the center detected by the seal impression center detection means, said print image to generate a divided and partial imprint multivalued image multivalued image, according to claim 2, characterized in that Imprint image generation program. 印影画像生成装置において実行される印影画像生成方法であって、
画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を、予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成し、
前記生成された印影二値画像の外周枠を検出し、
前記生成された印影二値画像の中心を検出し、
前記検出された中心を通る直線と前記検出された外周枠との交点を中心とした所定領域の黒画素数に基づいて、前記検出された外周枠の複数個所の濃淡度を検出し、
前記印影多値画像を分割して複数の部分印影多値画像を生成し、
前記分割された複数の部分印影多値画像のそれぞれを、前記検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成し、
前記生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する、
ことを特徴とする印影画像生成方法。
An imprint image generation method executed in an imprint image generation apparatus,
A seal imprint multi-valued image of a seal stamp imprinted on a medium read by the image reading device is binarized using a predetermined first binarization threshold value to generate an imprint binary image.
Detecting an outer peripheral frame of the generated imprint binary image,
Detecting the center of the generated imprint binary image;
Based on the number of black pixels in a predetermined region centered on the intersection of the detected straight line and the detected outer peripheral frame, the intensity of a plurality of locations of the detected outer peripheral frame is detected,
Dividing the impression multi-value image to generate a plurality of partial impression multi-value images;
Each of the divided partial impression multi-value images is binarized using a second binarization threshold different from the first binarization threshold based on the detected gray level. Generate multiple partial imprint binary images,
Combining the plurality of generated partial imprint binary images to generate one composite binary image;
An imprint image generation method characterized by the above.
印影画像生成装置において、
画像読取装置で読み取った媒体上に押印された印鑑の印影多値画像を取得する印影多値画像取得部と、
前記印影多値画像取得部によって取得された印影多値画像を予め定めた第1の二値化閾値を用いて二値化して印影二値画像を生成する第1の二値化部と、
前記第1の二値化部によって生成された印影二値画像の外周枠を検出する印影枠検出部と、
前記第1の二値化部によって生成された印影二値画像の中心を検出する印影中心検出部と、
前記印影中心検出部によって検出された中心を通る直線と前記印影枠検出部によって検出された外周枠との交点を中心とした所定領域の黒画素数に基づいて、前記印影枠検出部によって検出された外周枠の複数個所の濃淡度を検出する印影枠濃淡検出部と、
前記印影多値画像を分割して複数の部分印影多値画像を生成する画像分割部と、
前記画像分割部によって分割された複数の部分印影多値画像のそれぞれを、前記印影枠濃淡検出部によって検出された濃淡度に基づいて、前記第1の二値化閾値とは異なる第2の二値化閾値を用いて二値化して複数の部分印影二値画像を生成する第2の二値化部と、
前記第2の二値化部によって生成された複数の部分印影二値画像を合成して1つの合成二値画像を生成する画像合成部と、
を備えることを特徴とする印影画像生成装置。
In an imprint image generating device,
An imprint multi-value image acquisition unit for acquiring an imprint multi-value image of a seal stamp stamped on a medium read by an image reading device;
A first binarization unit that binarizes the impression multi-value image acquired by the impression multi-value image acquisition unit using a predetermined first binarization threshold to generate an imprint binary image;
An imprint frame detection unit for detecting an outer peripheral frame of the imprint binary image generated by the first binarization unit;
An imprint center detection unit for detecting a center of an imprint binary image generated by the first binarization unit;
Detected by the imprint frame detection unit based on the number of black pixels in a predetermined area centered on the intersection of the straight line passing through the center detected by the imprint center detection unit and the outer frame detected by the imprint frame detection unit. An imprint frame shade detection unit for detecting shades at a plurality of locations on the outer peripheral frame;
An image dividing unit that divides the impression multi-value image to generate a plurality of partial impression multi-value images;
Each of the plurality of partially imprinted multi-value images divided by the image dividing unit is converted into a second second value that is different from the first binarization threshold value based on the shade detected by the imprint frame shade detection unit. A second binarization unit that binarizes using a binarization threshold and generates a plurality of partial imprint binary images;
An image combining unit that combines a plurality of partial impression binary images generated by the second binarization unit to generate one combined binary image;
An imprint image generating apparatus comprising:
JP2014195102A 2014-09-25 2014-09-25 Imprint image generation program, imprint image generation method, and imprint image generation apparatus Expired - Fee Related JP6309867B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014195102A JP6309867B2 (en) 2014-09-25 2014-09-25 Imprint image generation program, imprint image generation method, and imprint image generation apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014195102A JP6309867B2 (en) 2014-09-25 2014-09-25 Imprint image generation program, imprint image generation method, and imprint image generation apparatus

Publications (2)

Publication Number Publication Date
JP2016066268A JP2016066268A (en) 2016-04-28
JP6309867B2 true JP6309867B2 (en) 2018-04-11

Family

ID=55804217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014195102A Expired - Fee Related JP6309867B2 (en) 2014-09-25 2014-09-25 Imprint image generation program, imprint image generation method, and imprint image generation apparatus

Country Status (1)

Country Link
JP (1) JP6309867B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59154577A (en) * 1983-02-23 1984-09-03 Omron Tateisi Electronics Co Binary coding device of pattern collating device
JPH07282256A (en) * 1994-04-06 1995-10-27 Sanyo Electric Co Ltd Seal matching device and angle positioning device for two body images
JP5860791B2 (en) * 2012-10-16 2016-02-16 富士通フロンテック株式会社 Imprint image binarization processing device

Also Published As

Publication number Publication date
JP2016066268A (en) 2016-04-28

Similar Documents

Publication Publication Date Title
CN110659647B (en) Seal image identification method and device, intelligent invoice identification equipment and storage medium
US10366309B2 (en) Image quality assessment and improvement for performing optical character recognition
US11710210B1 (en) Machine-learning for enhanced machine reading of non-ideal capture conditions
US10984284B1 (en) Synthetic augmentation of document images
US6807304B2 (en) Feature recognition using loose gray scale template matching
Mohammad et al. Optical character recognition implementation using pattern matching
CN102722881B (en) Operationally process the method and system of monochromatic image data
US7295694B2 (en) MICR-based optical character recognition system and method
US10198661B2 (en) System for determining alignment of a user-marked document and method thereof
CN110222694B (en) Image processing method, image processing device, electronic equipment and computer readable medium
AU2017410934B2 (en) Detecting orientation of textual documents on a live camera feed
AU2017423339B2 (en) Simulating image capture
US9959475B2 (en) Table data recovering in case of image distortion
CN113112567B (en) Method, device, electronic device and storage medium for generating editable flow chart
CN112949455A (en) Value-added tax invoice identification system and method
CN114821615A (en) Picture text recognition method, device and equipment
US20110206268A1 (en) Optical waveform generation and use based on print characteristics for MICR data of paper documents
US20120275685A1 (en) Dynamic print contrast signal determination for paper documents
JP6309867B2 (en) Imprint image generation program, imprint image generation method, and imprint image generation apparatus
CN120580701A (en) Document anti-counterfeiting detection method, device, equipment and medium based on stroke comparison
JP5742367B2 (en) Image processing apparatus and image processing program
Udvaros et al. Recognize and decode QR codes from images
JP2985893B2 (en) Pattern recognition device
CN109190735B (en) A two-dimensional code generation method, system and device for cylindrical surface
JP7613644B1 (en) PROGRAM, INFORMATION PROCESSING METHOD AND INFORMATION PROCESSING APPARATUS

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160829

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170808

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171002

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: 20180313

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180315

R150 Certificate of patent or registration of utility model

Ref document number: 6309867

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees