JP7132459B1 - Information processing device, information processing method and program - Google Patents

Information processing device, information processing method and program Download PDF

Info

Publication number
JP7132459B1
JP7132459B1 JP2022515127A JP2022515127A JP7132459B1 JP 7132459 B1 JP7132459 B1 JP 7132459B1 JP 2022515127 A JP2022515127 A JP 2022515127A JP 2022515127 A JP2022515127 A JP 2022515127A JP 7132459 B1 JP7132459 B1 JP 7132459B1
Authority
JP
Japan
Prior art keywords
graph
line
probability map
graph image
extraction unit
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
JP2022515127A
Other languages
Japanese (ja)
Other versions
JPWO2022254584A5 (en
JPWO2022254584A1 (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.)
Rakuten Group Inc
Original Assignee
Rakuten Group 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 Rakuten Group Inc filed Critical Rakuten Group Inc
Application granted granted Critical
Publication of JP7132459B1 publication Critical patent/JP7132459B1/en
Publication of JPWO2022254584A1 publication Critical patent/JPWO2022254584A1/ja
Publication of JPWO2022254584A5 publication Critical patent/JPWO2022254584A5/ja
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/414Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/84Arrangements for image or video recognition or understanding using pattern recognition or machine learning using probabilistic graphical models from image or video features, e.g. Markov models or Bayesian networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document

Abstract

【課題】より多様なグラフの画像をより高精度かつ汎用的に解析する。【解決手段】情報処理装置は、グラフ画像を取得するグラフ画像取得部と、グラフ画像取得部により取得されたグラフ画像をグラフ種別ごとに分類するグラフ分類部と、グラフ画像から、単一のニューラルネットワークを用いて、グラフ種別ごとに異なる種類の確率マップを生成する確率マップ生成部と、確率マップ生成部により生成された確率マップに基づいて、グラフ画像中のコンポーネントを抽出するコンポーネント抽出部と、コンポーネント抽出部により抽出されたグラフ画像のコンポーネントの値を抽出する値抽出部と、値抽出部により抽出されたコンポーネントの値を出力する出力部と、を備える。An object of the present invention is to analyze images of more diverse graphs with higher accuracy and more general purpose. Kind Code: A1 An information processing apparatus includes a graph image acquisition unit that acquires a graph image, a graph classification unit that classifies the graph image acquired by the graph image acquisition unit for each graph type, and a single neural network from the graph image. A probability map generation unit that generates different types of probability maps for each graph type using a network, a component extraction unit that extracts components in the graph image based on the probability maps generated by the probability map generation unit, A value extraction unit for extracting values of the components of the graph image extracted by the component extraction unit, and an output unit for outputting the values of the components extracted by the value extraction unit.

Description

本発明は、情報処理装置、情報処理方法およびプログラムに関し、特に、グラフの画像を解析するための技術に関する。 The present invention relates to an information processing device, an information processing method and a program, and more particularly to a technique for analyzing graph images.

線グラフを含む画像をデジタルデータへ変換する技術が知られている。
例えば、特許文献1は、収集した患者データの線グラフ表示を分析して、個々のピクセルを同定し、基準点に関する個々のピクセルの相対的位置を特定する複数のピクセル表示データ要素を所望のデータフォーマットで発生させてファイルに蓄積する画像表示データの処理システムを開示する。
Techniques for converting an image containing a line graph into digital data are known.
For example, U.S. Pat. No. 6,200,303 analyzes a line graph representation of collected patient data to identify individual pixels and to generate a plurality of pixel representation data elements that identify the relative position of each pixel with respect to a reference point of the desired data. A system for processing image display data generated in a format and stored in a file is disclosed.

特許文献2は、紙等に記録された非デジタルの振動波形をスキャナにより読み込み、読み込まれたグラフ画像について、設定ピッチ毎の振幅データを読み取って、振動台により利用可能なデジタルデータに変換する振動データデジタル化装置を開示する。 Patent document 2 reads a non-digital vibration waveform recorded on paper or the like with a scanner, reads the amplitude data for each set pitch for the graph image that is read, and converts it to digital data that can be used by a shaking table. A data digitizing device is disclosed.

非特許文献1は、研究論文のPDFファイルから図表を抽出し、抽出された図表から線グラフを分離し、線グラフの軸および凡例を検出することにより、線グラフを解析する技術を開示する。 Non-Patent Document 1 discloses a technique for analyzing line graphs by extracting figures from PDF files of research papers, separating the line graphs from the extracted figures, and detecting the axes and legends of the line graphs.

特表2005-503851号公報Japanese translation of PCT publication No. 2005-503851 特開2002-328068号公報Japanese Patent Application Laid-Open No. 2002-328068 Siegel,N., Horvitz,Z., Levin,R., Divvala,S., Farhadi,A.“FigureSeer:Parsing Result-Figures in Research Papers” ECCV (2016) pp.664-680Siegel, N.; , Horvitz, Z.; , Levin, R.; , Divvala, S.; , Farhadi, A.; "Figure Seer: Parsing Results—Figures in Research Papers," ECCV (2016) pp. 664-680

しかしながら、グラフには、線グラフ、棒グラフ、円グラフ(パイチャート)等多様な種類があるところ、上記の先行技術文献の技術は、解析対象を専ら線グラフのみに限定するものであり、他の種別のグラフを解析することができないため、汎用性に乏しい。 However, while there are various types of graphs such as line graphs, bar graphs, pie charts, etc., the technique of the above-mentioned prior art document limits the analysis target exclusively to line graphs. It lacks versatility because it cannot analyze graphs of types.

また、特許文献1ないし特許文献2の技術では、線グラフをトレースする際に、ユーザが、グラフの色や輝度振幅を特定したり、あるいは、X軸、Y軸、およびスケールを設定しなければならず、多数のグラフ画像を解析しようとする場合、ユーザに過度な負荷を強いるものであった。
一方、非特許文献1の技術では、線グラフの欄外に位置する凡例を検出し、検出された凡例に記載されたシンボルの線種を検出することにより、線グラフをトレースするものであるため、凡例を含まない線グラフ画像を解析することは想定していない。
Further, in the techniques disclosed in Patent Documents 1 and 2, when tracing a line graph, the user must specify the color and brightness amplitude of the graph, or set the X-axis, Y-axis, and scale. Moreover, when trying to analyze a large number of graph images, the user is forced to perform an excessive load.
On the other hand, in the technique of Non-Patent Document 1, the line graph is traced by detecting the legend located outside the margin of the line graph and detecting the line type of the symbol described in the detected legend. We do not anticipate parsing line graph images that do not include legends.

本発明は上記課題を解決するためになされたものであり、その目的は、より多様なグラフの画像をより高精度かつ汎用的に解析することが可能な情報処理装置、情報処理方法およびプログラムを提供することにある。 The present invention has been made to solve the above problems, and an object of the present invention is to provide an information processing apparatus, an information processing method, and a program capable of analyzing images of a wider variety of graphs with higher accuracy and versatility. to provide.

上記課題を解決するために、本発明に係る情報処理装置の一態様は、グラフ画像を取得するグラフ画像取得部と、前記グラフ画像取得部により取得された前記グラフ画像をグラフ種別ごとに分類するグラフ分類部と、前記グラフ画像から、単一のニューラルネットワークを用いて、前記グラフ種別ごとに異なる種類の確率マップを生成する確率マップ生成部と、前記確率マップ生成部により生成された前記確率マップに基づいて、前記グラフ画像中のコンポーネントを抽出するコンポーネント抽出部と、前記コンポーネント抽出部により抽出された前記グラフ画像の前記コンポーネントの値を抽出する値抽出部と、前記値抽出部により抽出された前記コンポーネントの前記値を出力する出力部と、を備える。 In order to solve the above problems, one aspect of an information processing apparatus according to the present invention includes a graph image acquisition unit that acquires a graph image, and classifies the graph image acquired by the graph image acquisition unit for each graph type. a graph classification unit; a probability map generation unit that generates different types of probability maps for each graph type from the graph image using a single neural network; and the probability map generated by the probability map generation unit. a component extracting unit for extracting a component in the graph image, a value extracting unit for extracting the value of the component of the graph image extracted by the component extracting unit, and a value extracted by the value extracting unit based on an output for outputting the value of the component.

前記確率マップ生成部により用いられる前記単一のニューラルネットワークは、前記グラフ種別ごとに異なる出力チャネルを備えてよい。 The single neural network used by the probability map generator may have different output channels for each of the graph types.

前記確率マップ生成部により用いられる前記単一のニューラルネットワークは、前記グラフ種別ごとに、異なるコンポーネントを分離するための異なる複数種類の出力チャネルを備えてよい。 The single neural network used by the probability map generator may comprise different types of output channels for separating different components for each graph type.

前記コンポーネント抽出部は、前記グラフ画像中の前記コンポーネントを抽出して、グラフをトレースしてよい。
前記出力部は、前記コンポーネント抽出部によりトレースされた前記グラフに、前記値抽出部により抽出された前記コンポーネントの前記値を付加して出力してよい。
The component extraction unit may extract the components in the graph image and trace the graph.
The output unit may add the value of the component extracted by the value extraction unit to the graph traced by the component extraction unit and output the graph.

前記コンポーネント抽出部は、前記グラフ画像中の前記複数のコンポーネントを同時にトレースしてよい。
前記コンポーネント抽出部は、線グラフのための第1の確率マップを用いて、前記線グラフのグラフ画像の隣接するX座標位置の間の第1のコストを算出し、複数の線グラフについての前記第1のコストの合計が最小となるよう前記線グラフをトレースしてよい。
The component extractor may simultaneously trace the plurality of components in the graph image.
The component extraction unit calculates a first cost between adjacent X-coordinate positions of graph images of the line graphs using a first probability map for the line graphs, and calculates the The line graph may be traced to minimize the sum of the first costs.

前記コンポーネント抽出部は、線形計画法(Linear Programming)を用いて、トレースすべき前記線グラフの前記第1のコストを算出してよい。 The component extraction unit may use linear programming to calculate the first cost of the line graph to be traced.

前記コンポーネント抽出部は、各X座標位置においてトレースすべき前記線グラフが他の線グラフに遮蔽されるか否かを示す遮蔽フラグを保持し、前記遮蔽フラグを用いて、トレースすべき前記線グラフの前記第1のコストを算出してよい。
前記遮蔽フラグは、複数の線グラフのそれぞれについて設けられ、各X座標位置における前記複数の線グラフのそれぞれの状態を保持してよい。
The component extraction unit holds a shielding flag indicating whether or not the line graph to be traced at each X coordinate position is shielded by another line graph, and uses the shielding flag to extract the line graph to be traced. may calculate the first cost of .
The shielding flag may be provided for each of the plurality of line graphs, and hold the state of each of the plurality of line graphs at each X-coordinate position.

前記コンポーネント抽出部は、前記第1の種類の確率マップを用いて、各X座標位置におけるY座標軸方向の前記線グラフの存在確率を足し合わせることにより、前記線グラフの始点および終点を検出し、検出された前記始点から前記終点まで前記線グラフをトレースしてよい。 The component extraction unit detects the start point and the end point of the line graph by adding the existence probabilities of the line graph in the Y coordinate axis direction at each X coordinate position using the first type of probability map, The line graph may be traced from the detected start point to the end point.

前記コンポーネント抽出部は、線グラフ以外のグラフのための第2の種類の確率マップを用いて、隣接する画素を連結することにより、前記グラフをトレースしてよい。 The component extractor may trace the graph by connecting adjacent pixels using a second type of probability map for graphs other than line graphs.

前記コンポーネント抽出部は、CCA(Connected Component Analysis)を用いて、前記グラフのグラフ画像の前記隣接する画素を連結してよい。
前記コンポーネント抽出部は、前記第2の種類の確率マップを参照して、抽出された前記コンポーネントを補正してよい。
The component extraction unit may connect the adjacent pixels of the graph image of the graph using CCA (Connected Component Analysis).
The component extractor may correct the extracted component by referring to the second type probability map.

前記コンポーネント抽出部は、線グラフのための第1の確率マップを用いて、前記線グラフのグラフ画像の各画素の第2のコストを算出し、前記第2のコストが最小となる画素上に前記線グラフをトレースしてよい。
前記コンポーネント抽出部は、動的計画法(Dynamic Programming)を用いて、前記線グラフの前記グラフ画像の前記画素の前記第2のコストを算出してよい。
The component extraction unit calculates a second cost of each pixel of a graph image of the line graph using a first probability map for the line graph, and calculates a second cost on the pixel with the minimum second cost. The line graph may be traced.
The component extraction unit may calculate the second cost of the pixel of the graph image of the line graph using dynamic programming.

前記コンポーネント抽出部は、前記線グラフの線の平滑性、および前記線グラフの線の色または線種の一貫性の少なくとも1つを評価する関数に基づいて、前記第2のコストを算出してよい。
前記確率マップ生成部は、グラフ軸の目盛を抽出するための確率マップを生成し、前記値抽出部は、前記グラフ軸の目盛を抽出するための前記確率マップに基づいて、前記グラフ画像の前記コンポーネントの値を抽出してよい。
The component extraction unit calculates the second cost based on a function that evaluates at least one of line smoothness of the line graph and consistency of line color or line type of the line graph. good.
The probability map generation unit generates a probability map for extracting scales of graph axes, and the value extraction unit extracts the scales of the graph image based on the probability map for extracting scales of graph axes. Component values may be extracted.

本発明に係る情報処理方法の一態様は、情報処理装置が実行する情報処理方法であって、グラフ画像を取得するステップと、取得された前記グラフ画像をグラフ種別ごとに分類するステップと、前記グラフ画像から、単一のニューラルネットワークを用いて、前記グラフ種別ごとに異なる種類の確率マップを生成するステップと、生成された前記確率マップに基づいて、前記グラフ画像中のコンポーネントを抽出するステップと、抽出された前記グラフ画像の前記コンポーネントの値を抽出するステップと、抽出された前記コンポーネントの前記値を出力するステップと、を含む。 One aspect of an information processing method according to the present invention is an information processing method executed by an information processing apparatus, comprising: acquiring a graph image; classifying the acquired graph image by graph type; generating different types of probability maps for each graph type from a graph image using a single neural network; and extracting components in the graph image based on the generated probability maps. , extracting values of the components of the extracted graph image; and outputting the values of the extracted components.

本発明に係る情報処理プログラムの一態様は、情報処理をコンピュータに実行させるための情報処理プログラムであって、該プログラムは、前記コンピュータに、グラフ画像を取得するグラフ画像取得処理と、前記グラフ画像取得処理により取得された前記グラフ画像をグラフ種別ごとに分類するグラフ分類処理と、前記グラフ画像から、単一のニューラルネットワークを用いて、前記グラフ種別ごとに異なる種類の確率マップを生成する確率マップ生成処理と、前記確率マップ生成処理により生成された前記確率マップに基づいて、前記グラフ画像中のコンポーネントを抽出するコンポーネント抽出処理と、前記コンポーネント抽出処理により抽出された前記グラフ画像の前記コンポーネントの値を抽出する値抽出処理と、前記値抽出処理により抽出された前記コンポーネントの前記値を出力する出力処理と、を含む処理を実行させるためのものである。 One aspect of an information processing program according to the present invention is an information processing program for causing a computer to execute information processing, wherein the program causes the computer to acquire a graph image; A graph classification process for classifying the graph image acquired by the acquisition process by graph type, and a probability map for generating a different type of probability map for each graph type from the graph image using a single neural network. a generation process; a component extraction process for extracting a component in the graph image based on the probability map generated by the probability map generation process; and a value of the component of the graph image extracted by the component extraction process. and an output process for outputting the value of the component extracted by the value extraction process.

本発明によれば、より多様なグラフの画像をより高精度かつ汎用的に解析することができる。
上記した本発明の目的、態様及び効果並びに上記されなかった本発明の目的、態様及び効果は、当業者であれば添付図面及び請求の範囲の記載を参照することにより下記の発明を実施するための形態から理解できるであろう。
According to the present invention, images of more various graphs can be analyzed more accurately and versatile.
The objects, aspects and effects of the present invention described above and the objects, aspects and effects of the present invention not described above can be understood by a person skilled in the art to carry out the following invention by referring to the accompanying drawings and the description of the claims. can be understood from the form of

図1は、本発明の各実施形態に係るグラフ画像解析装置の機能構成の一例を示すブロック図である。FIG. 1 is a block diagram showing an example of the functional configuration of a graph image analysis device according to each embodiment of the present invention. 図2は、各実施形態に係るグラフ画像解析装置が実行するグラフ画像解析処理の概要を説明する概念図である。FIG. 2 is a conceptual diagram explaining an overview of graph image analysis processing executed by the graph image analysis apparatus according to each embodiment. 図3は、各実施形態に係るグラフ画像解析装置が実行するグラフ画像解析処理の処理手順の一例を示すフローチャートである。FIG. 3 is a flowchart showing an example of the procedure of graph image analysis processing executed by the graph image analysis device according to each embodiment. 図4は、グラフ画像解析装置の確率マップ生成部が棒グラフについて出力するニューラルネットワークの出力チャネルの一例を示す図である。FIG. 4 is a diagram showing an example of an output channel of a neural network output for a bar graph by the probability map generator of the graph image analysis device. 図5は、グラフ画像解析装置の確率マップ生成部が円グラフについて出力するニューラルネットワークの出力チャネルの一例を示す図である。FIG. 5 is a diagram showing an example of output channels of a neural network that the probability map generation unit of the graph image analysis device outputs for a pie chart. 図6は、グラフ画像解析装置の確率マップ生成部が線グラフについて出力するニューラルネットワークの出力チャネルの一例を示す図である。FIG. 6 is a diagram showing an example of an output channel of a neural network that is output for a line graph by the probability map generation unit of the graph image analysis device. 図7は、各実施形態に係るグラフ画像解析装置が実行するグラフ画像解析処理の処理手順の変形例を示すフローチャートである。FIG. 7 is a flowchart showing a modification of the procedure of graph image analysis processing executed by the graph image analysis apparatus according to each embodiment. 図8は、グラフ画像解析装置のコンポーネント抽出部が棒グラフおよび円グラフについて実行する図3のS4のコンポーネント抽出処理の詳細処理手順の一例を示すフローチャートである。FIG. 8 is a flowchart showing an example of the detailed processing procedure of the component extraction process of S4 in FIG. 3 executed by the component extraction unit of the graph image analysis device for the bar graph and the pie chart. 図9は、グラフ画像解析装置のコンポーネント抽出部が棒グラフの確率マップを使用して棒グラフ画像から棒グラフのコンポーネントを抽出する一例を説明する図である。FIG. 9 is a diagram illustrating an example in which the component extraction unit of the graph image analysis device extracts the bar graph component from the bar graph image using the bar graph probability map. 図10は、実施形態1に係るグラフ画像解析装置のコンポーネント抽出部が線グラフについて実行する図3のS4のコンポーネント抽出処理の詳細処理手順の一例を示すフローチャートである。FIG. 10 is a flowchart showing an example of a detailed processing procedure of component extraction processing in S4 of FIG. 図11は、グラフ画像解析装置のコンポーネント抽出部が線グラフについて実行する線トレースアルゴリズムを単一の線を例として説明する図である。FIG. 11 is a diagram for explaining the line tracing algorithm executed by the component extraction unit of the graph image analysis device for the line graph, taking a single line as an example. 図12は、グラフ画像解析装置のコンポーネント抽出部が線グラフについて実行する線トレースアルゴリズムを複数の線を例として説明する図である。FIG. 12 is a diagram for explaining the line tracing algorithm executed by the component extraction unit of the graph image analysis device for a line graph, taking a plurality of lines as an example. 図13は、グラフ画像解析装置のコンポーネント抽出部が線グラフの確率マップを使用して線グラフ画像からトレースした線グラフの一例を説明する図である。FIG. 13 is a diagram illustrating an example of a line graph traced from a line graph image by the component extraction unit of the graph image analysis device using the probability map of the line graph. 図14は、グラフ画像解析装置の値抽出部が線グラフ画像からグラフの値を抽出する一例を説明する図である。FIG. 14 is a diagram illustrating an example of extracting graph values from a line graph image by the value extraction unit of the graph image analysis device. 図15は、実施形態2に係るグラフ画像解析装置のコンポーネント抽出部が線グラフについて実行する図3のS4のコンポーネント抽出処理の詳細処理手順の一例を示すフローチャートである。FIG. 15 is a flowchart showing an example of a detailed processing procedure of component extraction processing in S4 of FIG. 図16は、本発明の各実施形態に係るグラフ画像解析装置のハードウエア構成の一例を示すブロック図である。FIG. 16 is a block diagram showing an example of the hardware configuration of the graph image analysis device according to each embodiment of the present invention.

以下、添付図面を参照して、本発明を実施するための実施形態について詳細に説明する。以下に開示される構成要素のうち、同一機能を有するものには同一の符号を付し、その説明を省略する。なお、以下に開示される実施形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正または変更されるべきものであり、本発明は以下の実施形態に限定されるものではない。また、本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。 Embodiments for carrying out the present invention will be described in detail below with reference to the accompanying drawings. Among the constituent elements disclosed below, those having the same functions are denoted by the same reference numerals, and descriptions thereof are omitted. The embodiments disclosed below are examples of means for realizing the present invention, and should be appropriately modified or changed according to the configuration of the device to which the present invention is applied and various conditions. is not limited to the embodiment of Also, not all combinations of features described in the present embodiment are essential for the solution means of the present invention.

(実施形態1)
本実施形態に係るグラフ画像解析装置は、入力されるグラフ画像をグラフ種別ごとに分類し、グラフ種別ごとに異なる確率マップを生成し、生成された確率マップを用いてグラフ画像を自動的に解析する。
以下では、グラフ画像解析装置が、入力されるグラフ画像を、棒グラフ、円グラフ、および線グラフのグラフ種別に分類し、これらグラフ種別ごとに確率マップを生成し、生成された確率マップを用いて、それぞれの種別のグラフ画像を解析する例を説明する。
(Embodiment 1)
The graph image analysis apparatus according to the present embodiment classifies an input graph image by graph type, generates a different probability map for each graph type, and automatically analyzes the graph image using the generated probability map. do.
Below, the graph image analysis device classifies the input graph image into graph types of bar graph, pie chart, and line graph, generates a probability map for each graph type, and uses the generated probability map , an example of analyzing each type of graph image will be described.

しかしながら、本実施形態はこれに限定されない。グラフ画像解析装置は、例えば、フローチャート、レイダーチャート、散布図(Scatter Plots)、ベン図(Venn Diagram)等、他の任意のグラフ画像を分類し、解析してよい。
なお、本実施形態において、グラフ画像とは、画像の全部または一部にグラフ(図表またはチャート、以下、「グラフ」と総称する。)を含む画像をいうものとする。グラフ画像は、任意のフォーマットでグラフ画像解析装置に入力されてよい。
However, this embodiment is not limited to this. The graphical image analyzer may classify and analyze any other graphical image, such as flowcharts, radar charts, scatter plots, Venn diagrams, and the like.
In the present embodiment, a graph image refers to an image including a graph (diagram or chart, hereinafter collectively referred to as "graph") in all or part of the image. The graphical image may be input to the graphical image analysis device in any format.

<グラフ画像解析装置の機能構成>
図1は、本実施形態に係るグラフ画像解析装置1の機能構成の一例を示すブロック図である。
図1に示すグラフ画像解析装置1は、データ取得部11、グラフ分類部12、確率マップ生成部13、コンポーネント抽出部14、値抽出部15、および出力部16を備える。
<Functional configuration of the graph image analysis device>
FIG. 1 is a block diagram showing an example of the functional configuration of a graph image analysis device 1 according to this embodiment.
A graph image analysis apparatus 1 shown in FIG.

データ取得部11は、入力データセット3から入力データを取得して、取得された入力データをグラフ分類部12に供給する。データ取得部11により取得される入力データは、グラフ画像を含み得る。入力データセット3は、不揮発性記憶装置で構成され、グラフ画像解析装置1にローカルに備えられ、またはリモートで接続されてよい。
グラフ画像は、例えば、ビットマップ、GIF(Graphics Interchange Format)、JPEG(Joint Photographic Experts Group)、TIFF(Tag Image File Format)等の任意の画像ファイルフォーマットを有してよい。また、画像の一部にグラフを含む場合、当該画像は、例えば、PDF(Portable Document Format)や、ウェブページを構成するHTML(Hyper Text Markup Language)等の任意のファイルフォーマットを有してよい。
The data acquisition unit 11 acquires input data from the input data set 3 and supplies the acquired input data to the graph classification unit 12 . Input data acquired by the data acquisition unit 11 may include a graph image. The input data set 3 consists of a non-volatile storage device and may be provided locally to the graph image analysis device 1 or remotely connected.
The graph image may have any image file format such as, for example, bitmap, GIF (Graphics Interchange Format), JPEG (Joint Photographic Experts Group), TIFF (Tag Image File Format). Moreover, when a graph is included in a part of the image, the image may have any file format such as PDF (Portable Document Format) or HTML (Hyper Text Markup Language) constituting a web page.

データ取得部11は、入力データセット3に替えて、入力データを対向装置から通信I/Fを介して受信してもよい。
データ取得部11はまた、グラフ画像解析装置1においてグラフ画像解析処理を実行するために必要な各種パラメータの入力を受け付けてよい。
Instead of the input data set 3, the data acquisition unit 11 may receive input data from the counterpart device via the communication I/F.
The data acquisition unit 11 may also receive input of various parameters necessary for executing the graph image analysis process in the graph image analysis apparatus 1 .

グラフ分類部12は、データ取得部11から供給される入力データから後段で解析すべきグラフ画像を抽出し、抽出されたグラフ画像を、複数のグラフ種別のいずれかに分類して、分類されたグラフ画像を確率マップ生成部13へ供給する。グラフ分類部12は、解析すべきグラフ画像として、例えば、棒グラフ、円グラフ、および線グラフ等を入力データから抽出してよい。
本実施形態において、グラフ分類部12は、例えば、ニューラルネットワーク等の分類用のネットワークを用いて、入力データからグラフ画像を抽出し、抽出されたグラフ画像を分類してよい。
The graph classification unit 12 extracts a graph image to be analyzed at a later stage from the input data supplied from the data acquisition unit 11, classifies the extracted graph image into one of a plurality of graph types, and classifies the classified graph image. The graph image is supplied to the probability map generation unit 13 . The graph classification unit 12 may extract, for example, bar graphs, pie charts, and line graphs from the input data as graph images to be analyzed.
In this embodiment, the graph classification unit 12 may use a classification network such as a neural network to extract graph images from input data and classify the extracted graph images.

確率マップ生成部13は、グラフ分類部12から供給される分類されたグラフ画像に対して、分類されたグラフ種別ごとに、グラフ画像の確率マップを生成し、生成された確率マップをコンポーネント抽出部14へ供給する。確率マップ生成部13はまた、グラフ分類部12により分類される前のグラフ画像を入力として、グラフ種別ごとに、グラフ画像の確率マップを生成してよい。
本実施形態において、確率マップ生成部13により生成される確率マップ(Probability Map)は、グラフ画像の画素ごとに、分類された種別のグラフを構成するコンポーネントが出現する確率を推定し、推定された確率分布で構成されるマップである。
The probability map generation unit 13 generates a probability map of the graph image for each classified graph type with respect to the classified graph images supplied from the graph classification unit 12, and sends the generated probability map to the component extraction unit. 14. The probability map generation unit 13 may also receive the graph image before being classified by the graph classification unit 12 as an input and generate a probability map of the graph image for each graph type.
In this embodiment, the probability map (Probability Map) generated by the probability map generation unit 13 estimates the probability that the components constituting the graph of the classified type appear for each pixel of the graph image, and the estimated It is a map composed of probability distributions.

確率マップ生成部13は、例えば、ニューラルネットワーク等の確率マップ生成用のネットワークを用いて、分類されたグラフ画像から、確率マップを生成してよい。確率マップ生成部13が使用する確率マップ生成用のネットワークは、複数種類のグラフの確率マップを出力する単一のセグメンテーションネットワーク(セグメンテーションモデル)であってよく、あるいは、複数種類のグラフのそれぞれについて設けられる複数のセグメンテーションネットワーク(セグメンテーションモデル)であってもよい。
確率マップ生成部13はまた、分類されたグラフ種別ごとに、異なる種類の確率マップを生成してよく(図2を参照して後述)、分類されたグラフ種別ごとに、異なる複数種類の確率マップを生成してよい(図4~図6を参照して後述)。
The probability map generation unit 13 may generate a probability map from the classified graph images, for example, using a probability map generation network such as a neural network. The probability map generation network used by the probability map generation unit 13 may be a single segmentation network (segmentation model) that outputs probability maps of multiple types of graphs, or may be provided for each of multiple types of graphs. It may be a plurality of segmentation networks (segmentation models).
The probability map generation unit 13 may also generate different types of probability maps for each classified graph type (described later with reference to FIG. 2), and generate a plurality of different types of probability maps for each classified graph type. may be generated (described below with reference to FIGS. 4-6).

コンポーネント抽出部14は、確率マップ生成部13から供給される確率マップを用いて、グラフ画像から、グラフを構成するコンポーネント(以下、単に「コンポーネント」という。)を抽出する。
具体的には、コンポーネント抽出部14は、グラフ分類部13により分類されたグラフ画像に、当該グラフ画像が分類された種別に対応して確率マップ生成部13から供給される確率マップを用いて、グラフ画像から、グラフを構成する複数のコンポーネントのそれぞれを分離する。
The component extraction unit 14 uses the probability map supplied from the probability map generation unit 13 to extract components (hereinafter simply referred to as “components”) that form the graph from the graph image.
Specifically, the component extraction unit 14 uses the probability map supplied from the probability map generation unit 13 corresponding to the type of the graph image classified by the graph classification unit 13 for the graph image classified by the graph classification unit 13, Separate each of the multiple components that make up the graph from the graph image.

コンポーネント抽出部14は、グラフ画像から、グラフを構成する複数のコンポーネントのうち、主要なコンポーネントをそれぞれ分離してよい。確率マップは、分離されるべき複数の主要なコンポーネントのそれぞれに対応して、複数種類が生成されてよい。
コンポーネント抽出部14は、グラフ画像から分離した複数のコンポーネントのそれぞれについて、グラフをトレースして、分離されたコンポーネントおよびそのグラフを、値抽出部15へ供給する。
The component extraction unit 14 may separate main components from among the plurality of components forming the graph from the graph image. Multiple types of probability maps may be generated corresponding to each of the multiple major components to be separated.
The component extraction unit 14 traces the graph for each of the plurality of components separated from the graph image, and supplies the separated component and its graph to the value extraction unit 15 .

値抽出部15は、コンポーネント抽出部14から供給されるグラフ画像の各コンポーネントについて、対応するグラフの値を抽出する。
具体的には、値抽出部15は、グラフ画像の軸のラベルや各コンポーネントに付与されたラベルを抽出し、抽出されたラベルのテキストおよび幾何学的配置に基づいて、グラフ画像の各コンポーネントに対応するグラフの値を生成する。
値抽出部15はまた、グラフ軸の目盛(tick-mark)の確率マップに基づいて、グラフ画像の各コンポーネントに対応するグラフの値を生成してよい。
The value extraction unit 15 extracts the corresponding graph value for each component of the graph image supplied from the component extraction unit 14 .
Specifically, the value extracting unit 15 extracts the label of the axis of the graph image and the label assigned to each component, and based on the text of the extracted label and the geometric arrangement, assigns the value to each component of the graph image. Generate the corresponding graph values.
The value extractor 15 may also generate graph values corresponding to each component of the graph image based on the probability map of the tick-marks of the graph axes.

グラフ画像に含まれるグラフ自体は、所定の入力データを可視化したものであるが、画像化されたグラフ画像からは、通常、グラフ描画の基となったオリジナルの入力データに直接アクセスすることができない。
本実施形態では、値抽出部15が、グラフ画像の各コンポーネントに対応するグラフの値を生成することによって、グラフ描画の基となったオリジナルの入力データを回復する。
値抽出部15は、グラフ画像の各コンポーネントの連続する画素に対応して連続的にグラフの値を生成してよく、あるいは、所定の画素間隔ごとに離散的にグラフの値を生成してもよい。
値抽出部15は、生成されたグラフの値を、グラフ画像の各コンポーネントに付加して、または対応付けて、出力部16へ供給する。
The graph itself included in the graph image is a visualization of predetermined input data, but the original input data on which the graph is drawn cannot be accessed directly from the visualized graph image.
In this embodiment, the value extraction unit 15 recovers the original input data on which the graph drawing is based by generating graph values corresponding to each component of the graph image.
The value extraction unit 15 may continuously generate graph values corresponding to continuous pixels of each component of the graph image, or may generate graph values discretely at predetermined pixel intervals. good.
The value extraction unit 15 adds or associates the generated graph values with the respective components of the graph image, and supplies them to the output unit 16 .

出力部16は、コンポーネント抽出部14により抽出されたグラフ画像の各コンポーネントをグラフに合成し、デジタルデータとして、出力データセット4に出力する。出力データセット4に出力されたグラフは、グラフ画像解析装置1または他の装置のユーザインタフェースを介して、プッシュ型またはプル型で外部に出力されてよい。
出力部16が合成するグラフの各コンポーネントには、値抽出部15により抽出されたグラフの値が付加されている。このため、グラフ画像解析装置1、または他の装置は、グラフ画像解析処理の後処理として、出力データセット4から合成されたグラフのデータを読み出して、任意に加工して出力することができる。
たとえば、出力部16または後処理は、グラフ分類部12により分類されたグラフ種別とは異なるグラフ種別に変更して、グラフを出力してよく、また、スケール、グラフ化の範囲、グラフコンポーネントの色や線種等を変更して、グラフを出力してもよい。
なお、出力部16は、値抽出部15により生成されたグラフの値を、グラフ画像の各コンポーネントに付加することなく、独立して出力してよい。あるいは、出力部16は、これらグラフの値を、例えば表形式等の任意の形式に整形して出力してよい。
The output unit 16 synthesizes each component of the graph image extracted by the component extraction unit 14 into a graph and outputs it as digital data to the output data set 4 . The graph output to the output data set 4 may be output to the outside in a push or pull fashion via the user interface of the graph image analysis device 1 or another device.
Values of the graph extracted by the value extraction unit 15 are added to each component of the graph synthesized by the output unit 16 . Therefore, the graph image analysis device 1 or other devices can read the synthesized graph data from the output data set 4, arbitrarily process it, and output it as a post-processing of the graph image analysis processing.
For example, the output unit 16 or the post-processing may change the graph type classified by the graph classification unit 12 to a graph type different from that classified by the graph classification unit 12 and output the graph. You can also change the line type, etc., and output the graph.
Note that the output unit 16 may output the values of the graph generated by the value extraction unit 15 independently without adding them to each component of the graph image. Alternatively, the output unit 16 may format the values of these graphs into an arbitrary format such as a tabular format and output them.

なお、グラフ画像解析装置1は、PC(Personal Computer)等で構成されるクライアント装置と通信可能に接続し、当該クライアント装置は、グラフ画像解析装置1が外部と情報の入出力を実行する際のユーザインタフェースを提供してよく、また、グラフ画像解析装置1の各コンポーネント11~16の一部または全部を備えてもよい。 The graph image analysis device 1 is communicably connected to a client device configured by a PC (Personal Computer) or the like, and the client device is used when the graph image analysis device 1 inputs/outputs information to/from the outside. A user interface may be provided, and a part or all of each component 11 to 16 of the graph image analysis apparatus 1 may be provided.

図2は、本実施形態に係るグラフ画像解析装置1が実行するグラフ画像解析処理の概要を説明する概念図である。
本実施形態において、グラフ画像解析装置1は、入力データから、解析されるべきグラフ画像を抽出し、抽出されたグラフ画像を複数のグラフ種別のうちのいずれかに分類する。
図2を参照して、入力データ21は、ニューラルネットワーク等で構成される分類用のネットワーク22に入力され、分類用のネットワーク22は、いずれかのグラフ種別に分類されたグラフ画像を含む分類結果23を出力する。分類用のネットワーク22が出力する分類結果23は、線グラフ(Line)、円グラフ(Pie)、横棒グラフ(H-Bar)、縦棒グラフ(V-Bar)の各グラフ画像を含む。分類用のネットワーク22は、各種のグラフ画像のデータとグラフ種別のラベルとを学習データとして、予め学習させておく。
これらの分類された各グラフ画像は、後段の確率マップ生成用のネットワーク24に入力されてよい。一方、分類用のネットワーク22は、解析されるべきグラフ画像以外の種別のグラフ画像(例えば、マップのグラフ等)、および写真等も、分類結果として出力するが、これらの分類結果は後段の確率マップ生成用のネットワーク24に入力されない。
FIG. 2 is a conceptual diagram for explaining an overview of graph image analysis processing executed by the graph image analysis apparatus 1 according to this embodiment.
In this embodiment, the graph image analysis device 1 extracts a graph image to be analyzed from input data, and classifies the extracted graph image into one of a plurality of graph types.
Referring to FIG. 2, input data 21 is input to a classification network 22 configured by a neural network or the like. 23 is output. The classification result 23 output by the classification network 22 includes graph images of a line graph (Line), a pie graph (Pie), a horizontal bar graph (H-Bar), and a vertical bar graph (V-Bar). The classification network 22 is learned in advance using various graph image data and graph type labels as learning data.
Each of these classified graph images may be input to the network 24 for subsequent probability map generation. On the other hand, the classification network 22 also outputs graph images of types other than the graph image to be analyzed (for example, map graphs) and photographs as classification results. No input to network 24 for map generation.

本実施形態において、グラフ画像解析装置1は、分類されたグラフ種別ごとに異なる種類の確率マップを生成し、生成された確率マップを用いて、グラフ画像からグラフ画像のコンポーネントを分離し、分離されたグラフ画像のコンポーネントでグラフをトレースするとともに、トレースされたグラフのコンポーネントに対応するグラフの値を抽出する。 In the present embodiment, the graph image analysis apparatus 1 generates different types of probability maps for each classified graph type, uses the generated probability maps to separate components of the graph image from the graph image, and separates the components of the graph image. The graph is traced by the components of the graph image drawn, and the graph values corresponding to the traced graph components are extracted.

図2を参照して、分類結果23、すなわち分類済みのグラフ画像のデータは、ニューラルネットワーク等で構成される確率マップ生成用ネットワーク24に入力され、確率マップ生成用のネットワーク24は、分類されたグラフ種別ごとに、確率マップ25a~25dを出力する。
図2では、確率マップ生成用のネットワーク24が出力する確率マップは、線グラフの確率マップ25a、円グラフの確率マップ25b、横棒グラフの確率マップ25c、および縦棒グラフの確率マップ25dを含む。確率マップの構成の詳細については、図4~図6を参照して後述する。
確率マップ生成用のネットワーク24は、分類済みのグラフ種別が付加されたグラフ画像のデータと、色、ボーダーライン、セグメンテーション、凡例、グラフ軸の目盛、線種等のグラフ種別に応じたラベルとを学習データとして、予め学習させておく。
なお、分類用のネットワーク22および確率マップ生成用のネットワーク24は、CNN(Convolutional Neural Network)等のニューラルネットワークであってもよく、SVM(Support Vector Machine)等の他の機械学習モデルを用いてもよい。
Referring to FIG. 2, the classification result 23, that is, the data of the classified graph image is input to a probability map generation network 24 composed of a neural network or the like. Probability maps 25a to 25d are output for each graph type.
In FIG. 2, the probability maps output by the probability map generating network 24 include a line graph probability map 25a, a pie graph probability map 25b, a horizontal bar graph probability map 25c, and a vertical bar graph probability map 25d. Details of the configuration of the probability map will be described later with reference to FIGS. 4 to 6. FIG.
The probability map generating network 24 generates graph image data to which the classified graph type is added, and labels according to the graph type such as color, borderline, segmentation, legend, graph axis scale, and line type. It is learned in advance as learning data.
The classification network 22 and the probability map generation network 24 may be neural networks such as CNN (Convolutional Neural Network), or may use other machine learning models such as SVM (Support Vector Machine). good.

あるいは、グラフ画像解析装置1は、分類用のネットワーク22および確率マップ生成用ネットワーク24を併用して、グラフ画像の分類と、確率マップ生成とを並行して実行してよい。すなわち、グラフ画像解析装置1は、入力データ21から抽出されたグラフ画像を、分類用のネットワーク22に入力して、複数のグラフ種別のいずれかに分類するとともに、これと並列的に、入力データ21から抽出されたグラフ画像を、確率マップ生成用ネットワーク24に入力して、グラフ種別ごとに、確率マップ25a~25dを出力してよい。 Alternatively, the graph image analysis apparatus 1 may concurrently use the classification network 22 and the probability map generation network 24 to classify the graph image and generate the probability map. That is, the graph image analysis apparatus 1 inputs the graph image extracted from the input data 21 to the classification network 22 and classifies it into one of a plurality of graph types. 21 may be input to the probability map generation network 24 to output probability maps 25a to 25d for each graph type.

この場合、確率マップ生成用ネットワーク24は、複数種類のグラフのコンポーネントにそれぞれ対応する複数の出力チャネルを備え、すべての種類のグラフについての確率マップを生成する、単一の統合されたセグメンテーションネットワーク(セグメンテーションモデル)であってよい。
ただし、グラフ画像解析装置1は、分類用ネットワーク22により分類されたグラフ画像を入力として、グラフ分類処理の後段として、単一の確率マップ生成用ネットワーク24を用いた確率マップ生成処理を実行してもよい。
In this case, probability map generation network 24 comprises a single unified segmentation network ( segmentation model).
However, the graph image analysis apparatus 1 receives the graph image classified by the classification network 22 as an input, and executes the probability map generation processing using the single probability map generation network 24 as the subsequent stage of the graph classification processing. good too.

複数種類のグラフに対応する複数の出力チャネルを備える単一の確率マップ生成用ネットワーク24を使用することで、計算負荷を低減しつつ、セグメンテーションモデルである確率マップ生成用ネットワーク24をより効率的に学習させることができる。また、このような単一の確率マップ生成用ネットワーク24を使用することで、推論フェーズにおいて、複数種類のグラフ画像をセグメンテーションモデルに同時に入力して汎用的に推論を実行することができる。さらに、確率マップ生成用ネットワーク24と分類用のネットワーク22とを並列的に学習および推論を実行することで、より高速にグラフ画像を解析することが可能となる。 By using a single probability map generation network 24 with multiple output channels corresponding to multiple types of graphs, the computational load is reduced while the probability map generation network 24, which is a segmentation model, is made more efficient. can be learned. In addition, by using such a single probability map generation network 24, it is possible to input multiple types of graph images to the segmentation model at the same time and execute general inference in the inference phase. Furthermore, by performing learning and inference in parallel with the probability map generation network 24 and the classification network 22, it is possible to analyze the graph image at a higher speed.

図2の確率マップ25a~25dでは、グラフ画像の主要なコンポーネントが出現する尤度が所定の閾値以上である画素が白抜きで表示されている。線グラフの確率マップ25aは、各線グラフのコンポーネントを分離する。円グラフの確率マップ25bは、円グラフの各パイスライスのコンポーネントを分離する。横棒グラフの確率マップ25cおよび縦棒グラフの確率マップ25dは、それぞれ、各バーセグメントのコンポーネントを分離する。 In the probability maps 25a to 25d of FIG. 2, the pixels with the likelihood of appearance of the main components of the graph image being greater than or equal to a predetermined threshold are displayed in white. A line graph probability map 25a separates the components of each line graph. A probability map 25b of the pie chart separates the components of each pie slice of the pie chart. A horizontal bar graph probability map 25c and a vertical bar graph probability map 25d, respectively, separate the components of each bar segment.

本実施形態では、これらのグラフ種別ごとに異なる種類の確率マップ25a~25dを用いて、グラフ画像から各コンポーネントを分離して抽出する。図2を参照して、線グラフのグラフ画像に対して、線グラフの確率マップ25aを用いて、各線グラフのコンポーネント26aが抽出されて、トレースされている。円グラフのグラフ画像に対して、円グラフの確率マップ25bを用いて、各パイスライスのコンポーネント26bが抽出されて、トレースされている。横棒グラフおよび縦棒グラフのグラフ画像に対して、横棒グラフの確率マップ25cおよび縦棒グラフの確率マップ25dをそれぞれ用いて、各バーセグメントのコンポーネント26c、26dがそれぞれ抽出されて、トレースされている。 In this embodiment, different types of probability maps 25a to 25d are used for each of these graph types to separate and extract each component from the graph image. Referring to FIG. 2, for the graph image of the line graph, using the probability map 25a of the line graph, each line graph component 26a is extracted and traced. For the graph image of the pie chart, the pie slice probability map 25b is used to extract and trace the component 26b of each pie slice. For the graph images of the horizontal bar graph and the vertical bar graph, the components 26c, 26d of each bar segment are extracted and traced using the horizontal bar graph probability map 25c and the vertical bar graph probability map 25d, respectively.

グラフ画像から抽出された各コンポーネント26a~26dに対して、グラフの値が抽出される。具体的には、線グラフ、円グラフ、横棒グラフ、および縦棒グラフの各グラフ画像の座標軸のラベル、各コンポーネントのラベル、タイトル、凡例等の領域から、グラフ画像27a~27d中の矩形領域で示されるように、テキストが検出されて、文字認識される。この文字認識の結果と、グラフ画像上で抽出された各コンポーネントの幾何学的配置に基づいて、グラフの値が生成される。トレースされたグラフの各コンポーネントに生成されたグラフの値が付加されて、デジタル化されたグラフのデータ28が出力される。 For each component 26a-26d extracted from the graph image, a graph value is extracted. Specifically, the coordinate axis label of each graph image of the line graph, pie graph, horizontal bar graph, and vertical bar graph, the label of each component, the title, the legend, etc. are displayed in the rectangular areas in the graph images 27a to 27d. The text is detected and character recognized as shown. A graph value is generated based on the result of this character recognition and the geometric arrangement of each component extracted on the graph image. The values of the generated graph are added to each component of the traced graph to output digitized graph data 28 .

<グラフ画像解析処理の処理手順>
図3は、本実施形態に係るグラフ画像解析装置1が実行する、グラフ画像解析処理の処理手順の一例を示すフローチャートである。図3に示す例では、グラフ画像解析装置1が、単一の確率マップ生成用ネットワークを用いて、グラフ分類部12によるグラフ画像の分類と、確率マップ生成部13による確率マップの生成とを並列的に実行する。
なお、図3の各ステップは、グラフ画像解析装置1のHDD等の記憶装置に記憶されたプログラムをCPUが読み出し、実行することで実現される。また、図3に示すフローチャートの少なくとも一部をハードウエアにより実現してもよい。ハードウエアにより実現する場合、例えば、所定のコンパイラを用いることで、各ステップを実現するためのプログラムからFPGA(Field Programmable Gate Array)上に自動的に専用回路を生成すればよい。また、FPGAと同様にしてGate Array回路を形成し、ハードウエアとして実現するようにしてもよい。また、ASIC(Application Specific Integrated Circuit)により実現するようにしてもよい。
<Processing Procedure of Graph Image Analysis Processing>
FIG. 3 is a flowchart showing an example of the procedure of graph image analysis processing executed by the graph image analysis apparatus 1 according to this embodiment. In the example shown in FIG. 3, the graph image analysis device 1 uses a single probability map generation network to perform the classification of the graph image by the graph classification unit 12 and the generation of the probability map by the probability map generation unit 13 in parallel. execute
Each step in FIG. 3 is realized by the CPU reading and executing a program stored in a storage device such as an HDD of the graph image analysis apparatus 1 . Also, at least part of the flowchart shown in FIG. 3 may be realized by hardware. When implemented by hardware, for example, by using a predetermined compiler, a dedicated circuit may be automatically generated on an FPGA (Field Programmable Gate Array) from a program for implementing each step. Also, a Gate Array circuit may be formed in the same manner as the FPGA and implemented as hardware. Also, it may be realized by an ASIC (Application Specific Integrated Circuit).

S1で、グラフ画像解析装置1のデータ取得部11は、入力データセット3から、グラフ画像を含む入力データを取得する。
S2で、グラフ画像解析装置1のグラフ分類部12は、分類用のネットワーク22を用いて、入力データから、解析すべきグラフ画像を抽出し、抽出されたグラフ画像を、解析対象の複数のグラフ種別のいずれかに分類する。
At S<b>1 , the data acquisition unit 11 of the graph image analysis device 1 acquires input data including a graph image from the input data set 3 .
In S2, the graph classification unit 12 of the graph image analysis device 1 uses the classification network 22 to extract a graph image to be analyzed from the input data, and classifies the extracted graph image into a plurality of graphs to be analyzed. Classify into one of the types.

S2と並列的に、S3で、グラフ画像解析装置1の確率マップ生成部13は、確率マップ生成用の単一のネットワーク24を用いて、S1で入力された入力データから抽出されたグラフ画像から各コンポーネントを抽出するための確率マップを、グラフ種別ごとに生成する。
S3で確率マップ生成部13が使用する確率マップ生成用の単一のネットワーク24は、上述のとおり、複数種類のグラフのコンポーネントにそれぞれ対応する複数の出力チャネルを備え、すべての種類のグラフについての確率マップを生成する、単一の統合されたセグメンテーションネットワーク(セグメンテーションモデル)である。
In parallel with S2, in S3, the probability map generation unit 13 of the graph image analysis device 1 uses the single network 24 for probability map generation to extract from the graph image extracted from the input data input in S1 A probability map for extracting each component is generated for each graph type.
The single network 24 for probability map generation used by the probability map generation unit 13 in S3 has, as described above, a plurality of output channels respectively corresponding to the components of a plurality of types of graphs, and for all types of graphs. A single unified segmentation network (segmentation model) that produces a probability map.

なお、確率マップ生成用ネットワーク24は、解析すべきグラフ種別ごとに異なる学習データで学習済みの学習モデルとして形成されてもよいが、確率マップ生成用ネットワーク24は、ネットワークの出力チャネルのみ、グラフ種別ごとに異なればよく、出力チャネル以外のネットワークは共通化された構造を有してよい。これにより、確率マップ生成用のネットワーク24の汎用性が向上する。以下、「確率マップ生成用ネットワーク」の語は、このような単一のネットワークおよびグラフ種別ごとのネットワークの双方を含むものとする。 Note that the probability map generation network 24 may be formed as a learning model that has already been trained with different learning data for each graph type to be analyzed, but the probability map generation network 24 is designed for only the output channel of the network, the graph type Each network may have a different structure, and networks other than the output channel may have a common structure. This improves the versatility of the network 24 for probability map generation. Hereinafter, the term "probability map generation network" includes both such a single network and a network for each graph type.

図4は、縦棒グラフのグラフ画像から各コンポーネントを抽出する確率マップを生成する、確率マップ生成用のネットワーク24の出力チャネルの一例を示す図である。
図4(a)に示す縦棒グラフのグラフ画像を入力データとした場合、確率マップ生成用のネットワーク24は、図4(b)に示すバーセグメントを彩色する色(主要色)の出力チャネルと、図4(c)に示す各バーセグメントを区分するセグメンテーションの出力チャネルと、および図4(d)に示す各バーセグメントの境界を画定するボーダーラインの出力チャネルとをそれぞれ備える。確率マップ生成用ネットワーク24はさらに、図4(e)に示す凡例の出力チャネルと、図4(f)に示すグラフ軸目盛の出力チャネルとをそれぞれ備えてよい。確率マップ生成部13は、これら図4(b)~図4(f)にそれぞれ対応する複数種類の確率マップを生成する。
FIG. 4 shows an example of the output channels of network 24 for probability map generation, which generates a probability map that extracts each component from a graph image of a column graph.
When the graph image of the vertical bar graph shown in FIG. 4(a) is used as input data, the probability map generation network 24 outputs channels of colors (primary colors) for coloring the bar segments shown in FIG. 4(b), Each has a segmentation output channel that separates each bar segment shown in FIG. 4(c) and a borderline output channel that defines the boundaries of each bar segment shown in FIG. 4(d). The probability map generating network 24 may further comprise a legend output channel shown in FIG. 4(e) and a graph axis scale output channel shown in FIG. 4(f), respectively. The probability map generation unit 13 generates a plurality of types of probability maps respectively corresponding to FIGS. 4(b) to 4(f).

図5は、円グラフのグラフ画像から各コンポーネントを抽出する確率マップを生成する、確率マップ生成用のネットワーク24の出力チャネルの一例を示す図である。
図5(a)に示す円グラフのグラフ画像を入力データとした場合、確率マップ生成用のネットワーク24は、図5(b)に示すパイスライスを彩色する色(主要色)の出力チャネルと、図5(c)に示す各パイスライスを区分するセグメンテーションの出力チャネルと、および図5(d)に示す各パイスライスの境界を画定するボーダーラインの出力チャネルとをそれぞれ備える。確率マップ生成用ネットワーク24はさらに、図5(e)に示す凡例の出力チャネルと、図5(f)に示すグラフ軸目盛の出力チャネルとをそれぞれ備えてよい。確率マップ生成部13は、これら図5(b)~図5(f)にそれぞれ対応する複数種類の確率マップを生成する。なお、円グラフには通常、グラフ軸は付与されないため、円グラフのグラフ画像から抽出されるグラフ軸目盛の確率マップは、図5(f)に示すように、オールゼロの値を持ってよい。
FIG. 5 shows an example of the output channels of network 24 for probability map generation, which generates a probability map that extracts each component from a graph image of a pie chart.
When the graph image of the pie chart shown in FIG. 5(a) is used as input data, the probability map generation network 24 outputs channels of colors (primary colors) for coloring the pie slices shown in FIG. 5(b), Each has a segmentation output channel that partitions each pie slice shown in FIG. 5(c) and a borderline output channel that bounds each pie slice shown in FIG. 5(d). The probability map generating network 24 may further comprise a legend output channel shown in FIG. 5(e) and a graph axis scale output channel shown in FIG. 5(f), respectively. The probability map generation unit 13 generates a plurality of types of probability maps respectively corresponding to FIGS. 5(b) to 5(f). Since graph axes are not usually given to pie charts, the probability map of graph axis scales extracted from the graph image of the pie chart may have all zero values as shown in FIG. 5(f).

一方、図6は、線グラフのグラフ画像から各コンポーネントを抽出する確率マップを生成する、確率マップ生成用のネットワーク24の出力チャネルの一例を示す図である。
図6(a)に示す線グラフのグラフ画像を入力データとした場合、確率マップ生成用のネットワーク24は、線種ごとに、図6(b)に示す実線の線グラフの出力チャネルと、図6(c)に示す点線の線グラフの出力チャネルと、図6(d)に示す破線の線グラフの出力チャネルと、および図6(e)に示す一点鎖線の線グラフの出力チャネルとをそれぞれ備える。確率マップ生成用ネットワーク24はさらに、図6(f)に示す凡例の出力チャネルと、図6(g)に示すグラフ軸目盛の出力チャネルとをそれぞれ備えてよい。確率マップ生成部13は、これら図6(b)~図6(g)にそれぞれ対応する複数種類の確率マップを生成する。
FIG. 6, on the other hand, shows an example of the output channels of the probability map generation network 24, which generates a probability map that extracts each component from a graph image of a line graph.
When the graph image of the line graph shown in FIG. 6A is used as input data, the network 24 for generating the probability map generates output channels of the solid line graph shown in FIG. 6(c), the dashed line graph output channel shown in FIG. 6(d), and the dashed line graph output channel shown in FIG. 6(e). Prepare. The probability map generation network 24 may further comprise a legend output channel shown in FIG. 6(f) and a graph axis scale output channel shown in FIG. 6(g), respectively. The probability map generation unit 13 generates a plurality of types of probability maps respectively corresponding to FIGS. 6(b) to 6(g).

確率マップ生成用ネットワーク24を、棒グラフ、円グラフ、および線グラフのすべてのグラフ種別に対応する単一のセグメンテーションモデルで構成する場合、当該確率マップ生成用ネットワーク24は、RGB各色、セグメンテーション(前景)、ボーダーライン、4つの線種、凡例、およびグラフ軸目盛、の11出力チャネルを持ってよい。
グラフ軸目盛の確率マップを生成することで、グラフの各コンポーネントの値を抽出さする際に、グラフ軸の各目盛が示すグラフの値を、OCR認識されたテキストボックスの座標情報から推定することなく、より直接的かつ正確に特定することが可能となる。
When the probability map generation network 24 is configured with a single segmentation model that supports all graph types of bar graphs, pie charts, and line graphs, the probability map generation network 24 is configured for each RGB color, segmentation (foreground) , a borderline, four linetypes, a legend, and graph axis ticks.
By generating a probability map of the scales of the graph axis, when extracting the value of each component of the graph, estimating the value of the graph indicated by each scale of the graph axis from the coordinate information of the OCR-recognized text box. can be specified more directly and accurately.

なお、図4~図6に示す確率マップ生成用のネットワーク24の出力チャネル(確率マップ)の構成は一例であって、本実施形態はこれに限定されない。例えば、グラフ画像から凡例を抽出するための図4(e)、図5(e)、および図6(f)に示す出力チャネル(確率マップ)は、凡例の領域をマスクして、グラフ画像からグラフが描画されている領域を画定するために使用されてよいが、必ずしも生成されなくてもよい。同様に、グラフ画像からグラフ軸目盛を抽出するための図4(f)、図4(f)、および図6(g)に示す出力チャネル(確率マップ)は、グラフの各コンポーネントに対応する値をより正確に抽出さするために使用されてよいが、必ずしも生成されなくてもよい。確率マップ生成部13は、グラフのコンポーネントのトレースを容易化するよう、グラフ種別に応じて、異なる複数種類の確率マップを生成してよい。 Note that the configuration of the output channels (probability maps) of the network 24 for generating probability maps shown in FIGS. 4 to 6 is an example, and the present embodiment is not limited to this. For example, the output channels (probability maps) shown in FIGS. 4(e), 5(e), and 6(f) for extracting the legend from the graph image mask the region of the legend so that May be used to define the area in which the graph is drawn, but is not necessarily generated. Similarly, the output channels (probability maps) shown in FIGS. 4(f), 4(f), and 6(g) for extracting the graph axis ticks from the graph image are values may be used to more accurately extract the , but not necessarily generated. The probability map generation unit 13 may generate a plurality of different types of probability maps according to the graph type so as to facilitate tracing of the components of the graph.

図3に戻り、グラフ画像解析装置1のコンポーネント抽出部14は、S3でそれぞれのグラフ種別に対応して生成された確率マップを用いて、グラフ画像からグラフの各コンポーネントを推定し、推定されたグラフコンポーネントをトレースする。
コンポーネント抽出部14は、グラフ種別ごとに異なる手法で、グラフ画像からグラフの各コンポーネントを推定してよい。これらグラフのコンポーネント抽出処理の詳細は、図8~図14を参照して後述する。
Returning to FIG. 3, the component extraction unit 14 of the graph image analysis device 1 estimates each component of the graph from the graph image using the probability map generated corresponding to each graph type in S3, and the estimated Trace graph components.
The component extraction unit 14 may estimate each component of the graph from the graph image using different techniques for each graph type. Details of the component extraction processing of these graphs will be described later with reference to FIGS.

本実施形態では、グラフ画像からグラフのコンポーネントを推定する際に、グラフ種別ごとに設けられた確率マップを用いる。グラフ種別ごとに設けられた確率マップを用いることで、グラフ画像上の画素単位で、各コンポーネントが出現する確率を取得することができ、各コンポーネントの領域の推定が容易化される。
このため、例えば、グラフ画像がアーチファクト、ノイズやグラデーションを含む場合、グラフのコンポーネント同士が交差またはオーバーラップする場合や他のコンポーネントと離隔する場合、高圧縮され解像度が低い場合、グラフコンポーネントの境界が明瞭でない場合等であっても、グラフ画像から高精度にグラフの各コンポーネントを推定することができる。
In this embodiment, when estimating the components of a graph from a graph image, probability maps provided for each graph type are used. By using a probability map provided for each graph type, it is possible to obtain the probability of appearance of each component for each pixel on the graph image, facilitating estimation of the area of each component.
So, for example, if the graph image contains artifacts, noise or gradients, if the graph components cross or overlap or are separated from other components, if they are highly compressed and have low resolution, if the graph component boundaries are Even if it is not clear, each component of the graph can be estimated with high accuracy from the graph image.

S5で、グラフ画像解析装置1の値抽出部15は、S4で推定されたグラフの各コンポーネントに対応するグラフの値を抽出する。
値抽出部15は、円グラフのグラフ画像について、S4で取得されたパイスライスのセグメント(コンポーネント)の面積、およびグラフの軸やコンポーネントにラベル付けされたテキストの文字認識結果に基づいて、円グラフの値を抽出する。
値抽出部15はまた、棒グラフおよび線グラフのグラフ画像について、棒グラフや線グラフのコンポーネントの画素座標と、グラフの軸やコンポーネントにラベル付けされたテキストの文字認識結果との間の関連を幾何学的配置に基づいて判定することにより、グラフの各コンポーネントの値を抽出する。
In S5, the value extraction unit 15 of the graph image analysis device 1 extracts the graph values corresponding to the respective components of the graph estimated in S4.
The value extracting unit 15 extracts the graph image of the pie graph based on the area of the pie slice segment (component) acquired in S4 and the character recognition result of the text labeled on the axis and the component of the graph. extract the value of
For graph images of bar graphs and line graphs, the value extractor 15 also geometrically identifies the relationship between the pixel coordinates of the components of the bar graphs and line graphs and the character recognition results of the text labeled on the axes and components of the graph. Extract the value of each component of the graph by making a decision based on the positional arrangement.

より具体的には、値抽出部15は、まず、グラフ画像全体をOCR(Optical Character Recognition)により読み取って、テキストを検出し、検出されたテキストのテキストボックスを、縦軸および横軸のいずれかにグルーピングする。テキストボックスはまた、凡例またはタイトルにグルーピングされてもよい。
値抽出部15は、次に、棒グラフおよび線グラフにつき、テキストとして数字を含むテキストボックスの位置から、縦および横の座標軸のスケールを決定する。
More specifically, the value extraction unit 15 first reads the entire graph image by OCR (Optical Character Recognition), detects text, and converts the text box of the detected text to either the vertical axis or the horizontal axis. group to. Text boxes may also be grouped into legends or titles.
The value extractor 15 then determines the scales of the vertical and horizontal coordinate axes for the bar graphs and line graphs from the positions of the text boxes containing numbers as text.

値抽出部15はさらに、棒グラフや線グラフのグラフ軸目盛の確率マップを用いて、グラフ軸の各目盛に対応する値を同定し、同定された値に基づいて各コンポーネントの値を生成してよい。グラフ軸の各目盛に対応する値が得られない場合、例えば、数値を含むバウンディングボックスの重心座標を、グラフ軸の目盛に対応する値として使用してもよい。
決定された座標軸のスケールを適用して、値抽出部15は、グラフの各コンポーネントの座標を、グラフの値に変換する。
The value extracting unit 15 further uses the probability map of the graph axis scales of the bar graph or line graph to identify the value corresponding to each scale of the graph axis, and generates the value of each component based on the identified value. good. If the values corresponding to each tick mark of the graph axis are not available, for example, the barycentric coordinates of the bounding box containing the numerical values may be used as the values corresponding to the tick marks of the graph axis.
By applying the scale of the determined coordinate axis, the value extraction unit 15 converts the coordinates of each component of the graph into values of the graph.

具体的には、値抽出部15は、線グラフの各線のコンポーネント上のすべての点の画素座標を、グラフの値に変換する。値抽出部15はまた、棒グラフの各バーセグメントのコンポーネントの頂点Y座標(縦座標)および右端X座標(横座標)を、グラフの値に変換する。
一方、円グラフについて、値抽出部15は、円グラフの各パイスライスのコンポーネントの面積比または中心角に基づいて、グラフの値を生成する。
Specifically, the value extraction unit 15 converts the pixel coordinates of all points on each line component of the line graph into graph values. The value extractor 15 also converts the apex Y coordinate (ordinate) and the right end X coordinate (abscissa) of each bar segment component of the bar graph into graph values.
On the other hand, for the pie chart, the value extraction unit 15 generates graph values based on the area ratio or the central angle of the components of each pie slice of the pie chart.

S6で、グラフ画像解析装置1の出力部16は、コンポーネント抽出部14により抽出され、トレースされたグラフのコンポーネントに、値抽出部15により抽出されたグラフの値および座標軸のスケールの情報等を付加して、グラフのデジタルデータとして、出力データセット4に出力する。 In S6, the output unit 16 of the graph image analysis apparatus 1 adds the graph values and coordinate axis scale information extracted by the value extraction unit 15 to the traced graph components extracted by the component extraction unit 14. and output to the output data set 4 as digital data of the graph.

図7は、本実施形態に係るグラフ画像解析装置1が実行する、グラフ画像解析処理の処理手順の変形例を示すフローチャートである。図7に示す例では、グラフ画像解析装置1は、グラフ分類部12により分類されたグラフ画像を、確率マップ生成部13に入力する。
図7のS1およびS2の処理は、図3に示すS1およびS2の処理と同様である。
FIG. 7 is a flow chart showing a modification of the procedure of the graph image analysis process executed by the graph image analysis apparatus 1 according to this embodiment. In the example shown in FIG. 7 , the graph image analysis device 1 inputs graph images classified by the graph classification unit 12 to the probability map generation unit 13 .
The processing of S1 and S2 in FIG. 7 is the same as the processing of S1 and S2 shown in FIG.

S3aで、グラフ画像解析装置1の確率マップ生成部13は、確率マップ生成用のネットワーク24を用いて、分類されたグラフ画像から各コンポーネントを抽出するための確率マップを、グラフ種別ごとに生成する。
確率マップ生成用のネットワーク24は、解析すべきグラフ種別ごとに異なる学習データで学習済みの学習モデルとして形成されてよいが、ネットワークの出力チャネルのみ、グラフ種別ごとに異なればよく、出力チャネル以外のネットワークは共通化された構造を有してよい。すなわち、S3aにおいて、確率マップ生成部13は、分類されたグラフ画像から確率マップを生成するため、グラフ種別ごとに異なるネットワーク(セグメンテーションモデル)を用いてもよく、単一のネットワーク(セグメンテーションモデル)を用いてもよい。
図7のS4~S6の処理は、図3に示すS4~S6の処理と同様である。
In S3a, the probability map generation unit 13 of the graph image analysis device 1 uses the probability map generation network 24 to generate a probability map for extracting each component from the classified graph image for each graph type. .
The network 24 for probability map generation may be formed as a learning model that has been trained with different learning data for each graph type to be analyzed. A network may have a common structure. That is, in S3a, since the probability map generation unit 13 generates a probability map from the classified graph images, a different network (segmentation model) may be used for each graph type, or a single network (segmentation model) may be used. may be used.
The processing of S4 to S6 in FIG. 7 is the same as the processing of S4 to S6 shown in FIG.

(第1のグラフコンポーネント抽出処理)
図8は、グラフ画像解析装置1のコンポーネント抽出部14が棒グラフおよび円グラフについて実行する図3および図7のS4のコンポーネント抽出(グラフトレース)処理の詳細処理手順の一例を示すフローチャートである。
S401で、コンポーネント抽出部14は、グラフ画像中の凡例の領域をマスクする。コンポーネント抽出部14は、図3のS3で生成された凡例の確率マップを用いて、グラフ画像から凡例の領域を検出し、検出された凡例の領域を、図3のS3で生成されたセグメンテーションの確率マップ上でマスクしてよい。これにより、グラフ画像中で、グラフのコンポーネントが存在する領域と、凡例の領域とを区分することができる。
(First graph component extraction process)
FIG. 8 is a flowchart showing an example of a detailed processing procedure of the component extraction (graph tracing) process of S4 in FIGS. 3 and 7 executed by the component extraction unit 14 of the graph image analysis apparatus 1 for bar graphs and pie charts.
In S401, the component extraction unit 14 masks the legend area in the graph image. The component extraction unit 14 detects a legend region from the graph image using the legend probability map generated in S3 of FIG. May be masked on the probability map. As a result, in the graph image, it is possible to distinguish between the area where the graph components exist and the legend area.

S402で、コンポーネント抽出部14は、グラフ画像の各コンポーネントのボーダーラインを画定する。具体的には、コンポーネント抽出部14は、図3のS3で生成されたボーダーラインの確率マップを用いて、ボーダーラインを画定し、グラフ画像のセグメンテーションの確率マップから、ボーラーラインを除去する。
S403で、コンポーネント抽出部14は、棒グラフおよび円グラフのコンポーネントを抽出するため、CCA(Connected Component Analysis)を適用して、グラフ画像中の隣接する画素を連結する。
CCAは、RGB色空間で同様の色を持つ隣接する画素をグルーピングすることで、画素を連結してコンポーネントを抽出することができる。
In S402, the component extraction unit 14 demarcates the borderline of each component of the graph image. Specifically, the component extraction unit 14 uses the borderline probability map generated in S3 of FIG. 3 to demarcate the borderline and remove the borer line from the graph image segmentation probability map.
In S403, the component extraction unit 14 applies CCA (Connected Component Analysis) to connect adjacent pixels in the graph image in order to extract the components of the bar graph and the pie graph.
CCA can connect pixels and extract components by grouping adjacent pixels with similar colors in the RGB color space.

S404で、コンポーネント抽出部14は、S402でボーダーラインが除去されたセグメンテーションの確率マップおよび色の確率マップを用い、S403でCCAを適用して連結された連結コンポーネントを、グラフ画像のグラフのコンポーネントとして抽出し、グラフのコンポーネントをトレースする。
コンポーネント抽出部14はさらに、画素が連結されて構成される連結コンポーネントのうち、グラフ種別ごとのセグメンテーションの確率マップから推定されるコンポーネントの形状から外れるコンポーネントを破棄してよい。
例えば、棒グラフであれば、矩形形状でない連結コンポーネントは破棄され、円グラフであれば、パイスライス形状でない連結コンポーネントは破棄されてよい。
In S404, the component extraction unit 14 uses the segmentation probability map and the color probability map from which the borderline has been removed in S402, and extracts the connected components connected by applying CCA in S403 as components of the graph of the graph image. Extract and trace graph components.
Further, the component extraction unit 14 may discard, among the connected components configured by connecting pixels, components that deviate from the shapes of the components estimated from the segmentation probability map for each graph type.
For example, in a bar chart, connected components that are not rectangular shaped may be discarded, and in a pie chart, connected components that are not pie slice shaped may be discarded.

S405で、コンポーネント抽出部14は、S404で抽出されたコンポーネントを必要に応じて補正する。
S403およびS404では、隣接する画素を、互いに同様の色を持つ場合に連結するので、例えば、グラフのコンポーネントが、単色ではなく、色のグラデーションやテクスチャを有する場合や、3D効果が付与されている場合等に、本来は連結されるべき画素が連結されないおそれがある。
本実施形態では、図3のS3で生成された色(主要色)の確率マップやセグメンテーションの確率マップを用いるので、確率マップから推定されるグラフのコンポーネントの色彩や形状に基づいて、S404で抽出されたグラフのコンポーネントを補正することができる。
In S405, the component extraction unit 14 corrects the components extracted in S404 as necessary.
In S403 and S404, adjacent pixels are connected if they have similar colors to each other. In some cases, pixels that should be connected may not be connected.
In this embodiment, the color (main color) probability map and the segmentation probability map generated in S3 of FIG. You can correct the components of the modified graph.

図9は、グラフ画像解析装置1のコンポーネント抽出部14が、棒グラフの確率マップを使用して棒グラフ画像から棒グラフのコンポーネントを抽出する一例を説明する図である。
図9を参照して、横棒グラフは、Y座標軸に年を、X座標軸に石油生産量を表示しており、各年の石油生産量が1つのバーセグメントを構成しており、1つのバーセグメントがさらに、リージョンA~Fおよび他のリージョンの各サブセグメントにブレークダウンされている。
コンポーネント抽出部14が、棒グラフについてのコンポーネント抽出処理を実行することにより、6つのバーセグメントのそれぞれのサブセグメントが、太枠で囲まれていることから理解されるように、コンポーネントとして抽出されている。
FIG. 9 is a diagram illustrating an example in which the component extraction unit 14 of the graph image analysis device 1 extracts a bar graph component from a bar graph image using a bar graph probability map.
Referring to FIG. 9, a horizontal bar chart displays years on the Y-coordinate axis and oil production on the X-coordinate axis, with each year's oil production comprising one bar segment and one bar segment is further broken down into sub-segments of regions A-F and other regions.
By the component extraction unit 14 executing component extraction processing for the bar graph, each sub-segment of the six bar segments is extracted as a component, as can be understood from the fact that it is surrounded by a thick frame. .

例えば、図8のS401~S404までの処理を実行した段階で、図9中のある年のバーセグメントの一部が、それぞれのリージョンのサブセグメントに区分されていないものとする。本実施形態では、図8のS405の補正処理を実行することにより、色の確率マップおよびセグメンテーションの確率マップを用いて、色が相互に類似するため分離するのが困難な複数のコンポーネントをそれぞれ別個に抽出することができる。 For example, it is assumed that some of the bar segments of a certain year in FIG. 9 have not been divided into sub-segments of respective regions at the stage where the processing from S401 to S404 in FIG. 8 has been executed. In this embodiment, by executing the correction processing in S405 of FIG. 8, a plurality of components that are difficult to separate due to their similar colors can be individually separated using the color probability map and the segmentation probability map. can be extracted to

(第2のグラフコンポーネント抽出処理)
図10は、グラフ画像解析装置1のコンポーネント抽出部14が線グラフについて実行する図3のS4のコンポーネント抽出(グラフトレース)処理の詳細処理手順の一例を示すフローチャートである。
S411で、グラフ画像解析装置1のコンポーネント抽出部14は、線グラフの存在範囲を算出する。
(Second graph component extraction process)
FIG. 10 is a flowchart showing an example of a detailed processing procedure of the component extraction (graph tracing) process of S4 in FIG.
In S411, the component extraction unit 14 of the graph image analysis device 1 calculates the existence range of the line graph.

具体的には、コンポーネント抽出部14は、線グラフが存在するX座標範囲を取得することにより、線グラフの始点と終点とを検出する。S411では、コンポーネント抽出部14は、図3のS3で生成された複数の線種の確率マップ(図6(b)~図6(e)では4種類の線種)を各画素位置について平均して、線確率(Line Probability)マップを予め算出しているものとする。
コンポーネント抽出部14は、Y座標軸方向に沿って存在確率の和を算出することにより、各X座標軸におけるスタックされた(足し合わされた)線の存在確率を算出する。次に、X座標軸上の線の存在分布を取得するため、コンポーネント抽出部14は、閾値θthを使用してスタックされた線の存在確率を二値化する。こうして、線グラフの存在範囲は、線の存在分布のクラスタの、X座標軸上の最小値および最大値として取得される。このように、本実施形態では、凡例の領域を参照して線グラフの存在範囲を画定する必要がなく、線グラフの存在範囲外に凡例を含まない線グラフのグラフ画像であっても、線グラフをトレースすることができる。
Specifically, the component extraction unit 14 detects the start point and end point of the line graph by acquiring the X-coordinate range in which the line graph exists. In S411, the component extraction unit 14 averages the probability maps of the plurality of line types generated in S3 of FIG. 3 (four types of line types in FIGS. 6B to 6E) for each pixel position. It is assumed that a line probability map is calculated in advance.
The component extraction unit 14 calculates the existence probability of the stacked (added) lines on each X coordinate axis by calculating the sum of the existence probabilities along the Y coordinate axis direction. Next, in order to obtain the existence distribution of lines on the X coordinate axis, the component extraction unit 14 binarizes the existence probability of the stacked lines using the threshold θth . Thus, the existence range of the line graph is obtained as the minimum and maximum values on the X coordinate axis of the cluster of the line existence distribution. As described above, in the present embodiment, there is no need to refer to the region of the legend to define the existence range of the line graph. Graphs can be traced.

S412で、コンポーネント抽出部14は、線グラフの数をカウントする。
具体的には、コンポーネント抽出部14は、閾値pthを使用して線確率マップを二値化し、二値化された線確率マップを、各X座標位置で、Y座標軸に沿って走査することにより、X座標軸上の画素クラスタの数をカウントする。こうして、線グラフの数は、X座標軸上の画素クラスタの数を使用して取得される。
In S412, the component extraction unit 14 counts the number of line graphs.
Specifically, the component extraction unit 14 binarizes the line probability map using the threshold pth , and scans the binarized line probability map along the Y coordinate axis at each X coordinate position. counts the number of pixel clusters on the X coordinate axis. Thus, the number of line graphs is obtained using the number of pixel clusters on the X coordinate axis.

S413で、コンポーネント抽出部14は、線形計画法(Linear Programming:LP)を適用して、各X座標でのすべての線のコストを算出していく。
S414で、コンポーネント抽出部14は、S413ですべての線のコストの合計が最小となる画素上に、すべての線を同時にトレースしていく。
In S413, the component extraction unit 14 applies linear programming (LP) to calculate the cost of all lines at each X coordinate.
In S414, the component extraction unit 14 simultaneously traces all the lines onto the pixel that minimizes the total cost of all the lines in S413.

RGB色空間上の色に基づき連結するCCAは、ドットで線を描画する線グラフには適用が困難である。本実施形態は、線形計画法(LP)を用いて、線グラフをトレースする。
線形計画法(LP)とは、一次の不等式または一次式で表される制約条件のもとで、一次式で表される目的関数を最大または最小にする値を求めるアルゴリズムである。
具体的には、本実施形態は、線グラフの複数の線のそれぞれを、有向グラフのパスと見做して、線形計画法を適用し、有向グラフのフローのコストを最小化するよう、線グラフをトレースする。
CCA that connects based on colors in the RGB color space is difficult to apply to line graphs that draw lines with dots. The present embodiment uses linear programming (LP) to trace line graphs.
Linear programming (LP) is an algorithm for finding a value that maximizes or minimizes an objective function expressed by a linear expression under constraints expressed by a linear inequality or linear expression.
Specifically, the present embodiment regards each of a plurality of lines in a line graph as a path in a directed graph and applies linear programming to minimize the flow cost of the directed graph. to trace.

コンポーネント抽出部14は、高い線確率(line probability)を持つ画素をノードとしてサンプリングし、X軸方向に隣接するノードを接続することで、グラフをトレースする。本実施形態では、線形計画法を適用して、画素から、複数の線のいずれかへの割り当てを決定する。線形計画法を適用することで、より複雑な再帰アルゴリズムに対応することができ、線グラフのすべての線についてのコスト関数を同時に最適化することができる。 The component extraction unit 14 samples pixels with high line probabilities as nodes and connects adjacent nodes in the X-axis direction to trace the graph. In this embodiment, linear programming is applied to determine the assignment from pixels to any of the lines. By applying linear programming, more complex recursive algorithms can be accommodated and the cost function for all lines of the line graph can be optimized simultaneously.

線グラフが複数の線を含み、複数の線のそれぞれを個別にトレースしていく場合、複数の線が重なる区間があると、ある線が他の線に遮蔽されて(occluded)、遮蔽された線が正確にトレースできないおそれがある。
本実施形態では、線形計画法を適用して、各X座標について、複数の線(複数の線種の複数の線であってよい)を一度にトレースしていく。また、本実施形態では、トレースの各サンプル点について、複数の線のそれぞれが、他の線に遮蔽される状態か否かを示す、遮蔽(occlusion)フラグを保持し、この遮蔽フラグを参照して、複数の線を同時にトレースしていく。
When a line graph contains multiple lines, and each of the multiple lines is traced individually, if there is a section where multiple lines overlap, a line will be occluded by the other lines, resulting in an occluded line. Lines may not be traced accurately.
In this embodiment, linear programming is applied to trace multiple lines (which may be multiple lines of multiple line types) for each X coordinate at once. In addition, in the present embodiment, an occlusion flag indicating whether or not each of a plurality of lines is occluded by another line is held for each sample point of the trace, and this occlusion flag is referred to. to trace multiple lines at the same time.

コンポーネント抽出部14は、S411で算出された線グラフの存在範囲(X座標範囲)と、S412でカウント線グラフの数を使用して、検出された線グラフの始点から終点までX軸に沿って、線形計画法(LP)により線グラフをトレースしていく。
具体的には、コンポーネント抽出部14は、二値化変数b(b∈{0,1})を用いて、二値化された線確率マップ(セグメンテーションマップ)中の2つの点を接続する線を推定する。
Using the existence range (X coordinate range) of the line graph calculated in S411 and the number of count line graphs in S412, the component extraction unit 14 extracts the detected line graph from the start point to the end point along the X axis. , the line graph is traced by linear programming (LP).
Specifically, the component extraction unit 14 extracts a line connecting two points in the binarized line probability map (segmentation map) using the binarization variable b (b∈{0, 1}). to estimate

コンポーネント抽出部14は、左端のX座標xから開始して、Y座標軸に沿って垂直方向に画素を走査し、各X座標xについて、線グラフの数nlineの最大2倍の点をサンプリングする。
次に、コンポーネント抽出部14は、以下の式1に示される、コスト関数cおよび二値化変数bからなる線形計画法(LP)関数を最小化する。
The component extractor 14 scans the pixels vertically along the Y-coordinate axis, starting from the leftmost X-coordinate xi , and for each X-coordinate xi , points up to twice the number n line of the line graph. to sample.
Next, the component extraction unit 14 minimizes a linear programming (LP) function consisting of a cost function c and a binarized variable b, shown in Equation 1 below.

Figure 0007132459000001
(式1)
Figure 0007132459000001
(Formula 1)

ここで、iは、X座標のサンプル点のインデックスである。
およびY´ は、それぞれ、サンプル点xおよびxi+1におけるY座標のセットである(すなわち、Y´ =Yi+1)。lは、線のインデックスである。変数zおよびz´は、それぞれ、第1のサンプル点(x,y)または第2のサンプル点(xi+1,y´)が遮蔽されているか否かを示す。二値化変数b(x,y,y´,l,z,z´)は、それぞれ、第1のサンプル点および第2のサンプル点が同じl番目の線上にあるか否かのフローを示す。
where i is the index of the sample point in the X coordinate.
Yi and Y'i are the set of Y coordinates at sample points xi and xi +1 , respectively (ie, Y'i = Yi +1 ). l is the line index. The variables z and z ' respectively indicate whether the first sample point (x i ,y) or the second sample point (x i+1 ,y ' ) is occluded. The binarized variable b(x i , y, y , l, z, z ) respectively indicates whether the first sample point and the second sample point are on the same l-th line. show.

図11は、グラフ画像解析装置1のコンポーネント抽出部14が線グラフについて実行する線トレースアルゴリズムを単一の線を例として説明する図である。
図11を参照して、1つの線(ライン)をトレースする場合、隣接する2つのサンプル点について、4つの前景/遮蔽の組み合わせが考えられる。すなわち、第1のサンプル点または第2のサンプル点が、それぞれ、前景となるか遮蔽されるかである。
コンポーネント抽出部14は、線1の各サンプル点について、当該線1が前景かあるいは遮蔽されているかの状態を保持する遮蔽フラグを有する。各遮蔽フラグにおいて、左側のスロットは、遮蔽されていない(すなわち、前景である)(z=0)である場合にオンとなり、右側のスロットは、遮蔽されている(z=1)である場合にオンとなる。
図11に示す例において、トレースされるべき線は単一の線であり、他の線による遮蔽は発生しない。
このため、LP関数の解は、二値化変数b(x,y,y´,l=1,z=0,z´=0)=1を得、隣接する2つのサンプル点の間に、図11に示すように実線がトレースされる。
FIG. 11 is a diagram for explaining the line tracing algorithm executed by the component extraction unit 14 of the graph image analysis apparatus 1 for the line graph, taking a single line as an example.
Referring to FIG. 11, when tracing one line, four foreground/occlusion combinations are possible for two adjacent sample points. That is, whether the first sample point or the second sample point are foreground or occluded, respectively.
The component extraction unit 14 has an occluded flag for each sample point of the line 1, which indicates whether the line 1 is in the foreground or occluded. For each occluded flag, the left slot is on if it is unoccluded (i.e., in the foreground) (z=0), and the right slot if it is occluded (z=1). turn on at
In the example shown in FIG. 11, the line to be traced is a single line and no occlusion by other lines occurs.
Thus, the solution of the LP function obtains the binarized variable b(x i , y, y , l=1, z=0, z =0)=1 and between two adjacent sample points , a solid line is traced as shown in FIG.

図12は、グラフ画像解析装置1のコンポーネント抽出部14が線グラフについて実行する線トレースアルゴリズムを複数の線を例として説明する図である。
図12を参照して、部分的に遮蔽されている2本の線をトレースする場合、各線の各サンプル点において、4つのパターンが考えられる。すなわち、各サンプル点において、線1および線2がそれぞれ、前景となるか遮蔽されるかである。
コンポーネント抽出部14は、各サンプル点において、線1および線2について、前景かあるいは遮蔽されているかの状態を保持する遮蔽フラグをそれぞれ有する。
FIG. 12 is a diagram for explaining the line tracing algorithm executed by the component extraction unit 14 of the graph image analysis apparatus 1 for a line graph, taking a plurality of lines as an example.
Referring to FIG. 12, when tracing two partially occluded lines, there are four possible patterns at each sample point on each line. That is, at each sample point, line 1 and line 2 are foregrounded or occluded, respectively.
The component extraction unit 14 has an occluded flag that holds the state of foreground or occluded for line 1 and line 2 at each sample point.

図12に示す例において、線2(一点鎖線)は、サンプル点Xi+1およびサンプル点Xi+2の間で、部分的に線1(実線)により遮蔽されている。この場合、線2が遮蔽されている区間における遮蔽フラグは、線1について前景のスロットがオン、線2について遮蔽のスロットがオンとなる。
コンポーネント抽出部14は、線形計画法(LP)を用いて、図12に示すように、各線の遮蔽フラグにより各線が各サンプル点において前景かあるいは遮蔽されているかの状態を保持して参照することにより、2本の線を同時にトレースしていく。
なお、コンポーネント抽出部14は、式1に示す線形計画法(LP)を用いて、複数の線を再帰的にトレースしていく。図12は、線形計画法(LP)を解いた後の最終的なフローのみを示している。
式1に示すLPのコスト関数cは、以下の式2で定義される。
In the example shown in FIG. 12, line 2 (dashed line) is partially obscured by line 1 (solid line) between sample points X i+1 and X i+2 . In this case, the shielding flag in the section where the line 2 is shielded turns on the foreground slot for the line 1 and turns on the shielding slot for the line 2 .
The component extraction unit 14 uses linear programming (LP) to store and refer to the state of whether each line is in the foreground or occluded at each sample point based on the shielding flag of each line, as shown in FIG. traces two lines at the same time.
Note that the component extraction unit 14 recursively traces a plurality of lines using linear programming (LP) shown in Equation 1. FIG. 12 shows only the final flow after solving the linear programming (LP).
The LP cost function c shown in Equation 1 is defined by Equation 2 below.

Figure 0007132459000002
(式2)
Figure 0007132459000002
(Formula 2)

ここで、Ccolは、トレースされる線の色における一貫性を示すコスト項である。
styは、線のスタイル(線種)における一貫性を示すコスト項である。Cfgは、線が前景である確率を示すコスト項であり、Csmは、トレースされる線の隣接する画素同士を、過度に急峻な傾きなしに平滑に連結するための線の平滑性を示すコスト項である。式2のコスト関数cはさらに、遮蔽フラグ(z,z´)に基づいたバイアス重みλoccの項を有する。式2に示すコスト関数cは、線の前景および遮蔽に関する項を持つことにより、複数の線を同時にフィッティングしていくことを可能にする。
where C col is a cost term that indicates the consistency in color of traced lines.
C sty is a cost term that indicates consistency in line style. C fg is a cost term that indicates the probability that a line is foreground, and C sm is the smoothness of the line to connect adjacent pixels of the traced line smoothly without excessively steep slopes. is the cost term shown. The cost function c in Equation 2 also has a bias weight λ occ term based on the occlusion flag (z,z′). The cost function c shown in Equation 2 allows multiple lines to be fitted simultaneously by having terms for the foreground and occlusion of the lines.

各コスト項を算出するため、k-means法を用いて、ソース画像Iと4次元の線種空間Sに基づき、各線の特徴空間(4+3次元)における特徴ベクトルの重心を推定する。
式2における各コスト項は、それぞれ、以下の式3~式6のように算出される。
To calculate each cost term, the k-means method is used to estimate the centroid of the feature vector in the feature space (4+3 dimensions) of each line based on the source image I and the 4-dimensional linetype space S.
Each cost term in Equation 2 is calculated as in Equations 3 to 6 below.

Figure 0007132459000003
(式3)
Figure 0007132459000003
(Formula 3)

Figure 0007132459000004
(式4)
Figure 0007132459000004
(Formula 4)

Figure 0007132459000005
(式5)
Figure 0007132459000005
(Formula 5)

Figure 0007132459000006
(式6)
Figure 0007132459000006
(Formula 6)

ここで、h=y´-y、Δ=(h+dα(αは定数)、Hは画像の高さである。
(x,y)は、2つの隣接するサンプル点の間の補間点(x,y),(x+r,y±1),…,(xi+1,y´)を通過する。
ここで、r=d/(y-y´)であり、±はyからy´へが、上昇か否かに依存する。各重み関数は、以下の式7~式9のように算出される。
where h=y′−y, Δ=(h 2 +d 2 ) α (α is a constant), and H is the height of the image.
(x * , y * ) passes through interpolation points (x i , y), (x i +r, y±1), . . . (x i+1 , y′) between two adjacent sample points.
where r=d/(y−y′) and ± depends on whether y to y′ is rising or not. Each weighting function is calculated as in Equations 7 to 9 below.

Figure 0007132459000007
(式7)
Figure 0007132459000007
(Formula 7)

Figure 0007132459000008
(式8)
Figure 0007132459000008
(Formula 8)

Figure 0007132459000009
(式9)
Figure 0007132459000009
(Formula 9)

LPによる再帰的な線トレースを完結するため、式1に示すLP関数は、以下の制約を用いて最小化されてよい。
・各サンプル点に入力する線と出力する線の数は等しい。
・各線の各非遮蔽(non-occluded)サンプル点に入力する線の数は最大1である。
・最適化の間のbの値は、[0,1]の範囲内である。
・左端のxインデックスで出力する線の数は、ライン数nlineである。
To complete the recursive line tracing with LP, the LP function shown in Equation 1 may be minimized with the following constraints.
・The number of lines input to each sample point is equal to the number of lines output.
• The number of lines entering each non-occluded sample point for each line is at most one.
• The value of b during optimization is in the range [0,1].
• The number of lines to output at the leftmost x index is the number of lines n line .

このように、本実施形態では、コンポーネント抽出部14は、線形計画法により、線グラフの確率マップ、および線グラフの線種や色の一貫性、線の平滑性等の線グラフの属性を考慮した評価関数を用いて、グラフ画像中の凡例の情報に依ることなく、高精度かつより少ない計算負荷で、線グラフをトレースしていくことができる。 As described above, in the present embodiment, the component extraction unit 14 uses linear programming to consider the probability map of the line graph and the attributes of the line graph such as the consistency of the line type and color of the line graph and the smoothness of the line. Using the evaluation function described above, the line graph can be traced with high accuracy and less computational load without relying on the legend information in the graph image.

さらに本実施形態では、サンプル点ごとに線の数だけ設けられ、前景または遮蔽のいずれかの状態を示す遮蔽フラグを使用して、線形計画法により、複数の線を同時にトレースしていくことができ、より高パフォーマンスな線グラフのトレースが可能となる。
あるいは、コンポーネント抽出部14は、上記の評価関数を用いた動的計画法や確率マップを用いることなく、検出された線グラフの始点と終点との間における、線グラフの線種や色の一貫性、線の平滑性等の線グラフの属性に基づいて、グラフ画像に含まれる線グラフをトレースしてもよい。
Furthermore, in this embodiment, a plurality of lines can be traced simultaneously by linear programming using an occlusion flag that is provided for each sample point as many as the number of lines and indicates either the foreground or occlusion state. This allows for higher performance tracing of line graphs.
Alternatively, the component extraction unit 14 can detect consistency of the line type and color of the line graph between the start point and the end point of the detected line graph without using the dynamic programming method using the evaluation function or the probability map. Line graphs included in the graph image may be traced based on line graph attributes such as line smoothness and line smoothness.

図10に戻り、S415で、コンポーネント抽出部14は、トレースされた線グラフが、S411で検出された終点に到達したか否かを判定する。トレースされた線グラフが終点に到達しない間(S415:N)、S413に戻り、コンポーネント抽出部14は、S413およびS414の処理を繰り返す。一方、トレースされた線グラフが終点に到達した場合(S415:Y)、S416に進む。
S416で、コンポーネント抽出部14は、トレースされた線グラフのそれぞれを、線グラフのコンポーネントとして抽出して、S5に進む。
Returning to FIG. 10, in S415, the component extraction unit 14 determines whether or not the traced line graph has reached the end point detected in S411. While the traced line graph does not reach the end point (S415:N), the process returns to S413, and the component extraction unit 14 repeats the processes of S413 and S414. On the other hand, when the traced line graph reaches the end point (S415: Y), the process proceeds to S416.
In S416, the component extraction unit 14 extracts each traced line graph as a component of the line graph, and proceeds to S5.

図13は、グラフ画像解析装置1のコンポーネント抽出部14が線グラフの確率マップを使用して線グラフ画像からトレースした線グラフの一例を説明する図である。
図13を参照して、凡例Aの線グラフは実線で、凡例Bの線グラフは破線で、凡例Cの線グラフは一点鎖線で、それぞれトレースされている。それぞれの凡例A~Cは互いに交差する2つの線グラフを含み、太線グラフは各年の値をプロットしたもので急峻な波形を有し、細線グラフは複数年の移動平均を示すもので平滑な波形を有する。
FIG. 13 is a diagram for explaining an example of a line graph traced from a line graph image by the component extraction unit 14 of the graph image analysis device 1 using a line graph probability map.
Referring to FIG. 13, the line graph of Legend A is traced by a solid line, the line graph of Legend B is traced by a dashed line, and the line graph of Legend C is traced by a dashed line. Each legend A-C contains two line graphs that intersect each other: the thick line graph plots the values for each year and has a steep waveform, and the thin line graph shows the multi-year moving average and has a smooth waveform. It has a waveform.

図13に示されるように、例えば、2つの線グラフが交差する場合、本実施形態では、交差点からいずれの方向に線をトレースしていくかを、線の平滑性のコスト関数Csmを用いて評価するので、たとえ色や線種が相互に同一であったとしても、太線グラフと交差する細線グラフを、太線グラフから峻別して、正確にトレースしていくことができる。As shown in FIG. 13, for example, when two line graphs intersect, in this embodiment, the line smoothness cost function C sm is used to determine in which direction the line is traced from the intersection. Therefore, even if the colors and line types are the same, the thin line graph that intersects with the thick line graph can be distinguished from the thick line graph and accurately traced.

図14は、グラフ画像解析装置1の値抽出部15が線グラフ画像からグラフの値を抽出(生成)する一例を説明する図である。
図14を参照して、グラフ画像をスキャンすることにより検出されたテキストボックスが矩形領域で示されている。値抽出部15は、グラフ画像全体を走査するので、図14では、X座標軸およびY座標軸のラベルの他、線グラフの描画領域で線グラフに付与されたラベルが、テキストボックスとして検出されている。本実施形態において、値抽出部15は、検出したテキストボックスのテキストを認識して、数値が認識された場合、認識された数値からグラフのスケールを算出して、各ラベルに対応するグラフの値を生成する。
FIG. 14 is a diagram illustrating an example of extracting (generating) graph values from a line graph image by the value extracting unit 15 of the graph image analysis apparatus 1. FIG.
Referring to FIG. 14, text boxes detected by scanning the graph image are indicated by rectangular areas. Since the value extraction unit 15 scans the entire graph image, in FIG. 14, in addition to the labels of the X coordinate axis and the Y coordinate axis, labels given to the line graph in the drawing area of the line graph are detected as text boxes. . In this embodiment, the value extracting unit 15 recognizes the text in the detected text box, and when numerical values are recognized, calculates the scale of the graph from the recognized numerical values, and calculates the graph value corresponding to each label. to generate

以上説明したように、本実施形態によれば、グラフ画像解析装置は、グラフ画像をグラフ種別ごとに分類し、グラフ種別ごとに異なるグラフ画像の確率マップを算出し、算出された確率マップに基づいて、グラフ画像中の複数のコンポーネントを抽出して、抽出された複数のコンポーネントのグラフをトレースする。グラフ画像解析装置はさらに、抽出されたグラフ画像のコンポーネントの値を抽出し、トレースされたグラフに、抽出されたコンポーネントの値を付加して出力する。 As described above, according to the present embodiment, the graph image analysis apparatus classifies graph images by graph type, calculates probability maps of different graph images for each graph type, and based on the calculated probability maps, to extract a plurality of components in the graph image and trace the graph of the extracted plurality of components. The graph image analysis device further extracts the values of the components of the extracted graph image, adds the values of the extracted components to the traced graph, and outputs the traced graph.

グラフ種別ごとに異なる確率マップを算出し、算出された確率マップを用いて、グラフ画像からグラフの各コンポーネントを汎用的かつ効果的に分離することができる。
したがって、より多様なグラフの画像をより高速かつ高精度に解析することが可能となり、ウェブ上などに多数散在するグラフ画像の可用性が向上する。
A different probability map is calculated for each graph type, and each component of the graph can be separated from the graph image in a versatile and effective manner using the calculated probability map.
Therefore, it becomes possible to analyze a wider variety of graph images at a higher speed and with a higher degree of accuracy, and the availability of many graph images scattered on the web or the like is improved.

(実施形態2)
以下、図15を参照して、本発明の実施形態2を、上記実施形態1と異なる点についてのみ詳細に説明する。実施形態2は、線グラフについて実行する図3のコンポーネント抽出処理において、動的計画法(Dynamic Programming:DP)を適用して、線グラフの線種ごとに線をトレースしていく。
図15は、本実施形態に係るグラフ画像解析装置1のコンポーネント抽出部14が線グラフについて実行する図3のS4のコンポーネント抽出(グラフトレース)処理の詳細処理手順の一例を示すフローチャートである。
図15のS411およびS412の処理は、図10に示す実施形態1のS411およびS412の処理と同様である。
(Embodiment 2)
Embodiment 2 of the present invention will be described in detail below with reference to FIG. 15 only with respect to the differences from Embodiment 1 described above. Embodiment 2 applies dynamic programming (DP) in the component extraction process of FIG. 3 executed for the line graph to trace lines for each line type of the line graph.
FIG. 15 is a flowchart showing an example of a detailed processing procedure of the component extraction (graph tracing) process of S4 in FIG.
The processes of S411 and S412 of FIG. 15 are the same as the processes of S411 and S412 of the first embodiment shown in FIG.

S413aで、コンポーネント抽出部14は、動的計画法(Dynamic Programming:DP)を適用して、隣接画素のコストを算出していく。
S414aで、コンポーネント抽出部14は、S413でコストが最小となる画素上に線をトレースする。コンポーネント抽出部14は、複数の線種の線グラフのそれぞれを、順次、個別にトレースしていく。
In S413a, the component extraction unit 14 applies dynamic programming (DP) to calculate the cost of adjacent pixels.
At S414a, the component extraction unit 14 traces a line on the pixel with the lowest cost at S413. The component extraction unit 14 sequentially and individually traces each of the line graphs of the plurality of line types.

本実施形態は、動的計画法(Dynamic Programming)を用いて、線グラフをトレースする。
動的計画法(DP)とは、対象となる問題を複数の部分問題に分割し、部分問題の計算結果を記録しながら解いていくアルゴリズムである。
本実施形態では、動的計画法を適用して、線グラフの存在範囲内の各画素のコストを算出していく。途中の計算結果を再利用することで、計算の繰り返しを回避し、計算効率を向上させることができる。
This embodiment traces a line graph using dynamic programming.
Dynamic programming (DP) is an algorithm that divides a target problem into a plurality of subproblems and solves them while recording the calculation results of the subproblems.
In this embodiment, dynamic programming is applied to calculate the cost of each pixel within the existence range of the line graph. By reusing intermediate calculation results, repetition of calculation can be avoided and calculation efficiency can be improved.

コンポーネント抽出部14は、S411で算出された線グラフの存在範囲と、S412でカウント線グラフの数を使用して、検出された線グラフの始点から終点までX軸に沿って、動的計画法により線グラフをトレースしていく。
具体的には、コンポーネント抽出部14は、テーブルWを使用して、トレースされる線上の点(画素)のトータルコストを保持していく。テーブルWは、座標x=(x,y)の各値を保持する。
Wの値は、以下の式10により算出される。
Using the existence range of the line graph calculated in S411 and the number of count line graphs in S412, the component extraction unit 14 performs dynamic programming along the X-axis from the start point to the end point of the detected line graph. The line graph is traced by
Specifically, the component extraction unit 14 uses the table W to hold the total cost of points (pixels) on the traced line. Table W holds each value of coordinate x=(x, y).
The value of W is calculated by Equation 10 below.

Figure 0007132459000010
(式10)
Figure 0007132459000010
(Formula 10)

ここで、xは、画素座標をX=(i,j)として表す。xprevは、xのx座標上直前の画素(直前にトレースした最終点)である。
prevは、直前の画素i-1までのx座標の画素群であり、以下の式11で表す。
Here, x represents pixel coordinates as X=(i, j). x prev is the previous pixel on the x coordinate of x (last point traced immediately before).
X prev is a pixel group of x-coordinates up to the immediately preceding pixel i−1, and is expressed by Equation 11 below.

Figure 0007132459000011
(式11)
Figure 0007132459000011
(Formula 11)

xがどのトレースされる線に属するかを決定するため、コンポーネント抽出部14は、動的計画法により、式11のXprevから、式10においてコスト関数の値を最小化する最良のものを見出す。To determine which traced line x belongs to, the component extractor 14 uses dynamic programming to find the best one that minimizes the value of the cost function in equation 10 from X prev in equation 11. .

本実施形態では、複数の評価関数、例えば、式10に示されるように、5つの評価関数として、Ecolor、Epattern、Esmooth、Eprob、およびEduplを使用して、これらの評価関数で評価されるコストが最小になるよう、各点(画素)のコストを算出する。
評価関数Ecolorは、トレースされる線の色における一貫性を維持する色の関数である。動的計画法で、xprevが属するトレースされた線の情報を保持しているので、この線の情報から、xprevの平均の線色を算出することができる。Ecolorは、平均の線色とxの画素色との色差により算出される。
In this embodiment, using a plurality of evaluation functions, for example, E color , E pattern , E smooth , E prob , and E dupl as five evaluation functions as shown in Equation 10, these evaluation functions Calculate the cost of each point (pixel) so that the cost evaluated by is minimized.
The evaluation function E color is a function of color that maintains consistency in the color of traced lines. Since the dynamic programming holds the information of the traced line to which xprev belongs, the average line color of xprev can be calculated from this line information. E color is calculated by the color difference between the average line color and the pixel color of x.

評価関数Epatternは、トレースされる線の線種(線パターン)における一貫性を維持する線種の関数である。評価関数Epatternは、評価関数Ecolorと同様、xprevの平均の線種とxの線種との間の差により算出される。
評価関数Esmoothは、トレースされる線の隣接する画素同士を、過度に急峻な傾きなしに平滑に連結するための線の平滑性の関数である。評価関数Esmoothは、xprevの傾きとxの傾きの絶対差により算出される。
The evaluation function E pattern is a line type function that maintains consistency in the line type (line pattern) of traced lines. Similar to the evaluation function E color , the evaluation function E pattern is calculated by the difference between the average line type of xprev and the line type of x.
The evaluation function E smooth is a line smoothness function for smoothly connecting adjacent pixels of a traced line without excessively steep slopes. The evaluation function E smooth is calculated from the absolute difference between the slope of xprev and the slope of x.

評価関数Eprobは、トレースされる線を、高い存在確率の値を持つ画素に沿って繋げるための存在確率の関数である。評価関数Eprobは、複数の線種の存在確率の平均値(mean value)により算出される。
評価関数Eduplは、同一の画素上に複数の線がトレースされた場合にペナルティを与える重複の関数である。xがすでに他の線でトレースされている場合、評価関数Eduplは1を返し、それ以外の場合は0を返す。
λ1~λ5は、各評価関数の重み付け係数である。
The evaluation function E prob is a function of existence probability for connecting traced lines along pixels with high existence probability values. The evaluation function E prob is calculated from the mean value of the existence probabilities of a plurality of line types.
The evaluation function E dupl is an overlap function that penalizes multiple lines traced on the same pixel. The evaluation function E_dupl returns 1 if x has already been traced by another line, and 0 otherwise.
λ1 to λ5 are weighting coefficients for each evaluation function.

コンポーネント抽出部14は、上記のように複数の評価関数を用いて、検出された線グラフの始点から終点までのX座標の各点において、次のトレースすべき点(画素)として、最小のコストの点(画素)を順に決定していく。
本実施形態では、例えば、線種の評価関数Epatternや、存在確率の評価関数Eprob等で、図3のS3で生成された線グラフの確率マップ(図6(b)~図6(e)では4種類の線種の確率マップ)を参照してよい。例えば、4つの線種のいずれにも当てはまらない点(画素)は、トレースしないと判断することができる。
Using a plurality of evaluation functions as described above, the component extraction unit 14 selects the point (pixel) to be traced next at each point on the X coordinate from the start point to the end point of the detected line graph with the minimum cost points (pixels) are determined in order.
In this embodiment, for example, the line type evaluation function E pattern , existence probability evaluation function E prob , etc., are used to generate the line graph probability maps (FIGS. 6B to 6E ) may refer to probability maps for the four line types). For example, points (pixels) that do not fit into any of the four line types can be determined not to be traced.

図15のS415およびS416の処理は、図10に示す実施形態1のS415およびS416の処理と同様である。
このように、本実施形態では、動的計画法により、線グラフの確率マップ、および線グラフの線種や色の一貫性、線の平滑性等の線グラフの属性を考慮した評価関数を用いて、グラフ画像中の凡例の情報に依ることなく、高精度かつより少ない計算負荷で、線グラフをトレースしていくことができる。
The processes of S415 and S416 of FIG. 15 are the same as the processes of S415 and S416 of the first embodiment shown in FIG.
As described above, in the present embodiment, dynamic programming is used to use an evaluation function that considers line graph attributes such as the probability map of the line graph, the line type and color consistency of the line graph, and the smoothness of the line. Therefore, the line graph can be traced with high accuracy and less computational load without relying on the legend information in the graph image.

<グラフ画像解析装置のハードウエア構成>
図16は、本実施形態に係るグラフ画像解析装置1のハードウエア構成の非限定的一例を示す図である。
本実施形態に係るグラフ画像解析装置1は、単一または複数の、あらゆるコンピュータ、モバイルデバイス、または他のいかなる処理プラットフォーム上にも実装することができる。
図16を参照して、グラフ画像解析装置1は、単一のコンピュータに実装される例が示されているが、本実施形態に係るグラフ画像解析装置1は、複数のコンピュータを含むコンピュータシステムに実装されてよい。複数のコンピュータは、有線または無線のネットワークにより相互通信可能に接続されてよい。
<Hardware configuration of graph image analysis device>
FIG. 16 is a diagram showing a non-limiting example of the hardware configuration of the graph image analysis device 1 according to this embodiment.
The graph image analysis device 1 according to this embodiment can be implemented on any single or multiple computers, mobile devices, or any other processing platforms.
With reference to FIG. 16, an example in which the graph image analysis device 1 is implemented in a single computer is shown. may be implemented. A plurality of computers may be interconnectably connected by a wired or wireless network.

図16に示すように、グラフ画像解析装置1は、CPU161と、ROM162と、RAM163と、HDD164と、入力部165と、表示部166と、通信I/F167と、システムバス168とを備えてよい。グラフ画像解析装置1はまた、外部メモリを備えてよい。
CPU(Central Processing Unit)161は、グラフ画像解析装置1における動作を統括的に制御するものであり、データ伝送路であるシステムバス168を介して、各構成部(162~16)を制御する。
グラフ画像解析装置1はまた、GPU(Graphics Processing Unit)を備えてよい。GPUは、CPU121より高い計算機能を有し、複数または多数のGPUを並列して動作させることにより、特に、本実施形態のような機械学習を使用する画像処理アプリケーションに、より高い処理パフォーマンスを提供する。GPUは、通常、プロセッサと共有メモリを含む。それぞれのプロセッサが高速の共有メモリからデータを取得し、共通プログラムを実行することで、同種の計算処理を大量かつ高速に実行する。
As shown in FIG. 16, the graph image analysis apparatus 1 may include a CPU 161, a ROM 162, a RAM 163, an HDD 164, an input section 165, a display section 166, a communication I/F 167, and a system bus 168. . The graph image analysis device 1 may also comprise an external memory.
A CPU (Central Processing Unit) 161 comprehensively controls operations in the graph image analysis apparatus 1, and controls each component (162 to 16) via a system bus 168, which is a data transmission line.
The graph image analysis device 1 may also include a GPU (Graphics Processing Unit). The GPU has higher computational power than the CPU 121, and running multiple or multiple GPUs in parallel provides higher processing performance, especially for image processing applications that use machine learning, such as the present embodiment. do. A GPU typically includes a processor and shared memory. Each processor obtains data from a high-speed shared memory and executes a common program to perform a large amount of the same kind of computation at high speed.

ROM(Read Only Memory)162は、CPU161が処理を実行するために必要な制御プログラム等を記憶する不揮発性メモリである。なお、当該プログラムは、HDD(Hard Disk Drive)164、SSD(Solid State Drive)等の不揮発性メモリや着脱可能な記憶媒体(不図示)等の外部メモリに記憶されていてもよい。
RAM(Random Access Memory)163は、揮発性メモリであり、CPU161の主メモリ、ワークエリア等として機能する。すなわち、CPU161は、処理の実行に際してROM162から必要なプログラム等をRAM163にロードし、当該プログラム等を実行することで各種の機能動作を実現する。
A ROM (Read Only Memory) 162 is a non-volatile memory that stores control programs and the like necessary for the CPU 161 to execute processing. The program may be stored in a non-volatile memory such as a HDD (Hard Disk Drive) 164 or an SSD (Solid State Drive) or an external memory such as a removable storage medium (not shown).
A RAM (Random Access Memory) 163 is a volatile memory and functions as a main memory, a work area, and the like for the CPU 161 . That is, the CPU 161 loads necessary programs and the like from the ROM 162 to the RAM 163 when executing processing, and executes the programs and the like to realize various functional operations.

HDD164は、例えば、CPU161がプログラムを用いた処理を行う際に必要な各種データや各種情報等を記憶している。また、HDD164には、例えば、CPU161がプログラム等を用いた処理を行うことにより得られた各種データや各種情報等が記憶される。
入力部165は、キーボードやマウス等のポインティングデバイスにより構成される。
表示部166は、液晶ディスプレイ(LCD)等のモニターにより構成される。表示部166は、グラフ画像解析処理で使用される各種パラメータや、他の装置との通信で使用される通信パラメータ等をグラフ画像解析装置1へ指示入力するためのGUI(Graphical User Interface)を提供してよい。
The HDD 164 stores, for example, various data and various information necessary when the CPU 161 performs processing using a program. The HDD 164 also stores various data, various information, and the like obtained by the CPU 161 performing processing using programs and the like, for example.
The input unit 165 is configured by a pointing device such as a keyboard and mouse.
The display unit 166 is configured by a monitor such as a liquid crystal display (LCD). The display unit 166 provides a GUI (Graphical User Interface) for inputting instructions to the graph image analysis apparatus 1, such as various parameters used in graph image analysis processing and communication parameters used in communication with other devices. You can

通信I/F167は、グラフ画像解析装置1と外部装置との通信を制御するインタフェースである。
通信I/F167は、ネットワークとのインタフェースを提供し、ネットワークを介して、外部装置との通信を実行する。通信I/F167を介して、外部装置との間で画像データ、各種パラメータ等が送受信される。本実施形態では、通信I/F167は、イーサネット(登録商標)等の通信規格に準拠する有線LAN(Local Area Network)や専用線を介した通信を実行してよい。ただし、本実施形態で利用可能なネットワークはこれに限定されず、無線ネットワークで構成されてもよい。この無線ネットワークは、Bluetooth(登録商標)、ZigBee(登録商標)、UWB(Ultra Wide Band)等の無線PAN(Personal Area Network)を含む。また、Wi-Fi(Wireless Fidelity)(登録商標)等の無線LAN(Local Area Network)や、WiMAX(登録商標)等の無線MAN(Metropolitan Area Network)を含む。さらに、LTE/3G、4G、5G等の無線WAN(Wide Area Network)を含む。なお、ネットワークは、各機器を相互に通信可能に接続し、通信が可能であればよく、通信の規格、規模、構成は上記に限定されない。
The communication I/F 167 is an interface that controls communication between the graph image analysis apparatus 1 and an external device.
A communication I/F 167 provides an interface with a network and performs communication with an external device via the network. Via the communication I/F 167, image data, various parameters, etc. are transmitted/received to/from an external device. In this embodiment, the communication I/F 167 may perform communication via a wired LAN (Local Area Network) conforming to a communication standard such as Ethernet (registered trademark) or a dedicated line. However, the network that can be used in this embodiment is not limited to this, and may be configured as a wireless network. This wireless network includes a wireless PAN (Personal Area Network) such as Bluetooth (registered trademark), ZigBee (registered trademark), and UWB (Ultra Wide Band). It also includes a wireless LAN (Local Area Network) such as Wi-Fi (Wireless Fidelity) (registered trademark) and a wireless MAN (Metropolitan Area Network) such as WiMAX (registered trademark). Furthermore, wireless WANs (Wide Area Networks) such as LTE/3G, 4G, and 5G are included. It should be noted that the network connects each device so as to be able to communicate with each other, and the communication standard, scale, and configuration are not limited to those described above.

図1に示すグラフ画像解析装置1の各要素のうち少なくとも一部の機能は、CPU161がプログラムを実行することで実現することができる。ただし、図1に示すグラフ画像解析装置1の各要素のうち少なくとも一部の機能が専用のハードウエアとして動作するようにしてもよい。この場合、専用のハードウエアは、CPU161の制御に基づいて動作する。 At least some of the functions of the elements of the graph image analysis apparatus 1 shown in FIG. 1 can be realized by the CPU 161 executing a program. However, at least some of the functions of the elements of the graph image analysis apparatus 1 shown in FIG. 1 may operate as dedicated hardware. In this case, the dedicated hardware operates under the control of the CPU 161 .

なお、上記において特定の実施形態が説明されているが、当該実施形態は単なる例示であり、本発明の範囲を限定する意図はない。本明細書に記載された装置及び方法は上記した以外の形態において具現化することができる。また、本発明の範囲から離れることなく、上記した実施形態に対して適宜、省略、置換及び変更をなすこともできる。かかる省略、置換及び変更をなした形態は、請求の範囲に記載されたもの及びこれらの均等物の範疇に含まれ、本発明の技術的範囲に属する。 It should be noted that although specific embodiments are described above, the embodiments are merely examples and are not intended to limit the scope of the invention. The apparatus and methods described herein may be embodied in forms other than those described above. Also, appropriate omissions, substitutions, and modifications may be made to the above-described embodiments without departing from the scope of the invention. Forms with such omissions, substitutions and modifications are included in the scope of what is described in the claims and their equivalents, and belong to the technical scope of the present invention.

1…グラフ画像解析装置、3…入力データセット、4…出力データセット、11…データ取得部、12…グラフ分類部、13…確率マップ生成部、14…コンポーネント抽出部、15…値抽出部、16…出力部、21…入力データ、22…分類用ネットワーク、23…分類結果、24…確率マップ生成用ネットワーク、25…確率マップ、26…グラフトレース結果、27…値検出結果、28…出力データ、161…CPU、162…ROM、163…RAM、164…HDD、165…入力部、166…表示部、167…通信I/F、168…バス 1 Graph image analysis device 3 Input data set 4 Output data set 11 Data acquisition unit 12 Graph classification unit 13 Probability map generation unit 14 Component extraction unit 15 Value extraction unit 16... Output unit 21... Input data 22... Classification network 23... Classification result 24... Probability map generation network 25... Probability map 26... Graph trace result 27... Value detection result 28... Output data , 161...CPU, 162...ROM, 163...RAM, 164...HDD, 165...Input section, 166...Display section, 167...Communication I/F, 168...Bus

Claims (21)

グラフ画像を取得するグラフ画像取得部と、
前記グラフ画像取得部により取得された前記グラフ画像をグラフ種別ごとに分類するグラフ分類部と、
前記グラフ画像から、単一のニューラルネットワークを用いて、前記グラフ種別ごとに異なる種類の確率マップを生成する確率マップ生成部と、
前記確率マップ生成部により生成された前記確率マップに基づいて、前記グラフ画像中のコンポーネントを抽出するコンポーネント抽出部と、
前記コンポーネント抽出部により抽出された前記グラフ画像の前記コンポーネントの値を抽出する値抽出部と、
前記値抽出部により抽出された前記コンポーネントの前記値を出力する出力部と
を備えることを特徴とする情報処理装置。
a graph image acquisition unit that acquires a graph image;
a graph classification unit that classifies the graph image acquired by the graph image acquisition unit by graph type;
a probability map generation unit that generates different types of probability maps for each graph type from the graph image using a single neural network;
a component extraction unit that extracts components in the graph image based on the probability map generated by the probability map generation unit;
a value extraction unit for extracting values of the components of the graph image extracted by the component extraction unit;
and an output unit that outputs the value of the component extracted by the value extraction unit.
前記確率マップ生成部により用いられる前記単一のニューラルネットワークは、前記グラフ種別ごとに異なる出力チャネルを備える
ことを特徴とする請求項1に記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the single neural network used by the probability map generator has different output channels for each graph type.
前記確率マップ生成部により用いられる前記単一のニューラルネットワークは、前記グラフ種別ごとに、異なるコンポーネントを分離するための異なる複数種類の出力チャネルを備える
ことを特徴とする請求項2に記載の情報処理装置。
3. The information processing according to claim 2, wherein the single neural network used by the probability map generator comprises different types of output channels for separating different components for each graph type. Device.
前記コンポーネント抽出部は、前記グラフ画像中の前記コンポーネントを抽出して、グラフをトレースする
ことを特徴とする請求項1から3のいずれか1項に記載の情報処理装置。
The information processing apparatus according to any one of claims 1 to 3, wherein the component extraction unit extracts the component in the graph image and traces the graph.
前記出力部は、前記コンポーネント抽出部によりトレースされた前記グラフに、前記値抽出部により抽出された前記コンポーネントの前記値を付加して出力する
ことを特徴とする請求項4に記載の情報処理装置。
5. The information processing apparatus according to claim 4, wherein the output unit adds the value of the component extracted by the value extraction unit to the graph traced by the component extraction unit and outputs the graph. .
前記コンポーネント抽出部は、前記グラフ画像中の前記複数のコンポーネントを同時にトレースする
ことを特徴とする請求項4または5に記載の情報処理装置。
6. The information processing apparatus according to claim 4, wherein the component extraction unit simultaneously traces the plurality of components in the graph image.
前記コンポーネント抽出部は、線グラフのための第1の確率マップを用いて、前記線グラフのグラフ画像の画素に関するコストを算出し、前記コストが最小となるよう前記線グラフをトレースする
ことを特徴とする請求項4から6のいずれか1項に記載の情報処理装置。
wherein the component extraction unit calculates a cost associated with a pixel of a graph image of the line graph using a first probability map for the line graph, and traces the line graph so as to minimize the cost. 7. The information processing apparatus according to any one of claims 4 to 6.
前記コンポーネント抽出部は、線グラフのための第1の確率マップを用いて、前記線グラフのグラフ画像の隣接するX座標位置の間の第1のコストを算出し、複数の線グラフについての前記第1のコストの合計が最小となるよう前記線グラフをトレースする
ことを特徴とする請求項4から6のいずれか1項に記載の情報処理装置。
The component extraction unit calculates a first cost between adjacent X-coordinate positions of graph images of the line graphs using a first probability map for the line graphs, and calculates the The information processing apparatus according to any one of claims 4 to 6, wherein the line graph is traced so that the sum of the first costs is minimized.
前記コンポーネント抽出部は、線形計画法(Linear Programming)を用いて、トレースすべき前記線グラフの前記第1のコストを算出する
ことを特徴とする請求項8に記載の情報処理装置。
The information processing apparatus according to claim 8, wherein the component extraction unit calculates the first cost of the line graph to be traced using linear programming.
前記コンポーネント抽出部は、各X座標位置においてトレースすべき前記線グラフが他の線グラフに遮蔽されるか否かを示す遮蔽フラグを保持し、前記遮蔽フラグを用いて、トレースすべき前記線グラフの前記第1のコストを算出する
ことを特徴とする請求項9に記載の情報処理装置。
The component extraction unit holds a shielding flag indicating whether or not the line graph to be traced at each X coordinate position is shielded by another line graph, and uses the shielding flag to extract the line graph to be traced. The information processing apparatus according to claim 9, wherein the first cost of is calculated.
前記遮蔽フラグは、複数の線グラフのそれぞれについて設けられ、各X座標位置における前記複数の線グラフのそれぞれの状態を保持する
ことを特徴とする請求項10に記載の情報処理装置。
11. The information processing apparatus according to claim 10, wherein the shielding flag is provided for each of the plurality of line graphs, and holds the state of each of the plurality of line graphs at each X-coordinate position.
前記コンポーネント抽出部は、前記第1の確率マップを用いて、各X座標位置におけるY座標軸方向の前記線グラフの存在確率を足し合わせることにより、前記線グラフの始点および終点を検出し、検出された前記始点から前記終点まで前記線グラフをトレースする
ことを特徴とする請求項8から11のいずれか1項に記載の情報処理装置。
The component extraction unit uses the first probability map to add the existence probability of the line graph in the Y coordinate axis direction at each X coordinate position, thereby detecting the start point and the end point of the line graph, and detecting The information processing apparatus according to any one of claims 8 to 11, wherein the line graph is traced from the start point to the end point.
前記コンポーネント抽出部は、線グラフ以外のグラフのための第2の確率マップを用いて、隣接する画素を連結することにより、前記グラフをトレースする
ことを特徴とする請求項4から12のいずれか1項に記載の情報処理装置。
13. The component extractor according to any one of claims 4 to 12, wherein the component extractor traces the graph by connecting adjacent pixels using a second probability map for graphs other than line graphs. 1. The information processing apparatus according to 1.
前記コンポーネント抽出部は、CCA(Connected Component Analysis)を用いて、前記グラフのグラフ画像の前記隣接する画素を連結する
ことを特徴とする請求項13に記載の情報処理装置。
14. The information processing apparatus according to claim 13, wherein the component extraction unit uses CCA (Connected Component Analysis) to connect the adjacent pixels of the graph image of the graph.
前記コンポーネント抽出部は、前記第2の確率マップを参照して、抽出された前記コンポーネントを補正する
ことを特徴とする請求項13または14に記載の情報処理装置。
15. The information processing apparatus according to claim 13, wherein the component extraction unit corrects the extracted component by referring to the second probability map.
前記コンポーネント抽出部は、線グラフのための第1の確率マップを用いて、前記線グラフのグラフ画像の各画素の第2のコストを算出し、前記第2のコストが最小となる画素上に前記線グラフをトレースする
ことを特徴とする請求項1から6のいずれか1項に記載の情報処理装置。
The component extraction unit calculates a second cost of each pixel of a graph image of the line graph using a first probability map for the line graph, and calculates a second cost on the pixel with the minimum second cost. The information processing apparatus according to any one of claims 1 to 6, wherein the line graph is traced.
前記コンポーネント抽出部は、動的計画法(Dynamic Programming)を用いて、前記線グラフの前記グラフ画像の前記画素の前記第2のコストを算出する
ことを特徴とする請求項16に記載の情報処理装置。
The information processing according to claim 16, wherein the component extraction unit calculates the second cost of the pixel of the graph image of the line graph using dynamic programming. Device.
前記コンポーネント抽出部は、前記線グラフの線の平滑性、および前記線グラフの線の色または線種の一貫性の少なくとも1つを評価する関数に基づいて、前記第2のコストを算出する
ことを特徴とする請求項16または17に記載の情報処理装置。
The component extraction unit calculates the second cost based on a function that evaluates at least one of line smoothness of the line graph and consistency of line color or line type of the line graph. 18. The information processing apparatus according to claim 16 or 17, characterized by:
前記確率マップ生成部は、グラフ軸の目盛を抽出するための確率マップを生成し、
前記値抽出部は、前記グラフ軸の目盛を抽出するための前記確率マップに基づいて、前記グラフ画像の前記コンポーネントの値を抽出する
ことを特徴とする請求項1から18のいずれか1項に記載の情報処理装置。
The probability map generation unit generates a probability map for extracting scales of graph axes,
19. The method according to any one of claims 1 to 18, wherein the value extraction unit extracts values of the components of the graph image based on the probability map for extracting scales of the graph axes. The information processing device described.
情報処理装置が実行する情報処理方法であって、
グラフ画像を取得するステップと、
取得された前記グラフ画像をグラフ種別ごとに分類するステップと、
前記グラフ画像から、単一のニューラルネットワークを用いて、前記グラフ種別ごとに異なる種類の確率マップを生成するステップと、
生成された前記確率マップに基づいて、前記グラフ画像中のコンポーネントを抽出するステップと、
抽出された前記グラフ画像の前記コンポーネントの値を抽出するステップと、
抽出された前記コンポーネントの前記値を出力するステップと
を含むことを特徴とする情報処理方法。
An information processing method executed by an information processing device,
obtaining a graph image;
a step of classifying the acquired graph image by graph type;
generating different types of probability maps for each graph type from the graph image using a single neural network;
extracting components in the graph image based on the generated probability map;
extracting values of the components of the extracted graph image;
and outputting the value of the extracted component.
情報処理をコンピュータに実行させるための情報処理プログラムであって、該プログラムは、前記コンピュータに、
グラフ画像を取得するグラフ画像取得処理と、
前記グラフ画像取得処理により取得された前記グラフ画像をグラフ種別ごとに分類するグラフ分類処理と、
前記グラフ画像から、単一のニューラルネットワークを用いて、前記グラフ種別ごとに異なる種類の確率マップを生成する確率マップ生成処理と、
前記確率マップ生成処理により生成された前記確率マップに基づいて、前記グラフ画像中のコンポーネントを抽出するコンポーネント抽出処理と、
前記コンポーネント抽出処理により抽出された前記グラフ画像の前記コンポーネントの値を抽出する値抽出処理と、
前記値抽出処理により抽出された前記コンポーネントの前記値を出力する出力処理と
を含む処理を実行させるためのものであることを特徴とする情報処理プログラム。
An information processing program for causing a computer to execute information processing, the program causing the computer to:
graph image acquisition processing for acquiring a graph image;
a graph classification process for classifying the graph image acquired by the graph image acquisition process by graph type;
Probability map generation processing for generating different types of probability maps for each graph type from the graph image using a single neural network;
component extraction processing for extracting components in the graph image based on the probability map generated by the probability map generation processing;
a value extraction process for extracting the values of the components of the graph image extracted by the component extraction process;
and an output process of outputting the value of the component extracted by the value extraction process.
JP2022515127A 2021-06-01 2021-06-01 Information processing device, information processing method and program Active JP7132459B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2021/020885 WO2022254584A1 (en) 2021-06-01 2021-06-01 Information processing device, information processing method, and program

Publications (3)

Publication Number Publication Date
JP7132459B1 true JP7132459B1 (en) 2022-09-06
JPWO2022254584A1 JPWO2022254584A1 (en) 2022-12-08
JPWO2022254584A5 JPWO2022254584A5 (en) 2023-05-12

Family

ID=83188030

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022515127A Active JP7132459B1 (en) 2021-06-01 2021-06-01 Information processing device, information processing method and program

Country Status (3)

Country Link
EP (1) EP4120126A4 (en)
JP (1) JP7132459B1 (en)
WO (1) WO2022254584A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005326940A (en) * 2004-05-12 2005-11-24 Fuji Xerox Co Ltd Graphing device, program, and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005326940A (en) * 2004-05-12 2005-11-24 Fuji Xerox Co Ltd Graphing device, program, and recording medium

Also Published As

Publication number Publication date
JPWO2022254584A1 (en) 2022-12-08
EP4120126A1 (en) 2023-01-18
WO2022254584A1 (en) 2022-12-08
EP4120126A4 (en) 2023-03-29

Similar Documents

Publication Publication Date Title
JP6277818B2 (en) Machine learning apparatus, machine learning method, and program
JP5729930B2 (en) Method for distinguishing text lines in a document
JP6435740B2 (en) Data processing system, data processing method, and data processing program
JP3950777B2 (en) Image processing method, image processing apparatus, and image processing program
EP2980755B1 (en) Method for partitioning area, and inspection device
US20150278167A1 (en) Automatic measure of visual similarity between fonts
JP2011018338A (en) Method and system for classifying connected group of foreground pixel in scanned document image according to type of marking
JP2006524394A (en) Delineation of human contours in images
JP2001043376A (en) Image extraction method and device and storage medium
Rahim et al. Hand gesture recognition based on optimal segmentation in human-computer interaction
JP6968241B1 (en) Information processing equipment, information processing methods and programs
JP2013246732A (en) Handwritten character retrieval apparatus, method and program
Götzelmann et al. Form Follows Function: Aesthetic Interactive Labels.
CN116596921B (en) Method and system for sorting incinerator slag
JP7132459B1 (en) Information processing device, information processing method and program
JP7132458B1 (en) Information processing device, information processing method and program
CN111368831B (en) Positioning system and method for vertical text
JP6546385B2 (en) IMAGE PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP6405603B2 (en) Information processing apparatus, information processing system, and program
Luo et al. Hybrid cascade point search network for high precision bar chart component detection
KR20200005853A (en) Method and System for People Count based on Deep Learning
JP4966946B2 (en) Spatiotemporal image separation device, spatiotemporal image separation method, and spatiotemporal image separation program
WO2024024048A1 (en) Object detection device, object detection method, and object detection program
EP4343630A1 (en) Image processing apparatus, method of generating learning model, and inference method
Pelapur Incremental Machine Learning Based Segmentation with Expert-in-the-Loop Workflow Using FIB-SEM Imagery

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220307

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220307

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20220307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220426

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220622

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220825

R150 Certificate of patent or registration of utility model

Ref document number: 7132459

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150