Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7304772B2 - Image analysis device, image analysis method, and program - Google Patents
[go: Go Back, main page]

JP7304772B2 - Image analysis device, image analysis method, and program - Google Patents

Image analysis device, image analysis method, and program Download PDF

Info

Publication number
JP7304772B2
JP7304772B2 JP2019154569A JP2019154569A JP7304772B2 JP 7304772 B2 JP7304772 B2 JP 7304772B2 JP 2019154569 A JP2019154569 A JP 2019154569A JP 2019154569 A JP2019154569 A JP 2019154569A JP 7304772 B2 JP7304772 B2 JP 7304772B2
Authority
JP
Japan
Prior art keywords
image
document image
degree
similarity
processing
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
Application number
JP2019154569A
Other languages
Japanese (ja)
Other versions
JP2021033756A (en
Inventor
雅之 鈴木
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.)
Toppan Edge Inc
Original Assignee
Toppan Edge Inc
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 Toppan Edge Inc filed Critical Toppan Edge Inc
Priority to JP2019154569A priority Critical patent/JP7304772B2/en
Publication of JP2021033756A publication Critical patent/JP2021033756A/en
Application granted granted Critical
Publication of JP7304772B2 publication Critical patent/JP7304772B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

本発明は、画像解析装置、画像解析方法、及びプログラムに関する。 The present invention relates to an image analysis device, an image analysis method, and a program.

近年、文書画像に対する文字認識により、文書画像における文字の領域を認識する技術が各種提案されている。 In recent years, various techniques have been proposed for recognizing a character area in a document image by recognizing characters in the document image.

例えば、下記特許文献1には、文書画像における単語の領域を認識する技術が開示されている。当該技術では、文書画像にぼかしをかけて隣接する文字同士を結合させ、結合した部分を抽出することで単語の領域を認識する。 For example, Patent Document 1 below discloses a technique for recognizing a word region in a document image. In this technology, a word region is recognized by blurring a document image, combining adjacent characters, and extracting the combined portion.

特許第5522408号公報Japanese Patent No. 5522408

特許文献1の技術は、文書画像における各単語の領域を認識することができるため、単語単位での処理を行う場合に特に有効である。しかしながら、当該技術では、段落を認識することまでは考慮されていない。そのため、例えば、段落単位での処理が望まれる場合に、段落を認識して処理を行うことは困難である。 The technique disclosed in Japanese Patent Laid-Open No. 2002-200310 can recognize the area of each word in the document image, and is particularly effective when performing processing on a word-by-word basis. However, the art does not consider recognizing paragraphs. Therefore, for example, when it is desired to process by paragraph, it is difficult to recognize the paragraph and perform the process.

上述の課題を鑑み、本発明の目的は、文書画像における段落の設定を容易に行うことが可能な画像解析装置、画像解析方法、及びプログラムを提供することにある。 SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide an image analysis apparatus, an image analysis method, and a program capable of easily setting paragraphs in a document image.

上述の課題を解決するために、本発明の一態様に係る画像解析装置は、文書画像に対するぼかし処理により、前記文書画像に含まれる第1のオブジェクトが加工された第2のオブジェクトを含むぼかし画像を生成する画像加工部と、前記ぼかし画像に対して、前記第2のオブジェクトが1つ含まれる矩形の領域を示す区画を設定する区画設定部と、前記ぼかし画像に設定された前記区画に基づき、判定対象の前記文書画像の種類を判定する判定部と、を備える。
To solve the above-described problems, an image analysis apparatus according to an aspect of the present invention provides a blurred image including a second object obtained by processing a first object included in the document image by blurring processing on the document image. a block setting unit that sets a block indicating a rectangular region containing one of the second objects in the blurred image; and based on the block set in the blurred image: and a determination unit that determines the type of the document image to be determined .

本発明の一態様に係る画像解析方法は、文書画像に対するぼかし処理により、前記文書画像に含まれる第1のオブジェクトが加工された第2のオブジェクトを含むぼかし画像を生成することと、前記ぼかし画像に対して、前記第2のオブジェクトが1つ含まれる矩形の領域を示す区画を設定することと、前記ぼかし画像に設定された前記区画に基づき、判定対象の前記文書画像の種類を判定することと、を含み、プロセッサにより実行される。
An image analysis method according to an aspect of the present invention includes generating a blurred image including a second object obtained by processing a first object included in the document image by blurring a document image; , setting a section indicating a rectangular area including one of the second objects , and determining the type of the document image to be determined based on the section set in the blurred image. and are executed by a processor.

本発明の一態様に係るプログラムは、コンピュータを、文書画像に対するぼかし処理により、前記文書画像に含まれる第1のオブジェクトが加工された第2のオブジェクトを含むぼかし画像を生成する画像加工部と、前記ぼかし画像に対して、前記第2のオブジェクトが1つ含まれる矩形の領域を示す区画を設定する区画設定部と、前記ぼかし画像に設定された前記区画に基づき、判定対象の前記文書画像の種類を判定する判定部と、として機能させる。 A program according to an aspect of the present invention comprises a computer, an image processing unit that generates a blurred image including a second object obtained by processing a first object included in the document image by blurring processing on the document image; a section setting unit for setting a section indicating a rectangular area including one of the second objects for the blurred image; It functions as a determination unit that determines the type .

本発明によれば、文書画像における段落の設定を容易に行うことができる。 According to the present invention, it is possible to easily set paragraphs in a document image.

本発明の実施形態に係る画像解析システムの構成例を示す図である。1 is a diagram showing a configuration example of an image analysis system according to an embodiment of the present invention; FIG. 同実施形態に係る文書画像の例を示す図である。It is a figure which shows the example of the document image which concerns on the same embodiment. 同実施形態に係るぼかし画像の例を示す図である。It is a figure which shows the example of the blurred image which concerns on the same embodiment. 同実施形態に係るぼかし画像に対する区画の設定例を示す図である。It is a figure which shows the setting example of the division with respect to the blurred image which concerns on the same embodiment. 同実施形態に係る文書画像に対する区画の合成例を示す図である。It is a figure which shows the example of a synthesis|combination of the division with respect to the document image which concerns on the same embodiment. 同実施形態に係るぼかしの程度を強くした際のぼかし画像に対する区画の設定例を示す図である。FIG. 10 is a diagram showing a setting example of partitions for a blurred image when the degree of blurring is increased according to the same embodiment; 同実施形態に係るぼかしの程度を弱くした際のぼかし画像に対する区画の設定例を示す図である。FIG. 10 is a diagram showing a setting example of partitions for a blurred image when the degree of blurring is weakened according to the same embodiment; 同実施形態に係る画像解析装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the image-analysis apparatus which concerns on the same embodiment.

<画像解析システムの構成>
以下、図面を参照しながら本発明の実施形態について詳しく説明する。
図1は、本発明の実施形態に係る画像解析システム1の構成例を示す図である。図1に示すように、画像解析システム1は、画像解析装置10、類似度算出サーバ20、及びネットワーク30で構成される。画像解析装置10と類似度算出サーバ20は、互いに情報の送受信が行えるようにネットワーク30により接続されている。
<Configuration of image analysis system>
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram showing a configuration example of an image analysis system 1 according to an embodiment of the present invention. As shown in FIG. 1, the image analysis system 1 includes an image analysis device 10, a similarity calculation server 20, and a network 30. FIG. The image analysis apparatus 10 and the similarity calculation server 20 are connected by a network 30 so that they can transmit and receive information to each other.

画像解析装置10は、画像の種類を判定する処理(以下、「判定処理」とも称される)を行う装置である。画像解析装置10は、例えば、PC(Personal Computer)、タブレット端末、スマートフォンなどの端末により実現される。 The image analysis device 10 is a device that performs processing for determining the type of image (hereinafter also referred to as “determination processing”). The image analysis device 10 is implemented by a terminal such as a PC (Personal Computer), a tablet terminal, or a smart phone, for example.

画像解析装置10は、例えば、文書画像の種類を判定する。文書画像は、文字、線、記号、図形、表、画像などのオブジェクト(第1のオブジェクト)で構成される文書の画像である。文書は、段組みされた構成の文書であってもよい。文書画像の種類は、一例として、論文、雑誌、カタログ、新聞などが挙げられる。なお、文書画像の構成、文書の構成、及び文書画像の種類は、かかる例に限定されない。 The image analysis device 10 determines, for example, the type of document image. A document image is an image of a document composed of objects (first objects) such as characters, lines, symbols, graphics, tables, and images. The document may be a document with a multi-column structure. Examples of document image types include articles, magazines, catalogs, and newspapers. Note that the configuration of the document image, the configuration of the document, and the type of the document image are not limited to these examples.

画像解析装置10は、判定対象となる文書画像にぼかし処理を施したぼかし画像を生成し、当該ぼかし画像に対して区画を設定する。ここで、区画とは、ぼかし処理により、文書画像に含まれるオブジェクトが加工された加工オブジェクト(第2のオブジェクト)が1つ含まれる矩形の領域のことである。加工オブジェクトは、例えば、ぼかしをかけられたことによりぼやけたオブジェクトや、ぼやけたことにより複数のオブジェクトが結合して1つになったオブジェクトなどである。区画の設定後、画像解析装置10は、ネットワーク30を介して、区画が設定されたぼかし画像を類似度算出サーバ20へ送信する。 The image analysis apparatus 10 generates a blurred image by performing a blurring process on a document image to be determined, and sets sections for the blurred image. Here, a section is a rectangular area that includes one processed object (second object) obtained by processing an object included in a document image by blurring processing. The processed object is, for example, an object blurred by blurring, or an object formed by combining a plurality of objects into one due to blurring. After setting the partitions, the image analysis device 10 transmits the blurred image with the partitions set to the similarity calculation server 20 via the network 30 .

類似度算出サーバ20は、画像の類似度を算出する処理(以下、「類似度算出処理」とも称される)を行う装置である。類似度算出サーバ20は、例えば、サーバ装置等のコンピュータにより実現される。 The similarity calculation server 20 is a device that performs processing for calculating the similarity of images (hereinafter also referred to as “similarity calculation processing”). The similarity calculation server 20 is implemented by a computer such as a server device, for example.

類似度算出サーバ20は、例えば、機械学習の手法により画像の類似度を算出する。例えば、類似度算出サーバ20は、学習済みモデルを用いて、画像の類似度を算出する。学習済みモデルは、区画のレイアウトと文書画像の種類との関係を学習したモデルである。 The similarity calculation server 20 calculates the similarity of images by, for example, a machine learning technique. For example, the similarity calculation server 20 calculates the similarity of images using a trained model. A trained model is a model that has learned the relationship between the layout of the section and the type of the document image.

学習済みモデルの学習方法は、例えば、教師有り学習である。学習済みモデルは、学習用のデータセットを用いて、CNN(Convolutional Neural Network)などの学習モデルを学習させることにより生成される。CNNは、入力層、隠れ層(中間層)、出力層の3つの階層により構成されるモデルである。入力層には、CNNに推定させたいデータ(入力データ)が入力される。出力層からは、CNNによって学習された結果を示すデータ(推定結果)が出力される。隠れ層は、学習の核となる処理を行う。例えば、隠れ層は、入力を活性化関数(伝達関数)と呼ばれる関数により表現される値に変換して出力する。例えば、活性化関数は、正規化線形関数や、シグモイド関数、ステップ関数などであるが、これに限定されず、任意の関数が用いられてよい。 The learning method of the trained model is, for example, supervised learning. A trained model is generated by training a learning model such as a CNN (Convolutional Neural Network) using a training data set. A CNN is a model composed of three layers: an input layer, a hidden layer (hidden layer), and an output layer. Data (input data) to be estimated by the CNN is input to the input layer. The output layer outputs data (estimation results) indicating the results of learning by the CNN. The hidden layer performs the core processing of learning. For example, a hidden layer converts an input into a value expressed by a function called an activation function (transfer function) and outputs the value. For example, the activation function is a normalized linear function, a sigmoid function, a step function, etc., but is not limited to these, and any function may be used.

CNNでは、ある層のユニットから、より深い層のユニットにデータが出力される際に、ユニット同士を接続するノードの結合係数に応じた重みW、及びバイアス成分bが付与されたデータが出力される。学習モデルは、入力されたデータ(入力データ)に対し、各ユニット間の演算を行い、出力層から出力データを出力する。 In CNN, when data is output from a unit in a certain layer to a unit in a deeper layer, data to which a weight W according to the coupling coefficient of the node connecting the units and a bias component b are added is output. be. The learning model performs operations between units on input data (input data), and outputs output data from the output layer.

本実施形態における学習用のデータセットは、入力としての区画のレイアウトと、出力としての文書画像の種類とを対応付けた情報である。 The learning data set in the present embodiment is information that associates the layout of sections as an input with the type of document image as an output.

学習の過程において、学習モデルに、学習用のデータセットの入力データを入力させる。学習モデルは、入力データに対して出力層から出力されるデータ(出力データ)が、学習用のデータセットの出力に近づくように、学習モデルのパラメータ(重みW及びバイアス成分b)を調整することにより、学習モデルを学習させる。 In the process of learning, the learning model is fed with input data of a training data set. The learning model adjusts the parameters (weight W and bias component b) of the learning model so that the data output from the output layer with respect to the input data (output data) approaches the output of the data set for learning. to train the learning model.

例えば、学習モデルのパラメータ(重みW、及びバイアス成分b)の調整には、誤差逆伝搬法が用いられる。誤差逆伝搬法では、学習モデルの出力層から出力されるデータと、学習用データとセットの出力との乖離度合いが、損失関数として導出される。ここでの乖離度合いには、任意の指標が用いられてよいが、例えば、誤差の二乗(二乗誤差)やクロスエントロピー等が用いられる。誤差逆伝搬法では、出力層から入力層側に至る方向に、損失関数が最小となるように、重みWとバイアス成分bの組み合わせを決定(更新)する。これにより学習モデルを学習させ、推定の精度を向上させる。 For example, error backpropagation is used to adjust the parameters (weight W and bias component b) of the learning model. In the error backpropagation method, the degree of divergence between the data output from the output layer of the learning model and the output of the learning data and set is derived as a loss function. Any index may be used for the degree of divergence here, but for example, the square of the error (square error), cross entropy, or the like is used. In the error backpropagation method, the combination of the weight W and the bias component b is determined (updated) so that the loss function is minimized in the direction from the output layer to the input layer. This makes the learning model learn and improves the accuracy of estimation.

なお、学習モデルは、CNNに限定されることはない。学習モデルとして、例えば、決定木、階層ベイズ、SVM(Support Vector Machine)などの手法が用いられてもよい。 Note that the learning model is not limited to CNN. Techniques such as decision trees, hierarchical Bayes, and SVM (Support Vector Machine) may be used as learning models, for example.

類似度算出サーバ20は、画像解析装置10から受信するぼかし画像を学習済みモデルに入力することにより、学習済みモデルからの出力(文書画像の種類と類似度)を取得する。学習済みモデルからの出力は、例えば、「論文との類似度が80%、雑誌との類似度が50%、新聞との類似度が8%」など、文書画像の種類のそれぞれとの類似度を示す情報である。なお、ここでいう類似度は、判定対象のぼかし画像における区画のレイアウトと、学習済みモデルが学習に用いた区画のレイアウトとの類似度である。 The similarity calculation server 20 inputs the blurred image received from the image analysis device 10 to the learned model, thereby acquiring the output (type and similarity of the document image) from the learned model. The output from the trained model is the similarity with each type of document image, for example, "80% similarity to articles, 50% similarity to magazines, 8% similarity to newspapers". is information indicating Note that the degree of similarity here is the degree of similarity between the layout of the blocks in the blurred image to be determined and the layout of the blocks used for learning by the trained model.

類似度算出サーバ20は、学習済みモデルからの出力を画像解析装置10へ送信する。そして、画像解析装置10は、受信した類似度を示す情報に基づき、判定対象の文書画像の種類を判定する。例えば、画像解析装置10は、最も高い類似度を示す文書画像の種類を、判定対象の文書画像の種類と判定する。 The similarity calculation server 20 transmits the output from the trained model to the image analysis device 10 . Then, the image analysis apparatus 10 determines the type of document image to be determined based on the received information indicating the degree of similarity. For example, the image analysis apparatus 10 determines the type of document image showing the highest degree of similarity as the type of document image to be determined.

なお、本実施形態に係る学習済みモデルは、類似度算出サーバ20が備える記憶媒体に保存されているものとするが、学習済みモデルの保存先はかかる例に限定されない。例えば、学習済みモデルは、画像解析装置10が備える記憶媒体に保存されていてもよい。これにより、画像解析装置10は、類似度算出サーバ20にアクセスすることなく、自装置の記憶媒体に保存された学習済みモデルを用いて類似度を取得することができる。 It should be noted that the trained model according to the present embodiment is stored in a storage medium included in the similarity calculation server 20, but the storage destination of the trained model is not limited to this example. For example, the trained model may be stored in a storage medium included in the image analysis device 10. Thereby, the image analysis device 10 can obtain the similarity using the trained model stored in the storage medium of the device without accessing the similarity calculation server 20 .

<画像解析装置の構成>
ここで、画像解析装置10の構成について、より詳細に説明する。図1に示すように、画像解析装置10は、画像取得部110、制御部120、通信部130、記憶部140、及び出力部150を備える。
<Configuration of image analysis device>
Here, the configuration of the image analysis device 10 will be described in more detail. As shown in FIG. 1 , the image analysis apparatus 10 includes an image acquisition section 110 , a control section 120 , a communication section 130 , a storage section 140 and an output section 150 .

(画像取得部110)
画像取得部110は、判定処理の対象となる画像を取得する機能を有する。例えば、画像取得部110は、判定処理の対象として文書画像を取得し、取得した文書画像を制御部120へ出力する。なお、画像取得部110は、取得した文書画像を出力部150へ出力してもよい。
(Image acquisition unit 110)
The image acquisition unit 110 has a function of acquiring an image to be subjected to determination processing. For example, the image acquisition unit 110 acquires a document image as a target of determination processing, and outputs the acquired document image to the control unit 120 . Note that the image acquisition unit 110 may output the acquired document image to the output unit 150 .

画像取得部110は、多様な手段により文書画像を取得し得る。例えば、画像取得部110は、記憶部140に記憶されている文書画像を取得する。また、画像解析装置10が撮像装置を有する場合、画像取得部110は、撮像装置が文書の印刷物等を撮像した画像を文書画像として取得してもよい。また、画像取得部110は、外部装置から文書画像を取得してもよい。一例として、スキャナ装置が外部装置として画像解析装置10に接続されている場合、画像取得部110は、スキャナ装置が文書の印刷物等をスキャンすることで生成される画像を文書画像として取得する。なお、外部装置は、画像解析装置10と有線又は無線のどちらで接続されていてもよい。また、画像取得部110は、ネットワーク30を介して、ウェブサービスなどから文書画像を取得してもよい。 The image acquisition unit 110 can acquire document images by various means. For example, the image acquisition unit 110 acquires document images stored in the storage unit 140 . Further, when the image analysis apparatus 10 has an imaging device, the image acquisition unit 110 may acquire an image of a printed document or the like captured by the imaging device as the document image. Also, the image acquisition unit 110 may acquire the document image from an external device. As an example, when a scanner device is connected to the image analysis device 10 as an external device, the image acquisition unit 110 acquires an image generated by scanning a printed document or the like with the scanner device as a document image. Note that the external device may be connected to the image analysis device 10 either wired or wirelessly. Also, the image acquisition unit 110 may acquire the document image from a web service or the like via the network 30 .

ここで、図2を参照して、文書画像の一例について説明する。図2は、本発明の実施形態に係る文書画像40の例を示す図である。図2に示す文書画像40は、2段組みの論文の画像である。当該論文には、上部に「XXXX学会第xx回全国大会」という論文のタイトルが記載され、タイトルの下に罫線をはさんで論文の本文が2段組みで記載されている。本文の1段目には、「1.*****」という見出しとその本文、「2.*****」という見出しとその本文、及び表1のタイトルとその表が記載されている。本文の2段目には、表2のタイトルとその表、1段目から続いている「2.*****」という見出しの本文、及び「3.*****」という見出しとその本文が記載されている。 Here, an example of a document image will be described with reference to FIG. FIG. 2 is a diagram showing an example of a document image 40 according to an embodiment of the invention. A document image 40 shown in FIG. 2 is an image of a two-column article. In the paper, the title of the paper is described at the top, "The xxth National Convention of the Society of XXXX", and the text of the paper is described in two columns under the title with a ruled line between them. In the first row of the text, the heading "1.****" and its text, the heading "2.****" and its text, and the title of Table 1 and its table are described. there is In the second row of the text, the title of Table 2 and its table, the text with the heading “2.****” continuing from the first row, and the heading “3.****” and The text is provided.

以下では、図2に示した2段組みの論文の文書画像40が、判定処理の対象である例について説明する。 In the following, an example in which the document image 40 of the two-column paper shown in FIG. 2 is the target of the determination process will be described.

(制御部120)
制御部120は、画像解析装置10の動作全般を制御する機能を有する。制御部120は、例えば、画像解析装置10がハードウェアとして備えるCPU(Central Processing Unit)にプログラムを実行させることによって実現される。当該機能を実現するために、制御部120は、画像読込部1202、画像加工部1204、区画設定部1206、区画合成部1208、判定部1210、及び後処理部1212を備える。
(control unit 120)
The control unit 120 has a function of controlling the overall operation of the image analysis apparatus 10 . The control unit 120 is implemented, for example, by causing a CPU (Central Processing Unit) included as hardware in the image analysis apparatus 10 to execute a program. To realize this function, the control unit 120 includes an image reading unit 1202 , an image processing unit 1204 , a section setting unit 1206 , a section synthesizing unit 1208 , a determination unit 1210 and a post-processing unit 1212 .

(画像読込部1202)
画像読込部1202は、文書画像を読み込む機能を有する。例えば、画像読込部1202は、画像取得部110から入力される文書画像を読み込み、読み込んだ文書画像を画像加工部1204へ出力する。文書画像の読み込み時、画像読込部1202は、文書画像をグレースケールに変換する。なお、画像読込部1202は、文書画像をカラー画像として読み込んでもよい。
(Image reading unit 1202)
An image reading unit 1202 has a function of reading a document image. For example, the image reading unit 1202 reads a document image input from the image acquisition unit 110 and outputs the read document image to the image processing unit 1204 . When reading a document image, the image reading unit 1202 converts the document image to grayscale. Note that the image reading unit 1202 may read the document image as a color image.

(画像加工部1204)
画像加工部1204は、文書画像を加工する機能を有する。例えば、画像加工部1204は、画像読込部1202から入力される文書画像を加工し、加工した文書画像を区画設定部1206へ出力する。なお、画像加工部1204は、加工した文書画像を出力部150へ出力してもよい。加工の一例として、画像加工部1204は、文書画像に対してぼかし処理と2値変換処理を施す。
(Image processing unit 1204)
The image processing unit 1204 has a function of processing document images. For example, the image processing unit 1204 processes the document image input from the image reading unit 1202 and outputs the processed document image to the section setting unit 1206 . Note that the image processing unit 1204 may output the processed document image to the output unit 150 . As an example of processing, the image processing unit 1204 applies blurring processing and binary conversion processing to the document image.

まず、画像加工部1204は、文書画像に対してぼかし処理を施す。ぼかし処理は、処理対象にぼかしをかける処理である。画像加工部1204は、ぼかし処理により文書画像にぼかしをかけたぼかし画像を生成する。ぼかし処理は、例えば、平準化フィルターを用いて行われる。平準化フィルターは、例えば、ガウシアンフィルタである。ガウシアンフィルタは、画像の画素の内、注目した1つの画素(注目画素)を中心とした所定の領域内の画素の画素値を、注目画素からの距離に応じた重みをかけて平均化する。所定の領域の大きさは、例えば、3画素×3画素、5画素×5画素のように設定され得る。注目画素を中心とした所定の領域内の画素の画素値が平均化されることにより、所定の領域内の色の濃淡の変化がなめらかになるため、画像がぼやける。 First, the image processing unit 1204 blurs the document image. The blurring process is a process of blurring the processing target. The image processing unit 1204 generates a blurred image by blurring the document image by blurring processing. Blur processing is performed using, for example, a smoothing filter. A smoothing filter is, for example, a Gaussian filter. The Gaussian filter averages the pixel values of the pixels in a predetermined area centered on one focused pixel (focused pixel) among the pixels of the image by weighting them according to the distance from the focused pixel. The size of the predetermined area can be set to, for example, 3 pixels×3 pixels or 5 pixels×5 pixels. By averaging the pixel values of the pixels in a predetermined area centering on the pixel of interest, the change in color density in the predetermined area becomes smooth, resulting in a blurry image.

文書画像内のオブジェクトを示す画素とオブジェクト以外を示す画素との境界にて、オブジェクトを示す画素を注目画素としてガウシアンフィルタを適用すると、注目画素を中心とした所定の領域内の画素の画素値が平均化される。この時、所定の領域内に含まれていたオブジェクト以外を示す画素の画素値が、平均化によりオブジェクトを示す画素の画素値に近くなった場合、オブジェクトを示す画素の画素値に近い画素値である画素の数が増えるため、オブジェクトの大きさが大きくなる。これより、画像加工部1204は、文書画像に対してぼかし処理を施すと、文書画像内のオブジェクトの大きさをぼかし処理前の大きさよりも大きくすることができる。画像加工部1204がぼかし処理によってオブジェクトの大きさを大きくすることで、オブジェクトを示す画素から当該オブジェクトの外側に向かってオブジェクトが大きくなる。そのため、複数のオブジェクトが隣接して配置されている場合には、画像加工部1204は、隣接するオブジェクト同士をぼかし処理によって結合させることもできる。 If a Gaussian filter is applied to a pixel representing an object at the boundary between a pixel representing an object and a pixel representing something other than the object in the document image, the pixel value of the pixels in a predetermined area centered on the target pixel is averaged. At this time, if the pixel values of the pixels that indicate objects other than the object contained in the predetermined area become close to the pixel values of the pixels that indicate the object due to averaging, the pixel values that are close to the pixel values of the pixels that indicate the object are used. As the number of certain pixels increases, the size of the object increases. Accordingly, when the image processing unit 1204 performs the blurring process on the document image, the size of the object in the document image can be made larger than the size before the blurring process. The image processing unit 1204 enlarges the size of the object by the blurring process, so that the object becomes larger from the pixel indicating the object toward the outside of the object. Therefore, when a plurality of objects are arranged adjacent to each other, the image processing unit 1204 can combine the adjacent objects by blurring processing.

ぼかし処理により、文書画像中のオブジェクトが加工された多様な加工オブジェクトが生成され得る。例えば、文字列にぼかしがかけられると、隣接する文字が結合した加工オブジェクトが生成される。また、複数行の文章にぼかしがかけられると、隣接する行が結合した加工オブジェクトが生成される。また、表にぼかしがかけられると、表の枠線を示す罫線と表内の文字列が結合した加工オブジェクトが生成される。また、罫線にぼかしがかけられると、罫線がぼやけて太くなった加工オブジェクトが生成される。 Blur processing can generate various processed objects that are processed objects in the document image. For example, when a character string is blurred, a processed object is generated in which adjacent characters are combined. Also, when multiple lines of text are blurred, a processed object is generated in which adjacent lines are combined. Further, when the table is blurred, a processed object is generated in which the ruled lines indicating the frame of the table and the character strings in the table are combined. Further, when the ruled lines are blurred, a processed object is generated in which the ruled lines are blurred and thickened.

ぼかし処理では、ぼかしの強弱を示すぼかしの程度が調整可能に設定される。例えば、ぼかしの程度は、文書画像中の複数のオブジェクトが適切に結合するように設定されることが望ましい。ここでいう適切に結合することとは、各加工オブジェクトが意味を有するように、複数のオブジェクトが結合することである。例えば、文書画像が論文である場合、ぼかしの程度は、論文のタイトル、見出し、本文などの意味を有する加工オブジェクトが生成されるように設定される。 In the blurring process, the degree of blurring indicating the intensity of blurring is set so as to be adjustable. For example, the degree of blurring is desirably set so that multiple objects in the document image are properly combined. Appropriately connecting here means connecting a plurality of objects so that each processing object has a meaning. For example, if the document image is a thesis, the degree of blurring is set so as to generate meaningful processed objects such as the title, headline, and text of the thesis.

また、論文のように文章が含まれる文書画像である場合、文章間の距離に応じてぼかしの程度が設定されることで、加工オブジェクトを適切な文章のまとまりごとに分けることができる。ここでいう適切な文章のまとまりとは、例えば段落である。文章間の距離は、例えば、改行が1回されている場合と改行が2回されている場合とで異なる。 In addition, in the case of a document image including sentences such as a paper, the degree of blurring is set according to the distance between sentences, so that the processing objects can be appropriately divided into groups of sentences. An appropriate group of sentences here is, for example, a paragraph. The distance between sentences differs between, for example, one line break and two line breaks.

例えば、複数の段落がそれぞれ分かれた加工オブジェクトが生成されることが望ましい場合、ぼかしの程度は、複数の段落間(段落の境目をはさむ2行の文章間)の距離に応じて、それぞれの加工オブジェクトが分かれるように設定される。例えば、段落間の距離が短い場合、ぼかしの程度が強すぎると複数の段落が結合する可能性がある。よって、ぼかしの程度は、2つの段落が結合しない程度の強さに設定される。一方、段落間の距離が長い場合、ぼかしの程度がある程度強くても複数の段落が結合しない可能性がある。よって、ぼかしの程度は、2つの段落が結合しない程度まで強く設定されてもよい。 For example, when it is desirable to generate a processing object in which a plurality of paragraphs are separated from each other, the degree of blurring is determined according to the distance between the plurality of paragraphs (between two lines of text sandwiching the boundary between the paragraphs). Set to separate objects. For example, if the distance between paragraphs is short, multiple paragraphs may join together if the degree of blurring is too strong. Therefore, the degree of blurring is set to be strong enough not to merge two paragraphs. On the other hand, if the distance between paragraphs is long, there is a possibility that multiple paragraphs will not be merged even if the degree of blurring is strong to some extent. Thus, the degree of blurring may be set as strong as possible to the extent that two paragraphs do not merge.

複数の段落が結合した加工オブジェクトが生成されることが望ましい場合、ぼかしの程度は、複数の段落間の距離に応じて、複数の段落が結合するように設定されてもよい。例えば、段落間の距離が短い場合、ぼかしの程度がある程度弱くても複数の段落が結合する可能性がある。よって、ぼかしの程度は、2つの段落が分かれない程度に弱く設定されてよい。一方、段落間の距離が長い場合、ぼかしの程度が弱すぎると複数の段落が結合しない可能性がある。よって、ぼかしの程度は、複数の段落が結合する程度に強く設定される。 When it is desirable to generate a processed object in which multiple paragraphs are combined, the degree of blurring may be set so that the multiple paragraphs are combined according to the distance between the multiple paragraphs. For example, if the distance between paragraphs is short, multiple paragraphs may be merged even if the degree of blurring is somewhat weak. Therefore, the degree of blurring may be set weakly so that the two paragraphs are not separated. On the other hand, if the distance between paragraphs is long, the paragraphs may not join together if the degree of blurring is too weak. Therefore, the degree of blurring is set strong enough to combine multiple paragraphs.

また、ぼかしの程度は、ぼかしをかけられた文字列の意味が認識されないように設定されることが望ましい。具体的に、ぼかしの程度は、ユーザがぼかし画像を見た際に、ぼかしをかけられた文字列が示す意味をユーザが理解できない程度に設定される。これにより、判定対象の文書画像が個人情報を含む文書画像であっても、個人情報は認識されない程度にぼかしをかけられるため、個人情報を保護することができる。 Also, the degree of blurring is desirably set so that the meaning of the blurred character string is not recognized. Specifically, the degree of blurring is set to such an extent that the user cannot understand the meaning indicated by the blurred character string when the user views the blurred image. As a result, even if the document image to be determined contains personal information, the personal information can be blurred to such an extent that it cannot be recognized, so that the personal information can be protected.

また、ぼかし処理により個人情報が保護されるため、ぼかし画像を用いた処理に対してクラウドサービス等の外部サービスを利用しても、外部に個人情報が漏洩することを防ぐことができる。そのため、ユーザは、ぼかし画像を用いた処理に対して外部サービスを利用しやすくなる。 In addition, since the personal information is protected by the blurring process, it is possible to prevent the personal information from being leaked to the outside even if an external service such as a cloud service is used for the process using the blurred image. Therefore, it becomes easier for the user to use an external service for processing using a blurred image.

なお、画像加工部1204は、最も弱いぼかしの程度を初期設定とする。ここでいう最も弱いぼかしの程度は、ぼかしをかけられた文字列の意味が認識されない程度である。ぼかしの程度を変更する場合、画像加工部1204は、初期設定から徐々に強くなるようにぼかしの程度を強める。例えば、初期設定のぼかしの程度で生成されたぼかし画像に基づき判定処理が行われた結果、文書画像の種類が判定されなかった場合、画像加工部1204は、ぼかしの程度を初期設定よりも強くする。 Note that the image processing unit 1204 initially sets the weakest degree of blurring. The weakest degree of blurring here is the degree that the meaning of the blurred character string is not recognized. When changing the degree of blurring, the image processing unit 1204 gradually increases the degree of blurring from the initial setting. For example, if the type of the document image is not determined as a result of the determination processing based on the blurred image generated with the default degree of blurring, the image processing unit 1204 sets the degree of blurring higher than the initial setting. do.

ここで、図3を参照して、ぼかし画像の一例について説明する。図3は、本発明の実施形態に係るぼかし画像42の例を示す図である。図3に示すぼかし画像42は、図2に示した文書画像40がぼかし処理によりぼかしをかけられた画像である。当該ぼかし画像42では、ぼかしをかけられた文字や記号は、黒丸で示されている。また、ぼかしをかけられた表の枠線等の罫線は、ぼかし処理の前よりも太く示されている。 Here, an example of a blurred image will be described with reference to FIG. FIG. 3 is a diagram showing an example of a blurred image 42 according to an embodiment of the invention. A blurred image 42 shown in FIG. 3 is an image obtained by blurring the document image 40 shown in FIG. In the blurred image 42, blurred characters and symbols are indicated by black circles. Also, the ruled lines such as the frame lines of the blurred table are shown thicker than before the blurring process.

図3に示すぼかし画像42では、図2に示した上部の論文のタイトルは、複数の文字が結合して1つの加工オブジェクトになっている。タイトルの下の罫線は、ぼやけて太くなった加工オブジェクトになっている。本文の1段目の「1.*****」という見出しとその本文は、それぞれ分かれて複数の文字が結合して2つの加工オブジェクトとなっている。本文の1段目の「2.*****」という見出しとその本文は、それぞれ分かれて複数の文字が結合して2つの加工オブジェクトとなっている。本文の1段目の表1のタイトルとその表は、タイトルの文字と表内の文字と表の罫線とが結合して1つの加工オブジェクトとなっている。本文の2段目の表2のタイトルとその表は、タイトルの文字と表内の文字と表の罫線とが結合して1つの加工オブジェクトとなっている。本文の2段目において、1段目から続いている「2.*****」という見出しの本文は、1段目の本文とは分かれて複数の文字が結合して1つの加工オブジェクトとなっている。本文の2段目の「3.*****」という見出しとその本文は、それぞれ分かれて複数の文字が結合して加工オブジェクトとなっており、本文はさらに分かれて複数の文字が結合して3つの加工オブジェクトとなっている。 In the blurred image 42 shown in FIG. 3, the title of the article at the top shown in FIG. 2 is combined with a plurality of characters to form one processed object. The ruled line under the title is a blurred and thickened processed object. The headline "1.****" in the first row of the text and its text are each divided into two processing objects by combining a plurality of characters. The headline "2.****" in the first row of the text and its text are each divided into two processing objects by combining a plurality of characters. The title of Table 1 in the first row of the text and its table form one processed object by combining the characters of the title, the characters in the table, and the ruled lines of the table. The title of Table 2 in the second row of the text and its table form one processed object by combining the characters of the title, the characters in the table, and the ruled lines of the table. In the second row of the text, the text with the heading "2.****" continuing from the first row is separated from the first row of text, and multiple characters are combined to form one processing object. It's becoming The headline "3.****" in the second row of the text and its text are each divided into multiple characters that are combined into processed objects, and the text is further divided into multiple characters that are combined. are three machining objects.

ぼかし処理後、画像加工部1204は、ぼかし画像に対して2値変換処理を施す。2値変換処理は、処理対象の画像を白と黒の2階調に変換する処理である。例えば、画像加工部1204は、ぼかし画像の各画素の画素値に基づき、ぼかし画像を白と黒の2階調に変換する。具体的に、画像加工部1204は、画素値が所定の閾値以上である画素には黒を示す値(例えば1)を設定し、画素値が所定の閾値未満である画素には白を示す値(例えば0)を設定する。図3に示すぼかし画像42の場合、ぼかしがかけられて黒くなっている画素には1が設定され、それ以外の白い画素には0が設定される。そして、画像加工部1204は、2値変換処理後のぼかし画像を区画設定部1206へ出力する。 After the blurring processing, the image processing unit 1204 performs binary conversion processing on the blurred image. Binary conversion processing is processing for converting an image to be processed into two gradations of white and black. For example, the image processing unit 1204 converts the blurred image into two gradations of white and black based on the pixel value of each pixel of the blurred image. Specifically, the image processing unit 1204 sets a value (for example, 1) indicating black to a pixel whose pixel value is equal to or greater than a predetermined threshold value, and sets a value indicating white to a pixel whose pixel value is less than the predetermined threshold value. (eg 0) is set. In the case of the blurred image 42 shown in FIG. 3, 1 is set to pixels that have been blurred and turned black, and 0 is set to other white pixels. The image processing unit 1204 then outputs the blurred image after the binary conversion processing to the partition setting unit 1206 .

(区画設定部1206)
区画設定部1206は、ぼかし画像に対して区画を設定する機能を有する。例えば、区画設定部1206は、画像加工部1204から入力されるぼかし画像に対して区画を設定し、区画を設定したぼかし画像を区画合成部1208及び判定部1210へ出力する。なお、区画設定部1206は、区画を設定したぼかし画像を出力部150へ出力してもよい。
(Section setting unit 1206)
The partition setting unit 1206 has a function of setting partitions for the blurred image. For example, the block setting unit 1206 sets blocks for the blurred image input from the image processing unit 1204 and outputs the block-set blurred image to the block synthesizing unit 1208 and the determination unit 1210 . Note that the partition setting unit 1206 may output the blurred image with the partitions set to the output unit 150 .

具体的に、区画設定部1206は、画像加工部1204から入力される2値変換されたぼかし画像の画素値に基づき、区画を設定する。まず、区画設定部1206は、ぼかし画像の各画素に設定されている画素値に基づき、ぼかし画像における加工オブジェクトを検出する。例えば、画素値に1が設定されている画素(即ち黒の画素)は加工オブジェクトを構成する画素であり、画素値に0が設定されている画素(即ち白の画素)は加工オブジェクト以外を構成する画素である。検出後、区画設定部1206は、検出した加工オブジェクトに対して区画を設定する。 Specifically, the partition setting unit 1206 sets partitions based on the pixel values of the binary-converted blurred image input from the image processing unit 1204 . First, the section setting unit 1206 detects a processing object in the blurred image based on the pixel values set for each pixel of the blurred image. For example, pixels whose pixel value is set to 1 (i.e., black pixels) constitute the processing object, and pixels whose pixel value is set to 0 (i.e., white pixels) constitute non-processing objects. It is a pixel that After detection, the partition setting unit 1206 sets partitions for the detected processing object.

区画の設定時、区画設定部1206は、区画を設定した加工オブジェクトごとに、オブジェクトの情報を示すオブジェクト情報を抽出する。オブジェクト情報は、例えば、ヘッダー、フッター、タイトル、見出し、本文、表、又は図形などの加工オブジェクトの種類を示す情報である。区画設定部1206は、例えば、区画の形状、サイズ、面積、位置情報などに基づき、オブジェクトの種類を判定し、オブジェクト情報を抽出する。 When setting the partition, the partition setting unit 1206 extracts object information indicating object information for each processing object for which the partition is set. The object information is, for example, information indicating the type of processed object such as header, footer, title, headline, text, table, or graphic. The partition setting unit 1206 determines the type of object based on, for example, the shape, size, area, and position information of the partition, and extracts object information.

また、区画設定部1206は、設定した区画に対してラベリング処理を行う。ラベリング処理は、設定した区画に対してラベリング情報を付与する処理である。ラベリング情報は、例えば、区画の番号、サイズ、面積、位置情報、抽出したオブジェクト情報などである。 In addition, the section setting unit 1206 performs labeling processing on the set section. The labeling process is a process of adding labeling information to the set partitions. The labeling information includes, for example, the partition number, size, area, position information, extracted object information, and the like.

ここで、図4を参照して、区画が設定されたぼかし画像の一例について説明する。図4は、本発明の実施形態に係るぼかし画像に対する区画の設定例を示す図である。図4に示すぼかし画像では、区画が二点鎖線の矩形の枠で示されている。 Here, an example of a blurred image in which sections are set will be described with reference to FIG. 4 . FIG. 4 is a diagram showing a setting example of partitions for a blurred image according to the embodiment of the present invention. In the blurred image shown in FIG. 4, the division is indicated by a rectangular frame of two-dot chain lines.

図4に示すぼかし画像44では、図3に示したぼかし画像42にて判定された加工オブジェクトの各々に対して、区画が設定されている。具体的に、論文のタイトルと、タイトルの下の罫線とのそれぞれに対して区画が設定されている。また、本文の1段目の「1.*****」という見出しと、その本文とのそれぞれに対して区画が設定されている。また、本文の1段目の「2.*****」という見出しと、その本文とのそれぞれに対して区画が設定されている。また、本文の1段目の表1のタイトルとその表が結合した加工オブジェクトに対して区画が設定されている。また、本文の2段目の表2のタイトルとその表が結合した加工オブジェクトに対して区画が設定されている。また、本文の2段目において、1段目から続いている「2.*****」という見出しの本文に対して区画が設定されている。また、本文の2段目の「3.*****」という見出しと、その3つの本文とのそれぞれに対して区画が設定されている。 In the blurred image 44 shown in FIG. 4, a section is set for each processing object determined in the blurred image 42 shown in FIG. Specifically, divisions are set for each of the title of the paper and the ruled line under the title. In addition, a section is set for each of the headline "1.****" in the first row of the text and the text. In addition, a section is set for each of the headline "2.****" in the first row of the text and the text. In addition, a section is set for the title of Table 1 in the first row of the text and the processed object that combines the table. In addition, a section is set for the title of Table 2 in the second row of the text and the processing object that combines the table. Also, in the second row of the text, a section is set for the text of the headline "2.****" continuing from the first row. In addition, sections are set for each of the headline "3.****" in the second row of the text and the three texts.

なお、本実施形態では、ぼかし画像に対して、加工オブジェクトの形状に関わらず、単純な形状である矩形の区画が設定される。もし、ぼかし画像に加工オブジェクトの形状に応じた複雑な形状の区画が設定された場合、ぼかし画像を用いた処理を行う学習済みモデルは、複雑な形状を考慮した処理を行う必要があるため、処理が重くなってしまう。これに対し、ぼかし画像に設定された区画の形状が単純であるほど、学習済みモデルは、区画の形状に対する考慮を減らすことができる。よって、加工オブジェクトの形状に関わらず区画の形状が矩形であることにより、学習済みモデルにおける処理の負担を軽減することができる。 Note that in the present embodiment, a simple rectangular section is set for the blurred image regardless of the shape of the processing object. If a complex shaped section corresponding to the shape of the object to be processed is set in the blurred image, the trained model that performs processing using the blurred image needs to perform processing that takes into account the complex shape. Processing becomes heavy. On the other hand, the simpler the shape of the parcel set in the blurred image, the less the trained model can consider the shape of the parcel. Therefore, by making the shape of the partition rectangular regardless of the shape of the processing object, it is possible to reduce the processing load on the learned model.

(区画合成部1208)
区画合成部1208は、ぼかし画像に設定された区画を示す区画枠を文書画像に合成する機能を有する。例えば、区画合成部1208は、区画設定部1206から入力される区画が設定されたぼかし画像に基づき文書画像に区画枠を合成し、合成後の文書画像を出力部150へ出力する。これにより、ぼかし画像に設定された区画が文書画像上に可視化され、ユーザが区画を視認することができる。なお、区画合成部1208は、区画枠だけでなく、ラベリング情報やオブジェクト情報も文書画像に合成してもよい。
(Section combining unit 1208)
The section synthesizing unit 1208 has a function of synthesizing a section frame indicating a section set in the blurred image with the document image. For example, the section synthesizing unit 1208 synthesizes a section frame with the document image based on the blurred image with the section set input from the section setting unit 1206 and outputs the synthesized document image to the output unit 150 . As a result, the section set as the blurred image is visualized on the document image, and the user can visually recognize the section. Note that the section synthesizing unit 1208 may synthesize not only the section frame but also the labeling information and the object information with the document image.

ここで、図5を参照して、区画枠が合成された文書画像の一例について説明する。図5は、本発明の実施形態に係る文書画像に対する区画の合成例を示す図である。図5に示す文書画像では、区画が実線の矩形の枠で示されている。 Here, an example of a document image synthesized with partition frames will be described with reference to FIG. FIG. 5 is a diagram showing an example of synthesizing sections with respect to a document image according to an embodiment of the present invention. In the document image shown in FIG. 5, the sections are indicated by solid-line rectangular frames.

図5に示す文書画像46は、図2の文書画像40に対して、図4のぼかし画像44に二点鎖線で示した区画と同一の位置に、実線の区画枠が合成され、さらに、各区画枠の近くに区画の番号を示すラベリング情報が合成された画像である。一例として、論文のタイトルの区画枠には「No.1」、本文の1段目の「2.*****」という見出しの本文の区画枠には「No.6」、表1の区画枠には「No.7」とそれぞれ区画の番号が示されている。 A document image 46 shown in FIG. 5 is obtained by synthesizing solid-line division frames at the same positions as the divisions indicated by two-dot chain lines in the blurred image 44 in FIG. It is an image in which labeling information indicating the number of the partition is synthesized near the partition frame. As an example, “No. The partition frame shows "No. 7" and the number of each partition.

(判定部1210)
判定部1210は、文書画像の種類を判定する機能を有する。例えば、判定部1210は、区画設定部1206から入力されるぼかし画像に設定された区画に基づき、文書画像の種類を判定し、判定結果を後処理部1212へ出力する。
(Determination unit 1210)
The determination unit 1210 has a function of determining the type of document image. For example, the determination unit 1210 determines the type of the document image based on the division set in the blurred image input from the division setting unit 1206 and outputs the determination result to the post-processing unit 1212 .

例えば、まず、判定部1210は、学習済みモデルを用いて、ぼかし画像に設定された区画のレイアウトと、学習済みモデルが学習に用いた区画のレイアウトとの類似度を取得する。本実施形態では、学習済みモデルは類似度算出サーバ20に保存されている。そのため、判定部1210は、学習済みモデルを用いる際に、区画が設定されたぼかし画像を通信部130に類似度算出サーバ20へ送信させる。類似度算出サーバ20は、受信したぼかし画像を学習済みモデルへ入力することで類似度を算出し、ネットワーク30を介して、算出した類似度を画像解析装置10へ送信する。そして、類似度算出サーバ20から類似度を受信した通信部130は、受信した類似度を判定部1210へ出力する。これにより、判定部1210は、類似度を取得することができる。 For example, first, the determination unit 1210 uses the learned model to acquire the degree of similarity between the layout of the section set in the blurred image and the layout of the section used for learning by the learned model. In this embodiment, the trained model is stored in the similarity calculation server 20 . Therefore, the determination unit 1210 causes the communication unit 130 to transmit the blurred image with the partitions set to the similarity calculation server 20 when using the learned model. The similarity calculation server 20 calculates the similarity by inputting the received blurred image to the learned model, and transmits the calculated similarity to the image analysis device 10 via the network 30 . After receiving the degree of similarity from the degree of similarity calculation server 20 , the communication unit 130 outputs the received degree of similarity to the determination unit 1210 . Thereby, the determination unit 1210 can acquire the degree of similarity.

類似度の取得後、判定部1210は、取得した類似度に基づき判定対象の文書画像の種類を判定する。例えば、判定部1210は、取得した類似度に対する閾値判定を行い、文書画像の種類を判定する。 After obtaining the degree of similarity, the determination unit 1210 determines the type of the document image to be determined based on the obtained degree of similarity. For example, the determination unit 1210 determines the type of the document image by performing threshold determination on the acquired similarity.

取得した類似度のうち、所定の閾値以上の類似度が存在する場合、判定部1210は、所定の閾値以上の類似度のうち最大値の類似度と対応する文書画像の種類を、判定対象の文書画像の種類と判定する。例えば、所定の閾値が50%であり、論文との類似度が80%、雑誌との類似度が75%、新聞との類似度が8%であったとする。この場合、判定部1210は、類似度が50%以上かつ最大値である論文を、判定対象の文書画像の種類と判定する。 If there is a degree of similarity equal to or greater than a predetermined threshold among the obtained degrees of similarity, the determination unit 1210 selects the type of the document image corresponding to the maximum similarity among the degrees of similarity equal to or greater than the predetermined threshold as the type of the document image to be determined. Determined as the type of document image. For example, assume that the predetermined threshold is 50%, the degree of similarity to articles is 80%, the degree of similarity to magazines is 75%, and the degree of similarity to newspapers is 8%. In this case, the determining unit 1210 determines that the paper with the maximum similarity of 50% or more is the document image type to be determined.

取得した類似度のうち、所定の閾値以上の類似度が存在しない場合、判定部1210は、ぼかしの程度を変更して生成されたぼかし画像を用いて類似度を再取得し、再取得した類似度に基づき、判定対象の文書画像の種類を判定する。例えば、所定の閾値が50%であり、論文との類似度が40%、雑誌との類似度が25%、新聞との類似度が8%であったとする。この場合、判定部1210は、判定対象の文書画像の種類が判定できなかったものとし、ぼかし画像の生成から判定処理をやり直す。 If there is no degree of similarity equal to or greater than a predetermined threshold among the obtained degrees of similarity, the determination unit 1210 re-obtains the degree of similarity using a blurred image generated by changing the degree of blurring, and calculates the re-obtained degree of similarity. The type of the document image to be determined is determined based on the degree. For example, assume that the predetermined threshold is 50%, the degree of similarity to articles is 40%, the degree of similarity to magazines is 25%, and the degree of similarity to newspapers is 8%. In this case, the determination unit 1210 assumes that the type of the document image to be determined cannot be determined, and redoes the determination processing from the generation of the blurred image.

この時、画像加工部1204は、ぼかしの程度を変更してぼかし画像を再生成する。具体的に、画像加工部1204は、変更後のぼかしの程度を、変更前のぼかしの程度よりも強くする。次いで、区画設定部1206は、再生成されたぼかし画像に区画を設定する。そして、判定部1210は、区画が設定されたぼかし画像を用いて類似度を再取得し、再取得した類似度に基づき、判定対象の文書画像の種類を再判定する。ここで、判定対象の文書画像の種類を判定できなかった場合、ぼかし画像の生成から処理をやり直す。このように、判定対象の文書画像の種類を判定できなかった際に、ぼかしの程度を変更しながら判定処理を繰り返すことで、判定の精度を向上することができる。なお、判定処理を所定の回数だけ繰り返しても判定対象の文書画像の種類を判定できなかった場合、判定部1210は、エラーを返してもよい。 At this time, the image processing unit 1204 changes the degree of blurring and regenerates the blurred image. Specifically, the image processing unit 1204 makes the degree of blurring after the change stronger than the degree of blurring before the change. Next, the partition setting unit 1206 sets partitions in the regenerated blurred image. Then, the determination unit 1210 re-acquires the similarity using the blurred image in which the section is set, and re-determines the type of the document image to be determined based on the re-acquired similarity. Here, if the type of the document image to be determined cannot be determined, the processing is restarted from generation of the blurred image. As described above, when the type of the document image to be determined cannot be determined, the determination accuracy can be improved by repeating the determination process while changing the degree of blurring. If the type of the document image to be determined cannot be determined even after repeating the determination process a predetermined number of times, the determination unit 1210 may return an error.

ここで、図6を参照して、ぼかしの程度を強くして区画が設定されたぼかし画像の一例について説明する。図6は、本発明の実施形態に係るぼかしの程度を強くした際のぼかし画像に対する区画の設定例を示す図である。図6の左側の図は、ぼかしの程度の変更前の区画の設定例を示す図である。図6の右側の図は、ぼかしの程度の変更後の区画の設定例を示す図である。 Here, with reference to FIG. 6, an example of a blurred image in which sections are set by increasing the degree of blurring will be described. FIG. 6 is a diagram showing a setting example of partitions for a blurred image when the degree of blurring is increased according to the embodiment of the present invention. The diagram on the left side of FIG. 6 is a diagram showing a setting example of the partitions before the degree of blurring is changed. The diagram on the right side of FIG. 6 is a diagram showing a setting example of the partitions after the degree of blurring is changed.

ぼかしの程度の変更前は、図6の左側の図に示すように、見出しの区画51と、見出しの本文の2つの段落にそれぞれ区画52と区画53が設定されている。この状態で、区画52が設定された段落と、区画53が設定された段落とが結合する程度に、ぼかしの程度を強く変更する。ぼかしの程度が強くなると、オブジェクトがより大きくぼやけるようになるため、オブジェクトのぼやけ具合を示す黒丸の大きさも大きくなる。よって、ぼかしの程度を強く変更すると、図6の右側の図に示すように、見出しにはぼかしの程度の変更前よりも大きくなった区画54が設定されている。また、本文の2つの段落が結合する程度にぼかしの程度が強く変更されているため、図6の右側の図に示すように、結合した2つの段落には、2つの段落を含む大きさの1つの区画55が設定されている。 Before the degree of gradation is changed, as shown in the left diagram of FIG. 6, section 51 of the headline and section 52 and section 53 of the body of the headline are set in two paragraphs, respectively. In this state, the degree of blurring is strongly changed to the extent that the paragraph in which the section 52 is set and the paragraph in which the section 53 is set are combined. As the degree of blurring increases, the object becomes more blurred, so the size of the black circle indicating the degree of blurring of the object also increases. Therefore, when the degree of blurring is changed strongly, as shown in the right side of FIG. 6, a section 54 that is larger than before the change in the degree of blurring is set in the headline. In addition, since the degree of blurring is strongly changed to the extent that two paragraphs of the text are combined, as shown in the diagram on the right side of FIG. One partition 55 is set.

(後処理部1212)
後処理部1212は、文書画像の種類の判定結果に応じた処理を実行する機能を有する。後処理部1212は、判定部1210から入力される判定結果に基づき、多様な処理を実行し得る。
(Post-processing unit 1212)
The post-processing unit 1212 has a function of executing processing according to the determination result of the document image type. The post-processing unit 1212 can execute various processes based on the determination result input from the determination unit 1210 .

後処理部1212は、例えば、文書画像の種類に応じた処理を実行する。後処理部1212は、例えば、文書画像の種類と処理が対応付けられた処理リストを有する。判定部1210から判定結果を入力された際に、後処理部1212は、判定結果と処理リストを参照し、判定結果が示す文書画像の種類と対応する処理をリストから選択して実行する。例えば、文書画像の種類が論文である場合には論文に関する処理が実行され、文書画像の種類が雑誌である場合は雑誌に関する処理が実行される。 The post-processing unit 1212 executes processing according to the type of document image, for example. The post-processing unit 1212 has, for example, a processing list in which types of document images and processing are associated with each other. When the judgment result is input from the judgment unit 1210, the post-processing unit 1212 refers to the judgment result and the processing list, selects from the list the type of document image indicated by the judgment result, and executes the corresponding processing. For example, if the type of the document image is an article, a process related to the article is executed, and if the type of the document image is a magazine, a process related to the magazine is executed.

処理の一例として、後処理部1212は、OCR(Optical Character Recognition)処理を実行する。OCR処理は、区画枠が合成された文書画像に対して行われ、区画枠内の文字が認識される。この時、後処理部1212は、区画枠ごとにOCR処理を実行する。これにより、後処理部1212は、オブジェクトごとにOCR処理を実行する場合と比較して処理対象数を削減することができるため、OCR処理にかかるコストを削減することができる。 As an example of processing, the post-processing unit 1212 executes OCR (Optical Character Recognition) processing. OCR processing is performed on the document image synthesized with the partition frame, and characters within the partition frame are recognized. At this time, the post-processing unit 1212 executes OCR processing for each partition frame. As a result, the post-processing unit 1212 can reduce the number of objects to be processed as compared with the case where the OCR processing is executed for each object, so that the cost required for the OCR processing can be reduced.

また、後処理部1212は、区画枠ごとにOCR処理を実行することで、文書画像内の文章の構成(例えば、書字方向、段組みなど)の影響を受けずにOCR処理を実行することができる。一例として、図5に示した区画が設定された文書画像46のように、文書画像内の文章が2段組みの構成である場合、後処理部1212は、区画ごとにOCR処理を実行することで、1段目の文章と2段目の文章とを分けて認識することができる。よって、後処理部1212は、処理結果に1段目の文章と2段目の文章とが部分的に混在することを防ぐことができる。また、後処理部1212は、1段目の文章を認識してから2段目の文章を認識することもできるため、1段目の文章と2段目の文章とを正しい順序で接続して認識することもできる。 In addition, the post-processing unit 1212 executes OCR processing for each partition frame, so that the OCR processing can be executed without being affected by the structure of sentences in the document image (for example, writing direction, columns, etc.). can be done. As an example, when the text in the document image has a two-column configuration like the document image 46 in which sections are set as shown in FIG. , the sentence in the first row and the sentence in the second row can be recognized separately. Therefore, the post-processing unit 1212 can prevent the text in the first line and the text in the second line from being partially mixed in the processing result. In addition, since the post-processing unit 1212 can also recognize sentences in the second row after recognizing sentences in the first row, the sentences in the first row and sentences in the second row can be connected in the correct order. can also recognize.

また、OCR処理が区画枠ごとに実行されるため、ぼかしの程度の変更により区画枠内に含まれるオブジェクトを調整することで、OCR処理で認識させたい認識対象を変更することができる。 In addition, since the OCR process is executed for each partition frame, the object to be recognized by the OCR process can be changed by adjusting the object included in the partition frame by changing the degree of blurring.

ここで、図7を参照して、OCR処理にて表のセルごとに文字を認識させる場合の区画の設定の変更例について説明する。図7は、本発明の実施形態に係るぼかしの程度を弱くした際のぼかし画像に対する区画の設定例を示す図である。図7の左側の図は、ぼかしの程度の変更前の区画の設定例を示す図である。図7の右側の図は、ぼかしの程度の変更後の区画の設定例を示す図である。 Here, with reference to FIG. 7, an example of changing the partition setting when recognizing characters in each cell of a table by OCR processing will be described. FIG. 7 is a diagram showing a setting example of partitions for a blurred image when the degree of blurring is weakened according to the embodiment of the present invention. The diagram on the left side of FIG. 7 is a diagram showing a setting example of the partitions before the degree of blurring is changed. The diagram on the right side of FIG. 7 is a diagram showing a setting example of the partitions after the degree of blurring is changed.

ぼかしの程度の変更前は、図7の左側の図に示すように、表のタイトルと表の枠線を示す罫線と表内の文字が結合した1つの加工オブジェクトに対して、1つの区画60が設定されている。この状態で、例えば、表内のセルごとに文字を認識できるようにするには、各セルの加工オブジェクトごとに区画が設定される必要がある。そこで、表の枠線を示す罫線と表内の文字とが分離する程度に、ぼかしの程度を弱く変更する。ぼかしの程度が弱くなると、オブジェクトがより小さくぼやけるようになるため、オブジェクトのぼやけ具合を示す黒丸の大きさも小さくなる。よって、表の枠線を示す罫線と表内の文字とが分離する程度にぼかしの程度を弱くすることで、図7の右側の図に示すように、表の各セル内の各加工オブジェクトに対して、それぞれ区画61~64を設定することができる。 Before the degree of blurring is changed, as shown in the diagram on the left side of FIG. 7, one section 60 is created for one processing object in which the title of the table, the ruled line indicating the frame of the table, and the characters in the table are combined. is set. In this state, for example, in order to recognize characters in each cell in the table, it is necessary to set a partition for each processing object in each cell. Therefore, the degree of shading is changed to a weak degree so that the ruled lines indicating the frame lines of the table are separated from the characters in the table. As the degree of blurring becomes weaker, the object becomes smaller and blurry, so the size of the black circle indicating the degree of blurring of the object also becomes smaller. Therefore, by weakening the degree of blurring to such an extent that the ruled lines indicating the frame of the table and the characters in the table are separated, as shown in the right side of FIG. In contrast, partitions 61 to 64 can be set respectively.

また、処理の一例として、後処理部1212は、文書画像内の文章の読み上げ処理を実行する。読み上げ時の音声は、例えば、出力部150から出力される。読み上げ処理では、例えば、後処理部1212がOCR処理にて認識した文字が読み上げられる。そのため、後処理部1212は、文書画像内の文章が段組みの構成であっても、適切な順序で文章を読み上げることができる。例えば、文書画像内の文章が2段組みの文章である場合、後処理部1212は、1段目の文章を読み上げ終えてから、2段目の文章を読み上げる。 Also, as an example of processing, the post-processing unit 1212 executes reading processing of sentences in the document image. The voice at the time of reading is output from the output unit 150, for example. In the reading process, for example, characters recognized by the post-processing unit 1212 through OCR processing are read out. Therefore, the post-processing unit 1212 can read out the sentences in an appropriate order even if the sentences in the document image are arranged in columns. For example, when the sentences in the document image are two-column sentences, the post-processing unit 1212 reads out the sentences in the second row after reading out the sentences in the first row.

また、後処理部1212は、オブジェクト情報に基づく読み上げ処理を実行してもよい。例えば、後処理部1212は、区画に設定されたオブジェクト情報を参照し、加工オブジェクトの種類別に読み上げを行う。具体的に、後処理部1212は、先に見出しを全て読み上げてから、本文を読み上げる。また、加工オブジェクトの種類に応じて読み上げの有無が設定されてもよい。例えば、複数のページからなる文書画像のすべてのページに同一のヘッダーとフッターが設定されているとする。この場合、ヘッダーとフッターの読み上げの有無は、無しに設定されてよい。これにより、後処理部1212が同一のヘッダーとフッターの読み上げを毎ページで行うことを防ぐことができる。よって、加工オブジェクトの種類ごとに読み上げの有無が設定されることで、後処理部1212による冗長な読み上げを防ぐことができる。 Also, the post-processing unit 1212 may execute reading processing based on object information. For example, the post-processing unit 1212 refers to the object information set in the section, and reads aloud for each type of processed object. Specifically, the post-processing unit 1212 first reads out all headlines and then reads out the text. Further, whether or not to read aloud may be set according to the type of the processed object. For example, assume that all pages of a document image consisting of multiple pages have the same header and footer. In this case, whether or not to read out the header and footer may be set to none. This prevents the post-processing unit 1212 from reading out the same header and footer on every page. Therefore, by setting whether or not to read aloud for each type of processing object, redundant reading by the post-processing unit 1212 can be prevented.

(通信部130)
通信部130は、外部装置と通信を行う機能を有する。通信部130は、制御部120から入力される情報を外部装置へ送信する。一例として、通信部130は、制御部120から入力される区画が設定されたぼかし画像を、ネットワーク30を介して類似度算出サーバ20へ送信する。通信部130は、外部装置から受信する情報を制御部120へ出力する。一例として、通信部130は、ネットワーク30を介して類似度算出サーバ20から受信した類似度を、制御部120へ出力する。
(Communication unit 130)
The communication unit 130 has a function of communicating with an external device. Communication unit 130 transmits information input from control unit 120 to an external device. As an example, the communication unit 130 transmits the blurred image in which the divisions input from the control unit 120 are set to the similarity calculation server 20 via the network 30 . Communication unit 130 outputs information received from an external device to control unit 120 . As an example, the communication unit 130 outputs the similarity received from the similarity calculation server 20 via the network 30 to the control unit 120 .

(記憶部140)
記憶部140は、各種情報を記憶する機能を有する。記憶部140は、記憶媒体、例えば、HDD(Hard Disk Drive)、フラッシュメモリ、EEPROM(Electrically Erasable Programmable Read Only Memory)、RAM(Random Access read/write Memory)、ROM(Read Only Memory)、又はこれらの記憶媒体の任意の組み合わせによって構成される。記憶部140は、例えば、不揮発性メモリを用いることができる。
(storage unit 140)
The storage unit 140 has a function of storing various information. The storage unit 140 includes a storage medium such as a HDD (Hard Disk Drive), a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), a RAM (Random Access read/write memory), a ROM (Read Only Memory), or any of these Consists of any combination of storage media. A non-volatile memory, for example, can be used for the storage unit 140 .

なお、記憶部140は、各種情報の一例として、学習済みモデルを記憶してもよい。これにより、判定部1210は、記憶部140にアクセスして学習済みモデルを用いることで、類似度算出サーバ20にアクセスせずに類似度を取得することができる。 Note that the storage unit 140 may store a learned model as an example of various information. Accordingly, the determination unit 1210 can acquire the similarity without accessing the similarity calculation server 20 by accessing the storage unit 140 and using the learned model.

(出力部150)
出力部150は、制御部120からの入力に応じた出力を行う機能を有する。出力部150は、例えば、液晶パネルやタッチパネル等の表示装置や、スピーカ等の音声出力装置により実現される。
(Output unit 150)
The output section 150 has a function of outputting according to the input from the control section 120 . The output unit 150 is realized by, for example, a display device such as a liquid crystal panel or a touch panel, or an audio output device such as a speaker.

例えば、出力部150は、制御部120から入力される多様な画像を表示し得る。例えば、出力部150は、画像取得部110から入力される文書画像を表示する。また、出力部150は、画像加工部1204から入力されるぼかし画像を表示する。また、出力部150は、区画設定部1206から入力される区画が設定されたぼかし画像を表示する。また、出力部150は、区画合成部1208から入力される区画枠が合成された文書画像を表示する。これにより、ユーザは、各種処理が施された画像を視認することができる。
また、出力部150は、制御部120から入力される音声を出力してもよい。
For example, the output unit 150 can display various images input from the control unit 120 . For example, output unit 150 displays a document image input from image acquisition unit 110 . Also, the output unit 150 displays the blurred image input from the image processing unit 1204 . Also, the output unit 150 displays a blurred image in which the divisions input from the division setting unit 1206 are set. Also, the output unit 150 displays the document image in which the partition frames input from the partition synthesizing unit 1208 are synthesized. Thereby, the user can visually recognize the image on which various processes have been performed.
Also, the output unit 150 may output the voice input from the control unit 120 .

<処理の流れ>
以上、画像解析装置10の構成例について説明した。続いて、本実施形態に係る画像解析装置10における処理の流れについて説明する。図8は、本発明の実施形態に係る画像解析装置10における処理の流れを示すフローチャートである。
<Process flow>
The configuration example of the image analysis apparatus 10 has been described above. Next, the flow of processing in the image analysis apparatus 10 according to this embodiment will be described. FIG. 8 is a flow chart showing the flow of processing in the image analysis device 10 according to the embodiment of the present invention.

まず、画像解析装置10の画像読込部1202は、画像取得部110が取得した文書画像をグレースケールで読み込む(S102)。 First, the image reading unit 1202 of the image analysis apparatus 10 reads the document image acquired by the image acquiring unit 110 in gray scale (S102).

次いで、画像加工部1204は、画像読込部1202が読み込んだ文書画像にぼかし処理を施し、ぼかし画像を生成する(S104)。ぼかし処理後、画像加工部1204は、ぼかし画像に対して2値変換処理を施す(S106)。 Next, the image processing unit 1204 blurs the document image read by the image reading unit 1202 to generate a blurred image (S104). After the blurring process, the image processing unit 1204 performs binary conversion process on the blurred image (S106).

次いで、区画設定部1206は、2値変換されたぼかし画像に対して、区画を設定する(S108)。区画の設定後、区画設定部1206は、区画が設定されたぼかし画像に対してラベリング処理を施す(S110)。 Next, the partition setting unit 1206 sets partitions for the binary-converted blurred image (S108). After setting the partitions, the partition setting unit 1206 performs labeling processing on the blurred image with the partitions set (S110).

次いで、区画合成部1208は、区画が設定されたぼかし画像に基づき、文書画像に対して区画を示す区画枠を合成する(S112)。区画枠が合成された文書画像は、例えば、出力部150にてユーザが視認可能に表示される。 Next, the section synthesizing unit 1208 synthesizes a section frame indicating a section with the document image based on the blurred image in which the section is set (S112). The document image combined with the partition frame is displayed on the output unit 150 so as to be visible to the user, for example.

次いで、判定部1210は、判定処理を行う。まず、判定部1210は、区画が設定されたぼかし画像を類似度算出サーバ20へ送信し、類似度を取得する(S114)。類似度の取得後、判定部1210は、取得した類似度に対して閾値判定を行う(S116)。 Next, the determination unit 1210 performs determination processing. First, the determination unit 1210 transmits the blurred image with the division set to the similarity calculation server 20, and acquires the similarity (S114). After obtaining the degree of similarity, the determination unit 1210 performs threshold determination on the obtained degree of similarity (S116).

閾値以上の類似度が存在する場合(S116/YES)、判定部1210は、最大の類似度と対応する文書画像の種類を判定対象の文書画像の種類と判定する。そして、後処理部1212は、判定した文書画像の種類に応じた後処理を実行する(S118)。 If there is a degree of similarity equal to or greater than the threshold (S116/YES), the determination unit 1210 determines the type of document image corresponding to the maximum degree of similarity as the type of document image to be determined. Then, the post-processing unit 1212 executes post-processing according to the determined type of document image (S118).

閾値以上の類似度が存在しない場合(S116/NO)、判定部1210が判定対象の文書画像の種類を判定できないため、制御部120は、画像加工部1204にぼかしの程度を変更させ(S120)、S104から処理を繰り返す。 If the degree of similarity equal to or greater than the threshold does not exist (S116/NO), the determination unit 1210 cannot determine the type of the document image to be determined, so the control unit 120 causes the image processing unit 1204 to change the degree of blurring (S120). , the processing is repeated from S104.

以上説明したように、本実施形態に係る画像解析装置10は、まず、文書画像に対するぼかし処理により、文書画像に含まれるオブジェクトが加工された加工オブジェクトを含むぼかし画像を生成する。次いで、画像解析装置10は、生成したぼかし画像に対して加工オブジェクトが1つ含まれる矩形の領域を示す区画を設定する。これにより、画像解析装置10は、加工オブジェクトごとに区画を設定するだけで、段落単位に区画を設定でき、文書画像における段落を分けることができる。よって、画像解析装置10は、文書画像における段落の設定を容易に行うことができる。 As described above, the image analysis apparatus 10 according to the present embodiment first generates a blurred image including a processed object obtained by processing an object included in the document image by blurring the document image. Next, the image analysis device 10 sets a section indicating a rectangular area including one processing object in the generated blurred image. As a result, the image analysis apparatus 10 can set a section for each paragraph only by setting a section for each processing object, and can divide the paragraphs in the document image. Therefore, the image analysis apparatus 10 can easily set paragraphs in the document image.

さらに、画像解析装置10は、ぼかし画像に設定された区画に基づき、判定対象の文書画像の種類を判定する。具体的に、画像解析装置10は、まず、区画のレイアウトと文書画像の種類との関係を学習した学習済みモデルを用いて、ぼかし画像における区画のレイアウトと、学習済みモデルが学習に用いた区画のレイアウトとの類似度を取得する。類似度の算出時、学習済みモデルは、単純な形状である矩形の区画のレイアウトのみを比較するため、複雑な比較処理を行うことなく、容易にレイアウトの類似度を算出することができる。また、画像解析装置10は、学習済みモデルに文書画像を入力するだけで容易に類似度を取得することができる。 Furthermore, the image analysis device 10 determines the type of the document image to be determined based on the section set as the blurred image. Specifically, the image analysis apparatus 10 first uses a learned model that has learned the relationship between the layout of sections and the type of document image to determine the layout of sections in the blurred image and the section used for learning by the learned model. Get the similarity with the layout of . When calculating the degree of similarity, the trained model compares only the layouts of simple rectangular partitions, so the degree of layout similarity can be easily calculated without performing complicated comparison processing. Further, the image analysis apparatus 10 can easily obtain the degree of similarity simply by inputting the document image into the trained model.

次いで、画像解析装置10は、取得した類似度のうち、所定の閾値以上の類似度が存在する場合、所定の閾値以上の類似度のうち最大値の類似度と対応する文書画像の種類を、判定対象の文書画像の種類と判定する。このように、画像解析装置10は、容易に取得した類似度に対して閾値判定を行うことで、容易に文書画像の種類を判定することができる。また、画像解析装置10は、ぼかし画像に設定された区画のレイアウトから、文書画像のレイアウトを容易に判定することもできる。 Next, if there is a degree of similarity equal to or greater than a predetermined threshold among the obtained degrees of similarity, the image analysis apparatus 10 determines the type of the document image corresponding to the maximum similarity degree among the degrees of similarity equal to or greater than the predetermined threshold, Determined as the type of document image to be determined. In this manner, the image analysis apparatus 10 can easily determine the type of the document image by performing the threshold value determination on the easily acquired similarity. Further, the image analysis apparatus 10 can easily determine the layout of the document image from the layout of the section set as the blurred image.

一方、取得した類似度のうち、所定の閾値以上の類似度が存在しない場合、画像解析装置10は、ぼかしの程度を変更して生成されたぼかし画像を用いて類似度を再取得する。次いで、画像解析装置10は、再取得した類似度に基づき、判定対象の文書画像の種類を判定する。このように、画像解析装置10は、取得した類似度による判定が困難な場合、ぼかしの程度を変更したぼかし画像を用いて類似度を再度取得し、判定処理を繰り返す。これにより、画像解析装置10は、文書画像の種類を判定できる確率を向上させるとともに、判定の精度も向上させることができる。 On the other hand, if none of the obtained similarities exceeds the predetermined threshold, the image analysis apparatus 10 reacquires the similarities using a blurred image generated by changing the degree of blurring. Next, the image analysis apparatus 10 determines the type of document image to be determined based on the reacquired similarity. As described above, when it is difficult to make a determination based on the acquired similarity, the image analysis apparatus 10 acquires the similarity again using a blurred image with a different degree of blurring, and repeats the determination process. As a result, the image analysis apparatus 10 can improve the probability of being able to determine the type of the document image, and also improve the accuracy of determination.

また、画像解析装置10は、後処理にて、区画が設定されたぼかし画像又は区画枠が合成された文書画像を用いた処理を実行する。これにより、画像解析装置10は、後処理にて処理対象の検索等を行う際に、区画を検索対象とすることで各オブジェクトを検索対象とする時と比べて検索対象の数を削減することができる。よって、画像解析装置10は、区画が設定されたぼかし画像又は区画枠が合成された文書画像を用いた処理を実行することで、後処理における負担を軽減することができる。 In addition, the image analysis apparatus 10 executes processing using a blurred image in which divisions are set or a document image in which division frames are combined in the post-processing. As a result, the image analysis apparatus 10 can reduce the number of search targets by setting the block as a search target when searching for processing targets in post-processing, compared to when each object is set as a search target. can be done. Therefore, the image analysis apparatus 10 can reduce the load in the post-processing by executing the process using the blurred image in which the division is set or the document image in which the division frame is synthesized.

以上、本発明の実施形態について説明した。なお、上述した実施形態における画像解析装置10をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、FPGA(Field Programmable Gate Array)等のプログラマブルロジックデバイスを用いて実現されるものであってもよい。 The embodiments of the present invention have been described above. Note that the image analysis apparatus 10 in the above-described embodiment may be realized by a computer. In that case, a program for realizing this function may be recorded in a computer-readable recording medium, and the program recorded in this recording medium may be read into a computer system and executed. It should be noted that the "computer system" referred to here includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible discs, magneto-optical discs, ROMs and CD-ROMs, and storage devices such as hard discs incorporated in computer systems. Furthermore, "computer-readable recording medium" refers to a program that dynamically retains programs for a short period of time, like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. It may also include something that holds the program for a certain period of time, such as a volatile memory inside a computer system that serves as a server or client in that case. Further, the program may be for realizing a part of the functions described above, or may be capable of realizing the functions described above in combination with a program already recorded in the computer system. It may be implemented using a programmable logic device such as an FPGA (Field Programmable Gate Array).

以上、図面を参照してこの発明の実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。 Although the embodiments of the present invention have been described in detail with reference to the drawings, the specific configurations are not limited to those described above, and various design changes can be made without departing from the gist of the present invention. It is possible to

1 画像解析システム
10 画像解析装置
20 類似度算出サーバ
30 ネットワーク
110 画像取得部
120 制御部
130 通信部
140 記憶部
150 出力部
1202 画像読込部
1204 画像加工部
1206 区画設定部
1208 区画合成部
1210 判定部
1212 後処理部
1 image analysis system 10 image analysis device 20 similarity calculation server 30 network 110 image acquisition unit 120 control unit 130 communication unit 140 storage unit 150 output unit 1202 image reading unit 1204 image processing unit 1206 section setting unit 1208 section synthesis unit 1210 determination unit 1212 post-processing unit

Claims (7)

文書画像に対するぼかし処理により、前記文書画像に含まれる第1のオブジェクトが加工された第2のオブジェクトを含むぼかし画像を生成する画像加工部と、
前記ぼかし画像に対して、前記第2のオブジェクトが1つ含まれる矩形の領域を示す区画を設定する区画設定部と、
前記ぼかし画像に設定された前記区画に基づき、判定対象の前記文書画像の種類を判定する判定部と、
を備える、画像解析装置。
an image processing unit that generates a blurred image including a second object obtained by processing a first object included in the document image by blurring the document image;
a partition setting unit that sets a partition indicating a rectangular area including one of the second objects in the blurred image;
a determination unit that determines the type of the document image to be determined based on the section set in the blurred image;
An image analysis device comprising:
前記判定部は、前記区画のレイアウトと前記文書画像の種類との関係を学習した学習済みモデルを用いて、前記ぼかし画像における前記区画のレイアウトと、前記学習済みモデルが学習に用いた前記区画のレイアウトとの類似度を取得し、前記類似度に基づき判定対象の前記文書画像の種類を判定する、請求項に記載の画像解析装置。 The determination unit uses a learned model that has learned the relationship between the layout of the section and the type of the document image to determine the layout of the section in the blurred image and the layout of the section used for learning by the learned model. 2. The image analysis apparatus according to claim 1 , wherein a degree of similarity with a layout is obtained, and the type of the document image to be determined is determined based on the degree of similarity. 取得した前記類似度のうち、所定の閾値以上の前記類似度が存在する場合、
前記判定部は、所定の閾値以上の前記類似度のうち最大値の前記類似度と対応する前記文書画像の種類を、判定対象の前記文書画像の種類と判定する、請求項に記載の画像解析装置。
If there is a degree of similarity equal to or greater than a predetermined threshold among the obtained degrees of similarity,
3. The image according to claim 2, wherein said determination unit determines, as the type of said document image to be determined, the type of said document image corresponding to said degree of similarity having a maximum value among said degrees of similarity equal to or greater than a predetermined threshold. analysis equipment.
取得した前記類似度のうち、所定の閾値以上の前記類似度が存在しない場合、
前記判定部は、ぼかしの程度を変更して生成された前記ぼかし画像を用いて前記類似度を再取得し、再取得した前記類似度に基づき、判定対象の前記文書画像の種類を判定する、請求項又は請求項に記載の画像解析装置。
If there is no similarity above a predetermined threshold among the obtained similarities,
The determination unit re-acquires the similarity using the blurred image generated by changing the degree of blurring, and determines the type of the document image to be determined based on the re-acquired similarity. The image analysis apparatus according to claim 2 or 3 .
前記画像加工部は、変更後の前記ぼかしの程度を、変更前の前記ぼかしの程度よりも強くする、請求項に記載の画像解析装置。 5. The image analysis device according to claim 4 , wherein the image processing unit makes the degree of blurring after the change stronger than the degree of blurring before the change. 文書画像に対するぼかし処理により、前記文書画像に含まれる第1のオブジェクトが加工された第2のオブジェクトを含むぼかし画像を生成することと、
前記ぼかし画像に対して、前記第2のオブジェクトが1つ含まれる矩形の領域を示す区画を設定することと、
前記ぼかし画像に設定された前記区画に基づき、判定対象の前記文書画像の種類を判定することと、
を含む、プロセッサにより実行される画像解析方法。
generating a blurred image including a second object obtained by processing a first object included in the document image by blurring the document image;
setting a section indicating a rectangular area including one of the second objects in the blurred image;
Determining the type of the document image to be determined based on the section set in the blurred image;
A processor-implemented image analysis method comprising:
コンピュータを、
文書画像に対するぼかし処理により、前記文書画像に含まれる第1のオブジェクトが加工された第2のオブジェクトを含むぼかし画像を生成する画像加工部と、
前記ぼかし画像に対して、前記第2のオブジェクトが1つ含まれる矩形の領域を示す区画を設定する区画設定部と、
前記ぼかし画像に設定された前記区画に基づき、判定対象の前記文書画像の種類を判定する判定部と、
として機能させるプログラム。
the computer,
an image processing unit that generates a blurred image including a second object obtained by processing a first object included in the document image by blurring the document image;
a partition setting unit that sets a partition indicating a rectangular area including one of the second objects in the blurred image;
a determination unit that determines the type of the document image to be determined based on the section set in the blurred image;
A program that acts as a
JP2019154569A 2019-08-27 2019-08-27 Image analysis device, image analysis method, and program Active JP7304772B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019154569A JP7304772B2 (en) 2019-08-27 2019-08-27 Image analysis device, image analysis method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019154569A JP7304772B2 (en) 2019-08-27 2019-08-27 Image analysis device, image analysis method, and program

Publications (2)

Publication Number Publication Date
JP2021033756A JP2021033756A (en) 2021-03-01
JP7304772B2 true JP7304772B2 (en) 2023-07-07

Family

ID=74678287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019154569A Active JP7304772B2 (en) 2019-08-27 2019-08-27 Image analysis device, image analysis method, and program

Country Status (1)

Country Link
JP (1) JP7304772B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003271955A (en) 2002-03-13 2003-09-26 Toshiba Corp Certificate identification device and identification method
JP2018005548A (en) 2016-07-01 2018-01-11 大日本印刷株式会社 Image processing device, image processing program, data server and image processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07168910A (en) * 1993-10-19 1995-07-04 N T T Data Tsushin Kk Document layout analysis device and document format identification device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003271955A (en) 2002-03-13 2003-09-26 Toshiba Corp Certificate identification device and identification method
JP2018005548A (en) 2016-07-01 2018-01-11 大日本印刷株式会社 Image processing device, image processing program, data server and image processing system

Also Published As

Publication number Publication date
JP2021033756A (en) 2021-03-01

Similar Documents

Publication Publication Date Title
US12229399B2 (en) Simulated handwriting image generator
US11869129B2 (en) Learning apparatus and method for creating image and apparatus and method for image creation
US11989956B2 (en) Dynamic head for object detection
US9536293B2 (en) Image assessment using deep convolutional neural networks
US9953425B2 (en) Learning image categorization using related attributes
US10445910B2 (en) Generating apparatus, generating method, and non-transitory computer readable storage medium
US20220392243A1 (en) Method for training text classification model, electronic device and storage medium
CN111709406A (en) Text line identification method and device, readable storage medium and electronic equipment
CN111274981A (en) Target detection network construction method and device, target detection method
WO2024103997A1 (en) Handwriting recognition method and handwriting recognition model training method and apparatus
KR102864472B1 (en) Apparatus and method for image processing for machine learning
JP7238510B2 (en) Information processing device, information processing method and program
CN114078250A (en) Text recognition method and device, computer equipment and storage medium
US12165355B2 (en) Pose estimation apparatus, learning apparatus, pose estimation method, and non-transitory computer-readable recording medium
US12597176B2 (en) Image generator and method of image generation
JP7304772B2 (en) Image analysis device, image analysis method, and program
US11288534B2 (en) Apparatus and method for image processing for machine learning
US20210158153A1 (en) Method and system for processing fmcw radar signal using lightweight deep learning network
JP7676895B2 (en) IMAGE ANALYSIS DEVICE, IMAGE ANALYSIS METHOD, AND PROGRAM
CN117711002A (en) Text recognition method and device based on image
CN111383165B (en) Image processing method, system and storage medium
CN113807407A (en) Target detection model training method, model performance detection method and device
JP2010092159A (en) Image data decision device, image data decision system and program
US20260105716A1 (en) Systems and methods of enabling region of interest processing by a trained model at inference-time
Del Gobbo et al. Unconstrained text detection in manga

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220523

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230414

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230509

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230605

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230627

R150 Certificate of patent or registration of utility model

Ref document number: 7304772

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350