JP2018147371A - Seal impression deterioration determining program, seal impression verifying apparatus, and seal impression deterioration determining method - Google Patents

Seal impression deterioration determining program, seal impression verifying apparatus, and seal impression deterioration determining method Download PDF

Info

Publication number
JP2018147371A
JP2018147371A JP2017043941A JP2017043941A JP2018147371A JP 2018147371 A JP2018147371 A JP 2018147371A JP 2017043941 A JP2017043941 A JP 2017043941A JP 2017043941 A JP2017043941 A JP 2017043941A JP 2018147371 A JP2018147371 A JP 2018147371A
Authority
JP
Japan
Prior art keywords
pixel
seal
value
image
deterioration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017043941A
Other languages
Japanese (ja)
Other versions
JP6660332B2 (en
Inventor
隆太 中澤
Ryuta Nakazawa
隆太 中澤
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 JP2017043941A priority Critical patent/JP6660332B2/en
Publication of JP2018147371A publication Critical patent/JP2018147371A/en
Application granted granted Critical
Publication of JP6660332B2 publication Critical patent/JP6660332B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Collating Specific Patterns (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a seal impression deterioration determining program which can automatically detect deterioration of seal impression so as to prompt an operator to re-register the registered seal impression.SOLUTION: A computer is made to execute the steps of: comparing a pixel of a registered seal impression image with a pixel of a read seal impression image corresponding to the pixel and setting a predetermined value for each pixel as a value of the pixel according to a comparison result; adding, in each pixel, a value of the pixel set in an accumulated value obtained by accumulating, for each pixel, the value of the pixels and comparing, for each pixel, the added accumulated value with a predetermined threshold so as to set, based on the comparison result, a deterioration flag indicating whether or not there is deterioration; and determining, based on the set deterioration flag, whether or not the seal impression is deteriorated.SELECTED DRAWING: Figure 9

Description

本発明は、印影画像を照合する印影照合装置における印鑑劣化判定プログラムに関する。   The present invention relates to a seal stamp deterioration determination program in a seal stamp collating apparatus that collates stamp images.

印鑑照合システムでは、二値イメージの登録印影(届出印影)と二値イメージの読取印影を重ね合わせることで印鑑の照合を行う(下記の特許文献1を参照)。印鑑照合システムでは、プログラム処理によって二つの印影画像が最も重なる条件を探し出し、自動で印影の重ね合わせを行う。また、印鑑照合システムでは、その重なり具合を数値化した一致率を算出し、算出された一致率に基づいて印鑑の照合を行うことも可能である。   In the seal collation system, the seal stamp is collated by superimposing the registered imprint (report imprint) of the binary image and the read imprint of the binary image (see Patent Document 1 below). In the seal stamp verification system, a program process is performed to find a condition in which two seal images overlap most, and the seal is automatically superimposed. In the seal collation system, it is also possible to calculate a coincidence rate obtained by quantifying the degree of overlap and collate the seal based on the calculated coincidence rate.

一度登録した登録印影は電子情報として印影データベースに保管されるため、いつ参照しても同じ印影画像が得られる。一方、登録印影と照合を行う読取印影の画像は、帳票等に捺された印影を読取機器(スキャナ、OHR等)で読み取ることによって取得される。そのため、押印の仕方(濃い、薄い、擦れ、滲みなど)や印鑑の劣化(欠け、目詰まり、破損など)により読取印影画像は都度変化する。押印の仕方が悪い場合や印鑑が劣化している場合、読取印影の状態は悪くなるため、照合精度の低下や一致率の低下を引き起こし、読取印影の再取得が生じる等、業務オペレーションの効率が悪化する問題がある。特に印鑑の劣化は恒久的な照合精度の低下を招いてしまう。印鑑の劣化による照合精度の低下を防ぐには登録印影の再登録させる必要がある。   Since the registered seal image once registered is stored in the seal image database as electronic information, the same seal image can be obtained whenever it is referred to. On the other hand, a read imprint image to be compared with a registered imprint is obtained by reading a seal imprinted on a form or the like with a reading device (scanner, OHR, etc.). For this reason, the read imprint image changes each time depending on the method of stamping (dark, thin, rubbing, bleeding, etc.) and the deterioration of the seal (chips, clogging, breakage, etc.). If the method of stamping is poor or the seal is deteriorated, the status of the scanned imprint will be worse, causing the collation accuracy and matching rate to decrease, resulting in the re-acquisition of the scanned imprint, etc. There is a problem that gets worse. In particular, the deterioration of the seal results in a permanent decrease in collation accuracy. In order to prevent a decrease in verification accuracy due to deterioration of the seal, it is necessary to re-register the registered seal.

特開2000−30059号公報JP 2000-30059 A

しかし、一致率による照合は、画像全体で画素がどれだけ重なっているかを算出した一致率に基づいて登録印影と読取印影が一致しているか否かを判定するものであり、印鑑のどの部分に欠けなどの劣化があるかの検出は業務オペレーションの中では困難であった。   However, the matching based on the matching rate is to determine whether the registered imprint and the reading imprint match based on the matching rate calculated how many pixels overlap in the entire image. It was difficult to detect whether there was deterioration such as chipping in business operations.

本発明は、上記課題に鑑み、印鑑の劣化を自動検出して、オペレータに登録印影の再登録を促すことを可能とする印鑑劣化判定プログラムを提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a seal deterioration determination program that can automatically detect deterioration of a seal and prompt an operator to re-register a registered seal.

上記目的を達成するために、本発明は、登録印影画像と読取印影画像の照合により印鑑の劣化を判定する印鑑劣化判定プログラムであって、前記登録印影画像の画素と、前記画素に対応する前記読取印影画像の画素とを比較し、比較結果に応じて所定の値を前記画素の値として画素ごとに設定するステップと、前記画素の値を画素ごとに蓄積した蓄積値に前記設定された画素の値を画素ごとに加算し、加算された前記蓄積値と所定の閾値を画素ごとに比較し、比較結果に基づいて劣化の有無を示す劣化フラグを設定するステップと、設定された前記劣化フラグに基づいて前記印鑑が劣化しているか否かを判定するステップとを、コンピュータに実行させることを特徴とする。   In order to achieve the above object, the present invention provides a seal deterioration determination program for determining deterioration of a seal by comparing a registered seal image and a read seal image, wherein the registration seal image includes pixels corresponding to the pixels. Comparing the pixels of the read impression image and setting a predetermined value for each pixel as a value of the pixel according to the comparison result; and the pixel set to the accumulated value obtained by accumulating the pixel value for each pixel For each pixel, comparing the added accumulated value with a predetermined threshold value for each pixel, setting a deterioration flag indicating the presence or absence of deterioration based on the comparison result, and the set deterioration flag And causing the computer to execute a step of determining whether or not the seal is deteriorated based on the above.

また、本発明の印鑑劣化判定プログラムにおいて、前記登録印影画像を複数の画素を含むグリッドに分け、前記グリッド内における劣化有りを示す前記劣化フラグの数に基づいて前記印鑑が劣化しているか否かを判定することは、好ましい態様である。   Further, in the seal degradation determination program of the present invention, the registered seal image is divided into a grid including a plurality of pixels, and whether or not the seal is degraded based on the number of degradation flags indicating the presence of degradation in the grid. Is a preferred embodiment.

また、本発明の印鑑劣化判定プログラムにおいて、前記設定された画素の値が画素不一致を示す値である場合、前記蓄積値に前記設定された画素の値を加算することは、好ましい態様である。   Moreover, in the seal stamp deterioration determination program of the present invention, when the set pixel value is a value indicating pixel mismatch, it is a preferable aspect to add the set pixel value to the accumulated value.

また、本発明の印鑑劣化判定プログラムにおいて、前記蓄積値に前記設定された画素の値を加算する際、前記設定された画素の値と同じ値を有する周辺画素の数が所定の加算閾値以上の場合、前記蓄積値に前記設定された画素の値を加算することは、好ましい態様である。   In the seal deterioration determination program of the present invention, when adding the value of the set pixel to the accumulated value, the number of peripheral pixels having the same value as the set pixel value is equal to or greater than a predetermined addition threshold value. In this case, it is a preferable aspect to add the set pixel value to the accumulated value.

また、本発明の印鑑劣化判定プログラムにおいて、前記印鑑が劣化していると判定された場合、前記画素ごとに蓄積した前記蓄積値に基づいて印鑑劣化注意喚起画像を生成し、表示装置へ表示させるステップを更に有することは、好ましい態様である。   Further, in the seal stamp deterioration determination program of the present invention, when it is determined that the seal stamp is deteriorated, a seal stamp deterioration warning image is generated based on the accumulated value accumulated for each pixel and displayed on the display device. Having further steps is a preferred embodiment.

また、本発明は、登録印影画像と読取印影画像の照合により印鑑の劣化を判定する印影照合装置であって、前記登録印影画像の画素と、前記画素に対応する前記読取印影画像の画素とを比較し、比較結果に応じて所定の値を前記画素の値として画素ごとに設定する比較設定部と、前記画素の値を画素ごとに蓄積した蓄積値に前記設定された画素の値を画素ごとに加算し、加算された前記蓄積値と所定の閾値を画素ごとに比較し、比較結果に基づいて劣化の有無を示す劣化フラグを設定する設定部と、設定された前記劣化フラグに基づいて前記印鑑が劣化しているか否かを判定する判定部とを、備えることを特徴とする。   The present invention is also an imprint collation apparatus for judging deterioration of a seal by collating a registered imprint image with a read imprint image, wherein a pixel of the registered imprint image and a pixel of the read imprint image corresponding to the pixel are obtained. A comparison setting unit configured to compare and set a predetermined value for each pixel as a value of the pixel according to a comparison result; and to set an accumulated value obtained by accumulating the pixel value for each pixel to set the set pixel value for each pixel. A setting unit configured to compare the added accumulated value with a predetermined threshold value for each pixel and set a deterioration flag indicating the presence / absence of deterioration based on a comparison result, and based on the set deterioration flag, And a determination unit that determines whether or not the seal is deteriorated.

また、本発明は、登録印影画像と読取印影画像の照合により印鑑の劣化を判定する印鑑劣化判定方法であって、前記登録印影画像の画素と、前記画素に対応する前記読取印影画像の画素とを比較し、比較結果に応じて所定の値を前記画素の値として画素ごとに設定するステップと、前記画素の値を画素ごとに蓄積した蓄積値に前記設定された画素の値を画素ごとに加算し、加算された前記蓄積値と所定の閾値を画素ごとに比較し、比較結果に基づいて劣化の有無を示す劣化フラグを設定するステップと、設定された前記劣化フラグに基づいて前記印鑑が劣化しているか否かを判定するステップとを、有することを特徴とする。   The present invention is also a seal deterioration determination method for determining deterioration of a seal by comparing a registered imprint image and a read imprint image, the pixel of the registered imprint image, the pixel of the read imprint image corresponding to the pixel, and And setting a predetermined value for each pixel as a value of the pixel according to a comparison result, and setting the pixel value for each pixel to an accumulated value obtained by accumulating the pixel value for each pixel. Adding, comparing the added accumulated value and a predetermined threshold for each pixel, setting a deterioration flag indicating the presence or absence of deterioration based on the comparison result, and the seal stamp based on the set deterioration flag And determining whether or not it has deteriorated.

本発明によれば、印鑑の劣化を自動検出して、オペレータに届出印影の再登録を促すことを可能とする。   According to the present invention, it is possible to automatically detect deterioration of a seal and prompt an operator to re-register a registered seal.

実施の形態における印鑑劣化判定プログラムを実装する印影照合装置を含む印鑑照合システムの構成の一例を示す図である。It is a figure which shows an example of a structure of the seal stamp collation system containing the seal stamp collation apparatus which mounts the seal stamp deterioration determination program in embodiment. 実施の形態における印影照合装置の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the stamp collation apparatus in embodiment. 印鑑劣化注意喚起画像の一例を示す図である。It is a figure which shows an example of a seal stamp deterioration alerting image. 印鑑劣化注意喚起画像の一例を示す図である。It is a figure which shows an example of a seal stamp deterioration alerting image. 印影画像管理テーブルの一例を示す図である。It is a figure which shows an example of the imprint image management table. 照合結果情報テーブルの一例を示す図である。It is a figure which shows an example of a collation result information table. 照合結果画素管理テーブルの一例を示す図である。It is a figure which shows an example of a collation result pixel management table. 不一致情報テーブルの一例を示す図である。It is a figure which shows an example of a mismatch information table. 動作環境テーブルの一例を示す図である。It is a figure which shows an example of an operating environment table. 実施の形態における印影制御装置における印鑑劣化判定のフローを示すフローチャートである。It is a flowchart which shows the seal | sticker deterioration determination flow in the seal imprint control apparatus in embodiment. 実施の形態における印影画像重ね合わせ処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the imprint image superimposition process in embodiment. 実施の形態における印影照合結果画像生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the seal impression result image generation process in embodiment. 実施の形態における印影照合結果画像生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the seal impression result image generation process in embodiment. 実施の形態における不一致フラグの値の格納順を説明するための図である。It is a figure for demonstrating the storage order of the value of a mismatch flag in embodiment. 実施例1における不一致情報集計処理のサブルーチンを示すフローチャートである。6 is a flowchart illustrating a subroutine of mismatch information aggregation processing according to the first embodiment. 実施例1における不一致情報集計処理のサブルーチンを示すフローチャートである。6 is a flowchart illustrating a subroutine of mismatch information aggregation processing according to the first embodiment. 実施例2における不一致情報集計処理のサブルーチンを示すフローチャートである。10 is a flowchart illustrating a subroutine of mismatch information aggregation processing according to the second embodiment. 実施例2における不一致情報集計処理のサブルーチンを示すフローチャートである。10 is a flowchart illustrating a subroutine of mismatch information aggregation processing according to the second embodiment. 実施の形態における印鑑劣化判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the stamp deterioration determination process in embodiment. 実施の形態における印鑑劣化判定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the stamp deterioration determination process in embodiment. 実施の形態におけるグリッドの一例を説明するための図である。It is a figure for demonstrating an example of the grid in embodiment. 実施の形態における他のグリッドの一例を説明するための図である。It is a figure for demonstrating an example of the other grid in embodiment. 実施の形態における印鑑劣化注意喚起画像生成処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the stamp deterioration alerting image generation process in embodiment. 印鑑劣化未検出時における登録印影二値画像、読取印影多値画像、印影照合結果画像の表示例を示す図である。It is a figure which shows the example of a display of the registration stamp binary image, the reading stamp multi-value image, and a seal stamp collation result image at the time of seal stamp degradation non-detection. 印鑑劣化検出時における登録印影二値画像、読取印影多値画像、印影照合結果画像の表示例を示す図である。It is a figure which shows the example of a display of the registration stamp binary image at the time of seal stamp degradation detection, a reading stamp multi-value image, and a seal stamp collation result image. 印鑑劣化検出時における登録印影二値画像、読取印影多値画像、印影照合結果画像の表示例を示す図である。It is a figure which shows the example of a display of the registration stamp binary image at the time of seal stamp degradation detection, a reading stamp multi-value image, and a seal stamp collation result image. 実施の形態における印影照合装置を実現するためのハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions for implement | achieving the seal | sticker collation apparatus in embodiment.

以下、実施の形態について図面を参照して説明する。まず、実施の形態における印鑑劣化判定プログラムを実装する印影照合装置を含む印鑑照合システムの一例について図1を用いて説明する。印鑑照合システム1は、印影制御装置2と、画像読取装置3と、印影データベース4と、表示装置5から構成されている。印影制御装置2は、画像読取装置3及び印影データベース4に接続されている。印影制御装置2は印影検索装置20と印影照合装置21をさらに備える。   Hereinafter, embodiments will be described with reference to the drawings. First, an example of a seal collation system including a seal collation apparatus that implements a seal degradation determination program according to an embodiment will be described with reference to FIG. The seal stamp verification system 1 includes a seal impression control device 2, an image reading device 3, a seal impression database 4, and a display device 5. The imprint control device 2 is connected to the image reading device 3 and the imprint database 4. The imprint control device 2 further includes an imprint search device 20 and an imprint collation device 21.

画像読取装置3は、印影照合(印鑑照合とも言う)を行う際に、帳票などに押印された読取印の印影を読み取るものである。画像読取装置3としては、例えば不図示の読取台に置かれた帳票の読取印を上部から不図示のカメラで撮影してカラーイメージデータとして読み取るOHR(オーバーヘッドリーダ)やスキャナなどである。   The image reading device 3 reads an imprint of a reading mark stamped on a form or the like when performing seal imprint collation (also referred to as seal collation). The image reading device 3 is, for example, an OHR (overhead reader) or a scanner that reads a reading mark of a form placed on a reading table (not shown) by a camera (not shown) and reads it as color image data.

印影データベース4は、顧客名、住所、口座番号、店番号などを含む顧客の口座識別情報に、あらかじめ登録された登録印の印影画像を関連付けて記憶している。なお、印影データベース4は、印影制御装置2内にあってもよい。   The seal imprint database 4 stores a seal image of a registered seal registered in advance in association with customer account identification information including a customer name, address, account number, store number, and the like. The imprint database 4 may be in the imprint control apparatus 2.

表示装置5は、各種情報を表示するものであって、例えば印鑑劣化の判定結果(図18Aから図18Cや図3A、図3Bに示す画像)など表示する。また、表示装置5は、印影制御装置2を操作するために必要な情報(ID番号及びパスワードなど)を入力させるための入力画面などを表示するようにしてもよい。なお、表示装置5は印影制御装置2と一体であってもよく、一体ではなく接続可能であってもよい。   The display device 5 displays various types of information, and displays, for example, seal stamp deterioration determination results (images shown in FIGS. 18A to 18C, FIGS. 3A, and 3B). The display device 5 may display an input screen for inputting information (ID number, password, etc.) necessary for operating the seal imprint control device 2. The display device 5 may be integrated with the imprint control device 2, or may be connected instead of being integrated.

印影制御装置2は、印影照合を行う際にオペレータ(例えば、金融機関の職員など)が使用する端末で、印影照合を行う主要な装置であり、上述したように印影検索装置20、印影照合装置21から構成されている。   The imprint control device 2 is a main device that performs imprint collation at a terminal used by an operator (for example, a staff member of a financial institution) when performing imprint collation. As described above, the imprint search device 20 and the imprint collation device. 21.

印影検索装置20は、例えば印影照合装置21の不図示の入力部(キーボードなど)を介して入力された帳票上の口座番号をキーとして、口座番号と登録印の印影画像とを関連付けて記憶する印影データベース4を検索する。印影検索装置20は、検索して該当する登録印の印影画像があった場合、その登録印の印影画像を印影データベース4から読み出す。印影検索装置20は、読み出した登録印の印影画像(登録印影二値画像)を後述する記憶部21fに格納された印影画像管理テーブル40に印影画像バイナリデータとして記録する。印影画像管理テーブル40については後述する。   The imprint search device 20 stores an account number and a seal image of a registration stamp in association with each other using, for example, an account number on a form input via an input unit (such as a keyboard) (not shown) of the imprint verification device 21 as a key. The imprint database 4 is searched. The imprint search device 20 reads the imprint image of the registered mark from the imprint database 4 when there is an imprint image of the corresponding registered mark as a result of the search. The imprint search device 20 records the read imprint image (registered imprint binary image) of the registered stamp as imprint image binary data in the imprint image management table 40 stored in the storage unit 21f described later. The imprint image management table 40 will be described later.

印影照合装置21は、画像読取装置3によって読み取られた読取印の印影画像と、印影検索装置20によって取得された登録印の印影画像とを照合し、照合結果を表示装置5に表示させる。また、印影照合装置21は、照合した結果に基づいて印鑑の劣化があるか否かを判定する。印鑑の劣化の判定方法については後述する。   The imprint collation device 21 collates the imprint image of the read stamp read by the image reading device 3 with the imprint image of the registered stamp acquired by the imprint search device 20 and causes the display device 5 to display the collation result. Also, the seal collation device 21 determines whether or not there is a seal deterioration based on the collation result. A method for determining the deterioration of the seal will be described later.

ここで、実施の形態における印影照合装置21の機能ブロックの一例について図2を用いて説明する。印影照合装置21は、印影多値画像取得部21a、印影画像重ね合わせ処理部21b、印影照合画像生成部(比較設定部とも言う)21c、不一致情報集計部(設定部及び判定部とも言う)21d、印鑑劣化注意喚起画像生成部21e、記憶部21fから構成されている。これらの機能ブロックの連携によって印鑑の劣化の判定が行われる。   Here, an example of a functional block of the seal collation apparatus 21 in the embodiment will be described with reference to FIG. The imprint verification device 21 includes an imprint multi-value image acquisition unit 21a, an imprint image overlay processing unit 21b, an imprint verification image generation unit (also referred to as a comparison setting unit) 21c, and a mismatch information totaling unit (also referred to as a setting unit and a determination unit) 21d. , A seal deterioration warning image generating unit 21e and a storage unit 21f. Determination of deterioration of the seal is performed by cooperation of these functional blocks.

印影多値画像取得部21aは、画像読取装置3によって読み取られた読取印の印影画像を取得する。より具体的には、印影多値画像取得部21aは画像読取装置3によって読み取られた読取印の印影多値画像(読取印影多値画像)を取得し、記憶部21fの印影画像管理テーブル40に印影画像バイナリデータとして格納する。   The imprint multi-valued image acquisition unit 21 a acquires an imprint image of a reading stamp read by the image reading device 3. More specifically, the imprint multi-value image acquisition unit 21a acquires an imprint multi-value image (read imprint multi-value image) of the read mark read by the image reading device 3, and stores it in the imprint image management table 40 of the storage unit 21f. Store as seal image binary data.

印影画像重ね合わせ処理部21bは、印影多値画像取得部21aによって格納された読取印影多値画像と、読取印影多値画像に対応する登録印影二値画像とを印影画像管理テーブル40から取得する。印影画像重ね合わせ処理部21bは、取得した読取印影多値画像を二値化処理、すなわち濃淡のある読取印影多値画像を白と黒の2階調に変換処理して読取印影二値画像を生成し、印影画像管理テーブルにバイナリデータとして格納する。階調とは濃淡のレベル(度合い)を示すものであり、二値画像の場合には階調は白と黒の2階調となる。ここでの二値化処理は、上述したように読取印影多値画像を白と黒の2階調に変換処理するものであり、公知の二値化技術を用いて行うものであるため詳細な説明は省略する。   The imprint image overlay processing unit 21b acquires the read imprint multi-value image stored by the imprint image multi-value image acquisition unit 21a and the registered imprint binary image corresponding to the read imprint multi-value image from the imprint image management table 40. . The imprint image overlay processing unit 21b binarizes the acquired read imprint multilevel image, that is, converts the read imprint multilevel image with shading into two gradations of white and black, and converts the read imprint binary image into a binary image. Generated and stored as binary data in the seal image management table. The gradation indicates the level (degree) of shading. In the case of a binary image, the gradation is two gradations of white and black. As described above, the binarization process here is a process for converting a read and imprinted multilevel image into two gradations of white and black, and is performed using a known binarization technique. Description is omitted.

また、印影画像重ね合わせ処理部21bは、登録印影二値画像と読取印影二値画像を重ね合わせ、一致率が最大となる場合の読取印影二値画像の中心座標(読取印影画像照合中心座標(Xdo、Ydo))を算出する。このとき、登録印影二値画像の中心座標(Xgo、Ygo)も同時に算出する。また、印影画像重ね合わせ処理部21bは、上記一致率が最大となる場合の読取印影二値画像の回転角度rdoを算出する。この回転角度rdoは読取印影二値画像の読取時の位置を基準にしてどの程度回転したかを示すものである。なお、中心座標や回転角度の算出は従来の画像重ね合わせ技術における手法によるものであるため、詳細については説明を省略する。   The imprint image overlay processing unit 21b superimposes the registered imprint binary image and the read imprint binary image, and the center coordinates of the read imprint binary image (read imprint image collation center coordinate ( Xdo, Ydo)). At this time, the center coordinates (Xgo, Ygo) of the registered stamp binary image are also calculated. The imprint image overlay processing unit 21b calculates the rotation angle rdo of the read imprint binary image when the coincidence rate is maximized. The rotation angle rdo indicates how much the read seal imprint binary image has been rotated with reference to the position at the time of reading. Note that the calculation of the center coordinates and the rotation angle is based on a method in the conventional image superposition technique, and thus the details are omitted.

算出された読取印影画像照合中心座標(Xdo、Ydo)、読取印影二値画像回転角度rdo、登録印影二値画像の中心座標(Xgo、Ygo)は、記録部21fに格納された後述する照合結果情報テーブル50に格納される。   The calculated read imprint image collation center coordinates (Xdo, Ydo), read imprint binary image rotation angle rdo, and registered imprint binary image center coordinates (Xgo, Ygo) are collation results described later stored in the recording unit 21f. It is stored in the information table 50.

印影照合画像生成部21cは、照合結果情報テーブル50に記録された登録印影二値画像の中心座標(Xgo、Ygo)と、読取印影画像照合中心座標(Xdo、Ydo)及び読取印影画像回転角度rdoとを取得する。印影照合画像生成部21cは、取得した登録印影二値画像の中心座標(Xgo、Ygo)に、印影画像管理テーブルから取得した読取印影二値画像の中心座標(Xdo、Ydo)を合わせ、取得した回転角度rdoだけ読取印影二値画像を回転させて照合用読取印影二値画像を生成する。生成された照合用読取印影二値画像は、印影画像管理テーブル40にバイナリデータとして格納される。   The imprint verification image generation unit 21c, the center coordinates (Xgo, Ygo) of the registered imprint binary image recorded in the verification result information table 50, the read imprint image verification center coordinates (Xdo, Ydo), and the read imprint image rotation angle rdo. And get. The imprint verification image generation unit 21c acquires the center coordinates (Xgo, Ygo) of the read imprint image management table acquired from the imprint image management table and the center coordinates (Xgo, Ygo) of the acquired registered imprint binary image. The read imprint binary image is rotated by the rotation angle rdo to generate a collated read imprint binary image. The generated read imprint binary image for verification is stored as binary data in the imprint image management table 40.

印影照合画像生成部21cは、さらに、登録印影二値画像と読取印影二値画像の対応する画素(対比する画素)同士において、黒画素又は白画素で一致するか否かを判定する。すなわち、画素間で階調が相違しているか否かを判定している。   The imprint verification image generation unit 21c further determines whether or not the corresponding pixels (the pixels to be compared) in the registered imprint binary image and the read imprint binary image match with each other in the black pixel or the white pixel. That is, it is determined whether or not the gradation is different between the pixels.

黒画素又は白画素で一致する(階調が一致する)場合には、印影照合画像生成部21cは後述する照合結果画素管理テーブル60の不一致フラグに0を格納する。一方、黒画素又は白画素で一致しない(階調が一致しない)場合、印影照合画像生成部21cは読取印影二値画像の画素が黒画素であるか否かを判定する。黒画素である場合、照合結果画素管理テーブル60の不一致フラグに1を格納する。この場合、登録印影二値画像の画素が白画素であるため、印鑑の目詰まり(印鑑の劣化)や滲みが原因と思われる。   In the case where black pixels or white pixels match (tones match), the seal impression image generation unit 21c stores 0 in a mismatch flag of a matching result pixel management table 60 described later. On the other hand, if the black pixels or the white pixels do not match (the gradations do not match), the imprint verification image generation unit 21c determines whether the pixel of the read imprint binary image is a black pixel. If it is a black pixel, 1 is stored in the mismatch flag of the matching result pixel management table 60. In this case, since the pixel of the registered seal imprint binary image is a white pixel, it is considered that the seal is clogged (degradation of the seal) or bleeding.

また、印影照合画像生成部21cが白画素であると判定した場合には、照合結果画素管理テーブル60の不一致フラグに−1を格納する。この場合、登録印影二値画像の画素が黒画素であるため、印鑑の欠け・破損(印鑑の劣化)や擦れが原因と思われる。なお、ここでは、階調が一致しない場合、読取印影二値画像の画素が黒画素であるか否かを判定しているが、読取印影二値画像の画素が白画素であるか否かを判定するようにしてもよい。   When the seal impression image generation unit 21c determines that the pixel is a white pixel, −1 is stored in the mismatch flag of the matching result pixel management table 60. In this case, since the pixel of the registered seal imprint binary image is a black pixel, it seems that the seal is missing or damaged (degradation of the seal) or rubbed. Here, when the gradations do not match, it is determined whether or not the pixel of the read imprint binary image is a black pixel, but whether or not the pixel of the read imprint binary image is a white pixel is determined. You may make it determine.

不一致フラグとは、登録印影二値画像の画素の階調と読取印影二値画像の対比する画素の階調とを比較し、比較結果を数値化したものである。例えば、登録印影二値画像の画素が黒画素であり、対比する読取印影二値画像の画素が白画素である場合には不一致フラグの値を負の値(例えば、−1)とする。負の値は印鑑の欠け・破損や擦れに相当する。また、登録印影二値画像の画素が白画素であり、対比する読取印影二値画像の画素が黒画素である場合には不一致フラグの値を正の値(例えば、+1)とする。正の値は印鑑の目詰まりや滲みに相当する。また、対比する画素が黒画素又は白画素で一致する場合には不一致フラグの値を0とする。不一致フラグに格納(設定)される上記値(−1、+1、0)を所定の値とも言う。   The mismatch flag is obtained by comparing the gradation of the pixel of the registered imprint binary image with the gradation of the pixel of the scanned imprint binary image and digitizing the comparison result. For example, when the pixel of the registered imprint binary image is a black pixel and the pixel of the read imprint binary image to be compared is a white pixel, the value of the mismatch flag is set to a negative value (for example, −1). Negative values correspond to missing / damaged or rubbed seals. Further, when the pixel of the registered imprint binary image is a white pixel and the pixel of the read imprint binary image to be compared is a black pixel, the value of the mismatch flag is set to a positive value (for example, +1). A positive value corresponds to clogging or bleeding of the seal. In addition, when the contrasted pixels match in the black pixel or the white pixel, the value of the mismatch flag is set to 0. The value (-1, +1, 0) stored (set) in the mismatch flag is also referred to as a predetermined value.

印影照合画像生成部21cは、すべての画素の不一致フラグを格納すると、登録印影二値画像と照合用読取印影二値画像を重ね合わせ、格納された不一致フラグに基づいて印影照合結果画像を生成する。具体的には、印影照合画像生成部21cは、不一致フラグの値が0でない画素については白でも黒でもない他の色、例えば灰色(グレー)とし、不一致フラグの値が0の画素については一致した階調(白又は黒)とした印影照合結果画像を生成する。生成された印影照合結果画像は印影画像管理テーブル40にバイナリデータとして格納される。   After storing the mismatch flag for all pixels, the seal impression image generation unit 21c superimposes the registered seal image binary image and the read imprint binary image for verification, and generates an image match result image based on the stored mismatch flag. . Specifically, the seal impression image generation unit 21c sets other pixels that are not white or black for pixels whose mismatch flag value is not 0, for example, gray (gray), and matches pixels whose mismatch flag value is 0. A seal impression result image having the gradation (white or black) is generated. The generated seal impression result image is stored as binary data in the seal image management table 40.

不一致情報集計部21dは後述する実施例1と実施例2において動作内容が一部異なるため、異なる動作について実施例ごとに説明する。   Since the contents of the operation of the discrepancy information totaling unit 21d are partially different between the first embodiment and the second embodiment described later, different operations will be described for each embodiment.

(実施例1)
不一致情報集計部21dは、照合結果画素管理テーブル60の不一致フラグに0以外の値があるか否か判断し、0以外の値がある場合、後述する不一致情報テーブル70の対応する画素(座標)の不一致情報に不一致フラグの値を加算する。対応する画素(座標)がない場合には不一致情報テーブル70に新たな座標データを生成し、不一致フラグの値を格納する。
Example 1
The mismatch information aggregating unit 21d determines whether or not the mismatch flag in the matching result pixel management table 60 has a value other than 0. If there is a value other than 0, the corresponding pixel (coordinate) in the mismatch information table 70 described later. The value of the mismatch flag is added to the mismatch information. If there is no corresponding pixel (coordinate), new coordinate data is generated in the mismatch information table 70, and the value of the mismatch flag is stored.

不一致情報集計部21dは、不一致情報テーブル70の不一致情報の値が不一致判定閾値Tj以上であるか、又は不一致情報の値が−Tj以下であるかを判断する。不一致判定閾値Tjは後述する動作環境テーブル80に記録されており、印鑑の劣化判定の基準となるもので所定の閾値である。   The mismatch information totaling unit 21d determines whether the mismatch information value in the mismatch information table 70 is equal to or greater than the mismatch determination threshold Tj, or whether the mismatch information value is equal to or less than -Tj. The mismatch determination threshold value Tj is recorded in an operating environment table 80 to be described later, and is a predetermined threshold value that serves as a reference for determining the deterioration of a seal.

上記判断した結果、不一致情報の値が不一致判定閾値Tj以上である又は不一致情報の値が−Tj以下である場合、不一致情報集計部21dは不一致情報テーブル70の劣化フラグにtrueを設定する。一方、不一致情報の値が不一致判定閾値Tj以上でない又は不一致情報の値が−Tj以下でない場合、不一致情報集計部21dは不一致情報テーブル70の劣化フラグにfalseを設定する。   As a result of the above determination, if the value of the mismatch information is equal to or greater than the mismatch determination threshold Tj or the value of the mismatch information is equal to or less than −Tj, the mismatch information totaling unit 21d sets true to the deterioration flag of the mismatch information table 70. On the other hand, if the value of the mismatch information is not equal to or greater than the mismatch determination threshold value Tj, or the value of the mismatch information is not equal to or less than −Tj, the mismatch information totaling unit 21d sets false in the deterioration flag of the mismatch information table 70.

(実施例2)
不一致情報集計部21dは、照合結果画素管理テーブル60の不一致フラグに0以外の値があるか否かを判断する。0以外の値がある場合、不一致情報集計部21dは、当該画素(座標)の周辺画素(周辺座標)において当該画素の不一致フラグの値と一致する値を有する周辺画素の数(周辺座標の不一致数Fc)をカウントする。周辺画素とは例えば当該画素と隣接する画素を言う。
(Example 2)
The mismatch information totaling unit 21d determines whether or not the mismatch flag in the matching result pixel management table 60 has a value other than 0. When there is a value other than 0, the discrepancy information totaling unit 21d determines the number of peripheral pixels having a value that matches the discrepancy flag value of the pixel (coordinates) in the peripheral pixel (peripheral coordinates) of the pixel (coordinates). The number Fc) is counted. A peripheral pixel refers to a pixel adjacent to the pixel, for example.

不一致情報集計部21dは、カウントしたFcが動作環境テーブル80に記録された不一致カウント閾値Tc以上であるか否かを判断し、Tc以上の場合、不一致情報テーブル70の対応する画素(座標)の不一致情報に不一致フラグの値を加算する。   The mismatch information totaling unit 21d determines whether or not the counted Fc is equal to or greater than the mismatch count threshold Tc recorded in the operation environment table 80. If the counted Fc is equal to or greater than Tc, the mismatched information totaling unit 21d determines the corresponding pixel (coordinate) of the mismatch information table 70. The value of the mismatch flag is added to the mismatch information.

以上、実施例1と実施例2で異なる不一致情報集計部21dの動作について説明した。以下に説明する不一致情報集計部21dの動作はそれぞれの実施例において共通する。   The operation of the discrepancy information counting unit 21d that is different between the first embodiment and the second embodiment has been described above. The operation of the discrepancy information counting unit 21d described below is common to the respective embodiments.

不一致情報集計部21dは、印影画像を複数のグリッド(セグメントとも言う)に分け、グリッドごとの劣化フラグ=trueの数をカウントし、カウントした劣化フラグ数が動作環境テーブル80に格納された劣化判定閾値Trより小さいか否かを判断する。小さい場合には、照合結果情報テーブル50の印鑑劣化フラグにfalseを設定し、小さくない場合には、照合結果情報テーブル50の印鑑劣化フラグにtrueを設定する。印鑑劣化フラグがtrueに設定されるということは印鑑に劣化があることを意味する。   The disagreement information totaling unit 21d divides the seal image into a plurality of grids (also referred to as segments), counts the number of deterioration flags = true for each grid, and determines the deterioration that the counted number of deterioration flags is stored in the operating environment table 80. It is determined whether or not the threshold value Tr is smaller. If it is smaller, “false” is set in the seal deterioration flag of the collation result information table 50, and if it is not smaller, “true” is set in the seal deterioration flag of the collation result information table 50. The fact that the seal stamp deterioration flag is set to true means that the seal stamp has deteriorated.

なお、不一致情報集計部21dは、印影画像をグリッドに分けることなく、画素ごとにみて、不一致情報テーブル70の劣化フラグにtrueが格納されている場合、照合結果情報テーブル50の印鑑劣化フラグにtrueを設定するようにしてもよい。   The mismatch information aggregating unit 21d does not divide the imprint image into grids, and when true is stored in the degradation flag of the mismatch information table 70 for each pixel, true is stored in the seal degradation flag of the verification result information table 50. May be set.

印鑑劣化注意喚起画像生成部21eは、不一致情報テーブル70の情報(座標、不一致情報)を取得し、座標ごとに不一致情報の値をプロットし、印鑑劣化注意喚起画像(3次元画像)を生成し、印影画像管理テーブル40にバイナリデータとして格納する。具体的には、印鑑劣化注意喚起画像生成部21eは、不一致情報テーブル70のx座標及びy座標に対応する不一致情報の値をZ座標の値としてプロットする。   The seal deterioration deterioration warning image generation unit 21e acquires information (coordinates and mismatch information) in the mismatch information table 70, plots the values of mismatch information for each coordinate, and generates a seal deterioration warning image (three-dimensional image). And stored as binary data in the seal image management table 40. Specifically, the seal stamp deterioration warning image generation unit 21e plots the values of the mismatch information corresponding to the x coordinate and the y coordinate of the mismatch information table 70 as the values of the Z coordinate.

印鑑劣化注意喚起画像の一例を図3A、図3Bに示す。不一致情報テーブル70の座標(−50、−50)の場合、対応する不一致情報の値は0である。よって、座標(−50、−50)ではZ=0となる。また、座標(−42、−10)の場合、対応する不一致情報の値は11である。よって、座標(−42、−10)ではZ=11となる。このように、すべての座標について不一致情報の値をプロットすることによって図3Aに示すような凹凸形状を有する3次元画像が生成される。   An example of the seal deterioration warning image is shown in FIGS. 3A and 3B. In the case of the coordinates (−50, −50) of the mismatch information table 70, the value of the corresponding mismatch information is 0. Therefore, Z = 0 in the coordinates (-50, -50). In the case of coordinates (−42, −10), the value of the corresponding mismatch information is 11. Therefore, Z = 11 at the coordinates (−42, −10). Thus, by plotting the value of the mismatch information for all coordinates, a three-dimensional image having an uneven shape as shown in FIG. 3A is generated.

図3Aに示す画像例は“中”という文字の印影であり、右上部分に凸形状があり、中央下部分に凹形状がある。凸形状が示していることは、登録印影二値画像の該当画素が白画素であり、読取印影二値画像の該当画素が黒画素であることを示している。すなわち、印鑑の目詰まりによる滲みがあることを示している。一方、凹形状が示していることは、登録印影二値画像の該当画素が黒画素であり、読取印影二値画像の該当画素が白画素であることを示している。すなわち、印鑑の欠けによる擦れがあることを示している。   The image example shown in FIG. 3A is an imprint of the character “middle”, which has a convex shape in the upper right portion and a concave shape in the lower central portion. The convex shape indicates that the corresponding pixel of the registered imprint binary image is a white pixel and the corresponding pixel of the read imprint binary image is a black pixel. That is, it indicates that there is bleeding due to clogging of the seal. On the other hand, the concave shape indicates that the corresponding pixel of the registered imprint binary image is a black pixel, and the corresponding pixel of the read imprint binary image is a white pixel. That is, it indicates that there is rubbing due to missing seals.

なお、図3Aに示すような画像を生成する際、不一致情報テーブル70の劣化フラグのtrueに対応する不一致情報の値のプロットと、falseに対応する不一致情報の値のプロットで色を変えるなど、より視覚的に把握することができるようにしてもよい。   In addition, when generating an image as shown in FIG. 3A, the color is changed between a plot of the mismatch information value corresponding to the degradation flag true in the mismatch information table 70 and a plot of the mismatch information value corresponding to false. You may enable it to grasp more visually.

このように、印影画像を3次元的に表示することで、高さ方向の描画により印鑑の劣化箇所及び劣化内容を表現することが可能となる。また、高さ方向の大きさにより被疑箇所の大きさを表現可能としており、オペレータが印鑑のどの部分がどのように劣化しているのかを直観的に把握することが可能となる。なお、図3Bのような画像を生成し、表示するようにしてもよい。図3Bに示す画像は平面画像(2次元画像)であって、図3Aに示す画像の3次元の凹凸部分を色の濃淡を用いて示されている。   As described above, by displaying the seal impression image three-dimensionally, it is possible to express the deteriorated portion and the deterioration content of the seal stamp by drawing in the height direction. In addition, the size of the suspected place can be expressed by the size in the height direction, and the operator can intuitively understand which part of the seal is deteriorated and how. An image as shown in FIG. 3B may be generated and displayed. The image shown in FIG. 3B is a planar image (two-dimensional image), and the three-dimensional uneven portion of the image shown in FIG. 3A is shown using shades of color.

記憶部21fは、印鑑劣化判定に必要な各種情報(例えば、印影画像管理テーブル40など)を記憶する。   The storage unit 21f stores various kinds of information (for example, a seal image management table 40) necessary for determination of seal deterioration.

ここで、記憶部21fに記憶される上述した各テーブルについて説明する。
印影画像管理テーブル40は各種画像をバイナリデータとして記録するテーブルであり、例えば、図4に示すように、インデックス、印影画像種類、印影画像バイナリデータの項目から構成されている。インデックスは画像を識別するための識別情報であって、例えばインデックスを指定することによって所望の画像を印影画像管理テーブル40から取得することが可能である。印影画像種類は格納される画像の種類を示すものである。例えば印影検索装置20によって印影データベース4から読み出された登録印影二値画像が格納される場合、印影画像種類には登録印影二値画像という名称が記録される。印影画像バイナリデータは格納される画像のバイナリデータを示すものである。なお、印影画像管理テーブル40の構成はこれに限定されるものではなく、他の項目が含まれるものであってもよい。
Here, each table mentioned above memorize | stored in the memory | storage part 21f is demonstrated.
The imprint image management table 40 is a table that records various images as binary data. For example, as shown in FIG. 4, the imprint image management table 40 includes items of an index, an imprint image type, and an imprint image binary data. The index is identification information for identifying an image. For example, a desired image can be acquired from the imprint image management table 40 by designating the index. The imprint image type indicates the type of image to be stored. For example, when a registered imprint binary image read from the imprint database 4 by the imprint search device 20 is stored, the name of the registered imprint binary image is recorded in the imprint image type. The imprint image binary data indicates binary data of the stored image. The configuration of the seal image management table 40 is not limited to this, and may include other items.

照合結果情報テーブル50は印影画像重ね合わせ処理部21bによって算出された読取印影画像照合中心座標などの値を記録するテーブルであり、図5に示すように項目名と設定値から構成されている。項目名は、印影画像重ね合わせ処理部21bによって算出された読取印影画像照合中心のX座標Xdo及びY座標Ydo、読取印影二値画像の回転角度(読取印影画像回転角度)rdo、登録印影二値画像の中心のX座標Xgo及びY座標Ygo、印鑑劣化フラグから構成されている。設定値は項目名に格納された項目が保持する値である。ここでは、読取印影画像回転角度rdoの設定値が9となっているため、読取印影二値画像の読取時の位置に対して9度回転したことを示している。また、印鑑劣化フラグの設定値にtrueが格納されているため、この例では印鑑に劣化があると判定されたことを示している。なお、不一致情報集計部21dによって印鑑に劣化がないと判定された場合にはfalseが格納される。   The collation result information table 50 is a table that records values such as the read imprint image collation center coordinates calculated by the imprint image overlay processing unit 21b, and includes item names and setting values as shown in FIG. The item names are the X-coordinate Xdo and Y-coordinate Ydo of the read imprint image collation center calculated by the imprint image overlay processing unit 21b, the rotation angle (read imprint image rotation angle) rdo of the read imprint binary image, and the registered imprint binary value. It consists of the X coordinate Xgo and Y coordinate Ygo of the center of the image, and a seal deterioration flag. The setting value is a value held by the item stored in the item name. Here, since the setting value of the read imprint image rotation angle rdo is 9, it indicates that the read imprint binary image has been rotated by 9 degrees with respect to the reading position. Further, since true is stored in the set value of the seal stamp deterioration flag, this example indicates that it is determined that the seal stamp has deteriorated. If the discrepancy information totaling unit 21d determines that the seal is not deteriorated, false is stored.

照合結果画素管理テーブル60は、登録印影二値画像の画素と対比する読取印影二値画像の画素が黒画素又は白画素で一致するか、一致しない場合にはどちらの画像の画素が黒画素又は白画素かを画素ごとに示すテーブルである。照合結果画素管理テーブル60は図6に示すように画素の座標(X座標、Y座標)と不一致フラグから構成されている。例えば、ある画素(X座標が−50、Y座標が−50)においては登録印影二値画像及び読取印影二値画像ともに黒画素又は白画素で一致したことを示しており、不一致フラグには0が格納されている。一方、ある画素(X座標が−50、Y座標が−49)においては、登録印影二値画像の画素が黒画素、読取印影二値画像の画素が白画素であって、一致していないことを示しており不一致フラグには1が格納されている。なお、照合結果画素管理テーブル60は印鑑劣化判定が1回終了すると初期化(オールクリア)されるようにしてもよい。   In the matching result pixel management table 60, the pixels of the read imprint binary image to be compared with the pixels of the registered imprint binary image match with each other in black pixels or white pixels. It is a table which shows whether it is a white pixel for every pixel. As shown in FIG. 6, the collation result pixel management table 60 includes pixel coordinates (X coordinate, Y coordinate) and a mismatch flag. For example, in a certain pixel (X coordinate is −50, Y coordinate is −50), both the registered imprint binary image and the read imprint binary image are matched in black pixels or white pixels, and the mismatch flag is 0. Is stored. On the other hand, in a certain pixel (X coordinate is −50, Y coordinate is −49), the pixel of the registered imprint binary image is a black pixel, and the pixel of the read imprint binary image is a white pixel, which does not match. 1 is stored in the mismatch flag. The verification result pixel management table 60 may be initialized (all cleared) when the seal deterioration determination is completed once.

不一致情報テーブル70は、印影照合するごとに不一致フラグの値が不一致情報の値に加算されるテーブルである。不一致情報テーブル70は、図7に示すように画素の座標(X座標、Y座標)、不一致情報、劣化フラグから構成されている。不一致情報テーブル70では照合対象画像のすべての画素における不一致情報が記録されている。   The mismatch information table 70 is a table in which the value of the mismatch flag is added to the value of the mismatch information every time stamp imprinting is performed. As shown in FIG. 7, the mismatch information table 70 includes pixel coordinates (X coordinate, Y coordinate), mismatch information, and a degradation flag. In the mismatch information table 70, mismatch information for all the pixels of the verification target image is recorded.

不一致情報は、印影照合されるごとに不一致フラグの値が加算されるものである。すなわち、不一致情報は不一致フラグの値が加算され続けた結果(蓄積値)を示している。例えば、ある画素(X座標が−50、Y座標が−50)においては不一致情報が0となっている。これは過去に画素が一致すると判断されたことしかないか、又は一致する及び一致しないと判断されたことがそれぞれあったが加算した結果、不一致情報が0となったかを示している。また、ある画素(X座標が−42、Y座標が−10)においては不一致情報が11となっている。これは過去に画素が一致しないと判断されたことが多くあったことを示している。   The mismatch information is information in which the value of the mismatch flag is added every time the seal impression is collated. That is, the mismatch information indicates a result (accumulated value) in which the value of the mismatch flag is continuously added. For example, the disagreement information is 0 for a certain pixel (X coordinate is −50, Y coordinate is −50). This indicates whether there was only a pixel match in the past, or it was determined that the pixel matched and did not match, but the mismatch information became 0 as a result of addition. Also, the mismatch information is 11 for a certain pixel (X coordinate is −42, Y coordinate is −10). This indicates that in the past, it was often determined that the pixels do not match.

劣化フラグは、不一致情報の値と動作環境テーブル80の不一致判定閾値Tjとの比較結果を示している。具体的には、不一致情報の値が不一致判定閾値Tj以上又は−Tj以下の場合にtrueが設定され、それ以外はfalseが設定される。劣化フラグがtrueの場合には該当画素部分に劣化が生じている可能性があることを示している。図7に示す例では、ある画素(X座標が−42、Y座標が−10)部分とある画素(X座標が−42、Y座標が−9)部分において劣化が生じている可能性があることを示している。   The deterioration flag indicates a comparison result between the value of the mismatch information and the mismatch determination threshold value Tj of the operating environment table 80. Specifically, true is set when the value of the mismatch information is greater than or equal to the mismatch determination threshold Tj or less than or equal to −Tj, and false is set otherwise. When the deterioration flag is true, it indicates that there is a possibility that the corresponding pixel portion has deteriorated. In the example shown in FIG. 7, there is a possibility that deterioration occurs in a certain pixel (X coordinate is −42, Y coordinate is −10) and a certain pixel (X coordinate is −42, Y coordinate is −9). It is shown that.

動作環境テーブル80は各種判定を行う際に用いられる閾値などを記録するテーブルである。動作環境テーブル80は、図8に示すように項目名と設定値から構成されている。項目名は、不一致判定閾値Tj、不一致カウント閾値Tc、不一致判定グリッド幅lg、印鑑劣化判定閾値Tr、登録印影二値画像の幅Wg、登録印影二値画像の高さHgから構成されている。設定値は項目名に格納された項目が保持する値である。   The operating environment table 80 is a table for recording threshold values used for various determinations. The operating environment table 80 is composed of item names and set values as shown in FIG. The item name includes a mismatch determination threshold value Tj, a mismatch count threshold value Tc, a mismatch determination grid width lg, a seal stamp deterioration determination threshold value Tr, a width Wg of a registered stamp binary image, and a height Hg of a registered stamp binary image. The setting value is a value held by the item stored in the item name.

不一致判定閾値Tjは不一致情報テーブル70の劣化フラグにtrue又はfalseを設定するために用いられる閾値である。   The mismatch judgment threshold value Tj is a threshold value used for setting true or false in the deterioration flag of the mismatch information table 70.

不一致カウント閾値Tcは実施例2において使用する閾値(加算閾値とも言う)であって、当該画素の周辺画素を加味して不一致フラグの値を不一致情報に加算するか否かを判定するための閾値である。   The mismatch count threshold value Tc is a threshold value (also referred to as an addition threshold value) used in the second embodiment, and is a threshold value for determining whether or not the value of the mismatch flag is added to the mismatch information in consideration of the peripheral pixels of the pixel. It is.

不一致判定グリッド幅は印鑑劣化フラグを設定する際に分けるグリッドの幅である。この例では不一致判定グリッド幅はlgのみであるため、グリッドは縦幅も横幅も同じとなる。すなわち、グリッドの形状は正方形となる。なお、グリッドの形状は正方形に限定されるものではなく、長方形などであってもよい。この場合、グリッド幅は縦幅と横幅の2つの値を用意する必要がある。   The mismatch determination grid width is the width of the grid divided when setting the seal deterioration flag. In this example, since the mismatch determination grid width is only lg, the grid has the same vertical width and horizontal width. That is, the grid has a square shape. The shape of the grid is not limited to a square, but may be a rectangle or the like. In this case, it is necessary to prepare two values for the grid width, the vertical width and the horizontal width.

また、この例では登録印影二値画像の幅Wgの値と登録印影二値画像の高さHgの値が同じ100となっているが、異なる値であっても実施可能である。   Further, in this example, the value of the width Wg of the registered imprint binary image and the value of the height Hg of the registered imprint binary image are the same 100, but different values can be used.

また、この例では登録印影二値画像の幅Wgの値と登録印影二値画像の高さHgの値を動作環境テーブル80から取得しているが、プログラム処理で登録印影二値画像のバイナリデータから取得してもよい。   Further, in this example, the value of the width Wg of the registered imprint binary image and the value of the height Hg of the registered imprint binary image are acquired from the operation environment table 80, but binary data of the registered imprint binary image is obtained by program processing. May be obtained from

次に、実施の形態における印影制御装置における印鑑劣化判定のフローについて図9を用いて説明する。   Next, the flow of seal stamp deterioration determination in the stamp control apparatus according to the embodiment will be described with reference to FIG.

まず、印影検索装置20は、例えば口座番号をキーとして、口座番号と登録印の印影二値画像(登録印影二値画像)とを関連付けて記憶する印影データベース4を検索し、印影二値画像を取得し、印影画像管理テーブル40に格納する(ステップS901)。   First, the imprint search device 20 searches, for example, an imprint database 4 that stores an account number and a registered imprint binary image (registered imprint binary image) in association with each other using the account number as a key, It is acquired and stored in the seal image management table 40 (step S901).

印影多値画像取得部21aは、画像読取装置3によって読み取られた読取印影多値画像を取得し、印影画像管理テーブル40に格納する(ステップS902)。   The imprinted multi-valued image acquisition unit 21a acquires the read imprinted multi-valued image read by the image reading device 3 and stores it in the imprinted image management table 40 (step S902).

印影画像重ね合わせ処理部21bは印影画像重ね合わせ処理を行う(ステップS903)。印影画像重ね合わせ処理については後述する。   The imprint image overlay processing unit 21b performs an imprint image overlay process (step S903). The imprint image overlay process will be described later.

印影照合画像生成部21cは印影照合結果画像生成処理を行う(ステップS904)。印影照合結果画像生成処理については後述する。   The imprint verification image generation unit 21c performs an imprint verification result image generation process (step S904). The seal impression result image generation process will be described later.

不一致情報集計部21dは不一致情報集計処理を行う(ステップS905)。不一致情報集計処理については後述する。   The mismatch information totaling unit 21d performs a mismatch information totaling process (step S905). The mismatch information aggregation process will be described later.

また、不一致情報集計部21dは印鑑劣化判定処理を行う(ステップS906)。印鑑劣化判定処理については後述する。   Further, the mismatch information totaling unit 21d performs a seal deterioration determination process (step S906). The seal deterioration determination process will be described later.

また、不一致情報集計部21dは上記印鑑劣化判定処理後に印鑑劣化フラグを照合結果情報テーブル50から取得する(ステップS907)。   Further, the discrepancy information totalization unit 21d acquires the seal stamp deterioration flag from the verification result information table 50 after the seal stamp deterioration determination process (step S907).

また、印鑑劣化注意喚起画像生成部21eは登録印影二値画像、読取印影多値画像、印影照合結果画像を印影画像管理テーブル40から取得し、表示装置5に表示する(ステップS908)。ここで、取得された印鑑劣化フラグがfalseの場合(印鑑劣化未検出時)に表示装置5に表示される登録印影二値画像、読取印影多値画像、印影照合結果画像の一例を図18Aに示す。図18Aでは印鑑劣化が検出されず、劣化箇所の確認が不要であるため劣化箇所確認アイコン1800は押下できないように薄い表示となっている。   Further, the seal stamp deterioration warning image generation unit 21e acquires the registered seal stamp binary image, the read stamp multi-value image, and the seal stamp comparison result image from the seal image management table 40 and displays them on the display device 5 (step S908). Here, FIG. 18A shows an example of a registered stamp binary image, a read stamp multi-value image, and a seal stamp comparison result image displayed on the display device 5 when the acquired seal stamp deterioration flag is false (when seal stamp deterioration is not detected). Show. In FIG. 18A, seal deterioration is not detected, and confirmation of the deteriorated part is unnecessary, so the deteriorated part confirmation icon 1800 is displayed so as not to be pressed.

一方、取得された印鑑劣化フラグがtrueの場合(印鑑劣化検出時)に表示装置5に表示される登録印影二値画像、読取印影多値画像、印影照合結果画像の一例を図18B及び図18Cに示す。図18B及び図18Cでは印鑑劣化が検出され、劣化箇所の確認ができるよう劣化箇所確認アイコン1801、1802が押下できるように濃い表示となっている。図18Bと図18Cの異なる点は印鑑劣化を伝える表示(印鑑劣化あり)がダイアログ表示となっているか、画面上へのテキスト表示になっているかである。ダイアログ表示の場合は、OKアイコン1803を押下すると、印鑑劣化注意喚起画像に遷移する。なお、印鑑劣化検出時の印影照合結果画像では印鑑劣化が検出された箇所については後述するように例えばグレー(灰色)になっており、視覚的に劣化箇所を把握することが可能となっている。   On the other hand, an example of a registered imprint binary image, a read imprint multi-value image, and an imprint verification result image displayed on the display device 5 when the acquired seal deterioration flag is true (when seal deterioration is detected) is shown in FIGS. 18B and 18C. Shown in In FIG. 18B and FIG. 18C, the seal degradation is detected, and the degradation location confirmation icons 1801 and 1802 are darkly displayed so that the degradation location can be confirmed. The difference between FIG. 18B and FIG. 18C is whether the display indicating that the seal is deteriorated (with seal deterioration) is a dialog display or a text display on the screen. In the case of dialog display, when an OK icon 1803 is pressed, a transition to a seal deterioration warning image is made. In addition, in the seal image comparison result image at the time of detecting the seal deterioration, the portion where the seal deterioration is detected is, for example, gray (gray) as described later, and it is possible to visually grasp the deterioration portion. .

不一致情報集計部21dは取得した印鑑劣化フラグがtrue(印鑑劣化がある)か否かを判断する(ステップS909)。   The mismatch information counting unit 21d determines whether or not the acquired seal deterioration flag is true (there is seal deterioration) (step S909).

印鑑劣化フラグがtrueの場合(ステップS909でYes)、印鑑劣化注意喚起画像生成部21eは印鑑劣化注意喚起画像生成処理を行う(ステップS910)。その後、劣化箇所確認アイコン1801、1802が押下されると、印鑑劣化が疑われる箇所の確認画面(印鑑劣化被疑箇所確認画面)、すなわち図3Aや図3Bに示す印影劣化注意喚起画像が印影画像管理テーブル40から取得され、表示装置5に表示される(ステップSS911)。なお、印鑑劣化フラグがtrueでない(ステップS909でNo)、すなわちfalseの場合、印鑑劣化はないとして印鑑劣化注意喚起画像生成処理を行うことなく印鑑劣化判定を終了する。   When the seal stamp deterioration flag is true (Yes in step S909), the seal stamp deterioration warning image generating unit 21e performs a seal stamp deterioration warning image generation process (step S910). Thereafter, when the deteriorated part confirmation icons 1801 and 1802 are pressed, a confirmation screen of a part that is suspected of being deteriorated in the seal (a seal deterioration deteriorated part confirmation screen), that is, the imprint deterioration warning image shown in FIG. 3A or FIG. It is acquired from the table 40 and displayed on the display device 5 (step SS911). If the seal stamp deterioration flag is not true (No in step S909), that is, if it is false, it is determined that there is no seal stamp deterioration, and the seal stamp deterioration determination is terminated without performing the seal stamp deterioration warning image generation process.

次に、上記印影画像重ね合わせ処理のサブルーチンについて図10を用いて説明する。
印影画像重ね合わせ処理部21bは、登録印影二値画像を印影画像管理テーブル40から取得する(ステップ1001)。例えば、インデックスの値(値=0)を指定し、指定されたインデックスの値に対応する登録印影二値画像を取得する。なお、印影画像管理テーブル40から他の画像を取得する際も同様にインデックスの値を指定することによって取得するようにしてもよい。
Next, a subroutine for the imprint image overlay process will be described with reference to FIG.
The imprint image overlay processing unit 21b acquires the registered imprint binary image from the imprint image management table 40 (step 1001). For example, an index value (value = 0) is designated, and a registered stamp binary image corresponding to the designated index value is acquired. Note that when another image is acquired from the seal image management table 40, it may be acquired by designating an index value in the same manner.

また、印影画像重ね合わせ処理部21bは、読取印影多値画像を印影画像管理テーブル40から取得する(ステップS1002)。印影画像重ね合わせ処理部21bは取得した読取印影多値画像を二値化処理して読取印影二値画像を生成し(ステップS1003)、生成した読取印影二値画像を印影画像管理テーブル40に格納する(ステップS1004)。   The imprint image overlay processing unit 21b acquires the read imprint multi-value image from the imprint image management table 40 (step S1002). The imprint image overlay processing unit 21b binarizes the acquired read imprint multi-valued image to generate a read imprint binary image (step S1003), and stores the generated read imprint binary image in the imprint image management table 40. (Step S1004).

印影画像重ね合わせ処理部21bは、印影画像管理テーブル40に格納された登録印影二値画像及び読取印影二値画像を取得し、それぞれの画像を一致率が最大となるように重ね合わせる。印影画像重ね合わせ処理部21bは、重ね合わせた後の読取印影二値画像の照合中心座標(Xdo、Ydo)を算出するとともに、登録印影二値画像の中心座標(Xgo、Ygo)を算出し(ステップS1005)、それぞれの座標を照合結果情報テーブル50に格納する(ステップS1006)。   The imprint image overlay processing unit 21b acquires the registered imprint binary image and the read imprint binary image stored in the imprint image management table 40, and superimposes the images so that the matching rate is maximized. The imprint image overlay processing unit 21b calculates the collation center coordinates (Xdo, Ydo) of the read imprint binary image after being superimposed, and calculates the center coordinates (Xgo, Ygo) of the registered imprint binary image ( In step S1005), the respective coordinates are stored in the collation result information table 50 (step S1006).

また、印影画像重ね合わせ処理部21bは、一致率が最大となるように重ね合わされた状態における読取印影二値画像の読取印影画像回転角度rdoを算出し(ステップS1007)、算出した読取印影画像回転角度rdoを照合結果情報テーブル50に格納する(ステップS1008)。具体的には、印影画像重ね合わせ処理部21bは、重ね合わせる前の読取印影二値画像の読取時の読取位置を基準にし、一致率が最大となるように登録印影二値画像に重ね合わせることによって読取印影二値画像がどの程度回転するか、すなわち回転角度を算出する。   Further, the imprint image overlay processing unit 21b calculates a read imprint image rotation angle rdo of the read imprint binary image in a state where the coincidence ratio is maximized (step S1007), and the calculated read imprint image rotation is performed. The angle rdo is stored in the verification result information table 50 (step S1008). Specifically, the imprint image overlay processing unit 21b superimposes the registered imprint binary image on the registered imprint binary image so that the matching rate is maximized with reference to the reading position at the time of reading the read imprint binary image before superimposition. To calculate how much the read imprint binary image is rotated, that is, the rotation angle.

次に、印影照合結果画像生成処理のサブルーチンについて図11A、図11Bを用いて説明する。   Next, a subroutine for the seal impression result image generation processing will be described with reference to FIGS. 11A and 11B.

印影照合画像生成部21cは、登録印影二値画像を印影画像管理テーブル40から取得するとともに(ステップS1101)、読取印影二値画像を印影画像管理テーブル40から取得する(ステップS1102)。   The imprint verification image generation unit 21c acquires a registered imprint binary image from the imprint image management table 40 (step S1101), and acquires a read imprint binary image from the imprint image management table 40 (step S1102).

印影照合画像生成部21cは、照合結果情報テーブル50から登録印影二値画像の中心座標(Xgo、Ygo)を取得し(ステップS1103)、読取印影二値画像照合中心座標(Xdo、Ydo)を取得し(ステップS1104)、読取印影画像回転角度rdoを取得する(ステップS1105)。   The imprint image collation image generation unit 21c acquires the center coordinates (Xgo, Ygo) of the registered imprint binary image from the collation result information table 50 (step S1103), and acquires the read imprint binary image collation center coordinates (Xdo, Ydo). (Step S1104), and the read imprint image rotation angle rdo is acquired (Step S1105).

印影照合画像生成部21cは、取得した登録印影二値画像の中心座標(Xgo、Ygo)に読取印影二値画像照合中心座標(Xdo、Ydo)を合わせて読取印影画像回転角度rdoだけ読取印影二値画像を回転させ、照合用読取印影二値画像を生成する(ステップS1106)。印影照合画像生成部21cは生成した照合用読取印影二値画像を印影画像管理テーブル40に格納する(ステップS1107)。   The imprint collation image generation unit 21c aligns the read imprint binary image collation center coordinates (Xdo, Ydo) with the center coordinates (Xgo, Ygo) of the acquired registered imprint binary image, and reads the read imprint image rotation angle rdo. The value image is rotated to generate a collation reading imprint binary image (step S1106). The imprint verification image generation unit 21c stores the generated read imprint binary image for verification in the imprint image management table 40 (step S1107).

ここで、印影照合画像生成部21cは、登録印影二値画像の画素と、その画素に対応する読取印影二値画像の画素とを対比し、不一致画素フラグの値を画素ごとに格納する処理を行うため、登録印影二値画像の幅Wgと高さHgを動作環境テーブル80から取得する(ステップS1108)。   Here, the seal impression image generation unit 21c compares the pixel of the registered seal binary image with the pixel of the read seal binary image corresponding to the pixel, and stores the value of the mismatch pixel flag for each pixel. For this purpose, the width Wg and height Hg of the registered seal binary image are acquired from the operating environment table 80 (step S1108).

対比方法の一例について図12を用いて説明する。印影照合画像生成部21cは、登録印影二値画像の左下の画素1200(例えばX座標が−50、Y座標が−50)から矢印方向(Y座標が増加する方向)へ垂直に移動しながら判定して不一致フラグの値を順に格納する。この例では登録印影二値画像の幅Wg、高さHgともに100とし、原点の座標を(0、0)としているため、X座標の範囲は−50から50、Y座標の範囲も−50から50となっている。   An example of the comparison method will be described with reference to FIG. The imprint verification image generation unit 21c performs determination while moving vertically from the lower left pixel 1200 of the registered imprint binary image (for example, the X coordinate is −50 and the Y coordinate is −50) in the arrow direction (the Y coordinate increases direction). Thus, the value of the mismatch flag is stored in order. In this example, the width Wg and height Hg of the registered seal binary image are both set to 100, and the coordinates of the origin are set to (0, 0). Therefore, the X coordinate range is -50 to 50, and the Y coordinate range is also -50. 50.

登録印影二値画像の左上の画素1201(例えばX座標が−50、Y座標が50)の不一致フラグの値が格納し終わると、登録印影二値画像の一番下(直下)の画素1200(X座標が−50、Y座標が−50)に戻る。戻った画素1200の右隣の画素1202(X座標が−49、Y座標が−50)から同様に矢印方向へ垂直に移動しながら不一致フラグの値を格納する。これを最後の画素1203(X座標が50、Y座標が50)まで繰り返す。   When the value of the mismatch flag of the pixel 1201 at the upper left of the registered imprint binary image (for example, the X coordinate is −50 and the Y coordinate is 50) has been stored, the lowest pixel 1200 (immediately below) of the registered imprint binary image ( The X coordinate returns to -50 and the Y coordinate returns to -50). Similarly, the value of the mismatch flag is stored while moving vertically in the direction of the arrow from the pixel 1202 (X coordinate is −49, Y coordinate is −50) immediately adjacent to the returned pixel 1200. This is repeated until the last pixel 1203 (X coordinate is 50, Y coordinate is 50).

すなわち、ループ1ではカウンタiの初期値を−Wg/2とし、ループ条件をiがWg/2以下の間としてループ処理がされ、ループ2ではカウンタjの初期値を−Hg/2とし、ループ条件をjがHg/2以下の間としてループ処理がされる。   That is, in loop 1, loop processing is performed with the initial value of counter i set to −Wg / 2 and the loop condition set to i between Wg / 2 and lower. In loop 2, the initial value of counter j is set to −Hg / 2, and loop processing is performed. Loop processing is performed with the condition that j is equal to or less than Hg / 2.

印影照合画像生成部21cは、登録印影二値画像の座標(Xgo+i、Ygo+j)の画素と読取印影二値画像の座標(Xdo+i、Ydo+j)の画素が一致するか否かを判定する(ステップS1109)。画素が一致するとは対比するそれぞれの画素が共に黒画素である又は白画素であることを言う。印影照合画像生成部21cは、対比する画素が一致する場合(ステップS1109でYes)、照合結果画素管理テーブル60の登録印影二値画像の座標(Xgo+i、Ygo+j)の不一致フラグに0を格納(設定)する(ステップS1110)。不一致フラグに0が格納されるということは対比する画素が共に黒画素又は白画素であることを示す。   The imprint verification image generation unit 21c determines whether or not the pixel of the registered imprint binary image coordinate (Xgo + i, Ygo + j) matches the pixel of the read imprint binary image coordinate (Xdo + i, Ydo + j) (step S1109). . Matching pixels means that both contrasting pixels are black pixels or white pixels. If the compared pixels match (Yes in step S1109), the seal impression collation image generation unit 21c stores 0 in the mismatch flag of the coordinates (Xgo + i, Ygo + j) of the registered seal binary image in the collation result pixel management table 60. (Step S1110). The fact that 0 is stored in the mismatch flag indicates that both pixels to be compared are black pixels or white pixels.

一方、対比する画素が一致しない場合(ステップS1109でNo)、印影照合画像生成部21cは読取印影二値画像の画素が黒画素であるか否かを判断する(ステップS1111)。読取印影二値画像の画素が黒画素である場合(ステップS1111でYes)、印影照合画像生成部21cは、照合結果画素管理テーブル60の登録印影二値画像の座標(Xgo+i、Ygo+j)の不一致フラグに1を格納(設定)する(ステップS1112)。不一致フラグに1が格納されるということは対比する画素は白画素であることを示す。   On the other hand, if the compared pixels do not match (No in step S1109), the imprint verification image generation unit 21c determines whether the pixel of the read imprint binary image is a black pixel (step S1111). When the pixel of the read imprint binary image is a black pixel (Yes in step S1111), the imprint collation image generation unit 21c does not match the coordinates (Xgo + i, Ygo + j) of the registered imprint binary image in the collation result pixel management table 60. 1 is stored (set) in (step S1112). The fact that 1 is stored in the mismatch flag indicates that the pixel to be compared is a white pixel.

一方、読取印影二値画像の画素が黒画素でない場合(ステップS1111でNo)、印影照合画像生成部21cは、照合結果画素管理テーブル60の登録印影二値画像の座標(Xgo+i、Ygo+j)の不一致フラグに−1を格納(設定)する(ステップS1113)。不一致フラグに−1が格納されるということは対比する画素は黒画素であることを示す。   On the other hand, when the pixel of the read imprint binary image is not a black pixel (No in step S1111), the imprint collation image generation unit 21c does not match the coordinates (Xgo + i, Ygo + j) of the registered imprint binary image in the collation result pixel management table 60. -1 is stored (set) in the flag (step S1113). The fact that -1 is stored in the mismatch flag indicates that the pixel to be compared is a black pixel.

印影照合画像生成部21cは、格納が終わるとループ2のカウンタjのカウントアップを行い(ステップS1114)、ループ2のループ条件を満たす間は上記処理を繰り返す。一方、ループ2のループ条件を満たさなくなった場合には、印影照合画像生成部21cはループ1のカウンタiのカウントアップを行い(ステップS1115)、ループ1のループ条件を満たす間は上記処理を繰り返す。一方、ループ1のループ条件を満たさなくなった場合、印影照合画像生成部21cは、登録印影二値画像と照合用読取印影二値画像を重ね合わせ、照合結果画素管理テーブル60の情報(座標、不一致フラグ)に基づいて印影照合結果画像を生成する(ステップS1116)。   When the storage is completed, the seal impression image generation unit 21c counts up the counter j of the loop 2 (step S1114), and repeats the above processing while satisfying the loop 2 loop condition. On the other hand, when the loop condition of the loop 2 is no longer satisfied, the seal image comparison image generation unit 21c counts up the counter i of the loop 1 (step S1115), and repeats the above process while the loop condition of the loop 1 is satisfied. . On the other hand, when the loop condition of loop 1 is no longer satisfied, the imprint collation image generation unit 21c superimposes the registered imprint binary image and the collation read imprint binary image, and information (coordinates and mismatches) in the collation result pixel management table 60 A seal impression result image is generated based on (flag) (step S1116).

具体的には、印影照合画像生成部21cは、登録印影二値画像と照合用読取印影二値画像を重ね合わせて印影照合結果画像を生成する際、不一致フラグの値が1又は−1の画素についてはグレー(灰色)の画素とする。また、不一致フラグの値が0の画素については、黒画素で一致した場合には黒画素とし、白画素で一致した場合には白画素として印影照合結果画像を生成する。これにより、不一致箇所を視覚的に把握可能となる。そして、印影照合画像生成部21cは、生成した印影照合結果画像を印影画像管理テーブル40に格納する(ステップS1117)。   Specifically, when the seal impression image generation unit 21c generates a seal impression result image by superimposing the registered seal image binary image and the matching read seal image binary image, a pixel having a mismatch flag value of 1 or −1. Is a gray pixel. For a pixel with a mismatch flag value of 0, an imprint matching result image is generated as a black pixel when matched with a black pixel and as a white pixel when matched with a white pixel. Thereby, it becomes possible to visually grasp the mismatched portion. Then, the imprint verification image generation unit 21c stores the generated imprint verification result image in the imprint image management table 40 (step S1117).

次に、不一致情報集計処理のサブルーチンについて図13A、図13B、図14A、図14Bを用いて説明する。   Next, a sub-routine of the mismatch information aggregation process will be described with reference to FIGS. 13A, 13B, 14A, and 14B.

図13A及び図13Bに示す不一致情報集計処理フローは実施例1の処理フローであって、図14A及び図14Bに示す不一致情報集計処理フローは実施例2の処理フローである。   The mismatch information tabulation process flow shown in FIGS. 13A and 13B is the process flow of the first embodiment, and the mismatch information tabulation process flow shown in FIGS. 14A and 14B is the process flow of the second embodiment.

まず、実施例1の不一致情報集計処理のサブルーチンについて図13A及び図13Bを用いて説明する。   First, the subroutine of the discrepancy information totaling process of the first embodiment will be described with reference to FIGS. 13A and 13B.

不一致情報集計部21dは、不一致情報テーブル70の劣化フラグを設定するため、動作環境テーブル80から不一致判定閾値Tjを取得する(ステップS1301)とともに、登録印影二値画像の幅Wgと高さHgを取得する(ステップS1302)。   The mismatch information totaling unit 21d acquires the mismatch determination threshold value Tj from the operating environment table 80 in order to set the deterioration flag of the mismatch information table 70 (step S1301), and sets the width Wg and height Hg of the registered imprint binary image. Obtain (step S1302).

不一致情報集計部21dは、ループ1ではカウンタiの初期値を−Wg/2とし、ループ条件をiがWg/2以下の間としてループ処理を行い、ループ2ではカウンタjの初期値を−Hg/2とし、ループ条件をjがHg/2以下の間としてループ処理を行う。このループ処理におけるカウンタ、ループ条件、カウントアップは上述した印影照合結果画像生成処理におけるループ処理のものと同様である。   The mismatch information aggregating unit 21d performs loop processing with the initial value of the counter i set to −Wg / 2 in the loop 1 and the loop condition set to i between Wg / 2 and lower. In the loop 2, the initial value of the counter j is set to −Hg. / 2 and loop processing is performed with a loop condition between j and Hg / 2 or less. The counter, loop condition, and count-up in this loop process are the same as those in the loop process in the above-described seal impression result image generation process.

不一致情報集計部21dは、座標(i、j)の不一致フラグの値を照合結果画素管理テーブル60から取得する(ステップS1303)。不一致情報集計部21dは取得した不一致フラグの値が0でないか否かを判断する(ステップS1304)。不一致フラグの値が0でない場合(ステップS1304でYes)、すなわち対比する画素が一致しない場合(画素不一致を示す値の場合)、不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の不一致情報の値に座標(i、j)の不一致フラグの値を加算する(ステップS1305)。一方、不一致フラグの値が0である場合(ステップS1304でNo)、すなわち対比する画素が一致する場合、ステップS1306へ進む。   The mismatch information totaling unit 21d acquires the value of the mismatch flag of the coordinates (i, j) from the matching result pixel management table 60 (step S1303). The mismatch information totaling unit 21d determines whether or not the acquired mismatch flag value is not 0 (step S1304). When the value of the mismatch flag is not 0 (Yes in step S1304), that is, when the compared pixels do not match (in the case of a value indicating pixel mismatch), the mismatch information totaling unit 21d has coordinates (i, j) of the mismatch information table 70. The value of the mismatch flag at coordinates (i, j) is added to the value of the mismatch information (step S1305). On the other hand, if the value of the mismatch flag is 0 (No in step S1304), that is, if the compared pixels match, the process proceeds to step S1306.

なお、ここでは、不一致フラグの値が0以外の場合に不一致フラグの値を不一致情報に加算するようにしているが、ステップS1304の判定処理をなくし、取得した不一致フラグの値をそのまま不一致情報の値に加算するようにしてもよい。不一致フラグの値が0の場合、不一致情報の値に加算しても不一致情報の値は変わらないためである。なお、後述する図14AのステップS1405においても同様に、ステップS1405の判定処理をなくし、ステップS1404で不一致フラグを取得後、ステップS1406の処理を行うようにしてもよい。   Note that here, when the value of the mismatch flag is other than 0, the value of the mismatch flag is added to the mismatch information. However, the determination process of step S1304 is eliminated, and the acquired mismatch flag value is directly used as the mismatch information. You may make it add to a value. This is because when the value of the mismatch flag is 0, the value of the mismatch information does not change even if it is added to the value of the mismatch information. Similarly, in step S1405 of FIG. 14A described later, the determination process of step S1405 may be omitted, and the process of step S1406 may be performed after obtaining the mismatch flag in step S1404.

不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の不一致情報の値が不一致判定閾値Tj以上か又は−Tj以下かを判断する(ステップS1306)。すなわち、対比する画素が不一致であると判断されたことが多いか否かを判断する。なお、不一致情報の値は、不一致フラグの値(0、1、−1)の加算によって増減するため、必ずしも対比する画素が不一致であると判断された回数の値と同じであるとは限らない。例えば、不一致と判断された回数が10回であって、そのうち5回が不一致フラグの値が1の場合であり、残りの5回が不一致フラグの値が−1の場合には不一致情報の値は0となる。このように、不一致情報の値は必ずしも不一致と判断された回数と同じではない。   The mismatch information totaling unit 21d determines whether the value of the mismatch information of the coordinates (i, j) in the mismatch information table 70 is equal to or greater than the mismatch determination threshold Tj (step S1306). That is, it is determined whether or not the contrasted pixels are often determined to be inconsistent. Note that the value of the mismatch information is increased or decreased by adding the mismatch flag values (0, 1, −1), and thus is not necessarily the same as the value of the number of times that the compared pixels are determined to be mismatched. . For example, if the number of times that the discrepancy is determined to be 10 is 5 and the discrepancy flag value is 1 of 5 and the remaining 5 times is the discrepancy flag value being -1, the value of the discrepancy information Becomes 0. Thus, the value of the mismatch information is not necessarily the same as the number of times that the mismatch is determined.

不一致情報の値が不一致判定閾値Tj以上又は−Tj以下である場合(ステップS1306でYes)、不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の劣化フラグにtrueを設定する(ステップS1307)。一方、不一致情報の値が不一致判定閾値Tj以上又は−Tj以下でない場合(ステップS1306でNo)、不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の劣化フラグにfalseを設定する(ステップS1308)。   When the value of the mismatch information is greater than or equal to the mismatch determination threshold Tj or less than or equal to −Tj (Yes in step S1306), the mismatch information totaling unit 21d sets true to the deterioration flag of the coordinates (i, j) in the mismatch information table 70 ( Step S1307). On the other hand, if the value of the mismatch information is not greater than or equal to the mismatch determination threshold Tj or less than −Tj (No in step S1306), the mismatch information totaling unit 21d sets false to the deterioration flag of the coordinates (i, j) of the mismatch information table 70. (Step S1308).

不一致情報集計部21dは、劣化フラグの設定が終わるとループ2のカウンタjのカウントアップを行い(ステップS1309)、ループ2のループ条件を満たす間は上記処理を繰り返す。一方、ループ2のループ条件を満たさなくなった場合には、不一致情報集計部21dはループ1のカウンタiのカウントアップを行い(ステップS1310)、ループ1のループ条件を満たす間は上記処理を繰り返す。一方、ループ1のループ条件を満たさなくなった場合には、不一致情報集計部21dは不一致情報集計処理を終了する。   When the setting of the deterioration flag is finished, the mismatch information totaling unit 21d counts up the counter 2 of the loop 2 (step S1309), and repeats the above process while satisfying the loop 2 loop condition. On the other hand, when the loop condition of loop 2 is no longer satisfied, the mismatch information counting unit 21d counts up the counter i of loop 1 (step S1310), and repeats the above process while the loop condition of loop 1 is satisfied. On the other hand, when the loop condition of loop 1 is not satisfied, the mismatch information totaling unit 21d ends the mismatch information totaling process.

次に、実施例2の不一致情報集計処理のサブルーチンについて図14A及び図14Bを用いて説明する。実施例2の不一致情報集計処理は、不一致情報の集計処理の対象となる画素(座標)の周辺画素(座標)の不一致フラグの値を考慮して不一致フラグの値を不一致情報の値に加算する処理である。実施例1の不一致情報集計処理は、不一致情報の集計処理の対象となる画素の不一致フラグの値を不一致情報の値に加算する処理であって、周辺画素の不一致フラグの値は考慮されていない。実施例2の不一致情報集計処理により、微細なゴミを拾わず劣化判定の精度を高めることが可能となる。   Next, a sub-routine of the mismatch information totaling process according to the second embodiment will be described with reference to FIGS. 14A and 14B. In the mismatch information totaling process of the second embodiment, the value of the mismatch flag is added to the value of the mismatch information in consideration of the value of the mismatch flag of the peripheral pixels (coordinates) of the pixel (coordinates) that is the target of the mismatch process. It is processing. The mismatch information totaling process according to the first embodiment is a process of adding the value of the mismatch flag of the pixel that is the target of the mismatch processing of the mismatch information to the value of the mismatch information, and does not consider the value of the mismatch flag of the surrounding pixels. . With the mismatch information tabulation process of the second embodiment, it is possible to improve the accuracy of the deterioration determination without picking up fine dust.

不一致情報集計部21dは、不一致情報テーブル70の劣化フラグを設定するため、動作環境テーブル80から不一致判定閾値Tjを取得する(ステップS1401)とともに、不一致カウント閾値Tcを取得する(ステップS1402)。また、不一致情報集計部21dは登録印影二値画像の幅Wgと高さHgを動作環境テーブル80から取得する(ステップS1403)。   The mismatch information totaling unit 21d acquires the mismatch determination threshold Tj from the operating environment table 80 (step S1401) and the mismatch count threshold Tc (step S1402) in order to set the deterioration flag of the mismatch information table 70. Also, the discrepancy information totalization unit 21d acquires the width Wg and the height Hg of the registered stamp binary image from the operating environment table 80 (step S1403).

不一致情報集計部21dは、ループ1ではカウンタiの初期値を−Wg/2とし、ループ条件をiがWg/2以下の間としてループ処理を行い、ループ2ではカウンタjの初期値を−Hg/2とし、ループ条件をjがHg/2以下の間としてループ処理を行う。このループ処理におけるカウンタ、ループ条件、カウントアップは実施例1の不一致情報集計処理におけるループ処理のものと同様である。   The mismatch information aggregating unit 21d performs loop processing with the initial value of the counter i set to −Wg / 2 in the loop 1 and the loop condition set to i between Wg / 2 and lower. In the loop 2, the initial value of the counter j is set to −Hg. / 2 and loop processing is performed with a loop condition between j and Hg / 2 or less. The counter, loop condition, and count up in this loop process are the same as those in the loop process in the mismatch information aggregation process of the first embodiment.

不一致情報集計部21dは、座標(i、j)の不一致フラグの値を照合結果画素管理テーブル60から取得する(ステップS1404)。不一致情報集計部21dは取得した不一致フラグの値が0でないか否かを判断する(ステップS1405)。不一致フラグの値が0である場合(ステップS1405でNo)、ステップS1410へ進む。   The mismatch information totaling unit 21d acquires the value of the mismatch flag of the coordinates (i, j) from the matching result pixel management table 60 (step S1404). The mismatch information totaling unit 21d determines whether or not the acquired mismatch flag value is not 0 (step S1405). If the value of the mismatch flag is 0 (No in step S1405), the process proceeds to step S1410.

一方、不一致フラグの値が0でない場合(ステップS1405でYes)、不一致情報集計部21dは座標(i、j)の周辺座標の不一致フラグの値を取得する(ステップS1406)。ここで、周辺座標とは、例えば対象座標(i、j)と隣接する座標を言い、座標(i−1、j−1)、(i、j−1)、(i+1、j−1)、(i−1、j)、(i+1、j)、(i−1、j+1)、(i、j+1)、(i+1、j+1)である。   On the other hand, if the value of the mismatch flag is not 0 (Yes in step S1405), the mismatch information totaling unit 21d acquires the value of the mismatch flag of the peripheral coordinates of the coordinates (i, j) (step S1406). Here, the peripheral coordinates are coordinates adjacent to the target coordinates (i, j), for example, and the coordinates (i-1, j-1), (i, j-1), (i + 1, j-1), (I-1, j), (i + 1, j), (i-1, j + 1), (i, j + 1), (i + 1, j + 1).

不一致情報集計部21dは、座標(i、j)の不一致フラグの値と一致する不一致フラグを有する周辺座標の数、すなわち不一致数Fcをカウントする(ステップS1407)。不一致情報集計部21dは不一致数Fcが不一致カウント閾値Tc以上であるか否かを判断する(ステップS1408)。不一致数Fcが取得した不一致カウント閾値Tc以上である場合(ステップS1408でYes)、不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の不一致情報の値に座標(i、j)の不一致フラグの値を加算する(ステップS1409)。一方、不一致数Fcが取得した不一致カウント閾値Tc以上でない場合(ステップS1408でNo)、ステップS1410へ進む。   The mismatch information totaling unit 21d counts the number of peripheral coordinates having a mismatch flag that matches the value of the mismatch flag of the coordinates (i, j), that is, the mismatch number Fc (step S1407). The mismatch information totaling unit 21d determines whether or not the mismatch number Fc is greater than or equal to the mismatch count threshold Tc (step S1408). When the mismatch number Fc is equal to or greater than the acquired mismatch count threshold value Tc (Yes in step S1408), the mismatch information totaling unit 21d uses coordinates (i, j) as the mismatch information value of the coordinates (i, j) in the mismatch information table 70. Are added (step S1409). On the other hand, if the mismatch number Fc is not equal to or greater than the acquired mismatch count threshold Tc (No in step S1408), the process proceeds to step S1410.

不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の不一致情報の値が不一致判定閾値Tj以上か又は−Tj以下かを判断する(ステップS1410)。   The mismatch information totaling unit 21d determines whether the value of the mismatch information of the coordinates (i, j) in the mismatch information table 70 is greater than or equal to the mismatch determination threshold Tj or less than -Tj (step S1410).

不一致情報の値が不一致判定閾値Tj以上又は−Tj以下である場合(ステップS1410でYes)、不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の劣化フラグにtrueを設定する(ステップS1411)。一方、不一致情報の値が不一致判定閾値Tj以上又は−Tj以下でない場合(ステップS1410でNo)、不一致情報集計部21dは不一致情報テーブル70の座標(i、j)の劣化フラグにfalseを設定する(ステップS1412)。   When the value of the mismatch information is greater than or equal to the mismatch determination threshold Tj or less than or equal to −Tj (Yes in step S1410), the mismatch information totaling unit 21d sets true to the deterioration flag of the coordinates (i, j) in the mismatch information table 70 ( Step S1411). On the other hand, if the value of the mismatch information is not greater than or equal to the mismatch determination threshold Tj or less than -Tj (No in step S1410), the mismatch information totaling unit 21d sets false to the deterioration flag of the coordinates (i, j) of the mismatch information table 70. (Step S1412).

不一致情報集計部21dは、劣化フラグの設定が終わるとループ2のカウンタjのカウントアップを行い(ステップS1413)、ループ2のループ条件を満たす間は上記処理を繰り返す。一方、ループ2のループ条件を満たさなくなった場合には、不一致情報集計部21dはループ1のカウンタiのカウントアップを行い(ステップS1414)、ループ1のループ条件を満たす間は上記処理を繰り返す。一方、ループ1のループ条件を満たさなくなった場合には、不一致情報集計部21dは不一致情報集計処理を終了する。   When the setting of the deterioration flag is finished, the mismatch information totaling unit 21d counts up the counter 2 of the loop 2 (step S1413), and repeats the above process while satisfying the loop 2 loop condition. On the other hand, when the loop condition of loop 2 is no longer satisfied, the mismatch information counting unit 21d counts up the counter i of loop 1 (step S1414), and repeats the above process while the loop condition of loop 1 is satisfied. On the other hand, when the loop condition of loop 1 is not satisfied, the mismatch information totaling unit 21d ends the mismatch information totaling process.

次に、印鑑劣化判定処理のサブルーチンについて図15A及び図15Bを用いて説明する。   Next, the seal deterioration determination processing subroutine will be described with reference to FIGS. 15A and 15B.

不一致情報集計部21dは、登録印影二値画像を複数のグリッドに分けて印鑑劣化の有無を示す印鑑劣化フラグを設定するため、動作環境テーブル80から不一致判定グリッド幅lgを取得する(ステップS1501)とともに、劣化判定閾値Trを取得する(ステップS1502)。   The discrepancy information totaling unit 21d acquires the discrepancy determination grid width lg from the operating environment table 80 in order to set the seal deterioration flag indicating the presence / absence of seal deterioration by dividing the registered seal imprint binary image into a plurality of grids (step S1501). At the same time, a deterioration determination threshold value Tr is acquired (step S1502).

グリッドとは一定の幅及び高さで登録印影二値画像を区切った1つの領域を言う。グリッドの一例を図16A及び図16Bに示す。図16Aに示す例ではグリッド1600の幅と高さは同じ値lgである、すなわちグリッド1600は正方形であるが、幅と高さを異なる値にして長方形のグリッドとしてもよい。また、図16Bに示すようにグリッドの大きさを一定とせず、例えば登録印影二値画像の中央付近(印影がある部分)ではグリッド1601を大きくし、登録印影二値画像の端付近(印影がない部分)ではグリッド1602を小さくするなどしてもよい(lgz>lg)。   The grid refers to one area obtained by dividing the registered seal impression binary image with a certain width and height. An example of the grid is shown in FIGS. 16A and 16B. In the example shown in FIG. 16A, the width and height of the grid 1600 are the same value lg, that is, the grid 1600 is a square, but the width and height may be different values to form a rectangular grid. Also, as shown in FIG. 16B, the grid size is not fixed. For example, the grid 1601 is enlarged near the center of the registered imprint binary image (the portion with the imprint), and near the end of the registered imprint binary image (the imprint is imprinted). The grid 1602 may be made smaller (lgz> lg) in the non-part).

不一致情報集計部21dは登録印影二値画像の幅Wgと高さHgを動作環境テーブル80から取得する(ステップS1503)。   The discrepancy information totalization unit 21d acquires the width Wg and the height Hg of the registered stamp binary image from the operating environment table 80 (step S1503).

不一致情報集計部21dは、ループ1ではカウンタiの初期値を−Wg/2とし、ループ条件をiがWg/2以下の間としてループ処理を行い、ループ2ではカウンタjの初期値を−Hg/2とし、ループ条件をjがHg/2以下の間としてループ処理を行う。このループ処理におけるカウンタ、ループ条件、カウントアップは上記不一致情報集計処理におけるループ処理のものと同様である。   The mismatch information aggregating unit 21d performs loop processing with the initial value of the counter i set to −Wg / 2 in the loop 1 and the loop condition set to i between Wg / 2 and lower. In the loop 2, the initial value of the counter j is set to −Hg. / 2 and loop processing is performed with a loop condition between j and Hg / 2 or less. The counter, loop condition, and count-up in this loop process are the same as those in the loop process in the mismatch information aggregation process.

不一致情報集計部21dは、印鑑劣化判定用カウンタCを0に初期化する(ステップS1504)。   The mismatch information totaling unit 21d initializes the seal deterioration determination counter C to 0 (step S1504).

不一致情報集計部21dはグリッド内に劣化フラグ=trueという画素(座標)がいくつあるかをカウントするためのループ処理を行う。すなわち、ループ3ではカウンタmの初期値を0とし、ループ条件をmがlgより小さい間としてループ処理を行い、ループ4ではカウンタnの初期値を0とし、ループ条件をnがlgより小さい間としてループ処理を行う。   The mismatch information totaling unit 21d performs a loop process for counting how many pixels (coordinates) the deterioration flag = true in the grid. That is, in loop 3, loop processing is performed while setting the initial value of counter m to 0 and the loop condition is set to m smaller than lg, and in loop 4, the initial value of counter n is set to 0 and the loop condition is set to n smaller than lg. Loop processing is performed.

不一致情報集計部21dは座標(i+m、j+n)の劣化フラグの値を不一致情報テーブル70から取得する(ステップS1505)。不一致情報集計部21dは取得した劣化フラグの値がtrueであるか否かを判断し(ステップS1506)、劣化フラグの値がtrueである場合(ステップS1506でYes)、不一致情報集計部21dはカウンタCに1を加える(ステップS1507)。一方、劣化フラグの値がtrueでない場合(ステップS1506でNo)、すなわちfalseの場合、ステップS1508へ進む。   The mismatch information totaling unit 21d acquires the value of the deterioration flag at the coordinates (i + m, j + n) from the mismatch information table 70 (step S1505). The mismatch information totaling unit 21d determines whether or not the acquired deterioration flag value is true (step S1506). If the degradation flag value is true (Yes in step S1506), the mismatch information totaling unit 21d is a counter. 1 is added to C (step S1507). On the other hand, if the value of the deterioration flag is not true (No in step S1506), that is, if false, the process proceeds to step S1508.

不一致情報集計部21dは、ループ4のカウンタnのカウントアップを行い(ステップS1508)、ループ4のループ条件を満たす間は上記処理を繰り返す。一方、ループ4のループ条件を満たさなくなった場合には、不一致情報集計部21dはループ3のカウンタmのカウントアップを行い(ステップS1509)、ループ3のループ条件を満たす間は上記処理を繰り返す。一方、ループ3のループ条件を満たさなくなった場合には、不一致情報集計部21dは印鑑劣化判定用カウンタCが劣化判定閾値Trより小さいか否かを判断する(ステップS1510)。すなわち、後述するように、印鑑劣化判定用カウンタCの値に基づいて印鑑が劣化しているか否かを判定する。   The mismatch information totaling unit 21d counts up the counter n of the loop 4 (step S1508), and repeats the above process while satisfying the loop 4 loop condition. On the other hand, when the loop condition of the loop 4 is no longer satisfied, the mismatch information counting unit 21d counts up the counter m of the loop 3 (step S1509), and repeats the above process while satisfying the loop condition of the loop 3. On the other hand, when the loop condition of loop 3 is no longer satisfied, the mismatch information counting unit 21d determines whether or not the seal deterioration determination counter C is smaller than the deterioration determination threshold Tr (step S1510). That is, as will be described later, it is determined whether or not the seal is deteriorated based on the value of the seal deterioration determination counter C.

印鑑劣化判定用カウンタCが劣化判定閾値Trより小さい場合(ステップS1510でYes)、不一致情報集計部21dはループ2のカウンタjのカウントアップを行い(ステップS1511)、ループ2のループ条件を満たす間は上記処理を繰り返す。ここでのカウントアップは次のグリッドについての判定を行うためグリッド幅lgを加える。以下のiのカウントアップについても同様である。   If the seal stamp deterioration determination counter C is smaller than the deterioration determination threshold Tr (Yes in step S1510), the mismatch information totaling unit 21d counts up the counter j of the loop 2 (step S1511), and while the loop 2 satisfies the loop condition Repeats the above process. In this count-up, the grid width lg is added to determine the next grid. The same applies to the count up of i below.

一方、ループ2のループ条件を満たさなくなった場合には、不一致情報集計部21dはループ1のカウンタiのカウントアップを行い(ステップS1512)、ループ1のループ条件を満たす間は上記処理を繰り返す。一方、ループ1のループ条件を満たさなくなった場合には、不一致情報集計部21dは印鑑劣化フラグにfalseを設定し(ステップS1513)、印鑑劣化判定処理を終了する。すなわち、印鑑劣化判定用カウンタCの値に基づいて印鑑が劣化しているか否かを判定する。   On the other hand, when the loop condition of loop 2 is no longer satisfied, the mismatch information counting unit 21d counts up the counter i of loop 1 (step S1512), and repeats the above process while the loop condition of loop 1 is satisfied. On the other hand, when the loop condition of loop 1 is no longer satisfied, the mismatch information aggregating unit 21d sets false to the seal deterioration flag (step S1513) and ends the seal deterioration determination process. That is, based on the value of the stamp deterioration determination counter C, it is determined whether the seal is deteriorated.

一方、印鑑劣化判定用カウンタCが劣化判定閾値Trより小さくない場合(ステップS1510でNo)、不一致情報集計部21dは印鑑劣化フラグにtrueを設定し(ステップS1514)、印鑑劣化判定処理を終了する。   On the other hand, when the seal stamp deterioration determination counter C is not smaller than the deterioration determination threshold value Tr (No in step S1510), the mismatch information totaling unit 21d sets true to the seal stamp deterioration flag (step S1514), and ends the seal stamp deterioration determination process. .

次に、印鑑劣化注意喚起画像生成処理のサブルーチンについて図17を用いて説明する。   Next, a subroutine for the seal deterioration warning image generation process will be described with reference to FIG.

印鑑劣化注意喚起画像生成部21eは、印鑑の劣化を視覚的にオペレータに伝えるための印鑑劣化注意喚起画像を生成するため、すべての座標情報及び不一致情報を不一致情報テーブル70から取得する(ステップS1701)。印鑑劣化注意喚起画像生成部21eは、各座標(X座標、Y座標)に対応する不一致情報の値をZ座標としてプロット(3次元プロット)する(ステップS1702)。すなわち、印鑑劣化注意喚起画像生成部21eは、画素ごとに蓄積した蓄積値に基づいて印鑑劣化注意喚起画像を生成する。印鑑劣化注意喚起画像生成部21eは、プロットした画像を印鑑劣化注意喚起画像として印影画像管理テーブル40に格納する(ステップS1703)。なお、印鑑劣化注意喚起画像生成部21eは、印鑑劣化注意喚起画像の表示要求に基づいて、格納された印鑑劣化注意喚起画像を表示装置5へ表示させる。   The seal deterioration warning image generating unit 21e acquires all coordinate information and mismatch information from the mismatch information table 70 in order to generate a seal deterioration warning image for visually informing the operator of the seal deterioration (step S1701). ). The seal deterioration alerting image generation unit 21e plots (three-dimensional plot) the value of the mismatch information corresponding to each coordinate (X coordinate, Y coordinate) as the Z coordinate (step S1702). That is, the seal deterioration warning image generating unit 21e generates a seal deterioration warning image based on the accumulated value accumulated for each pixel. The seal deterioration warning image generating unit 21e stores the plotted image in the seal image management table 40 as a seal deterioration warning image (step S1703). The seal deterioration warning image generating unit 21e displays the stored seal deterioration warning image on the display device 5 based on the display request for the seal deterioration warning image.

次に、実施の形態における印鑑劣化判定プログラムを実装する印影照合装置21を実現するためのハードウェア構成の一例について図19を用いて説明する。   Next, an example of a hardware configuration for realizing the seal collation apparatus 21 that implements the seal deterioration determination program in the embodiment will be described with reference to FIG.

ハードウェア構成は、例えば、CPU191、HDD(Hard Disk Drive)192、RAM(Random Access Memory)193、ROM(Read Only Memory)194、入力装置195、出力装置196、通信インタフェース(I/F)197、バス198を備えている。CPU191、HDD192、RAM193、ROM194、入力装置195、出力装置196、通信インタフェース(I/F)197は、例えば、バス198を介して互いに接続されている。   The hardware configuration includes, for example, CPU 191, HDD (Hard Disk Drive) 192, RAM (Random Access Memory) 193, ROM (Read Only Memory) 194, input device 195, output device 196, communication interface (I / F) 197, A bus 198 is provided. The CPU 191, HDD 192, RAM 193, ROM 194, input device 195, output device 196, and communication interface (I / F) 197 are connected to each other via a bus 198, for example.

CPU191は、バス198を介して、HDD192などに格納される印影照合装置21の各種処理を行うためのプログラム(例えば、印鑑劣化判定プログラムなど)を読み込み、読み込んだプログラムをRAM193に一時的に格納し、そのプログラムにしたがって各種処理を行う。CPU191は、主として、上述した印影多値画像取得部21a、印影画像重ね合わせ処理部21b、印影照合画像生成部21c、不一致情報集計部21d、印鑑劣化注意喚起画像生成部21eとして機能する。   The CPU 191 reads a program (for example, a seal stamp deterioration determination program) for performing various processes of the seal imprint matching device 21 stored in the HDD 192 or the like via the bus 198, and temporarily stores the read program in the RAM 193. Various processes are performed according to the program. The CPU 191 mainly functions as the above-described seal impression multi-value image acquisition unit 21a, seal image overlay processing unit 21b, seal impression collation image generation unit 21c, mismatch information totalization unit 21d, and seal deterioration deterioration alerting image generation unit 21e.

HDD192には、印影照合装置21の各種処理を行うためのアプリケーションプログラムや、印影照合装置21の処理に必要なデータなどが格納される。HDD192は、主として記憶部21fとして機能する。   The HDD 192 stores application programs for performing various processes of the seal collation apparatus 21 and data necessary for the processes of the seal collation apparatus 21. The HDD 192 mainly functions as the storage unit 21f.

RAM193は、揮発性メモリであって、CPU191に実行させるためのOS(Operating System)プログラムやアプリケーションプログラムの一部が一時的に格納される。また、RAM193には、CPU191による処理に必要な各種データが格納される。   The RAM 193 is a volatile memory and temporarily stores a part of an OS (Operating System) program and application programs to be executed by the CPU 191. The RAM 193 stores various data necessary for processing by the CPU 191.

ROM194は、不揮発性メモリであって、ブートプログラムやBIOS(Basic Input/Output System)などのプログラムを記憶する。   The ROM 194 is a non-volatile memory and stores programs such as a boot program and BIOS (Basic Input / Output System).

入力装置195は、不図示のキーボードやマウスなどを介して入力される口座情報などを受け付けるものである。   The input device 195 receives account information input via a keyboard or mouse (not shown).

出力装置196は、表示装置5と接続可能であって、表示装置5に表示させる情報を生成するものである。   The output device 196 can be connected to the display device 5 and generates information to be displayed on the display device 5.

通信インタフェース(I/F)197は、外部(画像読取装置3や印影データベース4など)とデータの送受信を行うものである。   A communication interface (I / F) 197 performs data transmission / reception with the outside (such as the image reading device 3 or the imprint database 4).

バス198は、各装置間の制御信号、データ信号などの授受を媒介する経路である。
上述したような印影照合装置(印鑑劣化判定プログラム)によれば、画素に着目して印鑑の欠けなどを検出するため、印鑑のどの位置にどのような問題があるかを判定できる。これにより、オペレータに登録印影の再登録を促すことを可能とする。また、印鑑の劣化だけでなく、微細な印鑑の偽造(欠け、目詰まりなど)を検出することも可能である。
The bus 198 is a path that mediates transmission / reception of control signals, data signals, and the like between the devices.
According to the seal impression checking apparatus (seal stamp deterioration determination program) as described above, it is possible to determine what kind of problem is in which position of the seal stamp because the missing seal or the like is detected by paying attention to the pixel. Thereby, it is possible to prompt the operator to re-register the registered seal. It is also possible to detect not only the deterioration of the seal, but also the forgery (scratch, clogging, etc.) of the fine seal.

なお、上述した実施の形態では、印影照合装置21の主な処理をCPUによるソフトウェア処理によって実行するものとして説明したが、この処理の全部又は一部をハードウェアによって実現するようにしてもよい。   In the above-described embodiment, the main process of the seal collation apparatus 21 has been described as being executed by software processing by the CPU. However, all or part of this process may be realized by hardware.

また、上述した実施の形態は、上述したものに限定されるものではなく、実施の形態の要旨を逸脱しない範囲において種々の変更を加えることができる。   Further, the above-described embodiment is not limited to the above-described embodiment, and various changes can be made without departing from the gist of the embodiment.

1 印鑑照合システム
2 印影制御装置
3 画像読取装置
4 印影データベース
5 表示装置
20 印影検索装置
21 印影照合装置
21a 印影多値画像取得部
21b 印影画像重ね合わせ処理部
21c 印影照合画像生成部
21d 不一致情報集計部
21e 印鑑劣化注意喚起画像生成部
21f 記憶部
40 印影画像管理テーブル
50 照合結果情報テーブル
60 照合結果画素管理テーブル
70 不一致情報テーブル
80 動作管理テーブル
1200、1201、1202、1203 画素
1600、1601、1602 グリッド
1800、1801、1802 劣化箇所確認アイコン
1803 OKアイコン
191 CPU
192 HDD
193 RAM
194 ROM
195 入力装置
196 出力装置
197 通信インタフェース
198 バス
DESCRIPTION OF SYMBOLS 1 Seal collation system 2 Imprint control apparatus 3 Image reading apparatus 4 Imprint database 5 Display apparatus 20 Imprint search apparatus 21 Imprint collation apparatus 21a Imprint multi-value image acquisition part 21b Imprint image superposition process part 21c Imprint collation image generation part 21d Inconsistency information totalization Unit 21e seal deterioration warning image generation unit 21f storage unit 40 imprint image management table 50 collation result information table 60 collation result pixel management table 70 mismatch information table 80 operation management table 1200, 1201, 1202, 1203 pixel 1600, 1601, 1602 grid 1800, 1801, 1802 Deterioration location confirmation icon 1803 OK icon 191 CPU
192 HDD
193 RAM
194 ROM
195 Input device 196 Output device 197 Communication interface 198 Bus

Claims (7)

登録印影画像と読取印影画像の照合により印鑑の劣化を判定する印鑑劣化判定プログラムであって、
前記登録印影画像の画素と、前記画素に対応する前記読取印影画像の画素とを比較し、比較結果に応じて所定の値を前記画素の値として画素ごとに設定するステップと、
前記画素の値を画素ごとに蓄積した蓄積値に前記設定された画素の値を画素ごとに加算し、加算された前記蓄積値と所定の閾値を画素ごとに比較し、比較結果に基づいて劣化の有無を示す劣化フラグを設定するステップと、
設定された前記劣化フラグに基づいて前記印鑑が劣化しているか否かを判定するステップとを、
コンピュータに実行させることを特徴とする印鑑劣化判定プログラム。
A seal stamp deterioration determination program for determining deterioration of a seal stamp by comparing a registered seal image and a read seal image,
Comparing the pixel of the registered imprint image with the pixel of the read imprint image corresponding to the pixel, and setting a predetermined value for each pixel as a value of the pixel according to a comparison result;
The value of the set pixel is added for each pixel to the accumulated value obtained by accumulating the value of the pixel for each pixel, the added accumulated value is compared with a predetermined threshold value for each pixel, and deterioration is performed based on the comparison result. Setting a deterioration flag indicating the presence or absence of
Determining whether the seal has deteriorated based on the set deterioration flag,
A seal deterioration determination program that is executed by a computer.
前記登録印影画像を複数の画素を含むグリッドに分け、前記グリッド内における劣化有りを示す前記劣化フラグの数に基づいて前記印鑑が劣化しているか否かを判定することを特徴とする請求項1に記載の印鑑劣化判定プログラム。   2. The registered seal image is divided into a grid including a plurality of pixels, and it is determined whether or not the seal is deteriorated based on the number of the deterioration flags indicating the presence of deterioration in the grid. The seal deterioration determination program described in 1. 前記設定された画素の値が画素不一致を示す値である場合、前記蓄積値に前記設定された画素の値を加算することを特徴とする請求項1又は2に記載の印鑑劣化判定プログラム。   3. The seal deterioration determination program according to claim 1, wherein when the set pixel value is a value indicating pixel mismatch, the set pixel value is added to the accumulated value. 4. 前記蓄積値に前記設定された画素の値を加算する際、前記設定された画素の値と同じ値を有する周辺画素の数が所定の加算閾値以上の場合、前記蓄積値に前記設定された画素の値を加算することを特徴とする請求項1から3のいずれか1つに記載の印鑑劣化判定プログラム。   When the value of the set pixel is added to the accumulated value, and the number of surrounding pixels having the same value as the set pixel value is equal to or larger than a predetermined addition threshold, the set pixel is set to the accumulated value. The seal stamp deterioration determination program according to any one of claims 1 to 3, characterized in that the value is added. 前記印鑑が劣化していると判定された場合、前記画素ごとに蓄積した前記蓄積値に基づいて印鑑劣化注意喚起画像を生成し、表示装置へ表示させるステップを更に有することを特徴とする請求項1から4のいずれか1つに記載の印鑑劣化判定プログラム。   The method according to claim 1, further comprising the step of: when it is determined that the seal is deteriorated, generating a seal deterioration warning image based on the accumulated value accumulated for each pixel and displaying the image on a display device. The seal stamp deterioration determination program according to any one of 1 to 4. 登録印影画像と読取印影画像の照合により印鑑の劣化を判定する印影照合装置であって、
前記登録印影画像の画素と、前記画素に対応する前記読取印影画像の画素とを比較し、比較結果に応じて所定の値を前記画素の値として画素ごとに設定する比較設定部と、
前記画素の値を画素ごとに蓄積した蓄積値に前記設定された画素の値を画素ごとに加算し、加算された前記蓄積値と所定の閾値を画素ごとに比較し、比較結果に基づいて劣化の有無を示す劣化フラグを設定する設定部と、
設定された前記劣化フラグに基づいて前記印鑑が劣化しているか否かを判定する判定部とを、
備えることを特徴とする印影照合装置。
An imprint verification device that determines deterioration of a seal by comparing a registered imprint image and a read imprint image,
A comparison setting unit that compares the pixel of the registered imprint image with the pixel of the read imprint image corresponding to the pixel, and sets a predetermined value for each pixel as a value of the pixel according to a comparison result;
The value of the set pixel is added for each pixel to the accumulated value obtained by accumulating the value of the pixel for each pixel, the added accumulated value is compared with a predetermined threshold value for each pixel, and deterioration is performed based on the comparison result. A setting unit for setting a deterioration flag indicating the presence or absence of
A determination unit for determining whether or not the seal is deteriorated based on the set deterioration flag,
An imprint verification device comprising:
登録印影画像と読取印影画像の照合により印鑑の劣化を判定する印鑑劣化判定方法であって、
前記登録印影画像の画素と、前記画素に対応する前記読取印影画像の画素とを比較し、比較結果に応じて所定の値を前記画素の値として画素ごとに設定するステップと、
前記画素の値を画素ごとに蓄積した蓄積値に前記設定された画素の値を画素ごとに加算し、加算された前記蓄積値と所定の閾値を画素ごとに比較し、比較結果に基づいて劣化の有無を示す劣化フラグを設定するステップと、
設定された前記劣化フラグに基づいて前記印鑑が劣化しているか否かを判定するステップとを、
有することを特徴とする印鑑劣化判定方法。
A seal deterioration determination method for determining deterioration of a seal by comparing a registered seal image and a read seal image,
Comparing the pixel of the registered imprint image with the pixel of the read imprint image corresponding to the pixel, and setting a predetermined value for each pixel as a value of the pixel according to a comparison result;
The value of the set pixel is added for each pixel to the accumulated value obtained by accumulating the value of the pixel for each pixel, the added accumulated value is compared with a predetermined threshold value for each pixel, and deterioration is performed based on the comparison result. Setting a deterioration flag indicating the presence or absence of
Determining whether the seal has deteriorated based on the set deterioration flag,
A seal deterioration determination method characterized by comprising:
JP2017043941A 2017-03-08 2017-03-08 Seal stamp deterioration judgment program, seal imprint collation device, seal stamp deterioration judgment method Active JP6660332B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017043941A JP6660332B2 (en) 2017-03-08 2017-03-08 Seal stamp deterioration judgment program, seal imprint collation device, seal stamp deterioration judgment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017043941A JP6660332B2 (en) 2017-03-08 2017-03-08 Seal stamp deterioration judgment program, seal imprint collation device, seal stamp deterioration judgment method

Publications (2)

Publication Number Publication Date
JP2018147371A true JP2018147371A (en) 2018-09-20
JP6660332B2 JP6660332B2 (en) 2020-03-11

Family

ID=63591318

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017043941A Active JP6660332B2 (en) 2017-03-08 2017-03-08 Seal stamp deterioration judgment program, seal imprint collation device, seal stamp deterioration judgment method

Country Status (1)

Country Link
JP (1) JP6660332B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009199457A (en) * 2008-02-22 2009-09-03 Oki Electric Ind Co Ltd Seal impression verification system and terminal
JP2011210185A (en) * 2010-03-30 2011-10-20 Fujitsu Ltd Device and program for generating data for seal impression collation, and seal collation system
JP2012008791A (en) * 2010-06-24 2012-01-12 Hitachi Computer Peripherals Co Ltd Form recognition device and form recognition method
JP2012048513A (en) * 2010-08-27 2012-03-08 Fujitsu Frontech Ltd Seal registration device
JP2012173763A (en) * 2011-02-17 2012-09-10 Oki Electric Ind Co Ltd Seal collation system, tabulation processing execution terminal for seal collation system, seal collation device and seal collation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009199457A (en) * 2008-02-22 2009-09-03 Oki Electric Ind Co Ltd Seal impression verification system and terminal
JP2011210185A (en) * 2010-03-30 2011-10-20 Fujitsu Ltd Device and program for generating data for seal impression collation, and seal collation system
JP2012008791A (en) * 2010-06-24 2012-01-12 Hitachi Computer Peripherals Co Ltd Form recognition device and form recognition method
JP2012048513A (en) * 2010-08-27 2012-03-08 Fujitsu Frontech Ltd Seal registration device
JP2012173763A (en) * 2011-02-17 2012-09-10 Oki Electric Ind Co Ltd Seal collation system, tabulation processing execution terminal for seal collation system, seal collation device and seal collation method

Also Published As

Publication number Publication date
JP6660332B2 (en) 2020-03-11

Similar Documents

Publication Publication Date Title
US8867741B2 (en) Mobile field level encryption of private documents
US20180300327A1 (en) Display, visualization, and management of images based on content analytics
US20150213310A1 (en) Note recognition and association based on grouping indicators
US6351550B1 (en) Seal imprint verifying apparatus
US20190075218A1 (en) Hiding sensitive data
US20140233837A1 (en) Systems and methods for storing image properties for recreating an image
CN102903136B (en) A kind of handwriting electronization method and system
CN104036177A (en) Intelligent terminal fingerprint unlocking device and method
CN103745247A (en) Mark and anti-fake identification method
US9031308B2 (en) Systems and methods for recreating an image using white space and check element capture
CN102194123A (en) Method and device for defining table template
CN111124888A (en) Method and device for generating recording script and electronic device
CN103324407A (en) Information processing apparatus and information processing method
JP6660332B2 (en) Seal stamp deterioration judgment program, seal imprint collation device, seal stamp deterioration judgment method
CN111046736B (en) Method, device and storage medium for extracting text information
CN103390250A (en) Method and device for generating operation order
CN116127401A (en) Data authority management and control method and system
US20170147987A1 (en) Method and apparatus for generating a combined calendar
CN105069393A (en) Two-dimensional code malicious reading-preventing method and device
US9678990B2 (en) Construction drawing evaluation systems and methods
CN203659035U (en) An identification
EP3639177B1 (en) Method and apparatus for validation of authentication code
CN104992108A (en) Password setting method and device
JP5190312B2 (en) Seal verification device
CN108074323B (en) Paper money facing identification method and device thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190308

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200116

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200207

R150 Certificate of patent or registration of utility model

Ref document number: 6660332

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150