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

JP7240163B2 - Image processing device, image management method, program - Google Patents

Image processing device, image management method, program Download PDF

Info

Publication number
JP7240163B2
JP7240163B2 JP2018235845A JP2018235845A JP7240163B2 JP 7240163 B2 JP7240163 B2 JP 7240163B2 JP 2018235845 A JP2018235845 A JP 2018235845A JP 2018235845 A JP2018235845 A JP 2018235845A JP 7240163 B2 JP7240163 B2 JP 7240163B2
Authority
JP
Japan
Prior art keywords
image
frame
information
superimposed
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018235845A
Other languages
Japanese (ja)
Other versions
JP2020098429A (en
Inventor
聡 後藤
桂子 山原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toppan Edge Inc
Original Assignee
Toppan Forms Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toppan Forms Co Ltd filed Critical Toppan Forms Co Ltd
Priority to JP2018235845A priority Critical patent/JP7240163B2/en
Publication of JP2020098429A publication Critical patent/JP2020098429A/en
Application granted granted Critical
Publication of JP7240163B2 publication Critical patent/JP7240163B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Input (AREA)

Description

本発明は、画像処理装置、画像管理方法、プログラムに関する。 The present invention relates to an image processing device, an image management method, and a program.

携帯電話やスマートフォンなどの端末装置によって運転免許証などの各種証明書を撮影して得られた画像データと、当該画像データを文字認識することで得られる文字情報とを用いることにより、各種申し込み手続が電子的に行われるようになってきている。端末装置のカメラで撮影して文字認識するものとしては、例えば、特許文献1に記載された携帯端末装置がある。 Various application procedures by using image data obtained by photographing various certificates such as driver's licenses with terminal devices such as mobile phones and smartphones, and character information obtained by character recognition of the image data are increasingly being done electronically. For example, there is a mobile terminal device described in Japanese Patent Application Laid-Open No. 2002-200313 as a device that performs character recognition by photographing with a camera of a terminal device.

特許文献1に開示される技術では、例えば、読み取り対象の文書を連続して撮影する間に得られる複数の文書画像について文字認識を行い、文書画像に含まれる文字や値などの文字情報を検出する。さらに、特許文献1に開示される技術では、検出した文字情報の中から予め定められている項目名を示す文字情報を検出し、また、当該項目名に対応して記録されている、例えば、個人ごとに異なる氏名や住所などの文字情報を読み出して取得している。 In the technique disclosed in Patent Document 1, for example, character recognition is performed on a plurality of document images obtained while a document to be read is continuously photographed, and character information such as characters and values contained in the document images is detected. do. Furthermore, in the technique disclosed in Patent Document 1, character information indicating a predetermined item name is detected from among the detected character information, and recorded corresponding to the item name, for example, Character information such as names and addresses that differ for each individual is read and acquired.

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

ところで、運転免許証などよりも大きな帳票の場合、文字を認識するために必要となる解像度の画像を得るためには、スマートフォンなどのカメラでは帳票の全体を一度に撮影
できない場合がある。このような帳票についても、特許文献1に開示される技術を利用すれば、帳票を複数の領域に区切って連続して撮影していくことで、帳票に記録されている全ての文字情報を取得が可能となる。ただし、このように、領域毎に区切ってフレーム画像として撮影した場合、得られた複数のフレーム画像によって1枚の帳票の復元を行なう。
しかしながら、撮影した複数のフレーム画像の各々が帳票のどの位置に対応するのかが判らないため、帳票全体の復元が困難である。
By the way, in the case of a form larger than a driver's license, it may not be possible to photograph the entire form at once with a camera such as a smartphone in order to obtain an image with the resolution required for recognizing characters. For such a form, if the technology disclosed in Japanese Patent Laid-Open No. 2002-200010 is used, all the character information recorded in the form can be acquired by dividing the form into a plurality of areas and continuously photographing the form. becomes possible. However, when frame images are captured by dividing each area in this way, one sheet of form is restored using a plurality of obtained frame images.
However, it is difficult to restore the entire form because it is not known to which position on the form each of the captured frame images corresponds.

本発明は、このような事情に鑑みてなされたものであり、その目的は、撮影した複数のフレーム画像の各々が、帳票のどの位置を撮影したかを検出し、帳票全体の画像の復元を容易にする画像処理装置、画像管理方法、プログラムを提供することにある。 SUMMARY OF THE INVENTION The present invention has been made in view of such circumstances, and its object is to detect the position of each of a plurality of photographed frame images on a form and restore the image of the entire form. An object of the present invention is to provide an image processing device, an image management method, and a program that facilitate the processing.

上述した課題を解決するために、本発明の画像処理装置は、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得部と、前記フレーム画像における文字画像の文字認識を行なう文字認識部と、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部と、を備え、前記画像処理部は、前記基準画像及び前記重畳対象画像において重複領域が存在しない場合、前記基準画像と前記フレーム画像との間に撮影された、前記文字認識において文字情報が得られなかった他のフレーム画像を前記基準画像の背面に背景画像として重ねることを特徴とする。 In order to solve the above-described problems, the image processing apparatus of the present invention includes a frame image acquisition unit that acquires frame images obtained by partially continuously photographing one form, and character recognition of character images in the frame images. Character recognition unit to perform character recognition, feature information of superimposition target image which is the frame image from which character information is obtained by character recognition, and feature information of reference image which is a frame image obtained by photographing a form prior to superimposition target image, an image processing unit that repeats a process of superimposing the image to be superimposed on the reference image to generate an image in which at least a part of the image of the form is restored , wherein the image processing unit includes the reference image and the When there is no overlapping area in the image to be superimposed, another frame image, which is photographed between the reference image and the frame image and for which character information was not obtained in the character recognition, is placed behind the reference image as a background image. It is characterized by overlapping as

本発明の画像処理装置において、前記画像処理部は、前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択することを特徴とする。 In the image processing apparatus according to the aspect of the invention, when the superimposition target image is superimposed on the reference image, if the character information included in the reference image and the superimposition target image overlap, the image processing unit performs the following: It is characterized by selecting which of the frame images is to be superimposed on the top .

また、本発明の画像処理装置は、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得部と、前記フレーム画像における文字画像の文字認識を行なう文字認識部と、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部と、を備え、前記画像処理部が、前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択することを特徴とする。 Further, the image processing apparatus of the present invention comprises: a frame image acquisition unit that acquires frame images obtained by partially continuously photographing one form; a character recognition unit that performs character recognition of character images in the frame images; Based on the feature information of the superimposition target image, which is the frame image for which the character information is obtained by recognition, and the feature information of the reference image, which is the frame image of the form photographed prior to the superimposition target image, the superimposition target image is used as the reference. and an image processing unit that repeats the process of superimposing the image on the image to generate an image in which at least a part of the image of the form is restored, and when the image processing unit superimposes the superimposition target image on the reference image, When the character information included in the reference image and the image to be superimposed overlap, it is characterized in that it is selected which of the reference image and the frame image should be superimposed.

本発明の画像管理方法は、フレーム画像取得部が、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得過程と、文字認識部が、前記フレーム画像における文字画像の文字認識を行なう文字認識過程と、画像処理部が、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理過程と、を含み、前記画像処理過程は、前記基準画像及び前記重畳対象画像において重複領域が存在しない場合、前記基準画像と前記フレーム画像との間に撮影された、前記文字認識において文字情報が得られなかった他のフレーム画像を前記基準画像の背面に背景画像として重ねることを含むことを特徴とする。
また、本発明の画像管理方法は、フレーム画像取得部が、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得過程と、文字認識部が、前記フレーム画像における文字画像の文字認識を行なう文字認識過程と、画像処理部が、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理過程と、を含み、前記画像処理過程は、前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択することを含むことを特徴とする。
The image management method of the present invention includes a frame image acquisition process in which a frame image acquisition unit acquires frame images obtained by partially continuously photographing one form; A character recognition process for performing recognition, characteristic information of an image to be superimposed, which is the frame image from which character information is obtained by the image processing unit through character recognition, and a reference, which is a frame image obtained by photographing a form prior to the image to be superimposed. an image processing step of repeating a process of superimposing the superimposition target image on the reference image according to image feature information, and generating an image in a state in which at least a part of the image of the form is restored ; In the process, if there is no overlap region between the reference image and the superimposition target image, another frame image shot between the reference image and the frame image from which character information was not obtained in the character recognition is processed. It is characterized by including superimposing as a background image behind the reference image .
Further, the image management method of the present invention includes a frame image acquisition process in which a frame image acquisition unit acquires frame images obtained by partially continuously photographing one form, and a character recognition unit in which a character image in the frame image character recognition process for performing character recognition, the image processing unit extracts the feature information of the superimposition target image, which is the frame image from which the character information is obtained by character recognition, and the frame image of the form photographed prior to the superimposition target image. an image processing step of repeating a process of superimposing the image to be superimposed on the reference image according to feature information of a certain reference image to obtain an image in a state in which at least a part of the image of the form is restored; In the processing step, when the superimposition target image is superimposed on the reference image, if the character information included in the reference image and the superimposition target image overlap, the reference image or the frame image is superimposed with whichever is upper. and selecting whether the

本発明のプログラムは、コンピュータを、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得手段、前記フレーム画像における文字画像の文字認識を行なう文字認識手段、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部手段、として機能させるためのプログラムであり、前記画像処理部手段では、前記基準画像及び前記重畳対象画像において重複領域が存在しない場合、前記基準画像と前記フレーム画像との間に撮影された、前記文字認識において文字情報が得られなかった他のフレーム画像を前記基準画像の背面に背景画像として重ねることを含む。
また、本発明のプログラムは、コンピュータを、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得手段、前記フレーム画像における文字画像の文字認識を行なう文字認識手段、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部手段、として機能させるためのプログラムであり、前記画像処理部手段では、前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択することを含む。
The program of the present invention comprises a computer, frame image acquisition means for acquiring frame images obtained by partially continuously photographing one form, character recognition means for performing character recognition of character images in the frame images, and character recognition by character recognition. The image to be superimposed is superimposed on the reference image based on the feature information of the image to be superimposed, which is the frame image from which the information is obtained, and the feature information of the reference image, which is the frame image of the form captured prior to the image to be superimposed. and image processing unit means for repeating the processing to restore at least a part of the image of the form, wherein the image processing unit means performs the reference image and the superimposition target image. If there is no overlapping area in step 2, another frame image, which is photographed between the reference image and the frame image and for which character information was not obtained in the character recognition, is superimposed as a background image on the back of the reference image. including.
Further, the program of the present invention comprises: frame image obtaining means for obtaining frame images obtained by partially continuously photographing one form; character recognition means for performing character recognition of character images in the frame images; and the feature information of the reference image, which is the frame image of the form photographed prior to the superimposition target image, to convert the superimposition target image into the reference image image processing section means for repeating the process of superimposing the document image on the reference image to generate an image in which at least a part of the image of the form is restored. When the target images are superimposed, if the character information included in the reference image and the superimposition target image overlap, selecting which of the reference image and the frame image is to be superimposed on the top.

この発明によれば、撮影した複数のフレーム画像の各々が、帳票のどの位置を撮影したかを検出し、帳票全体の画像の復元を容易にする画像処理装置、画像管理方法、プログラムを提供することができる。 According to the present invention, there is provided an image processing apparatus, an image management method, and a program that detect which position of a form was photographed by each of a plurality of photographed frame images, and facilitate restoration of the image of the entire form. be able to.

一実施形態の帳票データ管理システムの構成を示す概略ブロック図である。1 is a schematic block diagram showing the configuration of a form data management system of one embodiment; FIG. 同実施形態における帳票のテンプレートの一例を示す図である。It is a figure which shows an example of the template of the form in the same embodiment. 同実施形態における帳票の一例を示す図である。It is a figure which shows an example of the form in the same embodiment. 同実施形態において撮影されたフレーム画像の一例(その1)である。It is an example (part 1) of a frame image captured in the same embodiment. 同実施形態において撮影されたフレーム画像の一例(その2)である。FIG. 10 is an example (part 2) of a frame image captured in the same embodiment; FIG. 同実施形態における帳票定義テーブルを示す図である。It is a figure which shows the form definition table in the same embodiment. 同実施形態における帳票情報テーブルを示す図(その1)である。FIG. 4 is a diagram (part 1) showing a form information table in the same embodiment; 同実施形態における重畳状態テーブルを示す図である。It is a figure which shows the superimposition state table in the same embodiment. 同実施形態における帳票情報集計テーブルを示す図である。It is a figure which shows the form information total table in the same embodiment. 同実施形態における端末装置による帳票の撮影処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the imaging|photography process of the form by the terminal device in the same embodiment. 同実施形態における帳票情報テーブルを示す図(その2)である。FIG. 11 is a diagram (part 2) showing a form information table in the same embodiment; 同実施形態において撮影されたフレーム画像の一例(その3)である。3 is an example (part 3) of a frame image captured in the same embodiment; 同実施形態における帳票情報テーブルを示す図(その3)である。FIG. 13 is a diagram (part 3) showing a form information table in the same embodiment; 同実施形態における端末装置による保存対象の帳票情報テーブルの選択処理流れを示すフローチャートである。10 is a flow chart showing a processing flow for selecting a form information table to be saved by the terminal device according to the same embodiment. 同実施形態における端末装置によるフレーム画像同士を重ねて重畳画像を生成する処理の流れを示すフローチャートである。7 is a flow chart showing the flow of processing for superimposing frame images to generate a superimposed image by the terminal device according to the same embodiment. 同実施形態における端末装置による背景画像の検出処理の流れを示すフローチャートである。It is a flow chart which shows a flow of detection processing of a background image by a terminal device in the embodiment. 同実施形態におけるマッチング処理部による処理の一例を示す図である。It is a figure which shows an example of the process by the matching process part in the same embodiment. 同実施形態における重畳画像の構成を示す図(その1)である。FIG. 11 is a diagram (Part 1) showing the configuration of a superimposed image in the same embodiment; 同実施形態において撮影されたフレーム画像の一例(その4)である。4 is an example (part 4) of a frame image captured in the same embodiment; 同実施形態における重畳画像の構成を示す図(その2)である。FIG. 10 is a diagram (part 2) showing the configuration of a superimposed image in the same embodiment; 同実施形態の他の構成例において撮影されたフレーム画像の一例である。It is an example of the frame image image|photographed in the other structural example of the same embodiment. 同実施形態の他の構成例における帳票情報テーブルを示す図である。FIG. 11 is a diagram showing a form information table in another configuration example of the same embodiment; 同実施形態の他の構成例において2個のフレーム画像が重ねられた状態を示す図である。FIG. 10 is a diagram showing a state in which two frame images are superimposed in another configuration example of the same embodiment; 同実施形態の他の構成例における重畳状態テーブルを示す図である。It is a figure which shows the superimposition state table in the other structural example of the same embodiment.

以下、本発明の一実施形態による端末装置1を備える帳票データ管理システムSについて図面を参照して説明する。図1は、帳票データ管理システムSの構成を示す概略ブロック図である。帳票データ管理システムSは、端末装置1、帳票データ管理装置3、及び端末装置1と帳票データ管理装置3とを接続する通信ネットワーク4を備える。 A form data management system S including a terminal device 1 according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of a form data management system S. As shown in FIG. The form data management system S includes a terminal device 1 , a form data management device 3 , and a communication network 4 connecting the terminal device 1 and the form data management device 3 .

端末装置1は、例えば、カメラを内蔵したスマートフォン、携帯電話、携帯情報端末(PDA(Personal Digital Assistant))、タブレットPC(Personal Computer)などの装置である。端末装置1は、帳票データ管理装置3、または他のサーバ装置から通信ネットワーク4を通じてダウンロードした所定のアプリケーションプログラム(以下、AP)を実行し、例えば、通信装置として機能したり、以下に説明する帳票撮影用の装置として機能したりする。 The terminal device 1 is, for example, a device such as a smartphone with a built-in camera, a mobile phone, a personal digital assistant (PDA (Personal Digital Assistant)), or a tablet PC (Personal Computer). The terminal device 1 executes a predetermined application program (hereinafter referred to as AP) downloaded from the form data management device 3 or another server device through the communication network 4, and functions, for example, as a communication device or as a form It functions as a device for photography.

端末装置1は、操作部10、撮影部11、表示部12、フレーム画像取得部13、記憶部14、文字認識部15、選択部16、認識データ管理部17、通信部18、及び画像処理部20を備える。 The terminal device 1 includes an operation unit 10, an imaging unit 11, a display unit 12, a frame image acquisition unit 13, a storage unit 14, a character recognition unit 15, a selection unit 16, a recognition data management unit 17, a communication unit 18, and an image processing unit. 20.

一実施形態において、端末装置1の撮影の対象となる帳票には、例えば、図2に示すようなタイトル(健康診断個人票)、項目名(例えば、事業所名、所在地、氏名など)、及び罫線からなるテンプレートが予め印刷されており、図2に示すテンプレートに文字や数字の情報が記録されると、例えば、図3に示すような帳票となる。なお、帳票の大きさは、文字認識部15による文字認識処理を行うのに必要な解像度で撮影する場合、1回の撮影で全体を写すことができない程度の大きさであるとする。 In one embodiment, the form to be photographed by the terminal device 1 includes, for example, a title (medical checkup personal form) as shown in FIG. A template consisting of ruled lines is printed in advance, and when information of characters and numbers is recorded in the template shown in FIG. 2, for example, a form shown in FIG. 3 is obtained. It is assumed that the size of the form is such that the entire document cannot be photographed in one shot when photographed at a resolution required for character recognition processing by the character recognition unit 15 .

撮影部11は、例えば、CCD(Charge Coupled Device)カメラであり、操作部10から撮影開始の指示情報が供給された場合、1秒間に10~30フレームのフレームレートでの撮影を連続して行い、フレームレートの周期毎にフレーム画像のデータを取得する。また、撮影部11は、操作部10から撮影終了の指示情報が供給された場合に撮影を終了する。例えば、図4及び図5は、図3に示す帳票を上から順に連続して撮影して得られたフレーム画像61,62の例である。 The imaging unit 11 is, for example, a CCD (Charge Coupled Device) camera, and when instruction information to start imaging is supplied from the operation unit 10, it continuously performs imaging at a frame rate of 10 to 30 frames per second. , frame image data is acquired for each period of the frame rate. Further, the photographing unit 11 finishes photographing when instruction information for finishing photographing is supplied from the operation unit 10 . For example, FIGS. 4 and 5 are examples of frame images 61 and 62 obtained by continuously photographing the form shown in FIG. 3 from top to bottom.

表示部12は、例えば、タッチパッドのような入力装置が画面上に配置されたタッチパネルなどであり、撮影部11が撮影したフレーム画像、または、記憶部14が記憶する画像のデータを画面に表示する。
通信部18は、端末装置1の外部の機器、例えば、帳票データ管理装置3と通信ネットワーク4を通じて通信を行う。
記憶部14は、フレーム画像記憶部141、アプリケーション記憶部142、帳票定義情報記憶部144、帳票情報記憶部145、及び重畳画像記憶部147を備える。
The display unit 12 is, for example, a touch panel in which an input device such as a touch pad is arranged on the screen, and displays frame images captured by the imaging unit 11 or image data stored in the storage unit 14 on the screen. do.
The communication unit 18 communicates with a device external to the terminal device 1 , such as the form data management device 3 , through the communication network 4 .
The storage unit 14 includes a frame image storage unit 141 , an application storage unit 142 , a form definition information storage unit 144 , a form information storage unit 145 and a superimposed image storage unit 147 .

フレーム画像記憶部141は、フレーム画像取得部13が撮影部11から取得したフレーム画像のデータを、各々のフレーム画像に対応付けられているフレーム識別情報と共に記憶する。アプリケーション記憶部142は、帳票データ管理装置3、または他のサーバ装置から通信ネットワーク4を通じてダウンロードした所定のAPを記憶する。 The frame image storage unit 141 stores frame image data acquired by the frame image acquisition unit 13 from the imaging unit 11 together with frame identification information associated with each frame image. The application storage unit 142 stores a predetermined AP downloaded from the form data management device 3 or another server device through the communication network 4 .

帳票定義情報記憶部144は、例えば、図6に示す帳票定義テーブル1441を予め記憶する。帳票定義テーブル1441は、「帳票識別情報」、「項目名」、「項目番号」、「定義情報」の項目を有している。「帳票識別情報」の項目には、テンプレートの種類、例えば、欄の形式や項目名の異なるテンプレートを一意に識別可能な情報であって、テンプレートの種類ごとに予め付与されている帳票識別情報が書き込まれる。「項目名」の項目には、帳票識別情報に対応する帳票に含まれる項目名の情報が書き込まれる。 The form definition information storage unit 144 stores, for example, a form definition table 1441 shown in FIG. 6 in advance. The form definition table 1441 has items of "form identification information", "item name", "item number", and "definition information". The "form identification information" item contains form identification information assigned in advance to each template type, which is information that can uniquely identify template types, such as templates with different column formats and item names. written. Information on the item name included in the form corresponding to the form identification information is written in the item of "item name".

「項目番号」の項目には、項目名ごとに予め付与されている項目番号が書き込まれる。なお、1つの項目に、複数の情報が記録される場合、その数に応じた項目番号が書き込まれる。例えば、図6において、「既往歴」の項目は、情報を記録する箇所が上下の二行になっているため、2つの項目番号「項目008」、「項目009」が書き込まれる。 An item number assigned in advance to each item name is written in the item “item number”. When a plurality of pieces of information are recorded in one item, an item number corresponding to the number is written. For example, in FIG. 6, the item "previous history" has two upper and lower lines to record information, so two item numbers "item 008" and "item 009" are written.

「定義情報」の項目には、項目名や、その項目名に対応して記録される情報(以下、項目記録情報という)が横書きであるか、または縦書きであるかを示す情報や、項目名、及び項目記録情報の位置関係を示す情報が書き込まれる。ここで、項目名及び項目記録情報の位置関係を示す情報とは、例えば、図6に示すように、項目名及び項目記録情報が横一行、または縦一行に位置する情報や、項目名の位置に対して項目記録情報が上下左右のいずれかの行、または列に位置する情報などである。 In the "definition information" item, information indicating whether the item name and the information recorded corresponding to the item name (hereinafter referred to as item record information) is written horizontally or vertically, Names and information indicating the positional relationship of item record information are written. Here, the information indicating the positional relationship between the item name and the item record information is, for example, information in which the item name and the item record information are positioned in one horizontal line or one vertical line as shown in FIG. For example, the item record information is located in any row or column on the top, bottom, left, or right.

なお、帳票定義情報記憶部144は、予めユーザによって指定された帳票の種類のテンプレートに対応する帳票定義テーブル1441を記憶する。他の種類のテンプレート、すなわち帳票識別情報の異なるテンプレートが用いられる帳票の撮影を行う場合、帳票定義情報記憶部144に、当該他のテンプレートに対応する帳票定義テーブル1441を書き込む必要がある。 The form definition information storage unit 144 stores a form definition table 1441 corresponding to a form type template designated in advance by the user. When photographing a form using another type of template, ie, a template with different form identification information, it is necessary to write the form definition table 1441 corresponding to the other template in the form definition information storage unit 144 .

帳票情報記憶部145は、フレーム画像ごとに生成される同一のデータ形式を有する帳票情報テーブルを記憶する。例えば、図7に示す帳票情報テーブル1451-1は、図4に示したフレーム画像61に対応して生成されるテーブルである。帳票情報テーブル1451-1は、「フレーム識別情報」、「項目番号」、「取得情報」の項目を有している。「フレーム識別情報」には、当該テーブルに対応するフレーム画像に対応付けられているフレーム識別情報が書き込まれる。「項目番号」の項目には項目名の情報に対応する項目番号が書き込まれる。「取得情報」の項目には、項目記録情報が書き込まれる。 The form information storage unit 145 stores a form information table having the same data format generated for each frame image. For example, the form information table 1451-1 shown in FIG. 7 is a table generated corresponding to the frame image 61 shown in FIG. The form information table 1451-1 has items of "frame identification information", "item number", and "acquired information". Frame identification information associated with the frame image corresponding to the table is written in “frame identification information”. An item number corresponding to the item name information is written in the item "item number". Item record information is written in the item of "acquired information".

なお、文字認識部15が、項目名は取得しているが、当該項目名に対応する項目記録情報を取得していない項目名の項目番号に対応する「取得情報」の項目は空欄となる。また、以下の説明において、帳票情報記憶部145が記憶するいずれか1つのテーブルを示す場合、符号の枝番号を付けずに帳票情報テーブル1451として示す。 The item of "acquired information" corresponding to the item number of the item name for which the character recognition unit 15 has acquired the item name but has not acquired the item record information corresponding to the item name is blank. Further, in the following description, any one table stored in the form information storage unit 145 is indicated as the form information table 1451 without a branch number.

重畳画像記憶部147は、重畳画像のデータと、図8に示す重畳状態テーブル1471を記憶する。ここで、重畳画像とは、初期画像として、1つのフレーム画像を定めておき、1つ前のフレーム画像の大きさや、項目及び罫線の位置に合うように画像処理部20が画像変換した次のフレーム画像を、1つ前のフレーム画像に対して重ねることを繰り返して生成される画像である。 The superimposed image storage unit 147 stores superimposed image data and a superimposed state table 1471 shown in FIG. Here, the superimposed image is defined as an initial image of one frame image, and the next frame image converted by the image processing unit 20 so as to match the size of the previous frame image and the positions of items and ruled lines. This is an image generated by repeatedly superimposing a frame image on the previous frame image.

重畳状態テーブル1471は、図8に示すように、「フレーム識別情報」、「配置状態」の項目を有している。「フレーム識別情報」の項目には、重畳画像に重畳されているフレーム画像のフレーム識別情報が重ねられた順に書き込まれる。図8に示す例では、フレーム識別情報「1」のフレーム画像が、重畳画像の初期画像として選択されたフレーム画像になっており、その後、フレーム識別情報「2」のフレーム画像、フレーム識別情報「3」のフレーム画像が重ねられたことを示している。 As shown in FIG. 8, the superimposition state table 1471 has items of "frame identification information" and "arrangement state". In the "frame identification information" item, the frame identification information of the frame images superimposed on the superimposed image is written in the order in which they are superimposed. In the example shown in FIG. 8, the frame image with the frame identification information "1" is the frame image selected as the initial image of the superimposed image. 3” has been superimposed.

「配置状態」の項目には、フレーム画像が重複領域を有して重ねた場合、前後のフレーム画像との関係で、どちらのフレーム画像が上または下の配置であるかを示す情報が書き込まれる。例えば、図8の例では、フレーム識別情報が「1」のフレーム画像が最初にテンプレート画像に重ねられており、前にフレーム画像が存在しないため、「配置状態」の項目の上欄には、存在しないことを示す「-」が書き込まれる。本実施形態では、後から重ねるフレーム画像を上として重ねるため、次に重ねられたフレーム識別情報「2」のフレーム画像との関係では、フレーム識別情報「1」のフレーム画像は下の位置になる。そのため、フレーム識別情報「1」の「配置状態」の項目の下欄には、「下」が書き込まれ、フレーム識別情報「2」の「配置状態」の項目の上欄には、「上」が書き込まれる。なお、図8は、フレーム画像を3枚重ねた場合の例であり、重ねるフレーム画像の枚数に応じたレコード(行)が生成される。 In the item "arrangement state", information indicating which frame image is arranged above or below is written in relation to the frame images before and after when frame images are overlapped with an overlapping area. . For example, in the example of FIG. 8, the frame image whose frame identification information is "1" is first superimposed on the template image, and there is no preceding frame image. A "-" is written to indicate that it does not exist. In the present embodiment, since the frame image to be overlaid later is overlaid, the frame image with the frame identification information "1" is positioned at the bottom in relation to the frame image with the frame identification information "2" that is overlaid next. . Therefore, "bottom" is written in the lower column of the "arrangement state" item of the frame identification information "1", and "upper" is written into the upper column of the "arrangement state" item of the frame identification information "2". is written. Note that FIG. 8 shows an example in which three frame images are superimposed, and a record (row) is generated according to the number of superimposed frame images.

これに対して、記憶部14のうちアプリケーション記憶部142は、端末装置1の電源がOFFにされても記憶領域に保持されている必要があるため、例えば、不揮発性(フラッシュメモリなど)の記憶領域に予め割り当てられる。
また、記憶部14のうち帳票定義情報記憶部144が記憶する情報は、帳票撮影用のAPが終了、あるいは端末装置1の電源がOFFされても記憶領域に保持しておいても良く、例えば、不揮発性の記憶領域に予め構成される。なお、帳票撮影用のAPを起動するごとに、帳票定義テーブル1441を登録し直す構成でもよい。
On the other hand, the application storage unit 142 of the storage unit 14 needs to be held in a storage area even when the power of the terminal device 1 is turned off. Preallocated to the region.
Further, the information stored in the form definition information storage unit 144 of the storage unit 14 may be retained in the storage area even after the application for photographing the form ends or the power of the terminal device 1 is turned off. , is preconfigured in a non-volatile storage area. It should be noted that the form definition table 1441 may be re-registered each time the AP for photographing the form is activated.

操作部10は、例えば、表示部12の画面上の備えられるタッチパッドに接続しており、ユーザが指を使って画面上に触れた場合、タッチパッドが出力する触れた画面上の位置を示す情報に応じた処理を行う。例えば、帳票撮影用のAPは、起動すると、表示部12の画面上に、撮影処理の開始を指示する撮影開始ボタン、撮影処理の終了を指示する撮影終了ボタンを表示する。 The operation unit 10 is connected to, for example, a touch pad provided on the screen of the display unit 12, and when the user touches the screen with a finger, the touch pad outputs the touched position on the screen. Take action according to the information. For example, when the document photographing AP is activated, it displays a photographing start button for instructing the start of photographing processing and a photographing end button for instructing the end of photographing processing on the screen of the display unit 12 .

操作部10は、タッチパッドが出力する位置情報が撮影開始ボタンの位置である場合、フレーム画像記憶部141、帳票情報記憶部145、重畳画像記憶部147の初期化を行う。操作部10は、当該初期化を行った後、撮影部11に対して帳票を連続して撮影する処理を開始することを示す撮影開始の指示情報を撮影部11に出力する。また、操作部10は、タッチパッドが出力する位置情報が撮影終了ボタンの位置である場合、撮影部11と文字認識部15と選択部16に対して撮影する処理を終了することを示す撮影終了の指示情報を出力する。 The operation unit 10 initializes the frame image storage unit 141, the form information storage unit 145, and the superimposed image storage unit 147 when the position information output by the touch pad is the position of the shooting start button. After performing the initialization, the operation unit 10 outputs to the image capturing unit 11 instruction information for starting image capturing, which instructs the image capturing unit 11 to start the process of continuously capturing the documents. Further, when the position information output from the touch pad is the position of the shooting end button, the operation unit 10 provides the shooting end button to the shooting unit 11, the character recognition unit 15, and the selection unit 16, indicating that the shooting process is to be completed. output the instruction information.

フレーム画像取得部13は、撮影部11が生成して出力するフレーム画像を取得する。フレーム画像取得部13は、フレーム画像を取得すると新たなフレーム識別情報を生成し、取得したフレーム画像と生成したフレーム識別情報とを対応付けてフレーム画像記憶部141に書き込んで記憶させる。フレーム識別情報は、例えば、フレーム画像の時系列順がわかるように、フレーム画像取得部13が若い番号、例えば、「1」から順に値を増加させて生成する。 The frame image acquisition unit 13 acquires a frame image generated and output by the imaging unit 11 . When acquiring a frame image, the frame image acquisition unit 13 generates new frame identification information, associates the acquired frame image with the generated frame identification information, and writes and stores them in the frame image storage unit 141 . For example, the frame identification information is generated by the frame image acquisition unit 13 by incrementing the value from the smallest number, for example, "1", so that the chronological order of the frame images can be known.

文字認識部15は、OCR(Optical Character Recognition)処理により、フレーム画像から文字や数字の画像(文字画像)を抽出して切り出し、パターン辞書、フォント辞書等を用いて文字認識を行ない、文字や数字を示す文字情報を取得する。ここで、文字認識することにより得られる情報は、例えば、文字や数字を示す文字情報であり、例えば、テキストデータでもよい。また、文字認識部15は、文字認識の際に、文字や数字の各々の外接矩形の座標を取得する。 The character recognition unit 15 extracts and cuts out images of characters and numbers (character images) from the frame image by OCR (Optical Character Recognition) processing, performs character recognition using a pattern dictionary, a font dictionary, etc., and recognizes characters and numbers. Get character information indicating Here, the information obtained by character recognition is, for example, character information indicating characters and numbers, and may be, for example, text data. Further, the character recognition unit 15 acquires the coordinates of the circumscribing rectangle of each character or number during character recognition.

また、文字認識部15は、文字情報と座標情報を出力する際、文字認識処理を行ったフレーム画像に対応付けられたフレーム識別情報を、出力する文字情報及び座標情報に対応付ける。なお、文字認識部15は、文字認識処理を行った場合、フレーム画像に含まれる全ての文字情報と座標情報の組み合わせを一度に検出するが、フレーム画像から文字情報及び座標情報の組み合わせを取得できない場合、文字認識処理が不成功として、当該フレーム画像に対応するフレーム識別情報を情報しない。 Further, when outputting the character information and the coordinate information, the character recognition unit 15 associates the frame identification information associated with the frame image subjected to the character recognition processing with the character information and the coordinate information to be output. When character recognition processing is performed, the character recognition unit 15 detects all combinations of character information and coordinate information included in the frame image at once, but cannot acquire combinations of character information and coordinate information from the frame image. In this case, the character recognition processing is regarded as unsuccessful, and the frame identification information corresponding to the frame image is not provided.

文字認識部15は、フレーム識別情報と、文字情報と、座標情報とを取り込む。文字認識部15は、帳票定義情報記憶部144に予め記憶されている帳票定義テーブル1441の情報と、取り込んだ座標情報とに基づいて、取り込んだ文字情報の中から、特定の座標の範囲に含まれている文字情報を検出する。 The character recognition unit 15 takes in frame identification information, character information, and coordinate information. Based on the information of the form definition table 1441 pre-stored in the form definition information storage part 144 and the fetched coordinate information, the character recognition unit 15 selects characters included in a specific coordinate range from the fetched character information. Detect character information contained in

例えば、特定の座標の範囲とは、横書きであれば、一行に並んでいて、各文字の間隔が一定になっている文字列に含まれる各文字の座標情報によって特定される範囲である。文字認識部15は、検出した特定の座標の範囲に含まれている文字情報の中から項目名の文字、または文字列を特定する。文字認識部15は、特定した項目名の文字、または文字列を含む特定の座標の範囲に含まれる文字情報を、項目名の情報と、対応する項目記録情報とに分離して取得する。 For example, in the case of horizontal writing, the specific coordinate range is a range specified by the coordinate information of each character included in a character string in which the characters are arranged in one line and the intervals between the characters are constant. The character recognition unit 15 identifies the character or character string of the item name from the character information included in the detected specific coordinate range. The character recognition unit 15 separates the character information included in the specified coordinate range including the character or character string of the specified item name into the item name information and the corresponding item record information and acquires them.

例えば、図3に示す帳票の場合、文字認識部15は、「氏名」の項目名について、「氏名」の項目名の情報と、「特許太郎」の項目記録情報を取得する。なお、文字認識部15は、項目名の情報と、対応する項目記録情報の両方を常に取得するわけではなく、項目名の情報のみを取得する場合もある。例えば、図4に示すフレーム画像61の場合、「年齢」の項目については、対応する項目記録情報がフレーム画像61に含まれていない。そのため、文字認識部15は、項目名の情報のみを取得する。例えば、項目記録情報が、撮影対象に含まれていない場合、最初から帳票に記載されていない場合、また、不鮮明で文字認識ができない場合などである。したがって、帳票情報テーブル1451が生成されても、項目記録情報が、記録されない場合もある。これに対し、文字認識部15は、項目名の情報がなければ、項目記録情報を分離できず、項目記録情報のみを取得することはない。したがって、帳票情報テーブル1451が生成されていても、項目記録情報が、1つも記録されていない場合もある。 For example, in the case of the form shown in FIG. 3, the character recognition unit 15 acquires the information of the item name of "name" and the item record information of "Taro Tokkyo" for the item name of "name". Note that the character recognition unit 15 does not always acquire both the item name information and the corresponding item record information, and may acquire only the item name information. For example, in the case of the frame image 61 shown in FIG. 4, the frame image 61 does not include the item recording information corresponding to the item "age". Therefore, the character recognition unit 15 acquires only item name information. For example, when the item recording information is not included in the object to be photographed, when it is not written on the form from the beginning, or when it is unclear and the characters cannot be recognized. Therefore, even if the form information table 1451 is generated, the item record information may not be recorded. On the other hand, the character recognition unit 15 cannot separate the item record information without the item name information, and cannot acquire only the item record information. Therefore, even if the form information table 1451 is generated, there are cases where no item record information is recorded.

文字認識部15は、取得した全ての項目名に対応する項目番号を帳票定義テーブル1441から読み出し、読み出した項目番号と取得した項目記録情報とを対応付ける。文字認識部15は、1つのフレーム画像について項目名の情報と項目記録情報の取得を終了した場合、帳票情報記憶部145に新たな帳票情報テーブル1451を生成し、生成した帳票情報テーブル1451に項目番号と、項目番号に対応する項目記録情報と、フレーム識別情報とを書き込んで記憶させる。 The character recognition unit 15 reads the item numbers corresponding to all the acquired item names from the form definition table 1441, and associates the read item numbers with the acquired item recording information. When the character recognition unit 15 completes acquiring the item name information and the item recording information for one frame image, it creates a new form information table 1451 in the form information storage unit 145, and stores the item in the generated form information table 1451. A number, item recording information corresponding to the item number, and frame identification information are written and stored.

なお、上述したように、文字認識部15は、フレーム画像から文字情報及び座標情報が取得できい場合、当該フレーム画像に対応するフレーム識別情報を取得しない。そのため、帳票情報記憶部145に当該フレーム画像に対応する帳票情報テーブル1451は生成されない。 As described above, when character information and coordinate information cannot be obtained from a frame image, the character recognition unit 15 does not obtain frame identification information corresponding to the frame image. Therefore, the form information table 1451 corresponding to the frame image is not generated in the form information storage unit 145 .

選択部16は、操作部10から撮影終了の指示情報を受けると、帳票情報記憶部145が記憶する帳票情報テーブル1451の中から保存対象の帳票情報テーブル1451を選択する。
保存対象とする帳票情報テーブル1451をどのように選択するかは、任意に定められるものであるが、ここでは、例えば、帳票情報テーブル1451間の重複ができるだけ少ない状態で、項目記録情報を漏れなく保存しておくように保存対象を選択するように定めるとする。この場合、例えば、選択部16は、以下のような処理を行う。
Upon receiving instruction information to end imaging from the operation unit 10 , the selection unit 16 selects a form information table 1451 to be saved from among the form information tables 1451 stored in the form information storage unit 145 .
How to select the form information table 1451 to be saved can be determined arbitrarily. Suppose that it is decided to select the storage target so as to store it. In this case, for example, the selection unit 16 performs the following processing.

選択部16は、項目記録情報が記録されていない帳票情報テーブル1451を帳票情報記憶部145から削除する。また、選択部16は、例えば、いずれか1つの帳票情報テーブル1451を選択し、選択した帳票情報テーブル1451に含まれている全ての項目記録情報が、他の帳票情報テーブル1451のいずれかに記録されている場合、読み出した帳票情報テーブル1451を重複情報として削除することを全ての帳票情報テーブル1451について行う。これらの削除処理を行って、帳票情報テーブル1451間の項目記録情報の重複を少なくしつつ、項目記録情報を漏れなく保存しておくことができる。 The selection unit 16 deletes from the form information storage unit 145 the form information table 1451 in which the item record information is not recorded. Further, the selection unit 16 selects, for example, any one of the form information tables 1451, and records all item record information included in the selected form information table 1451 in any of the other form information tables 1451. If so, all the form information tables 1451 are deleted as redundant information. By performing these deletion processes, duplication of item record information among the form information tables 1451 can be reduced, and item record information can be stored without omission.

選択部16は、最後に帳票情報記憶部145に残っている帳票情報テーブル1451を保存対象として選択する。選択部16は、保存対象の選択が終了すると、画像処理開始の指示情報を画像処理部20に出力する。 The selection unit 16 finally selects the form information table 1451 remaining in the form information storage unit 145 as a storage target. After completing the selection of the storage target, the selection unit 16 outputs instruction information for starting image processing to the image processing unit 20 .

画像処理部20は、帳票情報記憶部145が記憶する帳票情報テーブル1451の中で最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出す。画像処理部20は、読み出した帳票情報テーブル1451の「フレーム識別情報」の項目に示されているフレーム識別情報に対応するフレーム画像をフレーム画像記憶部141から読み出し、読み出したフレーム画像を最初の基準画像とする。 The image processing unit 20 reads out the form information table 1451 written in the form information storage unit 145 first among the form information tables 1451 stored in the form information storage unit 145 . The image processing unit 20 reads from the frame image storage unit 141 the frame image corresponding to the frame identification information indicated in the item "frame identification information" of the read form information table 1451, and uses the read frame image as the first reference. be an image.

また、画像処理部20は、基準画像のフレーム識別情報に基づいて、時系列に並べた場合に、基準画像の次の順番になる帳票情報テーブル1451を帳票情報記憶部145から検索して読み出す。画像処理部20は、読み出した帳票情報テーブル1451の「フレーム識別情報」の項目に示されているフレーム識別情報に対応するフレーム画像をフレーム画像記憶部141から読み出し、重畳対象画像とする。 Further, based on the frame identification information of the reference image, the image processing unit 20 retrieves and reads out the form information table 1451 that follows the reference image when arranged in time series from the form information storage unit 145 . The image processing unit 20 reads from the frame image storage unit 141 the frame image corresponding to the frame identification information indicated in the item of "frame identification information" of the read form information table 1451, and uses it as an image to be superimposed.

また、画像処理部20は、基準画像及び重畳対象画像の各々の特徴点の特徴を示す特徴情報を算出する。また、特徴点とは、対象とする画像におけるコーナー(角)などの特徴的な個所を示す情報であり、特徴量とは、対象とする画像の特徴点にどのような特徴があるかを示す情報である。特徴情報を算出するアルゴリズムとしては、例えば、KAZE(画像特徴量の抽出アルゴリズムの一例)などが適用される。 Further, the image processing unit 20 calculates feature information indicating features of feature points of each of the reference image and the superimposition target image. A feature point is information indicating a characteristic point such as a corner in an image of interest, and a feature amount indicates what kind of feature the feature point of the image of interest has. Information. As an algorithm for calculating feature information, for example, KAZE (an example of an image feature extraction algorithm) is applied.

また、画像処理部20は、背景画像の検出処理において、基準画像のフレーム識別情報に基づいて、時系列に並べた場合に、基準画像の次の順番になるフレーム画像をフレーム画像記憶部141から検索する。画像処理部20は、検索したフレーム画像と当該フレーム画像に対応するフレーム識別情報をフレーム画像記憶部141から読み出し、読み出したフレーム画像を背景画像とする。 Further, in the background image detection process, the image processing unit 20 selects a frame image that follows the reference image when arranged in time series based on the frame identification information of the reference image from the frame image storage unit 141. search for. The image processing unit 20 reads the searched frame image and the frame identification information corresponding to the frame image from the frame image storage unit 141, and uses the read frame image as a background image.

ここで、背景画像の検出処理とは、基準画像と重畳対象画像の間に重複領域がない場合、帳票情報記憶部145に帳票情報テーブル1451が存在しないフレーム画像、すなわち保存対象ではないフレーム画像の中から、基準画像と重畳対象画像の間を埋める背景となるフレーム画像を検出する処理である。
また、画像処理部20は、基準画像及び背景画像の各々の特徴を示す特徴情報を算出する。
Here, the background image detection process is a frame image for which the form information table 1451 does not exist in the form information storage unit 145 when there is no overlapping area between the reference image and the superimposition target image, that is, a frame image that is not to be saved. This is processing for detecting a frame image serving as a background that fills the space between the reference image and the image to be superimposed.
The image processing unit 20 also calculates feature information indicating features of each of the reference image and the background image.

また、画像処理部20は、基準画像の前面に重畳対象画像を重ねる処理が終了した後、帳票情報記憶部145に未処理の帳票情報テーブル1451が存在する場合、変換された重畳対象画像を次の基準画像とする。また、画像処理部20は、背景画像の検出処理において、基準画像の背面に背景画像を重ねる処理が終了した後、変換された背景画像を次の基準画像とする。また、画像処理部20は、帳票情報記憶部145において、処理対象の帳票情報テーブル1451がなくなると、認識データ管理部17に送信処理を開始する指示情報を出力する。 Further, if the unprocessed form information table 1451 exists in the form information storage unit 145 after the process of superimposing the superimposition target image in front of the reference image is completed, the image processing unit 20 transfers the converted superimposition target image to the following: is the reference image of In addition, in the background image detection process, the image processing unit 20 uses the converted background image as the next reference image after the process of superimposing the background image on the back of the reference image is completed. When the form information table 1451 to be processed runs out in the form information storage unit 145 , the image processing unit 20 outputs instruction information to start transmission processing to the recognition data management unit 17 .

画像処理部20は、基準画像の特徴情報と、重畳対象画像の特徴情報とに基づいて形状などが類似する箇所をペアとして検出するマッチング処理を行う。
また、画像処理部20は、基準画像と重畳対象画像において、ペアを所定の数以上検出できない場合、基準画像と重畳対象画像の間に重複領域がないものとして、基準画像と、基準画像に対応するフレーム識別情報及び特徴情報とを含む背景画像の検出を行なう。ここで、所定の数は、例えば、2以上の数であるとする。
The image processing unit 20 performs a matching process of detecting pairs of portions having similar shapes based on the feature information of the reference image and the feature information of the superimposition target image.
In addition, when the image processing unit 20 cannot detect a predetermined number or more of pairs in the reference image and the superimposition target image, the image processing unit 20 assumes that there is no overlapping region between the reference image and the superimposition target image. A background image including frame identification information and feature information is detected. Here, it is assumed that the predetermined number is, for example, 2 or more.

また、画像処理部20は、背景画像の検出処理において、基準画像の特徴情報と、背景画像の特徴情報とに基づいて形状などが類似する箇所をペアとして検出するマッチング処理を行う。
画像処理部20は、マッチング結果に基づいて、基準画像の大きさや、項目及び罫線の位置に合うように重畳対象画像、または、背景画像を変換する処理を行う。画像処理部20は、変換した重畳対象画像及びこれに対応するフレーム識別情報、または、変換した背景画像及びこれに対応するフレーム識別情報を算出する。ここで、変換する処理は、例えば、以下のようにマッチング結果から射影変換(ホモグラフィー)行列を算出し、算出した射影変換行列により重畳対象画像、または、背景画像を変換する透視変換を行う。
Further, in the background image detection process, the image processing unit 20 performs a matching process of detecting a pair of portions having similar shapes based on the feature information of the reference image and the feature information of the background image.
Based on the matching result, the image processing unit 20 performs a process of transforming the image to be superimposed or the background image so as to match the size of the reference image and the positions of the items and ruled lines. The image processing unit 20 calculates the transformed superimposition target image and its corresponding frame identification information, or the transformed background image and its corresponding frame identification information. Here, the conversion processing is, for example, to calculate a homography matrix from the matching result as follows, and perform perspective conversion to convert the superimposition target image or the background image using the calculated homography matrix.

本実施形態において、フレーム画像の射影変換行列は、マッチング処理によりペアにされた箇所の座標情報に基づいて算出される行列であり、透視変換を行うためのパラメータに相当する行列である。
そのため、透視変換は、撮影の際に歪んだり拡大または縮小されていたりするフレーム画像の座標変換を行ない、正面からみたときに見えるテンプレート画像の座標に対応させる。したがって、透視変換後のフレーム画像の座標系と、テンプレート画像の座標系とは一致する。
In this embodiment, the projective transformation matrix of the frame image is a matrix calculated based on the coordinate information of the points paired by the matching process, and is a matrix corresponding to the parameters for perspective transformation.
Therefore, in the perspective transformation, coordinate transformation is performed on a frame image that has been distorted, enlarged, or reduced at the time of photographing, so that it corresponds to the coordinates of the template image that can be seen from the front. Therefore, the coordinate system of the frame image after perspective transformation and the coordinate system of the template image match.

また、画像処理部20は、最初の基準画像のデータを受けて、最初の基準画像のデータを重畳画像の初期画像データとして重畳画像記憶部147に書き込み、重畳状態テーブル1471を生成する。また、画像処理部20は、透視変換された重畳対象画像及び重畳対象画像に対応するフレーム識別情報、または、透視変換された背景画像及び背景画像に対応するフレーム識別情報を受けると、重畳画像記憶部147から重畳画像を読み出す。 Further, the image processing unit 20 receives the data of the first reference image, writes the data of the first reference image to the superimposed image storage unit 147 as the initial image data of the superimposed image, and generates the superimposed state table 1471 . When the image processing unit 20 receives a perspective-transformed superimposition target image and frame identification information corresponding to the superimposition target image, or a perspective-transformed background image and frame identification information corresponding to the background image, the image processing unit 20 stores the superimposed image. A superimposed image is read out from the unit 147 .

画像処理部20は、重畳対象画像の場合、読み出した重畳画像に座標が一致するように、透視変換された重畳対象画像を重畳画像の前面に重ねて新たな重畳画像を生成し、生成した重畳画像を重畳画像記憶部147に上書きする。画像処理部20は、背景画像の場合、読み出した重畳画像に座標が一致するように、透視変換された背景画像を重畳画像の背面に重ねて新たな重畳画像を生成し、この重畳画像を重畳画像記憶部147に上書きする。 In the case of the superimposition target image, the image processing unit 20 generates a new superimposed image by superimposing the perspective-transformed superimposition target image on the front surface of the superimposed image so that the coordinates match the read superimposed image. The superimposed image storage unit 147 is overwritten with the image. In the case of a background image, the image processing unit 20 generates a new superimposed image by superimposing the perspective-transformed background image on the back of the superimposed image so that the coordinates match the readout superimposed image, and superimposes this superimposed image. The image storage unit 147 is overwritten.

また、画像処理部20は、重畳画像記憶部147が記憶する重畳状態テーブル1471に対して重ねた重畳対象画像、または、背景画像に対応するフレーム識別情報を「フレーム識別情報」の項目に書き込み、「配置状態」の項目に、新たに追加したフレーム画像と、1つ前のフレーム画像との位置関係に基づいて「-」、または「上」、または「下」のいずれかの情報を書き込む。 In addition, the image processing unit 20 writes the frame identification information corresponding to the superimposed target image or the background image to the superimposed state table 1471 stored in the superimposed image storage unit 147 in the item of "frame identification information", In the item of "arrangement state", information of either "-", "above", or "below" is written based on the positional relationship between the newly added frame image and the previous frame image.

認識データ管理部17は、画像処理部20から送信処理を開始する指示情報を受けると、帳票定義情報記憶部144が記憶する帳票定義テーブル1441の「帳票識別情報」の項目に示されている帳票識別情報と、重畳画像記憶部147が記憶する重畳画像及び重畳状態テーブル1471を読み出す。また、認識データ管理部17は、帳票情報記憶部145が記憶する全ての帳票情報テーブル1451を読み出す。認識データ管理部17は、読み出した重畳状態テーブル1471の「フレーム識別情報」の項目に示されているフレーム識別情報に対応するフレーム画像をフレーム画像記憶部141から読み出す。 When the recognition data management unit 17 receives instruction information for starting transmission processing from the image processing unit 20, the recognition data management unit 17 identifies the form indicated in the item of “form identification information” in the form definition table 1441 stored in the form definition information storage unit 144. The identification information and the superimposed image and superimposed state table 1471 stored in the superimposed image storage unit 147 are read. Further, the recognition data management unit 17 reads out all the form information tables 1451 stored in the form information storage unit 145 . The recognition data management unit 17 reads from the frame image storage unit 141 the frame image corresponding to the frame identification information indicated in the item “frame identification information” of the read superimposition state table 1471 .

また、認識データ管理部17は、読み出した全ての情報に対して端末装置1に予め付与されているユーザ識別情報を対応付けて通信部18を通じて帳票データ管理装置3に送信する。ここで、ユーザ識別情報とは、ユーザを個別に識別する情報であり、例えば、端末装置1の電話番号、端末装置1の個体識別番号などでもよいし、端末装置1を用いて帳票データ管理装置3にログインをしている場合には、ログインする際のユーザID(IDentification)でもよい。 In addition, the recognition data management unit 17 associates all the read information with the user identification information assigned to the terminal device 1 in advance, and transmits the information to the form data management device 3 through the communication unit 18 . Here, the user identification information is information that individually identifies a user. 3, the user ID (IDentification) at the time of logging in may be used.

帳票データ管理装置3は、例えば、Webサーバ装置として通信ネットワーク4に接続されており、記録処理部31と記憶部32を備える。記録処理部31は、通信ネットワーク4を通じて端末装置1の認識データ管理部17が送信する情報を受信し、受信した情報を記憶部32に書き込む。 The form data management device 3 is connected to the communication network 4 as, for example, a web server device, and includes a recording processing section 31 and a storage section 32 . The recording processing unit 31 receives information transmitted by the recognition data management unit 17 of the terminal device 1 through the communication network 4 and writes the received information into the storage unit 32 .

記憶部32は、図9に示す帳票情報集計テーブル321を記憶する。帳票情報集計テーブル321は、「ユーザ識別情報」、「帳票識別情報」、「重畳画像情報」、「重畳画像構成情報(フレーム識別情報)」、「変換前フレーム画像情報」、「項目番号」、「取得情報」、「表示状態」の項目を有する。 The storage unit 32 stores a form information total table 321 shown in FIG. The form information total table 321 includes "user identification information", "form identification information", "superimposed image information", "superimposed image configuration information (frame identification information)", "pre-conversion frame image information", "item number", It has items of "acquired information" and "display state".

「ユーザ識別情報」、「帳票識別情報」「重畳画像情報」の項目には、それぞれ認識データ管理部17から受信するユーザ識別情報、帳票識別情報、重畳画像のデータが記録処理部31によって書き込まれる。「重畳画像構成情報(フレーム識別情報)」の項目には、認識データ管理部17から受信する重畳状態テーブル1471の「フレーム識別情報」の項目のフレーム識別情報が、当該項目に記録されている順にしたがって記録処理部31によって書き込まれる。「変換前フレーム画像情報」の項目には、「重畳画像構成情報(フレーム識別情報)」に記録されているフレーム識別情報に対応する透視変換前のフレーム画像のデータが記録処理部31によって書き込まれる。 The user identification information, the form identification information, and the superimposed image data received from the recognition data management unit 17 are written in the items of "user identification information", "form identification information", and "superimposed image information" by the recording processing unit 31. . In the item of "superimposed image configuration information (frame identification information)", the frame identification information of the item of "frame identification information" of the superimposed state table 1471 received from the recognition data management unit 17 is displayed in the order recorded in the item. Therefore, it is written by the recording processing unit 31 . In the item of "frame image information before conversion", the data of the frame image before perspective conversion corresponding to the frame identification information recorded in the "superimposed image configuration information (frame identification information)" is written by the recording processing unit 31. .

「項目番号」及び「取得情報」の項目には、「重畳画像構成情報(フレーム識別情報)」に記録されているフレーム識別情報に対応する帳票情報テーブル1451の「項目番号」の項目と「取得情報」の項目の情報が記録処理部31によって書き込まれる。「表示状態」の項目には、「取得情報」の項目に記録されている項目記録情報の中で重畳画像に表示されている項目記録情報を「○」で示し、表示されていない項目記録情報を「×」示す表示状態の情報が書き込まれる。これにより、例えば、ユーザが、後からどの項目記録情報が保存対象になっているかを、重畳画像を参照しつつ確認することができる。 The “item number” and “acquisition information” items include the “item number” item and the “acquisition information” item of the form information table 1451 corresponding to the frame identification information recorded in the “superimposed image configuration information (frame identification information)”. Information” item is written by the recording processing unit 31 . In the "display status" item, the item record information displayed in the superimposed image among the item record information recorded in the "acquired information" item is indicated by "○", and the item record information not displayed is indicated by "○". is written. Thereby, for example, the user can later confirm which item record information is to be saved while referring to the superimposed image.

なお、背景画像の場合、対応する帳票情報テーブル1451が存在しないため「項目番号」、「取得情報」、「表示状態」の項目は空欄となる。 In the case of a background image, since the corresponding form information table 1451 does not exist, the items of "item number", "acquired information", and "display state" are blank.

(端末装置による画像管理処理)
次に、図10から図18を参照しつつ、帳票を撮影して得られるフレーム画像、及びフレーム画像から得られる文字情報を、フレーム画像を時系列に並べつつ帳票データ管理装置3の記憶部32に記憶させる画像管理処理について説明する。
(Image management processing by terminal device)
Next, referring to FIGS. 10 to 18, frame images obtained by photographing a form and character information obtained from the frame images are stored in the storage unit 32 of the form data management device 3 while arranging the frame images in chronological order. The image management processing to be stored in the .

端末装置1のアプリケーション記憶部142は、予めダウンロードされた帳票撮影用のAPを記憶している。また、帳票定義情報記憶部144は、これから撮影する帳票のテンプレートの種類に対応する帳票定義テーブル1441を予め記憶している。ユーザによる帳票撮影用のAPの起動指示を受けて案末装置1は、アプリケーション記憶部142に記憶されている帳票撮影用のAPを起動する。 The application storage unit 142 of the terminal device 1 stores a pre-downloaded AP for photographing a form. Further, the form definition information storage unit 144 stores in advance a form definition table 1441 corresponding to the template type of the form to be photographed from now on. In response to the user's instruction to activate the AP for photographing a document, the terminal device 1 activates the AP for photographing a document stored in the application storage unit 142 .

起動した帳票撮影用のAPは、撮影部11と表示部12を起動し、表示部12の画面に、撮影開始ボタン、撮影終了ボタンを表示する。表示部12は、画面に撮影部11の撮像素子に結像されている画像を表示するプレビュー表示を開始する。 The activated AP for photographing a form activates the photographing unit 11 and the display unit 12 and displays a photographing start button and a photographing end button on the screen of the display unit 12 . The display unit 12 starts preview display for displaying an image formed on the imaging device of the imaging unit 11 on the screen.

図10は、画像管理処理のうち端末装置1による帳票の撮影処理の流れを示すフローチャートである。ユーザは、表示部12のプレビュー表示を参照しながら、例えば、撮影部11のレンズを図3に示す帳票の用紙の先頭の領域に向けて、撮影開始ボタンを選択する(ステップSa1)。 FIG. 10 is a flow chart showing the flow of the document photographing process by the terminal device 1 in the image management process. While referring to the preview display on the display unit 12, the user points the lens of the photographing unit 11 toward the top area of the form shown in FIG. 3, and selects the photographing start button (step Sa1).

操作部10は、撮影開始ボタンが選択されると、フレーム画像記憶部141、帳票情報記憶部145、重畳画像記憶部147の初期化を行い、撮影部11に対して撮影開始の指示情報を出力する。撮影部11は、操作部10から撮影開始の指示情報を受けると、1秒間に10~30フレームのフレームレートでの撮影を連続して行う処理を開始し、撮影ごとに生成するフレーム画像をフレーム画像取得部13に出力する。 When the shooting start button is selected, the operation unit 10 initializes the frame image storage unit 141, the form information storage unit 145, and the superimposed image storage unit 147, and outputs shooting start instruction information to the shooting unit 11. do. Upon receiving instruction information to start shooting from the operation unit 10, the shooting unit 11 starts a process of continuously shooting at a frame rate of 10 to 30 frames per second, and generates frame images for each shooting. Output to the image acquisition unit 13 .

ユーザは、端末装置1において、表示部12のプレビュー表示を参照しながら、帳票の一部を撮影対象として、帳票の先頭から末端まで端末装置1を移動させていく。これにより、ユーザは、シャッターボタンを押すなどの操作を行うことなく、撮影部11は、毎秒10~30フレームで、帳票の先頭から末端にわたって、帳票の一部を撮影したフレーム画像を撮影する。この場合、ユーザは、シャッターボタンを押下するなど特別な操作を行う必要がないため、動画を撮影している感覚で撮影を行う。例えば、撮影部11は、最初に、図4に示すフレーム画像61を出力する。 While referring to the preview display on the display unit 12 of the terminal device 1, the user moves the terminal device 1 from the beginning to the end of the form, with a part of the form as the shooting target. Thereby, the photographing part 11 photographs a frame image of a part of the form from the head to the end of the form at 10 to 30 frames per second without the user performing an operation such as pressing the shutter button. In this case, since the user does not need to perform a special operation such as pressing the shutter button, the user takes a picture as if he were shooting a moving image. For example, the photographing unit 11 first outputs the frame image 61 shown in FIG.

フレーム画像取得部13は、撮影部11が出力するフレーム画像を取得すると、新たなフレーム識別情報を生成し、取得したフレーム画像に生成したフレーム識別情報を対応付けてフレーム画像記憶部141に書き込んで記憶させる(ステップSa2)。ここでは、フレーム画像61に対して、フレーム識別情報として「1」を生成して対応付けたとする。 When acquiring the frame image output by the photographing unit 11, the frame image acquisition unit 13 generates new frame identification information, associates the generated frame identification information with the acquired frame image, and writes the generated frame identification information to the frame image storage unit 141. store (step Sa2). Here, it is assumed that "1" is generated as the frame identification information for the frame image 61 and associated with it.

文字認識部15は、フレーム画像記憶部141に新たなフレーム画像が書き込まれると、書き込まれたフレーム画像に対して文字認識処理を行い、フレーム画像から文字情報と、当該文字情報に対応する座標情報を検出する(ステップSa3)。 When a new frame image is written in the frame image storage unit 141, the character recognition unit 15 performs character recognition processing on the written frame image, and extracts character information from the frame image and coordinate information corresponding to the character information. is detected (step Sa3).

文字認識部15は、1つのフレーム画像から1つ以上の文字情報と座標情報の組み合わせを検出したか否かにより、OCR処理が成功あるいは非成功かを判定する(ステップSa4)。文字認識部15は、1つのフレーム画像か1つ以上の文字情報と座標情報の組み合わせを検出しない場合、OCR処理が成功しないと判定し(ステップSa4、No)、処理をステップSa2に進めて、フレーム画像取得部13が次のフレーム画像の取得を行う。 The character recognizing unit 15 determines whether the OCR processing is successful or unsuccessful depending on whether or not a combination of one or more character information and coordinate information is detected from one frame image (step Sa4). If the character recognition unit 15 does not detect one frame image or a combination of one or more character information and coordinate information, it determines that the OCR process is not successful (step Sa4, No), advances the process to step Sa2, The frame image acquisition unit 13 acquires the next frame image.

一方、文字認識部15は、1つのフレーム画像から1つ以上の文字情報と座標情報の組み合わせを検出した場合、OCR処理が成功したと判定し(ステップSa4、Yes)、検出した全ての文字情報と座標情報の組み合わせにフレーム画像のフレーム識別情報を対応付ける。 On the other hand, when the character recognition unit 15 detects a combination of one or more character information and coordinate information from one frame image, the character recognition unit 15 determines that the OCR processing has succeeded (step Sa4, Yes), and all the detected character information and the coordinate information are associated with the frame identification information of the frame image.

文字認識部15は、フレーム識別情報に対応する全ての文字情報と座標情報と、帳票定義情報記憶部144が記憶する帳票定義テーブル1441とに基づき、文字情報の中から項目名及び項目記録情報を検出して取得する。文字認識部15は、帳票定義テーブル1441に基づき、取得した項目記録情報に対して項目番号を対応付ける(ステップSa5)。 The character recognition unit 15 recognizes item names and item record information from the character information based on all the character information and coordinate information corresponding to the frame identification information and the form definition table 1441 stored in the form definition information storage unit 144. Detect and retrieve. Based on the form definition table 1441, the character recognition unit 15 associates the acquired item record information with the item number (step Sa5).

文字認識部15は、帳票情報記憶部145に新たな帳票情報テーブル1451を生成し、生成した帳票情報テーブル1451の「フレーム識別情報」の項目にフレーム識別情報を書き込む。文字認識部15は、「項目番号」の項目に取得した項目番号を書き込み、項目番号に対応する項目記録情報を「取得情報」の項目に書き込んで記憶させる(ステップSa6)。例えば、図4に示すフレーム画像61の場合、文字認識部15は、図7に示す帳票情報テーブル1451-1を生成する。図7において、項目番号「007」は、「年齢」の項目であり、図4に示すように「年齢」の項目名に対応する項目記録情報はフレーム画像61に含まれておらず、帳票情報テーブル1451-1に項目番号のみが書き込まれる。 The character recognition unit 15 generates a new form information table 1451 in the form information storage unit 145, and writes the frame identification information to the “frame identification information” item of the generated form information table 1451. FIG. The character recognition unit 15 writes the acquired item number in the item of "item number" and writes the item recording information corresponding to the item number in the item of "acquired information" for storage (step Sa6). For example, in the case of the frame image 61 shown in FIG. 4, the character recognition section 15 generates a form information table 1451-1 shown in FIG. In FIG. 7, the item number "007" is the item "Age", and as shown in FIG. Only item numbers are written to table 1451-1.

文字認識部15は、操作部10から撮影終了の指示情報が供給されている否かを判定する(ステップSa7)。文字認識部15は、撮影終了の指示情報が供給されていると判定した場合(ステップSa7、Yes)、処理を終了する。一方、文字認識部15は、撮影終了の指示情報が供給されていないと判定した場合(ステップSa7、No)、処理をステップSa2に進めて、フレーム画像取得部13が次のフレーム画像の取得を行う。 The character recognizing unit 15 determines whether or not instruction information for ending photographing has been supplied from the operation unit 10 (step Sa7). When the character recognizing unit 15 determines that the instruction information for ending the photographing is supplied (step Sa7, Yes), the processing ends. On the other hand, if the character recognizing unit 15 determines that the instruction information to end shooting has not been supplied (step Sa7, No), the process proceeds to step Sa2, and the frame image acquiring unit 13 acquires the next frame image. conduct.

例えば、次に、図5に示すフレーム画像62がフレーム画像取得部13によって取得されると、図11に示す帳票情報テーブル1451-2が帳票情報記憶部145に生成される。また、図12に示すフレーム画像63がフレーム画像取得部13によって取得されると、図13に示す帳票情報テーブル1451-3が帳票情報記憶部145に生成される。 For example, next, when the frame image 62 shown in FIG. 5 is acquired by the frame image acquisition unit 13, the form information table 1451-2 shown in FIG. 12 is obtained by the frame image obtaining unit 13, a form information table 1451-3 shown in FIG. 13 is generated in the form information storage unit 145. FIG.

図14は、画像管理処理のうち端末装置1による保存対象の帳票情報テーブルの選択処理の流れを示すフローチャートである。選択部16は、操作部10から撮影終了の指示情報を受けると、帳票情報記憶部145を参照し、項目記録情報が存在しない帳票情報テーブル1451を全て削除する(ステップSb1)。 FIG. 14 is a flowchart showing a flow of processing for selecting a form information table to be stored by the terminal device 1 in the image management processing. When receiving instruction information to end shooting from the operation unit 10, the selection unit 16 refers to the form information storage unit 145 and deletes all the form information tables 1451 that do not contain item record information (step Sb1).

次に、選択部16は、未処理、すなわち未だ処理対象としていない帳票情報テーブル1451の中で最後に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出す(ステップSb2)。すなわち、選択部16は、未処理の帳票情報テーブル1451を帳票情報記憶部145に書き込まれた順番に並べた場合に一番遅い時刻に書き込まれた帳票情報テーブル1451を読み出す。 Next, the selection unit 16 reads out the form information table 1451 lastly written in the form information storage unit 145 among the unprocessed form information tables 1451 that have not yet been processed (step Sb2). That is, the selection unit 16 reads the form information table 1451 written at the latest time when the unprocessed form information tables 1451 are arranged in the order written in the form information storage unit 145 .

選択部16は、読み出した帳票情報テーブル1451の「取得情報」の項目に記録されている項目記録情報の各々が、帳票情報記憶部145に記憶されている他の帳票情報テーブル1451のいずれかに記録されているか否かを判定することにより、保存対象であるか否かを判定する(ステップSb3)。なお、項目記録情報は、OCR処理により文字認識された文字情報であるため、正確に読み取れない場合もある。そのため、ステップSb3における判定は、項目記録情報の文字情報が一致するか否かを判定するのではなく、他の帳票情報テーブル1451において、判定対象の項目記録情報に対応する項目名と同一の項目名に、何らかの項目記録情報が記録されているか否かを判定する処理となる。 The selection unit 16 stores each of the item record information recorded in the item of “acquisition information” of the read form information table 1451 in one of the other form information tables 1451 stored in the form information storage unit 145 . By determining whether or not it is recorded, it is determined whether or not it is to be saved (step Sb3). Since the item record information is character information that has been character-recognized by OCR processing, it may not be possible to read it accurately. Therefore, the determination in step Sb3 is not to determine whether or not the character information of the item record information matches. It is a process of determining whether or not any item record information is recorded in the name.

選択部16は、当該帳票情報テーブル1451の「取得情報」の項目に記録されている項目記録情報の各々が、帳票情報記憶部145に記憶されている他の帳票情報テーブル1451のいずれかに記録されている場合、保存対象ではないと判定し(ステップSb3、No)、読み出した帳票情報テーブル1451を帳票情報記憶部145から削除する。 The selection unit 16 records each of the item record information recorded in the “acquired information” item of the form information table 1451 in one of the other form information tables 1451 stored in the form information storage unit 145 . If so, it is determined that it is not to be saved (step Sb3, No), and the read form information table 1451 is deleted from the form information storage unit 145. FIG.

一方、選択部16は、当該帳票情報テーブル1451の「取得情報」の項目に記録されている項目記録情報の各々が、帳票情報記憶部145に記憶されている他の帳票情報テーブル1451のいずれにも記録されていない場合、保存対象であると判定する(ステップSb3、Yes)。当該帳票情報テーブル1451を削除すると失われる項目記録情報が存在するためである。選択部16は、未処理の帳票情報テーブル1451が帳票情報記憶部145に存在するか否かを判定する(ステップSb5)。 On the other hand, the selection unit 16 selects which of the other form information tables 1451 stored in the form information storage unit 145 each of the item record information recorded in the item “acquired information” of the form information table 1451 is. is not recorded, it is determined to be a storage target (step Sb3, Yes). This is because there is item record information that is lost when the form information table 1451 is deleted. The selection unit 16 determines whether or not the unprocessed form information table 1451 exists in the form information storage unit 145 (step Sb5).

選択部16は、未処理の帳票情報テーブル1451が帳票情報記憶部145に存在すると判定した場合(ステップSb5、Yes)、処理をステップSb2に進める。一方、選択部16は、未処理の帳票情報テーブル1451が帳票情報記憶部145に存在しないと判定した場合(ステップSb5、No)、画像処理開始の指示情報を画像処理部20に出力して(ステップSb6)、処理を終了する。 If the selection unit 16 determines that the unprocessed form information table 1451 exists in the form information storage unit 145 (step Sb5, Yes), the process proceeds to step Sb2. On the other hand, when the selection unit 16 determines that the unprocessed form information table 1451 does not exist in the form information storage unit 145 (step Sb5, No), the selection unit 16 outputs instruction information for starting image processing to the image processing unit 20 ( Step Sb6), the process ends.

なお、ステップSb3の判定は、項目記録情報の文字情報が同一であるか否かを判定してもよいが、OCR処理により文字認識された文字情報であるため、正確に読み取れていない場合もある。そのため、ステップSb3における判定として、項目記録情報の文字情報が一致するか否かを判定するのではなく、他の帳票情報テーブル1451において、判定対象の項目記録情報に対応する項目名と同一の項目名に、何らかの項目記録情報が記録されているか否かを判定する処理としてもよい。 The determination in step Sb3 may be made to determine whether or not the character information of the item record information is the same. However, since the character information is character-recognized by OCR processing, it may not be read accurately. . Therefore, as the determination in step Sb3, it is not determined whether or not the character information of the item record information matches. It may be a process of determining whether or not any item record information is recorded in the name.

また、選択部16は、図14に示すステップSb2の処理において、未処理の帳票情報テーブル1451の中で最後に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出しているが、例えば、最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出してもよい。図14に示すように、最後に帳票情報記憶部145に書き込まれた帳票情報テーブル1451から順に処理を行うと、時系列に並べた場合に古い方の帳票情報テーブル1451が保存対象として残る処理になり、逆に、最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451から順に処理を行うと、時系列に並べた場合に新しい方の帳票情報テーブル1451が保存対象として残る処理になる。また、選択部16は、未処理の帳票情報テーブル1451の中からランダムに帳票情報テーブル1451を読み出してもよい。 In addition, in the process of step Sb2 shown in FIG. 14, the selection unit 16 reads out the form information table 1451 last written in the form information storage unit 145 among the unprocessed form information tables 1451. For example, The form information table 1451 written in the form information storage unit 145 first may be read. As shown in FIG. 14, when the form information table 1451 that was last written to the form information storage unit 145 is processed in order, the older form information table 1451 remains to be saved when arranged in chronological order. Conversely, if the form information table 1451 written first to the form information storage unit 145 is processed in order, the newer form information table 1451 remains to be stored when arranged in chronological order. Alternatively, the selection unit 16 may randomly read out the form information table 1451 from the unprocessed form information table 1451 .

また、選択部16は、図14に示すステップSb2の処理において、記録されている項目記録情報の数が、少ない帳票情報テーブル1451から順に読み出してもよい。このようにすることで、最終的に、項目記録情報を多く含む帳票情報テーブル1451の方を保存対象とすることができる。 In addition, in the process of step Sb2 shown in FIG. 14, the selection unit 16 may sequentially read out the form information table 1451 in which the number of recorded item record information items is small. By doing so, the form information table 1451 containing more item record information can finally be saved.

また、図14に示す処理において、ステップSb1の処理の後に、ユーザが保存対象とする帳票情報テーブル1451を任意に選択してもよい。この場合、選択部16は、ユーザが保存対象として選択した帳票情報テーブル1451については、ステップSb3の判定結果を「Yes」として判定する。このようにすることで、ユーザが保存対象として選択した帳票情報テーブル1451を残せる。 In the process shown in FIG. 14, the user may arbitrarily select the form information table 1451 to be saved after the process of step Sb1. In this case, the selection unit 16 determines "Yes" as the determination result of step Sb3 for the form information table 1451 selected by the user to be saved. By doing so, the form information table 1451 selected by the user to be saved can be left.

また、図14に示すステップSb1の処理において、予め定められる数以上の項目記録情報を含んでいない帳票情報テーブル1451を削除してもよい。このようにすることで、一定数以上の項目記録情報を含む帳票情報テーブル1451を保存対象として選択できる。また、図14に示す処理において、ステップSb2からステップSb5の処理を行わず、ステップSb1とステップSb6の処理のみを行ってもよい。 Further, in the processing of step Sb1 shown in FIG. 14, the form information table 1451 that does not include the item record information of the predetermined number or more may be deleted. By doing so, it is possible to select the form information table 1451 containing item record information of a certain number or more as a storage target. Further, in the process shown in FIG. 14, only the processes of steps Sb1 and Sb6 may be performed without performing the processes of steps Sb2 to Sb5.

図15は、画像管理処理のうち端末装置1によるフレーム画像同士を重ねて重畳画像を生成する処理の流れを示すフローチャートである。 FIG. 15 is a flow chart showing the flow of processing for overlapping frame images to generate a superimposed image by the terminal device 1 in the image management processing.

画像処理部20は、選択部16から画像処理開始の指示情報を受けると、帳票情報記憶部145が記憶する帳票情報テーブル1451の中で最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出す。最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451とは、帳票情報記憶部145が記憶する帳票情報テーブル1451を時系列に並べた場合に、最も早い時刻に帳票情報記憶部145に書き込まれた帳票情報テーブル1451であり、この帳票情報テーブル1451に対応するフレーム画像には帳票の先頭の部分が撮影されている(ステップSc1)。 When the image processing unit 20 receives the instruction information to start image processing from the selection unit 16, the image processing unit 20 selects the form information table 1451 written in the form information storage unit 145 first among the form information tables 1451 stored in the form information storage unit 145. read out. The form information table 1451 written to the form information storage unit 145 first is written to the form information storage unit 145 at the earliest time when the form information tables 1451 stored in the form information storage unit 145 are arranged in chronological order. The frame image corresponding to this form information table 1451 includes the leading portion of the form (step Sc1).

画像処理部20は、読み出した帳票情報テーブル1451の「フレーム識別情報」の項目に示されているフレーム識別情報に対応するフレーム画像をフレーム画像記憶部141から読み出し、読み出したフレーム画像を最初の基準画像とする(ステップSc2)。画像処理部20は、最初の基準画像のデータを重畳画像の初期画像データとして重畳画像記憶部147に書き込む。 The image processing unit 20 reads from the frame image storage unit 141 the frame image corresponding to the frame identification information indicated in the item "frame identification information" of the read form information table 1451, and uses the read frame image as the first reference. An image is obtained (step Sc2). The image processing unit 20 writes the data of the first reference image to the superimposed image storage unit 147 as the initial image data of the superimposed image.

また、画像処理部20は、重畳画像記憶部147に重畳状態テーブル1471を生成し、生成した重畳状態テーブル1471の「フレーム識別情報」の項目に最初の基準画像のフレーム識別情報を書き込み、「配置位置」の項目の上と下の両方の欄に「-」を書き込む(ステップSc3)。 Further, the image processing unit 20 generates a superimposed state table 1471 in the superimposed image storage unit 147, writes the frame identification information of the first reference image in the item of “frame identification information” of the generated superimposed state table 1471, Write "-" in both the upper and lower columns of the "Position" item (step Sc3).

画像処理部20は、基準画像のフレーム識別情報に基づいて、時系列に並べた場合に、基準画像の次の順番になる帳票情報テーブル1451を帳票情報記憶部145から検索して読み出す。画像処理部20は、読み出した帳票情報テーブル1451の「フレーム識別情報」の項目に示されているフレーム識別情報に対応するフレーム画像をフレーム画像記憶部141から読み出し、読み出したフレーム画像を重畳対象画像とする(ステップSc4)。 Based on the frame identification information of the reference image, the image processing unit 20 retrieves and reads out the form information table 1451 that follows the reference image when arranged in time series from the form information storage unit 145 . The image processing unit 20 reads from the frame image storage unit 141 the frame image corresponding to the frame identification information indicated in the item "frame identification information" of the read form information table 1451, and uses the read frame image as the superimposition target image. (Step Sc4).

画像処理部20は、基準画像及び重畳対象画像の各々の特徴を示す特徴情報を算出する。(ステップSc5)。 The image processing unit 20 calculates feature information indicating features of each of the reference image and the superimposition target image. (Step Sc5).

画像処理部20は、基準画像と、基準画像に対応するフレーム識別情報及び特徴情報と、重畳対象画像と、重畳対象画像に対応するフレーム識別情報及び特徴情報とを取り込む。画像処理部20は、基準画像の特徴情報と、重畳対象画像の特徴情報とに基づいて形状などが類似する箇所をペアとして検出するマッチング処理を行う(ステップSc6)。 The image processing unit 20 acquires a reference image, frame identification information and feature information corresponding to the reference image, a superimposition target image, and frame identification information and feature information corresponding to the superimposition target image. The image processing unit 20 performs a matching process of detecting pairs of portions having similar shapes based on the feature information of the reference image and the feature information of the superimposition target image (step Sc6).

画像処理部20は、対応するペアが所定の数以上検出できたか否かを判定し(ステップSc7)、対応するペアが所定の数以上検出できたと判定した場合(ステップSc7、Yes)、処理をステップSc8へ進める。 The image processing unit 20 determines whether or not a predetermined number or more of corresponding pairs have been detected (step Sc7). Proceed to step Sc8.

図17に示すように、画像処理部20は、例えば、基準画像であるフレーム画像61の符号600の「年齢」の文字の座標と、重畳対象画像であるフレーム画像62の符号700の「年齢」の文字の座標をペアとして検出する。また、画像処理部20は、基準画像であるフレーム画像61の符号601のコーナー(角)の座標と、重畳対象画像であるフレーム画像62の符号701のコーナー(角)の座標をペアとして検出する。 As shown in FIG. 17, the image processing unit 20, for example, coordinates the character "age" indicated by reference numeral 600 in the frame image 61 that is the reference image and "age" indicated by reference numeral 700 in the frame image 62 that is the superimposition target image. , and detect the coordinates of the characters in pairs. Further, the image processing unit 20 detects a pair of coordinates of a corner 601 of the frame image 61 that is the reference image and coordinates of a corner 701 of the frame image 62 that is the superimposition target image. .

画像処理部20は、マッチング結果に基づいて、重畳対象画像に対応する射影変換行列を算出する。画像処理部20は、重畳対象画像を、算出した射影変換行列に基づいて透視変換し、透視変換した重畳対象画像と当該重畳対象画像のフレーム識別情報を取得する(ステップSc8)。 The image processing unit 20 calculates a projective transformation matrix corresponding to the superimposition target image based on the matching result. The image processing unit 20 perspectively transforms the superimposition target image based on the calculated projective transformation matrix, and acquires the superimposition target image subjected to perspective transformation and the frame identification information of the superimposition target image (step Sc8).

画像処理部20は、透視変換された重畳対象画像に対応して、重畳画像記憶部147から重畳画像を読み出す。画像処理部20は、読み出した重畳画像と座標が一致するように、重畳対象画像を重畳画像の前面に重ねて新たな重畳画像を生成し、生成した重畳画像を重畳画像記憶部147に上書きする。画像処理部20は、重畳画像記憶部147が記憶する重畳状態テーブル1471に重ねた重畳対象画像に対応するフレーム識別情報を「フレーム識別情報」の項目に書き込み、「配置状態」の項目を更新する(ステップSc10)。 The image processing unit 20 reads a superimposed image from the superimposed image storage unit 147 corresponding to the superimposition target image that has undergone perspective transformation. The image processing unit 20 generates a new superimposed image by superimposing the superimposition target image in front of the superimposed image so that the coordinates of the read superimposed image match, and overwrites the superimposed image storage unit 147 with the generated superimposed image. . The image processing unit 20 writes the frame identification information corresponding to the image to be superimposed on the superimposed state table 1471 stored in the superimposed image storage unit 147 in the item “frame identification information” and updates the item “arrangement state”. (Step Sc10).

例えば、重畳対象画像がフレーム画像61の次のフレーム画像62の場合、画像処理部20は、フレーム画像61に対応するフレーム識別情報「1」の「配置状態」の項目の下の欄に「下」を書き込み、フレーム画像62に対応するフレーム識別情報「2」の「配置状態」の項目の上の欄に「上」を書き込み、下の欄に「-」を書き込む。 For example, when the image to be superimposed is the frame image 62 next to the frame image 61, the image processing unit 20 writes "lower ” is written in the upper column of the “arrangement state” item of the frame identification information “2” corresponding to the frame image 62, and “−” is written in the lower column.

画像処理部20は、ステップSc10の処理を終了すると、帳票情報記憶部145に未処理の帳票情報テーブル1451が存在するか否かを判定する(ステップSc11)。画像処理部20は、帳票情報記憶部145に未処理の帳票情報テーブル1451が存在すると判定した場合(ステップSc11、Yes)、透視変換された重畳対象画像を次の基準画像として、ステップSc4からの処理を行う(ステップSc13)。 After finishing the process of step Sc10, the image processing unit 20 determines whether or not the unprocessed form information table 1451 exists in the form information storage unit 145 (step Sc11). When the image processing unit 20 determines that the unprocessed form information table 1451 exists in the form information storage unit 145 (step Sc11, Yes), the image processing unit 20 uses the perspective-transformed superimposition target image as the next reference image, and performs the processing from step Sc4. Processing is performed (step Sc13).

図15に示すステップSc7の処理において、画像処理部20は、対応するペアが所定の数以上検出できないと判定した場合(ステップSc7、No)、基準画像と重畳対象画像の間に重複領域がないとして、基準画像と、基準画像に対応するフレーム識別情報及び特徴情報とを含む背景画像の検出処理を開始する(ステップSc9)。 In the processing of step Sc7 shown in FIG. 15, when the image processing unit 20 determines that the number of corresponding pairs or more cannot be detected (step Sc7, No), there is no overlap region between the reference image and the superimposition target image. , the process of detecting a background image including a reference image and frame identification information and feature information corresponding to the reference image is started (step Sc9).

(背景画像の検出処理)
図16は、背景画像の検出処理の流れを示すフローチャートである。画像処理部20は、基準画像と、基準画像に対応するフレーム識別情報及び特徴情報とを含む背景画像の検出を行なう。
(Detection processing of background image)
FIG. 16 is a flowchart showing the flow of background image detection processing. The image processing unit 20 detects a background image including a reference image and frame identification information and feature information corresponding to the reference image.

画像処理部20は、基準画像に対応するフレーム識別情報を参照し、時系列に並べた場合に、基準画像の次の順番になるフレーム画像をフレーム画像記憶部141から検索する。画像処理部20は、検索したフレーム画像と当該フレーム画像に対応するフレーム識別情報をフレーム画像記憶部141から読み出し、読み出したフレーム画像を背景画像とする(ステップSd1)。 The image processing unit 20 refers to the frame identification information corresponding to the reference image, and searches the frame image storage unit 141 for the frame image that follows the reference image when arranged in chronological order. The image processing unit 20 reads the retrieved frame image and the frame identification information corresponding to the frame image from the frame image storage unit 141, and uses the read frame image as a background image (step Sd1).

画像処理部20は、背景画像の特徴を示す特徴情報を算出する(ステップSd2)。 The image processing unit 20 calculates feature information indicating features of the background image (step Sd2).

画像処理部20は、基準画像と、基準画像に対応するフレーム識別情報及び特徴情報と、背景画像と、背景画像に対応するフレーム識別情報及び特徴情報とに基づいて形状などが類似する箇所をペアとして検出するマッチング処理を行う(ステップSd3)。 The image processing unit 20 pairs parts having similar shapes based on the reference image, the frame identification information and the feature information corresponding to the reference image, the background image, and the frame identification information and the feature information corresponding to the background image. (step Sd3).

画像処理部20は、マッチング結果に基づいて、背景画像に対応する射影変換行列を算出する。画像処理部20は、背景画像を、算出した射影変換行列に基づいて透視変換する(ステップSd4)。 The image processing unit 20 calculates a projective transformation matrix corresponding to the background image based on the matching result. The image processing unit 20 perspectively transforms the background image based on the calculated projective transformation matrix (step Sd4).

画像処理部20は、背景画像を透視変換し、重畳画像記憶部147から重畳画像を読み出す。画像処理部20は、読み出した重畳画像と座標が一致するように、背景画像を重畳画像の背面に重ねて新たな重畳画像を生成し、生成した重畳画像を重畳画像記憶部147に上書きする。画像処理部20は、重畳画像記憶部147が記憶する重畳状態テーブル1471に対して重ねた背景画像に対応するフレーム識別情報を「フレーム識別情報」の項目に書き込み、「配置状態」の項目を更新する(ステップSd5)。 The image processing unit 20 perspectively transforms the background image and reads out the superimposed image from the superimposed image storage unit 147 . The image processing unit 20 generates a new superimposed image by superimposing the background image on the back of the superimposed image so that the readout superimposed image and the coordinates match, and overwrites the superimposed image storage unit 147 with the generated superimposed image. The image processing unit 20 writes the frame identification information corresponding to the superimposed background image to the item of “frame identification information” in the superimposed state table 1471 stored in the superimposed image storage unit 147, and updates the item of “arrangement state”. (Step Sd5).

例えば、画像処理部20は、背景画像に対応する「配置状態」の項目の上の欄に「下」を書き込み、下の欄に「-」を書き込む。また、画像処理部20は、背景画像の1つ前のフレーム画像に対応する「配置状態」の項目の下欄に「上」を書き込む。 For example, the image processing unit 20 writes "lower" in the upper column of the "arrangement state" item corresponding to the background image, and writes "-" in the lower column. In addition, the image processing unit 20 writes "above" in the lower column of the "arrangement state" item corresponding to the frame image immediately before the background image.

ステップSd5の処理が終了すると、画像処理部20は、透視変換された背景画像を次の基準画像として(ステップSd6)、背景画像の検出処理のサブルーチンを抜けて図15のステップSc4からの処理を行う。 When the process of step Sd5 is completed, the image processing unit 20 sets the perspective-transformed background image as the next reference image (step Sd6), exits the background image detection subroutine, and performs the processes from step Sc4 of FIG. conduct.

図15のステップSc11において画像処理部20は、帳票情報記憶部145に未処理の帳票情報テーブル1451が存在しないと判定した場合(ステップSc11、No)、認識データ管理部17に対して送信処理を開始する指示情報を出力する。 In step Sc11 of FIG. 15, when the image processing unit 20 determines that the unprocessed form information table 1451 does not exist in the form information storage unit 145 (step Sc11, No), the image processing unit 20 performs transmission processing to the recognition data management unit 17. Output the instruction information to start.

例えば、フレーム画像61,62,63が撮影された場合、認識データ管理部17は、画像処理部20から送信処理を開始する指示情報を受けると、帳票定義情報記憶部144が記憶する帳票定義テーブル1441の「帳票識別情報」の項目に示されている帳票識別情報「0001」を読み出す。また、認識データ管理部17は、重畳画像記憶部147が記憶する重畳画像40及び重畳状態テーブル1471を読み出す。また、認識データ管理部17は、帳票情報記憶部145が記憶する帳票情報テーブル1451-1,1451-2,1451-3を読み出す。認識データ管理部17は、読み出した重畳状態テーブル1471の「フレーム識別情報」の項目に示されているフレーム識別情報「1」,「2」,「3」に対応するフレーム画像61,62,63をフレーム画像記憶部141から読み出す。また、認識データ管理部17は、読み出した全ての情報に対して端末装置1に予め付与されているユーザ識別情報を対応付けて通信部18を通じて帳票データ管理装置3に送信して(ステップSc12)、処理を終了する。 For example, when the frame images 61, 62, and 63 are captured, the recognition data management unit 17, upon receiving instruction information for starting transmission processing from the image processing unit 20, stores the form definition table stored in the form definition information storage unit 144. The form identification information "0001" shown in the item 1441 "form identification information" is read. The recognition data management unit 17 also reads out the superimposed image 40 and the superimposed state table 1471 stored in the superimposed image storage unit 147 . The recognition data management unit 17 also reads out the form information tables 1451-1, 1451-2 and 1451-3 stored in the form information storage unit 145. FIG. The recognition data management unit 17 retrieves the frame images 61, 62, and 63 corresponding to the frame identification information "1", "2", and "3" shown in the item "frame identification information" of the superimposition state table 1471 read out. is read out from the frame image storage unit 141 . Further, the recognition data management unit 17 associates all of the read information with the user identification information assigned in advance to the terminal device 1, and transmits the information to the form data management device 3 through the communication unit 18 (step Sc12). , terminate the process.

フレーム画像61,62,63が撮影された場合、画像処理部20が、送信処理を開始する指示情報を出力する際に、重畳画像記憶部147には、図18に示す重畳画像40が記憶されている。重畳画像40において、最も背面に存在するのが、最初の基準画像であるフレーム画像61であり、フレーム画像62-r,63-rが、透視変換されたフレーム画像62,63である。 When the frame images 61, 62, and 63 are captured, the superimposed image storage unit 147 stores the superimposed image 40 shown in FIG. ing. In the superimposed image 40, the frame image 61, which is the first reference image, exists in the rearmost position, and the frame images 62-r and 63-r are the perspective-transformed frame images 62 and 63, respectively.

最初にフレーム画像62-rが、最初の基準画像であるフレーム画像61の前面に重ねられ、その後、フレーム画像62-rを基準画像として、フレーム画像63-rがフレーム画像62-rの前面に重ねられている。上述したように、本実施形態では、後から重ねられるフレーム画像が、上に位置するように重ねるため、フレーム画像61と、フレーム画像62-rの一部は見えない状態となる。また、重畳画像記憶部147には、最終的に、図8に示す重畳状態テーブル1471が生成される。 First, the frame image 62-r is superimposed in front of the frame image 61, which is the first reference image, and then the frame image 62-r is used as the reference image, and the frame image 63-r is superimposed in front of the frame image 62-r. are superimposed. As described above, in this embodiment, since the frame images to be superimposed later are superimposed, the frame image 61 and part of the frame image 62-r are not visible. Also, a superimposed state table 1471 shown in FIG. 8 is finally generated in the superimposed image storage unit 147 .

これに対して、フレーム画像62に替えて、撮影部11が、例えば、図19に示すフレーム画像62wを撮影したとする。フレーム画像62wは、項目名付近と、右端の方が不鮮明になっている。項目名としては、「性別」のみが撮影されている。「性別」以外の項目名に対応する項目記録情報は撮影されているが、項目名が撮影できていないため、文字認識部15は、「性別」以外の項目名に対応する項目記録情報を取得できない。また、「性別」に対応する項目記録情報も不鮮明であるため、文字認識部15は、「性別」に対応する項目記録情報も取得できない。そのため、選択部16は、図14に示すステップSb1の処理において、フレーム画像62wの帳票情報テーブル1451-2wを削除する。 On the other hand, it is assumed that instead of the frame image 62, the photographing unit 11 photographs a frame image 62w shown in FIG. 19, for example. The frame image 62w is blurred near the item name and at the right end. As the item name, only "sex" is captured. The item record information corresponding to the item names other than "sex" is captured, but the item names are not captured, so the character recognition unit 15 acquires the item record information corresponding to the item names other than "sex". Can not. In addition, since the item record information corresponding to "sex" is also unclear, the character recognition unit 15 cannot acquire the item record information corresponding to "sex" either. Therefore, the selection unit 16 deletes the form information table 1451-2w of the frame image 62w in the process of step Sb1 shown in FIG.

フレーム画像61と、フレーム画像63の間には重複領域がないため、図15のステップSc7において画像処理部20は、「No」と判定し、図16に示す背景画像の検出処理が行われる。背景画像の検出処理のステップSd1において、画像処理部20は、最初の基準画像であるフレーム画像61のフレーム識別情報に基づいて、フレーム画像記憶部141から次の順番であるフレーム画像62wを背景画像として検出する。 Since there is no overlapping area between the frame images 61 and 63, the image processing unit 20 determines "No" in step Sc7 of FIG. 15, and the background image detection process shown in FIG. 16 is performed. In step Sd1 of the background image detection process, the image processing unit 20 selects the next frame image 62w from the frame image storage unit 141 as the background image based on the frame identification information of the frame image 61, which is the first reference image. Detect as

透視変換されたは、透視変換したフレーム画像62w-rを、図20に示すようにフレーム画像61の背面に重ねる。画像処理部20は、透視変換されたフレーム画像62w-rを基準画像として、図15のステップSc4において再びフレーム画像63を重畳対象画像として読み出す。画像処理部20が、透視変換した重畳対象画像、すなわちフレーム画像63-rをフレーム画像62w-rの前面に重ねることにより、最終的に、図20に示す重畳画像40aが得られる。 The perspective-transformed frame images 62w-r are superimposed on the back of the frame image 61 as shown in FIG. The image processing unit 20 uses the perspective-transformed frame image 62w-r as a reference image, and again reads the frame image 63 as an image to be superimposed in step Sc4 of FIG. The image processing unit 20 overlays the perspective-transformed image to be superimposed, that is, the frame image 63-r on the front surface of the frame image 62w-r, so that the superimposed image 40a shown in FIG. 20 is finally obtained.

帳票データ管理装置3の記録処理部31は、通信ネットワーク4を通じて端末装置1の認識データ管理部17が送信する情報を受信すると、受信した情報を帳票情報集計テーブル321の各項目に書き込んで記憶させる。 When the recording processing unit 31 of the form data management device 3 receives the information transmitted by the recognition data management unit 17 of the terminal device 1 through the communication network 4, it writes the received information into each item of the form information total table 321 and stores it. .

記録処理部31は、帳票情報集計テーブル321の「表示状態」の項目に情報を書き込む際、認識データ管理部17から受信する重畳状態テーブル1471の「配置状態」の情報を参照する。記録処理部31は、前後のフレーム画像との間で、項目番号が一致する項目記録情報については、「配置状態」の情報が「上」になっているフレーム画像の表示状態を「○」として記録し、「下」になっているフレーム画像に対応する表示状態を「×」として記録する。 The recording processing unit 31 refers to the “arrangement state” information of the superimposition state table 1471 received from the recognition data management unit 17 when writing information in the “display state” item of the form information total table 321 . The recording processing unit 31 sets the display state of the frame image whose item number is the same as that of the frame image before and after the frame image whose item number is the same as the display state of the frame image whose “arrangement state” information is “top”. The display state corresponding to the frame image that is "lower" is recorded as "x".

例えば、図4に示すフレーム画像61からは、図7の帳票情報テーブル1451-1に示すように、、項目番号「001」の事業所名から項目番号「007」の「年齢」までの項目名の情報が取得されている。また、図5に示すフレーム画像62からは、図11の帳票情報テーブル1451-2に示すように、項目番号「005」の「性別」から項目番号「012」の「他覚症状」までの項目記録情報が取得されている。したがって、フレーム画像61とフレーム画像62では、項目番号「005」の「性別」と、「006」の「健診年月日」と、「007」の「年齢」の項目が重複している。 For example, from the frame image 61 shown in FIG. 4, as shown in the form information table 1451-1 in FIG. information has been obtained. Also, from the frame image 62 shown in FIG. 5, as shown in the form information table 1451-2 in FIG. Record information is obtained. Therefore, in the frame image 61 and the frame image 62, the item number "005" "sex", the item number "006" "medical checkup date", and the item number "007" "age" are duplicated.

図18の重畳画像40に示すように、フレーム画像61-rの前面に、フレーム画像62-rが重ねられるため、図8に示すように、重畳状態テーブル1471の「配置状態」の項目において、フレーム画像61-rに対応するフレーム識別情報「1」の下の欄は「下」になっており、フレーム画像62-rに対応するフレーム識別情報「2」の上の欄は「上」になっている。したがって、記録処理部31は、図9に示すように、帳票情報集計テーブル321の「表示状態」の項目において、フレーム識別情報「1」に対応する項目番号「005」,「006」,「007」については「×」を書き込み、フレーム識別情報「2」に対応する項目番号「005」,「006」,「007」については「○」を書き込む。 As shown in the superimposed image 40 in FIG. 18, the frame image 62-r is superimposed in front of the frame image 61-r. Therefore, as shown in FIG. The column below the frame identification information "1" corresponding to the frame image 61-r is "bottom", and the column above the frame identification information "2" corresponding to the frame image 62-r is "up". It's becoming Therefore, as shown in FIG. 9, the recording processing unit 31 sets the item numbers "005", "006", and "007" corresponding to the frame identification information "1" in the "display state" item of the form information total table 321. , and writes "o" for the item numbers "005", "006", and "007" corresponding to the frame identification information "2".

なお、フレーム画像62に替えて、フレーム画像62wが撮影されている場合、フレーム画像62wは、背景画像であるため、図9の帳票情報集計テーブル321において、フレーム画像62wのフレーム識別情報に対応する「項目番号」、「取得情報」、「表示状態」の項目は空欄となる。なお、「表示状態」の項目に、ユーザが後からみて背景画像であることが容易にわかるように背景画像を示す「背景」などの文字を書き込んでもよい。 Note that when a frame image 62w is captured instead of the frame image 62, the frame image 62w is a background image, and therefore corresponds to the frame identification information of the frame image 62w in the form information total table 321 of FIG. The items of "item number", "acquired information", and "display state" are blank. It should be noted that characters such as "background" indicating a background image may be written in the "display state" item so that the user can easily recognize that the image is a background image.

なお、上記の本実施形態では、画像処理部20は、図15に示すステップSc1の処理において、帳票情報テーブル1451の中で最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出しているが、例えば、最後に帳票情報記憶部145に書き込まれた帳票情報テーブル1451を読み出してもよい。図15に示すように、最初に帳票情報記憶部145に書き込まれた帳票情報テーブル1451から順に処理を行うと、図18に示すように、例えば、時系列に並べた場合に古いフレーム画像61の前面に新しいフレーム画像62-rが重ねられる。逆に、最後に帳票情報記憶部145に書き込まれた帳票情報テーブル1451から順に処理を行うと、例えば、時系列に並べた場合に新しいフレーム画像63の前面に古いフレーム画像62-rが重ねられる。 In the above-described embodiment, the image processing unit 20 reads the form information table 1451 first written in the form information storage unit 145 among the form information tables 1451 in the process of step Sc1 shown in FIG. However, for example, the form information table 1451 last written in the form information storage unit 145 may be read. As shown in FIG. 15, when the form information table 1451 first written in the form information storage unit 145 is processed in order, as shown in FIG. A new frame image 62-r is superimposed on the front. Conversely, if the processing is performed in order from the form information table 1451 that was last written into the form information storage unit 145, for example, when arranged in chronological order, the old frame image 62-r is superimposed on the front of the new frame image 63. .

また、上記の本実施形態では、端末装置1を帳票の先頭から末端に向かって動かして撮影するとしているが、端末装置1を帳票の末端から先頭に向かって動かしてもよい。 Also, in the above-described embodiment, the terminal device 1 is moved from the top of the form to the end to take the picture, but the terminal device 1 may be moved from the end of the form to the top.

また、上記の本実施形態では、図10に示す処理の終了後に、図14に示す処理が行われ、図14に示す処理の終了後に、図15に示す処理が行われる構成になっている。帳票を先頭から順に末端方向に向かって撮影したり、逆に、帳票を末端から順に先頭方向に向かって撮影したりする場合、得られるフレーム画像は時系列になるため、フレーム画像間の項目記録情報の重複は、一定の範囲のフレーム画像の中で確認すればよい。したがって、フレーム画像が時系列に得られている場合、図10に示す処理が一定時間行われた後に、図14に示す処理を開始し、更に、図14に示す処理が一定時間行われた後に、図15に示す処理を開始して図10、図14、及び図15に示す処理を並列に行ってもよい。 14 is performed after the process shown in FIG. 10 is completed, and the process shown in FIG. 15 is performed after the process shown in FIG. 14 is completed. When a form is photographed from the top toward the end, or vice versa, the frame images obtained are in time series, so item recording between frame images is difficult. Duplication of information can be confirmed within a certain range of frame images. Therefore, when frame images are obtained in time series, the process shown in FIG. 14 is started after the process shown in FIG. , the processing shown in FIG. 15 may be started and the processing shown in FIGS. 10, 14, and 15 may be performed in parallel.

上記の本実施形態の構成により、端末装置1において、フレーム画像取得部13は、任意に連続して定められる帳票の一部の領域を撮影対象として撮影部11が連続して撮影するごとに得られるフレーム画像を取得する。文字認識処理部15は、フレーム画像ごとに文字認識処理を行う。画像処理部20は、文字認識処理により文字情報が検出されたフレーム画像の中から最初の重畳画像であって最初の基準画像となるフレーム画像を選択する。また、画像処理部20は、時系列順において基準画像の次の順番のフレーム画像を文字情報が検出されたフレーム画像の中から選択して重畳対象画像とし、基準画像及び重畳対象画像の特徴を示す特徴情報に基づいて、重畳対象画像を変換し、変換した重畳対象画像を重畳画像に重ね、変換後の重畳対象画像を次の基準画像として重畳対象画像を重畳画像に重ねることを繰り返す。これにより、帳票の一部を撮影したフレーム画像のうち文字情報の取得ができたフレーム画像を時系列順に関係付けできるので、ユーザは、当該フレーム画像が、帳票のどの位置に対応しているかの把握が容易となる。また、撮影漏れがある場合、関係付けが途中で途切れるため、容易に撮影漏れを見つけることが可能となる。 With the above-described configuration of the present embodiment, in the terminal device 1, the frame image acquisition unit 13 acquires the frame image acquisition unit 13 each time the image capturing unit 11 continuously captures an arbitrarily continuously determined partial area of the form as an image target. Get the frame image that will be displayed. The character recognition processing unit 15 performs character recognition processing for each frame image. The image processing unit 20 selects a frame image that is the first superimposed image and the first reference image from among the frame images from which character information has been detected by the character recognition process. In addition, the image processing unit 20 selects the frame image next to the reference image in chronological order from among the frame images in which the character information is detected as an image to be superimposed, and determines the characteristics of the reference image and the image to be superimposed. Based on the indicated feature information, the image to be superimposed is transformed, the transformed image to be superimposed is superimposed on the superimposed image, and the transformed image to be superimposed is used as the next reference image, and the image to be superimposed is superimposed on the superimposed image repeatedly. As a result, the frame images for which the character information has been acquired among the frame images obtained by photographing a part of the form can be associated in chronological order, so that the user can determine which position of the form the frame image corresponds to. It becomes easy to understand. In addition, if there is an omission of photography, the association is interrupted in the middle, so it is possible to easily find the omission of photography.

また、撮影したフレーム画像のみによって時系列順に関連付けを行うため、帳票のテンプレートの画像などを予め準備しておく必要がなく、任意の帳票に対して端末装置1を利用することが可能となる。なお、最初の基礎画像の罫線に傾きが存在する場合、例えば、図18に示すように重畳画像40の罫線が傾くが、例えば、最初の基礎画像、すなわち重畳画像の初期画像のみ、横方向の罫線を、水平方向にして、縦方向の罫線を、垂直方向にするような画像変換を画像処理部20が行うことにより、罫線の傾きが解消された重畳画像40を得ることが可能となる。 In addition, since association is performed in chronological order using only captured frame images, it is possible to use the terminal device 1 for an arbitrary form without preparing an image of a form template or the like in advance. When the ruled lines of the first basic image are slanted, for example, the ruled lines of the superimposed image 40 are slanted as shown in FIG. The superimposed image 40 in which the inclination of the ruled lines is eliminated can be obtained by the image processing part 20 performing image conversion such that the ruled lines are arranged in the horizontal direction and the vertical ruled lines are arranged in the vertical direction.

また、上記の本実施形態の構成において、画像処理部20は、基準画像及び重畳対象画像において重複領域が存在しない場合、基準画像及び重畳対象画像の間に撮影された他のフレーム画像を基準画像の背面に背景画像として重ねる。これにより、文字情報が検出されたフレーム画像を時系列に並べた際に、連続性がなくても、文字情報が検出されなかったフレーム画像等を背景画像として関連付けを行えるため、帳票の最後までフレーム画像を関係付けることが可能となる。 In addition, in the configuration of the present embodiment described above, when there is no overlap region between the reference image and the superimposition target image, the image processing unit 20 converts another frame image captured between the reference image and the superimposition target image into the reference image. overlaid as a background image on the back of the . As a result, even if there is no continuity when arranging frame images in which text information is detected in chronological order, frame images in which text information is not detected can be associated as background images. It becomes possible to relate frame images.

(一実施形態の他の構成例)
上記の本実施形態では、画像処理部20は、図15に示すステップSc10の処理において重畳対象画像のフレーム画像を重ねる際、1つ前のフレーム画像の前面に重ねていく処理を行っていた。このステップSc10の処理を行う際に、画像処理部20は、帳票情報テーブル1451の「項目番号」及び「取得情報」の項目の記録状態に基づいて、フレーム画像を重ねる順を変更してもよい。
(Another configuration example of one embodiment)
In the present embodiment described above, when superimposing the frame image of the superimposition target image in the process of step Sc10 shown in FIG. When performing the process of step Sc10, the image processing unit 20 may change the order in which the frame images are superimposed based on the recording status of the items "item number" and "acquired information" in the form information table 1451. .

例えば、図5に示したフレーム画像62ではなく、図21に示すフレーム画像62aを撮影部11が撮影したとする。フレーム画像62aは、「性別」の項目記録情報と、「健診年月日」の項目記録情報が不鮮明になっている。そのため、文字認識部15は、これらの項目については、項目記録情報を取得できず、項目名の「性別」と「健診年月日」の文字情報のみを取得する。 For example, assume that the imaging unit 11 has captured a frame image 62a shown in FIG. 21 instead of the frame image 62 shown in FIG. In the frame image 62a, the item recorded information of "gender" and the item recorded information of "medical examination date" are blurred. Therefore, the character recognition unit 15 cannot acquire the item record information for these items, and acquires only the character information of the item names "sex" and "medical examination date".

本実施形態において説明した画像処理部20の処理をフレーム画像62aに適用すると、フレーム画像62aを透視変換した画像(以下、フレーム画像62a-rという)をフレーム画像61の前面に重ねるため、フレーム画像61に表示されている「性別」/「男」、「健診年月日」/「平成29年6月10日」の情報が重畳画像40において見えなくなる。 When the processing of the image processing unit 20 described in the present embodiment is applied to the frame image 62a, images obtained by perspectively transforming the frame image 62a (hereinafter referred to as frame images 62a to 62r) are superimposed on the front surface of the frame image 61. The information of “sex”/“male” and “date of medical examination”/“June 10, 2017” displayed in 61 disappears in the superimposed image 40 .

図22は、フレーム画像62aに対応して帳票情報記憶部145に生成される帳票情報テーブル1451a-2を示した図である。画像処理部20は、図7に示す帳票情報テーブル1451-1と、帳票情報テーブル1451a-2の共通の項目番号である「005」,「006」,「007」に対応する「取得情報」の項目を参照する。項目番号「005」,「006」については、帳票情報テーブル1451-1には、項目記録情報として、「男」、「平成29年6月10日」が記録されているのに対して、帳票情報テーブル1451a-2には、項目記録情報が記録されていない。 FIG. 22 shows a form information table 1451a-2 generated in the form information storage unit 145 corresponding to the frame image 62a. The image processing unit 20 selects the "acquired information" corresponding to the common item numbers "005", "006", and "007" of the form information table 1451-1 and the form information table 1451a-2 shown in FIG. Browse items. Regarding the item numbers “005” and “006”, “Male” and “June 10, 2017” are recorded as item record information in the form information table 1451-1. Item record information is not recorded in the information table 1451a-2.

このような場合、画像処理部20は、フレーム画像62a-rをフレーム画像61の前面に重ねると、項目番号「005」,「006」に対応する項目記録情報が隠れてしまうと判定する。画像処理部20は、判定結果にしたがって、図23に示すようにフレーム画像61の背面にフレーム画像62a-rを重ねる処理を行う。また、画像処理部20は、図24に示すように、重畳状態テーブル1471のフレーム識別情報「1」の「配置状態」の項目の下の欄に「上」を書き込み、フレーム識別情報「2」の「配置状態」の項目の上の欄に「下」を書き込む。 In such a case, the image processing unit 20 determines that if the frame images 62a-r are superimposed on the front of the frame image 61, the item record information corresponding to the item numbers "005" and "006" will be hidden. The image processing unit 20 superimposes the frame images 62a to 62a on the back of the frame image 61 as shown in FIG. 23 according to the determination result. In addition, as shown in FIG. 24, the image processing unit 20 writes "above" in the column below the item "arrangement state" of the frame identification information "1" in the superimposition state table 1471, and sets the frame identification information "2". Write "bottom" in the upper column of the "placement state" item.

なお、1つ前のフレーム画像が背景画像である場合、背景画像には帳票情報テーブル1451が存在しない。そのため、画像処理部20は、重畳対象画像と、1つ前の背景画像との間には共通の項目番号は存在しないため、透視変換した重畳対象画像を1つ前の背景画像の前面に重ねる。 Note that if the previous frame image is a background image, the form information table 1451 does not exist in the background image. Therefore, since there is no common item number between the image to be superimposed and the previous background image, the image processing unit 20 superimposes the perspective-transformed superimposition target image in front of the previous background image. .

上記の本実施形態の他の構成例において、画像処理部20は、基準画像に重畳対象画像を重ねる際、基準画像と重畳対象画像に含まれる文字情報が重複する場合、基準画像と重畳対象画像に含まれる文字情報に基づいて、基準画像と重畳対象画像のいずれを上にして重ねるかを選択する。これにより、最終的に生成される重畳画像において、文字情報が他のフレーム画像に隠され難くなり、より多くの文字情報を表示できる。また、重畳画像40により多くの項目記録情報を表示することが可能となり、後から確認するユーザに対して、項目記録情報を確認し易くさせる。 In the other configuration example of the present embodiment described above, when the superimposition target image is superimposed on the reference image, if the character information included in the reference image and the superimposition target image overlap, the image processing unit 20 may which of the reference image and the image to be superimposed is to be superimposed on the top is selected based on the character information included in the . As a result, character information is less likely to be hidden by other frame images in the finally generated superimposed image, and more character information can be displayed. In addition, it is possible to display a large amount of item record information in the superimposed image 40, thereby facilitating confirmation of the item record information by the user who confirms it later.

また、記憶部14の記憶領域を十分に確保できる場合、フレーム画像取得部13は、撮影部11が生成する全てのフレーム画像をフレーム画像記憶部141に記憶するようにして、文字認識部15が、フレーム画像記憶部141に記憶されているフレーム画像の中から、処理対象とするフレーム画像を選択してもよい。 Further, when a sufficient storage area of the storage unit 14 can be secured, the frame image acquisition unit 13 stores all frame images generated by the photographing unit 11 in the frame image storage unit 141 so that the character recognition unit 15 A frame image to be processed may be selected from frame images stored in the frame image storage unit 141 .

また、上記の一実施形態において、画像処理部20において、誤ったマッチング結果に基づいて透視変換を行うと、変換後の画像が読めないものになる可能性がある。例えば、マッチング結果の距離の値は、値の大きさが小さいほど確度が高くなるが、このマッチング結果の距離の値や、対応すると判定された特徴点の数に閾値を設ける等の処理を加えてもよい。このような処理を加えることで、マッチングの精度を向上できる。また、画像処理部20による透視変換の結果として得られるフレーム画像のサイズが大きすぎる場合、変換が失敗したものとして除外してもよい。 In the above-described embodiment, if the image processing unit 20 performs perspective transformation based on an erroneous matching result, the transformed image may become unreadable. For example, the smaller the value of the distance value of the matching result, the higher the accuracy. may By adding such processing, the accuracy of matching can be improved. Also, if the size of the frame image obtained as a result of the perspective transformation by the image processing unit 20 is too large, it may be excluded as a failure of the transformation.

また、上記の一実施形態の構成において、帳票の撮影の際に、別の帳票や任意の物体が写り込んでしまうと、画像処理部20による処理において、別の帳票や任意の物体を特徴として算出するおそれがある。そのため、画像処理部20が、フレーム画像記憶部141からフレーム画像を読み出した際、フレーム画像の外周を示す線を検出し、外周部分をトリミングしてからフレーム画像の特徴情報を算出してもよい。 Further, in the configuration of the above-described embodiment, if another form or an arbitrary object is caught in the image when the form is photographed, the processing by the image processing unit 20 will detect the other form or an arbitrary object as a feature. may be calculated. Therefore, when the image processing unit 20 reads out the frame image from the frame image storage unit 141, the line indicating the outer circumference of the frame image may be detected, and the characteristic information of the frame image may be calculated after trimming the outer circumference. .

また、本実施形態では、端末装置1が、画像処理部20と重畳画像記憶部147を備えて、重畳画像を生成する画像処理を行う1台の「画像処理装置」として機能しているが、画像処理部20と重畳画像記憶部147を分離して、外部の装置(例えば、画像処理サーバ装置など)が、画像処理部20と重畳画像記憶部147を備えるようにしてもよい。この場合、端末装置1が、フレーム画像記憶部141が記憶する情報と、帳票情報記憶部145が記憶する情報とを、外部の装置に出力する。外部の装置の画像処理部20は、端末装置1が出力する情報に基づいて、重畳画像を生成し、最終的に得られた重畳画像を端末装置1に出力するといった構成になる。かかる場合、端末装置1と当該外部の装置が一体となって重畳画像を生成する「画像処理装置」となる。 Further, in the present embodiment, the terminal device 1 includes the image processing unit 20 and the superimposed image storage unit 147, and functions as one "image processing device" that performs image processing for generating a superimposed image. The image processing unit 20 and the superimposed image storage unit 147 may be separated, and an external device (for example, an image processing server device, etc.) may include the image processing unit 20 and the superimposed image storage unit 147 . In this case, the terminal device 1 outputs the information stored by the frame image storage unit 141 and the information stored by the form information storage unit 145 to an external device. The image processing unit 20 of the external device generates a superimposed image based on the information output by the terminal device 1 and outputs the finally obtained superimposed image to the terminal device 1 . In such a case, the terminal device 1 and the external device are integrated to form an "image processing device" that generates a superimposed image.

また、本実施形態において、重畳状態テーブル1471において、どのフレーム画像が上になっているかを示す「配置状態」の情報を記憶しているが、例えば、常に時系列で後になるフレーム画像を上に重ねる、または下に重ねるといった決まった処理を行うのであれば、重畳状態テーブル1471を備えなくてもよい。この場合、記録処理部31は、重畳状態テーブル1471を参照できないことになるため、図9に示す帳票情報集計テーブル32の「表示状態」の項目を設けなくてもよい。 In addition, in this embodiment, the superimposition state table 1471 stores the information of “arrangement state” indicating which frame image is on top. The superimposition state table 1471 may not be provided if predetermined processing such as superimposing or lowering is performed. In this case, since the recording processing unit 31 cannot refer to the superimposition state table 1471, it is not necessary to provide the "display state" item of the form information total table 32 shown in FIG.

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

以上、この発明の実施形態について図面を参照して詳述したが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 Although the embodiment of the present invention has been described in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and design and the like are included within the scope of the present invention.

1…端末装置 3…帳票データ管理装置 4…通信ネットワーク 10 操作部 11…撮影部 12…表示部 13…フレーム画像取得部 14…記憶部 15…文字認識部 17…認識データ管理部 18…通信部 20…画像処理部 31…記録処理部 32…記憶部 DESCRIPTION OF SYMBOLS 1... Terminal device 3... Form data management apparatus 4... Communication network 10 Operation part 11... Photographing part 12... Display part 13... Frame image acquisition part 14... Storage part 15... Character recognition part 17... Recognition data management part 18... Communication part 20... Image processing unit 31... Recording processing unit 32... Storage unit

Claims (7)

一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得部と、
前記フレーム画像における文字画像の文字認識を行なう文字認識部と、
文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部と、
を備え
前記画像処理部は、
前記基準画像及び前記重畳対象画像において重複領域が存在しない場合、前記基準画像と前記フレーム画像との間に撮影された、前記文字認識において文字情報が得られなかった他のフレーム画像を前記基準画像の背面に背景画像として重ねる
とを特徴とする画像処理装置。
a frame image obtaining unit that obtains frame images obtained by partially continuously photographing one form;
a character recognition unit that performs character recognition of the character image in the frame image;
The image to be superimposed is determined based on the feature information of the image to be superimposed, which is the frame image from which the character information is obtained by character recognition, and the feature information of the reference image, which is the frame image of the form photographed prior to the image to be superimposed. an image processing unit that repeats the process of superimposing the document image on the reference image to obtain an image in which at least a part of the image of the form is restored;
with
The image processing unit
When there is no overlap region between the reference image and the superimposition target image, another frame image shot between the reference image and the frame image from which character information was not obtained in the character recognition is used as the reference image. Overlay as a background image behind the
An image processing apparatus characterized by :
前記画像処理部は、
前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択する
ことを特徴とする請求項1に記載の画像処理装置。
The image processing unit
When the image to be superimposed is superimposed on the reference image, if the character information included in the reference image and the image to be superimposed overlap, selecting which of the reference image and the frame image is to be superimposed on the top. 2. The image processing apparatus according to claim 1 , wherein:
一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得部と、
前記フレーム画像における文字画像の文字認識を行なう文字認識部と、
文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部と、
を備え
前記画像処理部は、
前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択する
ことを特徴とする画像処理装置。
a frame image obtaining unit that obtains frame images obtained by partially continuously photographing one form;
a character recognition unit that performs character recognition of the character image in the frame image;
The image to be superimposed is determined based on the feature information of the image to be superimposed, which is the frame image from which the character information is obtained by character recognition, and the feature information of the reference image, which is the frame image of the form photographed prior to the image to be superimposed. an image processing unit that repeats the process of superimposing the document image on the reference image to obtain an image in which at least a part of the image of the form is restored;
with
The image processing unit
When the image to be superimposed is superimposed on the reference image, if the character information included in the reference image and the image to be superimposed overlap, selecting which of the reference image and the frame image is to be superimposed on the top.
An image processing apparatus characterized by:
フレーム画像取得部が、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得過程と、
文字認識部が、前記フレーム画像における文字画像の文字認識を行なう文字認識過程と、
画像処理部が、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理過程と、
を含み、
前記画像処理過程は、
前記基準画像及び前記重畳対象画像において重複領域が存在しない場合、前記基準画像と前記フレーム画像との間に撮影された、前記文字認識において文字情報が得られなかった他のフレーム画像を前記基準画像の背面に背景画像として重ねることを含む
ことを特徴とする画像管理方法。
a frame image obtaining process in which the frame image obtaining unit obtains frame images obtained by partially continuously photographing one form;
a character recognition process in which the character recognition unit performs character recognition of the character image in the frame image;
The image processing unit uses the feature information of the superimposition target image, which is the frame image from which the character information is obtained by character recognition, and the feature information of the reference image, which is the frame image of the form captured prior to the superimposition target image, to determine the an image processing step of repeating a process of superimposing an image to be superimposed on the reference image to obtain an image in which at least a part of the image of the form is restored;
including
The image processing process includes:
When there is no overlap region between the reference image and the superimposition target image, another frame image shot between the reference image and the frame image from which character information was not obtained in the character recognition is used as the reference image. including overlaying it as a background image behind the
An image management method characterized by:
フレーム画像取得部が、一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得過程と、
文字認識部が、前記フレーム画像における文字画像の文字認識を行なう文字認識過程と、
画像処理部が、文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理過程と、
を含み、
前記画像処理過程は、
前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択することを含む
ことを特徴とする画像管理方法。
a frame image obtaining process in which the frame image obtaining unit obtains frame images obtained by partially continuously photographing one form;
a character recognition process in which the character recognition unit performs character recognition of the character image in the frame image;
The image processing unit uses the feature information of the superimposition target image, which is the frame image from which the character information is obtained by character recognition, and the feature information of the reference image, which is the frame image of the form captured prior to the superimposition target image, to determine the an image processing step of repeating a process of superimposing an image to be superimposed on the reference image to obtain an image in which at least a part of the image of the form is restored;
including
The image processing process includes:
When the image to be superimposed is superimposed on the reference image, if the character information included in the reference image and the image to be superimposed overlap, selecting which of the reference image and the frame image is to be superimposed on the top. including
An image management method characterized by:
コンピュータを、
一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得手段、
前記フレーム画像における文字画像の文字認識を行なう文字認識手段、
文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部手段、
として機能させるためのプログラムであり、
前記画像処理部手段では、
前記基準画像及び前記重畳対象画像において重複領域が存在しない場合、前記基準画像と前記フレーム画像との間に撮影された、前記文字認識において文字情報が得られなかった他のフレーム画像を前記基準画像の背面に背景画像として重ねることを含む
プログラム。
the computer,
frame image acquisition means for acquiring frame images obtained by partially continuously photographing one form;
character recognition means for performing character recognition of the character image in the frame image;
The image to be superimposed is determined based on the feature information of the image to be superimposed, which is the frame image from which the character information is obtained by character recognition, and the feature information of the reference image, which is the frame image of the form photographed prior to the image to be superimposed. An image processing unit that repeats the process of superimposing the image on the reference image to obtain an image in which at least a part of the image of the form is restored;
It is a program for functioning as
In the image processing section means,
When there is no overlap region between the reference image and the superimposition target image, another frame image shot between the reference image and the frame image from which character information was not obtained in the character recognition is used as the reference image. including overlaying it as a background image behind the
program.
コンピュータを、
一つの帳票を部分的に連続して撮影したフレーム画像を取得するフレーム画像取得手段、
前記フレーム画像における文字画像の文字認識を行なう文字認識手段、
文字認識により文字情報が得られた前記フレーム画像である重畳対象画像の特徴情報と、帳票を重畳対象画像より先に撮影したフレーム画像である基準画像の特徴情報とにより、前記重畳対象画像を前記基準画像に重畳させる処理を繰り返し、前記帳票の画像の少なくとも一部を復元した状態の画像とする画像処理部手段、
として機能させるためのプログラムであり、
前記画像処理部手段では、
前記基準画像に前記重畳対象画像を重ねる際、前記基準画像と前記重畳対象画像に含まれる前記文字情報が重複する場合、前記基準画像と前記フレーム画像とのいずれを上にして重ねるかを選択することを含む
プログラム。
the computer,
frame image acquisition means for acquiring frame images obtained by partially continuously photographing one form;
character recognition means for performing character recognition of the character image in the frame image;
The image to be superimposed is determined based on the feature information of the image to be superimposed, which is the frame image from which the character information is obtained by character recognition, and the feature information of the reference image, which is the frame image of the form photographed prior to the image to be superimposed. An image processing unit that repeats the process of superimposing the image on the reference image to obtain an image in which at least a part of the image of the form is restored;
It is a program for functioning as
In the image processing section means,
When the image to be superimposed is superimposed on the reference image, if the character information included in the reference image and the image to be superimposed overlap, selecting which of the reference image and the frame image is to be superimposed on the top. including
program.
JP2018235845A 2018-12-17 2018-12-17 Image processing device, image management method, program Active JP7240163B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018235845A JP7240163B2 (en) 2018-12-17 2018-12-17 Image processing device, image management method, program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018235845A JP7240163B2 (en) 2018-12-17 2018-12-17 Image processing device, image management method, program

Publications (2)

Publication Number Publication Date
JP2020098429A JP2020098429A (en) 2020-06-25
JP7240163B2 true JP7240163B2 (en) 2023-03-15

Family

ID=71106512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018235845A Active JP7240163B2 (en) 2018-12-17 2018-12-17 Image processing device, image management method, program

Country Status (1)

Country Link
JP (1) JP7240163B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113642584B (en) * 2021-08-13 2023-11-28 北京百度网讯科技有限公司 Text recognition method, device, equipment, storage medium and smart dictionary pen

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016046794A (en) 2014-08-27 2016-04-04 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image processing method
JP2016538783A (en) 2013-11-15 2016-12-08 コファックス, インコーポレイテッド System and method for generating a composite image of a long document using mobile video data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016538783A (en) 2013-11-15 2016-12-08 コファックス, インコーポレイテッド System and method for generating a composite image of a long document using mobile video data
JP2016046794A (en) 2014-08-27 2016-04-04 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Dhruven Prajapati, Kruti J. Dangarwala,Various Document Image Mosaicing Method in Image processing : A Survey,SPACES-2015,2015年01月03日

Also Published As

Publication number Publication date
JP2020098429A (en) 2020-06-25

Similar Documents

Publication Publication Date Title
JP4552632B2 (en) Portable device
JP4918171B1 (en) Image processing apparatus and document reading system having the same
JP4743892B2 (en) Terminal and program for displaying additional image superimposed on captured image
JP5184123B2 (en) Image processing apparatus, image data communication system, and image processing program
JP7240163B2 (en) Image processing device, image management method, program
KR101517829B1 (en) Book scanning system using smart device
JP2006018384A (en) Imaging apparatus and image processing method
JP2007097076A (en) Shooting date correction device, shooting date correction method and program
JP7240164B2 (en) Image processing device, image management method, program
JP2020091748A (en) Terminal device, program, image management method
JP2006180403A (en) Information processing device
JP7292052B2 (en) Image processing device, guide image generation method and program
JP2006277065A (en) Layout editing system and method
JP6558145B2 (en) Information processing terminal, information processing system, processing method thereof, and program
JP2008271309A (en) Mobile terminal with camera, image associated information acquiring system, image associated information providing server, and mobile communication terminal with camera
JP2017199288A (en) Image processing apparatus, image processing method, and program
JP6917688B2 (en) Form reader, form reading method, program, and form reading system
JP6850323B2 (en) Information processing device, its control method and program
KR101125981B1 (en) Function Display System and Method for electronic device mop-up using Augmentation-reality
JP2017033477A (en) Image determination system, image determination method, image determination program, and record medium for recording image determination program
JP2019101674A (en) Information processing device, control method therefor, and program
JP6515539B2 (en) Image forming device
JP2010191907A (en) Character input device and character input method
JP2002152668A (en) Multi-display apparatus, multi-display method, photographing system and photographing method
JP7231529B2 (en) Information terminal device, server and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221004

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221121

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230303

R150 Certificate of patent or registration of utility model

Ref document number: 7240163

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250