JP4765523B2 - Image detection apparatus, image detection method, and image detection program - Google Patents
Image detection apparatus, image detection method, and image detection program Download PDFInfo
- Publication number
- JP4765523B2 JP4765523B2 JP2005287628A JP2005287628A JP4765523B2 JP 4765523 B2 JP4765523 B2 JP 4765523B2 JP 2005287628 A JP2005287628 A JP 2005287628A JP 2005287628 A JP2005287628 A JP 2005287628A JP 4765523 B2 JP4765523 B2 JP 4765523B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- predetermined
- detected
- size
- 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.)
- Expired - Fee Related
Links
- 238000001514 detection method Methods 0.000 title claims description 82
- 238000012986 modification Methods 0.000 description 19
- 230000004048 modification Effects 0.000 description 19
- 238000000034 method Methods 0.000 description 17
- 238000012545 processing Methods 0.000 description 15
- 238000012937 correction Methods 0.000 description 7
- 238000012706 support-vector machine Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 230000001174 ascending effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000008921 facial expression Effects 0.000 description 1
- 238000002715 modification method Methods 0.000 description 1
- 238000000491 multivariate analysis Methods 0.000 description 1
- 230000004043 responsiveness Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
- Image Processing (AREA)
Description
本発明は、画像検出装置、画像検出方法および画像検出プログラムに関する。 The present invention, images detecting device, a picture image detection method and images detection program.
従来より画像データに含まれる特定の画像を検出することが行われている。特に、デジタルスチルカメラやスキャナによって撮像された顔画像の有無を指標として、写真データを整理したり修整したり印刷することが行われ、画像データにおいて顔画像を検出する手法が提案されている。特許文献1においては、標本となる顔画像から得られる特徴ベクトルをSVM(サポートベクタマシン)に学習させておき、対象の画像データから得られた特徴ベクトルが識別超平面に対していずれかの領域に属するかによって顔画像の有無を判別するものが開示されている。また、特許文献2においては、顔画像の可変テンプレートを用意し、この可変テンプレートと対象の画像データとをマッチングすることにより、顔画像の有無を判別するものが開示されている。
前者の構成によれば統計的手法に基づいて顔画像の有無を精度よく判別することが可能であり、後者の構成によれば表情が変動する場合でも顔画像の有無を判別することが可能であった。
According to the former configuration, it is possible to accurately determine the presence / absence of a face image based on a statistical method, and according to the latter configuration, it is possible to determine the presence / absence of a face image even when the facial expression changes. there were.
しかしながら、上述した技術において画像データの全体について顔画像の検出を行うことは非効率的であった。すなわち、画像データにおいて顔画像が含まれる領域はごく一部に過ぎないため、全体にわたって顔画像の検出を行うと、ほとんどの処理が無駄に行われ、効率が悪いという課題があった。
本発明は、効率よく画像データから特定画像を検出することが可能な画像検出装置、画像検出方法および画像検出プログラムの提供を目的とする。
However, it is inefficient to detect a face image for the entire image data in the above-described technique. That is, only a small part of the image data includes a face image. Therefore, when the face image is detected over the entire area, most of the processing is wasted and the efficiency is low.
The present invention is effectively images detector capable of detecting a specific image from the image data, and an object thereof is to provide a picture image detection method and the images detection program.
上記課題を解決するため請求項1にかかる発明では、検出手段が上記画像データにおける領域ごとに所定画像を順に検出していく。この検出手段が順に上記所定画像の検出を行う上記領域は、領域設定手段によって順に設定される。そして、上記領域設定手段は、上記所定画像を含むサンプル画像データについて上記所定画像を検出した確率を当該サンプル画像データと上記所定画像とに関する相対サイズと相対位置との組み合わせに対して算出し、当該確率の高い上記相対位置と上記相対サイズとの組み合わせにより特定される領域から順に、上記画像データにおける領域を設定する。すなわち、上記画像データにおけるどの領域から上記所定画像を検出するかが、予めサンプル画像データについて上記所定画像を検出した確率に基づいて設定される。確率に基づいて上記領域が設定されるため、確率に基づいて効率よい上記選定領域の順序を設定することができる。従って、無駄な処理が防止され、上記検出手段による上記所定画像の検出を効率よく行うことができる。
In order to solve the above-mentioned problem, in the invention according to
また、上記領域設定手段が上記統計情報において上記所定画像が検出される確率が高い順に上記領域を設定する。これにより、上記所定画像が検出される確率が高い上記領域から順に上記検出手段が上記所定画像の検出を行うことができ、早期に同所定画像を検出することが可能となる。 The upper Symbol area setting means for setting the area in the order probabilities above a predetermined image is detected is high in the statistics. Thereby, the detection means can detect the predetermined image in order from the region where the probability that the predetermined image is detected is high, and the predetermined image can be detected at an early stage.
さらに、上記確率において、上記画像データにおける上記領域の相対的な位置ごとに区分して上記所定画像が検出される確率が算出される。上記画像データにおける上記領域の位置ごとに上記所定画像が検出される確率が統計され、同確率が高い順に同領域が設定される。すなわち、上記所定画像が検出される確率が高い位置の上記領域が順に設定される。上記画像データにおける上記所定画像の存在位置に統計的な傾向がある場合には、効率よく上記所定画像の検出を行うことができる。 Further, in the above SL probability, the probability that the predetermined image is detected by dividing each relative position of the area in the image data is calculated. The probability that the predetermined image is detected for each position of the region in the image data is statistically determined, and the same region is set in descending order of the probability. That is, the regions at positions where the probability that the predetermined image is detected are high are set in order. When there is a statistical tendency in the position of the predetermined image in the image data, the predetermined image can be detected efficiently.
また、上記統計情報において、上記画像データにおける上記領域の相対的なサイズごとに区分して上記所定画像が検出される確率が算出される。上記画像データにおける上記領域のサイズごとに上記所定画像が検出される確率が統計され、同確率が高い順に同領域が設定される。すなわち、上記所定画像が検出される確率が高くなる大きさの上記領域が順に設定される。上記画像データにおける上記所定画像のサイズに統計的な傾向がある場合には、効率よく上記所定画像の検出を行うことができる。 Further, in the above Symbol statistics, the probability that the predetermined image is detected by dividing each relative size of the area in the image data is calculated. The probability that the predetermined image is detected is calculated for each size of the region in the image data, and the same region is set in descending order of the probability. That is, the regions having a size that increases the probability that the predetermined image is detected are sequentially set. When the size of the predetermined image in the image data has a statistical tendency, the predetermined image can be detected efficiently.
さらに、複数の上記所定画像を検出する場合の好適な検出手法の一例として、請求項2にかかる発明では、最初の上記所定画像がある領域で検出された場合、他の上記所定画像を続けて検出することとなる。その際に、上記領域設定手段は、先に上記所定画像が検出された上記領域と同じサイズの他の上記領域を優先的に設定する。すなわち、同一の上記画像データにおいて複数の上記所定画像は同一のサイズで存在する可能性が高いため、当該所定画像が検出された当該領域と同サイズの他の上記領域にて他の上記所定画像が検出される確率が高いものとなる。従って、当該所定画像が検出された当該領域と同サイズの他の上記領域から優先的に検出することにより、効率よく上記所定画像を検出することができる。
Furthermore, as an example of a suitable detection method for detecting a plurality of the predetermined images, in the invention according to
また、複数の上記所定画像を検出する場合の好適な検出手法の別な一例として、請求項3にかかる発明では、上記領域設定手段は、先に上記所定画像が検出された上記領域のサイズとの差が小さいサイズを有する他の上記領域を優先的に設定する。すなわち、同一の上記画像データにおいて複数の上記所定画像は似たようなサイズで存在する可能性が高いため、当該所定画像が検出された当該領域と近いサイズの他の上記領域にて他の上記所定画像が検出される確率が高いものとなる。従って、当該所定画像が検出された当該領域のサイズとの差が小さいサイズを有する他の上記領域から優先的に検出することにより、効率よく上記所定画像を検出することができる。
As another example of a suitable detection method in the case of detecting a plurality of the predetermined images, in the invention according to
一方、上記検出手段において上記所定画像の検出を行う手法の好適な一例として、請求項4にかかる発明では、上記検出手段は、上記領域から抽出された特徴情報を、上記所定画像のテンプレートと比較する。なお、上記特徴情報を比較する手法としては種々のものが採用でき、例えばSVMを用いれば複数の特徴量の多変量解析を行うことにより精度よく上記特手画像の有無を判定することができる。
On the other hand, as a preferred example of the method for detecting the predetermined image in the detection means, in the invention according to
さらに、請求項5にかかる発明では、上記所定画像が人間の顔画像とされる。これにより、上記画像データに含まれる人間の顔画像を検出することができる。ポートレート写真など上記画像データにおいて人間の顔画像が配置される位置やサイズには傾向があるということができる。従って、上記統計情報に基づいて上記領域を設定することにより、効率的に顔画像を検出することができる。
Further, in the invention according to
むろん、以上の発明は、装置のみならず、請求項6のような画像検出方法によって実現することも可能であるし、請求項7のように上記方法に従った処理を実行する画像検出プログラムによって実現することも可能である。また、本発明にかかる装置、方法、プログラムは単独で実施される場合もあるし、ある機器に組み込まれた状態で他の装置、方法、プログラムとともに実施されることもあるなど、発明の思想としてはこれに限らず、各種の態様を含むものであり、適宜、変更可能である。例えば、本発明の画像検出装置がデジタルスチルカメラ等の画像入力機器に組み込まれていてもよい。さらに、本発明の画像検出プログラムをプリンタドライバやフォトレタッチプログラムや画像データ管理プログラムに組み込んで機能させてもよい。プリンタドライバやフォトレタッチプログラムにおいては顔画像の有無によって適切な画像修整の手法を切り換えることができるし、画像データ管理プログラムにおいては顔画像の有無によって画像データの整理を行うことができ、利便性がよい。
Of course, the above invention can be realized not only by the apparatus but also by the image detection method as in
さらに、本発明のプログラムを記録した記録媒体として提供することも可能である。このプログラムの記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である。さらに、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものではなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。また、必ずしも全部の機能を単独のプログラムで実現するのではなく、複数のプログラムにて実現させるようなものであってもよい。この場合、各機能を複数のコンピュータに実現させるものであればよい。 Further, it can be provided as a recording medium on which the program of the present invention is recorded. The recording medium for this program may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium that will be developed in the future. In addition, the duplication stages such as the primary duplication product and the secondary duplication product are equivalent without any question. Further, even when a part is software and a part is realized by hardware, the idea of the invention is not completely different, and a part is stored on a recording medium and is appropriately changed as necessary. It may be in the form of being read. In addition, not all functions are necessarily realized by a single program, but may be realized by a plurality of programs. In this case, what is necessary is just to make each function implement | achieve in a some computer.
ここでは、下記の順序に従って本発明の実施形態について説明する。
(1)コンピュータの構成:
(2)顔画像検出処理の流れ:
(3)変形例:
(4)まとめ:
Here, embodiments of the present invention will be described in the following order.
(1) Computer configuration:
(2) Flow of face image detection processing:
(3) Modification:
(4) Summary:
(1)コンピュータの構成:
図1は、本発明の画像検出装置としてのコンピュータの概略構成を示している。同図において、コンピュータ10には、内部バス10aによって接続されたCPU11とRAM12とHDD13とUSBインターフェイス(I/F)14と入力機器インターフェイス(I/F)15とビデオインターフェイス(I/F)16とが備えられており、HDD13には各種プログラムデータ13aと複数の画像データ13bと検出領域データベース(DB)13cとテンプレートデータ13dが記憶されている。CPU11は、このプログラムデータ13aを読み出して、同プログラムデータ13aに基づいた処理をRAM12をワークエリアとして利用しながら実行する。USBインターフェイス(I/F)14にはプリンタ20とデジタルスチルカメラ30が接続されており、入力機器インターフェイス15にはマウス40およびキーボード50が接続されている。さらに、ビデオインターフェイス(I/F)16にはディスプレイ60が接続されている。
(1) Computer configuration:
Figure 1 shows a schematic configuration of a computer as images detecting apparatus of the present invention. In FIG. 1, a
図2は、コンピュータ10にて実行されるプログラムのソフトウェア構成を示している。同図において、オペレーティングシステム(O/S)P1が実行されており、同O/S P1上にてアプリケーションP2とプリンタドライバP3が実行されている。アプリケーションP2は、HDD13からユーザーが所望する画像データ13bを取得するとともに、同画像データ13bについてのユーザーからの印刷実行指示をマウス40やキーボード50を介して受け付ける。なお、画像データ13bは、予めデジタルスチルカメラ30からUSBI/F14を介してHDD13に取り込まれている。むろん、他のスキャナ等の画像入力機器から読み込まれるものであってもよいし、ネットワークや各種記録媒体から読みとられるものであってもよい。アプリケーションP2は、印刷実行指示を受け付けると、プリンタドライバP3に対して画像データ13bを受け渡す。
FIG. 2 shows a software configuration of a program executed on the
プリンタドライバP3は、画像データ取得部P3aと領域設定部P3bと検出部P3cと判定部P3dと画像修整部P3eと印刷データ生成部P3fとから構成され、さらに検出部P3cは特徴情報取得部P3c1とテンプレート比較部P3c2とから構成されている。画像データ取得部P3aは、アプリケーションP2から画像データ13bを取得する。領域設定部P3bはHDD13に記憶された検出領域DB13cを取得する。そして、領域設定部P3bは、検出領域DB13cに基づいて選択領域の位置およびサイズを設定する。
The printer driver P3 includes an image data acquisition unit P3a, an area setting unit P3b, a detection unit P3c, a determination unit P3d, an image modification unit P3e, and a print data generation unit P3f, and the detection unit P3c further includes a feature information acquisition unit P3c1. It comprises a template comparison unit P3c2. The image data acquisition unit P3a acquires the
図3は、検出領域DB13cの内容を示している。検出領域DB13cは、顔画像が含まれる多数のサンプル画像データをランダムに選択し、そのサンプル画像データにおいて顔画像がどの位置にどのサイズで存在しているかという情報が蓄積することにより作成される。同図において、検出領域DB13cには、各位置(X,Y)においてどのようなサイズSの顔画像がどれだけの頻度Aで検出されたかが記述されている。また、頻度Aを、全サンプル画像データから検出されたすべての顔画像数で除算することにより、確率Bが算出されている。すなわち、各位置(X,Y)とサイズSとの組み合わせについて、それぞれ顔画像が検出される確率Bが統計されている。
FIG. 3 shows the contents of the
なお、位置(X,Y)はそれぞれ1〜20までの20階調によって表されている。顔画像の中心画素の横および縦の画素座標を、サンプル画像データの横および縦の画素数で除算することにより、サンプル画像データにおける顔画像の中心画素の相対位置を算出する。そして、算出された相対位置を5%ずつの階調幅に区切られた20階調に割り振ることにより、統計的に扱うことができる離散的な位置(X,Y)を得ている。例えば、中心画素の相対位置がサンプル画像データの左端から0〜5%の顔画像については階調0(代表値5%)が与えられ、同左端から95〜100%の顔画像については階調19(代表値100%)が与えられる。
The position (X, Y) is represented by 20 gradations from 1 to 20, respectively. By dividing the horizontal and vertical pixel coordinates of the center pixel of the face image by the number of horizontal and vertical pixels of the sample image data, the relative position of the center pixel of the face image in the sample image data is calculated. Then, by assigning the calculated relative position to 20 gradations divided into 5% gradation widths, a discrete position (X, Y) that can be statistically processed is obtained. For example, for a face image whose relative position of the center pixel is 0 to 5% from the left end of the sample image data, gradation 0 (
同様に、顔画像のサイズSも小さい順に1〜3までの3階調によって表されている。顔画像の直径の画素数を、サンプル画像データの横または縦の画素数で除算することにより、サンプル画像データにおける顔画像の相対サイズを算出する。そして、算出された相対サイズを所定の階調区間に区切られた3階調に割り振ることにより、統計的に扱うことができる離散的なサイズSを得ている。サイズSの各階調についても、各階調区間の代表値がサンプル画像データの全体のサイズに対する相対的な値として用意されている。例えば、サイズSが1〜3階調に対して、それぞれ代表値20%,50%,70%が設定される。 Similarly, the size S of the face image is represented by three gradations from 1 to 3 in ascending order. The relative size of the face image in the sample image data is calculated by dividing the number of pixels of the diameter of the face image by the number of pixels in the horizontal or vertical direction of the sample image data. A discrete size S that can be treated statistically is obtained by assigning the calculated relative size to three gradations divided into predetermined gradation intervals. For each gradation of size S, the representative value of each gradation section is prepared as a relative value with respect to the overall size of the sample image data. For example, representative values of 20%, 50%, and 70% are set for size S of 1 to 3 gradations, respectively.
なお、顔画像が占める部分の面積のサンプル画像データ全体の面積に対する割合に基づいてサイズSを算出してもよい。位置(X,Y)はそれぞれ20階調設けられ、サイズSは3階調設けられるため、位置(X,Y)とサイズSの組み合わせは1200とおり考えられることとなる。サンプル画像データにおける顔画像は、その大きさと位置に基づいて、1200とおり位置(X,Y)とサイズSのいずれかの組み合わせに帰属させられ、該当する組み合わせについて頻度が1加算される。このように、検出領域DB13cは、サンプル画像データから検出された顔画像について統計されたものであり、本発明における統計情報に相当する。
Note that the size S may be calculated based on the ratio of the area occupied by the face image to the area of the entire sample image data. Since each of the positions (X, Y) is provided with 20 gradations and the size S is provided with 3 gradations, 1200 combinations of the positions (X, Y) and the sizes S are considered. Based on the size and position of the face image in the sample image data, the face image is attributed to any one of 1200 combinations of position (X, Y) and size S, and the frequency is added by 1 for the corresponding combination. As described above, the
以上のような検出領域DB13cを領域設定部P3bが取得し、検出領域DB13cから最も確率Bが高い位置(X,Y)とサイズSの組み合わせを検索する。そして、相対的な位置(X,Y)とサイズSの代表値に画像データ取得部P3aが取得した画像データ13bの縦および横の画素数を乗算することにより、画像データ13bのサイズに相応する選択領域を特定する。すなわち、選択領域は画像データ13bにおいて最も顔画像が検出される確率Bが高い位置およびサイズで設定されることとなる。なお、図3に示すように検出領域DB13cは確率Bが高い順にソートされているため、最も上の欄に記述された高い位置(X,Y)とサイズSの組み合わせが最初に検索される。
The region setting unit P3b acquires the
特徴情報取得部P3c1は領域設定部P3bが設定した選択領域のサイズおよび位置を取得する。そして、画像データ13bにおける選択領域に属するデータを抽出し、所定の特徴情報を抽出する。具体的には、画像データ13bにおける選択領域に属するデータについてエッジ検出や2値化等を行うことにより、顔の各部の候補となる輪郭を検出し、同検出した顔の各部の候補の大きさや位置等の形状を表す一群の特徴量を特徴情報として抽出する。例えば、口と予想される画素群がどの位置にどれぐらいの大きさで存在しているかといったパラメータが特徴量として抽出される。そして、特徴情報取得部P3c1は、このような特徴量の一群を特徴情報としてテンプレート比較部P3c2に受け渡す。
The feature information acquisition unit P3c1 acquires the size and position of the selected region set by the region setting unit P3b. Then, data belonging to the selected area in the
テンプレート比較部P3c2は、特徴情報取得部P3c1から特徴情報を取得するとともに、HDD13からテンプレートデータ13dを取得する。テンプレートデータ13dは、多数のサンプル顔画像から予め抽出した特徴情報が蓄積されたデータベースである。テンプレート比較部P3c2は、特徴情報取得部P3c1が画像データ13bから抽出した特徴情報と、テンプレートデータ13dに格納されたサンプル顔画像の特徴情報とを比較し、両者が似た傾向を示せば、当該画像データ13bの選択領域から顔画像が検出できたと判定する。すなわち、テンプレートデータ13dは特徴情報を比較することにより、画像データ13bの選択領域と多数のサンプル顔画像とのパターンマッチングを行っていることとなる。画像データ13bの選択領域に顔画像が含まれれば、当該選択領域からサンプル顔画像から得られた特徴情報と似た傾向の特徴情報が得られると予測できるため、特徴情報が似ていれば当該選択領域に顔画像が含まれると判定することができる。
The template comparison unit P3c2 acquires feature information from the feature information acquisition unit P3c1 and acquires
なお、特徴情報は複数の特徴量によって構成されるため、テンプレート比較部P3c2が特徴情報を比較するにあたっては各特徴量を総合的に考慮して特徴情報の類否が判定される。また、この判定を精度よく行うために、SVMを利用してもよい。SVMにおいては、顔画像を含まないサンプルについても特徴情報を用意しておき、特徴量空間において顔画像を含まないサンプルについての特徴ベクトル群と、顔画像を含むサンプル顔画像の特徴ベクトル群とを分離させる識別超平面を算出し、同識別超平面を境界として画像データ13bの選択領域から得られた特徴ベクトルがいずれかの側に属するかによって判定を行う。なお、特徴ベクトルは特徴量を線形結合させたベクトルであり、SVMが最も判別精度が高くなる重み係数が各特徴量に設定される。また、特徴量空間において線形分離ができない場合にはカーネルトリックを用いて、判別精度の向上と処理負担の軽減が図られる。
Since the feature information is composed of a plurality of feature amounts, when the template comparison unit P3c2 compares the feature information, the similarity of the feature information is determined by comprehensively considering each feature amount. Moreover, in order to make this determination with high accuracy, SVM may be used. In SVM, feature information is also prepared for a sample that does not include a face image, and a feature vector group for a sample that does not include a face image in the feature amount space, and a feature vector group of the sample face image that includes the face image. A discrimination hyperplane to be separated is calculated, and a determination is made based on which side the feature vector obtained from the selected region of the
以上のようにしてテンプレート比較部P3c2は選択領域ごとに顔画像が検出できたか否かを判定する。顔画像が検出できない場合には、領域設定部P3bが次に顔画像が検出される確率Bが高い選択領域を設定する。判定部P3dは、いずれかの選択領域にて顔画像が検出されたかどうかを判定し、いずれの選択領域においても顔画像が検出されない場合に画像データ13bには顔画像が含まれないと判定する。画像修整部P3eは顔画像が検出された画像データ13bを取得し、同画像データ13bについて画像修整を行う。具体的には、画像修整部P3eは、色調補正を行い、その際に画像データ13bに顔画像が含まれるか否かによって色調補正のパラメータを変更する。例えば、画像データ13bに顔画像が含まれる場合には肌色をいきいきとした色に補正するようにパラメータを設定し、画像データ13bに顔画像が含まれない場合には補正を行わないようにすることができる。印刷データ生成部P3fは修整後の画像データ13bを取得し、同画像データ13bをプリンタ20にて印刷可能な形式に変換する。具体的には、色変換処理やハーフトーン処理やラスタライズ処理等を順次行っていく。
As described above, the template comparison unit P3c2 determines whether a face image has been detected for each selected region. When the face image cannot be detected, the area setting unit P3b sets a selection area having the highest probability B that the face image is detected next. The determination unit P3d determines whether or not a face image is detected in any of the selection areas, and determines that no face image is included in the
(2)顔画像検出処理の流れ:
図4は、顔画像検出処理の流れを示している。同図において、ステップS100においては、画像データ取得部P1aがアプリケーションP2から印刷指示がされた画像データ13bを取得する。画像データ取得部P1aが画像データ13bを取得すると、ステップS110にて領域設定部P1bが検出領域DB13cを取得する。領域設定部P1bは、検出領域DB13cにおいて、最も顔画像が検出される確率Bが高い位置(X,Y)とサイズSの組み合わせを検索する。検出領域DB13cは、確率Bの高い順にソートされているため最上欄から最も顔画像が検出される確率Bが高い位置(X,Y)とサイズSの組み合わせが取得できる。
(2) Flow of face image detection processing:
FIG. 4 shows the flow of face image detection processing. In the figure, in step S100, the image data acquisition unit P1a acquires the
図5は顔画像の中心位置の分布を表したグラフであり、図6は顔画像の中心位置ごとの確率Bを等高線によって表したグラフであり、図7は顔画像の中心位置ごとのサイズSを表したグラフであり、これらのグラフは検出領域DB13cに基づいて作成されたものである。画像データにおける相対位置(連続数)が図5〜7における縦軸および横軸とされている。図5において、顔画像の中心位置はサンプル画像データの中央付近に集中していることが分かる。図6においては、顔画像の中心位置が存在する確率Bはサンプル画像データの中央付近ほど高いことが分かる。デジタルスチルカメラ30等によって人物を撮影する場合には、人物を撮影領域の中心に据えて撮影を行うのが通常の手法であり、顔画像の中心位置はサンプル画像データの中央付近に集中させられるからである。図7においては、サンプル画像データの中央付近ほどサイズSが大きくなる傾向があることが分かる。人物を撮影領域の中央に据える場合には、人物の撮影に主眼が置かれる場合が多く、メインの人物がズームアップされる可能性が高いからである。
FIG. 5 is a graph showing the distribution of the center position of the face image, FIG. 6 is a graph showing the probability B for each center position of the face image by contour lines, and FIG. 7 is the size S for each center position of the face image. These graphs are created based on the
以上説明したように、サンプル画像データにおいて顔画像が存在する位置およびサイズには統計的な傾向があり、領域設定部P1bはこの統計情報から最も顔画像が検出される確率Bが高い位置(X,Y)とサイズSの組み合わせを検索する。そして、ステップS130においては、検索した位置(X,Y)とサイズSを、画像データ取得部P1aが取得した画像データ13bのサイズに換算することにより、選択領域を設定する。すなわち、位置(X,Y)とサイズSは相対的な値であるため、画像データ13bのサイズを基準として絶対的な選択領域の位置およびサイズが特定される。一度検索された位置(X,Y)とサイズSの組み合わせについては、検索済みである旨のフラグが付与され、以降は検索されないようにされる。
As described above, there is a statistical tendency in the position and size of the face image in the sample image data, and the region setting unit P1b has the highest probability B that the face image is detected from this statistical information (X , Y) and the size S are searched. In step S130, the selected position is set by converting the searched position (X, Y) and size S into the size of the
図8は、画像データ13bと選択領域とを示している。同図において、画像データ13bと選択領域Cが示されている。選択領域Cは矩形状となっており、その高さおよび幅は画像データ13bの高さおよび幅に対するサイズSの代表値の割合で決定されている。また、選択領域Cの位置は、同選択領域Cの対角線の交点の位置が、位置(X,Y)に画像データ13bの高さおよび幅を乗算して得られる座標と一致するように設定されている。ただし、選択領域Cは位置およびサイズが位置(X,Y)とサイズSに基づいて設定されればよく、楕円や円等の他の形状とされていてもよい。
FIG. 8 shows the
ステップS140においては、ステップS130にて設定した選択領域から検出部P3cが顔画像の検出を試みる。具体的には、特徴情報取得部P3c1が画像データ13bに対して設定された選択領域に属する画像データを取得する。そして、当該画像データに対して所定の画像処理を行いつつ、一群の特徴量を特徴情報として抽出する。得られた特徴情報はテンプレート比較部P3c2に受け渡される。テンプレート比較部P3c2は、HDD13からテンプレートデータ13dを取得し、特徴情報取得部P3c1が画像データ13bから抽出した特徴情報と、テンプレートデータ13dに格納されたサンプル顔画像の特徴情報とを比較し、両者が似た傾向を示せば、当該画像データ13bの選択領域Cから顔画像が検出できたと判定する。なお、選択領域Cの絶対的なサイズは、画像データ13b全体のサイズや適用したサイズSによって変動するため、テンプレートデータ13dの特徴情報と相似性がある場合にも選択領域Cから顔画像が検出できたと判定する。むろん、テンプレートデータ13dを選択領域Cの絶対的なサイズごとに用意しておき、相応しいサイズのテンプレートデータ13dを利用して特徴情報の比較を行うようにしてもよい。
In step S140, the detection unit P3c tries to detect a face image from the selection region set in step S130. Specifically, the feature information acquisition unit P3c1 acquires image data belonging to the selection area set for the
ステップS150において、選択領域Cから顔画像が検出できたかどうかが判定され、検出できた場合には、ステップS180にて判定部P1dが当該画像データ13bから顔画像が検出できたと判定するとともに、検出された顔画像についての検出位置とサイズを出力し、顔画像検出処理を終了する。検出位置は検出された顔画像の中心位置であり、サイズは検出された顔画像の中心位置である。
In step S150, it is determined whether or not a face image can be detected from the selected area C. If it can be detected, the determination unit P1d determines in step S180 that a face image has been detected from the
当該画像データ13bから顔画像が検出できた旨は、画像修整部P3eに出力され、画像修整部P3eは、画像データ13bに顔画像が含まれる場合の色調補正のパラメータを設定し、色調補正を実行する。これにより、例えば肌色をいきいきとさせるといった、顔画像が含まれる画像データ13bについて好適な画像修整を実現させることができる。また、検出された顔画像についての顔画像IDと検出位置とサイズを検出領域DB13cに追記するようにしてもよいし、当該顔画像を検出する際に得られた特徴情報をテンプレートデータ13dに追記するようにしてもよい。このようにすることにより、サンプル数を徐々に増加させることができ、検出領域DB13cの統計的信頼性を向上させていくことができる。画像修整部P3eにて色調補正された画像データ13bは印刷データ生成部P3fに受け渡され、印刷データが生成される。
The fact that the face image has been detected from the
一方、ステップS150にて、顔画像が検出できなかったと判定された場合には、ステップS160において未検索の位置(X,Y)とサイズSの組み合わせが検出領域DB13cに残っているかどうかを判定する。すなわち、検出領域DB13cに存在する位置(X,Y)とサイズSであって、検索済みである旨のフラグが付与されていないものがあるかどうかを判定する。そして、検索済みでない位置(X,Y)とサイズSが1つでも残っている場合には、ステップS120を再度実行する。ただし、前回検索された位置(X,Y)とサイズSの組み合わせについては、検索済みである旨のフラグが付与されているため、次に確率Bが高い位置(X,Y)とサイズSの組み合わせが検索されることとなる。検出領域DB13cは、確率Bの高い順にソートされているため、上欄から下段へ順に検索済みのフラグが付与されていくとともに、上欄から下段へ順に位置(X,Y)とサイズSの組み合わせが検索されていくこととなる。以降のステップS130〜S150については上記と同様に行われる。
On the other hand, if it is determined in step S150 that the face image could not be detected, it is determined in step S160 whether or not the combination of the unsearched position (X, Y) and size S remains in the
ステップS120を繰り返すことにより、顔画像が検出される確率Bが高い順に位置(X,Y)とサイズSが順次検索され、ステップS130では顔画像が検出される確率Bが高い順に選択領域Cが設定されることとなる。つまり、ステップS140では、顔画像が検出される確率Bが高い選択領域Cについて順に顔画像を検出していくこととなる。そして、いずれかの選択領域Cにて顔画像が検出された時点で、当該画像データ13bにて顔画像が検出されたとして処理を終了させるため、通常の画像データ13bにおいて顔画像が存在し得ないような位置の選択領域Cにて特徴情報の抽出やテンプレートマッチングが行われることが防止できる。同様に、通常の画像データ13bにおいて顔画像が存在し得ないようなサイズの選択領域Cにて特徴情報の抽出やテンプレートマッチングが行われることも防止できる。従って、顔画像検出処理を効率よく行うことができる。
By repeating step S120, the position (X, Y) and the size S are sequentially searched in descending order of the probability B that the face image is detected. In step S130, the selection region C is selected in descending order of the probability B that the face image is detected. Will be set. That is, in step S140, face images are detected in order for the selection region C having a high probability B of detecting a face image. Then, when a face image is detected in any one of the selection areas C, the face image may exist in the
なお、いくつもの選択領域Cについて顔画像の検出を行い、最終的にステップS160において未検索の位置(X,Y)とサイズSの組み合わせが検出領域DB13cに残存していないと判定された場合には、ステップS170にて顔画像が当該画像データ13bから検出できなかったと判定する。これにより、画像修整部P3eは当該画像データ13bに顔画像が含まれていないことを認識することができ、画像データ13bに顔画像が含まれない場合の色調補正のパラメータを設定することができる。
If face images are detected for a number of selected areas C, and it is finally determined in step S160 that the combination of the unsearched position (X, Y) and size S does not remain in the
顔画像が画像データ13bに存在しない場合には検出領域DB13cに存在するすべての位置(X,Y)とサイズSの組み合わせについて顔画像の検出が行われることとなる。従って、ある程度低い確率Bとなる位置(X,Y)とサイズSの組み合わせについては検出領域DB13cにて無効化するようにして、処理の高速化を図ってもよい。例えば、頻度Aがサンプル画像データの数に対し有為水準を満足しない場合には、その位置(X,Y)とサイズSの組み合わせはステップS120で検索されないようにしてもよい。
When the face image does not exist in the
逆に、検出領域DB13cに存在しない位置(X,Y)とサイズSの組み合わせにおいて顔画像が存在する場合も考えられるため、検出領域DB13cに存在する以外の位置(X,Y)とサイズSの組み合わせについても顔画像を検出するようにしてもよい。例えば、ステップS170を実行する前に、画像データ13bの隅から徐々に選択領域Cの位置をシフトさせつつ、各位置にて選択領域Cのサイズを順に変更して、顔画像を検出するようにすれば、画像データ13bの全領域についてくまなく顔画像を検出することができる。このように、画像データ13bの全領域についてくまなく顔画像を検出すると、処理が非効率化するが、ほとんどの場合、検出領域DB13cに存在する位置(X,Y)とサイズSの組み合わせで顔画像が検出できるため、問題とならない。
Conversely, a face image may exist in a combination of a position (X, Y) and a size S that does not exist in the
(3)変形例:
以上においては、画像データ13bにおいて顔画像が存在するか否かによって色調補正のパラメータを変更するプリンタドライバを例示したが、本発明の画像検出機能を他のプログラムに組み込んでもよい。例えば、デジタルスチルカメラ等によって撮影した画像データを管理したり整理するために画像検索を行う画像検索プログラムに画像検出機能を組み込むようにしてもよい。画像検索プログラムにおいては、画像データに顔画像があるかないかだけでなく、何人の顔が含まれているかを指定して検索をすることができると便利である。
(3) Modification:
In the above, the
図9は、本変形例にかかる画像検索プログラムのソフトウェア構成を示している。同図において、画像検索プログラムP4は、前実施形態と同様の画像データ取得部P4aと領域設定部P4bと検出部P4cと判定部P4dのほかに、検索条件取得部P4eと画像データ選択部P4fと出力部P4gとから構成されている。検索条件取得部P4eはマウス40やキーボード50を介してユーザーから検索条件の指定を受け付ける。具体的には、画像データ13bを検索する範囲指定と、検索したい顔画像の個数の指定を受け付ける。例えば、ユーザーがCドライブに保存された画像データ13bのうち、顔画像が4個以上含まれるものを検索するといった検索条件を受け付けることとなる。これにより、集合写真等の顔画像が多く含まれる画像データ13bのみをリストアップすることができ、プリント(焼き増し)枚数の指定等において便利である。画像データ選択部P4fは、上述した検索範囲に属する画像データ13bを順に選択していき、同検索範囲に属する画像データ13bのすべてについて顔画像の検索が行われるようにする。
FIG. 9 shows a software configuration of an image search program according to this modification. In the figure, an image search program P4 includes a search condition acquisition unit P4e and an image data selection unit P4f in addition to an image data acquisition unit P4a, a region setting unit P4b, a detection unit P4c, and a determination unit P4d similar to the previous embodiment. The output part P4g is comprised. The search condition acquisition unit P4e receives specification of search conditions from the user via the
図10は、以上の構成において実行される画像データ検索処理の流れを示している。ステップS200においては、検索条件取得部P4eがマウス40やキーボード50を介してユーザーから検索範囲や顔画像の個数の指定を受け付ける。ステップS205においては、画像データ選択部P4fが指定された検索範囲の画像データ13bを一つ選択する。ステップS210においては、画像データ選択部P4fによって選択された画像データ13bを画像データ取得部P4aが取得する。ステップS220〜S250までの処理は、前実施形態のステップS120〜S180とほぼ同様であるため説明は省略する。
FIG. 10 shows the flow of image data search processing executed in the above configuration. In step S200, the search condition acquisition unit P4e receives specification of the search range and the number of face images from the user via the
ステップS230にて、いずれかの選択領域Cにて顔画像が検出され、ステップS245にて検出結果を出力すると、ステップS255にて顔画像が指定された個数検出されたかどうかが判定される。一つの画像データ13bについて、ステップS245にて検出結果を出力するごとに、カウンタを1ずつ加算することにより、検出できた顔画像の個数を係数することができる。そして、ステップS255では、検出できた顔画像の個数が、ステップS200にて指定された顔画像の個数に達しているかどうかを判定する。検出できた顔画像の個数が、ステップS200にて指定された顔画像の個数に達していれば、当該画像データ13bには少なくともユーザーが指定しただけの数の顔画像が含まれていると判定することができる。従って、その場合には、当該画像データ13bはユーザーの検索条件を満足することとなる。
In step S230, a face image is detected in any selected region C, and when a detection result is output in step S245, it is determined in step S255 whether the specified number of face images has been detected. For each piece of
一方、検出できた顔画像の個数が、ステップS200にて指定された顔画像の個数に達していなければ、現時点では、当該画像データ13bからユーザーが指定しただけの数の顔画像が検出できてないと判定することができる。従って、その場合には、ステップS220に戻り、他の選択領域Cにて他の顔画像を検出することとなる。そして、ユーザーが指定した数の顔画像が検出されるまで、ステップS220〜S245が繰り返されることとなる。ただし、ステップS255からステップS220に戻る際には、ステップS260を行っており、同ステップS260では直前に検出された顔画像のサイズを優先するように検出領域DB13cのソートが行われている。
On the other hand, if the number of detected face images does not reach the number of face images specified in step S200, as many face images as specified by the user can be detected from the
図11は、ステップS260にてソートされた検出領域DB13cを示している。同図は、直前に検出された顔画像の検出において、サイズS(S=1)が選択されていた場合のソート結果を示している。検出領域DB13cの上欄にはサイズS(S=1)となるサイズSと位置(X,Y)の組み合わせが上欄にリストアップされており、サイズS(S=1)のなかで確率Bが高い順にソートされている。ステップS220では、検出領域DB13cにおいて、検索済みフラグが付与されていないものを上欄から検索するようにしているため、サイズS(S=1)のなかで確率Bが高くなる順に、サイズSと位置(X,Y)の組み合わせが検索されることとなる。すなわち、ステップS220において、最初の段階では確率Bを最優先に検索が行われるが、一度顔画像が検出されると、その顔画像と同じサイズSのサイズSと位置(X,Y)の組み合わせが優先的に検索されることとなる。なお、サイズS(S=1)以外については、通常どおり確率Bを最優先としてソートされている。
FIG. 11 shows the
同一の画像データ13bにおいて複数の顔画像が含まれる場合、複数の顔画像は似たような大きさとなっていると推測することができる。例えば、集合写真では、各人がカメラとの距離が同じとなるように整列することが通常であり、撮影される顔画像の大きさもほぼ同じと考えることができる。従って、ソート後の画像データ13bにおいて検索されたサイズSと位置(X,Y)の組み合わせによって設定した選択領域Cにて顔画像が検出される可能性が高く、より早期に指定した個数の顔画像を検出することが可能となる。また、直前の顔画像の検出に適用したサイズSと同一のものだけでなく、このサイズSとの差が小さいサイズSが優先的に検索されるようにしてもよい。
When a plurality of face images are included in the
図12は、直前の顔画像の検出に適用したサイズSとの差が小さいもの優先的に検索されるようにソートした検出領域DB13cを示している。同図において、S=1が上欄にソートされ、次いでS=2が中欄にソートされ、最後にS=3が下欄にソートされている。直前の顔画像の検出に適用したサイズSがS=1であるため、差が0のS=1が最初に検索され、次に差が1となるS=2が検索され、最後に差が2となるS=3が検索されることとなる。極端に大きさの異なる顔画像が同一の画像データ13bに含まれる可能性は低いと考えられるため、このようなソートを行うことによって効率よく複数の顔画像を検出していくことができる。
FIG. 12 shows the
なお、本変形例のような画像検索プログラムにおいては、顔画像の個数だけでなく、顔画像の特徴や人をキーとして検索するようにしてもよい。例えば、ステップS230にて、顔画像を検出する際に、検出した顔画像の特徴を判定するようにしてもよい。具体的には、検出された顔画像の性別や年齢等の特徴を判別し、その特徴を出力し、検索条件と比較してもよい。さらに、顔画像を検出する際に、検出した顔画像の特徴に基づいて当該顔画像が誰のものであるかを特定し、検出された顔画像が検索条件として指定された人のものであるかどうかを判定するようにしてもよい。 In the image search program as in this modification, the search may be performed using not only the number of face images but also the characteristics of the face images and people as keys. For example, when detecting a face image in step S230, the feature of the detected face image may be determined. Specifically, characteristics such as gender and age of the detected face image may be determined, and the characteristics may be output and compared with the search condition. Further, when detecting the face image, the face image is identified based on the feature of the detected face image, and the detected face image is that of the person specified as the search condition. It may be determined whether or not.
本変形例において、いずれの選択領域Cにおいても顔画像が検出されなかったとき(S240にてNo)と、指定された個数の顔画像が検出されたとき(S255にてYes)に、ステップS265において指定された検索範囲内のすべての画像データ13bについて顔検出が完了したかを判定する。検索範囲内のすべての画像データ13bについて顔検出が完了していない場合には、画像データ選択部P4fが次の画像データ13bを選択して、当該画像データ13bについて顔画像の検出を行う。このようにすることにより、検索範囲内のすべての画像データ13bについて顔画像の検出を行わせることができる。検索範囲内のすべての画像データ13bについて顔検出が完了した場合には、ステップS270にて出力部P4gが検索リストをディスプレイ60に出力する。検索リストには、ユーザーが指定した個数の顔画像が含まれていると判定された画像データ13bのファイル名等が一覧表示される。
In this modification, when no face image is detected in any of the selection areas C (No in S240) and when a specified number of face images are detected (Yes in S255), step S265 is performed. It is determined whether face detection has been completed for all
以上においては、本発明にかかる顔検出の機能がコンピュータ上にて実行されるものを例示したが、本発明を他の装置に組み込んでもよい。例えば、デジタルスチルカメラにおいて本発明を適用し、撮影した画像データを顔画像の有無や個数に基づいて検索したり、補正したりするようにしてもよい。さらに、撮影の際に顔画像を特定し、同特定された顔画像に対してフォーカスを合わせるようにしてもよい。本発明によれば、高速に顔画像を検出することができるため、フォーカスに時間がかかることが防止でき、応答性に優れたデジタルスチルカメラを提供することができる。また、所定画像として顔画像を検出するものを例示したが、他の画像を所定画像として検出してもよい。すなわち、他の画像についてのテンプレートデータ13dを用意しておけば顔画像と同様にマッチングさせることができる。
In the above description, the face detection function according to the present invention is executed on a computer. However, the present invention may be incorporated in another apparatus. For example, the present invention may be applied to a digital still camera, and the captured image data may be searched or corrected based on the presence or number of face images. Furthermore, a face image may be specified at the time of shooting, and the focus may be focused on the specified face image. According to the present invention, since a face image can be detected at high speed, it is possible to provide a digital still camera excellent in responsiveness, which can prevent focusing from taking time. Moreover, although what detected the face image as a predetermined image was illustrated, you may detect another image as a predetermined image. That is, if
(4)まとめ:
本発明においては、検出領域DB13cにおいて顔画像が検出される確率Bが高い順に位置(X,Y)とサイズSの組み合わせがステップS120にて順次検索され、ステップS130では顔画像が検出される確率Bが高い順に選択領域Cが設定されることとなる。これにより、ステップS140では、顔画像が検出される確率Bが高い選択領域Cについて順に顔画像を検出していくこととなる。そして、いずれかの選択領域Cにて顔画像が検出された時点で、当該画像データ13bにて顔画像が検出されたとして処理を終了させるため、通常の画像データ13bにおいて顔画像が存在し得ないような位置の選択領域Cにて特徴情報の抽出やテンプレートマッチングが行われることが防止できる。
(4) Summary:
In the present invention, combinations of position (X, Y) and size S are sequentially searched in step S120 in descending order of the probability B that a face image is detected in the
10…コンピュータ(顔画像検出装置),10a…バス,11…CPU,12…RAM,13…HDD,13a…プログラムデータ,13b…画像データ,13c…検出領域DB,13d…テンプレートデータ,14…USBI/F,15…入力機器I/F,16…ビデオI/F,20…プリンタ,30…デジタルスチルカメラ,40…マウス,50…キーボード,60…ディスプレイ,P1…O/S,P2…アプリケーション,P3…プリンタドライバ,P3a,P4a…画像データ取得部,P3b,P4b…領域設定部,P3c,P4c…検出部,P3c1,P4c1…特徴情報取得部,P3c2,P4c2…テンプレート比較部,P3d,P4d…判定部,P3e…画像修整部,P3f…印刷データ生成部,P4…画像管理プログラム,P4e…検索条件取得部,P4f…画像データ選択部,P4g…出力部
DESCRIPTION OF
Claims (7)
上記所定画像を含むサンプル画像データについて上記所定画像を検出した確率を当該サンプル画像データと上記所定画像とに関する相対サイズと相対位置との組み合わせに対して算出し、当該確率の高い上記相対位置と上記相対サイズとの組み合わせにより特定される領域から順に、上記画像データにおける領域を設定する領域設定手段と、
上記領域ごとに上記所定画像を検出する検出手段と、
を具備することを特徴とする画像検出装置。 An image detection device for detecting a predetermined image included in image data,
For sample image data including the predetermined image to calculate the probability of detecting the predetermined image on the combination of the relative sizes and the relative positions and to a corresponding sample image data and the predetermined image, high the probability the relative position and the Region setting means for setting regions in the image data in order from the region specified by the combination with the relative size;
Detecting means for detecting the predetermined image for each region;
An image detection apparatus comprising:
上記領域設定手段は、当該所定画像が検出された当該領域と同じサイズの他の上記領域を優先して設定することを特徴とする請求項1に記載の画像検出装置。 In the case of detecting a plurality of the predetermined images, when the detecting means detects the predetermined images,
The image detection apparatus according to claim 1, wherein the area setting unit preferentially sets another area having the same size as the area where the predetermined image is detected.
上記領域設定手段は、当該所定画像が検出された領域のサイズとの差が小さい他の上記領域を優先して設定することを特徴とする請求項1に記載の画像検出装置。 In the case of detecting a plurality of the predetermined images, when the detecting means detects the predetermined images,
The image detection apparatus according to claim 1, wherein the area setting unit preferentially sets the other area having a small difference from the size of the area where the predetermined image is detected.
上記領域から抽出された特徴情報を上記所定画像のテンプレートと比較することにより当該領域における当該所定画像の有無を判別することを特徴とする請求項1から請求項3のいずれか1項に記載の画像検出装置。 The detecting means is
The presence / absence of the predetermined image in the region is determined by comparing the feature information extracted from the region with the template of the predetermined image. Image detection device.
領域設定手段が、上記所定画像を含むサンプル画像データについて上記所定画像を検出した確率を当該サンプル画像データと上記所定画像とに関する相対サイズと相対位置との組み合わせに対して算出し、当該確率の高い上記相対位置と上記相対サイズとの組み合わせにより特定される領域から順に、上記画像データにおける領域を設定する領域設定工程と、
検出手段が、上記領域ごとに上記所定画像を検出する検出工程と、
を含むことを特徴とする画像検出方法。 An image detection method for detecting a predetermined image included in image data,
The region setting means calculates the probability that the predetermined image is detected for the sample image data including the predetermined image with respect to the combination of the relative size and the relative position regarding the sample image data and the predetermined image, and the probability is high. in order from the area specified by the combination of the relative position and the relative size, an area setting step of setting an area in the image data,
A detecting step for detecting the predetermined image for each of the regions;
An image detection method comprising:
上記所定画像を含むサンプル画像データについて上記所定画像を検出した確率を当該サンプル画像データと上記所定画像とに関する相対サイズと相対位置との組み合わせに対して算出し、当該確率の高い上記相対位置と上記相対サイズとの組み合わせにより特定される領域から順に、上記画像データにおける領域を設定する機能と、
上記領域ごとに上記所定画像を検出する機能と、
をコンピュータにて実行させる画像検出プログラム。 An image detection program for causing a computer to execute a function of detecting a predetermined image included in image data,
For sample image data including the predetermined image to calculate the probability of detecting the predetermined image on the combination of the relative sizes and the relative positions and to a corresponding sample image data and the predetermined image, high the probability the relative position and the A function for setting the region in the image data in order from the region specified by the combination with the relative size;
A function of detecting the predetermined image for each of the regions;
Detection program for causing computer to execute
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005287628A JP4765523B2 (en) | 2005-09-30 | 2005-09-30 | Image detection apparatus, image detection method, and image detection program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005287628A JP4765523B2 (en) | 2005-09-30 | 2005-09-30 | Image detection apparatus, image detection method, and image detection program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2007102286A JP2007102286A (en) | 2007-04-19 |
JP2007102286A5 JP2007102286A5 (en) | 2008-11-06 |
JP4765523B2 true JP4765523B2 (en) | 2011-09-07 |
Family
ID=38029203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005287628A Expired - Fee Related JP4765523B2 (en) | 2005-09-30 | 2005-09-30 | Image detection apparatus, image detection method, and image detection program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4765523B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4994311B2 (en) * | 2007-06-18 | 2012-08-08 | 富士フイルム株式会社 | Face detection method, face detection device, and digital camera |
JP5471130B2 (en) * | 2009-07-31 | 2014-04-16 | カシオ計算機株式会社 | Image processing apparatus and method |
JP5507962B2 (en) * | 2009-11-05 | 2014-05-28 | キヤノン株式会社 | Information processing apparatus, control method therefor, and program |
CN111402234B (en) * | 2020-03-16 | 2024-05-03 | 深圳市启灵图像科技有限公司 | Machine vision detecting system |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001195582A (en) * | 2000-01-12 | 2001-07-19 | Mixed Reality Systems Laboratory Inc | Device and method for detecting image, device and system for three-dimensional display, display controller, and program storage medium |
JP4622140B2 (en) * | 2001-04-13 | 2011-02-02 | ソニー株式会社 | Image processing apparatus, image processing method, recording medium, and program |
JP4631199B2 (en) * | 2001-04-13 | 2011-02-16 | ソニー株式会社 | Image processing apparatus, image processing method, recording medium, and program |
JP2004133637A (en) * | 2002-10-09 | 2004-04-30 | Sony Corp | Face detector, face detection method and program, and robot apparatus |
GB2395781A (en) * | 2002-11-29 | 2004-06-02 | Sony Uk Ltd | Face detection |
GB2395264A (en) * | 2002-11-29 | 2004-05-19 | Sony Uk Ltd | Face detection in images |
JP2005134966A (en) * | 2003-10-28 | 2005-05-26 | Seiko Epson Corp | Face image candidate area search method, search system, and search program |
JP2005149302A (en) * | 2003-11-18 | 2005-06-09 | Nippon Hoso Kyokai <Nhk> | Face image recognition apparatus and face image recognition program |
JP2005322220A (en) * | 2004-04-06 | 2005-11-17 | Fuji Photo Film Co Ltd | Particular region detecting method, particular region detecting apparatus, and program therefor |
JP4604606B2 (en) * | 2004-08-18 | 2011-01-05 | ソニー株式会社 | Face detection apparatus, face detection method, and computer program |
JP4789526B2 (en) * | 2005-07-13 | 2011-10-12 | キヤノン株式会社 | Image processing apparatus and image processing method |
JP2007025902A (en) * | 2005-07-13 | 2007-02-01 | Canon Inc | Image processor and image processing method |
-
2005
- 2005-09-30 JP JP2005287628A patent/JP4765523B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2007102286A (en) | 2007-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2776295B2 (en) | Image index generation method and image index generation device | |
JP6938422B2 (en) | Image processing equipment, image processing methods, and programs | |
CN109543501B (en) | Image processing apparatus, image processing method, and storage medium | |
JP4960897B2 (en) | Image processing apparatus, image processing method, program, and storage medium | |
US8644621B2 (en) | Image processing apparatus and image retrieval method | |
JP4335476B2 (en) | Method for changing the number, size, and magnification of photographic prints based on image saliency and appeal | |
EP3334142B1 (en) | Program, image processing apparatus, and image processing method | |
US9299177B2 (en) | Apparatus, method and non-transitory computer-readable medium using layout similarity | |
JP5288961B2 (en) | Image processing apparatus and image processing method | |
US20100231995A1 (en) | Image processing apparatus, image processing apparatus control method, and storage medium storing program | |
US20140009796A1 (en) | Information processing apparatus and control method thereof | |
US20080244384A1 (en) | Image retrieval apparatus, method for retrieving image, and control program for image retrieval apparatus | |
JP4261988B2 (en) | Image processing apparatus and method | |
JP4765523B2 (en) | Image detection apparatus, image detection method, and image detection program | |
JP2008204184A (en) | Image processor, image processing method, program and recording medium | |
JP6700705B2 (en) | Distribution system, information processing method, and program | |
EP3128733B1 (en) | Information processing method, information processing apparatus, and program | |
JP4967045B2 (en) | Background discriminating apparatus, method and program | |
JP7370759B2 (en) | Image processing device, image processing method and program | |
JP2000123173A (en) | Image characteristic extracting method, similar image retrieval system and recording medium | |
JP4910821B2 (en) | Image identification method | |
EP3128461B1 (en) | Image processing apparatus, image processing method, and program | |
JP4556739B2 (en) | Image management apparatus, image management method, and image management program | |
JP4569162B2 (en) | Image processing method, image processing program, and image processing apparatus | |
JP5157848B2 (en) | Image processing apparatus, image processing method, computer program, and information recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080917 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080917 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101214 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101222 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110208 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110302 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110422 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110517 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110530 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140624 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |