JP2015184760A - Electronic device and similarity determination program - Google Patents

Electronic device and similarity determination program Download PDF

Info

Publication number
JP2015184760A
JP2015184760A JP2014058413A JP2014058413A JP2015184760A JP 2015184760 A JP2015184760 A JP 2015184760A JP 2014058413 A JP2014058413 A JP 2014058413A JP 2014058413 A JP2014058413 A JP 2014058413A JP 2015184760 A JP2015184760 A JP 2015184760A
Authority
JP
Japan
Prior art keywords
similarity determination
images
characteristic
similarity
image
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.)
Pending
Application number
JP2014058413A
Other languages
Japanese (ja)
Inventor
英範 栗林
Hidenori Kuribayashi
英範 栗林
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP2014058413A priority Critical patent/JP2015184760A/en
Publication of JP2015184760A publication Critical patent/JP2015184760A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve determination accuracy of similarity between images taking even shooting date and time into account.SOLUTION: A similarity determination unit 18 of a digital camera comprises: an image acquisition unit 20 that acquires a plurality of images along with information on each shooting date and time of the images; a characteristic-amount calculation unit 21 that calculates each amount of characteristic of the plurality of images acquired by the image acquisition unit 20; an evaluation value calculation unit 22 that calculates an evaluation value expressing similarity between the images on the basis of each amount of characteristic of at least two images of similarity determination object calculated by the characteristic-amount calculation unit 21; a shooting interval calculation units 23 that calculates a shooting interval between each shooting date and time of at least two images of similarity determination object; and a determination unit 24 that determines similarity between at least two images of similarity determination object using a similarity determination characteristic, which is defined by the shooting interval and an evaluation threshold and causes the images to be hardly determined similar as the shooting interval gets longer.

Description

本発明は、電子機器と、その電子機器に備わるコンピュータに実行される類似性判定用プログラムとに関する。   The present invention relates to an electronic device and a similarity determination program executed on a computer included in the electronic device.

互いに類似している画像を所定個数のグループに分類する画像分類方法が知られている(たとえば、特許文献1)。特許文献1では、撮像日時に基づく階層的クラスタリングを用いて複数の画像を粗グループへ分類した後に、画像特徴量に基づく階層的クラスタリングを用いて各粗グループの画像を最終グループに分類している。   An image classification method for classifying images that are similar to each other into a predetermined number of groups is known (for example, Patent Document 1). In Patent Document 1, a plurality of images are classified into coarse groups using hierarchical clustering based on imaging date and time, and then images of each coarse group are classified into final groups using hierarchical clustering based on image feature values. .

特開2009−134411号公報JP 2009-134411 A

特許文献1に記載の方法では、撮像日時と画像特徴量との両方を同時に考慮して画像を分類することがないため、画像が類似しているか否かの判定精度が低くなることがある。たとえば、画像特徴量が近く同一の最終グループに分類されるべき画像であっても、撮像日時による分類で異なる粗グループに分類された場合には、異なる最終グループに分類されてしまう。   In the method described in Patent Document 1, since the images are not classified considering both the imaging date and time and the image feature amount at the same time, the determination accuracy of whether the images are similar may be low. For example, even if an image feature amount is an image that should be classified into the same final group soon, if it is classified into a different coarse group according to the classification based on the shooting date and time, it will be classified into a different final group.

本発明の一態様による電子機器は、複数の画像をそれぞれの撮影日時の情報と共に取得する画像取得部と、画像取得部により取得された複数の画像の特徴量をそれぞれ算出する特徴量算出部と、特徴量算出部により算出された少なくとも2つの類似性判定対象画像のそれぞれの特徴量により画像間の類似度を表す評価値を算出する評価値算出部と、少なくとも2つの類似性判定対象画像のそれぞれの撮影日時の間の撮影間隔を算出する撮影間隔算出部と、撮影間隔と評価閾値とで定義された特性であって、撮影間隔が長いほど画像が類似していると判定されにくくした類似性判定特性を用いて、少なくとも2つの類似性判定対象画像間の類似性を判定する類似性判定部とを備える。
本発明の別の一態様による類似性判定用プログラムは、複数の画像をそれぞれの撮影日時の情報と共に取得する画像取得手順と、画像取得手順により取得された複数の画像の特徴量をそれぞれ算出する特徴量算出手順と、特徴量算出手順により算出された少なくとも2つの類似性判定対象画像のそれぞれの特徴量により画像間の類似度を表す評価値を算出する評価値算出手順と、少なくとも2つの類似性判定対象画像のそれぞれの撮影日時の間の撮影間隔を算出する撮影間隔算出手順と、撮影間隔と評価閾値とで定義された特性であって、撮影間隔が長いほど画像が類似していると判定されにくくした類似性判定特性を用いて、少なくとも2つの類似性判定対象画像間の類似性を判定する類似性判定手順とをコンピュータに実行させる。
An electronic apparatus according to an aspect of the present invention includes an image acquisition unit that acquires a plurality of images together with information on each shooting date and time, a feature amount calculation unit that calculates the feature amounts of the plurality of images acquired by the image acquisition unit, and An evaluation value calculation unit that calculates an evaluation value that represents the degree of similarity between images based on the respective feature amounts of at least two similarity determination target images calculated by the feature amount calculation unit, and at least two similarity determination target images. Similarity that is defined by the shooting interval calculation unit that calculates the shooting interval between each shooting date and time, and the shooting interval and the evaluation threshold, and that the longer the shooting interval, the harder it is determined that the images are similar A similarity determination unit that determines the similarity between at least two similarity determination target images using the determination characteristics.
The similarity determination program according to another aspect of the present invention calculates an image acquisition procedure for acquiring a plurality of images together with information on each shooting date and a feature amount of the plurality of images acquired by the image acquisition procedure. A feature amount calculating procedure, an evaluation value calculating procedure for calculating an evaluation value representing similarity between images based on the respective feature amounts of at least two similarity determination target images calculated by the feature amount calculating procedure, and at least two similarities It is a characteristic defined by the shooting interval calculation procedure for calculating the shooting interval between each shooting date and time of the sex determination target image, and the shooting interval and the evaluation threshold, and it is determined that the images are more similar as the shooting interval is longer A similarity determination procedure for determining similarity between at least two similarity determination target images is performed by the computer using the similarity determination characteristic that is less likely to be performed.

本発明によれば、撮影日時も加味して画像の類似/非類似を判定することができ、分類の精度が向上する。   According to the present invention, it is possible to determine the similarity / dissimilarity of images in consideration of the shooting date and time, and the accuracy of classification is improved.

本発明の第1から第4の実施の形態による電子機器の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic device by the 1st to 4th embodiment of this invention. 類似性判定部に関する機能ブロック図である。It is a functional block diagram regarding a similarity determination part. 本発明の第1の実施の形態による電子機器における類似性判定部の説明に用いる図である。It is a figure used for description of the similarity determination part in the electronic device by the 1st Embodiment of this invention. 本発明の第1の実施の形態による電子機器における類似性判定部に関するフローチャートである。It is a flowchart regarding the similarity determination part in the electronic device by the 1st Embodiment of this invention. 本発明の第1から第4の実施の形態による電子機器における画像分類部に関するフローチャートである。It is a flowchart regarding the image classification | category part in the electronic device by the 1st-4th embodiment of this invention. 画像分類部の説明に用いる図である。It is a figure used for description of an image classification part. 本発明の第2の実施の形態による電子機器における類似性判定部の説明に用いる図である。It is a figure used for description of the similarity determination part in the electronic device by the 2nd Embodiment of this invention. 本発明の第2の実施の形態による電子機器における類似性判定部に関するフローチャートである。It is a flowchart regarding the similarity determination part in the electronic device by the 2nd Embodiment of this invention. 本発明の第3の実施の形態による電子機器における類似性判定部の説明に用いる図である。It is a figure used for description of the similarity determination part in the electronic device by the 3rd Embodiment of this invention. 本発明の第4の実施の形態による電子機器における類似性判定部の説明に用いる図である。It is a figure used for description of the similarity determination part in the electronic device by the 4th Embodiment of this invention. 本発明の第4の実施の形態による電子機器における類似性判定部に関するフローチャートである。It is a flowchart regarding the similarity determination part in the electronic device by the 4th Embodiment of this invention. 本発明の第4の実施の形態の変形例の説明に用いる図である。It is a figure used for description of the modification of the 4th Embodiment of this invention. 画像分類部の変形例の説明に用いる図である。It is a figure used for description of the modification of an image classification part. 本発明による電子機器が類似画像の分類処理を実行するためのコンピュータプログラム製品の提供形態を示す図である。It is a figure which shows the provision form of the computer program product for the electronic device by this invention to perform the classification process of a similar image.

(第1の実施の形態)
図1は、本発明の第1の実施の形態による電子機器の構成例を示すブロック図である。図1には、デジタルカメラ1の構成が例示されており、撮像部10と、画像処理部11と、CPU12と、記憶部13と、表示部14とを備える。画像処理部11と、CPU12と、記憶部13と、表示部14とは、バス15を介して接続されている。
(First embodiment)
FIG. 1 is a block diagram showing a configuration example of an electronic device according to the first embodiment of the present invention. FIG. 1 illustrates the configuration of the digital camera 1, which includes an imaging unit 10, an image processing unit 11, a CPU 12, a storage unit 13, and a display unit 14. The image processing unit 11, the CPU 12, the storage unit 13, and the display unit 14 are connected via a bus 15.

撮像部10は、撮影光学系、撮像素子等を有し、被写体像を撮像する。そして、撮像によって得られた画像信号を画像処理部11へ出力する。
画像処理部11は、撮像部10が出力した画像信号をバス15を介して記憶部13に記録し、ホワイトバランス調整、画像圧縮処理などの画像処理を施して、画像データを生成する。生成された画像データは、記憶部13、デジタルカメラ1に着脱可能に装着される不図示のメモリカード等に記録される。記憶部13等に記録された画像データには、撮像日時に関する情報などが関連付けられる。
The imaging unit 10 includes a photographing optical system, an imaging element, and the like, and captures a subject image. Then, an image signal obtained by imaging is output to the image processing unit 11.
The image processing unit 11 records the image signal output from the imaging unit 10 in the storage unit 13 via the bus 15 and performs image processing such as white balance adjustment and image compression processing to generate image data. The generated image data is recorded in a memory unit (not shown) or the like that is detachably attached to the storage unit 13 and the digital camera 1. The image data recorded in the storage unit 13 or the like is associated with information related to the imaging date and time.

CPU12は、デジタルカメラ1の全体を制御する。CPU12は、記憶部13に記憶された画像分類プログラム16を実行することにより、画像分類部17として機能する。画像分類部17は、入力された複数の画像データを複数のグループに分類し、画像の分類結果に関する情報を出力する。   The CPU 12 controls the entire digital camera 1. The CPU 12 functions as the image classification unit 17 by executing the image classification program 16 stored in the storage unit 13. The image classification unit 17 classifies the plurality of input image data into a plurality of groups, and outputs information related to the image classification result.

記憶部13は、SDRAMやフラッシュメモリが含まれる。SDRAMは、揮発性のメモリであって、CPU12がプログラム実行時にプログラムを展開するためのワークメモリとして使用されると共に、データを一時的に記録するためのバッファメモリとして使用される。また、フラッシュメモリは、不揮発性のメモリであって、CPU12が実行する画像分類プログラム16などのプログラムのデータや、プログラム実行時に読み込まれる種々のパラメータなどが記録されている。   The storage unit 13 includes an SDRAM and a flash memory. The SDRAM is a volatile memory, and is used as a work memory for the CPU 12 to develop a program when the program is executed, and as a buffer memory for temporarily recording data. The flash memory is a non-volatile memory in which data of programs such as the image classification program 16 executed by the CPU 12 and various parameters read during program execution are recorded.

表示部14は、たとえばデジタルカメラ1の背面に設けられた液晶モニタなどであって、デジタルカメラ1の設定画面などが表示される。   The display unit 14 is, for example, a liquid crystal monitor provided on the back surface of the digital camera 1, and displays a setting screen of the digital camera 1.

画像分類部17は、入力された二つの画像データが類似しているか否かを判定する類似性判定部18を有し、この類似性判定部18の判定結果に基づいて、階層的クラスタリングを用いることなく複数の画像データをグループ分けする。デジタルカメラ1では、たとえば特許文献1のように、画像データのスライドショー表示を行う場合などに、画像分類部17により画像データがグループ分けされる。   The image classification unit 17 includes a similarity determination unit 18 that determines whether two input image data are similar, and uses hierarchical clustering based on the determination result of the similarity determination unit 18. A plurality of image data is grouped without any problem. In the digital camera 1, for example, as shown in Patent Document 1, image data is grouped by the image classification unit 17 when a slide show display of image data is performed.

図2は、類似性判定部18の機能ブロック図である。図2に示すように類似性判定部18は、画像取得部20と、特徴量算出部21と、評価値算出部22と、撮影間隔算出部23と、判定部24と、閾値設定部25とを有する。図2に示す類似性判定部18には、画像Aと画像Bが入力され、画像Aと画像Bが類似しているか否かの判定結果が出力される。以降の説明では、画像Aと画像Bのことを入力画像Aと入力画像Bと呼ぶことがある。   FIG. 2 is a functional block diagram of the similarity determination unit 18. As shown in FIG. 2, the similarity determination unit 18 includes an image acquisition unit 20, a feature amount calculation unit 21, an evaluation value calculation unit 22, a shooting interval calculation unit 23, a determination unit 24, and a threshold setting unit 25. Have The similarity determination unit 18 shown in FIG. 2 receives the image A and the image B, and outputs a determination result as to whether or not the image A and the image B are similar. In the following description, the image A and the image B may be referred to as an input image A and an input image B.

画像取得部20は、入力画像Aおよび入力画像Bの画像データを、それらの画像データに関連付けられた撮像日時に関する情報と共に取得する。画像取得部20は、取得した画像データを特徴量算出部21に出力し、撮像日時に関する情報を撮影間隔算出部23に出力する。   The image acquisition unit 20 acquires the image data of the input image A and the input image B together with information regarding the imaging date and time associated with the image data. The image acquisition unit 20 outputs the acquired image data to the feature amount calculation unit 21 and outputs information related to the imaging date and time to the imaging interval calculation unit 23.

特徴量算出部21は、入力画像Aと入力画像Bの各々の画像特徴量を算出する。画像特徴量には、たとえば、ISO/IEC15938−3(mpeg visual discription)に定義されている各種画像統計量(色、テクスチャ、形状等)が含まれる。特徴量算出部21は、たとえば公知のエッジ検出処理、輪郭抽出処理などを用いて、各種特徴量を算出して、入力画像Aと入力画像Bの各々の特徴量ベクトルV,Vを生成する。 The feature amount calculation unit 21 calculates the image feature amount of each of the input image A and the input image B. The image feature amount includes, for example, various image statistics (color, texture, shape, etc.) defined in ISO / IEC15938-3 (mpeg visual description). The feature quantity calculation unit 21 calculates various feature quantities using, for example, a known edge detection process, contour extraction process, and the like, and generates feature quantity vectors V A and V B for the input image A and the input image B, respectively. To do.

評価値算出部22は、特徴量算出部21が生成した特徴量ベクトルV,Vの類似度を表す評価値EABを算出する。評価値算出部22は、たとえば特徴量ベクトルV,Vのコサイン類似度を評価値EABとして算出する。 The evaluation value calculation unit 22 calculates an evaluation value E AB representing the similarity between the feature amount vectors V A and V B generated by the feature amount calculation unit 21. For example, the evaluation value calculation unit 22 calculates the cosine similarity of the feature amount vectors V A and V B as the evaluation value E AB .

撮影間隔算出部23は、入力画像Aに関連付けられている撮像日時tと入力画像Bに関連付けられている撮像日時tとの間の間隔、すなわち撮影間隔TABを(式1)を用いて算出する。
AB=|t−t| …(式1)
The shooting interval calculation unit 23 uses (Equation 1) for the interval between the shooting date and time t A associated with the input image A and the shooting date and time t B associated with the input image B, that is, the shooting interval T AB. To calculate.
T AB = | t A −t B | (Formula 1)

判定部24は、図3に示すように撮影間隔と評価閾値とで定義された類似性判定特性線図を用いて、入力画像Aと入力画像Bとが類似しているか否かを判定する。   The determination unit 24 determines whether the input image A and the input image B are similar using the similarity determination characteristic diagram defined by the shooting interval and the evaluation threshold as shown in FIG.

図3に示す類似性判定特性線図は、縦軸が評価値EAB、横軸が撮影間隔TABである座標系である。類似性判定特性線図の座標領域は、右肩上がりの境界線40により、入力画像Aと入力画像Bとが類似するという判定結果を出力する類似領域と、入力画像Aと入力画像Bとが非類似であるという判定結果を出力する非類似領域とに分割されている。 The similarity determination characteristic diagram shown in FIG. 3 is a coordinate system in which the vertical axis represents the evaluation value E AB and the horizontal axis represents the imaging interval T AB . The coordinate region of the similarity determination characteristic diagram includes a similarity region that outputs a determination result that the input image A and the input image B are similar, and the input image A and the input image B by the upwardly rising boundary line 40. The region is divided into dissimilar regions that output a determination result of dissimilarity.

境界線40は、傾きが正であり、撮影間隔TABを引数とする、類似判定の閾値Ethを表す一次関数である。境界線40が示す閾値Ethは、撮影間隔TABの増加に伴って増加する。撮影間隔TABが短い場合は、たとえば、デジタルカメラ1の設定を変えて同一被写体を短時間に複数回撮影した場合、連続撮影を行った場合などには、閾値Ethが小さく設定され、入力画像Aと入力画像Bとが類似していると判定され易くなっている。一方、撮影間隔TABが長い場合は、異なる被写体を撮影したり、異なる場所で撮影したりしている可能性が高いため、閾値Ethが大きく設定され、入力画像Aと入力画像Bとが類似していると判定され難くなっている。
すなわち、境界線40で定義された類似性判定特性は、撮影間隔が長いほど画像が類似していると判定されにくくなる特性である。
The boundary line 40 is a linear function that expresses a similarity determination threshold value E th that has a positive slope and uses the shooting interval T AB as an argument. The threshold value E th indicated by the boundary line 40 increases as the imaging interval T AB increases. When the shooting interval T AB is short, for example, when the same subject is shot a plurality of times in a short time by changing the setting of the digital camera 1 or when continuous shooting is performed, the threshold E th is set to be small. It is easy to determine that the image A and the input image B are similar. On the other hand, when the shooting interval T AB is long, there is a high possibility that a different subject is shot or shot at a different place, so the threshold E th is set large, and the input image A and the input image B are It is difficult to determine that they are similar.
That is, the similarity determination characteristic defined by the boundary line 40 is a characteristic that it is difficult to determine that the images are similar as the shooting interval is longer.

閾値設定部25は、撮影間隔算出部23が算出した撮影間隔TABが入力されると、境界線40を表す関数に基づいてその撮影間隔TABに応じた閾値Ethを判定部24に出力する。判定部24は、評価値算出部22が算出した評価値EABが、閾値設定部25により設定される閾値Eth以上か否かを判定する。評価値EABが閾値Eth以上の場合、すなわち類似領域内の場合、判定部24は、入力画像Aと入力画像Bとが類似していると判定する。画像評価値EABが閾値Eth未満の場合、すなわち非類似領域内の場合、判定部24は、入力画像Aと入力画像Bとが非類似であると判定する。
換言すると、評価値算出部22が算出した評価値EABと、撮影間隔算出部23が算出した撮影間隔TABとの交点の座標位置が図3の境界線40で区画した上下2つの領域のどちらに存在するかにより画像間の類似/非類似が判定される。
When the shooting interval T AB calculated by the shooting interval calculation unit 23 is input, the threshold setting unit 25 outputs a threshold E th corresponding to the shooting interval T AB to the determination unit 24 based on a function representing the boundary line 40. To do. The determination unit 24 determines whether or not the evaluation value E AB calculated by the evaluation value calculation unit 22 is greater than or equal to the threshold value E th set by the threshold value setting unit 25. When the evaluation value E AB is equal to or greater than the threshold value E th , that is, within the similar region, the determination unit 24 determines that the input image A and the input image B are similar. When the image evaluation value E AB is less than the threshold value E th , that is, within the dissimilar region, the determination unit 24 determines that the input image A and the input image B are dissimilar.
In other words, the upper and lower two regions where the coordinate position of the intersection between the evaluation value E AB calculated by the evaluation value calculation unit 22 and the shooting interval T AB calculated by the shooting interval calculation unit 23 is partitioned by the boundary line 40 in FIG. Similarity / dissimilarity between images is determined depending on where the image exists.

類似性判定部18では、閾値設定部25が撮影間隔TABに基づいて閾値Ethを設定し、判定部24が画像特徴量の類似度を表す評価値EABと閾値Ethとを比較することにより、画像特徴量と撮像日時との両方を同時に考慮して画像が類似しているか否かを判定することができる。したがって、撮影日時も加味して画像が類似しているか否かの判定を行うことができ、分類の精度が向上する。 In the similarity determination unit 18, the threshold setting unit 25 sets the threshold E th based on the shooting interval T AB , and the determination unit 24 compares the evaluation value E AB representing the similarity of the image feature amount with the threshold E th. Thus, it is possible to determine whether or not the images are similar in consideration of both the image feature amount and the imaging date and time. Therefore, it is possible to determine whether the images are similar in consideration of the shooting date and time, and the accuracy of classification is improved.

図4は、類似性判定部18に関するフローチャートを示す。図4に示すフローチャートは、画像分類プログラム16を実行しているCPU12により実行され、二つの画像が入力画像Aおよび入力画像Bとして入力されるとその実行を開始する。   FIG. 4 is a flowchart regarding the similarity determination unit 18. The flowchart shown in FIG. 4 is executed by the CPU 12 executing the image classification program 16, and starts executing when two images are input as the input image A and the input image B.

ステップS300では、CPU12は、画像取得部20を用いて入力された二つの画像、すなわち入力画像Aおよび入力画像Bに関連付けられて記憶されている撮像日時t,tをそれぞれ取得し、撮影間隔算出部23を用いて撮影間隔TABを算出する。 In step S300, the CPU 12 acquires two images input using the image acquisition unit 20, that is, the imaging dates and times t A and t B stored in association with the input image A and the input image B, respectively. The interval calculation unit 23 is used to calculate the shooting interval T AB .

ステップS301では、CPU12は、画像取得部20が画像データを取得した二つの画像、すなわち入力画像Aおよび入力画像Bに対して、特徴量算出部21を用いてそれぞれ特徴量ベクトルV,Vを算出する。 In step S <b> 301, the CPU 12 uses the feature amount calculation unit 21 for the two images that the image acquisition unit 20 has acquired image data, that is, the input image A and the input image B, respectively, and uses the feature amount vectors V A and V B. Is calculated.

ステップS302では、CPU12は、評価値算出部22を用いて、ステップS301で算出した特徴量ベクトルV,Vに基づいて、入力画像Aと入力画像Bとの類似度を表す評価値EABを算出する。 In step S302, the CPU 12 uses the evaluation value calculation unit 22 to evaluate the evaluation value E AB indicating the similarity between the input image A and the input image B based on the feature amount vectors V A and V B calculated in step S301. Is calculated.

ステップS303では、CPU12は、閾値設定部25を用いて、ステップS300で算出された撮影間隔TABに基づいて、閾値Ethを設定する。 In step S303, the CPU 12 uses the threshold setting unit 25 to set the threshold E th based on the shooting interval T AB calculated in step S300.

ステップS304では、CPU12は、判定部24を用いて、ステップS302で算出された評価値EABがステップS303で算出された閾値Eth以上か否かを判定する。CPU12は、評価値EABが閾値Eth以上の場合、ステップS304を肯定判定して、ステップS305の処理に進み、評価値EABが閾値Eth未満の場合、ステップS304を否定判定して、ステップS306の処理に進む。 In step S304, the CPU 12 uses the determination unit 24 to determine whether or not the evaluation value E AB calculated in step S302 is greater than or equal to the threshold value E th calculated in step S303. If the evaluation value E AB is greater than or equal to the threshold value E th , the CPU 12 makes an affirmative decision in step S304 and proceeds to the process of step S305. If the evaluation value E AB is less than the threshold value E th , the CPU 12 makes a negative decision in step S304. The process proceeds to step S306.

ステップS305では、CPU12は、入力画像Aと入力画像Bとが類似しているという判定結果を出力し、図4の処理を終了する。たとえば、CPU12は、類似性判定部18の出力結果として、TRUEを返す。
ステップS306では、CPU12は、入力画像Aと入力画像Bとが非類似であるという判定結果を出力し、図4の処理を終了する。たとえば、CPU12は、類似性判定部18の出力結果として、FALSEを返す。
In step S305, the CPU 12 outputs a determination result that the input image A and the input image B are similar, and ends the process of FIG. For example, the CPU 12 returns TRUE as the output result of the similarity determination unit 18.
In step S306, the CPU 12 outputs a determination result that the input image A and the input image B are dissimilar, and ends the process of FIG. For example, the CPU 12 returns FALSE as an output result of the similarity determination unit 18.

図5と図6を用いて画像分類部17の動作の一例について説明する。図5は、画像分類部17に関するフローチャートの一例である。   An example of the operation of the image classification unit 17 will be described with reference to FIGS. FIG. 5 is an example of a flowchart relating to the image classification unit 17.

図6は、画像分類部17により分類される画像データの具体例を示す。図6では、撮像日時がそれぞれ異なる4個の画像データIMG[1],IMG[2],IMG[3],IMG[4]が例示されている。   FIG. 6 shows a specific example of image data classified by the image classification unit 17. FIG. 6 illustrates four pieces of image data IMG [1], IMG [2], IMG [3], and IMG [4] that are different in imaging date and time.

図5のステップS500では、CPU12は、入力された未分類のn個の画像データIMG[1],IMG[2],・・・,IMG[n]を、図6に例示するように、それらに関連付けられた撮像日時を基準にソートする。   In step S500 of FIG. 5, the CPU 12 converts the input unclassified n pieces of image data IMG [1], IMG [2],..., IMG [n] as illustrated in FIG. Sort based on the imaging date and time associated with.

図5のステップS501では、CPU12は、以下で説明するステップS503からステップS507までの処理の繰り返し回数iを1に初期化する。   In step S501 in FIG. 5, the CPU 12 initializes the number of repetitions i of steps S503 to S507 described below to 1.

ステップS502では、CPU12は、1番目の画像データを含むグループを生成する。換言すると、CPU12は、1番目の画像データを1個目のグループ、第1グループに分類する。たとえば、図6におけるIMG[1]を第1グループに分類する。CPU12は、1番目の画像データに対して、第1グループであることを示す情報を関連付ける。   In step S502, the CPU 12 generates a group including the first image data. In other words, the CPU 12 classifies the first image data into the first group and the first group. For example, IMG [1] in FIG. 6 is classified into the first group. The CPU 12 associates information indicating the first group with the first image data.

ステップS503では、CPU12は、類似性判定部18を用いて、ステップS500でソートされたn個の画像データのうち、i番目の画像データとi+1番目の画像データについて類似判定を行う。ステップS502の処理完了直後のタイミングでは、i=1に設定されているため、1番目の画像、たとえばIMG[1]と、2番目の画像、たとえばIMG[2]とが類似か否かを判定する。   In step S503, the CPU 12 uses the similarity determination unit 18 to perform similarity determination for the i-th image data and the i + 1-th image data among the n pieces of image data sorted in step S500. Since i = 1 is set at the timing immediately after the completion of the processing in step S502, it is determined whether or not the first image, for example, IMG [1], is similar to the second image, for example, IMG [2]. To do.

ステップS504では、CPU12は、ステップS503の類似判定において、i番目の画像データとi+1番目の画像データとが似ていると判定されたか否かを判定する。CPU12は、ステップS503の類似判定において似ていると判定された場合はステップS505の処理に進み、似ていないと判定された場合はステップS506の処理に進む。たとえば、IMG[1]とIMG[2]とが類似していると判定された場合はステップS505に進み、IMG[1]とIMG[2]とが非類似であると判定された場合はステップS506に進む。   In step S504, the CPU 12 determines whether or not it is determined in the similarity determination in step S503 that the i-th image data and the i + 1-th image data are similar. If it is determined in step S503 that the images are similar, the CPU 12 proceeds to step S505. If it is determined that they are not similar, the CPU 12 proceeds to step S506. For example, if it is determined that IMG [1] and IMG [2] are similar, the process proceeds to step S505. If it is determined that IMG [1] and IMG [2] are dissimilar, step S505 is performed. The process proceeds to S506.

ステップS505では、CPU12は、i番目の画像データを含むグループにi+1番目の画像データを含める。たとえば、IMG[1]を含む第1グループにIMG[2]を含める。
CPU12は、i+1番目の画像データに対して、分類されたグループであることを示す情報を関連付ける。
In step S505, the CPU 12 includes the (i + 1) th image data in the group including the i-th image data. For example, IMG [2] is included in the first group including IMG [1].
The CPU 12 associates information indicating that the group is a classified group with the (i + 1) th image data.

ステップS506では、CPU12は、i+1番目の画像データを含むグループを生成する。換言すると、CPU12は、i+1番目の画像データをi番目の画像データとは異なるグループに分類する。たとえば、IMG[2]を新しいグループ、第2グループに分類する。
CPU12は、i+1番目の画像データに対して、分類されたグループであることを示す情報を関連付ける。
In step S506, the CPU 12 generates a group including the (i + 1) th image data. In other words, the CPU 12 classifies the i + 1-th image data into a different group from the i-th image data. For example, IMG [2] is classified into a new group and a second group.
The CPU 12 associates information indicating that the group is a classified group with the (i + 1) th image data.

ステップS507では、CPU12は、iを1増加させる。
ステップS508では、CPU12は、iがn−1よりも大きいか否かを判定する。CPU12は、iがn−1以下の場合はステップS503に戻り、iがn−1より大きい場合はステップS509に進む。
In step S507, the CPU 12 increases i by one.
In step S508, the CPU 12 determines whether i is larger than n-1. If i is n−1 or less, the CPU 12 returns to step S503, and if i is greater than n−1, the process proceeds to step S509.

CPU12は、ステップS503からステップS507までの処理をn−1回繰り返す。すなわち、n−1番目の画像とn番目の画像とが類似しているか否かの判定が完了するまでステップS501、S507、S508の処理を繰り返す。   CPU12 repeats the process from step S503 to step S507 n-1 times. That is, the processes in steps S501, S507, and S508 are repeated until it is determined whether or not the (n-1) th image and the nth image are similar.

ステップS509では、CPU12は、分類結果を各画像データに関連付けて、図5の処理を終了する。たとえば、画像データIMG[1]が第1グループ、IMG[2]〜IMG[4]が第2グループに分類された場合は、画像データIMG[1]には、付加情報として第1グループを表す情報を関連付け、画像データIMG[2]〜IMG[4]には、付加情報として第2グループを表す情報を関連付ける。   In step S509, the CPU 12 associates the classification result with each image data, and ends the process of FIG. For example, when the image data IMG [1] is classified into the first group and IMG [2] to IMG [4] are classified into the second group, the image data IMG [1] represents the first group as additional information. The information is associated, and the image data IMG [2] to IMG [4] are associated with information representing the second group as additional information.

図6の例では、2回目のステップS503では、IMG[2]とIMG[3]について類似判定を行う。IMG[2]とIMG[3]とが類似と判定された場合はIMG[2]を含むグループにIMG[3]を含め、IMG[2]とIMG[3]とが非類似と判定された場合はIMG[3]を含む新しいグループを生成する。   In the example of FIG. 6, in the second step S503, similarity determination is performed for IMG [2] and IMG [3]. When it is determined that IMG [2] and IMG [3] are similar, IMG [3] is included in the group including IMG [2], and IMG [2] and IMG [3] are determined to be dissimilar If so, create a new group containing IMG [3].

たとえば、1回目のステップS503でIMG[1]とIMG[2]とが類似と判定され、2回目のステップS503でIMG[2]とIMG[3]とが類似と判定された場合、IMG[2]がIMG[1]と同じ第1グループに含まれているため、IMG[3]もIMG[1]とIMG[2]と同じ第1グループに含められる。   For example, if IMG [1] and IMG [2] are determined to be similar in the first step S503, and IMG [2] and IMG [3] are determined to be similar in the second step S503, IMG [ 2] is included in the same first group as IMG [1], so IMG [3] is also included in the same first group as IMG [1] and IMG [2].

1回目のステップS503でIMG[1]とIMG[2]とが非類似と判定され、2回目のステップS503でIMG[2]とIMG[3]とが類似と判定された場合、IMG[1]が第1グループに含まれ、IMG[2]が第2グループに含まれており、IMG[3]はIMG[2]と同じ第2グループに含められる。   When it is determined that IMG [1] and IMG [2] are dissimilar in the first step S503, and IMG [2] and IMG [3] are determined to be similar in the second step S503, IMG [1 ] Is included in the first group, IMG [2] is included in the second group, and IMG [3] is included in the same second group as IMG [2].

1回目のステップS503でIMG[1]とIMG[2]とが類似と判定され、2回目のステップS503でIMG[2]とIMG[3]とが非類似と判定された場合、IMG[2]がIMG[1]と同じ第1グループに含まれており、IMG[3]は、IMG[1]とIMG[2]とは異なる新しいグループ、第2グループに含められる。なお、3回目のステップS503でIMG[3]とIMG[4]とが類似と判定された場合、IMG[4]は、IMG[3]と同じ第2グループに含められる。   When it is determined that IMG [1] and IMG [2] are similar in the first step S503, and IMG [2] and IMG [3] are determined to be dissimilar in the second step S503, IMG [2 ] Is included in the same first group as IMG [1], and IMG [3] is included in a new group, the second group, which is different from IMG [1] and IMG [2]. If it is determined in the third step S503 that IMG [3] and IMG [4] are similar, IMG [4] is included in the same second group as IMG [3].

1回目のステップS503でIMG[1]とIMG[2]とが非類似と判定され、2回目のステップS503でIMG[2]とIMG[3]とが非類似と判定された場合、IMG[1]が第1グループに含まれ、IMG[2]が第2グループに含まれており、IMG[3]はIMG[1]ともIMG[2]とも異なる第3グループに含められる。   If it is determined that IMG [1] and IMG [2] are dissimilar in the first step S503, and IMG [2] and IMG [3] are determined to be dissimilar in the second step S503, IMG [ 1] is included in the first group, IMG [2] is included in the second group, and IMG [3] is included in a third group that is different from both IMG [1] and IMG [2].

上述した第1の実施の形態によれば、次の作用効果が得られる。
(1)本発明の第1の実施の形態による電子機器であるデジタルカメラ1は、CPU12が画像分類プログラム16を実行して行う以下の機能部を備えている。すなわち電子機器は、複数の画像をそれぞれの撮影日時の情報と共に取得する画像取得部20と、画像取得部20により取得された複数の画像の特徴量をそれぞれ算出する特徴量算出部21と、特徴量算出部により算出された少なくとも2つの類似性判定対象画像のそれぞれの特徴量により画像間の類似度を表す評価値EABを算出する評価値算出部と、少なくとも2つの類似性判定対象画像のそれぞれの撮影日時の間の撮影間隔TABを算出する撮影間隔算出部23と、撮影間隔TABと評価閾値EABとで定義された特性であって、撮影間隔が長いほど画像が類似していると判定されにくくした類似性判定特性(換言すると、撮影間隔が長いほど画像の類似判定が厳しくなるようにした類似性判定特性)を用いて、少なくとも2つの類似性判定対象画像間の類似性を判定する類似性判定部24とを備える。
したがって、本発明の第1の実施の形態による電子機器であるデジタルカメラ1は、類似性判定対象である2つの画像の撮影間隔も加味して二つの画像間の類似/非類似を判定することができ、従来の電子機器よりも長い期間内における複数枚の画像に対する類似/非類似の判定精度を向上させることができる。
According to the first embodiment described above, the following operational effects are obtained.
(1) The digital camera 1 that is an electronic apparatus according to the first embodiment of the present invention includes the following functional units that are executed by the CPU 12 executing the image classification program 16. That is, the electronic device includes an image acquisition unit 20 that acquires a plurality of images together with information on each shooting date, a feature amount calculation unit 21 that calculates a feature amount of each of the plurality of images acquired by the image acquisition unit 20, and a feature. An evaluation value calculation unit that calculates an evaluation value E AB that represents the degree of similarity between images based on the feature amounts of at least two similarity determination target images calculated by the amount calculation unit, and at least two similarity determination target images. The characteristics defined by the shooting interval calculator 23 for calculating the shooting interval T AB between the respective shooting dates and times, the shooting interval T AB and the evaluation threshold value E AB, and the longer the shooting interval, the more similar the images. Using similarity determination characteristics (in other words, similarity determination characteristics in which the similarity determination of an image becomes more severe as the shooting interval is longer). And a similarity determination unit 24 that determines the similarity between the similarity determination target images.
Therefore, the digital camera 1 that is the electronic apparatus according to the first embodiment of the present invention determines similarity / dissimilarity between two images in consideration of the shooting interval of two images that are similarity determination targets. It is possible to improve the accuracy of determination of similarity / dissimilarity for a plurality of images within a longer period than that of a conventional electronic device.

(2) デジタルカメラ1は、CPU12が画像分類プログラム16を実行して、異なる画像間について繰り返し行われた類似性判定の複数の結果に基づいて、複数の画像を分類する画像分類部17としても機能する。画像分類部17は、複数の画像のうち、撮影日時を基準にソートされた隣り合うすべての二つの画像のペアについて、類似性判定部18により似ているか否かを判定し、それらの判定結果に基づいて、複数の画像を一つ以上のグループに分類する。したがって、デジタルカメラ1は、階層的クラスタリングを用いる手法よりも、二つの画像が類似しているか否かの判定を行う回数が少なくなり、高速に画像を分類することができる。 (2) The digital camera 1 can also be used as the image classifying unit 17 that classifies a plurality of images based on a plurality of results of similarity determination repeatedly performed between different images by the CPU 12 executing the image classification program 16. Function. The image classification unit 17 determines whether or not the pair of all two adjacent images sorted based on the shooting date and time among the plurality of images is similar by the similarity determination unit 18, and the determination results thereof Based on the above, the plurality of images are classified into one or more groups. Therefore, the digital camera 1 can classify images at a high speed because the number of times of determining whether or not two images are similar to each other is smaller than a method using hierarchical clustering.

(第2の実施の形態)
本発明の第2の実施の形態による電子機器について説明する。第2の実施の形態による電子機器は、図1に示す構成を有するデジタルカメラ1である点は第1の実施の形態と同様である。第2の実施の形態では、類似性判定部18の機能ブロックのうち、判定部24の処理が第1の実施の形態と異なっている。第2の実施の形態では、判定部24は、図7に例示するような類似性判定特性線図を用いて、入力画像Aと入力画像Bとが類似しているか否かを判定する。
(Second Embodiment)
An electronic device according to the second embodiment of the present invention will be described. The electronic device according to the second embodiment is the same as the first embodiment in that it is a digital camera 1 having the configuration shown in FIG. In the second embodiment, among the functional blocks of the similarity determination unit 18, the process of the determination unit 24 is different from that of the first embodiment. In the second embodiment, the determination unit 24 determines whether or not the input image A and the input image B are similar using a similarity determination characteristic diagram as illustrated in FIG.

図7に示す類似性判定特性線図では、撮影間隔TABが所定時間T1以下の場合は評価値に関わらず入力画像Aと入力画像Bとが類似していると判定し、撮影間隔が所定時間T2以上の場合は評価値に関わらず入力画像Aと入力画像Bとが非類似であると判定する。撮影間隔TABがT1より大きく所定時間T2未満の場合は、第1の実施の形態と同様に、評価値EABと閾値Ethとの大小関係により類似しているか否かを判定する。T1<TAB<T2における境界線60は、第1の実施の形態における境界線40と同様に、傾きが正であり、撮影間隔TABを引数とする、類似判定の閾値Ethを表す一次関数である。 In the similarity determination characteristic diagram shown in FIG. 7, when the shooting interval T AB is equal to or shorter than the predetermined time T1, it is determined that the input image A and the input image B are similar regardless of the evaluation value, and the shooting interval is predetermined. When the time is T2 or longer, it is determined that the input image A and the input image B are dissimilar regardless of the evaluation value. If the shooting interval T AB is greater than T1 and less than the predetermined time T2, it is determined whether or not they are similar due to the magnitude relationship between the evaluation value E AB and the threshold value E th as in the first embodiment. Similar to the boundary line 40 in the first embodiment, the boundary line 60 at T1 <T AB <T2 has a positive slope, and represents the similarity determination threshold value E th using the shooting interval T AB as an argument. It is a function.

所定時間T1は、たとえば連続撮影で生成される画像データ間の撮影間隔であって、たとえば、数秒〜数十秒の時間である。所定時間T2は、たとえば数十秒〜数百秒の時間である。   The predetermined time T1 is a shooting interval between image data generated by continuous shooting, for example, and is, for example, several seconds to several tens of seconds. The predetermined time T2 is, for example, several tens of seconds to several hundreds of seconds.

図8は、第2の実施の形態における類似性判定部18に関するフローチャートである。図8に示す動作のうち、図4と同様の動作については、図4と同一のステップ番号を付し、その説明を省略する。図8に示すフローチャートは、ステップS300とステップS301との間にステップS700とステップS701が挿入されている点が図4と異なる。   FIG. 8 is a flowchart relating to the similarity determination unit 18 in the second embodiment. Of the operations shown in FIG. 8, the same operations as those in FIG. 4 are denoted by the same step numbers as those in FIG. The flowchart shown in FIG. 8 differs from FIG. 4 in that steps S700 and S701 are inserted between steps S300 and S301.

ステップS700では、CPU12は、ステップS300で算出された撮影間隔TABが所定時間T1以上か否かを判定する。CPU12は、撮影間隔TABが所定時間T1以下の場合、ステップS305の処理に進み、撮影間隔TABが所定時間T1より長い場合、ステップS701の処理に進む。 In step S700, the CPU 12 determines whether or not the shooting interval T AB calculated in step S300 is equal to or longer than a predetermined time T1. When the shooting interval T AB is equal to or shorter than the predetermined time T1, the CPU 12 proceeds to the process of step S305. When the shooting interval T AB is longer than the predetermined time T1, the CPU 12 proceeds to the process of step S701.

ステップS701では、CPU12は、ステップS300で算出された撮影間隔TABが所定時間T2以上か否かを判定する。CPU12は、撮影間隔TABが所定時間T2以上の場合、ステップS306の処理に進み、撮影間隔TABが所定時間T2未満の場合、ステップS301の処理に進む。 In step S701, the CPU 12 determines whether or not the shooting interval T AB calculated in step S300 is equal to or longer than a predetermined time T2. When the shooting interval T AB is equal to or longer than the predetermined time T2, the CPU 12 proceeds to the process of step S306. When the shooting interval T AB is less than the predetermined time T2, the CPU 12 proceeds to the process of step S301.

このように、第2の実施の形態では、類似性判定部18の動作において、撮影間隔TABが所定時間T1以下の場合と、所定時間T2以上の場合に、ステップS301からステップS304までの処理を省略することにより、処理時間を短縮することができる。 As described above, in the second embodiment, in the operation of the similarity determination unit 18, the processing from step S301 to step S304 is performed when the shooting interval TAB is equal to or shorter than the predetermined time T1 and when it is equal to or longer than the predetermined time T2. By omitting, processing time can be shortened.

上述した第2の実施の形態によれば、次の作用効果が得られる。
(1) 本発明の第2の実施の形態による電子機器であるデジタルカメラ1の判定部24は、図7に示すように、算出された評価値の大きさに無関係に、撮影間隔が第1の所定値以下の場合は画像同士が類似し、第2の所定値(>第1の所定値)以上の場合は画像同士が非類似と判定するように定められている類似性判定特性線図を有している。具体的には、判定部24は、撮影間隔算出部23が算出した撮影間隔TABが所定時間T1以下のときは第1の画像と第2の画像、たとえば入力画像Aと入力画像Bとが類似と判定し、撮影間隔TABが所定時間T2以上のときは第1の画像と第2の画像とが非類似と判定する。したがって、本発明の第2の実施の形態によるデジタルカメラ1は、第1の画像と第2の画像とが類似しているか否かを撮影日時も加味して判定して分類する際の処理時間を第1の実施の形態よりも短くすることができる。
According to the second embodiment described above, the following operational effects can be obtained.
(1) As shown in FIG. 7, the determination unit 24 of the digital camera 1 which is an electronic apparatus according to the second embodiment of the present invention has a first shooting interval regardless of the magnitude of the calculated evaluation value. The similarity determination characteristic diagram is determined so that images are similar when the value is equal to or less than the predetermined value, and images are determined to be dissimilar when the value is equal to or greater than the second predetermined value (> first predetermined value). have. Specifically, the determination unit 24 determines that the first image and the second image, for example, the input image A and the input image B, when the shooting interval T AB calculated by the shooting interval calculation unit 23 is equal to or shorter than a predetermined time T1. It is determined that they are similar, and when the shooting interval T AB is equal to or longer than the predetermined time T2, it is determined that the first image and the second image are dissimilar. Therefore, in the digital camera 1 according to the second embodiment of the present invention, the processing time for determining and classifying whether or not the first image and the second image are similar in consideration of the shooting date and time is also included. Can be made shorter than in the first embodiment.

(第3の実施の形態)
本発明の第3の実施の形態による電子機器について説明する。第3の実施の形態による電子機器は、図1に示す構成を有するデジタルカメラ1である点は第1の実施の形態と同様である。第3の実施の形態では、閾値設定部25が撮影間隔TABに基づいて、二つの閾値、第1閾値Eと第2閾値Eとを設定し、判定部24がそれらの第1閾値Eと第2閾値Eとを用いて入力画像Aと入力画像Bとが類似しているか否かを判定する点が第1の実施の形態と異なっている。
(Third embodiment)
An electronic apparatus according to the third embodiment of the present invention will be described. The electronic device according to the third embodiment is the same as the first embodiment in that it is a digital camera 1 having the configuration shown in FIG. In the third embodiment, the threshold setting unit 25 sets two thresholds, the first threshold E 1 and the second threshold E 2 based on the imaging interval T AB , and the determination unit 24 sets the first threshold. E 1 and the point where the input image a using a second threshold value E 2 and the input image B to determine whether similar differs from the first embodiment.

図9は、第3の実施の形態における類似性判定線図を示す。この類似性判定線図では、閾値設定部25が設定する第1閾値Eを表す第1境界線80と第2閾値Eを表す第2境界線81とが示されている。図9に示す類似性判定特性線図は、第1境界線80と第2境界線81とにより、類似領域と、非類似領域と、入力画像Aと入力画像Bとが類似しているか否かの判定を保留するグレー領域とに分割されている。 FIG. 9 shows a similarity determination diagram in the third embodiment. This similarity determination diagrams are shown and the second boundary line 81 representing the first boundary line 80 and the second threshold value E 2 representing the first threshold value E 1 of the threshold setting unit 25 sets the. In the similarity determination characteristic diagram shown in FIG. 9, whether or not the similar region, the dissimilar region, the input image A, and the input image B are similar by the first boundary line 80 and the second boundary line 81 is determined. It is divided into a gray area for which the determination is suspended.

判定部24は、評価値EABが第1閾値E以上の場合、入力画像Aと入力画像Bとが類似していると判定し、評価値EABが第2閾値E以下の場合、入力画像Aと入力画像Bとが非類似であると判定し、評価値EABが第2閾値Eより大きく第1閾値E未満の場合、入力画像Aと入力画像Bとが類似か否かの判定を保留する。 Determining unit 24, when the evaluation value E AB is the first threshold value E 1 or more, it is determined that the input image A and the input image B are similar, if the evaluation value E AB is the second threshold value E 2 or less, When it is determined that the input image A and the input image B are dissimilar and the evaluation value E AB is greater than the second threshold E 2 and less than the first threshold E 1, whether or not the input image A and the input image B are similar This decision is suspended.

上述した第3の実施の形態によれば、次の作用効果が得られる。
(1) 本発明の第3の実施の形態による電子機器であるデジタルカメラ1の判定部24は、図9に示すように、撮影間隔に対する評価閾値で定義された第1の特性、および撮影間隔に対する評価閾値で定義された第2の特性を備えている。具体的には、閾値設定部25が撮影間隔TABに基づいて、第1閾値Eと第2閾値Eとを設定し、判定部24がそれらの第1閾値Eと第2閾値Eとを用いて入力画像Aと入力画像Bとが類似しているか否かを判定する。すなわち、類似性判定部24は、第1の画像と第2の画像の特徴量により算出され評価値が、第1の特性である境界線80に基づき算出された評価閾値E以上のとき、第1の画像と第2の画像が類似していると判定する。第1の画像と第2の画像の特徴量により算出され評価値が、第2の特性である境界線81に基づき算出された評価閾値E以下のとき、第1の画像と第2の画像が類似していないと判定する。第1の画像と第2の画像の特徴量により算出され評価値が、評価閾値E未満であり、かつ、第2の特性に基づき算出された評価閾値Eより大きいとき、類似/非類似の判定結果を出力しない。
したがって、本発明の第3の実施の形態による電子機器であるデジタルカメラ1は、境界線80と81で決定された2つの閾値との間に分類されるような類似性がどっちつかずの画像に対する類似性判定は保留することにより、従来の電子機器よりも画像が類似しているか否かの判定精度をさらに向上させることができる。
According to the third embodiment described above, the following operational effects can be obtained.
(1) The determination unit 24 of the digital camera 1 which is an electronic apparatus according to the third embodiment of the present invention, as shown in FIG. 9, the first characteristic defined by the evaluation threshold for the shooting interval, and the shooting interval The second characteristic defined by the evaluation threshold value for is provided. Specifically, the threshold setting unit 25 sets the first threshold E 1 and the second threshold E 2 based on the shooting interval T AB , and the determination unit 24 sets the first threshold E 1 and the second threshold E. 2 is used to determine whether the input image A and the input image B are similar. That is, the similarity determination unit 24 calculates the evaluation value calculated based on the feature amounts of the first image and the second image when the evaluation value is equal to or higher than the evaluation threshold E 1 calculated based on the boundary line 80 that is the first characteristic. It is determined that the first image and the second image are similar. The first image and the evaluation value calculated by the characteristic amount of the second image, when the evaluation threshold E 2 less calculated based on the boundary line 81 is a second characteristic, the first and second images Are determined not to be similar. The first image and the evaluation value calculated by the characteristic amount of the second image is less than rated threshold E 1, and when the calculated larger evaluation threshold E 2 based on the second characteristic, similar / dissimilar The judgment result is not output.
Therefore, the digital camera 1 which is the electronic apparatus according to the third embodiment of the present invention has an image with no similarity that is classified between the two threshold values determined by the boundary lines 80 and 81. By suspending the similarity determination for, it is possible to further improve the determination accuracy of whether or not the image is similar to the conventional electronic device.

たとえば、連写により得られた3枚の画像D1,D2,D3について説明すると以下のとおりである。連写による画像D1とD2との間の類似度を示す評価値E12と、連写による画像D2とD3との間の類似度を示す評価値E23とは、ほぼ同様の値を示すことが多い。しかし、第1の実施の形態のように一つの境界線40による類似/非類似を判定する場合、画像D1とD2は類似、画像D2とD3は非類似と判定される虞れがある。第3の実施の形態は、連写で得られた複数の画像がこのように類似と非類似に分類される不合理性を解消することができる。   For example, three images D1, D2, and D3 obtained by continuous shooting will be described as follows. The evaluation value E12 indicating the similarity between the images D1 and D2 by continuous shooting and the evaluation value E23 indicating the similarity between the images D2 and D3 by continuous shooting often show substantially the same value. . However, when the similarity / dissimilarity by one boundary line 40 is determined as in the first embodiment, there is a possibility that the images D1 and D2 are determined to be similar and the images D2 and D3 are determined to be dissimilar. The third embodiment can eliminate the absurdity that a plurality of images obtained by continuous shooting are thus classified as similar and dissimilar.

(第4の実施の形態)
本発明の第4の実施の形態による電子機器について説明する。第4の実施の形態による電子機器は、図1に示す構成を有するデジタルカメラ1である点は第1の実施の形態と同様である。第4の実施の形態では、判定部24は、第2の実施の形態と同様に、撮影間隔TABが所定時間T1以下の場合は評価値に関わらず入力画像Aと入力画像Bとが類似していると判定し、撮影間隔が所定時間T2以上の場合は評価値に関わらず入力画像Aと入力画像Bとが非類似であると判定する。また、判定部24は、撮影間隔が所定時間T1より大きく所定時間T2未満の場合は、第3の実施の形態と同様に、評価値EABが第1閾値E以上のときは入力画像Aと入力画像Bとが類似していると判定し、評価値EABが第2閾値E以下のときは入力画像Aと入力画像Bとが非類似であると判定し、評価値EABが第2閾値Eより大きく第1閾値E未満のときは入力画像Aと入力画像Bが類似しているか否かの判定を保留する。
(Fourth embodiment)
An electronic apparatus according to the fourth embodiment of the present invention will be described. The electronic device according to the fourth embodiment is the same as the first embodiment in that it is a digital camera 1 having the configuration shown in FIG. In the fourth embodiment, as in the second embodiment, the determination unit 24 is similar to the input image A and the input image B regardless of the evaluation value when the shooting interval T AB is equal to or shorter than the predetermined time T1. If the shooting interval is equal to or longer than the predetermined time T2, it is determined that the input image A and the input image B are dissimilar regardless of the evaluation value. The determination unit 24, when the object distance is greater than the predetermined time period T2 than the predetermined time T1, as in the third embodiment, when the evaluation value E AB is E 1 or more first threshold input image A an input image B is determined to be similar to the evaluation value E AB is when the second threshold value E 2 or less is determined that the input image a and the input image B to be dissimilar, the evaluation value E AB is the second threshold value E 2 when greater than the first less than the threshold value E 1 is the input image B and the input image a to hold determines whether similar.

第4の実施の形態における類似性判定特性線図の一例を図10に示す。図10では、撮影間隔TABが所定時間T1以下の領域と、第1の閾値に関する第1境界線90以上の領域とが類似領域であり、撮影間隔TABが所定時間T2以上の領域と、第2の閾値に関する第2境界線91以下の領域が非類似領域であり、第1境界線90と第2境界線91とに挟まれる領域がグレー領域である。 An example of the similarity determination characteristic diagram in the fourth embodiment is shown in FIG. In FIG. 10, the region where the shooting interval T AB is equal to or less than the predetermined time T1 and the region where the first threshold line 90 or more related to the first threshold is a similar region, and the region where the shooting interval T AB is equal to or longer than the predetermined time T2; The area below the second boundary line 91 related to the second threshold is a dissimilar area, and the area sandwiched between the first boundary line 90 and the second boundary line 91 is a gray area.

図11は、図10の類似性判定特性線図に準拠した類似判定を行う類似性判定部18に関するフローチャートである。図11に示す動作のうち、図4や図8と同様の動作については、図4や図8と同一のステップ番号を付し、その説明を省略する。図11に示すフローチャートは、ステップS303がステップS1000に置換され、ステップS304がステップS1001とステップS1002とに置換されている点が図8と異なる。   FIG. 11 is a flowchart regarding the similarity determination unit 18 that performs similarity determination based on the similarity determination characteristic diagram of FIG. Among the operations shown in FIG. 11, the same operations as those in FIG. 4 and FIG. 8 are denoted by the same step numbers as those in FIG. 4 and FIG. The flowchart shown in FIG. 11 is different from FIG. 8 in that step S303 is replaced with step S1000, and step S304 is replaced with step S1001 and step S1002.

ステップS1000では、CPU12は、閾値設定部25を用いて、ステップS300で算出された撮影間隔TABに基づいて、第1閾値Eと第2閾値Eとを設定する。 In step S1000, CPU 12 uses the threshold setting unit 25, based on the photographing interval T AB calculated in step S300, the set first threshold value E 1 and the second threshold value E 2.

ステップS1001では、CPU12は、判定部24を用いて、ステップS302で算出された評価値EABがステップS1000で算出された第1閾値E以上か否かを判定する。CPU12は、評価値EABが第1閾値E以上の場合、ステップS1001を肯定判定して、ステップS305の処理に進み、評価値EABが第1閾値E未満の場合、ステップS1001を否定判定して、ステップS1002の処理に進む。 In step S1001, CPU 12 determines using the determination unit 24, evaluation value E AB calculated in step S302 as to whether or not the first threshold value E 1 or more, which is calculated in step S1000. CPU12, when the evaluation value E AB is the first threshold value E 1 or more, an affirmative decision in step S1001, the process proceeds to the step S305, when the evaluation value E AB is first less than the threshold value E 1, a negative step S1001 Determination is made and the process proceeds to step S1002.

ステップS1002では、CPU12は、判定部24を用いて、ステップS302で算出された評価値EABがステップS1000で算出された第2閾値E以下か否かを判定する。CPU12は、評価値EABが第2閾値E以下の場合、ステップS1002を肯定判定して、ステップS306の処理に進み、評価値EABが第2閾値Eより大きいの場合、ステップS1002を否定判定して、図11の処理を終了する。 In step S1002, CPU 12 determines using the determination unit 24, evaluation value E AB calculated in step S302 is whether the second threshold value E 2 or less calculated in step S1000. CPU12, when the evaluation value E AB is the second threshold value E 2 or less, an affirmative decision in step S1002, the process proceeds to the step S306, when the evaluation value E AB is the second larger threshold value E 2, the step S1002 A negative determination is made, and the processing of FIG. 11 ends.

上述した第4の実施の形態によれば、次の作用効果が得られる。
(1) 本発明の第4の実施の形態による電子機器であるデジタルカメラ1は、撮影間隔算出部23が算出した撮影間隔TABが所定時間T1以下のときは第1の画像と第2の画像、たとえば入力画像Aと入力画像Bとが類似と判定し、撮影間隔TABが所定時間T2以上のときは第1の画像と第2の画像とが非類似と判定する。したがって、本発明の第4の実施の形態によるデジタルカメラ1は、第3の実施の形態と同様の作用効果を奏するとともに、入力画像Aと入力画像Bとが類似しているか否かを第3の実施の形態よりも高速に判定することができる。
According to the fourth embodiment described above, the following operational effects can be obtained.
(1) In the digital camera 1 which is an electronic device according to the fourth embodiment of the present invention, when the shooting interval T AB calculated by the shooting interval calculation unit 23 is equal to or shorter than the predetermined time T1, the first image and the second image It is determined that the image, for example, the input image A and the input image B are similar, and the first image and the second image are determined to be dissimilar when the shooting interval T AB is equal to or longer than the predetermined time T2. Therefore, the digital camera 1 according to the fourth embodiment of the present invention achieves the same operational effects as the third embodiment and determines whether the input image A and the input image B are similar to each other. The determination can be made faster than in the embodiment.

次のような変形も本発明の範囲内であり、変形例の一つ、もしくは複数を上述の実施形態と組み合わせることも可能である。
(変形例1)
図10に示した第1境界線90と第2境界線91は、直線でなくてもよい。たとえば、図12に例示する第1境界線90aと第2境界線91aのように、曲線であってもよく、任意の関数で表される線であってもよい。撮影間隔TABが所定時間T1またはその近傍にある場合には、撮影間隔TABが所定時間T2またはその近傍にある場合よりも入力画像Aと入力画像Bとが類似している確率が高いため、所定時間T1の近傍における第1境界線90aの撮影間隔の軸に対する傾きを所定時間T2の近傍よりも緩やか(平坦)にして、類似していると判定され易くしている。撮影間隔TABが所定時間T2またはその近傍にある場合には、撮影間隔TABが所定時間T1またはその近傍にある場合よりも入力画像Aと入力画像Bとが非類似である確率が高いため、所定時間T2の近傍における第2境界線90bの撮影間隔の軸に対する傾きを所定時間T1の近傍よりも緩やか(平坦)にして、非類似と判定され易くしている。
なお、図3に示した境界線40、図7に示した境界線60、図9に示した第1境界線90と第2境界線91についても同様に任意の関数で表される線であってもよい。
また、関数を使用せず、ルックアップテーブルの形式で類似性判定線図を定義してもよい。
The following modifications are also within the scope of the present invention, and one or a plurality of modifications can be combined with the above-described embodiment.
(Modification 1)
The first boundary line 90 and the second boundary line 91 shown in FIG. 10 may not be straight lines. For example, it may be a curved line such as a first boundary line 90a and a second boundary line 91a illustrated in FIG. 12, or may be a line represented by an arbitrary function. When the shooting interval T AB is at or near the predetermined time T1, the probability that the input image A and the input image B are similar is higher than when the shooting interval T AB is at or near the predetermined time T2. The inclination of the first boundary line 90a with respect to the shooting interval axis in the vicinity of the predetermined time T1 is made gentler (flat) than that in the vicinity of the predetermined time T2, so that it is easy to determine that they are similar. When the shooting interval T AB is at or near the predetermined time T2, there is a higher probability that the input image A and the input image B are dissimilar than when the shooting interval T AB is at or near the predetermined time T1. The inclination of the second boundary line 90b in the vicinity of the predetermined time T2 with respect to the shooting interval axis is made gentler (flat) than that in the vicinity of the predetermined time T1, thereby making it easier to determine that the dissimilarity is not obtained.
Note that the boundary line 40 shown in FIG. 3, the boundary line 60 shown in FIG. 7, and the first boundary line 90 and the second boundary line 91 shown in FIG. 9 are similarly expressed by arbitrary functions. May be.
Further, the similarity determination diagram may be defined in the form of a lookup table without using a function.

(変形例2)
上記の実施の形態では、閾値設定部25は、撮影間隔TABに基づいて、閾値Ethを設定することとしたが、他の方法で設定することにしてもよい。たとえば、図3に示した境界線40、図7に示した境界線60の両端の類似性判定特性線図上の位置をユーザに手動入力させることにしてもよい。
(Modification 2)
In the above embodiment, the threshold setting unit 25 sets the threshold Eth based on the shooting interval TAB. However, the threshold setting unit 25 may set the threshold Eth using another method. For example, the user may manually input the positions on the similarity determination characteristic diagram at both ends of the boundary line 40 shown in FIG. 3 and the boundary line 60 shown in FIG.

(変形例3)
画像データが生成されるたびにその撮影日時を記憶部13に記録して、過去10件分の撮影間隔の平均値を算出し、その平均撮影間隔に基づいて第1閾値Eおよび第2閾値Eを設定することにしてもよい。たとえば、連続撮影が行われた後のように、平均撮影間隔が所定時間T1よりも短くなっている場合は、さらに連続撮影を行う可能性が高いと判断して、第1閾値Eの値を下げる補正を行うことにしてもよい。また、平均撮影間隔が所定時間、たとえば1日よりも長くなっている場合は、第2閾値Eの値を上げる補正を行うことにしてもよい。
(Modification 3)
And record the shooting date and time each time the image data is generated in the storage unit 13, calculates the average value of the interval of imaging last 10 minutes, the first threshold value E 1 and the second threshold value E on the basis of the average photographing interval 2 may be set. For example, as in the after continuous shooting is performed, if the average photographing interval is shorter than the predetermined time T1, it is determined that more likely to perform continuous shooting first threshold value E 1 value You may decide to perform correction which lowers. The average photographing interval of the predetermined time, if longer than 1 day for example, may be possible to correct to increase the second threshold value E 2.

(変形例4)
次のようにして閾値Ethを設定することにしてもよい。電子機器には、ユーザの識別情報と、ユーザが指定したデジタルカメラ1の設定に関する情報と、ユーザが指定した閾値Ethとを含むユーザ情報が予め記憶部13に記憶されているものとする。ここで、デジタルカメラ1の設定に関する情報とは、AFモード、シーンモード、レンズ情報、露光時間などである。CPU12は、画像データの生成時点のデジタルカメラ1の設定に関する情報を取得し、履歴情報として記憶部13に記録する。CPU12は、画像データが類似しているか否かを判定するとき、画像データの撮影日時から所定時間前までの履歴情報の中で最頻のデジタルカメラ1の設定を検索する。そして、最頻のデジタルカメラ1の設定に関する情報に基づいてユーザ情報のデータベースを検索して、閾値Ethを検索されたユーザ情報に含まれる閾値Ethの値に設定する。このようにすることで、ユーザの個性に適合した類似判定を行うことができる。
(Modification 4)
The threshold value Eth may be set as follows. It is assumed that user information including user identification information, information on settings of the digital camera 1 specified by the user, and a threshold value Eth specified by the user is stored in the storage unit 13 in advance in the electronic device. Here, the information regarding the setting of the digital camera 1 includes an AF mode, a scene mode, lens information, an exposure time, and the like. The CPU 12 acquires information related to the settings of the digital camera 1 at the time of image data generation and records the information in the storage unit 13 as history information. When determining whether or not the image data is similar, the CPU 12 searches for the most frequent setting of the digital camera 1 in the history information from the shooting date and time of the image data to a predetermined time before. Then, the user information database is searched based on the information relating to the setting of the most frequent digital camera 1, and the threshold value Eth is set to the value of the threshold value Eth included in the searched user information. By doing in this way, the similarity determination adapted to the user's individuality can be performed.

(変形例5)
画像分類部が画像をグループに分類する方法は、図5に示す方法だけに限定されない。たとえば、図13に示すような手順でグループに分類することにしてもよい。分類対象のn個の画像データの中から1個の画像データを選択し、選択した画像データと他の画像データとが類似しているか否かを判定し、類似していると判定された画像データを選択した画像データと同一のグループに分類する。たとえば、画像データIMG[1]を選択し、IMG[1]に対してIMG[2]とIMG[3]とIMG[4]とがそれぞれ類似しているかを判定する。そして、判定の結果、IMG[1]とIMG[2]とが類似と判定され、IMG[1]とIMG[3]とが非類似、IMG[1]とIMG[4]とが類似と判定された場合、CPU12は、IMG[2]とIMG[4]をIMG[1]と同一のグループに分類する。そして、CPU12は、IMG[3]だけのグループを生成して、画像の分類を終了する。このようにすることで、時間的に離れた二つの画像データ同士であっても類似判定を行うことができ、類似性ある画像をグルーピングする精度を向上させることができる。
(Modification 5)
The method of classifying images into groups by the image classification unit is not limited to the method shown in FIG. For example, classification into groups may be performed according to the procedure shown in FIG. One image data is selected from n image data to be classified, and it is determined whether or not the selected image data is similar to other image data, and the image determined to be similar Classify the data into the same group as the selected image data. For example, image data IMG [1] is selected, and it is determined whether IMG [2], IMG [3], and IMG [4] are similar to IMG [1]. As a result of the determination, it is determined that IMG [1] and IMG [2] are similar, IMG [1] and IMG [3] are dissimilar, and IMG [1] and IMG [4] are similar. If so, the CPU 12 classifies IMG [2] and IMG [4] into the same group as IMG [1]. Then, the CPU 12 generates a group of only IMG [3] and ends the image classification. By doing in this way, similarity determination can be performed even for two image data that are separated in time, and the accuracy of grouping similar images can be improved.

(変形例6)
上記の実施の形態では、評価値EABは、画像特徴量が類似しているほど高くなるものとして説明したが、画像特徴量が類似しているほど低くなるような特徴量の算出方法を用いてもよい。たとえば、特徴量ベクトルV,Vのコサイン類似度を、そのコサイン類似度の最大値から減じた値を評価値EABとして算出することにしてもよい。第1の実施の形態において、画像特徴量が類似しているほど低くなるような特徴量を用いた場合は、図3の境界線40が右肩下がりになるように閾値Ethの値を変更することが好ましい。
(Modification 6)
In the above-described embodiment, the evaluation value E AB is described as being higher as the image feature amount is similar. However, a feature amount calculation method is used such that the evaluation value E AB is lower as the image feature amount is similar. May be. For example, a value obtained by subtracting the cosine similarity of the feature amount vectors V A and V B from the maximum value of the cosine similarity may be calculated as the evaluation value E AB . In the first embodiment, when a feature amount that decreases as the image feature amount is similar is used, the threshold value Eth is changed so that the boundary line 40 in FIG. It is preferable to do.

(変形例7)
上述の説明では、本発明をデジタルカメラ1に適用する場合について説明したが、本発明は、画像分類プログラム16を実行可能なコンピュータを備える電子機器であれば、デジタルカメラ1以外の電子機器、たとえばスマートフォン、パーソナルコンピュータなどにも適用することができる。
(Modification 7)
In the above description, the case where the present invention is applied to the digital camera 1 has been described. However, the present invention is not limited to an electronic device including a computer that can execute the image classification program 16. It can also be applied to smartphones, personal computers, and the like.

(変形例8)
上記実施の形態では、画像分類プログラム16が予め記憶部13に格納されている例を説明した。これらのプログラムは、CD−ROMやDVDやUSBメモリなどの種々の記録媒体やインターネットなどのデータ信号を通じてコンピュータに提供することができる。図14はその様子を示す図である。コンピュータ1100は、例えばCD−ROM1101を介してプログラムの提供を受ける。また、コンピュータ1100は通信回線1102との接続機能を有する。サーバコンピュータ1103は上記プログラムを提供するコンピュータであり、ハードディスク1104などの記録媒体にプログラムを格納する。通信回線1102は、インターネットなどの通信回線、あるいは専用通信回線などである。サーバコンピュータ1103はハードディスク1104を使用してプログラムを読み出し、通信回線1102を介してプログラムをコンピュータ1100に送信する。すなわち、プログラムをデータ信号として搬送波にのせて(embody)して、通信回線1102を介して送信する。このように、プログラムは、記録媒体やデータ信号などの種々の形態のコンピュータ読み込み可能なコンピュータプログラム製品として供給できる。
(Modification 8)
In the above embodiment, the example in which the image classification program 16 is stored in the storage unit 13 in advance has been described. These programs can be provided to the computer through various recording media such as CD-ROM, DVD, USB memory, and data signals such as the Internet. FIG. 14 shows the state. The computer 1100 is provided with a program via, for example, a CD-ROM 1101. The computer 1100 has a connection function with the communication line 1102. A server computer 1103 is a computer that provides the program, and stores the program in a recording medium such as a hard disk 1104. The communication line 1102 is a communication line such as the Internet or a dedicated communication line. The server computer 1103 reads the program using the hard disk 1104 and transmits the program to the computer 1100 via the communication line 1102. That is, the program is transmitted as a data signal on a carrier wave and transmitted via the communication line 1102. Thus, the program can be supplied as a computer-readable computer program product in various forms such as a recording medium and a data signal.

このような類似性判定プログラムは、撮影間隔も加味した画像間の類似度を判定する。すなわち、複数の画像をそれぞれの撮影日時の情報と共に取得する画像取得手順と、画像取得手順により取得された複数の画像の特徴量をそれぞれ算出する特徴量算出手順と、特徴量算出手順により算出された少なくとも2つの類似性判定対象画像のそれぞれの特徴量により画像間の類似度を表す評価値を算出する評価値算出手順と、少なくとも2つの類似性判定対象画像のそれぞれの撮影日時の間の撮影間隔を算出する撮影間隔算出手順と、撮影間隔と評価閾値とで定義された特性であって、撮影間隔が長いほど画像が類似していると判定されにくくした類似性判定特性を用いて、少なくとも2つの類似性判定対象画像間の類似性を判定する類似性判定手順と、異なる画像間について繰り返し行われた類似性判定の複数の結果に基づいて、複数の画像を分類する分類手順とをコンピュータに実行させる。   Such a similarity determination program determines the similarity between images in consideration of the shooting interval. That is, it is calculated by an image acquisition procedure for acquiring a plurality of images together with information on each shooting date, a feature amount calculation procedure for calculating a feature amount of each of the plurality of images acquired by the image acquisition procedure, and a feature amount calculation procedure. An evaluation value calculation procedure for calculating an evaluation value representing the similarity between images based on the respective feature amounts of at least two similarity determination target images, and a shooting interval between the respective shooting dates and times of the at least two similarity determination target images Using the similarity determination characteristic that is defined by the shooting interval calculation procedure for calculating the image, and the shooting interval and the evaluation threshold value, and the longer the shooting interval, the harder it is determined that the images are similar. Based on a similarity determination procedure for determining similarity between two similarity determination target images and a plurality of results of similarity determination repeatedly performed between different images, To perform a classification procedure to classify the image number into the computer.

(変形例9)
上記の実施の形態による電子機器では、類似性判定部18の判定結果に基づいて、画像分類部17が複数の画像データをグループ分けすることにした。しかし、類似性判定部18の判定結果に基づいて複数の画像データのグループ分け以外の処理を行う場合であっても、類似性判定部18の判定の精度が向上する点については変わりがない。すなわち、本発明は、類似性判定部18の判定結果に基づいて複数の画像データのグループ分け以外の処理を行う場合にも適用することができる。上記変形例8における類似性判定用プログラムについても同様である。
(Modification 9)
In the electronic device according to the above-described embodiment, the image classification unit 17 groups a plurality of image data based on the determination result of the similarity determination unit 18. However, even when processing other than grouping of a plurality of image data is performed based on the determination result of the similarity determination unit 18, the accuracy of determination by the similarity determination unit 18 is not changed. That is, the present invention can also be applied to a case where processing other than grouping of a plurality of image data is performed based on the determination result of the similarity determination unit 18. The same applies to the similarity determination program in Modification 8.

上記では、種々の実施の形態および変形例を説明したが、本発明はこれらの内容に限定されるものではない。本発明の技術的思想の範囲内で考えられるその他の態様も本発明の範囲内に含まれる。
したがって、一対の画像間の類似/非類似判定に代えて、たとえば複数枚で構成される一対の画像群の間での類似/非類似判定を行う電子機器も本発明の権利範囲である。
Although various embodiments and modifications have been described above, the present invention is not limited to these contents. Other embodiments conceivable within the scope of the technical idea of the present invention are also included in the scope of the present invention.
Therefore, instead of the similarity / dissimilarity determination between a pair of images, for example, an electronic device that performs a similarity / dissimilarity determination between a pair of image groups constituted by a plurality of images is also within the scope of the present invention.

1 デジタルカメラ
10 撮像部
11 画像処理部
12 CPU
13 記憶部
16 画像分類プログラム
17 画像分類部
18 類似性判定部
20 画像取得部
21 特徴量算出部
22 評価値算出部
23 撮影間隔算出部
24 判定部
25 閾値設定部
1 Digital Camera 10 Imaging Unit 11 Image Processing Unit 12 CPU
DESCRIPTION OF SYMBOLS 13 Memory | storage part 16 Image classification program 17 Image classification part 18 Similarity determination part 20 Image acquisition part 21 Feature-value calculation part 22 Evaluation value calculation part 23 Shooting interval calculation part 24 Determination part 25 Threshold setting part

Claims (10)

複数の画像をそれぞれの撮影日時の情報と共に取得する画像取得部と、
前記画像取得部により取得された複数の画像の特徴量をそれぞれ算出する特徴量算出部と、
前記特徴量算出部により算出された少なくとも2つの類似性判定対象画像のそれぞれの特徴量により画像間の類似度を表す評価値を算出する評価値算出部と、
前記少なくとも2つの類似性判定対象画像のそれぞれの撮影日時の間の撮影間隔を算出する撮影間隔算出部と、
撮影間隔と評価閾値とで定義された特性であって、前記撮影間隔が長いほど画像が類似していると判定されにくくした類似性判定特性を用いて、前記少なくとも2つの類似性判定対象画像間の類似性を判定する類似性判定部と、
を備える電子機器。
An image acquisition unit for acquiring a plurality of images together with information of each shooting date and time;
A feature amount calculation unit for calculating feature amounts of a plurality of images acquired by the image acquisition unit;
An evaluation value calculation unit that calculates an evaluation value that represents the degree of similarity between images based on the respective feature amounts of the at least two similarity determination target images calculated by the feature amount calculation unit;
A shooting interval calculation unit that calculates a shooting interval between the respective shooting dates and times of the at least two similarity determination target images;
A characteristic defined by a shooting interval and an evaluation threshold, and using a similarity determination characteristic that makes it difficult to determine that images are more similar as the shooting interval is longer, between the at least two similarity determination target images A similarity determination unit for determining the similarity of
Electronic equipment comprising.
請求項1に記載の電子機器において、
前記類似性判定部により異なる画像間について繰り返し行われた類似性判定の複数の結果に基づいて、複数の画像を分類する分類部をさらに備える電子機器。
The electronic device according to claim 1,
An electronic apparatus further comprising a classification unit that classifies a plurality of images based on a plurality of results of similarity determination repeatedly performed between different images by the similarity determination unit.
請求項1または請求項2に記載の電子機器において、
前記類似性判定部は、前記算出された撮影間隔について前記類似性判定特性を用いて算出された評価閾値と、前記少なくとも2つの画像の特徴量により算出された前記評価値とに基づいて、前記少なくとも2つの類似性判定対象画像間の類似性を判定する電子機器。
The electronic device according to claim 1 or 2,
The similarity determination unit, based on the evaluation threshold calculated using the similarity determination characteristic for the calculated shooting interval and the evaluation value calculated by the feature amount of the at least two images, An electronic device that determines similarity between at least two similarity determination target images.
請求項1乃至3のいずれか1項に記載の電子機器において、
前記類似性判定特性は、撮影間隔に対する評価閾値として定義された一つの特性であり、
前記類似性判定部は、前記少なくとも2つの類似性判定対象画像の特徴量により算出された前記評価値が、前記一つの特性により算出された前記評価閾値以上のとき、前記少なくとも2つの類似性判定対象画像が類似していると判定する電子機器。
The electronic device according to any one of claims 1 to 3,
The similarity determination characteristic is one characteristic defined as an evaluation threshold for an imaging interval,
The similarity determination unit is configured to determine the at least two similarity determinations when the evaluation value calculated based on the feature amount of the at least two similarity determination target images is equal to or greater than the evaluation threshold calculated based on the one characteristic. An electronic device that determines that the target images are similar.
請求項1乃至3のいずれか1項に記載の電子機器において、
前記類似性判定特性は、撮影間隔に対する評価閾値で定義された第1の特性、および撮影間隔に対する評価閾値で定義された第2の特性であり、
前記類似性判定部は、
前記少なくとも2つの類似性判定対象画像の特徴量により算出された前記評価値が、前記第1の特性に基づき算出された評価閾値以上のとき、前記少なくとも2つの類似性判定対象画像が類似していると判定し、
前記少なくとも2つの類似性判定対象画像の特徴量により算出された前記評価値が、前記第2の特性に基づき算出された評価閾値以下のとき、前記少なくとも2つの類似性判定対象画像が類似していないと判定し、
前記少なくとも2つの類似性判定対象画像の特徴量により算出された前記評価値が、前記第1の特性に基づき算出された評価閾値未満であり、かつ、前記第2の特性に基づき算出された評価閾値より大きいとき、類似/非類似の判定結果は出力しない電子機器。
The electronic device according to any one of claims 1 to 3,
The similarity determination characteristic is a first characteristic defined by an evaluation threshold for an imaging interval, and a second characteristic defined by an evaluation threshold for an imaging interval,
The similarity determination unit
When the evaluation value calculated based on the feature amount of the at least two similarity determination target images is equal to or greater than the evaluation threshold calculated based on the first characteristic, the at least two similarity determination target images are similar to each other. It is determined that
When the evaluation value calculated based on the feature amount of the at least two similarity determination target images is equal to or less than the evaluation threshold calculated based on the second characteristic, the at least two similarity determination target images are similar. It is determined that
The evaluation value calculated from the feature amount of the at least two similarity determination target images is less than the evaluation threshold calculated based on the first characteristic, and the evaluation calculated based on the second characteristic An electronic device that does not output similar / dissimilar judgment results when the threshold value is exceeded.
請求項1乃至5のいずれか1項に記載の電子機器において、
前記類似性判定特性は、前記撮影間隔の関数として前記評価閾値が定義されている特性である電子機器。
The electronic device according to any one of claims 1 to 5,
The similarity determination characteristic is an electronic apparatus in which the evaluation threshold is defined as a function of the photographing interval.
請求項1乃至6のいずれか1項に記載の電子機器において、
前記類似性判定特性は、前記算出された評価値の大きさに無関係に、前記撮影間隔が第1の所定値以下の場合は画像同士が類似し、前記撮影間隔が第1の所定値よりも長い第2の所定値以上の場合は画像同士が非類似と判定するように定められている特性である電子機器。
The electronic device according to any one of claims 1 to 6,
Regardless of the magnitude of the calculated evaluation value, the similarity determination characteristic is that images are similar when the shooting interval is equal to or less than a first predetermined value, and the shooting interval is less than the first predetermined value. An electronic device having characteristics determined to determine that images are dissimilar if they are longer than a second predetermined value.
請求項7に記載の電子機器において、
前記第1の特性は類似性判定に供する特性であり、前記撮影間隔が前記第2の所定値またはその近傍にあるときより、前記第1の所定値またはその近傍にあるときの方が画像同士が類似していると判定されやすくした特性であり、
前記第2の特性は非類似性判定に供する特性であり、前記撮影間隔が前記第1の所定値またはその近傍にあるときより、前記第2の所定値またはその近傍にあるときの方が画像同士が非類似であると判定されやすくした特性である電子機器。
The electronic device according to claim 7,
The first characteristic is a characteristic used for similarity determination, and when the shooting interval is at or near the second predetermined value, the images are more similar to each other. Is a characteristic that makes it easier to determine that
The second characteristic is a characteristic used for determining dissimilarity, and the image is captured when the photographing interval is at or near the second predetermined value than when the photographing interval is at or near the first predetermined value. An electronic device having characteristics that make it easier to determine that they are dissimilar to each other.
複数の画像をそれぞれの撮影日時の情報と共に取得する画像取得手順と、
前記画像取得手順により取得された複数の画像の特徴量をそれぞれ算出する特徴量算出手順と、
前記特徴量算出手順により算出された少なくとも2つの類似性判定対象画像のそれぞれの特徴量により画像間の類似度を表す評価値を算出する評価値算出手順と、
前記少なくとも2つの類似性判定対象画像のそれぞれの撮影日時の間の撮影間隔を算出する撮影間隔算出手順と、
撮影間隔と評価閾値とで定義された特性であって、前記撮影間隔が長いほど画像が類似していると判定されにくくした類似性判定特性を用いて、前記少なくとも2つの類似性判定対象画像間の類似性を判定する類似性判定手順と、をコンピュータに実行させる類似性判定用プログラム。
An image acquisition procedure for acquiring a plurality of images together with information on each shooting date and time,
A feature amount calculation procedure for calculating feature amounts of a plurality of images acquired by the image acquisition procedure;
An evaluation value calculation procedure for calculating an evaluation value representing the degree of similarity between images based on the respective feature amounts of at least two similarity determination target images calculated by the feature amount calculation procedure;
A shooting interval calculation procedure for calculating a shooting interval between the respective shooting dates and times of the at least two similarity determination target images;
A characteristic defined by a shooting interval and an evaluation threshold, and using a similarity determination characteristic that makes it difficult to determine that images are more similar as the shooting interval is longer, between the at least two similarity determination target images A similarity determination program for causing a computer to execute a similarity determination procedure for determining the similarity of
請求項9に記載の類似性判定用プログラムにおいて、
前記類似性判定手順により異なる画像間について繰り返し行われた類似性判定の複数の結果に基づいて、複数の画像を分類する分類手順をコンピュータにさらに実行させる類似性判定用プログラム。
The similarity determination program according to claim 9,
A similarity determination program for causing a computer to further execute a classification procedure for classifying a plurality of images based on a plurality of results of similarity determination repeatedly performed between different images by the similarity determination procedure.
JP2014058413A 2014-03-20 2014-03-20 Electronic device and similarity determination program Pending JP2015184760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014058413A JP2015184760A (en) 2014-03-20 2014-03-20 Electronic device and similarity determination program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014058413A JP2015184760A (en) 2014-03-20 2014-03-20 Electronic device and similarity determination program

Publications (1)

Publication Number Publication Date
JP2015184760A true JP2015184760A (en) 2015-10-22

Family

ID=54351265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014058413A Pending JP2015184760A (en) 2014-03-20 2014-03-20 Electronic device and similarity determination program

Country Status (1)

Country Link
JP (1) JP2015184760A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018088425A1 (en) * 2016-11-10 2018-05-17 日本電信電話株式会社 Image evaluation device, image evaluation method, and image evaluation program
WO2019008961A1 (en) * 2017-07-07 2019-01-10 日本電気株式会社 Information processing device, information processing method, and program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018088425A1 (en) * 2016-11-10 2018-05-17 日本電信電話株式会社 Image evaluation device, image evaluation method, and image evaluation program
JPWO2018088425A1 (en) * 2016-11-10 2019-03-07 日本電信電話株式会社 Image evaluation apparatus, image evaluation method, and image evaluation program
US11042771B2 (en) 2016-11-10 2021-06-22 Nippon Telegraph And Telephone Corporation Image evaluation device, image evaluation method, and image evaluation program
US11710226B2 (en) 2016-11-10 2023-07-25 Nippon Telegraph And Telephone Corporation Image evaluation device, image evaluation method, and image evaluation program
WO2019008961A1 (en) * 2017-07-07 2019-01-10 日本電気株式会社 Information processing device, information processing method, and program
JPWO2019008961A1 (en) * 2017-07-07 2020-06-25 日本電気株式会社 Information processing apparatus, information processing method, and program
US11663184B2 (en) 2017-07-07 2023-05-30 Nec Corporation Information processing method of grouping data, information processing system for grouping data, and non-transitory computer readable storage medium

Similar Documents

Publication Publication Date Title
KR102275452B1 (en) Method for tracking image in real time considering both color and shape at the same time and apparatus therefor
CN109035246B (en) Face image selection method and device
EP3189469B1 (en) A method for selecting frames from video sequences based on incremental improvement
US9230058B2 (en) Image processing device, image processing method and program
US20140254934A1 (en) Method and system for mobile visual search using metadata and segmentation
US9785699B2 (en) Photograph organization based on facial recognition
CN110428399B (en) Method, apparatus, device and storage medium for detecting image
US9996554B2 (en) Search apparatus, search method, and storage medium
US11200643B2 (en) Image processing apparatus, image processing method and storage medium for enhancing resolution of image
US10255673B2 (en) Apparatus and method for detecting object in image, and apparatus and method for computer-aided diagnosis
US10121089B2 (en) Object information extraction apparatus, object information extraction program, and object information extraction method
US20190197695A1 (en) Image processing apparatus, image processing method, and storage medium
US20130304743A1 (en) Keyword assignment device, information storage device, and keyword assignment method
CN105095853B (en) Image processing apparatus and image processing method
JP6794197B2 (en) Information processing equipment, information processing methods and programs
JP6557592B2 (en) Video scene division apparatus and video scene division program
US20160162757A1 (en) Multi-class object classifying method and system
KR20170027301A (en) Image processing apparatus, image processing method, and storage medium
JP2021125003A5 (en)
US20190266392A1 (en) Image processing apparatus, image processing method, and storage medium
JP2013117861A (en) Learning device, learning method and program
US10311097B2 (en) Image retrieving apparatus and method
JP2015184760A (en) Electronic device and similarity determination program
CN108563713B (en) Keyword rule generation method and device and electronic equipment
JP6713422B2 (en) Learning device, event detection device, learning method, event detection method, program