JP7558730B2 - Information processing device, information processing method, and program - Google Patents
Information processing device, information processing method, and program Download PDFInfo
- Publication number
- JP7558730B2 JP7558730B2 JP2020153977A JP2020153977A JP7558730B2 JP 7558730 B2 JP7558730 B2 JP 7558730B2 JP 2020153977 A JP2020153977 A JP 2020153977A JP 2020153977 A JP2020153977 A JP 2020153977A JP 7558730 B2 JP7558730 B2 JP 7558730B2
- Authority
- JP
- Japan
- Prior art keywords
- text data
- financial statement
- unit
- image
- category
- 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
- 230000010365 information processing Effects 0.000 title claims description 44
- 238000003672 processing method Methods 0.000 title claims description 3
- 238000007781 pre-processing Methods 0.000 claims description 74
- 238000000034 method Methods 0.000 claims description 34
- 230000008569 process Effects 0.000 claims description 33
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000002203 pretreatment Methods 0.000 claims 3
- 238000012545 processing Methods 0.000 description 40
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 12
- 239000000203 mixture Substances 0.000 description 7
- 238000012015 optical character recognition Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Description
本発明は、決算書に関する情報処理に関する。 The present invention relates to information processing related to financial statements.
従来、画像データから文字情報を読み取る光学文字認識(OCR:Optical Character Recognition)技術が知られている。 Conventionally, optical character recognition (OCR) technology is known for reading character information from image data.
しかしながら、上述のような従来技術において、特に不鮮明な決算書に対してOCR処理を行った場合、入力精度が低下し、意図した勘定科目或いは数値とは異なるデータが設定され得るという問題がある。一方で、入力精度を高くするために決算書のデータを手入力した場合には、時間やユーザの手間が掛かるという問題がある。 However, in the conventional technology described above, when OCR processing is performed on financial statements that are particularly unclear, there is a problem that input accuracy decreases and data different from the intended account items or figures may be set. On the other hand, when financial statement data is manually entered to improve input accuracy, there is a problem that it takes time and effort from the user.
本発明の一態様は、上記の問題に鑑みてなされたものであり、決算書のデータを入力する場合におけるユーザの利便性、及び入力精度を向上させるための情報処理装置を実現することを目的とする。 One aspect of the present invention has been made in consideration of the above problems, and aims to realize an information processing device that improves user convenience and input accuracy when inputting financial statement data.
上記の課題を解決するために、本発明の一態様に係る情報処理装置は、決算書の画像を取得する取得部と、前記取得部が取得した画像に対して、前記決算書の種類に応じた所定の前処理を行う前処理部と、前記前処理部が前処理を行った画像に含まれるテキストデータを読み取り、且つ各テキストデータに対して、数値、又は事前に登録された勘定科目若しくは決算書におけるカテゴリ名の何れかを、近似度に基づいて当該テキストデータに割り当てる読取部と、前記近似度が所定未満である各テキストデータを、ユーザが修正可能となるように提示する提示部とを備えている。 In order to solve the above problem, an information processing device according to one embodiment of the present invention includes an acquisition unit that acquires an image of a financial statement, a preprocessing unit that performs a predetermined preprocessing on the image acquired by the acquisition unit according to the type of the financial statement, a reading unit that reads text data included in the image preprocessed by the preprocessing unit and assigns to each piece of text data a numerical value or a preregistered account item or a category name in the financial statement based on the degree of approximation, and a presentation unit that presents each piece of text data whose degree of approximation is less than a predetermined degree so that the user can modify it.
本発明の一態様によれば、決算書のデータを入力する場合におけるユーザの利便性、及び入力精度を向上させるための情報処理装置を実現できる。 According to one aspect of the present invention, it is possible to realize an information processing device that improves user convenience and input accuracy when inputting financial statement data.
〔実施形態1〕
以下、本発明の一実施形態について、詳細に説明する。
[Embodiment 1]
Hereinafter, one embodiment of the present invention will be described in detail.
〔1.情報処理システムの構成例〕
本実施形態に係る情報処理システムは、情報処理装置が、端末装置から送信された決算書(財務諸表)の画像に対して所定の前処理を行った上で当該画像内におけるテキストデータの読み取りを行い、例えば与信管理に関する処理を行うシステムである。また、本明細書においてテキストデータとは、数字や勘定科目等の文字列を示すデータ、又は文字列自体を意味している。
[1. Example of information processing system configuration]
The information processing system according to this embodiment is a system in which an information processing device performs a predetermined preprocessing on an image of a financial statement (financial statement) transmitted from a terminal device, reads text data in the image, and performs processing related to credit management, for example. In this specification, text data refers to data showing character strings such as numbers and account headings, or the character strings themselves.
図1は、本実施形態に係る情報処理システム1の機能ブロック図である。情報処理システム1は、情報処理装置10及び端末装置30を有している。また、情報処理装置10と端末装置30とは、ネットワークを介して互いに通信可能に接続されている。
FIG. 1 is a functional block diagram of an
情報処理装置10は、決算書の画像分析を行う装置であって、制御部12、記憶部20及び通信部22を備えている。
The
制御部12は、情報処理装置10全体を統括するCPU又はそれに準ずる制御装置であって、取得部14、前処理部15、読取部16、提示部17及び算出部18としても機能する。
The
取得部14は、決算書の画像を取得する。取得部14が決算書の画像を取得する取得先は、限定されず、例えば端末装置30からウェブサーバ上にアップロードされた画像を取得する構成であってもよい。
The
前処理部15は、取得部14が取得した画像に対して、決算書の種類に応じた所定の前処理を行う。一例については後述するが、この前処理によって、読取部16がテキストデータを読み取る場合における精度を向上させることが可能となる。また、前処理部15は、前処理において決算書の読取を要する場合、読取部16を介した処理を行う。
The preprocessing
また、本明細書の例において決算書の種類は、貸借対照表、損益計算書及び販売管理費(表)の何れかであるものとして説明するが、これに限定されずその他の決算書が処理対象であってもよい。 In the examples of this specification, the types of financial statements are described as being either a balance sheet, a profit and loss statement, or a selling and administrative expenses (statement), but the types are not limited to these and other financial statements may also be processed.
読取部16は、OCR処理を行う機構を有し、前処理部15が前処理を行った画像に含まれるテキストデータを読み取り、且つ各テキストデータに対して、数値、又は事前に記憶部20等に登録された勘定科目若しくは決算書におけるカテゴリ名の何れかを、近似度に基づいて当該テキストデータに割り当てる。また、読取部16は、画像内においてテキストデータや直線等の所定のオブジェクトを検出する処理を行う。
The
また、読取部16による処理においては、Faster R-CNN(Regions with Convolutional Neural Networks)等を用いた機械学習手法が用いられる構成であってもよい。当該構成において、記憶部20は、読取部16が参照する学習モデルを規定する関数やパラメータを格納する。
The processing by the
提示部17は、数値、又は事前に記憶部20等に登録された勘定科目若しくは決算書におけるカテゴリ名の何れとも近似度が所定未満である各テキストデータ等を、ユーザが修正可能となるように提示する。また、提示部17は、後述する各情報をユーザに対して提示する処理を行う。
The
算出部18は、読取部16が読み取った各テキストデータに割り当てられた勘定科目と当該勘定科目に割り当てられた数値(金額)とを参照して、与信管理に関する判定結果を算出する。ここで、与信管理に関する判定結果とは、例えば対象となる決算書に係る企業の財務状況における信用度合いを示す格付け情報等である。
The
記憶部20は、各種情報を記憶する記憶装置であって、例えば各決算書における勘定科目の一覧を示すデータベース等を格納する。
The
また、勘定科目は、決算書の種類毎、或いは決算書におけるカテゴリ毎に記憶部20に登録されている。ここで、決算書のカテゴリとは、勘定科目の種類を大別する分類であって、例えば貸借対照表の例の場合、資産の部や負債の部等の各部における「流動資産」「固定資産」「流動負債」「固定負債」といった項目を意味する。ただし、上述した資産の部等の各部についても決算書のカテゴリに含むものとしてもよい。
Furthermore, account items are registered in the
通信部22は、端末装置30等の外部装置との通信処理を行う。
The
端末装置30は、パソコン、スマートフォン又はタブレット等の装置であって、表示部32及び通信部34等を備えている。
The
表示部32は、動画像又はテキスト等を表示するディスプレイである。また、表示部32がタッチパネルとして実現され、表示部32を介した入力操作が可能な構成であってもよい。
The
また、本実施形態において、提示部17によってテキストデータ等をユーザに提示する処理は、関係する情報が表示部32に表示されることによって行われる。換言すると、提示部17は、表示部32に表示されるデータを、通信部22を介して端末装置30に送信することによって、テキストデータ等をユーザに提示する処理を行う。
In addition, in this embodiment, the process of presenting text data, etc. to the user by the
通信部34は、情報処理装置10等の外部装置との通信処理を行う。例えば通信部34は、ユーザ操作に基づいて、端末装置30が少なくとも一時的に保持する、決算書を示す画像データを、情報処理装置10に対して送信する。
The
なお、図1に示す構成とは別の態様として、情報処理装置10は、例えばインターフェースとなるウェブサイトを提供するウェブサーバ、クラウドサーバ及びAPI(Application Programming Interface)サーバとして実現される構成であってもよい。換言すれば、情報処理装置10は、ウェブサーバ、クラウドサーバ及びAPIサーバによって構成されてもよい。
In addition, as an alternative to the configuration shown in FIG. 1, the
図2は、当該構成を示す概略図である。図2の例において、ウェブサーバは、自装置にアップロードされた決算書の画像を取得し、取得した決算書の画像を示す情報をクラウドサーバに送信する。また、クラウドサーバは、前処理部15及び読取部16に対応する処理を、上記APIを適宜呼び出すことによって実行した上で、読み取った文字情報をウェブサーバに対して送信する。続いて、ウェブサーバは、クラウドサーバから受信した情報に基づき、決算書におけるテキストデータを修正するための画面を示す情報を、決算書の画像を自装置にアップロードした端末装置30に対して送信する。
Figure 2 is a schematic diagram showing this configuration. In the example of Figure 2, the web server acquires an image of the financial statement uploaded to its own device, and transmits information showing the acquired image of the financial statement to the cloud server. The cloud server also executes the processes corresponding to the preprocessing
〔2.情報処理システムの処理例〕
本実施形態に係る情報処理システム1における処理の流れについて、決算書が貸借対照表である場合を例に挙げて、図3を参照して説明する。図3は、本実施形態に係る処理の流れを示すフローチャートである。また、図3のフローチャートに示す処理は、端末装置30が決算書(貸借対照表)の画像を情報処理装置10に送信した場合に実行される。
2. Examples of processing by the information processing system
The flow of processing in the
ステップS101において、取得部14は、端末装置30から送信された決算書の1又は複数の画像を、通信部22を介して取得する。
In step S101, the
ステップS102において、前処理部15は、読取対象となる決算書が複数の画像にまたがっているか否か、即ち読み取り対象となる単一の決算書の画像が複数の画像によって構成されるか否かを判定する。前処理部15が、読取対象となる決算書が複数ページにまたがっていると判定した場合、続いてステップS103の処理が実行され、上記決算書が複数ページにまたがっていないと判定した場合、続いてステップS104の処理が実行される。
In step S102, the preprocessing
また、読取対象となる決算書の画像は、ユーザの選択操作に基づいて決定される構成であってもよい。即ち上記構成においては、ユーザが複数の画像を選択した場合、続いてステップS103の処理が実行され、単一の画像を選択した場合、続いてステップS104の処理が実行される。 The image of the financial statement to be read may be determined based on the user's selection operation. That is, in the above configuration, if the user selects multiple images, the process of step S103 is executed next, and if the user selects a single image, the process of step S104 is executed next.
ステップS103において、前処理部15は、複数の決算書の画像から単一の決算書の画像を合成する処理を行う。即ち前処理部15は、単一の決算書の画像が複数の画像によって構成されると判定した場合に、複数の画像から単一の決算書の画像を合成する。
In step S103, the preprocessing
ステップS104において、制御部12は、読取対象となる決算書の種類を判別する。また、決算書の種類は、ユーザの選択操作に基づいて決定される構成であってもよい。本例において、制御部12は、決算書の種類が貸借対照表であると判別する。
In step S104, the
ステップS105において、前処理部15は、決算書の画像を、白黒の二値画像に変換する処理を行う。当該処理は、テキストデータの読取において色情報が特に不要であることに由来する。
In step S105, the preprocessing
また、本ステップS105において前処理部15は、例えばその他の処理として
・画像ファイル形式の変換処理(PDF(登録商標)形式からJPG形式への変換等)
・テキストデータを明瞭化させる処理(コントラストの調整等)
等を行ってもよい。
In step S105, the
- Processing to clarify text data (adjusting contrast, etc.)
etc. may be carried out.
ステップS106において、前処理部15は、決算書の画像に「構成比」という文字列が含まれるか否かを判定する。「構成比」とは、決算書の金額の右列等に記載されることのある項目であって、対応する勘定科目の数値が合計値に対して占める割合を示す項目である。前処理部15が、画像に文字列「構成比」が含まれると判定した場合、続いてステップS107の処理が実行され、含まれていないと判定した場合、続いてステップS108の処理が実行される。なお、本ステップS106において判定の対象となる所定文字列は「構成比」であることに限定されず、決算書に含まれ得るその他の文字列であってもよい。
In step S106, the preprocessing
ステップS107において、前処理部15は、決算書の画像において文字列「構成比」を含む列部分を削除する。また、或いは別の態様として、前処理部15は、画像に文字列「構成比」が含まれていることを示すフラグをオンにし、後述するステップS111等において上記列部分を削除する構成であってもよい。
In step S107, the preprocessing
ステップS108において、前処理部15は、決算書の画像内におけるテキストデータの座標に基づき、画像の傾きを解消し、且つ決算書の不要部分を削除する処理を行う。具体例として、前処理部15は以下の処理を実行する。
In step S108, the preprocessing
(1)決算書の画像において、数値を示すテキストデータの座標を算出する。図4の説明図51は、各テキストデータの四隅の座標に基づいて当該テキストデータを枠囲みした例を示している。 (1) In the image of the financial statement, the coordinates of the text data that indicates numerical values are calculated. The explanatory diagram 51 in FIG. 4 shows an example in which the text data is framed based on the coordinates of the four corners of each text data.
(2)座標を算出したテキストデータについて、決算書を基準とした左右方向のX座標が同じである組み合わせが2以上の所定数以上存在するテキストデータの組を抽出する。これにより、例えば図4の決算書左上の日付等は、本ステップS108における以降の処理から除外される。 (2) For the text data whose coordinates have been calculated, pairs of text data are extracted that have a predetermined number (2 or more) of combinations in which the X coordinates in the left-right direction based on the financial statement are the same. As a result, for example, the date in the upper left corner of the financial statement in Figure 4 is excluded from the subsequent processing in this step S108.
(3)抽出したテキストデータの各組について、最も上部に位置する数値55a及び55bと最も下部に位置する数値57a及び57bとに沿った直線59a及び59bをそれぞれ規定する。
(3) For each set of extracted text data,
(4)上記(3)で規定した直線59a及び59bが、画像全体の垂直線61a及び61bと平行になるように、決算書を回転させる。
(4) Rotate the financial statement so that the
ステップS109において、前処理部15は、決算書右列における数値55b及び57bと、決算書左列における数値55a及び57aのそれぞれに対応する勘定科目等の文字列63及び65とによって規定される領域67外側のデータを、不要なデータとして削除する。続いて前処理部15は、決算書を右列部分と左列部分とに二分割する。
In step S109, the preprocessing
ステップS110において、前処理部15は、決算書の画像に含まれるテキストデータの少なくとも一部の文字の太さを、少なくとも一時的に変化させる処理を行う。例えば前処理部15は、画像内の白色部分を膨張させて文字ではないゴミ等のノイズを除去しつつ文字を細くし、続いて白色部分を収縮させて文字を太くすることで、白色の逆ノイズにより文字が僅かに欠けた箇所を好適に修正することができる。また、太くした文字に対して更に白色部分を膨張させ文字を細くさせることで認識精度の高い理想的な文字に近づけることができる。また、これにより、各テキストデータをより好適な範囲で抽出することが可能となる。
In step S110, the preprocessing
ステップS111において、前処理部15は、太くされた各テキストデータの高さに基づき、必要なテキストデータを抽出する。具体的には、前処理部15は、分割した決算書の各列について、最も同一の高さが多いテキストデータの高さを算出し、当該高さと所定以上異なる高さを有するテキストデータ、又は当該高さと比べて所定以上分若しくは所定以下分だけ倍率が異なる高さを有するテキストデータを、以降の処理において不要なデータとして除外する。これにより、読取部16が読み取るべきテキストデータだけが処理対象として残ることとなる。
In step S111, the preprocessing
ステップS112において、前処理部15は、決算書のテキストデータの少なくとも一部を、元の位置とは異なる位置に再配置する処理を行う。ここで、前処理部15は、各テキストデータを、元の画像とは別の白色画像に再配置してもよい。これにより、テキストデータに無関係なノイズを決算書の画像から除外することができる。図5は、前処理部15がテキストデータを再配置した決算書の一部を示す図の一例である。図5においては、各勘定科目と各数値との行頭が揃い、行間が調整され、読取に適した配置となっている。
In step S112, the preprocessing
ステップS113~S115においては、決算書内の勘定科目のカテゴリを分類する処理が行われる。以下、決算書左列の資産の部の勘定科目を、流動資産と固定資産とのカテゴリに分類する処理を例に挙げて説明する。決算書右列についても、負債の部及び純資産の部の勘定科目のカテゴリを分類する処理が同様に実行される。 In steps S113 to S115, a process is carried out to classify the categories of account items in the financial statement. Below, an example is given of a process for classifying the account items in the asset section in the left column of the financial statement into the categories of current assets and fixed assets. A similar process is carried out for the right column of the financial statement to classify the account items in the liability section and net assets section.
ステップS113において、前処理部15は、決算書左列において「固定資産」という文字列を検出したか否かを判定する。換言すると、前処理部15は、決算書左列のテキストデータの何れかとカテゴリ名「固定資産」との近似度が所定以上であるか否かを判定する。これは、決算書において「流動資産」の勘定科目が「固定資産」の勘定科目よりも上部に位置し、「固定資産」カテゴリの開始位置が各カテゴリの境界となることに由来する。前処理部15が、決算書左列において文字列「固定資産」を検出した場合、続いてステップS114の処理が実行され、検出しなかった場合、続いてステップS115の処理が実行される。
In step S113, the preprocessing
ステップS114において、前処理部15は、文字列「固定資産」から下方が、固定資産のカテゴリに属する勘定科目であり文字列「固定資産」の直前までが流動資産のカテゴリに属する勘定科目であるものとして設定する。また、読取部16は、読み取った文字列「固定資産」に、記憶部20に事前に登録された「固定資産」のカテゴリ名を割り当てる。
In step S114, the preprocessing
ステップS115において、前処理部15は、決算書左列の各勘定科目と記憶部20に登録された流動資産の勘定科目とを比較して近似度が所定以上であるか否かを判定し、近似度が所定数以上連続して所定未満となる開始位置が、固定資産のカテゴリの開始位置であるものとして設定する。また、読取部16は、上記開始位置のテキストデータに「固定資産」のカテゴリ名を割り当てる。
In step S115, the preprocessing
ステップS116において、読取部16は、前処理部15が前処理を行った画像におけるテキストデータの読取を行う。また、読取部16は、或るテキストデータに対して、ステップS114又はS115において決算書におけるカテゴリ名を割り当てた場合、当該テキストデータに続くテキストデータを、上記カテゴリ名が示すカテゴリに分類して読み取りを行う。
In step S116, the
また、ステップS115及びS116の処理は、読取部16が、記憶部20に事前に登録された第1カテゴリ名と近似度が所定以上であるテキストデータを決算書中から読み取れない場合、読み取ったテキストデータと第2カテゴリの勘定科目との近似度が所定数以上連続して所定未満となる開始位置が、前記第1カテゴリの開始位置であるものとして読み取りを行うことを示している。
The processing of steps S115 and S116 indicates that if the
ステップS117において、読取部16は、対象となるテキストデータと、数値、又は事前に記憶部20に登録された勘定科目であって、当該テキストデータのカテゴリに属する勘定科目の何れかとの近似度が所定以上であるか否かを、各データを突合して判定する。図6は、読取部16が決算書のテキストデータと記憶部20に登録された勘定科目とをカテゴリ毎に突合する様子を示す概念図である。
In step S117, the
読取部16が、上記近似度が所定以上であると判定した場合、続いてステップS118の処理が実行され、上記近似度が所定未満であると判定した場合、続いてステップS119の処理が実行される。
If the
ステップS118において、読取部16は、対象となるテキストデータに対して、最も近似度が高い勘定科目等の文字列を割り当てる。
In step S118, the
ステップS119において、読取部16は、対象となるテキストデータに対して、OCR処理を行う機構で読み取った通りの文字列を割り当てる。
In step S119, the
ステップS120において、提示部17は、ステップS118で文字列が割り当てられた、上述した近似度が所定未満である各テキストデータを、ユーザが修正可能となるように提示する。具体的には、提示部17は、決算書におけるテキストデータを修正するための画面を示す情報を生成し、通信部22を介して端末装置30に送信する。ただし、提示部17は、上記近似度が所定以上の各テキストデータについても、ユーザが修正可能となるように提示してもよい。
In step S120, the
図7は、情報処理装置10から送信された情報に基づき端末装置30に表示される上記画面の一例を示す図である。図7の例においては、読取部16が読み取った決算書の勘定科目、及び当該勘定科目に対応する金額を示す数値が画面に示されている。また、削除ボタン71は、各行に示す項目をそれぞれ削除するためのボタンである。また、画面左側の入力科目73の欄は、決算書の各行に対応する項目を追加するためのオブジェクトである。
Figure 7 is a diagram showing an example of the above screen displayed on the
また、図7の画面においては、各勘定科目及び数値が修正可能である。なお、上述した近似度が所定未満である勘定科目についてはその旨を示すアイコン等が、例えば当該勘定科目の近傍に表示されてもよい。また、現時点における資産の部の合計値と負債の部及び純資産の部の合計値とが画面に示されているが、上記各合計値が互いに異なること、或いは一致していることをアイコン等によって示す構成であってもよい。 In addition, on the screen of FIG. 7, each account item and value can be modified. For account items whose degree of approximation is less than a predetermined value, an icon or the like indicating this may be displayed, for example, near the account item. In addition, the current total value of the assets section and the total values of the liabilities section and net assets section are displayed on the screen, but icons or the like may be used to indicate that the above total values are different from each other or that they are the same.
図7の画面において、ユーザが各勘定科目及び数値を適宜修正し、上書きボタン77を選択した場合、制御部12は、読み取った決算書の内容を、上記の場合における図7の画面に対応する内容に更新する。
When the user modifies each account item and value appropriately on the screen in FIG. 7 and selects the
また、ユーザが登録ボタン79を選択した場合、算出部18は、決算書の各行に対応する項目、即ち読取部16が読み取った各テキストデータに割り当てられた勘定科目と当該勘定科目に対応する数値とを参照して、与信管理に関する判定結果を算出する。続いて提示部17は、算出部18が算出した判定結果を、図7に準ずる画面等を介してユーザに提示する。
When the user selects the
以上、決算書の画像を取得する取得ステップと、前記取得ステップにおいて取得した画像に対して、前記決算書の種類に応じた所定の前処理を行う前処理ステップと、前記前処理ステップにおいて前処理を行った画像に含まれるテキストデータを読み取り、且つ各テキストデータに対して、数値、又は事前に登録された勘定科目若しくは決算書におけるカテゴリ名の何れかを、近似度に基づいて当該テキストデータに割り当てる読取ステップと、前記近似度が所定未満である各テキストデータを、ユーザが修正可能となるように提示する提示ステップとを含む情報処理方法について説明した。上記の方法によれば、決算書のデータを入力する場合におけるユーザの利便性、及び入力精度を向上させることができる。 The above describes an information processing method that includes an acquisition step of acquiring an image of a financial statement, a preprocessing step of performing a predetermined preprocessing on the image acquired in the acquisition step according to the type of the financial statement, a reading step of reading text data contained in the image preprocessed in the preprocessing step and assigning a numerical value or a preregistered account item or a category name in the financial statement to each piece of text data based on the degree of approximation, and a presentation step of presenting each piece of text data whose degree of approximation is less than a predetermined value so that the user can modify it. The above method can improve the convenience for users when inputting financial statement data and improve input accuracy.
〔実施形態2〕
本発明の第2の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、重複する説明を繰り返さない。本実施形態においては、情報処理装置が損益計算書を読み取る場合の例について説明する。
[Embodiment 2]
A second embodiment of the present invention will be described below. For convenience of explanation, the same reference numerals are given to components having the same functions as those described in the above embodiment, and redundant explanations will not be repeated. In this embodiment, an example in which an information processing device reads a profit and loss statement will be described.
〔1.情報処理システムの構成例〕
本実施形態においても図1に示す構成を用いる。
[1. Example of information processing system configuration]
This embodiment also uses the configuration shown in FIG.
〔2.情報処理システムの処理例〕
本実施形態に係る情報処理システム1における処理の流れについて、決算書が損益計算書である場合を例に挙げて、図8を参照して説明する。図8は、本実施形態に係る処理の流れを示すフローチャートである。また、図8のフローチャートに示す処理は、端末装置30が決算書(損益計算書)の画像を情報処理装置10に送信した場合に実行される。
2. Examples of processing by the information processing system
The flow of processing in the
ステップS101~S105においては、実施形態1と同様の処理が実行される。ただし、ステップS104において、制御部12は、読取対象となる決算書の種類が損益計算書であると判別する。ステップS105の処理に続いて、ステップS206の処理が実行される。
In steps S101 to S105, the same processing as in
ステップS206において、前処理部15は、決算書の枠線となる直線が画像に含まれるか否かを判定する。前処理部15が、上記直線が画像に含まれると判定した場合、続いてステップS207の処理が実行され、上記直線が画像に含まれないと判定した場合、続いてステップS209の処理が実行される。
In step S206, the preprocessing
ステップS207において、前処理部15は、決算書の枠線となる垂直方向の直線のうち最も同一角度が多い直線が、画像全体の垂直線と平行になるように、決算書を回転させる。
In step S207, the preprocessing
ステップS208において、前処理部15は、画像における最も広い範囲を囲む枠線外側のデータを、不要なデータとして削除する。
In step S208, the preprocessing
ステップS209において、前処理部15は、ステップS108の処理と同様に、画像内における数値等のテキストデータの座標に基づき、画像の傾きを解消する処理を行う。
In step S209, the
ステップS210において、前処理部15は、各勘定科目と、金額を示す数値のうち最も左上及び右下に位置するものとを囲む矩形領域外側のデータを、不要なデータとして削除する。
In step S210, the preprocessing
ステップS211において、前処理部15は、決算書のテキストデータの少なくとも一部を、元の位置とは異なる位置に再配置する処理を行う。具体例として、前処理部15は、図9に示すような、以下の処理を実行する。
In step S211, the preprocessing
(1)決算書の各列について、テキストデータそれぞれの座標を算出する。 (1) Calculate the coordinates of each piece of text data for each column of the financial statement.
(2)決算書の各列について、テキストデータの行頭を揃え、行間を調整する処理を行う。 (2) For each column of the financial statements, the process aligns the beginning of the lines of the text data and adjusts the line spacing.
ステップS212において、前処理部15は、画像内のテキストデータについて、上下方向のy座標が同じ勘定科目と数値とを関連付ける。
In step S212, the preprocessing
ステップS213について、前処理部15は、画像に「構成比」「連結」「前事業」という文字列の何れかが含まれるか否かを判定する。前処理部15が、画像に上記文字列の何れかが含まれると判定した場合、続いてステップS214の処理が実行され、画像に上記文字列が含まれないと判定した場合、続いてステップS215の処理が実行される。ただし、本ステップS203において判定の対象となる文字列は、上記に例示したものに限定されない。
In step S213, the preprocessing
ステップS214において、前処理部15は、画像に含まれる上記文字列を含む列部分、或いは上記文字列に対応する所定の列部分を削除する。
In step S214, the preprocessing
ステップS215において、読取部16は、前処理部15が前処理を行った画像におけるテキストデータの読取を行う。
In step S215, the
ステップS216において、読取部16は、対象となるテキストデータと、数値、又は事前に記憶部20に登録された勘定科目であって、損益計算書の勘定科目の何れかとの近似度が所定以上であるか否かを、各データを突合して判定する。
In step S216, the
読取部16が、上記近似度が所定以上であると判定した場合、続いてステップS118の処理が実行され、上記近似度が所定未満であると判定した場合、続いてステップS119の処理が実行される。
If the
ステップS118~S120においては、実施形態1と同様の処理が実行される。以上、図8のフローチャートに基づく処理の流れについて説明した。
In steps S118 to S120, the same processing as in
なお、決算書の種類が販売管理費である場合においても、前処理部15が上記種類に応じた前処理を行った上で、読取等の処理が実行される。決算書の種類が販売管理費である場合においては、例えば図8のフローチャートに示す処理において、ステップS212の処理に続いてステップS215の処理が行われる構成であってもよい。
Even if the type of financial statement is sales and administrative expenses, the preprocessing
なお、前処理部15が決算書の画像に対して行う、決算書の種類に応じた前処理は、各実施形態において上述した例に限定されない。例えば前処理部15は、所定の種類の決算書に含まれる一部の勘定科目に対応する項目を削除する等の処理を行う構成であってもよい。
The preprocessing performed by the preprocessing
〔ソフトウェアによる実現例〕
情報処理装置10の制御ブロック(特に取得部14、前処理部15、読取部16、提示部17および算出部18)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Software implementation example]
The control blocks of the information processing device 10 (particularly the
後者の場合、情報処理装置10は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。
In the latter case, the
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. The technical scope of the present invention also includes embodiments obtained by appropriately combining the technical means disclosed in different embodiments.
1 情報処理システム
10 情報処理装置
12 制御部
14 取得部
15 前処理部
16 読取部
17 提示部
18 算出部
20 記憶部
22、34 通信部
30 端末装置
32 表示部
Claims (8)
前記取得部が取得した画像に対して、所定の前処理を行う前処理部と、
前記前処理部が前処理を行った画像に含まれるテキストデータを読み取り、且つ各テキストデータに対して、数値、又は事前に登録された勘定科目若しくは決算書におけるカテゴリ名の何れかを、近似度に基づいて当該テキストデータに割り当てる読取部と、
前記近似度が所定未満である各テキストデータを、ユーザが修正可能となるように提示する提示部と
を備え、
決算書の勘定科目は、決算書におけるカテゴリ毎に事前に登録されており、
前記読取部は、
決算書の画像に含まれるテキストデータに対して決算書におけるカテゴリ名を割り当てた場合、続くテキストデータを、上記カテゴリ名が示すカテゴリに分類して読み取りを行い、
事前に登録された第1カテゴリ名と近似度が所定以上であるテキストデータを決算書中から読み取れない場合、読み取ったテキストデータと第2カテゴリの勘定科目との近似度が所定数以上連続して所定未満となる開始位置が、前記第1カテゴリの開始位置であるものとして読み取りを行う
ことを特徴とする情報処理装置。 An acquisition unit for acquiring images of financial statements;
a pre-processing unit that performs a predetermined pre-processing on the image acquired by the acquisition unit;
a reading unit that reads text data included in the image preprocessed by the preprocessing unit, and assigns, to each piece of text data, either a numerical value or a preregistered account item or a category name in a financial statement based on a degree of similarity;
a presentation unit that presents each piece of text data whose degree of approximation is less than a predetermined value so that the user can correct the piece of text data;
Account items for financial statements are pre-registered for each category in the financial statements.
The reading unit is
When a category name in a financial statement is assigned to text data included in an image of the financial statement, the following text data is classified into the category indicated by the category name and read.
This information processing device is characterized in that, when text data having a degree of similarity to a pre-registered first category name equal to or greater than a predetermined value cannot be read from a financial statement, the starting position at which the degree of similarity between the read text data and an account item in a second category is less than a predetermined value for a predetermined number of consecutive data is read as the starting position of the first category.
前記提示部は、当該画像を前記ウェブサーバ上にアップロードした端末装置に対して、前記近似度が所定未満である各テキストデータを示す情報を送信する
ことを特徴とする請求項1に記載の情報処理装置。 The acquisition unit acquires an image of a financial statement uploaded onto a web server,
2 . The information processing apparatus according to claim 1 , wherein the presenting unit transmits information indicating each piece of text data for which the degree of approximation is less than a predetermined value to a terminal device that has uploaded the image onto the web server.
ことを特徴とする請求項1又は2に記載の情報処理装置。 3. The information processing device according to claim 1, further comprising a calculation unit that calculates a judgment result regarding credit management by referring to an account item assigned to each text data read by the reading unit and a numerical value corresponding to the account item.
前記取得部が取得した画像に含まれるテキストデータの少なくとも一部を、元の位置とは異なる位置に再配置する
ことを特徴とする請求項1から3の何れか1項に記載の情報処理装置。 The pre-treatment unit includes:
4 . The information processing apparatus according to claim 1 , wherein at least a part of text data included in the image acquired by the acquisition unit is rearranged to a position different from an original position.
前記取得部が取得した画像に含まれるテキストデータの少なくとも一部の文字の太さを、少なくとも一時的に変化させる処理を行う
ことを特徴とする請求項1から4の何れか1項に記載の情報処理装置。 The pre-treatment unit includes:
5 . The information processing apparatus according to claim 1 , further comprising a process for at least temporarily changing a thickness of characters of at least a part of text data included in the image acquired by the acquisition unit.
単一の決算書の画像が複数の画像によって構成されると判定した場合に、上記複数の画像から上記単一の決算書の画像を合成する
ことを特徴とする請求項1から5の何れか1項に記載の情報処理装置。 The pre-treatment unit includes:
6. The information processing apparatus according to claim 1, wherein, when it is determined that an image of a single financial statement is composed of a plurality of images, an image of the single financial statement is synthesized from the plurality of images .
前記取得ステップにおいて取得した画像に対して、所定の前処理を行う前処理ステップと、
前記前処理ステップにおいて前処理を行った画像に含まれるテキストデータを読み取り、且つ各テキストデータに対して、数値、又は事前に登録された勘定科目若しくは決算書におけるカテゴリ名の何れかを、近似度に基づいて当該テキストデータに割り当てる読取ステップと、
前記近似度が所定未満である各テキストデータを、ユーザが修正可能となるように提示する提示ステップと
を含み、
決算書の勘定科目は、決算書におけるカテゴリ毎に事前に登録されており、
前記読取ステップにおいては、
決算書の画像に含まれるテキストデータに対して決算書におけるカテゴリ名を割り当てた場合、続くテキストデータを、上記カテゴリ名が示すカテゴリに分類して読み取りを行い、
事前に登録された第1カテゴリ名と近似度が所定以上であるテキストデータを決算書中から読み取れない場合、読み取ったテキストデータと第2カテゴリの勘定科目との近似度が所定数以上連続して所定未満となる開始位置が、前記第1カテゴリの開始位置であるものとして読み取りを行う
ことを特徴とする情報処理方法。 An acquisition step of acquiring an image of a financial statement;
a pre-processing step of performing a predetermined pre-processing on the image acquired in the acquisition step;
a reading step of reading text data included in the image preprocessed in the preprocessing step, and allocating a numerical value or a preregistered account item or a category name in a financial statement to each piece of text data based on a degree of similarity;
a presenting step of presenting each piece of text data whose similarity is less than a predetermined value so that the user can correct it;
Account items for financial statements are pre-registered for each category in the financial statements.
In the reading step,
When a category name in a financial statement is assigned to text data included in an image of the financial statement, the following text data is classified into the category indicated by the category name and read.
An information processing method characterized in that, when text data having a degree of similarity to a pre-registered first category name equal to or greater than a predetermined value cannot be read from a financial statement, the start position at which the degree of similarity between the read text data and an account item of a second category is less than a predetermined value for a predetermined number or more consecutive times is read as the start position of the first category.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020153977A JP7558730B2 (en) | 2020-09-14 | 2020-09-14 | Information processing device, information processing method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020153977A JP7558730B2 (en) | 2020-09-14 | 2020-09-14 | Information processing device, information processing method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022047925A JP2022047925A (en) | 2022-03-25 |
| JP7558730B2 true JP7558730B2 (en) | 2024-10-01 |
Family
ID=80781181
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020153977A Active JP7558730B2 (en) | 2020-09-14 | 2020-09-14 | Information processing device, information processing method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7558730B2 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000194775A (en) | 1998-12-25 | 2000-07-14 | Mitsui Knowledge Industry Kk | Method for creating customer data and computer-readable recording medium recording a program for causing a computer to execute the method |
| JP2002245393A (en) | 2001-02-20 | 2002-08-30 | Nec Soft Ltd | Financial statement input ocr system and financial statements input program |
| JP2004046516A (en) | 2002-07-11 | 2004-02-12 | Kayoko Amino | Delivery/reception system for settlement statements data |
| JP2006252575A (en) | 2006-04-14 | 2006-09-21 | Katsuyoshi Nagashima | Financial statement automatic input apparatus and method therefore |
| WO2016186137A1 (en) | 2015-05-18 | 2016-11-24 | 株式会社スキャる | Accounting assistance system |
| JP2019191665A (en) | 2018-04-18 | 2019-10-31 | Tis株式会社 | Financial statements reading device, financial statements reading method and program |
-
2020
- 2020-09-14 JP JP2020153977A patent/JP7558730B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000194775A (en) | 1998-12-25 | 2000-07-14 | Mitsui Knowledge Industry Kk | Method for creating customer data and computer-readable recording medium recording a program for causing a computer to execute the method |
| JP2002245393A (en) | 2001-02-20 | 2002-08-30 | Nec Soft Ltd | Financial statement input ocr system and financial statements input program |
| JP2004046516A (en) | 2002-07-11 | 2004-02-12 | Kayoko Amino | Delivery/reception system for settlement statements data |
| JP2006252575A (en) | 2006-04-14 | 2006-09-21 | Katsuyoshi Nagashima | Financial statement automatic input apparatus and method therefore |
| WO2016186137A1 (en) | 2015-05-18 | 2016-11-24 | 株式会社スキャる | Accounting assistance system |
| JP2019191665A (en) | 2018-04-18 | 2019-10-31 | Tis株式会社 | Financial statements reading device, financial statements reading method and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022047925A (en) | 2022-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112016438B (en) | Method and system for identifying certificate based on graph neural network | |
| US10572725B1 (en) | Form image field extraction | |
| US20240176951A1 (en) | Electronic document validation | |
| JP7033208B2 (en) | Certification document recognition methods and devices, electronic devices and computer-readable storage media | |
| US11430241B2 (en) | Entry field extraction device and computer readable medium | |
| CN114155543A (en) | Neural network training method, document image understanding method, device and equipment | |
| CN102970456B (en) | Image forming apparatus, image forming apparatus control method, and program | |
| CN112541443B (en) | Invoice information extraction method, invoice information extraction device, computer equipment and storage medium | |
| JP2000115476A (en) | System and method for manipulating regions of a scanned image | |
| JP7077998B2 (en) | Information processing equipment | |
| CN114049646B (en) | Bank card identification method and device, computer equipment and storage medium | |
| CN112581344A (en) | Image processing method and device, computer equipment and storage medium | |
| CN116719492A (en) | Image processing device, image processing method and recording medium | |
| CN115131803B (en) | Method, device, computer equipment and storage medium for identifying document word size | |
| CN112396059A (en) | Certificate identification method and device, computer equipment and storage medium | |
| JP2019191665A (en) | Financial statements reading device, financial statements reading method and program | |
| JP2021056659A (en) | Information processing device, information processing method and information processing program | |
| CN113936187A (en) | Text image synthesis method and device, storage medium and electronic equipment | |
| CN118522019B (en) | Text recognition method, electronic device and storage medium | |
| CN112508005A (en) | Method, apparatus, device and storage medium for processing image | |
| WO2021174869A1 (en) | User image data processing method, apparatus, computer device, and storage medium | |
| CN114399497A (en) | Text image quality detection method and device, computer equipment and storage medium | |
| US11995907B2 (en) | Distributed computer system for document authentication | |
| JP7558730B2 (en) | Information processing device, information processing method, and program | |
| JP2020173819A (en) | Financial statement read device, financial statement read method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230612 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240312 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240426 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240521 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240701 |
|
| 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: 20240820 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240918 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7558730 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |