JP7615688B2 - Information processing device and computer program - Google Patents
Information processing device and computer program Download PDFInfo
- Publication number
- JP7615688B2 JP7615688B2 JP2021002995A JP2021002995A JP7615688B2 JP 7615688 B2 JP7615688 B2 JP 7615688B2 JP 2021002995 A JP2021002995 A JP 2021002995A JP 2021002995 A JP2021002995 A JP 2021002995A JP 7615688 B2 JP7615688 B2 JP 7615688B2
- Authority
- JP
- Japan
- Prior art keywords
- text data
- unit
- document
- information processing
- character
- 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.)
- Active
Links
Images
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、情報処理装置及びコンピュータプログラムに関する。 The present invention relates to an information processing device and a computer program.
自社には運用ノウハウがない業務を外部事業者に委託するBPO(ビジネス・プロセス・アウトソーシング)が様々な分野で行われている。例えば、各種申請に関する書類の受付・仕分け・審査業務を一括して委託するBPO業務の需要が増大しつつある。 BPO (Business Process Outsourcing), in which a company outsources operations that the company does not have the operational know-how to external businesses, is being carried out in a variety of fields. For example, there is an increasing demand for BPO services that comprehensively outsource the receipt, sorting, and review of documents related to various applications.
書類の仕分け業務では、書類をスキャナで読み取る作業が必要となる。特許文献1には、スキャナで読み取った原稿をオペレータが検品作業を行って電子的に管理する処理が開示されており、書類の仕分け業務もスキャナで読み取った書類の分類作業を人手で実施している場合が多い。
Document sorting work requires the documents to be scanned.
しかし、作業者の疲労によりヒューマンエラーが発生すると、仕分け業務を再度実施しなければならず、業務効率が低下するだけでなく仕分け精度が低下する。また、急な案件増加による労働力不足が発生すると、タイムリーな業務委託ができずビジネスチャンスを逃すリスクもある。 However, if human error occurs due to worker fatigue, the sorting work must be performed again, which not only reduces work efficiency but also reduces sorting accuracy. Furthermore, if a labor shortage occurs due to a sudden increase in cases, there is a risk that work cannot be outsourced in a timely manner and business opportunities will be missed.
本発明は、斯かる事情に鑑みてなされたものであり、書類の仕分け業務を効率よく、かつ仕分け精度を向上することができる情報処理装置及びコンピュータプログラムを提供することを目的とする。 The present invention has been made in consideration of the above circumstances, and aims to provide an information processing device and computer program that can make document sorting more efficient and improve sorting accuracy.
情報処理装置は、書類画像を取得する取得部と、前記取得部で取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成する画像生成部と、前記画像生成部で生成した複数の処理後画像それぞれを光学的に読み取ってテキストデータを生成するテキストデータ生成部と、前記テキストデータ生成部で生成した複数のテキストデータに基づいて前記書類画像を分類する分類器とを備える。 The information processing device includes an acquisition unit that acquires a document image, an image generation unit that performs color reduction processing based on multiple thresholds on the document image acquired by the acquisition unit to generate multiple processed images, a text data generation unit that optically reads each of the multiple processed images generated by the image generation unit to generate text data, and a classifier that classifies the document image based on the multiple text data generated by the text data generation unit.
コンピュータプログラムは、コンピュータに、書類画像を取得し、取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成し、生成した複数の処理後画像それぞれを光学的に読み取ってテキストデータを生成し、生成した複数のテキストデータに基づいて前記書類画像を分類する、処理を実行させる。 The computer program causes the computer to execute the following processes: acquire a document image, perform color reduction processing on the acquired document image based on multiple thresholds to generate multiple processed images, optically read each of the multiple processed images to generate text data, and classify the document image based on the multiple text data generated.
本発明によれば、書類の仕分け業務を効率よく、かつ仕分け精度を向上することができる。 The present invention makes document sorting more efficient and improves sorting accuracy.
以下、本発明の実施の形態を図面に基づいて説明する。図1は情報処理システムの構成の一例を示す模式図である。情報処理システムは、情報処理装置50、及び端末装置10を備える。情報処理装置50と端末装置10とは、通信ネットワーク1を介して接続されている。端末装置10は、パーソナルコンピュータ、タブレット端末などで構成され、作業担当者によって使用される。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram showing an example of the configuration of an information processing system. The information processing system includes an
情報処理装置50は、装置全体を制御する制御部51、通信部52、記憶部53、画像処理部54、OCR処理部55、特徴量抽出部56、分類器57、重み付け付与部58、特定部59、及び出力部60を備える。制御部51は、CPU(Central Processing Unit)、ROM(Read Only Memory)及びRAM(Random Access Memory)などで構成することができる。
The
通信部52は、通信ネットワーク1を介して、端末装置10との間で通信を行う機能を有し、所要の情報の送受信を行うことができる。より具体的には、通信部52は、取得部としての機能を有し、端末装置10から書類画像を取得する。
The
図2は書類画像の一例を示す模式図である。図2は書類の画像の一例として運転免許証の画像を図示している。書類は、本人確認用の書類を含み、例えば、運転免許証の他に、パスポート、マイナンバーカード、保険証(健康保険証、介護保険証など)、国民年金手帳、身体障害者手帳、住民票、戸籍謄本・妙本、印鑑証明書など種々の書類を含む。 Figure 2 is a schematic diagram showing an example of a document image. Figure 2 illustrates an image of a driver's license as an example of a document image. Documents include documents for identity verification, and in addition to driver's licenses, include various documents such as passports, My Number cards, insurance cards (health insurance cards, nursing care insurance cards, etc.), national pension booklets, disability certificates, resident registration cards, certified copies of family registers and certified seal certificates.
記憶部53は、半導体メモリ又はハードディスク等で構成され、通信部52を介して取得した書類画像を記憶することができる。また、記憶部53は、情報処理装置50内の処理結果などの所要のデータを記憶することができる。
The
画像処理部54は、通信部52を介して取得した書類画像に対して画像前処理を行う機能を有する。画像前処理は、鮮鋭化処理、減色処理、サイズ変更処理などを含む。なお、本明細書では、画像処理部54が、鮮鋭化処理、減色処理、サイズ変更処理を含む構成であるが、鮮鋭化処理、減色処理及びサイズ変更処理をそれぞれ別個の処理部として構成してもよい。以下、各画像前処理について説明する。
The
画像処理部54は、通信部52を介して取得した書類画像(又は当該書類画像に対して所定の画像処理を行った後の画像)に対して鮮鋭化処理を行う。鮮鋭化処理は、エッジのコントラストを強調するフィルタを用いて、輪郭を強調する。なお、鮮鋭化処理は、減色処理の前又は後の画像に対して行うことができる。
The
図3は減色処理後の書類画像の一例を示す模式図である。画像処理部54は、画像生成部としての機能を有し、通信部52を介して取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成する。減色処理では、閾値以上の画素値が消去される。図3の例では、2つの異なる閾値Th1、Th2に基づいて2つの減色処理後の書類画像を生成している。R(赤)、G(緑)、B(青)の画素値をそれぞれ0(黒)~255(白)で表す。閾値Th1は、例えば、(R:100、G:100、B:100)とし、閾値Th2は、(R:200、G:200、B:200)とすることができるが、これに限定されない。また、閾値は、R、G、Bそれぞれについて同一値に限定されるものではなく、R、G、B毎に異なる閾値のセットを用いてもよい。
Figure 3 is a schematic diagram showing an example of a document image after color reduction processing. The
背景と文字が重なる部分では、背景色と文字の色との組み合わせによっては文字の視認性が低下する。文字の部分の視認性を向上させる目的で、減色処理によって背景色を除去するが、閾値によっては文字の部分も除去されてしまう場合もある。そこで、2つの異なる閾値を用いて減色処理を行うことにより、一方の閾値に基づく減色処理で、仮に文字を除去してしまった場合でも、他方の閾値に基づく減色処理で取りこぼした文字を拾うことが可能となる。図3Aでは、閾値Th1=(R:100、G:100、B:100)としているので、R、G、Bの各画素値が100以上の画素を消去することができる。図3Aの例では、「運転免許証」の文字が除去された例を図示している。一方、図3Bでは、閾値Th1=(R:200、G:200、B:200)としているので、R、G、Bの各画素値が200以上の画素を消去することができる。図3Bの例では、図3Aの例で除去された「運転免許証」の文字が消去されずに残っている。 In the area where the background and the characters overlap, the visibility of the characters decreases depending on the combination of the background color and the character color. In order to improve the visibility of the character part, the background color is removed by the color reduction process, but depending on the threshold, the character part may also be removed. Therefore, by performing the color reduction process using two different thresholds, even if the character is removed by the color reduction process based on one threshold, it is possible to pick up the character that was missed by the color reduction process based on the other threshold. In FIG. 3A, the threshold value Th1 = (R: 100, G: 100, B: 100), so that it is possible to erase pixels with R, G, and B pixel values of 100 or more. In the example of FIG. 3A, an example is shown in which the characters "driver's license" have been removed. On the other hand, in FIG. 3B, the threshold value Th1 = (R: 200, G: 200, B: 200), so that it is possible to erase pixels with R, G, and B pixel values of 200 or more. In the example of Figure 3B, the characters "Driver's License" that were removed in the example of Figure 3A remain untouched.
上述のように、書類画像に対して複数の閾値に基づく減色処理を行うことにより、後述のOCR(Optical Character Recognition)処理の文字認識精度を向上させることができる。 As described above, by performing color reduction processing on a document image based on multiple thresholds, the character recognition accuracy of the OCR (Optical Character Recognition) processing described below can be improved.
画像処理部54は、通信部52を介して取得した書類画像(又は当該書類画像に対して所定の画像処理を行った後の画像)に対してサイズ変更処理を行う。書類の種類によっては書類画像のサイズが異なる場合がある。画像処理部54は、サイズ変更処理を行うことにより、OCR処理に最適なサイズの画像に変換することができる。サイズ変更処理は、鮮鋭化処理後の書類画像に対して行うことができるが、減色処理によって生成された2つの減色処理後画像それぞれに対して行ってもよい。サイズ変更処理は、減色処理の前又は後の画像に対して行うことができる。
The
OCR処理部55は、テキストデータ生成部としての機能を有し、画像処理部54による画像前処理後の画像を光学的に読み取ってテキストデータを生成する。より具体的には、OCR処理部55は、画像処理部54で生成した複数の処理後画像それぞれを光学的に読み取って得られた複数のテキスト化データを連結してテキストデータを生成する。
The
図4はテキスト化データの一例を示す模式図である。図4Aは、図3Aに示す減色処理後画像をテキスト化したものであり、「O月O日まで有効」「123456789000」の文字がテキスト化されている。図4Bは、図3Bに示す減色処理後画像をテキスト化したものであり、「O月O日まで有効」「運転免許証」「123456789000」の文字がテキスト化されている。 Figure 4 is a schematic diagram showing an example of text data. Figure 4A is a text version of the post-color reduction processing image shown in Figure 3A, in which the characters "Valid until O month O day" and "123456789000" have been converted to text. Figure 4B is a text version of the post-color reduction processing image shown in Figure 3B, in which the characters "Valid until O month O day", "Driver's license", and "123456789000" have been converted to text.
図5はテキスト化データを連結したテキストデータの一例を示す模式図である。図5の例では、図4A及び図4Bそれぞれのテキスト化データが連結されている。図5の例では、図4Aの下側に図4Bを配置させてテキストを連結した構成を示すが、これに限定されるものではなく、図4Aの右側、左側、あるいは上側に図4Bを配置させてテキストを連結してもよい。連結することにより、2つのテキストファイルが1つに纏められる。 Figure 5 is a schematic diagram showing an example of text data in which the converted text data is linked. In the example of Figure 5, the converted text data of Figure 4A and Figure 4B are linked. In the example of Figure 5, the converted text data of Figure 4B is placed below Figure 4A to link the text, but this is not limited to the above example, and Figure 4B may be placed to the right, left, or above Figure 4A to link the text. By linking the two text files, they are combined into one.
特徴量抽出部56は、OCR処理部55で生成したテキストデータから文字特徴量を抽出する。具体的には、特徴量抽出部56は、OCR処理部55で生成したテキストデータを分割した文字列それぞれの当該テキストデータ中に出現する頻度に基づいて文字特徴量を抽出する。テキストデータの分割には、文字n-gramを用いることができる。文字n-gramは、文書を連続するn個の文字で分割する手法である。以下、文字n-gramの例として、文字2-gramについて説明する。
The
図6は文字2-gramによる文字分割の一例を示す模式図である。分割前の文書としては、図5で例示したテキストデータを用いる。文字2-gramは、図5のテキストデータを連続した2文字で分割する。図6の例では、2文字ずつ、「O月」、「O日」、{まで}、…の如く分割されている。 Figure 6 is a schematic diagram showing an example of character segmentation using character 2-grams. The text data shown in Figure 5 is used as the document before segmentation. Character 2-grams segment the text data in Figure 5 into two consecutive characters. In the example in Figure 6, the data is segmented into two characters, such as "O month", "O day", {until}, ....
図7は分割された文字列の出現頻度の一例を示す模式図である。文字列「O月」は、テキストデータ内に2回出現するので、頻度は2となる。文字列「O日」は、テキストデータ内に2回出現するので、頻度は2となる。以下、同様である。また、文字列「運転」は、テキストデータ内に1回出現するので、頻度は1となる。文字列「免許」は、テキストデータ内に1回出現するので、頻度は1となる。文字列「証 」は、テキストデータ内に1回出現するので、頻度は1となる。 Figure 7 is a schematic diagram showing an example of the frequency of occurrence of divided character strings. The character string "O month" appears twice in the text data, so its frequency is 2. The character string "O day" appears twice in the text data, so its frequency is 2. The same applies below. Furthermore, the character string "drive" appears once in the text data, so its frequency is 1. The character string "license" appears once in the text data, so its frequency is 1. The character string "certificate" appears once in the text data, so its frequency is 1.
特徴量抽出部56は、分割した文字列それぞれを要素とし、当該文字列の頻度を要素の値とする特徴ベクトル(文字特徴量ともいう)を抽出する。例えば、分割した文字列の数を100とすると、特徴ベクトルは100次元ベクトルとなる。
The
分割した文字列に対しては、重要度に応じて予め重み付けを行うことができる。以下、重み付けの方法について説明する。 The divided strings can be weighted in advance according to their importance. The weighting method is explained below.
重み付け付与部58は、文字列の頻度に対して重み付けを付与する。重み付け付与の手法としては、例えば、TF-IDF手法を用いることができる。TF-IDFとは、Term Frequency(TF)とInverse Document Frequency(IDF)の意味である。TFはある文字列の文書中の出現頻度を表す。ここで、文書中は、重み付けを求めるために収集された文章データ全部を示す。文書データ中に出現する頻度が多いほど、その文字列は重要であると考えられる。IDFは、ある文字列が出てくる文書頻度の逆数を表す。多くの文章中に出願する文字列は、一つの文書の中で重要度が低いと考えられる。重み付け付与部58は、TFとIDFとの掛け算によって重み付けを算出することができる。
The
図8は重み付けの算出方法の一例を示す模式図である。重み付け付与部58は、文書データを学習用データとして用いて文字列毎の重み付けを算出する。文書データは、複数の運転免許証、パスポート、健康保険証、住民票などの書類から生成されたテキストデータである。図8の例では、重み付け付与部58は、TF-IDF手法を用いて、重み付け情報581を生成している。重み付け情報581は、文字列と当該文字列の重み付けとを対応付けた情報である。図8の例では、文字列「保険」、「運転」に対して、重み付けを5.0とし、文字列「住民」対して、重み付けを4.5としている。他の文字列も同様である。
Figure 8 is a schematic diagram showing an example of a method for calculating weights. The
上述のように、文書データに出現する頻度が多ければ、特徴として重要である可能性が高く重み付けを大きくし、多くの文章に登場する未次烈は、特徴として重要である可能性が低く重み付けを小さくすることにより、分類器57による書類画像の分類を行い易くすることができる。
As described above, if a feature appears frequently in the document data, it is more likely to be an important feature and is weighted more heavily; on the other hand, if a feature appears in many sentences, it is less likely to be an important feature and is weighted less heavily, making it easier for the
特徴量抽出部56は、分割した文字列それぞれの頻度に重み付けを付与して文字特徴量を抽出することができる。
The
図9は重み付けが付与された文字特徴量の一例を示す模式図である。図9において、文字列と対応する頻度との関係は、図7の例と同一である。前述のとおり、重み付け付与部58は、予め重み付け情報を生成している。図9に示すように、文字列「O月」~「有効」それぞれの重み付けを0.5とし、文字列「12」~「00」それぞれの重み付けを0.2とし、文字列「運転」「免許」それぞれの重み付けを5.0とし、文字列「証 」の重み付けを1.0とする。文字特徴量としての特徴ベクトルは、各文字列の頻度と重み付けを掛け算することにより求められ、特徴ベクトルの各要素x1~x13の値が計算される。例えば、要素x1は、文字列「O月」に対応し、要素x1の値は、2×0.5=1.0となる。また、要素x11は、文字列「運転」に対応し、要素x11の値は、1×5.0=5.0となる。他の要素も同様である。
Figure 9 is a schematic diagram showing an example of a character feature to which weighting has been applied. In Figure 9, the relationship between the character string and the corresponding frequency is the same as the example in Figure 7. As described above, the
分類器57は、OCR処理部55で生成したテキストデータに基づいて書類画像を分類する。より具体的には、分類器57は、特徴量抽出部56で抽出された文字特徴量に基づいて書類画像を分類することができる。分類器57による書類の分類は、機械学習によって生成された学習済みモデルを用いてもよく、あるいは、文字特徴量と書類種別とを関連付けたルールを用いてもよい。まず、学習済みモデルを用いる場合について説明する。
The
図10は学習済みモデルを用いた書類の分類方法の第1例を示す模式図である。分類器57は、学習済みモデルとしてのニューラルネットワーク571を有する。分類器57は、例えば、CPU(例えば、複数のプロセッサコアを実装したマルチ・プロセッサなど)、GPU(Graphics Processing Units)、DSP(Digital Signal Processors)、FPGA(Field-Programmable Gate Arrays)などのハードウェアを組み合わせることによって構成することができる。
Figure 10 is a schematic diagram showing a first example of a document classification method using a trained model.
ニューラルネットワーク571は、特徴量抽出部56で抽出された文字特徴量(特徴ベクトル)が入力されると、書類の種別毎に確率(0~1の数値)を出力する。書類の種別としては、たとえば、運転免許証、健康保険証、パスポート、住民票、その他等を含む。なお、書類の種別は、図10の例に限定されない。分類器57は、ニューラルネットワーク571が出力する書類の種別毎の確率のうち、最も数値の大きい種別に基づいて書類画像を分類する。例えば、運転免許証、健康保険証、パスポート、住民票、その他それぞれの確率が0.8、0.4、0.3、0.1、0.1とすると、書類画像は運転免許証であると分類する。なお、ニューラルネットワーク571に代えて、他の機械学習モデルでもよい。
When the character features (feature vector) extracted by the
図11は学習済みモデルを用いた書類の分類方法の第2例を示す模式図である。分類器57は、第1の分類器572、第2の分類器573、及び加算平均部574を有する。分類器572、573それぞれは、特徴量抽出部56で抽出された文字特徴量(特徴ベクトル)が入力されると、書類の種別毎に確率(0~1の数値)を出力する。分類器572は、出力端子A1~A5から運転免許証、健康保険証、パスポート、住民票、その他の確率を出力する。分類器573は、出力端子B1~B5から運転免許証、健康保険証、パスポート、住民票、その他の確率を出力する。加算平均部574は、出力端子A1とB1から出力される確率を加算平均して、運転免許証の確率を出力する。健康保険証、パスポート、住民票、その他についても同様である。分類器57は、加算平均部574が出力する書類の種別毎の確率のうち、最も数値の大きい種別に基づいて書類画像を分類する。
Figure 11 is a schematic diagram showing a second example of a document classification method using a trained model. The
第1の分類器572として、例えば、線形SVM(サポート・ベクター・マシン)を用い、第2の分類器573として、例えば、勾配ブースティング木を用いることができる。アンサンブル学習を行って、複数の機械学習モデルを組み合わせることにより、書類画像の分類精度を向上させることができる。なお、組み合わせる機械学習モデルは、線形SVMや勾配ブースティング木に限定されない。
For example, a linear SVM (support vector machine) can be used as the
次に、ルールベースの場合について説明する。 Next, we'll explain the rule-based case.
図12はルールベースの書類の分類方法の一例を示す模式図である。分類器57は、ルールベースの分類器575、ルールDB577を有する。分類器575は、類似度算出部576を有する。ルールDB577には、予め特徴ベクトルと書類の種別とを関連付けたルールが記録されている。例えば、特徴ベクトルV1には免許証が関連付けられ、特徴ベクトルV2には保険証が関連付けられている。他の書類の種別も同様である。
Figure 12 is a schematic diagram showing an example of a rule-based document classification method.
分類器575は、特徴量抽出部56で抽出された特徴ベクトルVxが入力されると、類似度算出部576の機能を用いて、入力された特徴ベクトルVxと、ルールDB577に記録された各特徴ベクトルとの類似度を算出し、最も類似度の大きい特徴ベクトルに関連付けられた種別を書類の種別として出力する。類似度の算出は、例えば、コサイン類似度を用いることができる。
When the feature vector Vx extracted by the
一般的な画像処理による書類の分類では、パターンマッチング等のように、書類のデザインや書式に基づいて書類の種別を判定するため、非定型書類(例えば、保険証や住民票など)の分類が困難であった。上述のように、情報処理装置50は、OCR処理部55により光学的文字認識を行うので、書類のデザインや書式に依存することなく非定型の書類でも精度よく分類できる。
In general document classification using image processing, the type of document is determined based on the document's design and format, such as by pattern matching, making it difficult to classify non-standard documents (such as insurance cards and resident registration cards). As described above, the
また、OCR処理による文字認識の精度は100%ではなく、誤認識が発生する。上述のように、情報処理装置50は、画像処理部54により、閾値の異なる複数の前処理(減色処理)を行うので、文字の取りこぼしを低減することができ、結果として、後続のOCR処理の文字認識精度を向上させることができる。
In addition, the accuracy of character recognition by OCR processing is not 100%, and misrecognition does occur. As described above, the
また、従来、書類の仕分け業務は、スキャナで読み取った書類の分類作業を人手で実施している場合が多く、ヒューマンエラーが発生しやすい。上述のように、情報処理装置50は、機械学習によって生成された分類器や、ルールベースの分類器を用いるので、書類の仕分け業務の自動化が可能となり、書類仕分け業務の効率化、仕分けミスの低減を図ることができる。
Conventionally, document sorting work has often been performed manually by classifying documents scanned by a scanner, which is prone to human error. As described above, the
情報処理装置50により書類画像を分類するので、書類仕分け業務を自動化することが可能となる。しかし、仕分け業務後の各種申請に関する書類の審査業務においては、申請に必要な書類がそろっているか、有効な書類かどうか等の審査項目を正確に判断する必要があり、人手による審査が必須である。以下では、書類の審査に有効な情報を提供する方法について説明する。
Since document images are classified by the
特定部59は、分類器57による書類画像の分類に寄与したテキストデータの寄与部分を特定する。出力部60は、当該寄与部分に対応する領域を強調表示した書類画像を出力する。例えば、出力部60は、通信部52を介して、強調表示した書類画像を端末装置10へ出力することができる。なお、出力部60は、書類の種別だけを端末装置10へ出力してもよい。
The
図13は寄与部分の特定方法の一例を示す模式図である。特徴ベクトルは、その要素がテキストデータ内の文字列であり、文字列の出現頻度(重み付け付与された頻度)が要素の値となる。すなわち、特徴ベクトルの各要素には、テキストデータ中の文字列が対応するので、文字列のテキストデータ中の位置又は座標を記録しておくことができる。書類画像の分類に寄与する要素は、重み付けされた頻度の値が大きい部分と考えられるので、文字列のテキストデータ中の位置又は座標が分かれば、当該位置又は座標に基づいて、書類画像の分類に寄与した寄与部部を特定することができる。そして、テキストデータ中の寄与部分が分かれば、書類画像の寄与部分に対応する領域も分かる。 Figure 13 is a schematic diagram showing an example of a method for identifying a contributing portion. The elements of a feature vector are character strings in text data, and the frequency of occurrence of the character strings (weighted frequency) becomes the value of the element. That is, since each element of the feature vector corresponds to a character string in the text data, the position or coordinates of the character string in the text data can be recorded. Since the element that contributes to the classification of a document image is considered to be the part with a large weighted frequency value, if the position or coordinates of the character string in the text data are known, the contributing portion that contributed to the classification of the document image can be identified based on the position or coordinates. And if the contributing portion in the text data is known, the area corresponding to the contributing portion of the document image can also be known.
図14は強調表示した書類画像の一例を示す模式図である。図14の例では、書類が健康保険証であり、分類に寄与した寄与部分に対応する領域を太線で囲んでいる。寄与部分に対応する領域には、「健康保険」「被保険者証」という文字が記載されている。強調表示は、図14のように太線で囲んだ表示態様でもよく、あるいは、色又は模様による強調表示等、審査を行う担当者が容易に書類の種別を判断できる表示態様であればよい。 Figure 14 is a schematic diagram showing an example of a highlighted document image. In the example of Figure 14, the document is a health insurance card, and the area corresponding to the contributing portion that contributed to the classification is surrounded by a thick line. The words "health insurance" and "insured person certificate" are written in the area corresponding to the contributing portion. The highlighting may be in the form of a thick line surrounding the document as in Figure 14, or may be in any display form that allows the person conducting the review to easily determine the type of document, such as highlighting using a color or pattern.
上述のように、書類の分類に寄与した説明的根拠を書類画像上の文字を強調表示することにより示すことができるので、書類の審査担当者は、審査項目を正確に、かつ迅速に判断することができる。 As described above, the explanatory reasons that contributed to the classification of a document can be shown by highlighting text on the document image, allowing document reviewers to accurately and quickly determine review items.
図15は情報処理装置50による書類画像の分類処理の手順の一例を示すフローチャートである。以下では便宜上、処理の主体を制御部51として説明する。制御部51は、書類画像を取得し(S11)、取得した書類画像に対して鮮鋭化処理を行う(S12)。制御部51は、必要に応じて、サイズ変更処理を行う(S13)。
Figure 15 is a flowchart showing an example of the procedure for classification processing of document images by the
制御部51は、複数の閾値に基づく減色処理を行い(S14)、減色処理によって生成された複数の処理後画像に対してOCR処理を行ってテキスト化し(S15)、テキスト化データを連結してテキストデータを生成する(S16)。
The
制御部51は、テキストデータかた文字特徴量(特徴ベクトル)を抽出し(S17)、抽出した文字特徴量を分類器57に入力して書類画像を分類する(S18)。制御部51は、分類に寄与した寄与部分に対応する領域を強調表示する書類画像を端末装置10へ出力する(S19)。
The
制御部51は、他の書類画像があるか否かを判定し(S20)、他の書類画像がある場合(S20でYES)、ステップS11以降の処理を繰り返し、他の書類画像がない場合(S20でNO)、処理を終了する。
The
情報処理装置50は、例えば、CPU(例えば、複数のプロセッサコアを実装したマルチ・プロセッサなど)、GPU(Graphics Processing Units)、RAMなどを備えたコンピュータを用いて実現することもできる。図15に示すような処理の手順を定めたコンピュータプログラム(記録媒体に記録可能)をコンピュータに備えられたRAMにロードし、コンピュータプログラムをCPU(プロセッサ)で実行することにより、コンピュータ上で情報処理装置50を実現することができる。
The
情報処理装置は、書類画像を取得する取得部と、前記取得部で取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成する画像生成部と、前記画像生成部で生成した複数の処理後画像それぞれを光学的に読み取ってテキストデータを生成するテキストデータ生成部と、前記テキストデータ生成部で生成した複数のテキストデータに基づいて前記書類画像を分類する分類器とを備える。 The information processing device includes an acquisition unit that acquires a document image, an image generation unit that performs color reduction processing based on multiple thresholds on the document image acquired by the acquisition unit to generate multiple processed images, a text data generation unit that optically reads each of the multiple processed images generated by the image generation unit to generate text data, and a classifier that classifies the document image based on the multiple text data generated by the text data generation unit.
情報処理装置は、前記減色処理の前又は後の画像に対して鮮鋭化処理を行う鮮鋭化処理部を備える。 The information processing device is equipped with a sharpening processing unit that performs a sharpening process on the image before or after the color reduction process.
情報処理装置は、前記減色処理の前又は後の画像に対してサイズ変更処理を行うサイズ変更処理部を備える。 The information processing device includes a resizing processing unit that performs resizing processing on the image before or after the color reduction processing.
情報処理装置において、前記テキストデータ生成部は、前記画像生成部で生成した複数の処理後画像それぞれを光学的に読み取って得られた複数のテキスト化データを連結してテキストデータを生成する。 In the information processing device, the text data generation unit generates text data by concatenating multiple pieces of text data obtained by optically reading each of the multiple processed images generated by the image generation unit.
情報処理装置において、前記分類器は、文字特徴量と書類種別とを関連付けたルールを用いて、又は文字特徴量を入力した場合に書類種別を出力する学習済みモデルを用いて、前記テキストデータ生成部で生成したテキストデータから抽出された文字特徴量に基づいて前記書類画像を分類する。 In the information processing device, the classifier classifies the document image based on the character features extracted from the text data generated by the text data generation unit, using rules that associate character features with document types, or using a trained model that outputs a document type when character features are input.
情報処理装置は、前記テキストデータ生成部で生成したテキストデータを分割した文字列それぞれの前記テキストデータ中に出現する頻度に基づいて前記文字特徴量を抽出する特徴量抽出部を備える。 The information processing device includes a feature extraction unit that extracts the character features based on the frequency of occurrence in the text data of each character string into which the text data generated by the text data generation unit is divided.
情報処理装置において、前記特徴量抽出部は、文字n-gram手法を含む。 In the information processing device, the feature extraction unit includes a character n-gram method.
情報処理装置は、文字列の頻度に対して予め重み付けを付与する重み付け付与部を備え、前記特徴量抽出部は、前記分割した文字列それぞれの頻度に重み付けを付与して前記文字特徴量を抽出する。 The information processing device includes a weighting unit that pre-weights the frequency of character strings, and the feature extraction unit extracts the character features by weighting the frequency of each of the divided character strings.
情報処理装置において、前記重み付け付与部は、TF-IDF手法を含む。 In the information processing device, the weighting unit includes a TF-IDF method.
情報処理装置は、前記書類画像の分類に寄与した前記テキストデータの寄与部分を特定する特定部と、前記寄与部分に対応する領域を強調表示した前記書類画像を出力する出力部とを備える。 The information processing device includes an identification unit that identifies a contributing portion of the text data that contributed to the classification of the document image, and an output unit that outputs the document image with the area corresponding to the contributing portion highlighted.
コンピュータプログラムは、コンピュータに、書類画像を取得し、取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成し、生成した複数の処理後画像それぞれを光学的に読み取ってテキストデータを生成し、生成した複数のテキストデータに基づいて前記書類画像を分類する、処理を実行させる。 The computer program causes the computer to execute the following processes: acquire a document image, perform color reduction processing on the acquired document image based on multiple thresholds to generate multiple processed images, optically read each of the multiple processed images to generate text data, and classify the document image based on the multiple text data generated.
1 通信ネットワーク
10 端末装置
50 情報処理装置
51 制御部
52 通信部
53 記憶部
54 画像処理部
55 OCR処理部
56 特徴量抽出部
57、572、573、575 分類器
574 加算平均部
576 類似度算出部
577 ルールDB
571 ニューラルネットワーク
58 重み付け付与部
581 重み付け情報
59 特定部
60 出力部
REFERENCE SIGNS
571
Claims (10)
前記取得部で取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成する画像生成部と、
前記画像生成部で生成した複数の処理後画像それぞれを光学的に読み取ってテキストデータを生成するテキストデータ生成部と、
前記テキストデータ生成部で生成した複数のテキストデータに基づいて前記書類画像を分類する分類器と
を備え、
前記テキストデータ生成部は、
前記画像生成部で生成した複数の処理後画像それぞれを光学的に読み取って得られた複数のテキスト化データを連結してテキストデータを生成する、
情報処理装置。 An acquisition unit for acquiring a document image;
an image generating unit that performs color reduction processing based on a plurality of threshold values on the document image acquired by the acquiring unit to generate a plurality of processed images;
a text data generating unit that optically reads each of the plurality of processed images generated by the image generating unit and generates text data;
a classifier that classifies the document image based on the plurality of text data generated by the text data generating unit ,
The text data generation unit
generating text data by concatenating a plurality of text data obtained by optically reading each of the plurality of processed images generated by the image generating unit ;
Information processing device.
請求項1に記載の情報処理装置。 A sharpening processing unit that performs a sharpening process on the image before or after the color reduction process is provided.
The information processing device according to claim 1 .
請求項1又は請求項2に記載の情報処理装置。 a resizing processing unit that performs a resizing process on the image before or after the color reduction process,
3. The information processing device according to claim 1 or 2.
文字特徴量と書類種別とを関連付けたルールを用いて、又は文字特徴量を入力した場合に書類種別を出力する学習済みモデルを用いて、前記テキストデータ生成部で生成したテキストデータから抽出された文字特徴量に基づいて前記書類画像を分類する、
請求項1から請求項3のいずれか一項に記載の情報処理装置。 The classifier may be
classifying the document image based on the character features extracted from the text data generated by the text data generation unit, using a rule associating character features with document types, or using a trained model that outputs a document type when character features are input;
The information processing device according to claim 1 .
請求項4に記載の情報処理装置。 a feature extraction unit that extracts the character feature based on a frequency of appearance in the text data of each character string obtained by dividing the text data generated by the text data generation unit,
The information processing device according to claim 4 .
請求項5に記載の情報処理装置。 The feature extraction unit includes a character n-gram method.
The information processing device according to claim 5 .
前記特徴量抽出部は、
前記分割した文字列それぞれの頻度に重み付けを付与して前記文字特徴量を抽出する、
請求項5又は請求項6に記載の情報処理装置。 A weighting unit that pre-weights the frequency of character strings,
The feature extraction unit is
weighting the frequency of each of the divided character strings to extract the character feature amount;
7. The information processing device according to claim 5 or 6 .
請求項7に記載の情報処理装置。 The weighting unit includes a TF-IDF method.
The information processing device according to claim 7 .
前記寄与部分に対応する領域を強調表示した前記書類画像を出力する出力部と
を備える、
請求項1から請求項8のいずれか一項に記載の情報処理装置。 an identification unit that identifies a contribution portion of the text data that contributed to the classification of the document image;
and an output unit that outputs the document image in which an area corresponding to the contributing portion is highlighted.
The information processing device according to claim 1 .
書類画像を取得し、
取得した書類画像に対して複数の閾値に基づく減色処理を行って複数の処理後画像を生成し、
生成した複数の処理後画像それぞれを光学的に読み取ってテキストデータを生成し、
生成した複数のテキストデータに基づいて前記書類画像を分類し、
生成した複数の処理後画像それぞれを光学的に読み取って得られた複数のテキスト化データを連結してテキストデータを生成する、
処理を実行させるコンピュータプログラム。 On the computer,
Get document images,
performing color reduction processing based on a plurality of threshold values on the acquired document image to generate a plurality of processed images;
Each of the generated multiple processed images is optically read to generate text data;
classifying the document image based on the generated plurality of text data;
generating text data by concatenating a plurality of text data obtained by optically reading each of the generated plurality of processed images ;
A computer program that executes a process.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021002995A JP7615688B2 (en) | 2021-01-12 | 2021-01-12 | Information processing device and computer program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021002995A JP7615688B2 (en) | 2021-01-12 | 2021-01-12 | Information processing device and computer program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022108130A JP2022108130A (en) | 2022-07-25 |
| JP7615688B2 true JP7615688B2 (en) | 2025-01-17 |
Family
ID=82556210
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021002995A Active JP7615688B2 (en) | 2021-01-12 | 2021-01-12 | Information processing device and computer program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7615688B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPWO2025028505A1 (en) * | 2023-07-31 | 2025-02-06 | ||
| JPWO2025028507A1 (en) * | 2023-07-31 | 2025-02-06 | ||
| WO2025028506A1 (en) * | 2023-07-31 | 2025-02-06 | 大日本印刷株式会社 | Information processing device, information processing method, and program for information processing device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010055558A1 (en) | 2008-11-12 | 2010-05-20 | 富士通株式会社 | Character area extracting device, image picking-up device provided with character area extracting function and character area extracting program |
| JP2012044250A (en) | 2010-08-12 | 2012-03-01 | Ricoh Co Ltd | Image processing apparatus, image forming apparatus, original determination method and image forming method |
| JP2015225377A (en) | 2014-05-26 | 2015-12-14 | 京セラドキュメントソリューションズ株式会社 | Document processing apparatus and document processing program |
| JP2020042320A (en) | 2018-09-06 | 2020-03-19 | 富士通フロンテック株式会社 | Image recognition apparatus, image recognition method and image recognition program |
| JP2020102148A (en) | 2018-12-25 | 2020-07-02 | キヤノン株式会社 | Image processing device, image processing method, and program |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5987171A (en) * | 1994-11-10 | 1999-11-16 | Canon Kabushiki Kaisha | Page analysis system |
-
2021
- 2021-01-12 JP JP2021002995A patent/JP7615688B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010055558A1 (en) | 2008-11-12 | 2010-05-20 | 富士通株式会社 | Character area extracting device, image picking-up device provided with character area extracting function and character area extracting program |
| JP2012044250A (en) | 2010-08-12 | 2012-03-01 | Ricoh Co Ltd | Image processing apparatus, image forming apparatus, original determination method and image forming method |
| JP2015225377A (en) | 2014-05-26 | 2015-12-14 | 京セラドキュメントソリューションズ株式会社 | Document processing apparatus and document processing program |
| JP2020042320A (en) | 2018-09-06 | 2020-03-19 | 富士通フロンテック株式会社 | Image recognition apparatus, image recognition method and image recognition program |
| JP2020102148A (en) | 2018-12-25 | 2020-07-02 | キヤノン株式会社 | Image processing device, image processing method, and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022108130A (en) | 2022-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Agrawal et al. | Automated bank cheque verification using image processing and deep learning methods | |
| AU2020200251B2 (en) | Label and field identification without optical character recognition (OCR) | |
| US9626555B2 (en) | Content-based document image classification | |
| JP7615688B2 (en) | Information processing device and computer program | |
| US7653244B2 (en) | Intelligent importation of information from foreign applications user interface | |
| JP5674615B2 (en) | Character recognition device and character recognition method | |
| US12437307B2 (en) | Fraud detection via automated handwriting clustering | |
| CN115114229B (en) | Document format conversion method, device, storage medium, equipment and program product | |
| Mursari et al. | The Effectiveness of Image Preprocessing on Digital Handwritten Scripts Recognition with The Implementation of OCR Tesseract. | |
| US11887393B2 (en) | End-to-end system for extracting tabular data present in electronic documents and method thereof | |
| CN103870823B (en) | Character recognition device and method | |
| Dergachov et al. | Data pre-processing to increase the quality of optical text recognition systems | |
| CN114386413A (en) | Handling digitized handwriting | |
| CN117421631A (en) | Financial violation detection method, device, equipment and medium based on multi-mode fusion | |
| Mosaher et al. | Offline handwritten signature recognition using deep convolution neural network | |
| Chowdhury et al. | ALPR: ResNet50 powered Bangla License Plate Detectionand OCR by Root Mean Square Propagation Optimizer and Linear SVM Classifier | |
| Vállez et al. | Sample selection for training cascade detectors | |
| Chaudhry et al. | Design and implementation of a hybrid face recognition technique | |
| Dhruva et al. | Comprehensive dataset building of isolated handwritten Sanskrit characters | |
| e Souza et al. | Offline handwritten script recognition based on texture descriptors | |
| Gaikwad et al. | Recognition of offline handwritten Devanagari characters using new mask-based approach, histogram of oriented gradients and AdaBoost | |
| Le et al. | Insight evaluation on traditional and CNN features | |
| Islam et al. | Optimization of Deep CNN-based Bangla Sign Language Recognition using XGBoost classifier | |
| US20250045380A1 (en) | Systems and methods for detecting evidence of tampering in a document | |
| Coelho et al. | Automatic system for the recognition of amounts in handwritten cheques |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20231128 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240822 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240903 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240918 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20241203 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20241216 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7615688 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |