JP2021144560A - Image processing program, image processing method, and image processing apparatus - Google Patents
Image processing program, image processing method, and image processing apparatus Download PDFInfo
- Publication number
- JP2021144560A JP2021144560A JP2020043825A JP2020043825A JP2021144560A JP 2021144560 A JP2021144560 A JP 2021144560A JP 2020043825 A JP2020043825 A JP 2020043825A JP 2020043825 A JP2020043825 A JP 2020043825A JP 2021144560 A JP2021144560 A JP 2021144560A
- Authority
- JP
- Japan
- Prior art keywords
- area
- image
- region
- seal
- date
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Input (AREA)
Abstract
Description
本発明は、画像処理プログラム等に関する。 The present invention relates to an image processing program and the like.
OCR(Optical Character Reader)等の画像処理技術を用いて、紙媒体に記載された各種の文字列を検出する技術がある。たとえば、OCRを用いて、帳票等に押印された印鑑画像を検出し、印鑑画像に対して文字認識を実行することで、日付等を認識する従来技術がある。 There is a technique for detecting various character strings written on a paper medium by using an image processing technique such as OCR (Optical Character Reader). For example, there is a conventional technique of recognizing a date or the like by detecting a stamp image stamped on a form or the like using OCR and performing character recognition on the stamp image.
しかしながら、上述した従来技術では、印鑑画像に含まれる日付領域を精度よく検出することができないという問題がある。 However, the above-mentioned conventional technique has a problem that the date region included in the stamp image cannot be detected accurately.
たとえば、利用者が帳票等に印鑑を押印する場合に、真っ直ぐに押印することは希であり、印鑑画像の日付が傾く場合が多い。このように、日付が傾いていると、印鑑画像に含まれる日付領域を精度よく検出できず、認識精度も低下してしまう。 For example, when a user stamps a stamp on a form or the like, it is rare that the stamp is stamped straight, and the date of the stamp image is often tilted. In this way, if the date is tilted, the date area included in the stamp image cannot be detected accurately, and the recognition accuracy also deteriorates.
1つの側面では、本発明は、印鑑画像に含まれる日付領域を精度よく検出することができる画像処理プログラム、画像処理方法および画像処理装置を提供することを目的とする。 In one aspect, it is an object of the present invention to provide an image processing program, an image processing method, and an image processing apparatus capable of accurately detecting a date region included in a stamp image.
第1の案では、コンピュータに次の処理を実行させる。コンピュータは、画像に含まれる印鑑の領域を抽出する。コンピュータは、あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した印鑑の領域において日付が含まれうる第一の領域を特定する。コンピュータは、特定した第一の領域内の情報に基づいて算出される基準線に基づいて、第一の領域の画像を含む画像領域の回転を行う。コンピュータは、回転後の第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する。 In the first plan, the computer is made to perform the following processing. The computer extracts the area of the seal included in the image. The computer identifies a first region in the extracted stamp region where the date can be included, based on the information on the positional relationship between the preset region of the stamp and the region of the date position included in the stamp. The computer rotates the image region containing the image of the first region based on the reference line calculated based on the information in the identified first region. The computer outputs an image of an image region that includes at least a portion of the image of the first region after rotation.
印鑑画像に含まれる日付領域を精度よく抽出することができる。 The date area included in the seal image can be extracted accurately.
以下に、本願の開示する画像処理プログラム、画像処理方法および画像処理装置の実施例を図面に基づいて詳細に説明する。なお、この実施例によりこの発明が限定されるものではない。 Hereinafter, examples of the image processing program, the image processing method, and the image processing apparatus disclosed in the present application will be described in detail with reference to the drawings. The present invention is not limited to this embodiment.
図1は、本実施例1に係る画像処理装置の処理を説明するための図である。図1に示すように、画像処理装置は、印鑑が押印された画像を取得し、画像に含まれる印鑑の領域50を抽出する(ステップS10)。
FIG. 1 is a diagram for explaining the processing of the image processing apparatus according to the first embodiment. As shown in FIG. 1, the image processing apparatus acquires the image on which the seal stamp is stamped and extracts the
画像処理装置は、あらかじめ設定された印鑑の領域と、印鑑に含まれる日付の位置の座標(あるいは領域)との位置関係の情報を基にして、印鑑の領域50に含まれる一部分の領域であって、日付が記載されているであろう領域(日付含有領域50a)を特定する(切り出す)(ステップS11)。たとえば、日付含有領域50aは、「第一の領域」に対応する。
The image processing device is a partial area included in the
画像処理装置は、日付含有領域50aの画像に対して、二値化処理を実行することで、二値化画像50bを生成する(ステップS12)。
The image processing apparatus generates a
画像処理装置は、二値化画像50bに対して、モルフォロジー変換(膨張)を実行することで、変換画像50cを生成する。モルフォロジー変換(膨張)では、線分が太く補正される。画像処理装置は、変換画像50cから、基準線51を算出する(ステップS13)。
The image processing apparatus generates the
画像処理装置は、基準線51が水平となるまで、変換画像50cを回転させる(ステップS14)。画像処理装置は、ステップS14で回転させた回転画像50dを出力する。
The image processing device rotates the
上記のように、本実施例1に係る画像処理装置は、印鑑の領域50から日付が記載されているであろう日付含有領域50aを特定し、基準線を算出する。画像処理装置は、基準線が水平となるまで回転させた回転画像50d(回転させた日付含有領域50aの画像)を出力する。これによって、印鑑の領域50に含まれる日付の領域を精度よく抽出することができる。
As described above, the image processing apparatus according to the first embodiment identifies the date-containing
次に、本実施例1に係る画像処理装置の構成の一例について説明する。図2は、本実施例1に係る画像処理装置の構成を示す機能ブロック図である。図2に示すように、画像処理装置100は、スキャナ55に接続される。画像処理装置100は、通信部110と、入力部120と、表示部130と、記憶部140と、制御部150とを有する。
Next, an example of the configuration of the image processing apparatus according to the first embodiment will be described. FIG. 2 is a functional block diagram showing the configuration of the image processing apparatus according to the first embodiment. As shown in FIG. 2, the image processing device 100 is connected to the
スキャナ55は、印鑑が押印された紙媒体(契約書、帳票等)の表面を電子的に読み込むことで、画像データを生成する装置である。本実施例では、スキャナ55は、押印済みの紙媒体の画像データを生成するものとする。スキャナ55は、画像データを、画像処理装置100の通信部110に出力する。
The
通信部110は、スキャナ55と接続し、画像データを取得する装置である。通信部110は、通信装置の一例である。図示を省略するが、通信部110は、ネットワークを介して、他の外部装置と接続し、データ通信を実行してもよい。後述する制御部150は、通信部110を解して、スキャナ55、外部装置等とデータをやり取りする。
The
入力部120は、各種のデータを画像処理装置100の制御部150に入力するための入力装置である。入力部120は、キーボードやマウス、タッチパネル等に対応する。
The
表示部130は、制御部150から出力される情報を表示する表示装置である。表示部130は、有機EL(Electro Luminescence)ディスプレイ、液晶ディスプレイ、タッチパネル等に対応する。
The
記憶部140は、位置関係情報141を有する。記憶部140は、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)などの半導体メモリ素子や、HDD(Hard Disk Drive)などの記憶装置に対応する。
The
位置関係情報141は、印鑑の領域と、印鑑に含まれる日付位置の座標との位置関係を定義する情報である。図3は、位置関係情報のデータ構造の一例を示す図である。図3に示すように、位置関係情報141は、識別情報と、直径と、基準点からの距離とを対応付ける。識別情報は、各レコードを識別する情報である。直径は、印鑑の領域の直径を示す。基準点からの距離は、印鑑の領域の基準点から、日付含有領域までの距離を示す。
The
図4は、基準点からの距離を説明するための図である。図4において、円5は、印鑑の領域に相当する。基準点は、基準点5a,5bとなる。基準点5aは、円5の上端と、水平線との接点に対応する。基準点5bは、円5の下端と、水平線との接点に対応する。基準点からの距離yは、基準点5aから日付含有領域6の上端6aまでの距離、および、基準点5bから日付含有領域6の下端6bまでの距離に対応する。
FIG. 4 is a diagram for explaining the distance from the reference point. In FIG. 4, the circle 5 corresponds to the area of the seal stamp. The reference points are the
図2の説明に戻る。制御部150は、取得部151と、特定部152と、抽出部153と、文字認識部154とを有する。制御部150は、CPU(Central Processing Unit)やMPU(Micro Processing Unit)などによって実現できる。また、制御部150は、ASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)などのハードワイヤードロジックによっても実現できる。
Returning to the description of FIG. The
取得部151は、スキャナ55から、印鑑が押印された画像データを取得する処理部である。取得部151は、取得した画像データを、特定部152に出力する。
The
特定部152は、画像データに含まれる印鑑の領域を抽出し、位置関係情報141に基づいて、印鑑の領域に含まれる日付が記載されているであろう日付含有領域を特定する処理部である。
The
特定部152が、画像データに含まれる印鑑の領域を抽出する処理について説明する。たとえば、特定部152は、画像データを走査して、予め設定された印鑑の色や形状パターンに対応する領域を、印鑑の領域として検出する。
The process of extracting the area of the seal stamp included in the image data by the
特定部152が、日付含有領域を特定する処理について説明する。特定部152は、印鑑の領域を抽出した場合、印鑑の領域の直径を算出する。特定部152は、算出した直径と、位置関係情報141に設定された各直径とを比較して、最も近い直径に対応する基準点からの距離を選択する。特定部152は、選択した基準点からの距離を基にして、印鑑の領域に含まれる日付含有領域を特定する。
The
たとえば、特定部152は、印鑑の領域の直径Dに最も近い直径が、A2である場合には、基準点からの距離y2を選択し、選択した基準点からの距離y2を基にして、日付含有領域を特定する。
For example, when the diameter closest to the diameter D of the seal area is A2, the
特定部152は、印鑑の画像から、日付含有領域の画像を切り出し、切り出した画像を、抽出部153に出力する。
The
抽出部153は、日付含有領域の画像に基づいて基準線を算出し、基準線が水平となるように、日付含有領域の画像を回転させる。抽出部153は、回転後の日付含有領域の画像(回転画像)を、文字認識部154に出力する。抽出部153は、回転画像を、表示部130に出力して表示させてもよい。
The
抽出部153が基準線を算出する処理について説明する。抽出部153は、日付含有領域の画像に対して、二値化処理を実行する。たとえば、日付含有領域の画素の画素値と、閾値とをそれぞれ比較し、画素値が閾値以上となる画素については、白画素「255」とし、画素値が閾値未満となる画素については、黒画素「0」に変更することで、二値化を実行する。二値化した日付含有領域の画像を、二値化画像と表記する。
The process of calculating the reference line by the
抽出部153は、二値化画像に対して、モルフォロジー変換(膨張)を実行することで、二値化画像に含まれる黒画素同士を結ぶ線分を太くした変換画像を生成する。モルフォロジー変換は、「変換する処理」の一例である。
The
たとえば、抽出部153は、二値化画像上に所定の大きさのカーネルを配置し、カーネルに含まれる複数の画素のうち、一つでも黒画素が含まれる場合に、カーネル内の画素を黒画素に変換する。抽出部153は、カーネルの位置を移動させながら、上記処理を繰り返し実行することで、モルフォロジー変換(膨張)を実行する。
For example, the
抽出部153は、変換画像に対して、黒画素(黒画像を結んだ線分群)に囲まれた閉領域を抽出する。図5は、抽出部の処理を説明するための図である。図5に示すように、抽出部153は、変換画像50cから、閉領域52を抽出する。抽出部153は、閉領域を複数抽出した場合には、領域の大きさが最大となる閉領域を選択する。
The
抽出部153は、閉領域52を構成する各線分のうち、最長となる線分51を、基準線として算出する。
The
抽出部153が、日付含有領域の画像を回転させる処理について説明する。抽出部153は、算出した基準線が水平となるまで、変換画像を回転させることで、回転画像を生成する。
The process of rotating the image of the date-containing region by the
なお、抽出部153は、変換画像の基準線が水平となるまでの角度を算出し、算出した角度分だけ、二値化画像または日付含有領域の画像を回転させることで、回転画像を生成してもよい。
The
文字認識部154は、回転画像に対して文字認識処理を実行し、日付の文字列を認識する処理部である。文字認識部154は、認識結果を、表示部130に出力して表示させる。または、文字認識部154は、ネットワークを介して、認識結果の情報を、外部装置に通知してもよい。
The
次に、本実施例1に係る画像処理装置100の処理手順の一例について説明する。図6は、本実施例1に係る画像処理装置の処理手順を示すフローチャートである。図6に示すように、画像処理装置100の取得部151は、画像データを取得する(ステップS101)。画像処理装置100の特定部152は、画像データから印鑑の領域を抽出する(ステップS102)。
Next, an example of the processing procedure of the image processing apparatus 100 according to the first embodiment will be described. FIG. 6 is a flowchart showing a processing procedure of the image processing apparatus according to the first embodiment. As shown in FIG. 6, the
特定部152は、位置関係情報141を基にして、印鑑の領域のうち、日付含有領域を特定する(ステップS103)。画像処理装置100の抽出部153は、日付含有領域の画像を二値化した二値化画像を生成する(ステップS104)。
The
抽出部153は、二値化画像に対してモルフォロジー変換を実行し、変換画像を生成する(ステップS105)。抽出部153は、変換画像を基にして、基準線を算出する(ステップS106)。抽出部153は、基準線が水平となるように、変換画像を回転させることで、回転画像を生成する(ステップS107)。抽出部153は、回転画像を出力する(ステップS108)。図6では説明を省略するが、ステップS108以降において、画像処理装置100の文字認識部154が、回転画像に対して文字認識を実行してもよい。
The
次に、本実施例1に係る画像処理装置100の効果について説明する。画像処理装置100は、印鑑の領域50から日付が記載されているであろう日付含有領域50aを特定し、基準線を算出する。画像処理装置100は、基準線が水平となるまで回転させた回転画像50dを出力する。これによって、印鑑の領域50に含まれる日付の領域を精度よく抽出することができる。
Next, the effect of the image processing apparatus 100 according to the first embodiment will be described. The image processing device 100 identifies a date-containing
画像処理装置100は、二値化処理およびモルフォロジー変換を実行した変換画像を基にして、基準線を計算するため、日付が記載された領域に対応する線分を正確に抽出することができる。 Since the image processing apparatus 100 calculates the reference line based on the converted image subjected to the binarization processing and the morphology conversion, the line segment corresponding to the region on which the date is described can be accurately extracted.
画像処理装置100は、変換画像から、閉領域を形成する線分群を抽出し、閉領域を形成する線分群を基にして、基準線を特定するため、計算コストを減らして、日付が記載された領域を効率的に特定することができる。 The image processing apparatus 100 extracts the line segment group forming the closed region from the converted image and identifies the reference line based on the line segment group forming the closed region, so that the calculation cost is reduced and the date is described. Areas can be identified efficiently.
ところで、本実施例1に係る画像処理装置100は、図1等で説明したように、日付含有領域50aを切り出してから、基準線を計算し、回転画像を生成していたが、これに限定されるものではない。画像処理装置100は、印鑑の画像から、基準線を計算して、基準線が水平となるように回転させた後に、日付含有領域の画像を切り出してもよい。
By the way, as described in FIG. 1 and the like, the image processing apparatus 100 according to the first embodiment calculates the reference line after cutting out the date-containing
なお、画像処理装置100が取得する画像データの押印が大きく傾いている場合、日付含有領域には、実際の日付領域の中央あたりの文字列しか含まれていないかもしれないが、少なくとも日付領域の枠線の一部は、日付含有領域に含まれていると考えられる。この場合、画像処理装置100は、基準線と水平とのなす角を算出した後に、印鑑の画像全体を、算出したなす角度分だけ、回転させる。画像処理装置100は、印鑑の画像全体を回転させた後に、再度、図1のステップS11〜14等で説明した処理を実行することで、印鑑に含まれる日付領域の画像を切り出すことができる。 When the stamp of the image data acquired by the image processing device 100 is greatly tilted, the date-containing area may include only the character string around the center of the actual date area, but at least the date area. A part of the border is considered to be included in the date-containing region. In this case, the image processing device 100 calculates the angle formed by the reference line and the horizontal, and then rotates the entire image of the seal stamp by the calculated angle formed. The image processing device 100 can cut out an image of the date region included in the stamp by rotating the entire image of the stamp and then executing the process described in steps S11 to 14 of FIG. 1 again.
次に、本実施例2に係る画像処理装置の処理について説明する。図7は、本実施例2に係る画像処理装置の処理を説明するための図である。図7に示すように、画像処理装置は、印鑑が押印された画像を取得し、画像に含まれる印鑑の領域60を抽出する(ステップS20)。
Next, the processing of the image processing apparatus according to the second embodiment will be described. FIG. 7 is a diagram for explaining the processing of the image processing apparatus according to the second embodiment. As shown in FIG. 7, the image processing apparatus acquires the image on which the seal stamp is stamped and extracts the
画像処理装置は、印鑑の領域60の画像に対して、二値化処理を実行することで、二値化画像60aを生成する(ステップS21)。
The image processing apparatus generates a
画像処理装置は、二値化画像60aに対して、モルフォロジー変換(膨張)を実行することで、変換画像60bを生成する。画像処理装置は、変換画像から、基準線61を算出する(ステップS22)。
The image processing apparatus generates the converted
画像処理装置は、基準線61が水平となるまで、変換画像60bを回転させる(ステップS23)。画像処理装置は、ステップS23で回転させた回転画像60cに対して、輪郭検出を実行することで、日付領域60dの画像を抽出する(ステップS24)。
The image processing device rotates the converted
上記のように、本実施例2に係る画像処理装置は、印鑑の領域60から基準線61を算出し、基準線が水平となるように印鑑の領域60の全体画像を回転させてから、日付領域60dの画像を抽出する。これによって、印鑑の領域60に含まれる日付の領域を精度よく抽出することができる。
As described above, the image processing apparatus according to the second embodiment calculates the
次に、本実施例2に係る画像処理装置の構成の一例について説明する。図8は、本実施例2に係る画像処理装置の構成を示す機能ブロック図である。図8に示すように、画像処理装置200は、スキャナ55に接続される。画像処理装置200は、通信部210と、入力部220と、表示部230と、記憶部240と、制御部250とを有する。
Next, an example of the configuration of the image processing apparatus according to the second embodiment will be described. FIG. 8 is a functional block diagram showing the configuration of the image processing apparatus according to the second embodiment. As shown in FIG. 8, the
ここで、スキャナ55に関する説明は、実施例1で説明したスキャナ55に関する説明と同様である。通信部210、入力部220、表示部230に関する説明は、実施例1で説明した、通信部110、入力部120、表示部130に関する説明と同様である。
Here, the description of the
記憶部240は、位置関係情報241を有する。記憶部240は、RAM、フラッシュメモリなどの半導体メモリ素子や、HDDなどの記憶装置に対応する。 The storage unit 240 has the positional relationship information 241. The storage unit 240 corresponds to a semiconductor memory element such as a RAM or a flash memory, or a storage device such as an HDD.
位置関係情報241は、印鑑の領域と、印鑑に含まれる日付位置の座標との位置関係を定義する情報である。位置関係情報241に関する説明は、実施例1で説明した、位置関係情報141に関する情報と同様である。
The positional relationship information 241 is information that defines the positional relationship between the area of the seal stamp and the coordinates of the date position included in the seal stamp. The description of the positional relationship information 241 is the same as the information regarding the
制御部250は、取得部251と、抽出部252と、文字認識部253とを有する。制御部250は、CPUやMPUなどによって実現できる。また、制御部250は、ASICやFPGAなどのハードワイヤードロジックによっても実現できる。
The
取得部251は、スキャナ55から、印鑑が押印された画像データを取得する処理部である。取得部251は、取得した画像データを、抽出部252に出力する。
The
抽出部252は、画像データに含まれる印鑑の領域を抽出し、印鑑の領域から基準線を算出する。抽出部252は、基準線が水平となるように、印鑑の領域全体を回転させ、日付領域を抽出する。
The
抽出部252が、画像データに含まれる印鑑の領域を抽出する処理について説明する。たとえば、抽出部252は、画像データを走査して、予め設定された印鑑の色や形状パターンに対応する領域を、印鑑の領域として検出する。
The process of extracting the stamp region included in the image data by the
抽出部252が、印鑑の領域から基準線を算出する処理について説明する。抽出部252は、印鑑の領域の画像に対して、二値化処理を実行することで、二値化画像を生成する。抽出部252が実行する二値化処理の説明は、実施例1で説明した抽出部153が実行する二値化処理の説明と同様である。
The process of calculating the reference line from the area of the seal stamp by the
抽出部252は、二値化画像に対して、モルフォロジー変換(膨張)を実行することで、二値化画像に含まれる黒画素同士を結ぶ線分を太くした変換画像を生成する。抽出部252が実行するモルフォロジー変換の説明は、実施例1で説明した抽出部153が実行するモルフォロジー変換の説明と同様である。
The
抽出部252は、変換画像に対して、黒画素(黒画像を結んだ線分群)に囲まれた閉領域を抽出する。抽出部252は、閉領域を複数抽出した場合には、領域の大きさが最大となる閉領域を選択する。抽出部252は、選択した閉領域を構成する各線分のうち、最長となる線分を、基準線として計算する。
The
抽出部252は、基準線が水平となるまで、変換画像を回転させることで回転画像を生成する。ここで、抽出部252は、回転画像に含まれる日付領域を、位置関係情報241を基にして抽出してもよいし、回転画像から複数の閉領域のうち、大きさが最大となる閉領域を、日付領域として抽出してもよい。抽出部252が、位置関係情報241を基にして、日付領域を特定する処理は、実施例1で説明した特定部152が、日付含有領域を特定する処理と同様である。
The
抽出部252は、抽出した日付領域の画像を、文字認識部253に出力する。抽出部252は、日付領域の画像を、表示部230に出力して表示させてもよい。
The
文字認識部253は、日付領域の画像に対して、文字認識処理を実行し、日付の文字列を認識する処理部である。文字認識部253は、認識結果を、表示部230に出力して表示させる。または、文字認識部253は、ネットワークを介して、認識結果の情報を、外部装置に通知してもよい。
The
次に、本実施例2に係る画像処理装置200の処理手順の一例について説明する。図9は、本実施例2に係る画像処理装置の処理手順を示すフローチャートである。図10に示すように、画像処理装置200の取得部251は、画像データを取得する(ステップS201)。
Next, an example of the processing procedure of the
画像処理装置200の抽出部252は、画像データから印鑑の領域を抽出する(ステップS202)。抽出部252は、印鑑の領域の画像を二値化した二値化画像を生成する(ステップS203)。
The
抽出部252は、二値化画像に対してモルフォロジー変換を実行し、変換画像を生成する(ステップS204)。抽出部252は、変換画像を基にして、基準線を算出する(ステップS205)。抽出部153は、基準線が水平となるように、変換画像(印鑑の領域全体の変換画像)を回転させることで、回転画像を生成する(ステップS206)。
The
抽出部252は、回転させた変換画像から、日付領域を抽出する(ステップS207)。図9では説明を省略するが、ステップS206以降において、画像処理装置200の文字認識部154が、日付領域に対して文字認識を実行してもよい。
The
上記のように、本実施例2に係る画像処理装置200は、印鑑の領域から基準線を算出し、基準線が水平となるように印鑑の領域の全体画像を回転させてから、日付領域の画像を抽出する。これによって、印鑑の日付が傾いていても、印鑑の領域に含まれる日付の領域を精度よく抽出することができる。
As described above, the
次に、上記実施例に示した画像処理装置100(200)と同様の機能を実現するコンピュータのハードウェア構成の一例について説明する。図10は、実施例の画像処理装置と同様の機能を実現するコンピュータのハードウェア構成の一例を示す図である。 Next, an example of a computer hardware configuration that realizes the same functions as the image processing apparatus 100 (200) shown in the above embodiment will be described. FIG. 10 is a diagram showing an example of a computer hardware configuration that realizes the same functions as the image processing device of the embodiment.
図10に示すように、コンピュータ300は、各種演算処理を実行するCPU301と、ユーザからのデータの入力を受け付ける入力装置302と、ディスプレイ303とを有する。また、コンピュータ300は、記憶媒体からプログラム等を読み取る読み取り装置304と、有線または無線ネットワークを介して、スキャナ55、外部装置等との間でデータの授受を行う通信装置305とを有する。また、コンピュータ300は、各種情報を一時記憶するRAM306と、ハードディスク装置307とを有する。そして、各装置301〜307は、バス308に接続される。
As shown in FIG. 10, the
ハードディスク装置307は、取得プログラム307a、特定プログラム307b、抽出プログラム307c、文字認識プログラム307dを有する。また、CPU301は、各プログラム307a〜307dを読み出してRAM306に展開する。
The
取得プログラム307aは、取得プロセス306aとして機能する。特定プログラム307bは、特定プロセス306bとして機能する。抽出プログラム307cは、抽出プロセス306cとして機能する。文字認識プログラムプログラム307dは、文字認識プロセス306dとして機能する。
The
取得プロセス306aの処理は、取得部151,251の処理に対応する。特定プロセス306bの処理は、特定部152の処理に対応する。抽出プロセス306cの処理は、抽出部153,252の処理に対応する。文字認識プロセス306dの処理は、文字認識部154,253の処理に対応する。
The processing of the
なお、各プログラム307a〜307dについては、必ずしも最初からハードディスク装置307に記憶させておかなくても良い。例えば、コンピュータ300に挿入されるフレキシブルディスク(FD)、CD−ROM、DVD、光磁気ディスク、ICカードなどの「可搬用の物理媒体」に各プログラムを記憶させておく。そして、コンピュータ300が各プログラム307a〜307dを読み出して実行するようにしてもよい。
The
以上の各実施例を含む実施形態に関し、さらに以下の付記を開示する。 The following additional notes will be further disclosed with respect to the embodiments including each of the above embodiments.
(付記1)コンピュータに、
画像に含まれる印鑑の領域を抽出し、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、
回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理を実行させることを特徴とする画像処理プログラム。
(Appendix 1) To the computer
Extract the area of the seal included in the image and
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the extracted area of the seal stamp that can contain the date is specified.
Based on the reference line calculated based on the information in the specified first region, the image region including the image of the first region is rotated.
An image processing program characterized by executing a process of outputting an image of an image region including at least a part of the image of the first region after rotation.
(付記2)前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、前記位置関係の情報を基にして、回転を行った前記印鑑の領域から、前記印鑑の領域において日付が含まれうる第一の領域を抽出する処理を更に実行することを特徴とする付記1に記載の画像処理プログラム。 (Appendix 2) The area of the seal stamp is rotated based on the reference line calculated based on the information in the area of the seal stamp, and the area of the seal stamp is rotated based on the information of the positional relationship. The image processing program according to Appendix 1, wherein the process of extracting the first area in which the date can be included is further executed in the area of the seal stamp.
(付記3)前記第一の領域内の画素値に対し、ある閾値に基づいた2値化処理を行い、2値化処理後の画像における一方の値同士を結ぶ線上に存在する他の値を変換する処理を更に実行することを特徴とする付記1または2に記載の画像処理プログラム。 (Appendix 3) Pixel values in the first region are binarized based on a certain threshold value, and other values existing on a line connecting one value in the image after the binarization process are used. The image processing program according to Appendix 1 or 2, wherein the conversion process is further executed.
(付記4)前記変換する処理の結果得られる線分のうち、前記第一の領域内の閉領域を形成する線分群に基づいて、前記基準線を特定する処理を更に実行すること特徴とする付記3に記載の画像処理プログラム。 (Appendix 4) Among the line segments obtained as a result of the conversion process, the process of specifying the reference line is further executed based on the line segment group forming the closed region in the first region. The image processing program according to Appendix 3.
(付記5)画像に含まれる印鑑の領域を抽出し、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、
回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理をコンピュータが実行することを特徴とする画像処理方法。
(Appendix 5) The area of the seal included in the image is extracted.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the extracted area of the seal stamp that can contain the date is specified.
Based on the reference line calculated based on the information in the specified first region, the image region including the image of the first region is rotated.
An image processing method, characterized in that a computer executes a process of outputting an image of an image region including at least a part of the image of the first region after rotation.
(付記6)前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、前記位置関係の情報を基にして、回転を行った前記印鑑の領域から、前記印鑑の領域において日付が含まれうる第一の領域を抽出する処理を更に実行することを特徴とする付記5に記載の画像処理方法。 (Appendix 6) The area of the seal stamp is rotated based on the reference line calculated based on the information in the area of the seal stamp, and the area of the seal stamp is rotated based on the information of the positional relationship. The image processing method according to Appendix 5, wherein the process of extracting the first region in which the date can be included is further executed in the region of the seal stamp.
(付記7)前記第一の領域内の画素値に対し、ある閾値に基づいた2値化処理を行い、2値化処理後の画像における一方の値同士を結ぶ線上に存在する他の値を変換する処理を更に実行することを特徴とする付記5または6に記載の画像処理方法。
(Appendix 7) Pixel values in the first region are binarized based on a certain threshold value, and other values existing on a line connecting one value in the image after the binarization process are used. The image processing method according to
(付記8)前記変換する処理の結果得られる線分のうち、前記第一の領域内の閉領域を形成する線分群に基づいて、前記基準線を特定する処理を更に実行すること特徴とする付記7に記載の画像処理方法。 (Appendix 8) Among the line segments obtained as a result of the conversion process, the process of specifying the reference line is further executed based on the line segment group forming the closed region in the first region. The image processing method according to Appendix 7.
(付記9)画像に含まれる印鑑の領域を抽出し、あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した前記印鑑の領域において日付が含まれうる第一の領域を特定する特定部と、
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する抽出部と
を有することを特徴とする画像処理装置。
(Appendix 9) The area of the seal stamp included in the image is extracted, and the date is set in the extracted area of the seal stamp based on the information on the positional relationship between the area of the seal stamp set in advance and the area of the date position included in the seal stamp. And a specific part that identifies the first area that can contain
Based on the reference line calculated based on the information in the specified first region, the image region including the image of the first region is rotated, and at least the image of the first region after rotation is rotated. An image processing device characterized by having an extraction unit that outputs an image of an image area including a part thereof.
(付記10)前記抽出部は、前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、前記位置関係の情報を基にして、回転を行った前記印鑑の領域から、前記印鑑の領域において日付が含まれうる第一の領域を抽出する処理を更に実行することを特徴とする付記9に記載の画像処理装置。 (Appendix 10) The extraction unit rotates the area of the seal stamp based on the reference line calculated based on the information in the area of the seal stamp, and rotates based on the information of the positional relationship. The image processing apparatus according to Appendix 9, further performing a process of extracting a first region in the stamp region, which may include a date, from the stamp region.
(付記11)前記抽出部は、前記第一の領域内の画素値に対し、ある閾値に基づいた2値化処理を行い、2値化処理後の画像における一方の値同士を結ぶ線上に存在する他の値を変換する処理を更に実行することを特徴とする付記9または10に記載の画像処理装置。 (Appendix 11) The extraction unit performs a binarization process on the pixel values in the first region based on a certain threshold value, and exists on a line connecting one of the values in the image after the binarization process. The image processing apparatus according to Appendix 9 or 10, further performing a process of converting other values to be performed.
(付記12)前記抽出部は、前記変換する処理の結果得られる線分のうち、前記第一の領域内の閉領域を形成する線分群に基づいて、前記基準線を特定する処理を更に実行すること特徴とする付記11に記載の画像処理装置。 (Appendix 12) The extraction unit further executes a process of specifying the reference line based on a group of line segments forming a closed region in the first region among the line segments obtained as a result of the conversion process. The image processing apparatus according to Appendix 11, which is characterized by the above.
(付記13)コンピュータに、
画像に含まれる印鑑の領域を抽出し、
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、回転を行った前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理を実行させることを特徴とする画像処理プログラム。
(Appendix 13) To the computer
Extract the area of the seal included in the image and
The area of the seal stamp is rotated based on the reference line calculated based on the information in the area of the seal stamp.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the rotated seal stamp area where the date can be included is specified.
An image processing program characterized by executing a process of outputting an image of an image area including at least a part of an image of a specified area.
(付記14)画像に含まれる印鑑の領域を抽出し、
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、回転を行った前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理をコンピュータが実行することを特徴とする画像処理方法。
(Appendix 14) The area of the seal included in the image is extracted.
The area of the seal stamp is rotated based on the reference line calculated based on the information in the area of the seal stamp.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the rotated seal stamp area where the date can be included is specified.
An image processing method characterized in that a computer executes a process of outputting an image of an image area including at least a part of the image of the specified area.
(付記15)画像に含まれる印鑑の領域を抽出し、
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行う抽出部と、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、回転を行った前記印鑑の領域において日付が含まれうる第一の領域を特定する特定部と、
特定した領域の画像の少なくとも一部を含む画像領域の画像を出力する抽出部と
を有することを特徴とする画像処理装置。
(Appendix 15) The area of the seal included in the image is extracted.
An extraction unit that rotates the area of the seal based on a reference line calculated based on the information in the area of the seal.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the specific unit that identifies the first area in the rotated seal stamp area that can include the date. When,
An image processing apparatus including an extraction unit that outputs an image of an image area including at least a part of an image of a specified area.
55 スキャナ
100,200 画像処理装置
110,210 通信部
120,220 入力部
130,230 表示部
140,240 記憶部
141,241 位置関係情報
150,250 制御部
151,251 取得部
152 特定部
153,252 抽出部
154,253 文字認識部
55 Scanner 100,200 Image processing device 110,210 Communication unit 120,220 Input unit 130,230 Display unit 140,240 Storage unit 141,241 Positional information 150,250 Control unit 151,251
Claims (9)
画像に含まれる印鑑の領域を抽出し、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、
回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理を実行させることを特徴とする画像処理プログラム。 On the computer
Extract the area of the seal included in the image and
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the extracted area of the seal stamp that can contain the date is specified.
Based on the reference line calculated based on the information in the specified first region, the image region including the image of the first region is rotated.
An image processing program characterized by executing a process of outputting an image of an image region including at least a part of the image of the first region after rotation.
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、
回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理をコンピュータが実行することを特徴とする画像処理方法。 Extract the area of the seal included in the image and
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the extracted area of the seal stamp that can contain the date is specified.
Based on the reference line calculated based on the information in the specified first region, the image region including the image of the first region is rotated.
An image processing method, characterized in that a computer executes a process of outputting an image of an image region including at least a part of the image of the first region after rotation.
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する抽出部と
を有することを特徴とする画像処理装置。 The stamp area included in the image is extracted, and the date can be included in the extracted stamp area based on the information on the positional relationship between the preset stamp area and the date position area included in the stamp. A specific part that identifies the first area,
Based on the reference line calculated based on the information in the specified first region, the image region including the image of the first region is rotated, and at least the image of the first region after rotation is rotated. An image processing device characterized by having an extraction unit that outputs an image of an image area including a part thereof.
画像に含まれる印鑑の領域を抽出し、
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、回転を行った前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理を実行させることを特徴とする画像処理プログラム。 On the computer
Extract the area of the seal included in the image and
The area of the seal stamp is rotated based on the reference line calculated based on the information in the area of the seal stamp.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the rotated seal stamp area where the date can be included is specified.
An image processing program characterized by executing a process of outputting an image of an image area including at least a part of an image of a specified area.
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、回転を行った前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理をコンピュータが実行することを特徴とする画像処理方法。 Extract the area of the seal included in the image and
The area of the seal stamp is rotated based on the reference line calculated based on the information in the area of the seal stamp.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the first area in the rotated seal stamp area where the date can be included is specified.
An image processing method characterized in that a computer executes a process of outputting an image of an image area including at least a part of the image of the specified area.
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行う抽出部と、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、回転を行った前記印鑑の領域において日付が含まれうる第一の領域を特定する特定部と、
特定した領域の画像の少なくとも一部を含む画像領域の画像を出力する抽出部と
を有することを特徴とする画像処理装置。 Extract the area of the seal included in the image and
An extraction unit that rotates the area of the seal based on a reference line calculated based on the information in the area of the seal.
Based on the information on the positional relationship between the preset area of the seal stamp and the area of the date position included in the seal stamp, the specific unit that identifies the first area in the rotated seal stamp area that can include the date. When,
An image processing apparatus including an extraction unit that outputs an image of an image area including at least a part of an image of a specified area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020043825A JP2021144560A (en) | 2020-03-13 | 2020-03-13 | Image processing program, image processing method, and image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020043825A JP2021144560A (en) | 2020-03-13 | 2020-03-13 | Image processing program, image processing method, and image processing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2021144560A true JP2021144560A (en) | 2021-09-24 |
Family
ID=77766882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020043825A Pending JP2021144560A (en) | 2020-03-13 | 2020-03-13 | Image processing program, image processing method, and image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2021144560A (en) |
-
2020
- 2020-03-13 JP JP2020043825A patent/JP2021144560A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020140698A1 (en) | Table data acquisition method and apparatus, and server | |
WO2014077184A1 (en) | Two-dimensional code | |
CN110659647A (en) | Seal image identification method and device, intelligent invoice identification equipment and storage medium | |
JP5229050B2 (en) | Document area extraction apparatus, method, and program from image | |
JP4694613B2 (en) | Document orientation determination apparatus, document orientation determination method, program, and recording medium therefor | |
US10204284B2 (en) | Object recognition utilizing feature alignment | |
JP2017516204A (en) | Generation and decoding of machine-readable optical codes with aesthetic elements | |
JP2002133426A (en) | Ruled line extracting device for extracting ruled line from multiple image | |
US20080069447A1 (en) | Character recognition method, character recognition device, and computer product | |
US7400768B1 (en) | Enhanced optical recognition of digitized images through selective bit insertion | |
JP7076772B2 (en) | Authentication system and authentication method | |
CN112419207A (en) | Image correction method, device and system | |
JP2008011484A (en) | Apparatus and method for extracting character and graphic string, program for executing the method, recording medium with the program stored therein | |
JP2013171309A (en) | Character segmentation method, and character recognition device and program using the same | |
US7155051B2 (en) | Image recognition apparatus, image recognition method and image recognition program for specific pattern | |
JP2008011135A (en) | Image processing device and image processing program | |
JP2021144560A (en) | Image processing program, image processing method, and image processing apparatus | |
JP2011186595A (en) | Information generation device, object detection device, information generation method, object detection method, and program | |
CN113610090B (en) | Seal image identification and classification method, device, computer equipment and storage medium | |
Bloomberg et al. | Document image applications | |
JP5993100B2 (en) | Image processing apparatus and specific figure detection method | |
JP2004094427A (en) | Slip image processor and program for realizing the same device | |
JP6171786B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP7452120B2 (en) | Image processing method, image processing program, and image processing device | |
JP6118214B2 (en) | Wrinkle analysis method and wrinkle analyzer |