JP2021144560A - Image processing program, image processing method, and image processing apparatus - Google Patents

Image processing program, image processing method, and image processing apparatus Download PDF

Info

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
Application number
JP2020043825A
Other languages
Japanese (ja)
Inventor
康成 石塚
Yasunari Ishizuka
康成 石塚
恭平 大塚
Kyohei Otsuka
恭平 大塚
央樹 一宮
Hisaki Ichinomiya
央樹 一宮
尭央 田村
Takao Tamura
尭央 田村
海 浅葉
Kai Asaba
海 浅葉
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 Ltd
Original Assignee
Fujitsu 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 Ltd filed Critical Fujitsu Ltd
Priority to JP2020043825A priority Critical patent/JP2021144560A/en
Publication of JP2021144560A publication Critical patent/JP2021144560A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)

Abstract

To precisely detect a date area included in a seal impression image.SOLUTION: An image processing apparatus 100 extracts an area of a seal impression included in an image. The image processing apparatus 100 specifies a first area in which a data may be included in the extracted area of the seal impression based upon information on position relation between a previously set area of a seal impression and an area of a date position included in the seal impression. The image processing apparatus 100 rotates the image area including an image of the first area based upon a reference line calculated based upon information in the specified first area. The image processing apparatus 100 outputs an image of the image area including at least a part of an image of the first area having been rotated.SELECTED DRAWING: Figure 1

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.

特開2013−84071号公報Japanese Unexamined Patent Publication No. 2013-84071 特開2019−197444号公報Japanese Unexamined Patent Publication No. 2019-197444

しかしながら、上述した従来技術では、印鑑画像に含まれる日付領域を精度よく検出することができないという問題がある。 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.

図1は、本実施例1に係る画像処理装置の処理を説明するための図である。FIG. 1 is a diagram for explaining the processing of the image processing apparatus according to the first embodiment. 図2は、本実施例1に係る画像処理装置の構成を示す機能ブロック図である。FIG. 2 is a functional block diagram showing the configuration of the image processing apparatus according to the first embodiment. 図3は、位置関係情報のデータ構造の一例を示す図である。FIG. 3 is a diagram showing an example of a data structure of positional relationship information. 図4は、基準点からの距離を説明するための図である。FIG. 4 is a diagram for explaining the distance from the reference point. 図5は、抽出部の処理を説明するための図である。FIG. 5 is a diagram for explaining the processing of the extraction unit. 図6は、本実施例1に係る画像処理装置の処理手順を示すフローチャートである。FIG. 6 is a flowchart showing a processing procedure of the image processing apparatus according to the first embodiment. 図7は、本実施例2に係る画像処理装置の処理を説明するための図である。FIG. 7 is a diagram for explaining the processing of the image processing apparatus according to the second embodiment. 図8は、本実施例2に係る画像処理装置の構成を示す機能ブロック図である。FIG. 8 is a functional block diagram showing the configuration of the image processing apparatus according to the second embodiment. 図9は、本実施例2に係る画像処理装置の処理手順を示すフローチャートである。FIG. 9 is a flowchart showing a processing procedure of the image processing apparatus according to the second embodiment. 図10は、実施例の画像処理装置と同様の機能を実現するコンピュータのハードウェア構成の一例を示す図である。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.

以下に、本願の開示する画像処理プログラム、画像処理方法および画像処理装置の実施例を図面に基づいて詳細に説明する。なお、この実施例によりこの発明が限定されるものではない。 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 area 50 of the seal stamp included in the image (step S10).

画像処理装置は、あらかじめ設定された印鑑の領域と、印鑑に含まれる日付の位置の座標(あるいは領域)との位置関係の情報を基にして、印鑑の領域50に含まれる一部分の領域であって、日付が記載されているであろう領域(日付含有領域50a)を特定する(切り出す)(ステップS11)。たとえば、日付含有領域50aは、「第一の領域」に対応する。 The image processing device is a partial area included in the seal area 50 based on the information on the positional relationship between the preset area of the seal and the coordinates (or area) of the date position included in the seal. The region (date-containing region 50a) where the date will be described is specified (cut out) (step S11). For example, the date-containing region 50a corresponds to the "first region".

画像処理装置は、日付含有領域50aの画像に対して、二値化処理を実行することで、二値化画像50bを生成する(ステップS12)。 The image processing apparatus generates a binarized image 50b by executing a binarization process on the image in the date-containing region 50a (step S12).

画像処理装置は、二値化画像50bに対して、モルフォロジー変換(膨張)を実行することで、変換画像50cを生成する。モルフォロジー変換(膨張)では、線分が太く補正される。画像処理装置は、変換画像50cから、基準線51を算出する(ステップS13)。 The image processing apparatus generates the converted image 50c by executing the morphological conversion (expansion) on the binarized image 50b. In the morphology transformation (expansion), the line segment is corrected to be thick. The image processing device calculates the reference line 51 from the converted image 50c (step S13).

画像処理装置は、基準線51が水平となるまで、変換画像50cを回転させる(ステップS14)。画像処理装置は、ステップS14で回転させた回転画像50dを出力する。 The image processing device rotates the converted image 50c until the reference line 51 becomes horizontal (step S14). The image processing device outputs the rotated image 50d rotated in step S14.

上記のように、本実施例1に係る画像処理装置は、印鑑の領域50から日付が記載されているであろう日付含有領域50aを特定し、基準線を算出する。画像処理装置は、基準線が水平となるまで回転させた回転画像50d(回転させた日付含有領域50aの画像)を出力する。これによって、印鑑の領域50に含まれる日付の領域を精度よく抽出することができる。 As described above, the image processing apparatus according to the first embodiment identifies the date-containing region 50a on which the date will be written from the region 50 of the seal stamp, and calculates the reference line. The image processing device outputs a rotated image 50d (a rotated image of the date-containing region 50a) rotated until the reference line becomes horizontal. As a result, the date area included in the seal area 50 can be accurately extracted.

次に、本実施例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 scanner 55. The image processing device 100 includes a communication unit 110, an input unit 120, a display unit 130, a storage unit 140, and a control unit 150.

スキャナ55は、印鑑が押印された紙媒体(契約書、帳票等)の表面を電子的に読み込むことで、画像データを生成する装置である。本実施例では、スキャナ55は、押印済みの紙媒体の画像データを生成するものとする。スキャナ55は、画像データを、画像処理装置100の通信部110に出力する。 The scanner 55 is a device that generates image data by electronically reading the surface of a paper medium (contract, form, etc.) on which a seal is stamped. In this embodiment, the scanner 55 is assumed to generate image data of a stamped paper medium. The scanner 55 outputs the image data to the communication unit 110 of the image processing device 100.

通信部110は、スキャナ55と接続し、画像データを取得する装置である。通信部110は、通信装置の一例である。図示を省略するが、通信部110は、ネットワークを介して、他の外部装置と接続し、データ通信を実行してもよい。後述する制御部150は、通信部110を解して、スキャナ55、外部装置等とデータをやり取りする。 The communication unit 110 is a device that connects to the scanner 55 and acquires image data. The communication unit 110 is an example of a communication device. Although not shown, the communication unit 110 may be connected to another external device via a network to execute data communication. The control unit 150, which will be described later, solves the communication unit 110 and exchanges data with the scanner 55, an external device, and the like.

入力部120は、各種のデータを画像処理装置100の制御部150に入力するための入力装置である。入力部120は、キーボードやマウス、タッチパネル等に対応する。 The input unit 120 is an input device for inputting various data to the control unit 150 of the image processing device 100. The input unit 120 corresponds to a keyboard, a mouse, a touch panel, and the like.

表示部130は、制御部150から出力される情報を表示する表示装置である。表示部130は、有機EL(Electro Luminescence)ディスプレイ、液晶ディスプレイ、タッチパネル等に対応する。 The display unit 130 is a display device that displays information output from the control unit 150. The display unit 130 corresponds to an organic EL (Electro Luminescence) display, a liquid crystal display, a touch panel, and the like.

記憶部140は、位置関係情報141を有する。記憶部140は、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)などの半導体メモリ素子や、HDD(Hard Disk Drive)などの記憶装置に対応する。 The storage unit 140 has the positional relationship information 141. The storage unit 140 corresponds to a semiconductor memory element such as a RAM (Random Access Memory) and a flash memory (Flash Memory), and a storage device such as an HDD (Hard Disk Drive).

位置関係情報141は、印鑑の領域と、印鑑に含まれる日付位置の座標との位置関係を定義する情報である。図3は、位置関係情報のデータ構造の一例を示す図である。図3に示すように、位置関係情報141は、識別情報と、直径と、基準点からの距離とを対応付ける。識別情報は、各レコードを識別する情報である。直径は、印鑑の領域の直径を示す。基準点からの距離は、印鑑の領域の基準点から、日付含有領域までの距離を示す。 The positional relationship information 141 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. FIG. 3 is a diagram showing an example of a data structure of positional relationship information. As shown in FIG. 3, the positional relationship information 141 associates the identification information with the diameter and the distance from the reference point. The identification information is information that identifies each record. The diameter indicates the diameter of the area of the seal. The distance from the reference point indicates the distance from the reference point in the stamp area to the date-containing area.

図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 reference points 5a and 5b. The reference point 5a corresponds to the point of contact between the upper end of the circle 5 and the horizontal line. The reference point 5b corresponds to the point of contact between the lower end of the circle 5 and the horizontal line. The distance y from the reference point corresponds to the distance from the reference point 5a to the upper end 6a of the date-containing region 6 and the distance from the reference point 5b to the lower end 6b of the date-containing region 6.

図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 control unit 150 includes an acquisition unit 151, a specific unit 152, an extraction unit 153, and a character recognition unit 154. The control unit 150 can be realized by a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or the like. The control unit 150 can also be realized by hard-wired logic such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

取得部151は、スキャナ55から、印鑑が押印された画像データを取得する処理部である。取得部151は、取得した画像データを、特定部152に出力する。 The acquisition unit 151 is a processing unit that acquires image data stamped with a seal from the scanner 55. The acquisition unit 151 outputs the acquired image data to the specific unit 152.

特定部152は、画像データに含まれる印鑑の領域を抽出し、位置関係情報141に基づいて、印鑑の領域に含まれる日付が記載されているであろう日付含有領域を特定する処理部である。 The identification unit 152 is a processing unit that extracts the area of the seal stamp included in the image data and specifies the date-containing area in which the date included in the area of the seal stamp is likely to be described based on the positional relationship information 141. ..

特定部152が、画像データに含まれる印鑑の領域を抽出する処理について説明する。たとえば、特定部152は、画像データを走査して、予め設定された印鑑の色や形状パターンに対応する領域を、印鑑の領域として検出する。 The process of extracting the area of the seal stamp included in the image data by the specific unit 152 will be described. For example, the specific unit 152 scans the image data and detects a region corresponding to a preset color and shape pattern of the stamp as a stamp region.

特定部152が、日付含有領域を特定する処理について説明する。特定部152は、印鑑の領域を抽出した場合、印鑑の領域の直径を算出する。特定部152は、算出した直径と、位置関係情報141に設定された各直径とを比較して、最も近い直径に対応する基準点からの距離を選択する。特定部152は、選択した基準点からの距離を基にして、印鑑の領域に含まれる日付含有領域を特定する。 The specific unit 152 describes the process of specifying the date-containing region. When the area of the seal stamp is extracted, the specific unit 152 calculates the diameter of the area of the seal stamp. The specific unit 152 compares the calculated diameter with each diameter set in the positional relationship information 141, and selects the distance from the reference point corresponding to the closest diameter. The identification unit 152 identifies the date-containing area included in the area of the seal stamp based on the distance from the selected reference point.

たとえば、特定部152は、印鑑の領域の直径Dに最も近い直径が、A2である場合には、基準点からの距離y2を選択し、選択した基準点からの距離y2を基にして、日付含有領域を特定する。 For example, when the diameter closest to the diameter D of the seal area is A2, the specific unit 152 selects the distance y2 from the reference point, and the date is based on the distance y2 from the selected reference point. Identify the content region.

特定部152は、印鑑の画像から、日付含有領域の画像を切り出し、切り出した画像を、抽出部153に出力する。 The specific unit 152 cuts out an image of the date-containing region from the image of the seal stamp, and outputs the cut-out image to the extraction unit 153.

抽出部153は、日付含有領域の画像に基づいて基準線を算出し、基準線が水平となるように、日付含有領域の画像を回転させる。抽出部153は、回転後の日付含有領域の画像(回転画像)を、文字認識部154に出力する。抽出部153は、回転画像を、表示部130に出力して表示させてもよい。 The extraction unit 153 calculates a reference line based on the image of the date-containing region, and rotates the image of the date-containing region so that the reference line is horizontal. The extraction unit 153 outputs an image (rotated image) of the date-containing region after rotation to the character recognition unit 154. The extraction unit 153 may output the rotated image to the display unit 130 and display it.

抽出部153が基準線を算出する処理について説明する。抽出部153は、日付含有領域の画像に対して、二値化処理を実行する。たとえば、日付含有領域の画素の画素値と、閾値とをそれぞれ比較し、画素値が閾値以上となる画素については、白画素「255」とし、画素値が閾値未満となる画素については、黒画素「0」に変更することで、二値化を実行する。二値化した日付含有領域の画像を、二値化画像と表記する。 The process of calculating the reference line by the extraction unit 153 will be described. The extraction unit 153 executes a binarization process on the image in the date-containing region. For example, the pixel values of the pixels in the date-containing region are compared with the threshold value, and the pixels whose pixel value is equal to or greater than the threshold value are set to white pixels "255", and the pixels whose pixel value is less than the threshold value are black pixels. By changing to "0", binarization is executed. The image of the binarized date-containing region is referred to as a binarized image.

抽出部153は、二値化画像に対して、モルフォロジー変換(膨張)を実行することで、二値化画像に含まれる黒画素同士を結ぶ線分を太くした変換画像を生成する。モルフォロジー変換は、「変換する処理」の一例である。 The extraction unit 153 executes a morphology conversion (expansion) on the binarized image to generate a converted image in which the line segment connecting the black pixels included in the binarized image is thickened. Morphology transformation is an example of "conversion processing".

たとえば、抽出部153は、二値化画像上に所定の大きさのカーネルを配置し、カーネルに含まれる複数の画素のうち、一つでも黒画素が含まれる場合に、カーネル内の画素を黒画素に変換する。抽出部153は、カーネルの位置を移動させながら、上記処理を繰り返し実行することで、モルフォロジー変換(膨張)を実行する。 For example, the extraction unit 153 arranges a kernel of a predetermined size on a binarized image, and when at least one of a plurality of pixels included in the kernel contains a black pixel, the pixel in the kernel is blackened. Convert to pixels. The extraction unit 153 executes the morphology conversion (expansion) by repeatedly executing the above processing while moving the position of the kernel.

抽出部153は、変換画像に対して、黒画素(黒画像を結んだ線分群)に囲まれた閉領域を抽出する。図5は、抽出部の処理を説明するための図である。図5に示すように、抽出部153は、変換画像50cから、閉領域52を抽出する。抽出部153は、閉領域を複数抽出した場合には、領域の大きさが最大となる閉領域を選択する。 The extraction unit 153 extracts a closed region surrounded by black pixels (a group of lines connecting the black images) from the converted image. FIG. 5 is a diagram for explaining the processing of the extraction unit. As shown in FIG. 5, the extraction unit 153 extracts the closed region 52 from the converted image 50c. When a plurality of closed regions are extracted, the extraction unit 153 selects the closed region having the maximum size of the region.

抽出部153は、閉領域52を構成する各線分のうち、最長となる線分51を、基準線として算出する。 The extraction unit 153 calculates the longest line segment 51 among the line segments constituting the closed region 52 as a reference line.

抽出部153が、日付含有領域の画像を回転させる処理について説明する。抽出部153は、算出した基準線が水平となるまで、変換画像を回転させることで、回転画像を生成する。 The process of rotating the image of the date-containing region by the extraction unit 153 will be described. The extraction unit 153 generates a rotated image by rotating the converted image until the calculated reference line becomes horizontal.

なお、抽出部153は、変換画像の基準線が水平となるまでの角度を算出し、算出した角度分だけ、二値化画像または日付含有領域の画像を回転させることで、回転画像を生成してもよい。 The extraction unit 153 calculates the angle until the reference line of the converted image becomes horizontal, and generates a rotated image by rotating the binarized image or the image of the date-containing region by the calculated angle. You may.

文字認識部154は、回転画像に対して文字認識処理を実行し、日付の文字列を認識する処理部である。文字認識部154は、認識結果を、表示部130に出力して表示させる。または、文字認識部154は、ネットワークを介して、認識結果の情報を、外部装置に通知してもよい。 The character recognition unit 154 is a processing unit that executes character recognition processing on the rotated image and recognizes the character string of the date. The character recognition unit 154 outputs the recognition result to the display unit 130 and displays it. Alternatively, the character recognition unit 154 may notify the external device of the recognition result information via the network.

次に、本実施例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 acquisition unit 151 of the image processing device 100 acquires image data (step S101). The identification unit 152 of the image processing device 100 extracts the area of the seal stamp from the image data (step S102).

特定部152は、位置関係情報141を基にして、印鑑の領域のうち、日付含有領域を特定する(ステップS103)。画像処理装置100の抽出部153は、日付含有領域の画像を二値化した二値化画像を生成する(ステップS104)。 The identification unit 152 identifies the date-containing region in the stamp region based on the positional relationship information 141 (step S103). The extraction unit 153 of the image processing apparatus 100 generates a binarized image obtained by binarizing the image of the date-containing region (step S104).

抽出部153は、二値化画像に対してモルフォロジー変換を実行し、変換画像を生成する(ステップS105)。抽出部153は、変換画像を基にして、基準線を算出する(ステップS106)。抽出部153は、基準線が水平となるように、変換画像を回転させることで、回転画像を生成する(ステップS107)。抽出部153は、回転画像を出力する(ステップS108)。図6では説明を省略するが、ステップS108以降において、画像処理装置100の文字認識部154が、回転画像に対して文字認識を実行してもよい。 The extraction unit 153 executes morphological conversion on the binarized image to generate the converted image (step S105). The extraction unit 153 calculates a reference line based on the converted image (step S106). The extraction unit 153 generates a rotated image by rotating the converted image so that the reference line is horizontal (step S107). The extraction unit 153 outputs a rotated image (step S108). Although the description is omitted in FIG. 6, in step S108 and subsequent steps, the character recognition unit 154 of the image processing device 100 may execute character recognition on the rotated image.

次に、本実施例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 region 50a on which the date will be written from the stamp region 50, and calculates a reference line. The image processing device 100 outputs a rotated image 50d rotated until the reference line becomes horizontal. As a result, the date area included in the seal area 50 can be accurately extracted.

画像処理装置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 region 50a and generates a rotated image, but the present invention is limited to this. It is not something that is done. The image processing device 100 may calculate a reference line from the image of the seal stamp, rotate the reference line so that the reference line becomes horizontal, and then cut out an image of the date-containing region.

なお、画像処理装置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 area 60 of the seal stamp included in the image (step S20).

画像処理装置は、印鑑の領域60の画像に対して、二値化処理を実行することで、二値化画像60aを生成する(ステップS21)。 The image processing apparatus generates a binarized image 60a by executing a binarization process on the image in the area 60 of the seal stamp (step S21).

画像処理装置は、二値化画像60aに対して、モルフォロジー変換(膨張)を実行することで、変換画像60bを生成する。画像処理装置は、変換画像から、基準線61を算出する(ステップS22)。 The image processing apparatus generates the converted image 60b by executing the morphological conversion (expansion) on the binarized image 60a. The image processing device calculates the reference line 61 from the converted image (step S22).

画像処理装置は、基準線61が水平となるまで、変換画像60bを回転させる(ステップS23)。画像処理装置は、ステップS23で回転させた回転画像60cに対して、輪郭検出を実行することで、日付領域60dの画像を抽出する(ステップS24)。 The image processing device rotates the converted image 60b until the reference line 61 becomes horizontal (step S23). The image processing apparatus extracts an image of the date region 60d by executing contour detection on the rotated image 60c rotated in step S23 (step S24).

上記のように、本実施例2に係る画像処理装置は、印鑑の領域60から基準線61を算出し、基準線が水平となるように印鑑の領域60の全体画像を回転させてから、日付領域60dの画像を抽出する。これによって、印鑑の領域60に含まれる日付の領域を精度よく抽出することができる。 As described above, the image processing apparatus according to the second embodiment calculates the reference line 61 from the stamp area 60, rotates the entire image of the stamp area 60 so that the reference line is horizontal, and then sets the date. The image of the region 60d is extracted. As a result, the date area included in the seal area 60 can be accurately extracted.

次に、本実施例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 image processing device 200 is connected to the scanner 55. The image processing device 200 includes a communication unit 210, an input unit 220, a display unit 230, a storage unit 240, and a control unit 250.

ここで、スキャナ55に関する説明は、実施例1で説明したスキャナ55に関する説明と同様である。通信部210、入力部220、表示部230に関する説明は、実施例1で説明した、通信部110、入力部120、表示部130に関する説明と同様である。 Here, the description of the scanner 55 is the same as the description of the scanner 55 described in the first embodiment. The description of the communication unit 210, the input unit 220, and the display unit 230 is the same as the description of the communication unit 110, the input unit 120, and the display unit 130 described in the first embodiment.

記憶部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 positional relationship information 141 described in the first embodiment.

制御部250は、取得部251と、抽出部252と、文字認識部253とを有する。制御部250は、CPUやMPUなどによって実現できる。また、制御部250は、ASICやFPGAなどのハードワイヤードロジックによっても実現できる。 The control unit 250 includes an acquisition unit 251, an extraction unit 252, and a character recognition unit 253. The control unit 250 can be realized by a CPU, an MPU, or the like. The control unit 250 can also be realized by hard-wired logic such as ASIC or FPGA.

取得部251は、スキャナ55から、印鑑が押印された画像データを取得する処理部である。取得部251は、取得した画像データを、抽出部252に出力する。 The acquisition unit 251 is a processing unit that acquires image data stamped with a seal from the scanner 55. The acquisition unit 251 outputs the acquired image data to the extraction unit 252.

抽出部252は、画像データに含まれる印鑑の領域を抽出し、印鑑の領域から基準線を算出する。抽出部252は、基準線が水平となるように、印鑑の領域全体を回転させ、日付領域を抽出する。 The extraction unit 252 extracts the area of the seal stamp included in the image data, and calculates the reference line from the area of the seal stamp. The extraction unit 252 rotates the entire area of the seal stamp so that the reference line is horizontal, and extracts the date area.

抽出部252が、画像データに含まれる印鑑の領域を抽出する処理について説明する。たとえば、抽出部252は、画像データを走査して、予め設定された印鑑の色や形状パターンに対応する領域を、印鑑の領域として検出する。 The process of extracting the stamp region included in the image data by the extraction unit 252 will be described. For example, the extraction unit 252 scans the image data and detects a region corresponding to a preset color and shape pattern of the stamp as a stamp region.

抽出部252が、印鑑の領域から基準線を算出する処理について説明する。抽出部252は、印鑑の領域の画像に対して、二値化処理を実行することで、二値化画像を生成する。抽出部252が実行する二値化処理の説明は、実施例1で説明した抽出部153が実行する二値化処理の説明と同様である。 The process of calculating the reference line from the area of the seal stamp by the extraction unit 252 will be described. The extraction unit 252 generates a binarized image by executing a binarization process on the image in the area of the seal stamp. The description of the binarization process executed by the extraction unit 252 is the same as the description of the binarization process executed by the extraction unit 153 described in the first embodiment.

抽出部252は、二値化画像に対して、モルフォロジー変換(膨張)を実行することで、二値化画像に含まれる黒画素同士を結ぶ線分を太くした変換画像を生成する。抽出部252が実行するモルフォロジー変換の説明は、実施例1で説明した抽出部153が実行するモルフォロジー変換の説明と同様である。 The extraction unit 252 executes a morphology conversion (expansion) on the binarized image to generate a converted image in which the line segment connecting the black pixels included in the binarized image is thickened. The description of the morphology conversion executed by the extraction unit 252 is the same as the description of the morphology conversion executed by the extraction unit 153 described in the first embodiment.

抽出部252は、変換画像に対して、黒画素(黒画像を結んだ線分群)に囲まれた閉領域を抽出する。抽出部252は、閉領域を複数抽出した場合には、領域の大きさが最大となる閉領域を選択する。抽出部252は、選択した閉領域を構成する各線分のうち、最長となる線分を、基準線として計算する。 The extraction unit 252 extracts a closed region surrounded by black pixels (a group of lines connecting the black images) from the converted image. When a plurality of closed regions are extracted, the extraction unit 252 selects the closed region having the maximum size of the region. The extraction unit 252 calculates the longest line segment among the line segments constituting the selected closed region as a reference line.

抽出部252は、基準線が水平となるまで、変換画像を回転させることで回転画像を生成する。ここで、抽出部252は、回転画像に含まれる日付領域を、位置関係情報241を基にして抽出してもよいし、回転画像から複数の閉領域のうち、大きさが最大となる閉領域を、日付領域として抽出してもよい。抽出部252が、位置関係情報241を基にして、日付領域を特定する処理は、実施例1で説明した特定部152が、日付含有領域を特定する処理と同様である。 The extraction unit 252 generates a rotated image by rotating the converted image until the reference line becomes horizontal. Here, the extraction unit 252 may extract the date region included in the rotated image based on the positional relationship information 241 or the closed region having the maximum size among the plurality of closed regions from the rotated image. May be extracted as a date area. The process of the extraction unit 252 specifying the date region based on the positional relationship information 241 is the same as the process of the specific unit 152 described in the first embodiment specifying the date-containing region.

抽出部252は、抽出した日付領域の画像を、文字認識部253に出力する。抽出部252は、日付領域の画像を、表示部230に出力して表示させてもよい。 The extraction unit 252 outputs the extracted image of the date area to the character recognition unit 253. The extraction unit 252 may output the image of the date area to the display unit 230 and display it.

文字認識部253は、日付領域の画像に対して、文字認識処理を実行し、日付の文字列を認識する処理部である。文字認識部253は、認識結果を、表示部230に出力して表示させる。または、文字認識部253は、ネットワークを介して、認識結果の情報を、外部装置に通知してもよい。 The character recognition unit 253 is a processing unit that executes character recognition processing on the image in the date area and recognizes the character string of the date. The character recognition unit 253 outputs the recognition result to the display unit 230 and displays it. Alternatively, the character recognition unit 253 may notify the external device of the recognition result information via the network.

次に、本実施例2に係る画像処理装置200の処理手順の一例について説明する。図9は、本実施例2に係る画像処理装置の処理手順を示すフローチャートである。図10に示すように、画像処理装置200の取得部251は、画像データを取得する(ステップS201)。 Next, an example of the processing procedure of the image processing apparatus 200 according to the second embodiment will be described. FIG. 9 is a flowchart showing a processing procedure of the image processing apparatus according to the second embodiment. As shown in FIG. 10, the acquisition unit 251 of the image processing apparatus 200 acquires image data (step S201).

画像処理装置200の抽出部252は、画像データから印鑑の領域を抽出する(ステップS202)。抽出部252は、印鑑の領域の画像を二値化した二値化画像を生成する(ステップS203)。 The extraction unit 252 of the image processing device 200 extracts a stamp region from the image data (step S202). The extraction unit 252 generates a binarized image obtained by binarizing the image in the area of the seal stamp (step S203).

抽出部252は、二値化画像に対してモルフォロジー変換を実行し、変換画像を生成する(ステップS204)。抽出部252は、変換画像を基にして、基準線を算出する(ステップS205)。抽出部153は、基準線が水平となるように、変換画像(印鑑の領域全体の変換画像)を回転させることで、回転画像を生成する(ステップS206)。 The extraction unit 252 executes morphological conversion on the binarized image to generate the converted image (step S204). The extraction unit 252 calculates a reference line based on the converted image (step S205). The extraction unit 153 generates a rotated image by rotating the converted image (converted image of the entire area of the seal stamp) so that the reference line is horizontal (step S206).

抽出部252は、回転させた変換画像から、日付領域を抽出する(ステップS207)。図9では説明を省略するが、ステップS206以降において、画像処理装置200の文字認識部154が、日付領域に対して文字認識を実行してもよい。 The extraction unit 252 extracts a date region from the rotated converted image (step S207). Although the description is omitted in FIG. 9, in step S206 and subsequent steps, the character recognition unit 154 of the image processing device 200 may execute character recognition on the date area.

上記のように、本実施例2に係る画像処理装置200は、印鑑の領域から基準線を算出し、基準線が水平となるように印鑑の領域の全体画像を回転させてから、日付領域の画像を抽出する。これによって、印鑑の日付が傾いていても、印鑑の領域に含まれる日付の領域を精度よく抽出することができる。 As described above, the image processing apparatus 200 according to the second embodiment calculates a reference line from the stamp area, rotates the entire image of the stamp area so that the reference line is horizontal, and then determines the date area. Extract the image. As a result, even if the date of the seal stamp is tilted, the area of the date included in the area of the seal stamp can be accurately extracted.

次に、上記実施例に示した画像処理装置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 computer 300 includes a CPU 301 that executes various arithmetic processes, an input device 302 that receives data input from a user, and a display 303. Further, the computer 300 has a reading device 304 that reads a program or the like from a storage medium, and a communication device 305 that exchanges data between the scanner 55, an external device, or the like via a wired or wireless network. Further, the computer 300 has a RAM 306 that temporarily stores various information and a hard disk device 307. Then, each of the devices 301 to 307 is connected to the bus 308.

ハードディスク装置307は、取得プログラム307a、特定プログラム307b、抽出プログラム307c、文字認識プログラム307dを有する。また、CPU301は、各プログラム307a〜307dを読み出してRAM306に展開する。 The hard disk device 307 includes an acquisition program 307a, a specific program 307b, an extraction program 307c, and a character recognition program 307d. Further, the CPU 301 reads out the programs 307a to 307d and deploys them in the RAM 306.

取得プログラム307aは、取得プロセス306aとして機能する。特定プログラム307bは、特定プロセス306bとして機能する。抽出プログラム307cは、抽出プロセス306cとして機能する。文字認識プログラムプログラム307dは、文字認識プロセス306dとして機能する。 The acquisition program 307a functions as the acquisition process 306a. The specific program 307b functions as the specific process 306b. The extraction program 307c functions as the extraction process 306c. The character recognition program program 307d functions as the character recognition process 306d.

取得プロセス306aの処理は、取得部151,251の処理に対応する。特定プロセス306bの処理は、特定部152の処理に対応する。抽出プロセス306cの処理は、抽出部153,252の処理に対応する。文字認識プロセス306dの処理は、文字認識部154,253の処理に対応する。 The processing of the acquisition process 306a corresponds to the processing of the acquisition units 151 and 251. The processing of the specific process 306b corresponds to the processing of the specific unit 152. The processing of the extraction process 306c corresponds to the processing of the extraction units 153 and 252. The processing of the character recognition process 306d corresponds to the processing of the character recognition units 154 and 253.

なお、各プログラム307a〜307dについては、必ずしも最初からハードディスク装置307に記憶させておかなくても良い。例えば、コンピュータ300に挿入されるフレキシブルディスク(FD)、CD−ROM、DVD、光磁気ディスク、ICカードなどの「可搬用の物理媒体」に各プログラムを記憶させておく。そして、コンピュータ300が各プログラム307a〜307dを読み出して実行するようにしてもよい。 The programs 307a to 307d do not necessarily have to be stored in the hard disk device 307 from the beginning. For example, each program is stored in a "portable physical medium" such as a flexible disk (FD), a CD-ROM, a DVD, a magneto-optical disk, or an IC card inserted into the computer 300. Then, the computer 300 may read and execute each of the programs 307a to 307d.

以上の各実施例を含む実施形態に関し、さらに以下の付記を開示する。 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 Appendix 5 or 6, wherein the conversion process is further executed.

(付記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 Acquisition unit 152 Specific unit 153,252 Extraction unit 154,253 Character recognition unit

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.
前記印鑑の領域内の情報に基づいて算出される基準線に基づいて、前記印鑑の領域の回転を行い、前記位置関係の情報を基にして、回転を行った前記印鑑の領域から、前記印鑑の領域に含まれる日付が含まれうる第一の領域を抽出する処理を更に実行することを特徴とする請求項1に記載の画像処理プログラム。 The area of the seal is rotated based on the reference line calculated based on the information in the area of the seal, and the area of the seal is rotated based on the information of the positional relationship. The image processing program according to claim 1, further executing a process of extracting a first region in which a date included in the region can be included. 前記第一の領域内の画素値に対し、ある閾値に基づいた2値化処理を行い、2値化処理後の画像における一方の値同士を結ぶ線上に存在する他の値を変換する処理を更に実行することを特徴とする請求項1または2に記載の画像処理プログラム。 The pixel values in the first region are binarized based on a certain threshold value, and the other values existing on the line connecting one value in the image after the binarization process are converted. The image processing program according to claim 1 or 2, wherein the image processing program is further executed. 前記変換する処理の結果得られる線分のうち、前記第一の領域内の閉領域を形成する線分群に基づいて、前記基準線を特定することを更に実行する処理を更に実行すること特徴とする請求項3に記載の画像処理プログラム。 Among the line segments obtained as a result of the conversion process, the process of further specifying the reference line based on the line segment group forming the closed region in the first region is further executed. The image processing program according to claim 3. 画像に含まれる印鑑の領域を抽出し、
あらかじめ設定された印鑑の領域と、印鑑に含まれる日付位置の領域との位置関係の情報に基づいて、抽出した前記印鑑の領域において日付が含まれうる第一の領域を特定し、
特定した前記第一の領域内の情報に基づいて算出される基準線に基づいて、前記第一の領域の画像を含む画像領域の回転を行い、
回転後の前記第一の領域の画像の少なくとも一部を含む画像領域の画像を出力する
処理をコンピュータが実行することを特徴とする画像処理方法。
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.
JP2020043825A 2020-03-13 2020-03-13 Image processing program, image processing method, and image processing apparatus Pending JP2021144560A (en)

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)

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