JP2016218652A - Display device, information processing program, and information processing method - Google Patents
Display device, information processing program, and information processing method Download PDFInfo
- Publication number
- JP2016218652A JP2016218652A JP2015101575A JP2015101575A JP2016218652A JP 2016218652 A JP2016218652 A JP 2016218652A JP 2015101575 A JP2015101575 A JP 2015101575A JP 2015101575 A JP2015101575 A JP 2015101575A JP 2016218652 A JP2016218652 A JP 2016218652A
- Authority
- JP
- Japan
- Prior art keywords
- theme
- image
- image file
- attribute information
- display device
- 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.)
- Granted
Links
Images
Abstract
Description
この発明は、表示装置、情報処理プログラムおよび情報処理方法に関し、特にたとえば、外部の記憶媒体に記憶された画像を表示する、表示装置、情報処理プログラムおよび情報処理方法に関する。 The present invention relates to a display device, an information processing program, and an information processing method, and more particularly, to a display device, an information processing program, and an information processing method that display an image stored in an external storage medium, for example.
特許文献1に開示されるデジタルフォトフレームでは、外部メモリが本体に対して挿入されると、外部メモリから画像ファイルが読み込まれ、読み込んだ画像ファイルの中から、顔認識ソフトウェアを用いて人物の画像が検索され、検索された各人物の画像の代表的画像がディスプレイに表示される。また、表示された各人物の画像の代表的画像の中から、ユーザによって所望の人物の画像が選択されると、当該人物の表情を選択するための選択画面がディスプレイに表示される。さらに、ユーザによって、選択画面からいずれかの表情が選択されると、選択された表情の画像が所望の人物の画像の中から検索され、検索された画像で構成されるアルバムが自動的に作成される。
In the digital photo frame disclosed in
しかし、特許文献1では、アルバムを作成するためには、ユーザが手作業で、所望の人物の画像および所望の表情を選択する必要があり、面倒である。
However, in
それゆえに、この発明の主たる目的は、新規な、表示装置、情報処理プログラムおよび情報処理方法を提供することである。 Therefore, a main object of the present invention is to provide a novel display device, information processing program, and information processing method.
また、この発明の他の目的は、外部メモリに記憶された画像ファイルを自動的に仕分けることができる、表示装置、情報処理プログラムおよび情報処理方法を提供することである。 Another object of the present invention is to provide a display device, an information processing program, and an information processing method capable of automatically sorting image files stored in an external memory.
第1の発明の表示装置は、外部の記憶媒体に記憶された画像ファイルに含まれる画像データに対応する画像を表示する表示装置であって、画像ファイルについての属性情報を抽出する属性情報抽出手段、画像ファイルを分類するための複数のテーマと複数のテーマの各々に関連するキーワードとを対応付けて記述したテーマ辞書に対応する辞書データを記憶するテーマ辞書記憶手段、属性情報抽出手段によって抽出された属性情報に含まれる文字列と、テーマ辞書に記述されたキーワードとの一致度に基づいて画像ファイルのテーマを判断するテーマ判断手段、およびテーマ判断手段によって判断されたテーマに分類して画像ファイルを内部の記憶媒体に記憶する仕分け手段を備える。 A display device according to a first aspect of the present invention is a display device for displaying an image corresponding to image data included in an image file stored in an external storage medium, the attribute information extracting means for extracting attribute information about the image file The theme dictionary storage means for storing dictionary data corresponding to a theme dictionary in which a plurality of themes for classifying image files and keywords related to each of the plurality of themes are described in association with each other and extracted by attribute information extraction means Image files classified into the themes determined by the theme determination means for determining the theme of the image file based on the matching degree between the character string included in the attribute information and the keyword described in the theme dictionary, and the theme determination means Sorting means is stored in the internal storage medium.
第1の発明によれば、画像ファイルのテーマを判断(決定)し、テーマ別に分類して振り分ける(記憶する)ので、外部の記憶媒体に記憶された画像ファイルを自動的に仕分けることができる。 According to the first invention, since the theme of the image file is determined (determined), classified and sorted (stored) by theme, the image file stored in the external storage medium can be automatically sorted.
第2の発明の表示装置では、属性情報は、画像ファイルのファイル名を含む。 In the display device of the second invention, the attribute information includes the file name of the image file.
第3の発明の表示装置では、属性情報は、画像ファイルのタイトルを含む。 In the display device of the third invention, the attribute information includes the title of the image file.
第4の発明の表示装置では、属性情報は、画像ファイルのコメントを含む。 In the display device of the fourth invention, the attribute information includes a comment of the image file.
第2ないし第4の発明によれば、第1の発明と同様に、外部の記憶媒体に記憶された画像ファイルを自動的に仕分けることができる。 According to the second to fourth inventions, similarly to the first invention, the image files stored in the external storage medium can be automatically sorted.
第5の発明の表示装置では、属性情報に含まれる文字列がテーマ辞書に記述されたキーワードを含むとき、キーワードに対応するテーマのスコアを加算するスコア加算手段をさらに備え、テーマ判断手段は、スコア加算手段によって加算されたスコアが最大となるテーマを画像ファイルのテーマとして判断する。 In the display device of the fifth invention, when the character string included in the attribute information includes a keyword described in the theme dictionary, the display device further includes score adding means for adding the score of the theme corresponding to the keyword, The theme having the maximum score added by the score adding means is determined as the theme of the image file.
第5の発明によれば、加算されたスコアが最大となるテーマを画像ファイルのテーマとして判断するので、画像ファイルを適切に分類することができる。 According to the fifth aspect, since the theme having the maximum added score is determined as the theme of the image file, the image file can be appropriately classified.
第6の発明の表示装置では、テーマ判断手段は、スコア加算手段によって加算されたスコアが最大となるテーマが複数有るとき、複数のテーマのそれぞれを画像ファイルのテーマとして判断する。 In the display device of the sixth invention, the theme determining means determines each of the plurality of themes as the theme of the image file when there are a plurality of themes having the maximum score added by the score adding means.
第6の発明によれば、スコアが最大となるテーマが複数有る場合には、複数のテーマのそれぞれを画像ファイルのテーマとして判断するので、外部の記憶媒体に記憶された画像ファイルを自動的に仕分けることができる。 According to the sixth invention, when there are a plurality of themes having the maximum score, each of the plurality of themes is determined as the theme of the image file. Therefore, the image file stored in the external storage medium is automatically selected. Can be sorted.
第7の発明の表示装置では、属性情報は、画像ファイルの生成日時の情報をさらに含み、テーマ判断手段は、スコア加算手段によって加算されたスコアの最大値が0である場合に、画像ファイルの生成日時を含む時間帯を判断し、仕分け手段は、テーマ判断手段によって判断された時間帯に分類して画像ファイルを内部の記憶媒体に記憶する。 In the display device according to the seventh aspect, the attribute information further includes information on the date and time of generation of the image file, and the theme judging unit is configured to store the image file when the maximum score added by the score adding unit is zero. The time zone including the generation date and time is determined, and the sorting unit classifies the time zone determined by the theme determination unit and stores the image file in an internal storage medium.
第7の発明によれば、画像ファイルのテーマを判断できない場合には、画像ファイルを時間帯で分類して内部の記憶媒体に記憶するようにしたので、外部の記憶媒体に記憶された画像ファイルを自動的に仕分けることができる。 According to the seventh invention, when the theme of the image file cannot be determined, the image file is classified by time zone and stored in the internal storage medium. Therefore, the image file stored in the external storage medium is stored. Can be sorted automatically.
第8の発明の表示装置では、テーマ辞書は、複数のテーマの各々に対応して画像パターンをさらに記憶し、属性情報抽出手段は、画像ファイルに含まれる画像データから画像パターンをさらに抽出し、スコア加算手段は、属性情報抽出手段によって抽出された画像パターンと、テーマ辞書に記憶された各テーマに対応する画像パターンの各々とを比較し、一致率が所定値以上である画像パターンに対応するテーマのスコアを加算する。 In the display device of the eighth invention, the theme dictionary further stores an image pattern corresponding to each of the plurality of themes, and the attribute information extraction unit further extracts the image pattern from the image data included in the image file, The score adding means compares the image pattern extracted by the attribute information extracting means with each image pattern corresponding to each theme stored in the theme dictionary, and corresponds to an image pattern having a matching rate equal to or greater than a predetermined value. Add theme scores.
第8の発明によれば、画像パターンを用いてさらにスコアを加算するようにしたので、より正確に画像ファイルのテーマを判断することができる。 According to the eighth invention, since the score is further added using the image pattern, the theme of the image file can be determined more accurately.
第9の発明の情報処理プログラムは、画像ファイルを分類するための複数のテーマと複数のテーマの各々に関連するキーワードとを対応付けて記述したテーマ辞書に対応する辞書データを記憶するテーマ辞書記憶手段を備え、外部の記憶媒体に記憶された画像ファイルに含まれる画像データに対応する画像を表示する表示装置の情報処理プログラムであって、表示装置のプロセッサに、画像ファイルについての属性情報を抽出する属性情報抽出ステップ、属性情報抽出ステップにおいて抽出した属性情報に含まれる文字列と、テーマ辞書に記述されたキーワードとの一致度に基づいて画像ファイルのテーマを判断するテーマ判断ステップ、およびテーマ判断ステップにおいて判断したテーマに分類して画像ファイルを内部の記憶媒体に記憶する仕分けステップを実行させる。 An information processing program according to a ninth aspect of the invention is a theme dictionary storage for storing dictionary data corresponding to a theme dictionary in which a plurality of themes for classifying image files and keywords associated with each of the plurality of themes are described in association with each other. An information processing program for a display device for displaying an image corresponding to image data included in an image file stored in an external storage medium, and extracting attribute information about the image file to a processor of the display device Attribute information extraction step, a theme determination step for determining the theme of the image file based on the degree of matching between the character string included in the attribute information extracted in the attribute information extraction step and the keyword described in the theme dictionary, and theme determination The image file is stored in the internal storage medium classified according to the theme determined in the step. To perform the sorting step.
第10の発明の情報処理方法は、画像ファイルを分類するための複数のテーマと複数のテーマの各々に関連するキーワードとを対応付けて記述したテーマ辞書に対応する辞書データを記憶するテーマ辞書記憶手段を備え、外部の記憶媒体に記憶された画像ファイルに含まれる画像データに対応する画像を表示する表示装置の情報処理方法であって、(a)画像ファイルについての属性情報を抽出し、(b)ステップ(a)において抽出した属性情報に含まれる文字列と、テーマ辞書に記述されたキーワードとの一致度に基づいて画像ファイルのテーマを判断し、そして(c)ステップ(b)において判断したテーマに分類して画像ファイルを内部の記憶媒体に記憶する。 An information processing method according to a tenth aspect of the invention is a theme dictionary storage for storing dictionary data corresponding to a theme dictionary in which a plurality of themes for classifying image files and keywords associated with each of the plurality of themes are described in association with each other. An information processing method for a display device that displays an image corresponding to image data included in an image file stored in an external storage medium, and (a) extracts attribute information about the image file; b) Determine the theme of the image file based on the degree of matching between the character string included in the attribute information extracted in step (a) and the keyword described in the theme dictionary, and (c) determine in step (b) The image files are stored in an internal storage medium classified into the themes.
第9および第10の発明によれば、第1の発明と同様に、外部の記憶媒体に記憶された画像ファイルを自動的に仕分けることができる。 According to the ninth and tenth inventions, as in the first invention, image files stored in an external storage medium can be automatically sorted.
この発明によれば、外部メモリに記憶された画像ファイルを自動的に仕分けることができる。 According to the present invention, the image file stored in the external memory can be automatically sorted.
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。 The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
<第1実施例>
図1は第1実施例の表示装置10および外部メモリ40の外観を示す図解図である。
<First embodiment>
FIG. 1 is an illustrative view showing the appearance of the
図1に示すように、表示装置10は表示部20(図2参照)を含む。また、表示装置10の側面には、外部メモリ40を接続するための接続端子10aが設けられる。この第1実施例では、外部メモリ40の一例として、USBメモリを図示してあるが、これに限定される必要はない。たとえば、外部メモリ40は、SDカードのような汎用のメモリカード、メモリスティック、マルチメディアカード(登録商標)または外付けのHDDのような他の記憶媒体であってもよい。ただし、使用する外部メモリ40に応じて接続端子10aは適宜変更される。たとえば、SDカードが用いられる場合には、接続端子10aに代えてカードスロットが設けられる。または、複数種類の記憶媒体が表示装置10に装着可能な構成にされてもよい。かかる場合には、表示装置10には、各種の記憶媒体を装着するための接続端子およびカードスロットなどが設けられる。また、表示装置10は、たとえば、LANケーブルまたはUSBケーブルを用いて、または、無線LANで外部コンピュータと通信可能に接続することができ、この場合、外部コンピュータに内蔵されるまたは装着されるメモリが外部メモリ40と言える。ただし、USBケーブルを用いてディジタルカメラを接続することもでき、かかる場合には、ディジタルカメラに内蔵されるまたは装着されるメモリが外部メモリ40と言える。
As shown in FIG. 1, the
なお、外部コンピュータまたはディジタルカメラが接続される場合には、CPU12は、それらに内蔵されるCPUと通信することにより、それらに内蔵または装着される外部メモリ40に間接的にアクセスする。
When an external computer or a digital camera is connected, the
図2は第1実施例の表示装置10の電気的な構成を示すブロック図である。
FIG. 2 is a block diagram showing an electrical configuration of the
図2を参照して、この発明の第1実施例である表示装置10はCPU12を含む。CPU12には、バス30を介してRAM14、表示駆動部16、通信部18が接続される。また、表示駆動部16には、表示部20が接続される。
Referring to FIG. 2,
図示は省略するが、表示装置10には、HDDやROMなどの不揮発性のメモリも設けられ、バス30を介してCPU12に接続される。
Although not shown, the
CPU12は、表示装置10の全体的な制御を司る。RAM14は、CPU12のワーク領域およびバッファ領域として用いられる。
The
表示駆動部16は、表示部20に表示される画像に対応する画像データを生成および出力するためのコントローラである。表示部20は、表示パネルおよびバックライトを含み、表示駆動部16から与えられる画像データを出力する。
The
通信部18は、外部メモリ40または他のコンピュータと通信するためのインターフェイスであり、たとえば、有線LAN、RS−232C、USB、DDC/CI(Display Data Channel Command Interface)、HDMI−CEC(High Definition Multimedia Interface Consumer Electronics Control)などを用いることができる。上述したように、外部メモリ40として、SDカード、メモリカード、メモリスティックまたはマルチメディアカードを用いる場合には、それに応じたインターフェイスが設けられる。
The
外部メモリ40は、上述したように、USBメモリであり、画像ファイルが記憶される。この画像ファイルは、予め定められたファイル形式(たとえば、JPEG形式)により生成されたデータである。
As described above, the
なお、図示は省略するが、表示装置10には、他のコンピュータから与えられる映像(または画像)および音声についてのデータを入力するためのインターフェイス(DisplayPort、HDMI(登録商標)、DVIおよびD−SUBなど)が設けられる。
Although illustration is omitted, the
このような構成の表示装置10では、外部メモリ40が表示装置10に装着されると、この外部メモリ40に記憶された複数の画像ファイルから順次画像データを読み出して、表示部20に出力するスライドショー機能を実行することができる。このとき、画像ファイルは、CPU12によって読み込まれる。つまり、外部メモリ40に記憶された複数の画像ファイルは、CPU12によって読み出され、RAM14に記憶される。このため、たとえば、或るテーマ(カテゴリ)に従って画像ファイルを分類し、テーマ毎に画像をスライドショーで表示することができる。
In the
しかし、画像ファイルを分類する場合には、たとえば、ユーザは、テーマ毎のフォルダをRAM14に作成し、各画像ファイルに含まれる画像データに対応する画像についてテーマを判断して、判断したテーマのフォルダに各画像ファイルを仕分ける(分類する)必要がある。つまり、ユーザは手作業で、画像ファイルを仕分ける必要があり、面倒である。また、このような不都合は、テーマの数および外部メモリ40に記憶されている画像ファイルの数が多くなるにつれて顕著に表れる。
However, when classifying image files, for example, the user creates a folder for each theme in the
このような不都合を回避するために、第1実施例では、外部メモリ40に記憶された画像ファイルを自動的に仕分けるようにしてある。
In order to avoid such inconvenience, in the first embodiment, the image files stored in the
簡単に説明すると、この第1実施例では、画像ファイルから画像データについての属性情報を抽出し、抽出した属性情報と予め用意されたテーマを分類するためのテーマ辞書を用いて、画像ファイルのテーマを判断(決定)し、テーマ別のフォルダに振り分ける(記憶する)。ただし、振り分けるフォルダが無い(生成されていない)場合には、フォルダを作成してから、作成したフォルダに画像ファイルが記憶される。以下、具体的に説明する。 Briefly, in the first embodiment, attribute information about image data is extracted from an image file, and a theme dictionary for classifying the extracted attribute information and a theme prepared in advance is used. Are determined (determined), and are sorted (stored) in thematic folders. However, if there is no folder to be distributed (not generated), the image file is stored in the created folder after the folder is created. This will be specifically described below.
図3(A)は、画像ファイルのデータ構造を示す図解図であり、図3(B)は、図3(A)で示したExifデータ52bを示す図解図である。また、図4は辞書データの一例を示す図解図である。さらに、図5(A)は画像ファイルから抽出されたデータの一例を示す図解図であり、図5(B)はスコア表の一例を示す図解図である。
3A is an illustrative view showing a data structure of an image file, and FIG. 3B is an illustrative view showing
図3(A)に示すように、画像ファイルは、SOI(スタートマーカ)50、APP1(アプリケーション・マーカセグメント1)52、画像データ54、EOI(エンドマーカ)56を含む。ただし、画像ファイルには、ファイル名が付されている。
As shown in FIG. 3A, the image file includes an SOI (start marker) 50, an APP1 (application marker segment 1) 52,
なお、画像ファイルには、DQI、DHT、SOF、SOSなども含まれるが、本願発明とは直接関係無いため、図示およびその説明は省略する。また、APP1については、参照符号を分かり易く示すために、以下の説明においては括弧を付すことにする。 The image file includes DQI, DHT, SOF, SOS, etc., but the illustration and description thereof are omitted because they are not directly related to the present invention. In addition, for APP1, parentheses are given in the following description in order to show the reference numerals in an easy-to-understand manner.
SOI(スタートマーカ)50は、画像ファイルの始まりを示すマーカである。APP1(52)は、画像ファイルに関連するデータであり、APP1マーカ52a、Exifデータ52bおよびサムネイル画像データ52cなどを含む。ただし、サムネイル画像データ52cは記憶されていない場合もある。
The SOI (start marker) 50 is a marker indicating the start of an image file. APP1 (52) is data related to an image file, and includes an
APP1マーカ52aは、マーカセグメントがAPP1であることを示すマーカである。Exifデータ52bは、画像ファイルが生成されたときに付記される画像ファイルに関連する情報(一般情報、撮影情報など)である。たとえば、図3(B)に示すように、Exifデータ52bは、ユーザによって入力された画像ファイル(画像データ)のタイトル100、画像ファイル(画像データ)についてのコメント102および画像ファイルの撮影日時(年月を含む)についての画像生成日時104のデータなどを含む。サムネイル画像データ52cは、画像データ54の縮小画像データである。
The
なお、図示は省略するが、Exifデータ52bには、GPS(緯度、経度、高度)、焦点距離、被写体距離、撮影時の方位角などのデータも含まれている。
Although not shown, the
図3(A)に戻って、画像データ54は、典型的にはディジタルカメラで撮影された撮影画像についてのデータである。ただし、Exifに適合するデータ構造のファイル形式で記録される画像データであれば、他の画像データであってもよい。EOI(エンドマーカ)56は、画像ファイルの終わりを示すマーカである。
Returning to FIG. 3A, the
また、図4に示すように、テーマ辞書には、各テーマに対応する情報が記述される。具体的には、テーマ辞書では、番号に対応して、テーマ、キーワードおよび画像パターンが記述される。 Further, as shown in FIG. 4, information corresponding to each theme is described in the theme dictionary. Specifically, in the theme dictionary, themes, keywords, and image patterns are described corresponding to the numbers.
番号の欄には、各テーマに割り当てられたシリアル番号を示す数字が記述される。この番号は、CPU12によってテーマ毎にテーマ辞書を参照するために各テーマに付されている。
In the number column, a number indicating a serial number assigned to each theme is described. This number is assigned to each theme in order for the
テーマの欄には、テーマについての名称が記述される。テーマは、画像ファイルを振り分けるためのプログラム(後述する情報処理プログラム)の開発者等によって予め決定される。 The name of the theme is described in the theme column. The theme is determined in advance by a developer of a program (information processing program described later) for distributing image files.
キーワードの欄には、テーマに関連する単語が記述される。キーワードにおいても、テーマと同様に、開発者等によって予め決定される。 In the keyword column, words related to the theme are described. The keyword is also determined in advance by a developer or the like in the same manner as the theme.
画像パターンの欄には、対応するテーマに応じた画像の特徴についての情報が記述される。たとえば、画像の特徴としては、Haar−Like特徴量が該当する。Haar−Like特徴量は、ある2つの領域(黒領域と白領域)の輝度差を特徴量とするものである。つまり、画像パターンの欄には、各テーマに応じたサンプル画像の局所的な白黒パターンが記述される。ただし、図4に示すテーマ辞書では、簡単のため、画像パターンの具体的内容については記載せずに、文字列(パターンA、パターンB、…)を記載してある。以下、画像パターンについて同様である。 In the column of the image pattern, information about the feature of the image corresponding to the corresponding theme is described. For example, a Haar-Like feature amount corresponds to the image feature. The Haar-Like feature amount uses a luminance difference between two areas (black region and white region) as a feature amount. That is, the local black-and-white pattern of the sample image corresponding to each theme is described in the image pattern column. However, in the theme dictionary shown in FIG. 4, for the sake of simplicity, the character strings (pattern A, pattern B,...) Are described without describing the specific contents of the image pattern. Hereinafter, the same applies to the image pattern.
たとえば、図4では、番号1に対応して、テーマの欄に「ファッション」が記述され、キーワードの欄に「ファッション」、「モデル」などが記述され、画像パターンの欄に「パターンA」が記述される。また、番号2に対応して、テーマの欄に「クリスマス」が記述され、キーワードの欄に「クリスマス」、「サンタクロース」などが記述され、画像パターンの欄に「パターンB」が記述される。なお、番号3以降に記述される内容については、図示を省略している。
For example, in FIG. 4, “fashion” is described in the theme column, “fashion”, “model”, etc. are described in the keyword column, and “pattern A” is displayed in the image pattern column. Described. Corresponding to the
ここで、ディジタルカメラなどによって撮影された画像の画像データには、ユーザによって、ファイル名、タイトル100およびコメント102が入力されていない場合がしばしばある。このような場合には、ディジタルカメラの本体機能によって、画像ファイルに、所定のアルファベットおよび数字(シリアル番号)で表したファイル名または撮影した日時(年月を含む)を数字で表したファイル名が付されたままである。このような場合には、テーマの判断および画像ファイルの振り分けを行うのが困難である。
Here, in many cases, the file name, the
そこで、この第1実施例では、ファイル名が付されていない場合または/およびタイトル100およびコメント102が入力されていない場合であっても、画像データの画像パターンに基づいて、当該画像データを含む画像ファイルのテーマを出来る限り判断できるようにしてある。
Therefore, in the first embodiment, even when the file name is not attached and / or the
次に、上記のテーマ辞書を用いて、画像ファイルのテーマを判断し、テーマ毎に画像ファイルを振り分ける方法について説明する。 Next, a method for determining the theme of an image file using the theme dictionary and distributing the image file for each theme will be described.
まず、画像ファイルから画像データについての属性情報を抽出する。図5(A)に示すように、この第1実施例では、属性情報として、ファイル名、タイトル100(Exifタイトル)、コメント102(Exifコメント)および画像パターン(Haar−Like特徴量)が抽出される。つまり、画像ファイルに付されたファイル名が読み出され、タイトル100およびコメント102がExifデータ52bから読み出される。また、画像データ54から画像パターン(Haar−Like特徴量)が取得(算出)される。
First, attribute information about image data is extracted from the image file. As shown in FIG. 5A, in the first embodiment, a file name, a title 100 (Exif title), a comment 102 (Exif comment), and an image pattern (Haar-Like feature) are extracted as attribute information. The That is, the file name attached to the image file is read, and the
たとえば、図5(A)では、ファイル名として「サンタクロースファッションショー.jpg」が抽出され、Exifタイトルとして「ファッションショー」が抽出され、Exifコメントとして「モデル」が抽出される。また、画像パターンとして「パターンX」が抽出される。 For example, in FIG. 5A, “Santa Claus fashion show.jpg” is extracted as the file name, “fashion show” is extracted as the Exif title, and “model” is extracted as the Exif comment. Further, “pattern X” is extracted as an image pattern.
そして、上記の抽出した属性情報とテーマ辞書を用いて、テーマ毎にスコアを算出し、算出したスコアの合計が最も大きいテーマを画像ファイルのテーマと判断(決定)する。つまり、画像ファイルから抽出された属性情報に含まれる文字列と、テーマ毎に記述されたキーワードの一致度を検出し、一致度が最も大きいテーマが画像ファイルのテーマとして判断される。 Then, a score is calculated for each theme using the extracted attribute information and the theme dictionary, and the theme having the largest total score is determined (determined) as the theme of the image file. That is, the matching degree between the character string included in the attribute information extracted from the image file and the keyword described for each theme is detected, and the theme having the highest matching degree is determined as the theme of the image file.
図5(B)に示すように、スコア表では、テーマ毎にスコアが算出される。具体的には、スコア表には、各テーマに対応して、ファイル名、タイトル、コメントおよび画像パターンの各項目についてスコアを入力(記述)する欄が設けられる。また、スコア表には、各テーマに対応して、各項目のスコアを合計した合計スコアを入力する欄も設けられる。 As shown in FIG. 5B, a score is calculated for each theme in the score table. Specifically, the score table is provided with columns for inputting (description) scores for each item of the file name, title, comment, and image pattern corresponding to each theme. The score table also includes a column for inputting a total score obtained by summing up the scores of the respective items corresponding to each theme.
ファイル名の欄には、画像ファイルに付されたファイル名と、テーマ辞書の当該テーマに対応して記述されたキーワードとを用いて決定されたスコアが記述される。具体的には、ファイル名がテーマ辞書の当該テーマに対応して記述されたキーワードを1つでも含んでいるかどうかが判断される。この第1実施例では、ファイル名の拡張子を除く文字列の全部または一部が、テーマ辞書の各テーマに対応して記述されたキーワードを1つでも含むかどうかを判断するようにしてある。ファイル名がテーマ辞書の当該テーマに対応して記述されたキーワードを1つでも含んでいる場合には、ファイル名の欄にスコアとして「1」が記述される。また、ファイル名がテーマ辞書の当該テーマに対応して記述されたキーワードを1つも含んでいない場合には、ファイル名の欄にスコアとして「0」が記述される。 In the file name column, the score determined using the file name assigned to the image file and the keyword described in correspondence with the theme in the theme dictionary is described. Specifically, it is determined whether the file name includes at least one keyword described corresponding to the theme in the theme dictionary. In the first embodiment, it is determined whether all or a part of the character string excluding the file name extension includes at least one keyword described corresponding to each theme in the theme dictionary. . If the file name includes at least one keyword described corresponding to the theme in the theme dictionary, “1” is described as a score in the file name column. If the file name does not include any keyword described corresponding to the theme in the theme dictionary, “0” is described as the score in the file name column.
タイトルの欄には、画像ファイルから抽出されたExifタイトルとテーマ辞書の当該テーマに対応して記述されたキーワードとを用いて決定されたスコアが記述される。このタイトルのスコアの決定方法は、ファイル名のスコアの決定方法と同じであるため、重複した説明は省略する。 In the title column, the score determined using the Exif title extracted from the image file and the keyword described corresponding to the theme in the theme dictionary is described. Since the method for determining the title score is the same as the method for determining the file name score, a duplicate description is omitted.
コメントの欄には、画像ファイルから抽出されたExifコメントとテーマ辞書の当該テーマに対応して記述されたキーワードとを用いて決定されたスコアが記述される。このコメントのスコアの決定方法についても、ファイル名のスコアの決定方法と同じであるため、重複した説明は省略する。 In the comment column, a score determined by using an Exif comment extracted from the image file and a keyword described corresponding to the theme in the theme dictionary is described. The method for determining the comment score is also the same as the method for determining the file name score, and thus a duplicate description is omitted.
画像パターンの欄には、画像データ54から取得された画像パターンとテーマ辞書の当該テーマに対応して記述された画像パターンとを用いて決定されたスコアが記述される。この画像パターンのスコアを決定する場合には、まず、画像データ54から取得した画像パターンと、テーマ辞書の当該テーマに対応して記述された画像パターンとが比較され、それらの一致率が算出される。一致率が所定値以上であれば、画像パターンの欄にスコアとして「1」が記述される。一方、一致率が所定値未満であれば、画像パターンの欄にスコアとして「0」が記述される。
In the image pattern column, a score determined using the image pattern acquired from the
合計スコアの欄には、テーマ毎に、ファイル名、タイトル、コメントおよび画像パターンの欄にそれぞれ記述されたスコアが加算(合計)されたスコアの合計が記述される。 The total score column describes the sum of scores obtained by adding (summing) the scores described in the file name, title, comment, and image pattern columns for each theme.
たとえば、図5のスコア表では、テーマ「ファッション」に対応して、ファイル名、タイトル、コメントおよび画像パターンの欄には、それぞれ「1」が記述される。したがって、テーマを判断している対象の画像ファイル(以下、「対象画像ファイル」と呼ぶことがある)においては、テーマ「ファッション」についての合計スコアは「4」である。 For example, in the score table of FIG. 5, “1” is described in the file name, title, comment, and image pattern fields corresponding to the theme “fashion”. Therefore, in the target image file for which the theme is determined (hereinafter sometimes referred to as “target image file”), the total score for the theme “fashion” is “4”.
また、図5のスコア表では、テーマ「クリスマス」に対応して、ファイル名および画像パターンの欄には、それぞれ「1」が記述され、タイトルおよびコメントの欄には、それぞれ「0」が記述される。したがって、対象画像ファイルにおいては、テーマ「クリスマス」についての合計スコアは「2」である。 Further, in the score table of FIG. 5, “1” is described in the file name and image pattern columns, and “0” is described in the title and comment columns, respectively, corresponding to the theme “Christmas”. Is done. Therefore, in the target image file, the total score for the theme “Christmas” is “2”.
なお、図5に示すスコア表では、他のテーマについては省略するが、テーマ「ファッション」および「クリスマス」と同様に、ファイル名、タイトル、コメントおよび画像パターンのそれぞれについてスコアが決定され、各テーマについての合計スコアが算出される。 In the score table shown in FIG. 5, although the other themes are omitted, as with the themes “fashion” and “Christmas”, scores are determined for each of the file name, title, comment, and image pattern. A total score for is calculated.
各テーマについての合計スコアが算出されると、対象画像ファイルのテーマが判断される。この第1実施例では、合計スコアが最大であるテーマが対象画像ファイルのテーマとして判断される。画像ファイルのテーマが判断されると、当該画像ファイルは、テーマの名称がフォルダ名として付されているフォルダに記憶される(振り分けられる)。ただし、この第1実施例では、フォルダは予め作成されていないため、記憶するべきフォルダが存在しない場合には、対象画像ファイルについて判断されたテーマのファイル名を付したフォルダが作成された後に、当該フォルダに対象画像ファイルが記憶される。この第1実施例では、フォルダは、RAM14に作成される。
When the total score for each theme is calculated, the theme of the target image file is determined. In the first embodiment, the theme having the maximum total score is determined as the theme of the target image file. When the theme of the image file is determined, the image file is stored (sorted) in a folder in which the theme name is assigned as a folder name. However, in this first embodiment, since the folder is not created in advance, if there is no folder to be stored, after the folder with the file name of the theme determined for the target image file is created, The target image file is stored in the folder. In the first embodiment, the folder is created in the
ただし、第1実施例では、合計スコアが最大値となるテーマが複数有る場合には、予め設定された優先度の高いテーマを対象画像ファイルのテーマとして判断するようにしてある。または、スコア表示において、ファイル名、タイトル、コメント、画像パターンの各項目に優先度(重み)を設定しておき、重みを考慮した合計スコアを算出して、テーマを判断するようにしてもよい。 However, in the first embodiment, when there are a plurality of themes having the maximum total score, a theme with a high priority set in advance is determined as the theme of the target image file. Alternatively, in the score display, priority (weight) may be set for each item of the file name, title, comment, and image pattern, and the total score considering the weight may be calculated to determine the theme. .
また、合計スコアの最大値が0である場合には、対象画像ファイルのテーマを判断することができないため、このような画像ファイルについては、フォルダ名として「Unknown」を付したフォルダに記憶する(振り分ける)ようにしてある。この「Unknown」のフォルダについても予め作成されていないため、各テーマのフォルダと同様に、RAM14に作成される。
When the maximum value of the total score is 0, the theme of the target image file cannot be determined. Therefore, such an image file is stored in a folder with “Unknown” as the folder name ( Sort out). Since the “Unknown” folder is not created in advance, it is created in the
表示装置10の上記のような動作は、CPU12がRAM14に記憶された情報処理プログラムを実行することにより実現される。具体的な処理については、後でフロー図を用いて説明する。
The above operation of the
図6は図2に示したRAM14のメモリマップ300の一例を示す。図6に示すように、RAM14は、プログラム記憶領域302およびデータ記憶領域304を含む。プログラム記憶領域302には、表示制御プログラムおよび仕分け制御プログラムなどを含む情報処理プログラムが記憶される。情報処理プログラムは、表示プログラム310、デコードプログラム312、データ抽出プログラム314、テーマ判断プログラム316、フォルダ作成プログラム318および仕分けプログラム320などを含む。
FIG. 6 shows an example of the memory map 300 of the
表示プログラム310は、画像データ54に対応する画像を表示部20に表示するためのプログラムであり、表示駆動部16を制御して、画像データ54を表示部20に出力する。
The
デコードプログラム312は、画像ファイルからExifデータ52b、サムネイル画像データ52cおよび画像データ54をデコードする(読み込む)ためのプログラムである。
The
データ抽出プログラム314は、画像ファイルに付されたファイル名を抽出するためのプログラムである。また、データ抽出プログラム314は、デコードプログラム312に従ってデコードされたExifデータ52bから、画像ファイルのタイトル100、画像ファイルについてのコメント102および画像ファイル(画像データ54)の撮影日時(年月を含む)についての画像生成日時104のデータを抽出するためのプログラムでもある。ただし、データ抽出プログラム314は、画像データ54から画像パターン(Haar−Like特徴量)を抽出(算出)するためのプログラムでもある。
The data extraction program 314 is a program for extracting a file name given to an image file. Further, the data extraction program 314 obtains the
テーマ判断プログラム316は、画像ファイルを振り分けるためのテーマを判断するためのプログラムである。また、テーマ判断プログラム316は、後述する、抽出データ332および辞書データ334を用いて、スコア表を作成するためのプログラムでもある。
The
フォルダ作成プログラム318は、テーマ判断プログラム316に従って判断されたテーマをフォルダ名とするフォルダがRAM14に無い場合に、当該フォルダをRAM14に作成するためのプログラムである。
The
仕分けプログラム320は、テーマ毎のフォルダに画像ファイルを仕分ける(記憶する)ためのプログラムである。
The
データ記憶領域304には、データバッファ330、抽出データ332、辞書データ334、スコアデータ336および仕分けデータ338などが記憶される。
The
データバッファ330は、外部メモリ40の画像ファイルからデコードした画像データ54およびExifデータ52bを一時記憶するための領域である。
The
抽出データ332は、データ抽出プログラム314に従って、画像ファイルから抽出された属性情報についてのデータである。具体的には、図5(A)で示したように、抽出データ332は、画像ファイルに付されたファイル名、画像ファイルに含まれるタイトル100、コメント102および画像データ54から抽出した画像パターン(Haar−Like特徴量)についてのデータである。
The extracted
辞書データ334は、図4に示したようなテーマ辞書についてのデータである。スコアデータ336は、テーマ判断プログラム316に従って作成されるスコア表についてのデータである。
The
仕分けデータ338は、仕分けプログラム320に従って、テーマ別に画像ファイルが仕分けられた(記憶された)フォルダについてのデータである。
The sorting
なお、データ記憶領域304には、情報処理プログラムの実行に必要な他のデータが記憶されたり、情報処理プログラムの実行に必要なタイマ(カウンタ)やレジスタが設けられたりする。
In the
図7〜図11はCPU12の情報処理を示すフロー図である。表示装置10の主電源がオンされると、図7に示すように、CPU12は、ステップS1で、外部メモリ40が接続されているかどうかを判断する。ステップS1で“NO”であれば、つまり外部メモリ40が接続されていなければ、そのままステップS1に戻る。一方、ステップS1で“YES”であれば、つまり外部メモリ40が接続されていれば、ステップS3で、外部メモリ40内の画像ファイルの個数(総数)を取得する。
7 to 11 are flowcharts showing the information processing of the
そして、ステップS5で、変数iの最大値imaxを設定し、ステップS7で、変数iに初期値を設定して(i=1)、ステップS9に進む。ただし、変数iは、外部メモリ40に記憶されている複数の画像ファイルを個別(順番)に参照するための変数である。また、ステップS5では、CPU12は、ステップS3で取得した画像ファイルの個数を変数iの最大値imaxとして設定する。
In step S5, the maximum value imax of the variable i is set. In step S7, an initial value is set in the variable i (i = 1), and the process proceeds to step S9. However, the variable i is a variable for referring to a plurality of image files stored in the
ステップS9では、i番目の画像データ54をデコードする。このステップS9では、CPU12は、外部メモリ40に記憶されているi番目の画像ファイルから画像データ54を読み出し、データバッファ330に記憶する。たとえば、CPU12は、外部メモリ40に記憶された日付(時間も含む)の古いまたは新しい順番に従って画像ファイルを参照する。
In step S9, the i-
次のステップS11では、Exifデータ52bをデコードし、ステップS13で、ファイル名、タイトル100およびコメント102を抽出する。このステップS13では、CPU12は、画像ファイルからExifデータ52bを読み出して、データバッファ330に記憶し、画像ファイルに付されたファイル名を抽出するとともに、Exifデータ52bに記述されたタイトル100およびコメント102のデータを抽出して、抽出データ332としてデータ記憶領域304に記憶する。
In the next step S11, the
続いて、ステップS15で、変数jの最大値jmaxを設定し、ステップS17で、変数jに初期値を設定して(j=1)、図8に示すステップS19に進む。ただし、変数jは、辞書データ334に対応するテーマ辞書をテーマ毎に参照するための変数である。たとえば、テーマ辞書は、このテーマ辞書に示す番号に従って参照される。
Subsequently, in step S15, the maximum value jmax of the variable j is set. In step S17, an initial value is set in the variable j (j = 1), and the process proceeds to step S19 shown in FIG. However, the variable j is a variable for referring to the theme dictionary corresponding to the
そして、ステップS19で、ファイル名がj番目のテーマのキーワードを1つでも含んでいるかどうかを判断する。ステップS19では、CPU12は、辞書データ334を参照して、抽出されたファイル名に含まれる文字列が、テーマ辞書のj番目のテーマに対応して記述された複数のキーワードのうち、一つでも一致するキーワードがあるかどうかを判断する。この判断は、後述するステップS23およびS27においても同様である。
In step S19, it is determined whether or not the file name includes at least one keyword of the jth theme. In step S19, the
ステップS19で“NO”であれば、つまりファイル名がj番目のテーマのキーワードを1つも含んでいなければ、そのままステップS23に進む。一方、ステップS19で“YES”であれば、つまりファイル名がj番目のテーマのキーワードを1つでも含んでいれば、ステップS21で、j番目のテーマのスコアを1加算して、ステップS23に進む。ステップS21では、CPU12は、スコアデータ336に対応するスコア表において、j番目のテーマについてのファイル名の欄にスコアとして「1」を記述し、合計スコアを算出(更新)する。以下、スコアを1加算する場合について同様である。
If “NO” in the step S19, that is, if the file name does not include any keyword of the jth theme, the process proceeds to a step S23 as it is. On the other hand, if “YES” in the step S19, that is, if the file name includes at least one keyword of the jth theme, the score of the jth theme is incremented by 1 in a step S21, and the process proceeds to a step S23. move on. In step S <b> 21, the
そして、ステップS23で、タイトルがj番目のテーマのキーワードを1つでも含んでいるかどうかを判断する。ステップS23で“NO”であれば、つまりタイトルがj番目のテーマのキーワードを1つも含んでいなければ、そのまま図9に示すステップS27に進む。 In step S23, it is determined whether or not the title includes at least one keyword of the jth theme. If “NO” in the step S23, that is, if the title does not include any keyword of the jth theme, the process proceeds to a step S27 shown in FIG. 9 as it is.
一方、ステップS23で“YES”であれば、つまりタイトルがj番目のテーマのキーワードを1つでも含んでいれば、ステップS25で、j番目のテーマのスコアを1加算してから、ステップS27に進む。 On the other hand, if “YES” in the step S23, that is, if the title includes even one keyword of the jth theme, the score of the jth theme is incremented by 1 in a step S25, and then the process proceeds to the step S27. move on.
ステップS27では、コメントがj番目のテーマのキーワードを1つでも含んでいるかどうかを判断する。ステップS27で“NO”であれば、つまりコメントがj番目のテーマのキーワードを1つも含んでいなければ、そのままステップS31に進む。一方、ステップS27で“YES”であれば、つまりコメントがj番目のテーマのキーワードを1つでも含んでいれば、ステップS29で、j番目のテーマのスコアを1加算して、ステップS31に進む。 In step S27, it is determined whether or not the comment includes even one keyword of the jth theme. If “NO” in the step S27, that is, if the comment does not include any keyword of the jth theme, the process proceeds to a step S31 as it is. On the other hand, if “YES” in the step S27, that is, if the comment includes even one keyword of the jth theme, the score of the jth theme is incremented by 1 in a step S29, and the process proceeds to the step S31. .
ステップS31では、画像データの画像パターンとj番目のテーマの画像パターンを比較して、ステップS33で、画像データ54の画像パターンとj番目のテーマの画像パターンの一致率が所定値以上かどうかを判断する。ここでは、CPU12は、抽出データ332に含まれる画像パターン(Haar−Like特徴量)と辞書データ334に対応するテーマ辞書におけるj番目のテーマの画像パターン(Haar−Like特徴量)とを比較して、Haar−Like特徴量の一致率が所定値以上かどうかを判断する。
In step S31, the image pattern of the image data is compared with the image pattern of the jth theme, and in step S33, it is determined whether or not the matching rate between the image pattern of the
ステップS33で“NO”であれば、つまり一致率が所定値以上でなければ、そのままステップS37に進む。一方、ステップS33で“YES”であれば、つまり一致率が所定値以上であれば、ステップS35で、j番目のテーマのスコアを1加算して、ステップS37で、変数jが最大値jmaxであるかどうかを判断する。 If “NO” in the step S33, that is, if the matching rate is not equal to or greater than the predetermined value, the process proceeds to a step S37 as it is. On the other hand, if “YES” in the step S33, that is, if the matching rate is equal to or higher than a predetermined value, the score of the jth theme is incremented by 1 in a step S35, and the variable j is set to the maximum value jmax in a step S37. Determine if there is.
ステップS37で“NO”であれば、つまり変数jが最大値jmaxでなければ、ステップS39で、変数jをインクリメントして、図8で示したステップS19に戻る。つまり、i番目の画像ファイル(画像データ54)のスコアであって、テーマ辞書における次のテーマについてのスコアが算出(決定)される。 If “NO” in the step S37, that is, if the variable j is not the maximum value jmax, the variable j is incremented in a step S39, and the process returns to the step S19 shown in FIG. That is, the score for the next theme in the theme dictionary, which is the score of the i-th image file (image data 54), is calculated (determined).
一方、ステップS37で“YES”であれば、つまり変数jが最大値jmaxであれば、すべてのテーマについてスコアを算出(決定)したと判断して、図10に示すステップS41で、スコアデータ336に対応するスコア表の合計スコアを参照して、ステップS43で、合計スコアの最大値が0かどうかを判断する。
On the other hand, if “YES” in the step S37, that is, if the variable j is the maximum value jmax, it is determined that the scores have been calculated (determined) for all themes, and the
ステップS43で“NO”であれば、つまり合計スコアの最大値が0でなければ、図11に示すステップS49に進む。一方、ステップS43で“YES”であれば、つまり合計スコアの最大値が0であれば、ステップS45で、Unknownフォルダが作成されているかどうかを判断する。ステップS45では、CPU12は、仕分けデータ338(RAM14)にUnknownフォルダのデータが含まれているかどうかを判断する。
If “NO” in the step S43, that is, if the maximum value of the total score is not 0, the process proceeds to a step S49 shown in FIG. On the other hand, if “YES” in the step S43, that is, if the maximum value of the total score is 0, it is determined whether or not an Unknown folder is created in a step S45. In step S45, the
ステップS45で“YES”であれば、つまりUnknownフォルダが作成されていれば、図11に示すステップS59に進む。一方、ステップS45で“NO”であれば、つまりUnknownフォルダが作成されていなければ、ステップS47で、Unknownフォルダを作成して、ステップS59に進む。 If “YES” in the step S45, that is, if an Unknown folder is created, the process proceeds to a step S59 shown in FIG. On the other hand, if “NO” in the step S45, that is, if the Unknown folder has not been created, the Unknown folder is created in a step S47, and the process proceeds to the step S59.
図11に示すように、ステップS49では、最も合計スコアの大きいテーマが複数有るかどうかを判断する。ステップS49で“NO”であれば、つまり最も合計スコアの大きいテーマが一つであれば、ステップS51で、最も合計スコアの大きいテーマを、i番目の画像ファイルのテーマとして決定(判断)し、ステップS55に進む。 As shown in FIG. 11, in step S49, it is determined whether there are a plurality of themes having the highest total score. If “NO” in the step S49, that is, if there is one theme having the highest total score, the theme having the highest total score is determined (determined) as a theme of the i-th image file in a step S51. Proceed to step S55.
一方、ステップS49で“YES”であれば、つまり最も合計スコアの大きいテーマが複数あれば、ステップS53で、予め設定された優先度が高い方のテーマを、i番目の画像ファイルのテーマとして決定(判断)して、ステップS55に進む。 On the other hand, if “YES” in the step S49, that is, if there are a plurality of themes having the highest total score, the theme having the higher priority set in advance is determined as the theme of the i-th image file in a step S53. (Determination), and the process proceeds to step S55.
ステップS55では、決定されたテーマのフォルダ名を付したフォルダが作成されているかどうかを判断する。ステップS55では、CPU12は、仕分けデータ338(RAM14)に決定されたテーマのフォルダ名を付したフォルダのデータが含まれているかどうかを判断する。
In step S55, it is determined whether a folder with the determined theme folder name has been created. In step S55, the
ステップS55で“YES”であれば、つまり決定されたテーマのフォルダ名を付したフォルダが作成されていれば、そのままステップS59に進む。一方、ステップS55で“NO”であれば、つまり決定されたテーマのフォルダ名を付したフォルダが作成されていなければ、ステップS57で、決定されたテーマのフォルダ名を付したフォルダを作成して、ステップS59に進む。ステップS59では、i番目の画像ファイルを外部メモリ40から該当するテーマのフォルダに記憶して、ステップS61に進む。したがって、画像ファイルがテーマ毎のフォルダに仕分けられる。
If “YES” in the step S55, that is, if a folder having the determined theme folder name is created, the process proceeds to a step S59 as it is. On the other hand, if “NO” in the step S55, that is, if a folder with the determined theme folder name is not created, a folder with the determined theme folder name is created in a step S57. The process proceeds to step S59. In step S59, the i-th image file is stored in the corresponding theme folder from the
そして、ステップS61では、変数iが最大値imaxかどうかを判断する。ステップS61で“NO”であれば、つまり変数iが最大値imaxでなければ、ステップS63で、変数iをインクリメントして(i=i+1)、図7に示したステップS9に戻る。つまり、次の画像ファイルについて、テーマ辞書を用いてスコアが算出され、当該次の画像ファイルがテーマ別のフォルダに仕分けられる。一方、ステップS61で“YES”であれば、つまり変数iが最大値imaxであれば、外部メモリ40に記憶されたすべての画像ファイルをテーマ別のフォルダに仕分けたと判断して、情報処理を終了する。
In step S61, it is determined whether the variable i is the maximum value imax. If “NO” in the step S61, that is, if the variable i is not the maximum value imax, the variable i is incremented (i = i + 1) in a step S63, and the process returns to the step S9 shown in FIG. That is, for the next image file, a score is calculated using the theme dictionary, and the next image file is sorted into folders by theme. On the other hand, if “YES” in the step S61, that is, if the variable i is the maximum value imax, it is determined that all the image files stored in the
この第1実施例によれば、画像ファイルのテーマを判断(決定)し、テーマ別のフォルダに振り分ける(記憶する)ので、外部メモリ40に記憶された画像ファイルを自動的に仕分けることができる。したがって、たとえば、フォルダ単位でスライドショーを実行すれば、テーマ毎に分類された複数の画像をスライドショー表示することができる。
According to the first embodiment, the theme of the image file is determined (determined), and is distributed (stored) to a folder for each theme, so that the image file stored in the
なお、この第1実施例では、画像ファイルの属性情報として、ファイル名、タイトル100、コメント102および画像パターン(Haar−Like特徴量)を用いるようにしたが、これに限定される必要はない。たとえば、ファイル名がディジタルカメラの本体機能によらずに、ユーザがテキスト文字を用いて付している場合には、ファイル名のみを用いて、画像ファイルのテーマを判断することもできる。
In the first embodiment, the file name, the
また、タイトル100または/コメント102がユーザによって入力されている画像ファイルについては、タイトル100または/コメント102を用いて、画像ファイルのテーマを判断することができる。したがって、ファイル名、タイトル100およびコメント102の少なくとも1つを用いて、画像ファイルのテーマを判断することもできる。
Also, for an image file in which the
さらに、この第1実施例では、判断されたテーマについてのフォルダが無い場合に、当該フォルダを作成して、画像ファイルを記憶するようにしたが、これに限定される必要はない。他の実施例としては、情報処理が開始されたときに、仕分けデータ338(RAM14)にすべてのテーマについてのフォルダ(unknownフォルダを含む)のデータを作成するようにしてもよい。かかる場合には、たとえば、ステップS1で“YES”の後からステップS7までの間で、すべてのテーマについてのフォルダを作成する処理が実行され、ステップS45、S47、S55およびS57の処理が省略される。 Furthermore, in the first embodiment, when there is no folder for the determined theme, the folder is created and the image file is stored. However, the present invention is not limited to this. As another example, when information processing is started, data of folders (including unknown folders) for all themes may be created in the sorting data 338 (RAM 14). In such a case, for example, processing for creating folders for all themes is executed between “YES” in step S1 and step S7, and the processing in steps S45, S47, S55, and S57 is omitted. The
さらにまた、この第1実施例では、JPEGフォーマットに従った撮影画像の画像データを含む画像ファイルをテーマ別のフォルダに仕分けるようにしたが、これに限定される必要はない。テーマを判断可能な属性情報(メタ情報)が画像データに対応付けて記憶されている画像ファイルであれば、他の形式のものを仕分けることもできる。かかる場合には、属性情報(メタ情報)に応じたテーマ辞書が作成され、スコアが計算される。 Furthermore, in the first embodiment, the image file including the image data of the photographed image according to the JPEG format is sorted into the thematic folders, but the present invention is not limited to this. As long as the attribute information (meta information) capable of determining the theme is an image file stored in association with the image data, it can be classified into another format. In such a case, a theme dictionary corresponding to attribute information (meta information) is created, and a score is calculated.
また、この第1実施例では、テーマ別のフォルダに画像ファイルを分類するようにしたが、これに限定される必要はない。たとえば、画像ファイルに付されたファイル名の先頭にテーマを識別可能な文字列(テーマの名称またはテーマに付された識別情報)を追加して、画像ファイルをテーマ別に分類するようにしてもよい。
<第2実施例>
第2実施例の表示装置10は、最も合計スコアの大きいテーマが複数有る場合のテーマの判断(決定)方法が異なる以外は、第1実施例の表示装置10と同じであるため、第1実施例と異なる内容について説明し、重複した説明については省略することにする。
In the first embodiment, the image files are classified into the thematic folders, but the present invention is not limited to this. For example, a character string (theme name or identification information attached to the theme) that can identify the theme may be added to the head of the file name attached to the image file to classify the image file by theme. .
<Second embodiment>
The
具体的に説明すると、最も合計スコアの大きいテーマが複数有るときに、それら複数のテーマを、対象画像ファイルのテーマとして判断(決定)し、決定した複数のテーマについてのフォルダのそれぞれに当該対象画像ファイルを記憶する。 Specifically, when there are a plurality of themes having the highest total score, the plurality of themes are determined (determined) as the theme of the target image file, and the target images are respectively stored in the folders for the determined plurality of themes. Remember the file.
また、図7〜図11に示した情報処理の一部が異なる以外は、第2実施例のCPU12の情報処理は同じであるため、重複した説明は省略する。図12は第2実施例におけるCPU12の情報処理の一部であって、図10に後続するフロー図である。ただし、第1実施例の情報処理と同じ処理については同じ参照符号を付してある。
Further, since the information processing of the
図12に示すように、図7〜図11に示したCPU12の情報処理において、図10で示したステップS53に代えてステップS101の処理が実行される。
As shown in FIG. 12, in the information processing of the
CPU12は、ステップS49で“YES”と判断すると、ステップS101で、それぞれのテーマをi番目の画像ファイルのテーマとして決定(判断)して、ステップS55に進む。
If the
なお、第2実施例では、ステップS101で複数のテーマが決定された場合には、ステップS55において、複数のテーマのそれぞれについてのフォルダが作成されているかどうかを判断する。 In the second embodiment, when a plurality of themes are determined in step S101, it is determined in step S55 whether a folder for each of the plurality of themes has been created.
また、ステップS55で“NO”であれば、ステップS57では、複数のテーマのうち、フォルダを作成されていないテーマのすべてについてフォルダが作成される。 If “NO” in the step S55, in a step S57, a folder is created for all the themes for which no folder has been created among the plurality of themes.
さらに、ステップS101で複数のテーマが決定された場合には、ステップS59では、複数のテーマについてのフォルダのそれぞれに、i番目の画像ファイルが記憶される。 Further, when a plurality of themes are determined in step S101, in step S59, the i-th image file is stored in each of the folders for the plurality of themes.
第2実施例によれば、スコアの合計が最も大きいテーマが複数有る場合には、それぞれのテーマを画像ファイルのテーマとして決定し、決定した複数のテーマについてのフォルダのそれぞれに画像ファイルを記憶するので、外部メモリ40に記憶された画像ファイルを自動的に仕分けることができる。
<第3実施例>
第3実施例の表示装置10は、合計スコアの最大値が0である画像ファイルについては、ファイル名、タイトル100、コメント102および画像パターン以外の属性情報を用いてテーマ毎のフォルダとは異なるフォルダに分類するようにした以外は、第1実施例の表示装置10と同じであるため、第1実施例と異なる内容について説明し、重複した説明については省略することにする。
According to the second embodiment, when there are a plurality of themes having the largest total score, each theme is determined as the theme of the image file, and the image file is stored in each of the folders for the determined plurality of themes. Therefore, the image file stored in the
<Third embodiment>
In the
具体的に説明すると、合計スコアの最大値が0のときには、画像ファイルのテーマを判断することができないため、画像ファイルのExifデータ52bから抽出された画像生成日時104についてのデータを用いて、当該画像ファイルを日時で分類するようにしてある。したがって、この第3実施例では、同じ日(年月を含む)の同じ時間帯に生成された複数の画像ファイルが一つのフォルダに記憶される。ただし、同じ時間帯とは、24時間(1日)を0時から所定時間毎に区切った場合の一つの期間を意味する。したがって、画像ファイルを日時で分類する場合に、フォルダが無い場合には、画像生成日時104を含む時間帯のフォルダ名を付したフォルダが作成される。たとえば、2015年4月3日の9時から12時の時間帯であれば、フォルダ名として“20150403−9−12”が付される。
Specifically, when the maximum value of the total score is 0, the theme of the image file cannot be determined. Therefore, the data about the image generation date and
このように、画像ファイルのテーマを判断できない場合に、時間帯で分類するのは、同じ日の同じ時間帯であれば、撮影場所が同じである可能性が高く、同じ被写体を撮影していると予測されるからである。つまり、結果的に同じテーマに画像ファイルが分類されると言える。 In this way, when the theme of the image file cannot be determined, it is highly possible that the shooting location is the same for the same time zone on the same day, and the same subject is shot. This is because it is predicted. That is, as a result, it can be said that image files are classified into the same theme.
また、図7〜図11に示した情報処理の一部が異なる以外は、第3実施例のCPU12の情報処理は同じであるため、重複した説明は省略する。図13は第3実施例におけるCPU12の情報処理の一部であって、図9に後続するフロー図である。なお、第1実施例の情報処理と同じ処理については同じ参照符号を付してある。
Further, since the information processing of the
図13に示すように、図7〜図11に示したCPU12の情報処理において、図10で示したステップS45およびステップS47に代えて、ステップS151、S153およびS155の処理が実行される。
As shown in FIG. 13, in the information processing of the
したがって、ステップS43で合計スコアの最大値が0であると判断されると、ステップS151で、Exifデータ52bから画像生成日時104のデータを抽出し、ステップS153で、画像生成日時104を含む時間帯のフォルダ名を付したフォルダが作成されているかどうかを判断する。このステップS153では、CPU12は、仕分けデータ338(RAM14)に、画像生成日時104を含む時間帯のフォルダ名が付されたフォルダのデータが記憶されているかどうかを判断する。
Therefore, when it is determined in step S43 that the maximum value of the total score is 0, in step S151, data of the image generation date /
ステップS153で“YES”であれば、つまり画像生成日時104を含む時間帯のフォルダ名を付したフォルダが作成されていれば、そのままステップS59に進む。一方、ステップS153で“NO”であれば、つまり画像生成日時104を含む時間帯のフォルダ名を付したフォルダが作成されていなければ、ステップS155で、画像生成日時104を含む時間帯のフォルダ名を付したフォルダを作成して、ステップS59に進む。
If “YES” in the step S153, that is, if a folder with a folder name in a time zone including the
ただし、第3実施例では、ステップS59において、合計スコアの最大値が0である画像ファイルは、テーマを判断されないため、画像生成日時104を含む時間帯のフォルダ名を付したフォルダに記憶(分類)される。 However, in the third embodiment, in step S59, the image file having the maximum total score of 0 is stored in a folder with the folder name of the time zone including the image generation date 104 (classification) because the theme is not determined. )
第3実施例によれば、画像ファイルのテーマを判断できない場合には、画像ファイルを時間帯で分類されたフォルダに記憶するので、外部メモリ40に記憶された画像ファイルを自動的に仕分けることができる。
According to the third embodiment, when the theme of the image file cannot be determined, the image file is stored in a folder classified by time zone, so that the image file stored in the
なお、この第3実施例では、画像ファイルを日時で分類する場合に、一日における同じ時間帯に生成された複数の画像ファイルを一つのファイルにまとめるようにしたが、これに限定される必要はない。たとえば、一ヶ月を所定の日数で区切って分類しても良いし、一年(12カ月)を季節(たとえば、四季)で区切って分類しても良い。 In the third embodiment, when image files are classified by date and time, a plurality of image files generated in the same time zone in a day are combined into one file. However, the present invention is not limited to this. There is no. For example, one month may be classified by a predetermined number of days, or one year (12 months) may be classified by a season (for example, four seasons).
また、上述の各実施例で挙げた具体的な数値等は一例であり、実際の製品に応じて適宜変更することが可能である。また、同じ効果が得られる場合には、フロー図に示した各ステップの順番は適宜変更されてもよい。 In addition, the specific numerical values and the like given in each of the above-described embodiments are examples, and can be appropriately changed according to the actual product. Moreover, when the same effect is acquired, the order of each step shown to the flowchart may be changed suitably.
10 …表示装置
12 …CPU
14 …RAM
16 …表示駆動部
18 …通信部
20 …表示部
40 …外部メモリ
10 ...
14 ... RAM
16 ...
Claims (10)
前記画像ファイルについての属性情報を抽出する属性情報抽出手段、
前記画像ファイルを分類するための複数のテーマと当該複数のテーマの各々に関連するキーワードとを対応付けて記述したテーマ辞書に対応する辞書データを記憶するテーマ辞書記憶手段、
前記属性情報抽出手段によって抽出された前記属性情報に含まれる文字列と、前記テーマ辞書に記述されたキーワードとの一致度に基づいて前記画像ファイルのテーマを判断するテーマ判断手段、および
前記テーマ判断手段によって判断された前記テーマに分類して前記画像ファイルを内部の記憶媒体に記憶する仕分け手段を備える、表示装置。 A display device that displays an image corresponding to image data included in an image file stored in an external storage medium,
Attribute information extraction means for extracting attribute information about the image file;
A theme dictionary storage means for storing dictionary data corresponding to a theme dictionary in which a plurality of themes for classifying the image files and keywords associated with each of the plurality of themes are described in association with each other;
Theme determination means for determining a theme of the image file based on a degree of matching between a character string included in the attribute information extracted by the attribute information extraction means and a keyword described in the theme dictionary; and the theme determination A display device comprising sorting means for classifying the image files into an internal storage medium classified into the themes determined by the means.
前記テーマ判断手段は、前記スコア加算手段によって加算されたスコアが最大となるテーマを前記画像ファイルのテーマとして判断する、請求項1ないし4のいずれかに記載の表示装置。 When the character string included in the attribute information includes the keyword described in the theme dictionary, it further includes score addition means for adding the score of the theme corresponding to the keyword,
The display device according to claim 1, wherein the theme determination unit determines a theme having a maximum score added by the score addition unit as a theme of the image file.
前記テーマ判断手段は、前記スコア加算手段によって加算されたスコアの最大値が0である場合に、前記画像ファイルの生成日時を含む時間帯を判断し、
前記仕分け手段は、前記テーマ判断手段によって判断された前記時間帯に分類して前記画像ファイルを内部の記憶媒体に記憶する、請求項5記載の表示装置。 The attribute information further includes information on the generation date and time of the image file,
The theme determination unit determines a time zone including the generation date and time of the image file when the maximum score added by the score addition unit is 0,
The display device according to claim 5, wherein the sorting unit stores the image file in an internal storage medium classified according to the time zone determined by the theme determination unit.
前記属性情報抽出手段は、前記画像ファイルに含まれる前記画像データから画像パターンをさらに抽出し、
前記スコア加算手段は、前記属性情報抽出手段によって抽出された前記画像パターンと、前記テーマ辞書に記憶された各テーマに対応する画像パターンの各々とを比較し、一致率が所定値以上である当該画像パターンに対応する当該テーマの前記スコアを加算する、請求項1ないし7のいずれかに記載の表示装置。 The theme dictionary further stores an image pattern corresponding to each of the plurality of themes,
The attribute information extraction unit further extracts an image pattern from the image data included in the image file,
The score adding means compares the image pattern extracted by the attribute information extracting means with each image pattern corresponding to each theme stored in the theme dictionary, and the matching rate is equal to or higher than a predetermined value. The display device according to claim 1, wherein the scores of the theme corresponding to the image pattern are added.
前記表示装置のプロセッサに、
前記画像ファイルについての属性情報を抽出する属性情報抽出ステップ
前記属性情報抽出ステップにおいて抽出した属性情報に含まれる文字列と、前記テーマ辞書に記述されたキーワードとの一致度に基づいて前記画像ファイルのテーマを判断するテーマ判断ステップ、および
前記テーマ判断ステップにおいて判断した前記テーマに分類して前記画像ファイルを内部の記憶媒体に記憶する仕分けステップを実行させる、情報処理プログラム。 A theme dictionary storage means for storing dictionary data corresponding to a theme dictionary in which a plurality of themes for classifying image files and a keyword related to each of the plurality of themes is described in association with each other is provided. An information processing program for a display device that displays an image corresponding to image data included in a stored image file,
In the processor of the display device,
Attribute information extraction step for extracting attribute information about the image file Based on the degree of match between the character string included in the attribute information extracted in the attribute information extraction step and the keyword described in the theme dictionary An information processing program for executing a theme determining step for determining a theme, and a sorting step for classifying the image file into an internal storage medium by classifying the image into the theme determined in the theme determining step.
(a)前記画像ファイルについての属性情報を抽出し、
(b)前記ステップ(a)において抽出した属性情報に含まれる文字列と、前記テーマ辞書に記述されたキーワードとの一致度に基づいて前記画像ファイルのテーマを判断し、そして
(c)前記ステップ(b)において判断した前記テーマに分類して前記画像ファイルを内部の記憶媒体に記憶する、情報処理方法。 A theme dictionary storage means for storing dictionary data corresponding to a theme dictionary in which a plurality of themes for classifying image files and a keyword related to each of the plurality of themes is described in association with each other is provided. An information processing method of a display device for displaying an image corresponding to image data included in a stored image file,
(A) extracting attribute information about the image file;
(B) determining the theme of the image file based on the degree of matching between the character string included in the attribute information extracted in the step (a) and the keyword described in the theme dictionary; and (c) the step An information processing method in which the image files are stored in an internal storage medium classified into the themes determined in (b).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015101575A JP6704680B2 (en) | 2015-05-19 | 2015-05-19 | Display device, information processing program, and information processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015101575A JP6704680B2 (en) | 2015-05-19 | 2015-05-19 | Display device, information processing program, and information processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016218652A true JP2016218652A (en) | 2016-12-22 |
JP6704680B2 JP6704680B2 (en) | 2020-06-03 |
Family
ID=57578722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015101575A Active JP6704680B2 (en) | 2015-05-19 | 2015-05-19 | Display device, information processing program, and information processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6704680B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021128774A (en) * | 2020-02-14 | 2021-09-02 | ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド | Multimodality-based theme classification method, device, apparatus, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004192121A (en) * | 2002-12-09 | 2004-07-08 | Seiko Epson Corp | Image retrieval device, image classification method, image retrieval method, and program |
JP2004362314A (en) * | 2003-06-05 | 2004-12-24 | Ntt Data Corp | Retrieval information registration device, information retrieval device, and retrieval information registration method |
JP2006285406A (en) * | 2005-03-31 | 2006-10-19 | Kyocera Mita Corp | Image-reading system, image-reading device, and file-storing program |
JP2010079788A (en) * | 2008-09-29 | 2010-04-08 | Fujifilm Corp | Content management device, system, method and program |
JP2012504806A (en) * | 2008-10-03 | 2012-02-23 | イーストマン コダック カンパニー | Interactive image selection method |
JP2012521598A (en) * | 2009-03-26 | 2012-09-13 | アリババ・グループ・ホールディング・リミテッド | Image search based on shape |
-
2015
- 2015-05-19 JP JP2015101575A patent/JP6704680B2/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004192121A (en) * | 2002-12-09 | 2004-07-08 | Seiko Epson Corp | Image retrieval device, image classification method, image retrieval method, and program |
JP2004362314A (en) * | 2003-06-05 | 2004-12-24 | Ntt Data Corp | Retrieval information registration device, information retrieval device, and retrieval information registration method |
JP2006285406A (en) * | 2005-03-31 | 2006-10-19 | Kyocera Mita Corp | Image-reading system, image-reading device, and file-storing program |
JP2010079788A (en) * | 2008-09-29 | 2010-04-08 | Fujifilm Corp | Content management device, system, method and program |
JP2012504806A (en) * | 2008-10-03 | 2012-02-23 | イーストマン コダック カンパニー | Interactive image selection method |
JP2012521598A (en) * | 2009-03-26 | 2012-09-13 | アリババ・グループ・ホールディング・リミテッド | Image search based on shape |
Non-Patent Citations (1)
Title |
---|
"ClassiNyでワンタッチ振り分け", ネトラン, vol. 第2巻,第9号, JPN6019037342, 1 September 2008 (2008-09-01), pages 23, ISSN: 0004190260 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021128774A (en) * | 2020-02-14 | 2021-09-02 | ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド | Multimodality-based theme classification method, device, apparatus, and storage medium |
JP7142737B2 (en) | 2020-02-14 | 2022-09-27 | ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド | Multimodal theme classification method, device, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP6704680B2 (en) | 2020-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10586108B2 (en) | Photo processing method and apparatus | |
US10289643B2 (en) | Automatic discovery of popular landmarks | |
US10789525B2 (en) | Modifying at least one attribute of an image with at least one attribute extracted from another image | |
US11853377B2 (en) | Image searching method and apparatus | |
US10943111B2 (en) | Method and apparatus for recognition and matching of objects depicted in images | |
CN102207950B (en) | Electronic installation and image processing method | |
JP4337064B2 (en) | Information processing apparatus, information processing method, and program | |
US20160321831A1 (en) | Computer-readable recording medium having stored therein album producing program, album producing method, and album producing device | |
US20120106854A1 (en) | Event classification of images from fusion of classifier classifications | |
CN108702449B (en) | Image searching method and system | |
WO2018102020A1 (en) | Systems and methods for applying layout to documents | |
JP6080409B2 (en) | Information processing apparatus, information processing method, and program | |
US20150143236A1 (en) | Generating photo albums from unsorted collections of images | |
US20150081703A1 (en) | Providing labels for photos | |
US9851873B2 (en) | Electronic album creating apparatus and method of producing electronic album | |
JP4374902B2 (en) | Similar image search device, similar image search method, and similar image search program | |
CN106445424A (en) | Information processing method and information processing apparatus | |
US20190034455A1 (en) | Dynamic Glyph-Based Search | |
US10558745B2 (en) | Information processing apparatus and non-transitory computer readable medium | |
JP2020140557A (en) | Image processing device, control method, and program | |
CN106971004B (en) | Search result providing method and device | |
US9621505B1 (en) | Providing images with notifications | |
JP2020140555A (en) | Image processing device, control method, and program | |
US20160283520A1 (en) | Search device, search method, and computer program product | |
JP6704680B2 (en) | Display device, information processing program, and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180323 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190326 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190320 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190523 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20191001 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20191126 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20200114 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200316 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20200324 |
|
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: 20200507 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200513 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6704680 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |