JP2008312057A - Photographing method and apparatus - Google Patents
Photographing method and apparatus Download PDFInfo
- Publication number
- JP2008312057A JP2008312057A JP2007159427A JP2007159427A JP2008312057A JP 2008312057 A JP2008312057 A JP 2008312057A JP 2007159427 A JP2007159427 A JP 2007159427A JP 2007159427 A JP2007159427 A JP 2007159427A JP 2008312057 A JP2008312057 A JP 2008312057A
- Authority
- JP
- Japan
- Prior art keywords
- image
- red
- shooting
- flash
- eye
- 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.)
- Abandoned
Links
Images
Landscapes
- Studio Devices (AREA)
Abstract
Description
本発明は、撮影方法及び装置に係り、特に人物を対象としたフラッシュ撮影時における赤目の発生を防止する撮影方法及び装置に関する。 The present invention relates to a photographing method and apparatus, and more particularly, to a photographing method and apparatus for preventing the occurrence of red eyes during flash photography for a person.
赤目とは、人の目が赤く光って写る現象をいい、フラッシュ光が被写体の網膜の毛細血管に反射して、カメラのレンズに戻ることにより発生する。 Red eye refers to a phenomenon in which the human eye shines red, and is generated when flash light is reflected by the capillaries of the subject's retina and returns to the lens of the camera.
この赤目現象を軽減する方法の一つとして、本撮影前にフラッシュをプリ発光させる方法が知られている。この方法は、本撮影前にフラッシュをプリ発光させることにより、事前に被写体の瞳孔を閉じさせて、本撮影時に赤目が発生するのを防止するものである。 As one method of reducing this red-eye phenomenon, a method of pre-flashing a flash before actual photographing is known. In this method, the pupil of the subject is closed in advance by pre-flashing the flash before the main shooting, thereby preventing red eyes from occurring during the main shooting.
しかし、プリ発光させてから被写体の瞳孔が閉じるまでの時間は、個人差、環境差があり、必ずしも赤目が防止できるとは限らないという欠点があった。 However, the time from the pre-flash to the closing of the subject's pupil has individual and environmental differences, and there is a drawback that red-eye cannot always be prevented.
そこで、特許文献1では、フラッシュをプリ発光させてから、所定時間経過後に所定の時間間隔で複数回本撮影を行うことにより、赤目のない画像を撮影する方法が提案されている。
Therefore,
また、特許文献2では、本撮影された画像から赤目を検出し、赤目が検出されなくなるまで本撮影を繰り返し実行する方法が提案されている。
特許文献1の方法では、撮影間隔の設定が重要になるが、CCDの露光、読み出し時間の制約で撮影間隔の細かい設定ができず、適正な撮影ができないおそれがある。
In the method of
また、特許文献2の方法では、撮影のたびに赤目の検出処理を行うので、その処理を行う分、撮影間隔が長くなり、その間に被写体が動いてしまうおそれがある。このため、撮影者が意図した構図の写真が撮れないおそれがある。
Further, in the method of
本発明は、このような事情に鑑みてなされたもので、撮影者の意図する構図で赤目の目立たない若しくは確実に補正された画像を簡単に得られる撮影方法及び装置を提供することを目的とする。 The present invention has been made in view of such circumstances, and an object of the present invention is to provide an imaging method and apparatus capable of easily obtaining an image in which the red-eye is not conspicuous or reliably corrected with the composition intended by the photographer. To do.
請求項1に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影方法において、所定の差分ステップでフラッシュの発光量を適正発光量から段階的に減少させて複数回本撮影することを特徴とする撮影方法を提供する。 In order to achieve the above object, the invention according to claim 1 obtains an appropriate flash amount at the time of main shooting in advance when shooting with the flash fired at the time of main shooting, and uses the flash with the determined appropriate flash amount. There is provided a photographing method for performing main photographing a plurality of times by reducing the light emission amount of a flash stepwise from an appropriate light emission amount in a predetermined difference step.
請求項1に係る発明によれば、所定の差分ステップでフラッシュの発光量を適正発光量から段階的に減少させて複数回本撮影が行われる。赤目は、フラッシュ光が被写体の網膜の毛細血管に反射して、カメラのレンズに戻ることにより発生する現象であるので、反射光を減らすことにより、すなわち、フラッシュの発光量を抑えることにより、軽減させることができる。そこで、発光量を段階的に減少させて複数回フラッシュ撮影することにより、簡単に赤目を目立たなくした画像を得ることができる。この際、減少させる差分ステップは、たとえば、事前に求めた適正発光量に応じて設定することにより、適切に設定することができる。すなわち、赤目はフラッシュの発光量が大きいほど顕著に現れるので、事前に求めた適正発光量が大きいほど差分ステップを大きく取ることにより、適切に各回の発光量を設定することができ、赤目の目立たない画像を効率よく簡単に得ることができる。なお、減少させる差分ステップは、一定の値に設定することもできる。 According to the first aspect of the present invention, the main photographing is performed a plurality of times by gradually reducing the flash light emission amount from the appropriate light emission amount in a predetermined difference step. Red-eye is a phenomenon that occurs when flash light is reflected back to the capillaries of the subject's retina and returns to the camera lens, so it is reduced by reducing the amount of reflected light, that is, by reducing the amount of flash emitted. Can be made. Therefore, by reducing the amount of light emitted step by step and performing flash photography a plurality of times, it is possible to easily obtain an image in which the red eye is inconspicuous. At this time, the difference step to be decreased can be appropriately set by setting, for example, according to the appropriate light emission amount obtained in advance. In other words, the red eye appears more prominently as the flash light intensity increases, so the larger the appropriate light emission amount obtained in advance, the larger the difference step, the appropriate light emission amount can be set each time. No image can be obtained efficiently and easily. The difference step to be decreased can be set to a constant value.
請求項2に係る発明は、前記目的を達成するために、本撮影前に画像を撮影し、得られた画像から被写体の顔を検出し、被写体の顔が検出された場合にのみ、フラッシュの発光量を適正発光量から段階的に減少させて複数回本撮影することを特徴とする請求項1に記載の撮影方法を提供する。
In order to achieve the above object, the invention according to claim 2 shoots an image before the main shooting, detects the subject's face from the obtained image, and only detects the subject's face when the subject's face is detected. The photographing method according to
請求項2に係る発明によれば、本撮影前に画像を撮影し、得られた画像から被写体の顔を検出し、被写体の顔が検出された場合にのみ、フラッシュの発光量を適正発光量から段階的に減少させて複数回本撮影する。すなわち、風景撮影などのように、被写体に顔が含まれない場合、赤目は生じ得ないので、このような場合は、複数回の撮影は行わず、通常通り適正発光量でフラッシュを発光させて、1回だけ本撮影を行う。これにより、無駄な発光、撮影を防止できる。 According to the second aspect of the present invention, an image is photographed before the actual photographing, the face of the subject is detected from the obtained image, and the flash emission amount is set to the appropriate emission amount only when the subject face is detected. Reduce the number of shots step by step and take multiple shots. In other words, red eyes cannot occur when the subject does not include a face, such as in landscape photography.In this case, the flash is not emitted multiple times and the flash is emitted as usual. Take a real shot only once. Thereby, useless light emission and photography can be prevented.
請求項3に係る発明は、前記目的を達成するために、前記差分ステップは、調光結果に基づいて求めることを特徴とする請求項1又は2に記載の撮影方法を提供する。
The invention according to
請求項3に係る発明によれば、差分ステップは、調光結果に基づいて求められる。たとえば、本撮影前にフラッシュをプリ発光させ、得られた画像に基づいて適正発光量を求め、求めた適正発光量に応じて設定する(適正発光量が多くなるに従って差分ステップが大きくなるように設定する。)。これにより、プリ発光による赤目軽減効果も得ることができ、効率よく赤目の発生を防止することができる。
According to the invention of
請求項4に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影方法において、所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせて複数回本撮影することを特徴とする撮影方法を提供する。 In order to achieve the above object, the invention according to claim 4 obtains an appropriate flash amount at the time of main shooting in advance when shooting with the flash fired at the time of main shooting, and uses the flash with the determined appropriate flash amount. In a photographing method for performing main photographing with light emission, at least one of photographing sensitivity or a photographing aperture is gradually shifted from the proper photographing sensitivity or the proper photographing aperture to the under side in a predetermined difference step, and plural photographing is performed. Provide a shooting method.
請求項4に係る発明によれば、事前に求めた適正発光量に応じた差分ステップで撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフト(撮影感度を適正撮影感度から段階的に下げる方向にシフト、又は、撮影絞りを適正撮影絞りから段階的に絞る方向にシフト)させて複数回本撮影が行われる。上記のように、赤目は、フラッシュ光が被写体の網膜の毛細血管に反射して、カメラのレンズに戻ることにより発生する現象であるので、撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせることにより、軽減させることができる。そこで、撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせて複数回フラッシュ撮影することにより、簡単に赤目を目立たなくした画像を得ることができる。この際、シフトさせる差分ステップは、たとえば、事前に求めた適正発光量に応じて設定することにより、適切に設定することができる。すなわち、赤目はフラッシュの発光量が大きいほど顕著に現れるので、事前に求めた適正発光量が大きいほど差分ステップを大きく取ることにより、適切に各回の撮影感度又は撮影絞りを設定することができ、赤目の目立たない画像を効率よく簡単に得ることができる。なお、減少させる差分ステップは、一定の値に設定することもできる。 According to the fourth aspect of the present invention, at least one of the photographing sensitivity and the photographing aperture is gradually shifted from the proper photographing sensitivity or the proper photographing aperture to the under side in a difference step corresponding to the appropriate light emission amount obtained in advance (the photographing sensitivity). Is shifted in a stepwise direction from the appropriate shooting sensitivity, or the shooting aperture is shifted in a stepped direction from the proper shooting aperture), and the multiple shooting is performed. As described above, red eye is a phenomenon that occurs when flash light is reflected by capillaries of the subject's retina and returns to the lens of the camera. This can be mitigated by shifting gradually from the photographing aperture to the under side. Therefore, it is possible to easily obtain an image in which the red eye is inconspicuous by performing flash photography a plurality of times by shifting at least one of the imaging sensitivity and the imaging aperture gradually from the appropriate imaging sensitivity or the appropriate imaging aperture to the under side. At this time, the difference step to be shifted can be appropriately set, for example, by setting according to the appropriate light emission amount obtained in advance. That is, the red eye appears more prominently as the flash emission amount is larger, so the larger the appropriate emission amount obtained in advance, the larger the difference step, the appropriate shooting sensitivity or shooting aperture can be set each time, It is possible to efficiently and easily obtain an image with inconspicuous red eyes. The difference step to be decreased can be set to a constant value.
請求項5に係る発明は、前記目的を達成するために、本撮影前に画像を撮影し、得られた画像から被写体の顔を検出し、被写体の顔が検出された場合にのみ、撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせて複数回本撮影することを特徴とする請求項4に記載の撮影方法を提供する。
In order to achieve the above object, the invention according to claim 5 shoots an image before actual shooting, detects the subject's face from the obtained image, and only when the subject's face is detected, the shooting sensitivity. Alternatively, the photographing method according to
請求項5に係る発明によれば、本撮影前に画像を撮影し、得られた画像から被写体の顔を検出し、被写体の顔が検出された場合にのみ、撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせて複数回本撮影する。すなわち、風景撮影などのように、被写体に顔が含まれない場合、赤目は生じ得ないので、このような場合は、複数回の撮影は行わず、通常通り適正発光量でフラッシュを発光させて、1回だけ本撮影を行う。これにより、無駄な発光、撮影を防止できる。 According to the fifth aspect of the present invention, at least one of the photographing sensitivity and the photographing aperture is taken only when an image is photographed before the main photographing, the face of the subject is detected from the obtained image, and the face of the subject is detected. Is gradually shifted from the appropriate shooting sensitivity or the appropriate shooting aperture to the under side in order to perform multiple shooting. In other words, red eyes cannot occur when the subject does not include a face, such as in landscape photography.In this case, the flash is not emitted multiple times and the flash is emitted as usual. Take a real shot only once. Thereby, useless light emission and photography can be prevented.
請求項6に係る発明は、前記目的を達成するために、前記差分ステップは、調光結果に基づいて求めることを特徴とする請求項4又は5に記載の撮影方法を提供する。
The invention according to claim 6 provides the imaging method according to
請求項6に係る発明によれば、差分ステップは、調光結果に基づいて求められる。たとえば、本撮影前にフラッシュをプリ発光させ、得られた画像に基づいて適正発光量を求め、求めた適正発光量に応じて設定する(適正発光量が多くなるに従って差分ステップが大きくなるように設定する。)。これにより、プリ発光による赤目軽減効果も得ることができ、効率よく赤目の発生を防止することができる。 According to the invention which concerns on Claim 6, a difference step is calculated | required based on the light control result. For example, the flash is pre-flashed before the actual shooting, the appropriate light emission amount is obtained based on the obtained image, and set according to the obtained appropriate light emission amount (so that the difference step increases as the appropriate light emission amount increases). Set.) Thereby, the red-eye reduction effect by pre-light emission can also be acquired, and generation | occurrence | production of red eyes can be prevented efficiently.
請求項7に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影方法において、所定の差分ステップでフラッシュの発光量を適正発光量から段階的に増加させて複数回本撮影し、本撮影により得られた各画像から赤目を検出し、赤目が検出された画像に対して画像処理により赤目補正することを特徴とする撮影方法を提供する。 In order to achieve the above object, the invention according to claim 7 obtains an appropriate flash amount of the flash at the time of the main shooting in advance when shooting with the flash fired at the time of the main shooting. In the shooting method of shooting with flash, the flash amount is gradually increased from the appropriate flash amount in a predetermined difference step, and multiple shots are taken, and red eyes are detected from each image obtained by the shot, Provided is a photographing method characterized in that red-eye correction is performed by image processing on an image in which red-eye is detected.
請求項7に係る発明によれば、所定の差分ステップでフラッシュの発光量を適正発光量から段階的に増加させて複数回本撮影が行われる。そして、撮影により得られた各画像から赤目が検出され、赤目が検出された画像に対して画像処理により赤目補正が行われる。撮影された画像から赤目を検出し、画像処理により赤目補正を行う場合、赤目は、その領域が大きいほど検出しやすく、色相も赤目未発生時との差分が大きいほど検出しやすくなる。一方、赤目は、フラッシュの反射光が増えるほど顕著になる。そこで、発光量を段階的に増やして複数回フラッシュ撮影することにより、赤目が検出しやすい画像を得て、適切に赤目補正を行う。この際、増加させる差分ステップは、たとえば、一定の値、又は、事前に求めた適正発光量に応じて設定する。なお、事前に求めた適正発光量に応じて設定した場合には、より適切に設定することができる。すなわち、赤目はフラッシュの発光量が大きいほど顕著に現れるので、事前に求めた適正発光量が大きいほど差分ステップを大きく取ることにより、適切に各回の発光量を設定することができ、赤目を検出しやすい画像を効率よく簡単に得ることができるようになる。 According to the seventh aspect of the present invention, the main photographing is performed a plurality of times by gradually increasing the light emission amount of the flash from the appropriate light emission amount in a predetermined difference step. Then, red-eye is detected from each image obtained by photographing, and red-eye correction is performed on the image from which red-eye is detected by image processing. When red-eye is detected from a photographed image and red-eye correction is performed by image processing, the red-eye is easier to detect as the area is larger, and the hue is also easier to detect as the difference from when no red-eye is generated. On the other hand, red eyes become more noticeable as the reflected light from the flash increases. Therefore, by increasing the amount of light emission stepwise and performing flash photography a plurality of times, an image in which red eyes are easily detected is obtained, and red-eye correction is appropriately performed. At this time, the difference step to be increased is set according to, for example, a fixed value or an appropriate light emission amount obtained in advance. In addition, when it sets according to the appropriate light emission amount calculated | required in advance, it can set more appropriately. In other words, the red eye appears more prominently as the flash light intensity increases, so the larger the appropriate light intensity obtained in advance, the larger the difference step, the more appropriate the light intensity can be set each time, and the red eye is detected. Images that are easy to do can be obtained efficiently and easily.
請求項8に係る発明は、前記目的を達成するために、本撮影により得られた各画像から被写体の顔を検出し、被写体の顔が検出された画像については、赤目補正した画像のみを記録することを特徴とする請求項7に記載の撮影方法を提供する。 In order to achieve the above object, the invention according to claim 8 detects the face of the subject from each image obtained by the actual photographing, and records only the red-eye corrected image for the image from which the subject's face is detected. An imaging method according to claim 7 is provided.
請求項8に係る発明によれば、本撮影により得られた各画像から被写体の顔が検出され、被写体の顔が検出された画像については、赤目補正した画像のみが記録される。これにより、確実に赤目補正された画像のみを記録することができ、無駄な画像が記録されるのを防止することができる(記憶媒体の容量を圧迫するのを防止することができる。)。 According to the eighth aspect of the present invention, the face of the subject is detected from each image obtained by the actual photographing, and only the red-eye corrected image is recorded for the image from which the face of the subject is detected. As a result, it is possible to reliably record only the red-eye-corrected image and prevent the useless image from being recorded (the storage medium can be prevented from being compressed).
請求項9に係る発明は、前記目的を達成するために、赤目が検出された画像について赤目らしさの評価値を求め、赤目補正された画像がある場合は、最も評価値が高い画像のみを記録することを特徴とする請求項7に記載の撮影方法を提供する。 In order to achieve the above object, the invention according to claim 9 obtains an evaluation value of redness for an image in which red eyes are detected, and when there is an image corrected for red eyes, only an image having the highest evaluation value is recorded. An imaging method according to claim 7 is provided.
請求項9に係る発明によれば、赤目が検出された画像について赤目らしさの評価値が求められ、赤目補正された画像がある場合は、最も評価値が高い画像のみが記録される。これにより、確実に赤目補正された画像のみを記録することができ、無駄な画像が記録されるのを防止することができる。 According to the ninth aspect of the present invention, an evaluation value of redness is obtained for an image in which red-eye is detected, and when there is an image corrected for red-eye, only an image having the highest evaluation value is recorded. As a result, it is possible to record only an image that has been reliably corrected for red-eye, and to prevent useless images from being recorded.
請求項10に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影方法において、所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にオーバー側にシフトさせて複数回本撮影し、本撮影により得られた各画像から赤目を検出し、赤目が検出された画像に対して画像処理により赤目補正することを特徴とする撮影方法を提供する。
In order to achieve the above object, the invention according to
請求項10に係る発明によれば、所定の差分ステップで露出を適正露出から段階的にオーバー側にシフトさせて複数回本撮影が行われる。そして、撮影により得られた各画像から赤目が検出され、赤目が検出された画像に対して画像処理により赤目補正が行われる。赤目は、フラッシュの反射光が増えるほど顕著になるので、露出を段階的にオーバー側にシフトさせて複数回フラッシュ撮影することにより、赤目が検出しやすい画像が得られ、適切に赤目補正を行うことができる。この際、増加させる差分ステップは、たとえば、一定の値、又は、事前に求めた適正発光量に応じて設定する。なお、事前に求めた適正発光量に応じて設定した場合には、より適切に設定することができる。すなわち、赤目はフラッシュの発光量が大きいほど顕著に現れるので、事前に求めた適正発光量が大きいほど差分ステップを大きく取ることにより、適切に各回の発光量を設定することができ、赤目を検出しやすい画像を効率よく簡単に得ることができるようになる。 According to the tenth aspect of the present invention, the main photographing is performed a plurality of times by gradually shifting the exposure from the proper exposure to the over side in a predetermined difference step. Then, red-eye is detected from each image obtained by photographing, and red-eye correction is performed on the image from which red-eye is detected by image processing. Red eye becomes more prominent as the amount of reflected light from the flash increases. By taking multiple flash shots with the exposure gradually shifted to the over side, an image that is easy to detect red eyes is obtained, and red-eye correction is performed appropriately. be able to. At this time, the difference step to be increased is set according to, for example, a fixed value or an appropriate light emission amount obtained in advance. In addition, when it sets according to the appropriate light emission amount calculated | required in advance, it can set more appropriately. In other words, the red eye appears more prominently as the flash light intensity increases, so the larger the appropriate light intensity obtained in advance, the larger the difference step, the more appropriate the light intensity can be set each time, and the red eye is detected. Images that are easy to do can be obtained efficiently and easily.
請求項11に係る発明は、前記目的を達成するために、本撮影により得られた各画像から被写体の顔を検出し、被写体の顔が検出された画像については、赤目補正した画像のみを記録することを特徴とする請求項10に記載の撮影方法を提供する。
According to an eleventh aspect of the present invention, in order to achieve the above object, the face of the subject is detected from each image obtained by the actual photographing, and only the red-eye corrected image is recorded for the image from which the face of the subject is detected. The imaging method according to
請求項11に係る発明によれば、本撮影により得られた各画像から被写体の顔が検出され、被写体の顔が検出された画像については、赤目補正した画像のみが記録される。これにより、確実に赤目補正された画像のみを記録することができ、無駄な画像が記録されるのを防止することができる。 According to the eleventh aspect of the invention, the face of the subject is detected from each image obtained by the actual photographing, and only the red-eye corrected image is recorded for the image from which the face of the subject is detected. As a result, it is possible to record only an image that has been reliably corrected for red-eye, and to prevent useless images from being recorded.
請求項12に係る発明は、前記目的を達成するために、赤目が検出された画像について赤目らしさの評価値を求め、赤目補正された画像がある場合は、最も評価値が高い画像のみを記録することを特徴とする請求項10に記載の撮影方法を提供する。
In order to achieve the above object, the invention according to
請求項12に係る発明によれば、赤目が検出された画像について赤目らしさの評価値が求められ、赤目補正された画像がある場合は、最も評価値が高い画像のみが記録される。これにより、確実に赤目補正された画像のみを記録することができ、無駄な画像が記録されるのを防止することができる。 According to the twelfth aspect of the present invention, an evaluation value of redness is obtained for an image in which red-eye is detected, and when there is an image corrected for red-eye, only an image having the highest evaluation value is recorded. As a result, it is possible to record only an image that has been reliably corrected for red-eye, and to prevent useless images from being recorded.
請求項13に係る発明は、前記目的を達成するために、フラッシュを発光させて撮影する撮影方法において、1回の撮影指示で、撮影直前にフラッシュをプリ発光させてフラッシュ撮影する赤目軽減フラッシュ撮影と、撮影直前にフラッシュをプリ発光させないでフラッシュ撮影する通常フラッシュ撮影の2回の撮影を実施し、撮影により得られた各画像から赤目を検出し、赤目が検出された画像に対して画像処理により赤目補正することを特徴とする撮影方法を提供する。 According to a thirteenth aspect of the present invention, in order to achieve the above object, in a photographing method in which a flash is fired, a red-eye reduction flash photographing in which a flash is pre-flashed immediately before photographing in one photographing instruction. In addition, the normal flash shooting is performed twice without taking the flash pre-flash immediately before shooting, and red eyes are detected from each image obtained by shooting, and image processing is performed on the images in which red eyes are detected. The present invention provides a photographing method characterized by red-eye correction.
請求項13に係る発明によれば、1回の撮影指示で赤目軽減フラッシュ撮影と通常フラッシュ撮影の2回の撮影が行われる。そして、撮影により得られた各画像から赤目が検出され、赤目が検出された画像に対して画像処理により赤目補正が行われる。赤目軽減フラッシュ撮影された画像は、赤目の発生を抑制することができるが、これに対して赤目検出を行って、画像処理により赤目補正を行う場合、補正すべきレベルのものであっても、通常フラッシュ撮影時に発生する赤目よりも大きさ、色の差分が小さくなるため、赤目が検出しにくくなり、適切な補正ができない場合がある。そこで、1回の撮影指示で赤目軽減フラッシュ撮影と通常フラッシュ撮影の2回の撮影を行い、いずれの撮影画像についても赤目補正を行うことにより、適切な画像を得ることができる。 According to the thirteenth aspect of the present invention, two shootings of red-eye reduction flash shooting and normal flash shooting are performed with one shooting instruction. Then, red-eye is detected from each image obtained by photographing, and red-eye correction is performed on the image from which red-eye is detected by image processing. The red-eye reduction flash image can suppress the occurrence of red-eye, but when red-eye detection is performed for this and red-eye correction is performed by image processing, Since the difference in size and color is smaller than that of red eyes that normally occur during flash photography, red eyes are difficult to detect and appropriate correction may not be possible. Therefore, an appropriate image can be obtained by performing red-eye reduction flash shooting and normal flash shooting twice with a single shooting instruction, and performing red-eye correction on any shot image.
請求項14に係る発明は、前記目的を達成するために、撮影により得られた各画像から被写体の顔を検出し、被写体の顔が検出された画像については、赤目補正した画像のみを記録することを特徴とする請求項13に記載の撮影方法を提供する。
In order to achieve the above object, the invention according to
請求項14に係る発明によれば、本撮影により得られた各画像から被写体の顔が検出され、被写体の顔が検出された画像については、赤目補正した画像のみが記録される。これにより、確実に赤目補正された画像のみを記録することができ、無駄な画像が記録されるのを防止することができる。 According to the fourteenth aspect of the present invention, the face of the subject is detected from each image obtained by the main photographing, and only the red-eye corrected image is recorded for the image from which the face of the subject is detected. As a result, it is possible to record only an image that has been reliably corrected for red-eye, and to prevent useless images from being recorded.
請求項15に係る発明は、前記目的を達成するために、赤目が検出された画像について赤目らしさの評価値を求め、赤目補正された画像がある場合は、最も評価値が高い画像のみを記録することを特徴とする請求項13に記載の撮影方法を提供する。 In order to achieve the above object, the invention according to claim 15 obtains an evaluation value of redness likeness for an image in which red-eye is detected, and when there is an image corrected for red-eye, only an image having the highest evaluation value is recorded. The imaging method according to claim 13 is provided.
請求項15に係る発明によれば、赤目が検出された画像について赤目らしさの評価値が求められ、赤目補正された画像がある場合は、最も評価値が高い画像のみが記録される。これにより、確実に赤目補正された画像のみを記録することができ、無駄な画像が記録されるのを防止することができる。 According to the fifteenth aspect of the present invention, an evaluation value of redness is obtained for an image in which red-eye is detected, and when there is an image corrected for red-eye, only an image having the highest evaluation value is recorded. As a result, it is possible to record only an image that has been reliably corrected for red-eye, and to prevent useless images from being recorded.
請求項16に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影装置において、1回の撮影指示でフラッシュの発光量を変えた本撮影の処理を複数回実行する撮影制御手段と、所定の差分ステップでフラッシュの発光量が適正発光量から段階的に減少するように各回のフラッシュの発光量を設定するフラッシュ発光量設定手段と、を備えたことを特徴とする撮影装置を提供する。 In order to achieve the above object, according to the sixteenth aspect of the present invention, in the case of shooting with the flash fired at the time of actual shooting, an appropriate flash amount of the flash at the time of actual shooting is obtained in advance, and the flash is used with the determined appropriate flash amount. In a photographing device that emits light and performs main photographing, photographing control means for executing a plurality of main photographing processes in which the amount of flash light is changed by one photographing instruction, and the amount of light emitted by the flash at a predetermined difference step are set to an appropriate light amount. And a flash light emission amount setting means for setting the light emission amount of each flash so as to decrease step by step.
請求項16に係る発明によれば、請求項1に係る発明と同様に、所定の差分ステップでフラッシュの発光量を適正発光量から段階的に減少させて複数回本撮影が行われる。 According to the sixteenth aspect of the present invention, as in the first aspect of the present invention, the main photographing is performed a plurality of times by gradually reducing the flash light emission amount from the appropriate light emission amount in a predetermined difference step.
請求項17に係る発明は、前記目的を達成するために、撮影により得られた画像から被写体の顔を検出する顔検出手段を備え、前記撮影制御手段は、本撮影前に撮影された画像から前記顔検出手段で被写体の顔が検出された場合にのみ、フラッシュの発光量を変えた本撮影の処理を複数回実行することを特徴とする請求項16に記載の撮影装置を提供する。
In order to achieve the above object, the invention according to claim 17 includes face detection means for detecting the face of a subject from an image obtained by photographing, and the photographing control means is configured to detect an image taken before the actual photographing. 17. The photographing apparatus according to
請求項17に係る発明によれば、請求項2に係る発明と同様に、本撮影前に被写体の顔が検出された場合にのみ複数回本撮影が行われる。
According to the invention of claim 17, as in the invention of
請求項18に係る発明は、前記目的を達成するために、調光結果に基づいて前記差分ステップを算出する差分ステップ算出手段を備えたことを特徴とする請求項16又は17に記載の撮影装置を提供する。
The invention according to
請求項18に係る発明によれば、請求項3に係る発明と同様に、差分ステップが調光結果に基づいて算出される。
According to the invention of
請求項19に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影装置において、1回の撮影指示で撮影感度又は撮影絞りの少なくとも一方を変えた本撮影の処理を複数回実行する撮影制御手段と、所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方が適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトするように各回の撮影感度又は撮影絞りを設定する設定手段と、を備えたことを特徴とする撮影装置を提供する。 In order to achieve the above object, according to the nineteenth aspect of the present invention, in the case of shooting with the flash fired at the time of actual shooting, an appropriate flash amount of the flash at the time of actual shooting is obtained in advance, and the flash is used with the determined appropriate flash amount. In a photographing apparatus that performs main photographing with light emission, photographing control means for executing a plurality of main photographing processes in which at least one of photographing sensitivity or photographing aperture is changed by one photographing instruction, and photographing sensitivity or photographing at a predetermined difference step. There is provided a photographing apparatus comprising: a setting means for setting a photographing sensitivity or a photographing aperture for each time so that at least one of the diaphragms is shifted to an underside in a stepwise manner from the appropriate photographing sensitivity or the appropriate photographing aperture. .
請求項19に係る発明によれば、請求項4に係る発明と同様に、撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせて複数回本撮影が行われる。 According to the nineteenth aspect of the present invention, as in the fourth aspect, at least one of the photographing sensitivity or the photographing diaphragm is gradually shifted from the appropriate photographing sensitivity or the suitable photographing aperture to the under side in stages to perform the plural photographing. Is done.
請求項20に係る発明は、前記目的を達成するために、撮影により得られた画像から被写体の顔を検出する顔検出手段を備え、前記撮影制御手段は、本撮影前に撮影された画像から前記顔検出手段で被写体の顔が検出された場合にのみ、撮影感度又は撮影絞りの少なくとも一方を変えた本撮影の処理を複数回実行することを特徴とする請求項19に記載の撮影装置を提供する。
In order to achieve the above object, the invention according to
請求項20に係る発明によれば、請求項5に係る発明と同様に、本撮影前に被写体の顔が検出された場合にのみ複数回本撮影が行われる。 According to the twentieth aspect of the present invention, as in the fifth aspect of the present invention, the main photographing is performed a plurality of times only when the face of the subject is detected before the main photographing.
請求項21に係る発明は、前記目的を達成するために、調光結果に基づいて前記差分ステップを算出する差分ステップ算出手段を備えたことを特徴とする請求項19又は20に記載の撮影装置を提供する。 The invention according to claim 21 is provided with a difference step calculating means for calculating the difference step based on a dimming result in order to achieve the object. I will provide a.
請求項21に係る発明によれば、請求項6に係る発明と同様に、差分ステップが調光結果に基づいて算出される。 According to the invention of claim 21, as in the invention of claim 6, the difference step is calculated based on the dimming result.
請求項22に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影装置において、1回の撮影指示でフラッシュの発光量を変えた本撮影の処理を複数回実行する撮影制御手段と、所定の差分ステップでフラッシュの発光量が適正発光量から段階的に増加するように各回のフラッシュの発光量を設定するフラッシュ発光量設定手段と、撮影により得られた画像から赤目を検出する赤目検出手段と、前記赤目検出手段で赤目が検出された画像に対して画像処理により赤目補正する赤目補正手段と、を備えたこと特徴とする撮影装置を提供する。
In order to achieve the above object, the invention according to
請求項22に係る発明によれば、請求項7に係る発明と同様に、所定の差分ステップでフラッシュの発光量を適正発光量から段階的に増加させて複数回本撮影が行われる。そして、撮影により得られた各画像から赤目が検出され、赤目が検出された画像に対して画像処理により赤目補正が行われる。 According to the twenty-second aspect of the invention, as in the seventh aspect of the invention, the main photographing is performed a plurality of times by gradually increasing the flash light emission amount from the appropriate light emission amount in a predetermined difference step. Then, red-eye is detected from each image obtained by photographing, and red-eye correction is performed on the image from which red-eye is detected by image processing.
請求項23に係る発明は、前記目的を達成するために、撮影により得られた画像から被写体の顔を検出する顔検出手段と、前記顔検出手段で被写体の顔が検出された画像について、前記赤目検出手段で赤目補正された画像のみを記録する記録制御手段と、を備えたことを特徴とする請求項22に記載の撮影装置を提供する。
According to a twenty-third aspect of the present invention, in order to achieve the above object, a face detection unit that detects a face of a subject from an image obtained by photographing, and an image in which the face of the subject is detected by the face detection unit, 23. The photographing apparatus according to
請求項23に係る発明によれば、請求項8に係る発明と同様に、被写体の顔が検出された画像については、赤目補正した画像のみが記録される。 According to the twenty-third aspect of the invention, as in the eighth aspect of the invention, only the red-eye corrected image is recorded for the image from which the face of the subject is detected.
請求項24に係る発明は、前記目的を達成するために、前記赤目検出手段で赤目が検出された画像について赤目らしさの評価値を算出する評価値算出手段と、前記赤目補正手段で赤目補正された画像がある場合に最も評価値が高い画像のみを記録する記録制御手段と、を備えたことを特徴とする請求項22に記載の撮影装置を提供する。
According to a twenty-fourth aspect of the present invention, in order to achieve the object, the red-eye correction is performed by the evaluation value calculating unit that calculates the evaluation value of the red-eyeness for the image in which the red eye is detected by the red-eye detecting unit, and the red-eye correcting unit. 23. The photographing apparatus according to
請求項24に係る発明によれば、請求項9に係る発明と同様に、赤目補正された画像がある場合は、検出時に最も赤目らしいと判定された画像のみが記録される。 According to the twenty-fourth aspect, as in the ninth aspect, when there is a red-eye corrected image, only the image determined to be most likely red-eye at the time of detection is recorded.
請求項25に係る発明は、前記目的を達成するために、本撮影時にフラッシュを発光させて撮影する場合に事前に本撮影時におけるフラッシュの適正発光量を求め、求めた適正発光量でフラッシュを発光させて本撮影する撮影装置において、1回の撮影指示で撮影感度又は撮影絞りの少なくとも一方を変えた本撮影の処理を複数回実行する撮影制御手段と、所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方が適正撮影感度又は撮影絞りから段階的にオーバー側にシフトするように各回の撮影感度又は撮影絞りを設定する設定手段と、撮影により得られた画像から赤目を検出する赤目検出手段と、前記赤目検出手段で赤目が検出された画像に対して画像処理により赤目補正する赤目補正手段と、を備えたこと特徴とする撮影装置を提供する。 In order to achieve the above object, the invention according to claim 25 is to obtain an appropriate flash amount at the time of main shooting in advance when shooting with the flash being fired at the time of actual shooting, and to use the flash with the determined appropriate flash amount. In a photographing apparatus that performs main photographing with light emission, photographing control means for executing a plurality of main photographing processes in which at least one of photographing sensitivity or photographing aperture is changed by one photographing instruction, and photographing sensitivity or photographing at a predetermined difference step. Setting means for setting the photographing sensitivity or the photographing aperture at each time so that at least one of the diaphragms shifts gradually from the photographing sensitivity to the appropriate photographing sensitivity, or the red-eye detecting means for detecting red eyes from the image obtained by photographing And a red-eye correction unit that corrects red-eye by image processing on an image in which red-eye is detected by the red-eye detection unit. Subjected to.
請求項25に係る発明によれば、請求項10と同様に、所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にオーバー側にシフトさせて複数回本撮影が行われる。そして、撮影により得られた各画像から赤目が検出され、赤目が検出された画像に対して画像処理により赤目補正が行われる。
According to the invention of claim 25, as in the case of
請求項26に係る発明は、前記目的を達成するために、撮影により得られた画像から被写体の顔を検出する顔検出手段と、前記顔検出手段で被写体の顔が検出された画像について、前記赤目検出手段で赤目補正された画像のみを記録する記録制御手段と、を備えたことを特徴とする請求項25に記載の撮影装置を提供する。 According to a twenty-sixth aspect of the present invention, in order to achieve the above object, a face detection unit that detects a face of a subject from an image obtained by photographing, and an image in which the face of the subject is detected by the face detection unit, 26. The photographing apparatus according to claim 25, further comprising: a recording control unit that records only an image that has been red-eye corrected by the red-eye detection unit.
請求項26に係る発明によれば、請求項11に係る発明と同様に、被写体の顔が検出された画像については、赤目補正した画像のみが記録される。 According to the twenty-sixth aspect of the invention, as in the eleventh aspect of the invention, only the red-eye corrected image is recorded for the image in which the face of the subject is detected.
請求項27に係る発明は、前記目的を達成するために、前記赤目検出手段で赤目が検出された画像について赤目らしさの評価値を算出する評価値算出手段と、前記赤目補正手段で赤目補正された画像がある場合に最も評価値が高い画像のみを記録する記録制御手段と、を備えたことを特徴とする請求項25に記載の撮影装置を提供する。 According to a twenty-seventh aspect of the present invention, in order to achieve the above object, the red-eye correction is performed by the evaluation value calculating unit that calculates an evaluation value of redness for the image in which the red eye is detected by the red-eye detecting unit, and the red-eye correcting unit. 26. The photographing apparatus according to claim 25, further comprising: a recording control unit that records only an image having the highest evaluation value when there is an image.
請求項27に係る発明によれば、請求項12に係る発明と同様に、赤目補正された画像がある場合は、検出時に最も赤目らしいと判定された画像のみが記録される。 According to the twenty-seventh aspect of the invention, as in the twelfth aspect of the invention, when there is an image that has been corrected for red-eye, only the image that is determined to be most likely red-eye at the time of detection is recorded.
請求項28に係る発明は、前記目的を達成するために、フラッシュを発光させて撮影する撮影装置において、1回の撮影指示で、撮影直前にフラッシュをプリ発光させてフラッシュ撮影する赤目軽減フラッシュ撮影と、撮影直前にフラッシュをプリ発光させないでフラッシュ撮影する通常フラッシュ撮影の2回の撮影を実施する撮影制御手段と、撮影により得られた各画像から赤目を検出する赤目検出手段と、前記赤目検出手段で赤目が検出された画像に対して画像処理により赤目補正する赤目補正手段と、を備えたことを特徴とする撮影装置を提供する。 According to a twenty-eighth aspect of the present invention, in order to achieve the above object, in a photographing apparatus that shoots with a flash, a red-eye reduction flash shoot in which a flash is pre-flashed immediately before shooting in one shooting instruction. A shooting control unit that performs two shootings of normal flash shooting without flashing immediately before shooting, a red-eye detection unit that detects red-eye from each image obtained by shooting, and the red-eye detection There is provided a photographing apparatus comprising: red-eye correction means for correcting red-eye by image processing on an image in which red-eye is detected by the means.
請求項28に係る発明によれば、請求項13に係る発明と同様に、1回の撮影指示で赤目軽減フラッシュ撮影と通常フラッシュ撮影の2回の撮影が行われる。そして、撮影により得られた各画像から赤目が検出され、赤目が検出された画像に対して画像処理により赤目補正が行われる。
According to the invention of
請求項29に係る発明は、前記目的を達成するために、撮影により得られた画像から被写体の顔を検出する顔検出手段と、前記顔検出手段で被写体の顔が検出された画像について、前記赤目検出手段で赤目補正された画像のみを記録する記録制御手段と、を備えたことを特徴とする請求項28に記載の撮影装置を提供する。
In order to achieve the above object, the invention according to claim 29 relates to a face detection unit that detects a face of a subject from an image obtained by photographing, and an image in which the face of the subject is detected by the face detection unit. 29. The photographing apparatus according to
請求項29に係る発明によれば、請求項14に係る発明と同様に、被写体の顔が検出された画像については、赤目補正した画像のみが記録される。
According to the invention of claim 29, as in the invention of
請求項30に係る発明は、前記目的を達成するために、前記赤目検出手段で赤目が検出された画像について赤目らしさの評価値を算出する評価値算出手段と、前記赤目補正手段で赤目補正された画像がある場合に最も評価値が高い画像のみを記録する記録制御手段と、を備えたことを特徴とする請求項28に記載の撮影装置を提供する。
According to a thirty-sixth aspect of the present invention, in order to achieve the above object, the red-eye correction is performed by the evaluation value calculating unit that calculates the evaluation value of the red-eyeness for the image in which the red eye is detected by the red-eye detecting unit, and the red-eye correcting unit. 29. The photographing apparatus according to
請求項30に係る発明によれば、請求項15に係る発明と同様に、赤目補正された画像がある場合は、検出時に最も赤目らしいと判定された画像のみが記録される。 According to the thirty-third aspect, as in the fifteenth aspect, when there is an image that has been corrected for red-eye, only the image that is determined to be most likely red-eye at the time of detection is recorded.
本発明によれば、撮影者の意図する構図で赤目のない画像を簡単に撮影することができる。 According to the present invention, it is possible to easily capture an image without red eyes in a composition intended by the photographer.
以下、添付図面を参照して本発明に係る撮影方法及び装置を実施するための最良の形態について説明する。 DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, the best mode for carrying out an imaging method and apparatus according to the invention will be described with reference to the accompanying drawings.
図1は、本発明が適用された撮影装置の第1の実施形態の概略構成を示すブロック図である。 FIG. 1 is a block diagram showing a schematic configuration of a first embodiment of a photographing apparatus to which the present invention is applied.
この撮影装置10は、画像を撮像素子で撮像して、デジタルデータとして記録するデジタルカメラとして構成されており、撮影光学系12、撮像素子14、アナログ信号処理部16、デジタル信号処理部18、記憶メディア20、操作部22、液晶モニタ(LCD)24、電源26、フラッシュ28等を備えて構成されている。
The photographing
この撮影装置10の全体の動作は、デジタル信号処理部18に備えられたCPU30によって統括制御されており、CPU30は、所定の制御プログラムに従って動作することにより、装置の各部の動作を制御する。バス32を介してCPU30に接続されたフラッシュROM34には、このCPU30が実行する制御プログラムや制御に必要な各種データが記録されている。CPU30は、このフラッシュROM34に記録された制御プログラムをSDRAM36にロードし、SDRAM36を作業領域として使用しながらロードした制御プログラムを逐次実行することにより、装置全体の動作を制御する。
The overall operation of the photographing
撮影光学系12は、いわゆるAFズームレンズで構成されており、ズームレンズ12z、フォーカスレンズ12f、アイリス絞り12i、メカシャッタ12s等を備えて構成されている。
The photographing
ズームレンズ12zは、図示しないズームモータに駆動されることにより、光軸上を前後移動して、焦点距離を可変し、フォーカスレンズ12fは、図示しないフォーカスモータに駆動されることにより、光軸上を前後移動して、焦点位置を可変する。また、アイリス絞り12iは、図示しないアイリスモータに駆動されることにより、その開口量を可変して、撮像素子14への入射光量を調整し、シャッタ12sは、図示しないシャッタモータに駆動されることにより開閉して、撮像素子14への露光/遮光を行う。
The
CPU30は、レンズ駆動回路38を介してズームモータ、フォーカスモータ、アイリスモータ、シャッタモータの駆動を制御することにより、ズームレンズ12z、フォーカスレンズ12f、アイリス絞り12i、シャッタ12sの動作を制御する。
The
撮像素子14は、単板式のカラーCCDで構成されており、撮影光学系12を介して入射した光を電気信号(画像信号)に変換する。この撮像素子14は、アナログ信号処理部16に備えられたタイミングジェネレータ(TG)40から与えられる駆動信号に従って動作し、CPU30は、このタイミングジェネレータ40を制御することにより、撮像素子14の動作を制御する。なお、本実施の形態では、撮像素子14に単板式のカラーCCDを使用しているが、使用する撮像素子は、これに限定されるものではなく、CMOS等の他の構成の撮像素子を使用することもできる。
The
アナログ信号処理部16は、撮像素子14から出力された画像信号に各種アナログ信号処理を施し、デジタル信号に変換して出力する。このアナログ信号処理部16は、タイミングジェネレータ40、相関二重サンプリング回路(CDS)42、オート・ゲイン・コントロール(AGC)回路44、A/Dコンバータ46等を備えている。
The analog
タイミングジェネレータ40は、上記のようにCPU30からの指令に従い撮像素子14に駆動信号を出力する。撮像素子14は、このタイミングジェネレータ40から与えられる駆動信号に従って動作し、画像信号を出力する。
The
相関二重サンプリング回路42は、撮像素子14から得られた画像信号を相関二重サンプリング処理し、画像信号に含まれるリセットノイズを取り除く。
The correlated
オート・ゲイン・コントロール回路44は、相関二重サンプリング処理された画像信号を増幅し、一定レベルの大きさにコントロールする。
The auto
A/Dコンバータ46は、増幅されたアナログの画像信号をデジタルの画像信号に変換してデジタル信号処理部18に出力する。
The A /
デジタル信号処理部18は、アナログ信号処理部16から出力されたデジタルの画像信号を取り込み、各種信号処理を施して、輝度信号(Y信号)と色差信号(Cr、Cb信号)とからなる画像信号(YC信号)を生成する。そして、生成された画像信号を圧縮して、記憶メディア20に記録する。また、記憶メディア20に記録された圧縮画像データを伸張して、被圧縮の画像信号を生成し、液晶モニタ24に出力する。また、必要に応じて撮影画像から人物の顔を検出し、赤目を検出し、赤目の補正を行う。
The digital
このデジタル信号処理部18は、上述したCPU30、画像バッファ50、YC処理回路52、圧縮・伸張処理回路54、メディアコントローラ56、AE検出回路58、AF検出回路60、顔検出回路62、赤目検出・補正回路64、フラッシュ発光時間算出回路68、エンコーダ70等を備えて構成されている。
The digital
画像バッファ50は、CPU30からの指令に従い、A/Dコンバータ46から出力された1画面分の画像信号を蓄積する。
The
YC処理回路52は、CPU30からの指令に従い、画像バッファ50に蓄積された1画面分の画像信号を取り込み、各種信号処理を施して輝度信号(Y)と色差信号(Cr信号,Cb信号)とからなる画像信号(YC信号)を生成する。
The
圧縮・伸張処理回路54は、CPU30からの指令に従い、入力されたYCデータに圧縮処理を施し、圧縮画像データを生成する。また、CPU30からの指令に従い、入力された圧縮画像データに伸張処理を施し、非圧縮のYCデータを生成する。
The compression /
メディアコントローラ56は、CPU30からの指令に従い、記憶メディア20にアクセスし、データの記録及び読み出しを行う。なお、記憶メディア20については、内蔵式のものでもよいし、また、メモリカードのように着脱式のものであってもよい。本実施の形態では、着脱式のメモリカードが用いられるものとする。
The
AE検出回路58は、CPU30からの指令に従い、画像バッファ50に蓄積された1画面分の画像信号からAE制御に必要な積算値を算出する。ここでは、1画面を複数のエリア(たとえば16×16)に分割し、分割したエリアごとにR、G、Bの画像信号の積算値を算出する。CPU30は、このAE検出回路58から得た積算値に基づいて撮影シーンの明るさを検出(測光)し、その結果に基づいて撮影に適した露出値(EV値)を算出する。そして、得られた露出値に基づき適正撮影感度を設定し(撮影感度がユーザによって指定されている場合は、指定された撮影感度が適正撮影感度に設定される。)、所定のプログラム線図に従って適正露出(撮影絞りと適正シャッタ速度)を決定する。
The
AF検出回路60は、CPU30からの指令に従い、画像バッファ50に蓄積された1画面分の画像信号からAF制御に必要な積算値を算出する。ここで、本実施の形態の撮影装置10は、画像のコントラストによりAF制御を行うものとし(いわゆるコントラストAF)、AF検出回路60は、入力された画像信号から画像の鮮鋭度を示す焦点評価値(たとえば、所定のフォーカスエリア内におけるG信号の高周波成分の積算値)を算出する。CPU30は、フォーカスレンズ12fを至近から無限遠まで移動させて各点で焦点評価値を算出し、焦点評価値が極大となる位置をサーチする。そして、その焦点評価値が極大となる位置を合焦位置として、その位置にフォーカスレンズ12fを移動させる。
The
顔検出回路62は、CPU30からの指令に従い、YC処理回路52で生成された画像信号から画像中の顔領域を抽出する。この顔領域の抽出処理は、公知の方法を用いることができ、たとえば、エッジ検出または形状パターン検出による顔検出方法、色相抽出又は肌色抽出による顔検出方法、候補領域を抽出して、この候補領域を小領域に分割し、領域ごとの特徴量を予め設定した顔領域パターンと照合して、その確度から顔領域を抽出する方法(特開2000−137788号公報参照)、顔候補領域を抽出して、各候補領域の重複度から確度を評価して顔領域を抽出する方法(特開2000−149018号公報参照)、及び、顔候補領域を抽出して、各候補領域の濃度が所定の閾値に対応する値である場合に、胴体候補領域を抽出し、顔および胴体候補領域の濃度や彩度コントラストを用いて確度を評価して、顔領域を抽出する方法(特開2000−148980号公報参照)などを用いることができる。
The
赤目検出・補正回路64は、CPU30からの指令に従い、YC処理回路52で生成された画像信号から画像中の赤目領域を抽出し、抽出された赤目領域を画像処理により補正する。
The red-eye detection /
なお、この赤目領域の抽出処理についても上記顔領域の抽出処理の方法と同様に公知の方法を用いることができ、たとえば、顔検出回路62で検出された顔領域からエッジ検出、形状パターン検出、位置情報又は色相情報等を用いて瞳抽出を行い、色相等から赤目を検出する方法や、エッジ検出、形状パターン検出又は位置情報等を用いて目を抽出し、この目の画像データの輝度ヒストグラムから低輝度領域を抽出して、抽出した低輝度領域を収縮処理して瞳の領域を抽出し、色相等から赤目を検出する方法、顔領域をxy平面として各画素毎に色相等を用いた画像特徴量zを求め、xyzの三次元空間を設定してz値の山状分布からxy平面を分割し、分割領域ごとに形状情報や統計的画像特徴量等から赤目を検出する方法(特開2000−76427号公報参照)などを用いることができる。
As for the red-eye region extraction process, a known method can be used in the same manner as the face region extraction process. For example, edge detection, shape pattern detection, and the like from the face region detected by the
また、抽出した赤目の補正方法についても同様に公知の方法を用いることができ、たとえば、抽出した赤目領域の色変換又は彩度低下によって赤目を補正する方法や、抽出した赤目領域で最小明度の画素に近づけるように、他の全画素の彩度又は明度を補正する方法(特開2000−76427号公報参照)などを用いることができる。 Similarly, a known method can be used for the extracted red-eye correction method, for example, a method of correcting red eye by color conversion or saturation reduction of the extracted red-eye region, A method of correcting the saturation or lightness of all other pixels so as to be close to the pixels (see JP 2000-76427 A) can be used.
フラッシュ発光時間算出回路は、本撮影時に複数回フラッシュ撮影する場合において、各回におけるフラッシュ28の発光時間(t(1)、t(2)、…、t(n_max))を適正発光時間(t_flash)から算出する。なお、この点については、後に詳述する。
The flash light emission time calculation circuit calculates the light emission time (t (1), t (2),..., T (n_max)) of the
エンコーダ70は、CPU30からの指令に従い、YC処理回路52で生成された画像信号を液晶モニタ24に表示するための信号に変換する。このエンコーダ70で変換された信号は、LCD駆動回路72を介して液晶モニタ24に出力され、これにより、液晶モニタ24に画像が再生表示される。
The
操作部22は、撮影装置10の各種操作手段であり、撮影を指示するためのシャッタボタン、撮影/再生の各種モードを設定するためのモードダイヤル、テレ/ワイドのズームを指示するためのズームボタン、メニュー画面の表示を指示するメニューボタン、操作の実行/決定等を指示する実行ボタン、操作のキャンセル等を指示するキャンセルボタン、カーソルの移動等を指示する十字ボタン、フラッシュのモードを設定するフラッシュボタン、電源ボタン等を含んで構成されており、操作に応じた信号をCPU30に出力する。CPU30は、この操作部22からの指示入力に応じた処理を実行し、各部を制御する。
The
なお、本装置において、各種の設定は、液晶モニタ24に表示されるメニュー画面によって行うようにされている。すなわち、メニューボタンでメニュー画面の表示を指示すると、液晶モニタ24にメニュー画面が表示され、このメニュー画面で各種設定を行うようにされている。たとえば、撮影時における撮影感度の設定(オート、100、200、400、800等)や画像サイズの設定(1M、3M、6M等)、ホワイトバランスの設定(オート、マニュアル、晴天、曇天、蛍光灯、白熱灯等)、測光方式の設定(マルチ、スポット、中央重点等)、AE方式の設定(オート、絞り優先、シャッタ速度優先、マニュアル、シーンプログラム等)、AF方式の設定(センター固定AF、顔検出AF、マニュアルフォーカス)、セルフタイマの設定(ON/OFF)をメニュー画面で行うことができるようにされている。
In the present apparatus, various settings are made on a menu screen displayed on the
また、必要に応じて各種動作の指示も液晶モニタ24の表示を利用して行うようにされている。たとえば、画像の選択や削除の指示等を画面の表示に従って行うことができるようにされている。 In addition, various operation instructions are also made using the display on the liquid crystal monitor 24 as necessary. For example, an image selection or deletion instruction can be performed according to the display on the screen.
電源26の電力は、図示しない電源制御回路によって各部に供給される。CPU30は、電源制御回路を制御して、各部への電力供給を制御する。
The power of the
フラッシュ28は、クセノン管によって構成されており、フラッシュ発光制御回路74によって発光が制御される。フラッシュ発光制御回路74は、CPU30からの指示に従い、撮影に同期させてフラッシュ28を発光させ、その発光時間を制御することにより発光量を調整する。なお、本実施の形態では、フラッシュ28をクセノン管で構成しているが、この他、LED等の他の光源で構成することもできる。
The
次に、以上のように構成された本実施の形態の撮影装置10の作用について説明する。
Next, the operation of the
まず、フラッシュ28を発光させないで画像を撮影する場合の処理手順について概説する。
First, an outline of a processing procedure when an image is taken without causing the
撮影装置10のモードを撮影モードに設定し、電源を投入すると、撮像素子14の駆動が開始され、撮像素子14で捉えた画像が液晶モニタ24にスルー表示される。すなわち、撮像素子14で連続的に画像が撮影され、得られた画像信号が連続的に処理されて、液晶モニタ24に出力される。
When the mode of the photographing
この際、同時に人物の顔検出が行われ、顔が検出されると、その検出された顔を囲うようにしてフレームが液晶モニタ24に表示される。なお、顔検出は次のように行われる。すなわち、撮像素子14からアナログ信号処理部16を介してデジタル信号処理部18に取り込まれた画像信号は、YC処理回路52でYC信号に変換され、顔検出回路62に加えられる。顔検出回路62は、得られたYC信号から画像中における人物の顔領域を検出し、その検出結果をCPU30に出力する。CPU30は取得した顔領域の情報に基づいて液晶モニタ24にフレームを表示させる。
At this time, a human face is detected at the same time. When a face is detected, a frame is displayed on the liquid crystal monitor 24 so as to surround the detected face. Note that face detection is performed as follows. In other words, the image signal captured by the digital
撮影者は、この液晶モニタ24に表示される画像を見て構図を決定し、シャッタボタンを押下し、撮影を指示する。CPU30は、この撮影指示応じて、AE制御の処理を実行し、被写体を測光して、適正撮影感度と適正露出を決定する。また、AF制御の処理を実行し、主要被写体に焦点を合わせる。そして、合焦後、AE処理で求めた撮影感度と露出で撮像素子14を露光し、記録用の画像を撮像する。
The photographer determines the composition by looking at the image displayed on the
撮像素子14から出力された記録用の画像信号は、アナログ信号処理部16で所要の信号処理を施され、デジタルの画像信号とされた後、デジタル信号処理部18に取り込まれ、デジタル信号処理部18の画像バッファ50に蓄積される。
The recording image signal output from the
画像バッファ50に蓄積された画像信号は、CPU30の制御の下、YC処理回路52に加えられ、所定の信号処理が施されて、輝度信号と色差信号とからなるYC信号が生成される。そして、生成されたYC信号は、圧縮・伸張処理回路54に加えられ、所定の圧縮処理が施された後、メディアコントローラ56を介して記憶メディア20に記録される。
The image signal stored in the
次に、フラッシュ28を発光させて撮影する場合の処理手順について説明する。
Next, a processing procedure for shooting with the
本実施の形態の撮影装置10において、フラッシュ撮影する場合、まず、本撮影(記録用の画像の撮影)に先立ってフラッシュ28を所定光量でプリ発光させて被写体を撮影し、得られた画像の明るさに基づいて本撮影時におけるフラッシュ28の適正発光量(適正発光時間)を決定する。そして、顔の有無に基づき本撮影の撮影回数を決定し、各回における発光量(発光時間)を適正発光量に基づいて決定する。すなわち、顔が検出された場合は、赤目が発生する可能性があるので、本撮影の撮影回数を複数回(本実施の形態では3回)に設定し、各回における発光量を適正発光量に基づいて決定する(顔が検出されない場合は、赤目は発生しえないので、本撮影の回数は1回とし、適正発光量でフラッシュ28を発光させて本撮影する。)。この際、各回における発光量は、所定の差分ステップで適正発光量から段階的に小さくなるように設定し、その差分ステップを適正発光量に基づいて決定する。すなわち、適正発光量が大きい程、赤目が目立つようになるので、適正発光量が大きい程、差分ステップが大きくなるように決定する。そして、このように決定した、撮影回数、発光量でフラッシュ撮影を行う。
In the photographing
図2は、本実施の形態の撮影装置10によるフラッシュ撮影時における処理手順を示すフローチャートである。
FIG. 2 is a flowchart showing a processing procedure at the time of flash photographing by the photographing
シャッタボタンの押下により、本撮影の指示が行われると、CPU30は、AE制御の処理を実行し、被写体を測光して、適正撮影感度と適正露出を設定する(ステップS10)。また、AF制御の処理を実行し、主要被写体に焦点を合わせる(ステップS11)。
When an instruction for actual photographing is issued by pressing the shutter button, the
この後、CPU30は、フラッシュ発光制御回路74にコマンドを出力し、フラッシュ28を所定の発光量(発光時間)でプリ発光させる(ステップS12)。そして、そのプリ発光時に撮像素子14で撮像された画像に基づいて適正発光量(適正発光時間)を算出する。すなわち、プリ発光時に撮像素子14で撮像された画像の画像信号をAE検出回路58に加え、分割エリアごとのR、G、Bの画像信号の積算値を算出させる(ステップS13)。そして、このAE検出回路58から得た積算値に基づいて適正発光時間(t_flash)を算出する(ステップS14)。
Thereafter, the
適正発光時間(t_flash)の算出は、次のように行われる。すなわち、まず、プリ発光時の積算値(ipre)と、スルー画時の積算値(ith)と、目標積算値(iob)とから、次式『ΔEV = log(iob / (ipre - ith )) / log2』によりΔEV値を算出する(logは常用対数)。そして、図5に示す所定の変換テーブルを用いてΔEV値をフラッシュ発光時間に変換し、適正発光時間(t_flash)を算出する。 The calculation of the appropriate light emission time (t_flash) is performed as follows. That is, first, from the integrated value during pre-flash (ipre), integrated value during live view (ith), and target integrated value (iob), the following equation [ΔEV = log (iob / (ipre-ith)) / EV2] to calculate the ΔEV value (log is the common logarithm). Then, using the predetermined conversion table shown in FIG. 5, the ΔEV value is converted into the flash emission time, and the appropriate emission time (t_flash) is calculated.
この変換テーブルは、ΔEV値とフラッシュの発光時間との対応テーブルであり、ΔEV値に対応した発光時間でフラッシュを発光すると、積算した場合に目標積算値になるような発光となる。 This conversion table is a correspondence table between the ΔEV value and the flash emission time. When the flash is emitted for the emission time corresponding to the ΔEV value, the emission becomes a target integrated value when integrated.
このようにして、フラッシュ28の適正発光時間(t_flash)が算出されると、CPU30は、本撮影の撮影回数(n_max)を設定する処理を実行する(ステップS15)。
In this way, when the appropriate light emission time (t_flash) of the
図3は、この撮影回数(n_max)の設定処理の手順を示すフローチャートである。 FIG. 3 is a flowchart showing the procedure for setting the number of times of photographing (n_max).
まず、プリ発光時に撮像素子14で撮像された画像のYC信号を顔検出回路62に加え、画像中の顔領域を検出させる。この顔判定の結果はSDRAM36に格納され、CPU30は、その顔検出の結果に基づいて顔の有無を判定する(ステップS30)。
First, a YC signal of an image captured by the
この判定の結果、顔ありと判定すると、CPU30は、本撮影の撮影回数(n_max)を3に設定し(ステップS31)、顔なしと判定すると、本撮影の撮影回数(n_max)を1に設定する(ステップS32)。すなわち、顔がない場合は、赤目が生じ得ないので、本撮影の回数は1回とし、顔がある場合にのみ複数回(本実施の形態では3回)本撮影するように設定する。これにより、無駄なフラッシュ撮影を防止でき、電力消費、記憶メディア20の容量圧迫を防止できる。設定された本撮影の撮影回数(n_max)の情報はSDRAM36に格納される。
As a result of this determination, if it is determined that there is a face, the
なお、本例ではプリ発光時における顔検出の結果に基づいて本撮影の撮影回数を設定しているが、顔検出のタイミングは、これに限定されるものではない。それより前又は後に得られた画像の顔検出の結果に基づいて撮影回数を設定するようにしてもよい。 In this example, the number of times of actual photographing is set based on the result of face detection at the time of pre-flash, but the timing of face detection is not limited to this. You may make it set the frequency | count of imaging | photography based on the result of the face detection of the image obtained before or after that.
以上のようにして本撮影時における撮影回数が設定されると、次に、CPU30は、フラッシュ発光時間算出回路68に対して、各回における実際のフラッシュ28の発光時間(t(1)、t(2)、…t(n_max))の算出処理を行わせる(ステップS16)。
When the number of times of photographing at the time of main photographing is set as described above, the
図4は、このフラッシュ発光時間算出回路68による実際のフラッシュ28の発光時間の算出処理の手順を示すフローチャートである。
FIG. 4 is a flowchart showing the procedure of the
まず、CPU30から適正発光時間(t_flash)の情報を取得する(ステップS40)。そして、図5に示す所定の変換テーブルを用いて適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換し(ステップS41)、変換したΔEV値(ΔEV_flash)と閾値とを比較する(ステップS42)。 First, information on the appropriate light emission time (t_flash) is acquired from the CPU 30 (step S40). Then, the appropriate light emission time (t_flash) is converted into the ΔEV value (ΔEV_flash) using the predetermined conversion table shown in FIG. 5 (step S41), and the converted ΔEV value (ΔEV_flash) is compared with the threshold (step S42). .
そして、その閾値との比較において差分ステップ(ΔEV_delta)を設定する。すなわち、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えていると判定すると、差分ステップ(ΔEV_delta)にΔEV_delta1を設定する(ステップS43)。一方、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値以下と判定すると、差分ステップ(ΔEV_delta)にΔEV_delta2を設定する(ステップS44)。 Then, a difference step (ΔEV_delta) is set in comparison with the threshold. That is, if it is determined that the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value, ΔEV_delta1 is set in the difference step (ΔEV_delta) (step S43). On the other hand, when it is determined that the ΔEV value (ΔEV_flash) converted from the appropriate light emission time is equal to or smaller than the threshold value, ΔEV_delta2 is set to the difference step (ΔEV_delta) (step S44).
ここで、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合に設定される差分ステップ(ΔEV_delta1)は、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値以下の場合に設定される差分ステップ(ΔEV_delta2)よりも小さく設定されている(ΔEV_delta1 > ΔEV_delta2)。これは、適正発光時間が長い場合(発光量が大きい)には、赤目発生の可能性が大きいと考えられるためであり、これにより、各回適切な発光量(発光時間)に設定することができる。 Here, the difference step (ΔEV_delta1) set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value is set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time is equal to or less than the threshold value. Is set smaller than the difference step (ΔEV_delta2) to be performed (ΔEV_delta1> ΔEV_delta2). This is because, when the appropriate light emission time is long (the light emission amount is large), it is considered that the possibility of red-eye generation is large, and accordingly, an appropriate light emission amount (light emission time) can be set each time. .
このようにして、差分ステップ(ΔEV_delta)を設定後、CPU30から撮影回数(n_max)の情報を取得し(ステップS45)、設定した差分ステップ(ΔEV_delta)と適正発光時間から変換したΔEV値(ΔEV_flash)に基づいて各撮影回における実際の発光時間(t(1)、t(2)、…t(n_max))を算出する(ステップS46〜S50)。すなわち、まず、変数nをn=1とし(ステップS46)、次式[ΔEV(n) = ΔEV_flash − (n - 1) * ΔEV_delta]…(式1)により、1回目の撮影のΔEV値(ΔEV(1))を算出する(ステップS47)。そして、所定の変換テーブル(図5参照)を用いてΔEV値(ΔEV(1))を発光時間(t(1))に変換する(ステップS48)。なお、1回目の撮影時の発光時間は、適正発光時間(t_flash)に設定される。 In this way, after setting the difference step (ΔEV_delta), information on the number of photographing (n_max) is acquired from the CPU 30 (step S45), and the ΔEV value (ΔEV_flash) converted from the set difference step (ΔEV_delta) and the appropriate light emission time. Based on the above, the actual light emission time (t (1), t (2),... T (n_max)) at each photographing time is calculated (steps S46 to S50). That is, first, the variable n is set to n = 1 (step S46), and the following formula [ΔEV (n) = ΔEV_flash− (n−1) * ΔEV_delta] (Expression 1) (1)) is calculated (step S47). Then, the ΔEV value (ΔEV (1)) is converted into the light emission time (t (1)) using a predetermined conversion table (see FIG. 5) (step S48). In addition, the light emission time at the time of the first photographing is set to an appropriate light emission time (t_flash).
この後、変数nに1を加算して(ステップS49)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS50)、超えるまで上記ステップS47〜S49の処理を繰り返す。 Thereafter, 1 is added to the variable n (step S49), and it is determined whether or not the variable n exceeds the number of times of photographing (n_max) (step S50).
以上により、各撮影回における実際のフラッシュ28の発光時間(発光量)が設定される。設定された各撮影回における実際のフラッシュの発光時間の情報は、SDRAM36に格納される。
As described above, the actual flash time (light emission amount) of the
なお、本実施の形態の撮影装置10では、顔が検出されていない場合、撮影回数(n_max)が1に設定されるので、この場合は実際の撮影時の発光時間が適正発光時間(t_flash)に設定される。
In the photographing
一方、顔が検出されている場合、撮影回数(n_max)が3設定されるので、3回分の発光時間が設定される。この場合、上式1より、1回目のΔEV値はΔEV(1) = ΔEV_flash、2回目のΔEV値は、ΔEV(2) = ΔEV_flash − ΔEV_delta、3回目のΔEV値は、ΔEV(3) = ΔEV_flash − 2*ΔEV_deltaとなる。すなわち、設定された差分ステップで段階的に減少する。この結果、実際の発光時間(t(1)、(t(2))、(t(3)))も適正発光時間(t_flash)から段階的に減少するように設定される。
On the other hand, when the face is detected, the number of times of photographing (n_max) is set to 3, so the light emission time for 3 times is set. In this case, from the
以上のようにして、各撮影回における実際のフラッシュ28の発光時間(発光量)が設定されると、CPU30は、図2に示すように、設定された撮影回数(n_max)で本撮影の処理を実行する(ステップS17〜S22)。すなわち、まず、変数nをn=1とし(ステップS17)、1回目の撮影のフラッシュ28の発光時間t(1)を設定するとともに(ステップS18)、撮影感度と露出を適正撮影感度、適正露出に設定して(ステップS19)、1回目のフラッシュ撮影を実施する(ステップS20)。
As described above, when the actual flash time (light emission amount) of the
この後、CPU30は、変数nに1を加算して(ステップS21)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS22)、超えるまで上記ステップS18〜S21の処理を繰り返す。
Thereafter, the
すなわち、スルー画において顔が検出されておらず、撮影回数(n_max)が1回に設定されている場合は、1回で撮影は終了し、顔が検出されて、撮影回数(n_max)が3回に設定されている場合は、3回フラッシュ撮影をして、撮影処理を終了する。この場合、1回目は発光時間t(1)(=適正発光時間(t_flash))、2回目は発光時間t(2)、3回目は発光時間t(3)でフラッシュ28を発光させて、フラッシュ撮影が行われる(t(1)>t(2)>t(3))。すなわち、段階的に光量が落とされて撮影される。 That is, when a face is not detected in the through image and the number of times of photographing (n_max) is set to one, the photographing is finished once, the face is detected, and the number of times of photographing (n_max) is three. If the time is set, the flash photography is performed three times, and the photographing process is terminated. In this case, the first time is the flash time t (1) (= appropriate flash time (t_flash)), the second time is the flash time t (2), and the third time is the flash time t (3). Shooting is performed (t (1)> t (2)> t (3)). That is, the image is taken with the light amount reduced step by step.
このように本実施の形態の撮影装置10では、フラッシュ撮影する際、顔の有無に基づき本撮影の撮影回数を決定し、複数回撮影する場合は、発光量(発光時間)を段階的に弱めて複数回撮影を実施する。これにより、赤目の目立たない画像を簡単に得ることができる。また、撮影指示からの間隔が開くこともないので、撮影者の意図する構図で被写体を撮影することができる。
As described above, in the photographing
なお、本実施の形態の撮影装置10で複数回撮影される画像は、段階的に暗くなるが、複数枚撮影することで赤目と画像の明るさの兼ね合いからユーザが好ましい画像を選択することができる。したがって、複数回撮影した場合は、撮影により得られた画像をすべて記憶メディア20に記録し、後にユーザが不要な画像を削除する。なお、記録前に撮影により得られた画像を液晶モニタ24に表示し、記録する画像をユーザが選択して、記憶メディア20に記録するようにしてもよい。また、これらの処理方法をユーザが選択できるようにしてもよい。
Note that an image captured a plurality of times by the
また、本実施の形態の撮影装置10には、赤目を検出し、自動修正する赤目検出・補正回路64が備えられているので、各画像について自動で赤目補正を行って記憶メディア20に記録するようにしてもよい。また、必要に応じてユーザが赤目補正の指示を行い、撮影された画像に赤目補正の処理を行うようにしてもよい。
In addition, since the photographing
また、本実施の形態では、フラッシュ28をプリ発光させて、本撮影時のフラッシュ28の適正発光時間を求めているが、適正発光時間を算出する方法は、これに限定されるものではなく、たとえば、被写体までの距離を検出し、その距離情報と絞り値情報とに基づいて算出するようにしてもよい。なお、本実施の形態のように、フラッシュ28をプリ発光させて適正発光時間を求めることにより、プリ発光による赤目軽減作用を得ることができ、より効果的に赤目の発生を抑制できる。
Further, in the present embodiment, the
また、本実施の形態では、顔検出を行い、顔が検出された場合にのみ、複数回撮影するようにしているが、顔の検出の有無に関わらず、複数回の撮影を行うようにしてもよい。なお、本実施の形態のように顔検出を行い、顔が検出された場合にのみ、複数回撮影することにより、無駄な撮影を防止することができる。 Also, in this embodiment, face detection is performed, and multiple shots are taken only when a face is detected. However, multiple shots are taken regardless of whether or not a face is detected. Also good. It should be noted that useless photographing can be prevented by performing face detection as in the present embodiment and photographing multiple times only when a face is detected.
また、本実施の形態では、フラッシュ28の発光量を発光時間でコントロールしているが、光源の強度を変えて発光量をコントロールするようにしてもよい。
In the present embodiment, the light emission amount of the
また、本実施の形態では、差分ステップ(ΔEV_delta)を設定する際、適正発光時間と閾値との比較において、2段階に分けて設定しているが、更に詳細に設定できるようにしてもよい。たとえば、適正発光時間を複数の区分に分割し、区分ごとに差分ステップを設定し、算出された適正発光時間が、どの区分に属するかによって差分ステップを設定するようにしてもよい。また、算出された適正発光時間に比例して、差分ステップを設定するようにしてもよい。また、算出された適正発光時間に応じて関数により、差分ステップを設定するようにしてもよい。なお、いずれの場合も適正発光量が大きくなるに従い差分ステップが大きくなるように設定する。 Further, in the present embodiment, when the difference step (ΔEV_delta) is set, it is set in two stages in the comparison between the appropriate light emission time and the threshold, but it may be set in more detail. For example, the appropriate light emission time may be divided into a plurality of sections, a difference step may be set for each section, and the difference step may be set depending on which section the calculated appropriate light emission time belongs to. Further, the difference step may be set in proportion to the calculated appropriate light emission time. Further, the difference step may be set by a function according to the calculated appropriate light emission time. In either case, the difference step is set to increase as the appropriate light emission amount increases.
また、本実施の形態では、フラッシュの適正発光量に基づいて差分ステップを設定しているが、差分ステップは適正発光量に関わらず一定としてもよい。ただし、本実施の形態のようにフラッシュの適正発光量に応じて差分ステップを設定した場合には、より効果的に赤目の発生を抑制することができる。 In the present embodiment, the difference step is set based on the appropriate light emission amount of the flash, but the difference step may be constant regardless of the appropriate light emission amount. However, when the difference step is set according to the appropriate light emission amount of the flash as in this embodiment, the occurrence of red eyes can be more effectively suppressed.
また、差分ステップを適正発光量に基づいて設定する場合には、適正発光量が大きくなるに従い差分ステップが大きくなるように設定すればよく、その値は特に限定されるものではない。閾値も含め確実に赤目が軽減された画像が得られるように考慮して設定するものとする。 Further, when the difference step is set based on the appropriate light emission amount, the difference step may be set so as to increase as the appropriate light emission amount increases, and the value is not particularly limited. It is set in consideration so that an image in which red eyes are reliably reduced including a threshold value can be obtained.
この点を考慮すると、ΔEV値が2以下となるような撮影が必ず行われるように設定することが好ましい。たとえば、撮影回数(n_max)が2に設定されている場合において、ΔEV_delta1=2、ΔEV_delta2=1とすると、閾値を2.5とすれば、ΔEV_flash>2.5となる場合には、必ずΔEV_delta1=2となる。ΔEVは、変換テーブルから4.5を超えることは無いので、必ずΔEV値が2を下回る撮影が行われる。 Considering this point, it is preferable to set so that photographing is always performed so that the ΔEV value is 2 or less. For example, when the number of times of shooting (n_max) is set to 2, assuming that ΔEV_delta1 = 2 and ΔEV_delta2 = 1, if the threshold value is 2.5 and ΔEV_flash> 2.5, then ΔEV_delta1 = 2 Since ΔEV does not exceed 4.5 from the conversion table, photographing with a ΔEV value below 2 is always performed.
また、本実施の形態では、複数回撮影する場合において、撮影回数(n_max)を3回に設定しているが、撮影回数は、これに限定されるものではなく、適宜増減させて設定することもできる。また、ユーザが任意に設定できるようにしてもよい。 Further, in the present embodiment, when shooting a plurality of times, the number of times of shooting (n_max) is set to 3 times, but the number of times of shooting is not limited to this, and may be set by increasing or decreasing appropriately. You can also. Moreover, you may enable it to set arbitrarily by a user.
図6は、本発明に係る撮影装置の第2の実施の形態の概略構成を示すブロック図である。 FIG. 6 is a block diagram showing a schematic configuration of the second embodiment of the photographing apparatus according to the present invention.
上述した第1の実施の形態の撮影装置10では、顔検出したフラッシュ撮影時にフラッシュの発光量(発光時間)を段階的に減少させて複数回フラッシュ撮影しているが、本実施の形態の撮影装置100では、顔検出したフラッシュ撮影時に撮影感度を段階的に落として、複数回フラッシュ撮影を行う。
In the photographing
このように、本実施の形態では、撮影感度を段階的に変化させて撮影することから、各回の撮影感度を設定するための撮影感度算出回路102を備えている点で上述した第1の実施の形態の撮影装置10と相違している(フラッシュ発光時間算出回路68に代えて撮影感度算出回路102が設けられている。)。したがって、他の構成については、上述した第1の実施の形態の撮影装置10と同じ符号を付して、その説明は省略する。
As described above, in the present embodiment, since the photographing sensitivity is changed in steps, the first embodiment described above is provided in that the photographing
撮影感度算出回路102は、フラッシュ28の適正発光時間に基づいて各回における撮影感度を設定する。具体的には、上記第1の実施の形態の撮影装置10と同様に、適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換し、変換したΔEV値(ΔEV_flash)と閾値とを比較する。そして、その閾値との比較において差分ステップ(ΔSV)を設定する。すなわち、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合は大きい差分ステップを設定し、閾値以下の場合は小さい差分ステップを設定する。そして、求めた差分ステップ(ΔSV)と適正撮影感度(SV_flash)とから次式[SV(n) = SV_flash − (n - 1) * ΔSV]…(式2)により、各回における実際の撮影感度を設定する。
The photographing
以下、本実施の形態の撮影装置100によるフラッシュ撮影時の処理動作の手順について説明する。
Hereinafter, a procedure of processing operation at the time of flash photographing by the photographing
図7は、本実施の形態の撮影装置100によるフラッシュ撮影時における処理手順を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure at the time of flash photographing by the photographing
シャッタボタンの押下により、本撮影の指示が行われると、CPU30は、AE制御の処理を実行し、被写体を測光し、適正撮影感度と適正露出(適正絞り、適正シャッタ速度)を設定する(ステップS110)。また、AF制御の処理を実行し、主要被写体に焦点を合わせる(ステップS111)。
When an instruction for actual photographing is issued by pressing the shutter button, the
この後、CPU30は、フラッシュ発光制御回路74にコマンドを出力し、フラッシュ28を所定の発光時間でプリ発光させる(ステップS112)。そして、そのプリ発光時に得られた画像を分割測光し(ステップS113)、適正発光時間(t_flash)を算出する(ステップS114)。
Thereafter, the
適正発光時間(t_flash)が算出されると、CPU30は、本撮影の撮影回数(n_max)を設定する処理を実行する(ステップS115)。すなわち、上記第1の実施の形態と同様に顔の有無に応じて撮影回数を設定する。本実施の形態では、顔ありの場合、本撮影の撮影回数(n_max)を3に設定し、顔なしの場合、本撮影の撮影回数(n_max)を1に設定する。設定された本撮影の撮影回数(n_max)の情報はSDRAM36に格納される。
When the appropriate light emission time (t_flash) is calculated, the
以上のようにして本撮影時における撮影回数が設定されると、次に、CPU30は、撮影感度算出回路102に対して、各回における撮影感度(SV(1)、SV(2)、…SV(n_max))の算出処理を行わせる(ステップS116)。
When the number of times of photographing at the time of main photographing is set as described above, the
図8は、この撮影感度算出回路102による実際の撮影感度の算出処理の手順を示すフローチャートである。
FIG. 8 is a flowchart showing a procedure of actual photographing sensitivity calculation processing by the photographing
まず、CPU30から適正発光時間(t_flash)の情報を取得する(ステップS40)。そして、図5に示す所定の変換テーブルを用いて適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換し(ステップS121)、変換したΔEV値(ΔEV_flash)と閾値とを比較する(ステップS122)。 First, information on the appropriate light emission time (t_flash) is acquired from the CPU 30 (step S40). Then, the appropriate light emission time (t_flash) is converted into the ΔEV value (ΔEV_flash) using the predetermined conversion table shown in FIG. 5 (step S121), and the converted ΔEV value (ΔEV_flash) is compared with the threshold (step S122). .
そして、その閾値との比較において差分ステップ(ΔSV)を設定する。すなわち、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えていると判定すると、差分ステップ(ΔSV)にΔSV1を設定する(ステップS123)。一方、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値以下と判定すると、差分ステップ(ΔSV)にΔSV2を設定する(ステップS124)。 Then, a difference step (ΔSV) is set in comparison with the threshold. That is, if it is determined that the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value, ΔSV1 is set to the difference step (ΔSV) (step S123). On the other hand, if it is determined that the ΔEV value (ΔEV_flash) converted from the appropriate light emission time is equal to or smaller than the threshold value, ΔSV2 is set to the difference step (ΔSV) (step S124).
ここで、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合に設定される差分ステップ(ΔSV1)は、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値以下の場合に設定される差分ステップ(ΔSV2)よりも小さく設定されている(ΔSV1 > ΔSV2)。これは、適正発光時間が長い場合(発光量が大きい場合)には、赤目発生の可能性が大きいと考えられるためであり、これにより、各回適切な撮影感度に設定することができる。 Here, the difference step (ΔSV1) set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value is set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time is less than or equal to the threshold value. The difference step (ΔSV2) is set to be smaller (ΔSV1> ΔSV2). This is because, when the appropriate light emission time is long (when the light emission amount is large), it is considered that the possibility of occurrence of red-eye is high, and thus it is possible to set an appropriate photographing sensitivity each time.
このようにして、差分ステップ(ΔSV)を設定後、CPU30から撮影回数(n_max)の情報を取得するとともに(ステップS125)、適正撮影感度(SV_flash)の情報を取得する(ステップS126)。そして、取得した適正撮影感度(SV_flash)の情報と、設定した差分ステップ(ΔSV)の情報とに基づいて、各撮影回における実際の撮影感度(SV(1)、SV(2)、…SV(n_max))を算出する(ステップS127〜S131)。すなわち、まず、変数nをn=1とし(ステップS127)、次式[SV(n) = SV_flash − (n - 1) * ΔSV]…(式2)により、1回目の撮影における撮影感度SV(1)を算出する(ステップS128)。なお、1回目の撮影における撮影感度SV(1)は、適正撮影感度(SV_flash)に設定される。 In this way, after setting the difference step (ΔSV), information on the number of shootings (n_max) is acquired from the CPU 30 (step S125), and information on the appropriate shooting sensitivity (SV_flash) is acquired (step S126). Based on the acquired appropriate shooting sensitivity (SV_flash) information and the set difference step (ΔSV) information, the actual shooting sensitivity (SV (1), SV (2),... SV ( n_max)) is calculated (steps S127 to S131). That is, first, the variable n is set to n = 1 (step S127), and the following formula [SV (n) = SV_flash− (n−1) * ΔSV] (Expression 2) is used. 1) is calculated (step S128). Note that the shooting sensitivity SV (1) in the first shooting is set to an appropriate shooting sensitivity (SV_flash).
この後、変数nに1を加算して(ステップS130)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS131)、超えるまで上記ステップS128〜S131の処理を繰り返す。 Thereafter, 1 is added to the variable n (step S130), it is determined whether or not the variable n exceeds the number of times of photographing (n_max) (step S131), and the processing of steps S128 to S131 is repeated until the variable n is exceeded.
以上により、各撮影回における実際の撮影感度が設定される。設定された各撮影回における実際の撮影感度の情報は、SDRAM36に格納される。
As described above, the actual photographing sensitivity at each photographing time is set. Information of actual photographing sensitivity at each set photographing time is stored in the
なお、本実施の形態の撮影装置100では、顔が検出されていない場合、撮影回数(n_max)が1に設定されるので、この場合、実際の撮影感度SV(1)は適正撮影感度(SV_flash)に設定される。
In the photographing
一方、顔が検出されている場合、撮影回数(n_max)が3設定されるので、3回分の撮影感度が設定される。この場合、上式2より、1回目の撮影感度SV(1) は、適正撮影感度SV_flashに設定され、2回目の撮影感度SV(2)は、SV_flash − ΔSVに設定される。また、3回目の撮影感度SV(3)は、SV_flash − 2ΔSVに設定される。すなわち、設定された差分ステップで段階的に落とされる。
On the other hand, when the face is detected, the number of times of shooting (n_max) is set to 3, so the shooting sensitivity for 3 times is set. In this case, from the
以上のようにして、各撮影回における実際の撮影感度SV(n)が設定されると、CPU30は、図7に示すように、設定された撮影回数(n_max)で本撮影の処理を実行する(ステップS117〜S122)。すなわち、まず、変数nをn=1とし(ステップS117)、1回目の撮影のフラッシュ28の発光時間(適正発光時間)を設定するとともに(ステップS118)、撮影感度と露出を設定する(ステップS119)。この際、撮影感度は、上記ステップS116で設定された1回目の撮影感度SV(1)(1回目は適正撮影感度)を設定する。そして、このように設定された撮影感度、露出で1回目のフラッシュ撮影を実施する(ステップS120)。
When the actual shooting sensitivity SV (n) at each shooting time is set as described above, the
この後、CPU30は、変数nに1を加算して(ステップS121)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS122)、超えるまで上記ステップS118〜S121の処理を繰り返す。
Thereafter, the
すなわち、スルー画において顔が検出されておらず、撮影回数(n_max)が1回に設定されている場合は、1回で撮影は終了し、顔が検出されて、撮影回数(n_max)が3回に設定されている場合は、3回フラッシュ撮影をして、撮影処理を終了する。この場合、1回目の撮影は、撮影感度がSV(1)(=適正撮影感度(SV_flash))に、2回目の撮影は撮影感度がSV(2)に、3回目は撮影感度がSV(3)に設定されて、それぞれフラッシュ撮影が行われる(SV(1)>SV(2)>SV(3))。すなわち、撮影感度が適正撮影感度から段階的に下がる方向にシフトされて撮影される。 That is, when a face is not detected in the through image and the number of times of photographing (n_max) is set to one, the photographing is finished once, the face is detected, and the number of times of photographing (n_max) is three. If the time is set, the flash photography is performed three times, and the photographing process is terminated. In this case, the first shot has a shooting sensitivity of SV (1) (= appropriate shooting sensitivity (SV_flash)), the second shooting has a shooting sensitivity of SV (2), and the third shooting has a shooting sensitivity of SV (3 ) And flash shooting is performed for each (SV (1)> SV (2)> SV (3)). That is, the shooting sensitivity is shifted in a direction that gradually decreases from the appropriate shooting sensitivity.
このように本実施の形態の撮影装置100では、フラッシュ撮影する際、顔の有無に基づき本撮影の撮影回数を決定し、複数回撮影する場合は、撮影感度を適正撮影感度から段階的に下げて、複数回撮影を実施する。これにより、赤目の目立たない画像を簡単に得ることができる。また、撮影指示からの間隔が開くこともないので、撮影者の意図する構図で被写体を撮影することができる。
As described above, in the photographing
なお、本実施の形態の撮影装置100においても、撮影される画像は段階的に暗くなるが、複数枚撮影することで赤目と画像の明るさの兼ね合いからユーザが好ましい画像を選択することができる。したがって、複数回撮影した場合は、撮影により得られた画像をすべて記憶メディア20に記録し、後にユーザが不要な画像を削除する。なお、記録前に撮影により得られた画像を液晶モニタ24に表示し、記録する画像をユーザが選択して、記憶メディア20に記録するようにしてもよい。また、これらの処理方法をユーザが選択できるようにしてもよい。
In the photographing
また、本実施の形態の撮影装置100には、赤目を検出し、自動修正する赤目検出・補正回路64が備えられているので、各画像について自動で赤目補正を行って記憶メディア20に記録するようにしてもよい。また、必要に応じてユーザが赤目補正の指示を行い、撮影された画像に赤目補正の処理を行うようにしてもよい。
In addition, since the photographing
また、本実施の形態では、フラッシュ28をプリ発光させて、本撮影時のフラッシュ28の適正発光時間を求めているが、適正発光時間を算出する方法は、これに限定されるものではなく、たとえば、被写体までの距離を検出し、その距離情報と絞り値情報とに基づいて算出するようにしてもよい。
Further, in the present embodiment, the
また、本実施の形態では、顔検出を行い、顔が検出された場合にのみ、複数回撮影するようにしているが、顔の検出の有無に関わらず、複数回の撮影を行うようにしてもよい。なお、本実施の形態のように顔検出を行い、顔が検出された場合にのみ、複数回撮影することにより、無駄な撮影を防止することができる。 Also, in this embodiment, face detection is performed, and multiple shots are taken only when a face is detected. However, multiple shots are taken regardless of whether or not a face is detected. Also good. It should be noted that useless photographing can be prevented by performing face detection as in the present embodiment and photographing multiple times only when a face is detected.
また、本実施の形態では、差分ステップ(ΔSV)を設定する際、適正発光時間と閾値との比較において、2段階に分けて設定しているが、更に詳細に設定できるようにしてもよい。たとえば、適正発光時間を複数の区分に分割し、区分ごとに差分ステップを設定し、算出された適正発光時間が、どの区分に属するかによって差分ステップを設定するようにしてもよい。また、算出された適正発光時間に比例して、差分ステップを設定するようにしてもよい。また、算出された適正発光時間に応じて関数により、差分ステップを設定するようにしてもよい。なお、いずれの場合も適正発光量が大きくなるに従い差分ステップが大きくなるように設定する。 In the present embodiment, when the difference step (ΔSV) is set, it is set in two stages in the comparison between the appropriate light emission time and the threshold, but it may be set in more detail. For example, the appropriate light emission time may be divided into a plurality of sections, a difference step may be set for each section, and the difference step may be set depending on which section the calculated appropriate light emission time belongs to. Further, the difference step may be set in proportion to the calculated appropriate light emission time. Further, the difference step may be set by a function according to the calculated appropriate light emission time. In either case, the difference step is set to increase as the appropriate light emission amount increases.
また、本実施の形態では、フラッシュの適正発光量に基づいて差分ステップを設定しているが、差分ステップは適正発光量に関わらず一定としてもよい。ただし、本実施の形態のようにフラッシュの適正発光量に応じて差分ステップを設定した場合には、より効果的に赤目の発生を抑制することができる。 In the present embodiment, the difference step is set based on the appropriate light emission amount of the flash, but the difference step may be constant regardless of the appropriate light emission amount. However, when the difference step is set according to the appropriate light emission amount of the flash as in this embodiment, the occurrence of red eyes can be more effectively suppressed.
また、差分ステップを適正発光量に基づいて設定する場合には、適正発光量が大きくなるに従い差分ステップが大きくなるように設定すればよく、その値は特に限定されるものではない。閾値も含め確実に赤目が軽減された画像が得られるように考慮して設定するものとする。たとえば、撮影回数(n_max)が2に設定されている場合において、ΔSV1=2、ΔSV2=1とし、閾値を2.5とする。 Further, when the difference step is set based on the appropriate light emission amount, the difference step may be set so as to increase as the appropriate light emission amount increases, and the value is not particularly limited. It is set in consideration so that an image in which red eyes are reliably reduced including a threshold value can be obtained. For example, when the number of times of shooting (n_max) is set to 2, ΔSV1 = 2, ΔSV2 = 1, and the threshold value is 2.5.
また、上記実施の形態では、撮影感度を適正撮影感度から段階的に下げて複数回撮影しているが、撮影絞りを適正撮影絞りから段階的に絞る方向にシフトさせて複数回撮影するようにしてもよい。また、撮影感度と撮影絞りの双方を調整して、複数回撮影するようにしてもよい。 In the above embodiment, the shooting sensitivity is lowered from the appropriate shooting sensitivity step by step and shot multiple times. However, the shooting aperture is shifted from the appropriate shooting aperture in a stepwise manner and shot multiple times. May be. Further, it is possible to shoot a plurality of times by adjusting both the shooting sensitivity and the shooting aperture.
また、本実施の形態では、複数回撮影する場合において、撮影回数を3回に設定しているが、撮影回数は、これに限定されるものではなく、適宜増減させて設定することもできる。また、ユーザが任意に設定できるようにしてもよい。 Further, in the present embodiment, when shooting a plurality of times, the number of times of shooting is set to three, but the number of times of shooting is not limited to this, and can be set by appropriately increasing or decreasing. Moreover, you may enable it to set arbitrarily by a user.
図9は、本発明に係る撮影装置の第3の実施の形態の概略構成を示すブロック図である。 FIG. 9 is a block diagram showing a schematic configuration of the third embodiment of the photographing apparatus according to the present invention.
上述した第1の実施の形態の撮影装置10では、顔検出したフラッシュ撮影時にフラッシュの発光量を段階的に減少させて複数回フラッシュ撮影を行っているが、本実施の形態の撮影装置200では、顔検出したフラッシュ撮影時にフラッシュの発光量を段階的に増加させて複数回フラッシュ撮影し、各画像について赤目の検出・補正処理を実施して、赤目が補正された画像についてのみ記録する。すなわち、意図的に赤目を強調させることにより、赤目の検出をしやすくし、確実に赤目が補正された画像を取得する。
In the photographing
このように、本実施の形態では、赤目が補正され画像のみを記録することから、画像記録の要否を判定する画像記録判定回路202を備えている点で上述した第1の実施の形態の撮影装置10と相違している。したがって、他の構成については、上述した第1の実施の形態の撮影装置10と同じ符号を付して、その説明は省略する。
As described above, in this embodiment, since the red-eye is corrected and only the image is recorded, the image
上記のように、本実施の形態の撮影装置200では、顔検出したフラッシュ撮影時にフラッシュの発光量を段階的に増加させて複数回フラッシュ撮影を実施する。撮影された各画像の画像データは、赤目検出・補正回路64に加えられ、赤目の検出が行われる。そして、赤目が検出された画像については、その補正処理が行われる。画像記録判定回路202は、この赤目検出・補正回路64による赤目の検出・補正結果と顔検出回路62による顔検出の結果に基づき画像記録の要否を判定する。すなわち、顔が検出されていない画像(通常のフラッシュ撮影画像)、及び、顔が検出され、かつ、赤目が検出・補正された画像については、画像記録が必要と判定する(記録判定)。一方、顔は検出されたが、赤目は検出・補正されていない画像については画像記録が不要と判定する(消去判定)。CPU30は、この画像記録判定回路202の判定結果に基づいて画像の記録処理を実施する。
As described above, in the photographing
以下、本実施の形態の撮影装置200によるフラッシュ撮影時の処理動作の手順について説明する。
Hereinafter, the procedure of the processing operation at the time of flash photographing by the photographing
図10は、本実施の形態の撮影装置200によるフラッシュ撮影時における処理手順を示すフローチャートである。
FIG. 10 is a flowchart showing a processing procedure at the time of flash photographing by the photographing
シャッタボタンの押下により、本撮影の指示が行われると、CPU30は、AE制御の処理を実行し、被写体を測光して、適正撮影感度、適正露出を設定する(ステップS210)。また、AF制御の処理を実行し、主要被写体に焦点を合わせる(ステップS211)。
When an instruction for actual shooting is issued by pressing the shutter button, the
この後、CPU30は、フラッシュ発光制御回路74にコマンドを出力し、フラッシュ28を所定の発光量(発光時間)でプリ発光させる(ステップS212)。そして、そのプリ発光時に撮像素子14で撮像された画像に基づいて適正発光量(適正発光時間)を算出する。すなわち、プリ発光時に撮像素子14で撮像された画像の画像信号をAE検出回路58に加え、分割エリアごとのR、G、Bの画像信号の積算値を算出させる(ステップS213)。そして、このAE検出回路58から得た積算値に基づいて適正発光時間(t_flash)を算出する(ステップS214)。
Thereafter, the
適正発光時間(t_flash)が算出されると、CPU30は、本撮影の撮影回数(n_max)を設定する処理を実行する(ステップS215)。すなわち、プリ発光時に撮像素子14で撮像された画像のYC信号を顔検出回路62に加え、画像中の顔領域を検出させる。そして、その顔検出回路62による顔検出の結果、顔ありと判定すると、本撮影の撮影回数(n_max)を3に設定し、顔なしと判定すると、本撮影の撮影回数(n_max)を1に設定する(図3参照)。設定された本撮影の撮影回数(n_max)の情報はSDRAM36に格納される。
When the appropriate light emission time (t_flash) is calculated, the
本撮影時における撮影回数が設定されると、次に、CPU30は、フラッシュ発光時間算出回路68に対して、各回における実際のフラッシュ28の発光時間(t(1)、t(2)、…t(n_max))の算出処理を行わせる(ステップS216)。
When the number of times of photographing at the time of the main photographing is set, the
図11は、このフラッシュ発光時間算出回路68による実際のフラッシュ28の発光時間の算出処理の手順を示すフローチャートである。
FIG. 11 is a flowchart showing the procedure of the
まず、CPU30から適正発光時間(t_flash)の情報を取得する(ステップS240)。そして、図5に示す所定の変換テーブルを用いて適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換する(ステップS241)。 First, information on the appropriate light emission time (t_flash) is acquired from the CPU 30 (step S240). Then, the appropriate light emission time (t_flash) is converted into the ΔEV value (ΔEV_flash) using the predetermined conversion table shown in FIG. 5 (step S241).
次にCPU30から差分ステップ(ΔEV_delta)の情報を取得する(ステップS242)。ここで、この差分ステップ(ΔEV_delta)は、一定の値としてフラッシュROM34に格納されており、CPU30は、このフラッシュROM34に格納された差分ステップ(ΔEV_delta)の情報をフラッシュ発光時間算出回路68に加える。
Next, information on the difference step (ΔEV_delta) is acquired from the CPU 30 (step S242). Here, the difference step (ΔEV_delta) is stored in the
次に、CPU30から撮影回数(n_max)の情報を取得し(ステップS243)、あらかじめ取得した差分ステップ(ΔEV_delta)と適正発光時間から変換したΔEV値(ΔEV_flash)に基づいて各撮影回における実際の発光時間(t(1)、t(2)、…t(n_max))を算出する(ステップS244〜S248)。すなわち、まず、変数nをn=1とし(ステップS244)、次式[ΔEV(n) = ΔEV_flash + (n - 1) * ΔEV_delta]…(式3)により、1回目の撮影のΔEV値(ΔEV(1))を算出する(ステップS245)。そして、所定の変換テーブル(図5参照)を用いてΔEV値(ΔEV(1))を発光時間(t(1))に変換する(ステップS246)。なお、1回目の撮影時の発光時間は、適正発光時間(t_flash)に設定される。 Next, information on the number of times of photographing (n_max) is obtained from the CPU 30 (step S243), and actual light emission at each photographing time is based on the difference step (ΔEV_delta) obtained in advance and the ΔEV value (ΔEV_flash) converted from the appropriate light emission time. Time (t (1), t (2),... T (n_max)) is calculated (steps S244 to S248). That is, first, the variable n is set to n = 1 (step S244), and the following expression [ΔEV (n) = ΔEV_flash + (n−1) * ΔEV_delta] (Expression 3) (1)) is calculated (step S245). Then, the ΔEV value (ΔEV (1)) is converted into the light emission time (t (1)) using a predetermined conversion table (see FIG. 5) (step S246). In addition, the light emission time at the time of the first photographing is set to an appropriate light emission time (t_flash).
この後、変数nに1を加算して(ステップS247)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS248)、超えるまで上記ステップS245〜S248の処理を繰り返す。 Thereafter, 1 is added to the variable n (step S247), it is determined whether or not the variable n exceeds the number of times of photographing (n_max) (step S248), and the processes of steps S245 to S248 are repeated until the variable n is exceeded.
以上により、各撮影回における実際のフラッシュ28の発光時間(発光量)が設定される。設定された各撮影回における実際のフラッシュの発光時間の情報は、SDRAM36に格納される。
As described above, the actual flash time (light emission amount) of the
なお、本実施の形態の撮影装置200では、顔が検出されていない場合、撮影回数(n_max)が1に設定されるので、この場合は実際の撮影時の発光時間が適正発光時間(t_flash)に設定される。
Note that in the photographing
一方、顔が検出されている場合、撮影回数(n_max)が3設定されるので、3回分の発光時間が設定される。この場合、上式3より、1回目のΔEV値はΔEV(1) = ΔEV_flash(適正発光時間)、2回目のΔEV値は、ΔEV(2) = ΔEV_flash + ΔEV_delta、3回目のΔEV値は、ΔEV(3) = ΔEV_flash + 2*ΔEV_deltaとなる。すなわち、設定された差分ステップで段階的に増加する。この結果、実際の発光時間(t(1)、(t(2))、(t(3)))も適正発光時間(t_flash)から段階的に増加するように設定される。
On the other hand, when the face is detected, the number of times of photographing (n_max) is set to 3, so the light emission time for 3 times is set. In this case, from
以上のようにして、各撮影回における実際のフラッシュ28の発光時間(発光量)が設定されると、CPU30は、図10に示すように、設定された撮影回数(n_max)で本撮影の処理を実行する(ステップS217〜S222)。すなわち、まず、変数nをn=1とし(ステップS217)、1回目の撮影のフラッシュ28の発光時間t(1)を設定するとともに(ステップS218)、撮影感度、露出を適正撮影感度、適正露出に設定して(ステップS219)、1回目のフラッシュ撮影を実施する(ステップS220)。
As described above, when the actual flash time (light emission amount) of the
この後、CPU30は、変数nに1を加算して(ステップS221)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS222)、超えるまで上記ステップS18〜S21の処理を繰り返す。
Thereafter, the
すなわち、スルー画において顔が検出されておらず、撮影回数(n_max)が1回に設定されている場合は、1回で撮影は終了し、顔が検出されて、撮影回数(n_max)が3回に設定されている場合は、3回フラッシュ撮影をして、撮影処理を終了する。この場合、1回目は発光時間t(1)(=適正発光時間(t_flash))、2回目は発光時間t(2)、3回目は発光時間t(3)でフラッシュ28を発光させて、フラッシュ撮影が行われる(t(1)<t(2)<t(3))。すなわち、フラッシュ28の発光量が段階的に上げられて撮影される。
That is, when a face is not detected in the through image and the number of times of photographing (n_max) is set to one, the photographing is finished once, the face is detected, and the number of times of photographing (n_max) is three. If the time is set, the flash photography is performed three times, and the photographing process is terminated. In this case, the first time is the flash time t (1) (= appropriate flash time (t_flash)), the second time is the flash time t (2), and the third time is the flash time t (3). Shooting is performed (t (1) <t (2) <t (3)). In other words, the amount of light emitted from the
このように本実施の形態の撮影装置200では、フラッシュ撮影する際、顔の有無に基づき本撮影の撮影回数を決定し、複数回撮影する場合は、発光時間を段階的に長くして(発光量を段階的に上げて)、複数回フラッシュ撮影を実施する。これにより、赤目の検出しやすい画像を簡単に得ることができる。得られた画像はSDRAM36に一時的に格納される。
As described above, in the photographing
以上のようにしてフラッシュ撮影が行われると、図10に示すように、CPU30は、撮影により得られた画像に対して赤目の検出・補正処理を実行する。
When flash photography is performed as described above, as shown in FIG. 10, the
まず、変数nをn=1とし(ステップS223)、処理対象の画像に1回目の撮影画像を選択し(ステップS224)、その画像に対して赤目の検出処理を行う(ステップS225)。すなわち、1回目の撮影により得られた画像の画像データを顔検出回路62に加え、顔検出をさせる。そして、顔検出回路62で顔検出された画像の画像データを赤目検出・補正回路64に加え、赤目の検出処理を行わせる。赤目検出・補正回路64は、入力された画像データに対して赤目の検出を行い、その検出結果をCPU30に出力する。CPU30は、赤目検出・補正回路64による赤目の検出結果に基づき赤目の有無を判定し(ステップS226)、赤目が検出されると、赤目検出・補正回路64に赤目補正の指示を出力する。赤目検出・補正回路64は、このCPU30の指示に応じて撮影により得られた画像に対して画像処理により赤目の補正の処理を行う(ステップS227)。この赤目補正された画像の画像データは、顔検出の情報及び赤目補正の情報とともにSDRAM36に格納される。
First, the variable n is set to n = 1 (step S223), the first captured image is selected as the processing target image (step S224), and red-eye detection processing is performed on the image (step S225). That is, image data of an image obtained by the first shooting is added to the
1回目に撮影された画像に対する赤目の検出・補正処理が終了すると、CPU30は、変数nに1を加算して(ステップS228)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS229)、超えるまで上記ステップS224〜S228の処理を繰り返す。すなわち、スルー画において顔が検出されておらず、撮影回数(n_max)が1回に設定されている場合は、1回で赤目の検出・補正処理は終了し、顔が検出されて、撮影回数(n_max)が3回に設定されている場合は、3回赤目の検出・補正処理が行われる(1日目に撮影された画像の赤目検出・補正が終了すると、2回目に撮影された画像の赤目検出・補正が行われ、2回目に撮影された画像の赤目検出・補正が終了すると、3回目に撮影された画像の赤目検出・補正が行われる。)。
When the red-eye detection / correction processing for the first captured image is completed, the
なお、ステップS225で赤目が検出されず、ステップS226で赤目が検出されていないと判定されると、その画像に対する赤目補正の処理は行われず、そのまま赤目補正無しの情報とともにSDRAM36に格納される。
If it is determined in step S225 that no red eye has been detected and no red eye has been detected in step S226, the red eye correction process is not performed on the image, and is stored in the
スルー画において顔が検出されていない画像については、当然に赤目が発生していないので、その画像の画像データは、そのままSDRAM36に格納される。
Of course, red-eye does not occur for an image in which a face is not detected in the through image, and the image data of the image is stored in the
以上のようにして、撮影により得られた画像に対する赤目の検出・補正処理が完了すると、CPU30は、画像の記録判定の処理を行って、画像の記録処理を実施する(ステップS230)。すなわち、画像記録判定回路202に画像記録の要否の判定を行わせ、その判定結果に基づいて画像の記録処理を実施する。
As described above, when the red-eye detection / correction processing for the image obtained by photographing is completed, the
図12は、この撮影画像の記録処理の手順を示すフローチャートである。 FIG. 12 is a flowchart showing the procedure of this photographed image recording process.
まず、本撮影の撮影回数(n_max)の情報を取得する(ステップS260)。そして、変数nをn=1とし(ステップS261)、処理対象の画像に1回目の撮影画像を選択する(ステップS262)。 First, information on the number of photographing times (n_max) of the main photographing is acquired (step S260). Then, the variable n is set to n = 1 (step S261), and the first captured image is selected as the processing target image (step S262).
CPU30は、1回目の撮影により得られた画像の顔検出の情報と赤目補正の情報を画像記録判定回路202に加え、画像記録の要否を判定させる。
The
まず、画像記録判定回路202は、その画像の顔検出の結果に基づき顔が検出されているか否かを判定する(ステップS263)。この判定の結果、顔が検出されていないと判定すると、画像記録判定回路202は、画像の記録が必要と判断し、記録判定を行う。すなわち、この場合、本撮影が1回のみの通常撮影であるので、そのまま記録する処理を行う。CPU30は、この画像記録判定回路202による記録判定の判定結果に応じて、その画像の記録処理を実行する(ステップS265)。すなわち、画像に所要の圧縮処理を施して(必要に応じて非圧縮)、記憶メディア20に記録する。
First, the image
ステップS263で顔が検出されていると判定すると、赤目補正の結果に基づいて赤目補正がされたか否かを判定する(ステップS264)。この判定の結果、赤目補正がされていると判定すると、画像記録判定回路202は、画像の記録が必要と判断し、記録判定を行う。CPU30は、この画像記録判定回路202による記録判定の判定結果に応じて、その画像の記録処理を実行する(ステップS265)。
If it is determined in step S263 that a face has been detected, it is determined whether red-eye correction has been performed based on the result of red-eye correction (step S264). If it is determined that red-eye correction has been performed as a result of this determination, the image
一方、ステップS264において、赤目補正がされていないと判定すると、画像記録判定回路202は、画像の記録が不要と判断し、消去判定を行う。CPU30は、この画像記録判定回路202による消去判定の判定結果に応じて、その画像の消去処理を実行する(ステップS266)。すなわち、記憶メディア20には記録しないようにする。
On the other hand, if it is determined in step S264 that red-eye correction has not been performed, the image
このように、撮影された画像に顔が検出されていない場合、及び、顔が検出されていて、かつ、赤目補正も行われている場合のみ記憶メディア20へ画像を記録し、顔が検出されているが、赤目の補正は行われていない場合は消去する。これにより確実に赤目補正が行われた画像を記録することができる。
As described above, only when the face is not detected in the photographed image, and when the face is detected and the red-eye correction is performed, the image is recorded on the
この後、CPU30は、変数nに1を加算して(ステップS267)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS268)、超えるまで上記ステップS262〜S267の処理を繰り返す。
Thereafter, the
以上説明したように、本実施の形態の撮影装置200は、フラッシュ撮影時にフラッシュの発光量を段階的に増加させて複数回フラッシュ撮影し、各画像について赤目の検出・補正処理を実施し、赤目が検出・補正された画像についてのみ記録する。これにより、確実に赤目が補正された画像を記憶メディア20に記録することができる。
As described above, the
なお、上記実施の形態では、画像記録判定時において、本撮影された画像の顔検出の検出結果に基づいて画像記録の要否を判定しているが、スルー画として撮影された画像(たとえばプリ発光時の画像)の顔検出の検出結果に基づいて画像記録の要否を判定するようにしてもよい。 In the above embodiment, whether or not image recording is necessary is determined based on the detection result of face detection of the actually captured image at the time of image recording determination. The necessity of image recording may be determined based on the detection result of the face detection of the image at the time of light emission).
また、スルー画で顔が検出されておらず、1回だけ本撮影する場合には、赤目が発生しないことが明らかなので、赤目の検出・補正の処理(ステップS223〜S229)は行わず、そのまま記録するようにしてもよい。 In addition, when a face is not detected in the through image and it is clear that red eyes do not occur when the main shooting is performed only once, the red-eye detection / correction processing (steps S223 to S229) is not performed and is performed as it is. It may be recorded.
また、本実施の形態においても、フラッシュ28をプリ発光させて、本撮影時のフラッシュ28の適正発光時間を求めているが、適正発光時間を算出する方法は、これに限定されるものではない。
Also in the present embodiment, the
また、本実施の形態では、顔検出を行い、顔が検出された場合にのみ、複数回撮影するようにしているが、顔の検出の有無に関わらず、複数回の撮影を行うようにしてもよい。 Also, in this embodiment, face detection is performed, and multiple shots are taken only when a face is detected. However, multiple shots are taken regardless of whether or not a face is detected. Also good.
また、本実施の形態では、フラッシュ28の発光量を発光時間でコントロールしているが、光源の強度を変えて発光量をコントロールするようにしてもよい。
In the present embodiment, the light emission amount of the
また、本実施の形態では、差分ステップ(ΔEV_delta)を設定する際、適正発光時間と閾値との比較において、2段階に分けて設定しているが、更に詳細に設定できるようにしてもよい。たとえば、適正発光時間を複数の区分に分割し、区分ごとに差分ステップを設定し、算出された適正発光時間が、どの区分に属するかによって差分ステップを設定するようにしてもよい。また、算出された適正発光時間に比例して、差分ステップを設定するようにしてもよい。また、算出された適正発光時間に応じて関数により、差分ステップを設定するようにしてもよい。なお、いずれの場合も適正発光量が大きくなるに従い差分ステップが小さくなるように設定する。 Further, in the present embodiment, when the difference step (ΔEV_delta) is set, it is set in two stages in the comparison between the appropriate light emission time and the threshold, but it may be set in more detail. For example, the appropriate light emission time may be divided into a plurality of sections, a difference step may be set for each section, and the difference step may be set depending on which section the calculated appropriate light emission time belongs to. Further, the difference step may be set in proportion to the calculated appropriate light emission time. Further, the difference step may be set by a function according to the calculated appropriate light emission time. In either case, the difference step is set to decrease as the appropriate light emission amount increases.
また、本実施の形態では、差分ステップを一定としているが、フラッシュの適正発光量に応じて差分ステップを設定するようにしてもよい。 In the present embodiment, the difference step is constant, but the difference step may be set according to the appropriate amount of light emitted from the flash.
たとえば、上記ステップS241により適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換した後、その変換したΔEV値(ΔEV_flash)と閾値とを比較して差分ステップ(ΔEV_delta)を設定するようにしてもよい。すなわち、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合は差分ステップ(ΔEV_delta)をΔEV_delta1に設定し、閾値以下の場合は差分ステップ(ΔEV_delta)をΔEV_delta2に設定する。ここで、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合に設定する差分ステップ(ΔEV_delta1)は、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値以下の場合に設定する差分ステップ(ΔEV_delta2)よりも大きく設定する(ΔEV_delta1 < ΔEV_delta2)。これは、適正発光時間が短い(発光量が小さい)方が、赤目が発生しにくくなると考えられるためである。すなわち、適正発光時間が短く、赤目が発生しにくい場合は、差分ステップ(ΔEV_delta)を大きくし、赤目が検出されやすくする。一方、適正発光時間が長く、赤目が発生しやすい場合は、差分ステップ(ΔEV_delta)を小さくし、白飛び等が生じない範囲で赤目が検出されやすくする。 For example, after the appropriate light emission time (t_flash) is converted into the ΔEV value (ΔEV_flash) in step S241, the converted ΔEV value (ΔEV_flash) is compared with the threshold value to set the difference step (ΔEV_delta). Good. That is, if the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value, the difference step (ΔEV_delta) is set to ΔEV_delta1, and if it is equal to or less than the threshold value, the difference step (ΔEV_delta) is set to ΔEV_delta2. Here, the difference step (ΔEV_delta1) set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value is set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time is equal to or less than the threshold value. It is set larger than the difference step (ΔEV_delta2) (ΔEV_delta1 <ΔEV_delta2). This is because it is considered that red eyes are less likely to occur when the appropriate light emission time is shorter (the light emission amount is smaller). That is, when the appropriate light emission time is short and red eyes are difficult to occur, the difference step (ΔEV_delta) is increased to facilitate detection of red eyes. On the other hand, if the appropriate light emission time is long and red eyes are likely to occur, the difference step (ΔEV_delta) is reduced so that red eyes are easily detected within a range where whiteout or the like does not occur.
また、上記実施の形態では、複数回フラッシュ撮影した場合において、赤目補正された画像をすべて記憶メディア20に記録するようにしているが、記録前に液晶モニタ24に表示させ、記録の要否をユーザに問い合わせるようにしてもよい。この場合において、赤目補正された画像が複数枚ある場合は、記録する画像をユーザに個別に選択させるようにしてもよい。
Further, in the above embodiment, when the flash photography is performed a plurality of times, all the red-eye corrected images are recorded on the
さらに、複数回撮影された画像のなかで最も赤目らしい画像を自動で検出し、その画像の赤目補正後の画像データのみを記録するようにしてもよい。 Furthermore, it is also possible to automatically detect the most red-eye image among images taken a plurality of times and record only the image data after the red-eye correction of the image.
図13は、最も赤目らしい画像のみを記録する場合の撮影画像の記録処理の手順を示すフローチャートである。 FIG. 13 is a flowchart showing the procedure of the recorded image recording process when only the most red-eye image is recorded.
まず、本撮影の撮影回数(n_max)の情報を取得する(ステップS280)。そして、記録画像回n_recをn_rec=0、赤目検出評価値REV(n)をREV(0)=0とし(ステップS281)、変数nをn=1として(ステップS282)、処理対象の画像に1回目の撮影画像を選択する(ステップS283)。 First, information on the number of times of actual photographing (n_max) is acquired (step S280). The recorded image times n_rec is set to n_rec = 0, the red-eye detection evaluation value REV (n) is set to REV (0) = 0 (step S281), the variable n is set to n = 1 (step S282), and 1 is added to the image to be processed. The second captured image is selected (step S283).
CPU30は、1回目の撮影により得られた画像の赤目補正の情報を画像記録判定回路202に加え、画像記録の要否を判定させる。
The
ここで、この画像記録判定回路202に加える赤目補正の情報には、その画像に対する赤目補正の実施の有無と、赤目検出時における赤目らしさの評価値の情報(赤目検出評価値)が含まれる。したがって、本例の場合、赤目検出・補正回路64は、撮影された画像から赤目を検出するとともに、画像の赤目らしさの評価値も算出する。
Here, the red-eye correction information applied to the image
なお、赤目検出評価値は、公知の手法を用いて算出することができる。たとえば、次のような方法で算出することができる。まず、あらかめ赤目らしさを表す特徴量と、特徴量の値に応じたスコアを定義する。たとえば、画素の値が赤色を表す値であることは、赤目であると判断する1つの根拠となり得る。よって、画素の値は赤目らしさを表す特徴量となり得る。この場合、たとえば、誰の目にも赤色とわかる色を表す画素値には高いスコアが、また、一応赤色ではあるが見る者によっては茶色と判断するかもしれない色を表す画素値には低いスコアがつくように、特徴量とスコアとの対応付けを定義する。一方、明らかに赤色ではない色(例えば黄色)を表す画素値にはゼロまたはマイナスのスコアがつくように、特徴量とスコアとの対応付けを定義する。そして、赤目として検出された領域内の各画素について特徴量を算出し、その特徴量をスコアに換算して赤目検出評価値とする。 The red-eye detection evaluation value can be calculated using a known method. For example, it can be calculated by the following method. First, a feature quantity that represents the redness of a prior art and a score corresponding to the value of the feature quantity are defined. For example, if the value of the pixel is a value representing red, it can be one basis for determining that the eye has red eyes. Therefore, the value of the pixel can be a feature amount representing redness. In this case, for example, a high score is obtained for a pixel value representing a color that can be recognized by anyone's eyes as red, and a low value is represented for a pixel value representing a color that is red but may be judged brown depending on the viewer. The association between the feature quantity and the score is defined so that the score is obtained. On the other hand, the correspondence between the feature quantity and the score is defined so that a pixel value that clearly represents a color that is not red (for example, yellow) has a zero or negative score. Then, a feature amount is calculated for each pixel in the region detected as red-eye, and the feature amount is converted into a score to obtain a red-eye detection evaluation value.
なお、使用する赤目の検出方法によっては、赤目の検出過程で赤目検出評価値(赤目らしさのスコア)を求めることができるので(赤目検出評価値に基づいて赤目の検出を行う)、この赤目の検出過程で求められた赤目検出評価値を利用してもよい。 Depending on the red-eye detection method used, a red-eye detection evaluation value (red-eye likelihood score) can be obtained in the red-eye detection process (red-eye detection is performed based on the red-eye detection evaluation value). You may use the red-eye detection evaluation value calculated | required in the detection process.
画像記録判定回路202は、取得した赤目補正の情報に基づいて赤目補正の有無を判定する(ステップS284)。この判定の結果、赤目補正をしていると判定すると、画像記録判定回路202は、その画像の赤目検出評価値の情報を取得する(ステップS285)。この場合、1回目の撮影画像なので、1回目の撮影画像の赤目検出評価値REV(1)の情報を取得する。一方、赤目補正をしていないと判定すると、画像記録判定回路202は、その画像の赤目検出評価値REV(n)を0とする(ステップS286)。
The image
この後、画像記録判定回路202は、取得した赤目検出評価値REV(n)と、先に撮影された画像の赤目検出評価値REV(n-1)とを比較し、取得した赤目検出評価値REV(n)が、先に撮影された画像の赤目検出評価値REV(n-1)よりも大きいか否かを判定する(ステップS287)。
Thereafter, the image
今回は1回目に撮影された画像を対象としているので、1回目に撮影された画像の赤目検出評価値REV(1)と赤目検出評価値REV(0)=0とを比較し、1回目に撮影された画像の赤目検出評価値REV(1)が赤目検出評価値REV(0)=0よりも大きいか否かを判定する。 This time, since the first image is taken as an object, the red eye detection evaluation value REV (1) of the first image is compared with the red eye detection evaluation value REV (0) = 0. It is determined whether or not the red-eye detection evaluation value REV (1) of the photographed image is larger than the red-eye detection evaluation value REV (0) = 0.
そして、取得した赤目検出評価値REV(n)が、先に撮影された画像の赤目検出評価値REV(n-1)よりも大きいと判定すると、記録画像回n_recをその撮影回に設定する(ステップS288)。 Then, when it is determined that the acquired red-eye detection evaluation value REV (n) is larger than the red-eye detection evaluation value REV (n-1) of the previously captured image, the recorded image time n_rec is set to the imaging time ( Step S288).
今回は1回目に撮影された画像を対象としているので、1回目に撮影された画像の赤目検出評価値REV(1)が赤目検出評価値REV(0)=0よりも大きいと判定すると、記録画像回n_recを1に設定する。 This time, the image taken for the first time is targeted, so if the red-eye detection evaluation value REV (1) of the image taken for the first time is determined to be greater than the red-eye detection evaluation value REV (0) = 0, recording is performed. Set image times n_rec to 1.
この後、CPU30は、変数nに1を加算して(ステップS289)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS290)、超えるまで上記ステップS283〜S289の処理を繰り返す。
Thereafter, the
すなわち、上記ステップS283〜S289を繰り返し十個することにより、各撮影回における撮影画像の中から最も赤目検出評価値REV(n)の高い画像を選出し、その選出された撮影回の値を記録画像回n_recに設定する。たとえば、2回目の撮影画像の赤目検出評価値REV(2)が最も高い場合には、記録画像回n_recに2が設定され、3回目の撮影画像の赤目検出評価値REV(2)が最も高い場合には、記録画像回n_recに3が設定される。一方、全ての画像について、赤目補正がされていない場合は、記録画像回n_recが0に設定される。 That is, by repeating the above steps S283 to S289 ten times, the image with the highest red-eye detection evaluation value REV (n) is selected from the captured images at each shooting time, and the selected shooting time value is recorded. Set to image times n_rec. For example, when the red-eye detection evaluation value REV (2) of the second captured image is the highest, 2 is set in the recorded image time n_rec, and the red-eye detection evaluation value REV (2) of the third captured image is the highest. In this case, 3 is set to the recorded image time n_rec. On the other hand, when red-eye correction has not been performed for all images, the recorded image count n_rec is set to zero.
そして、全ての画像について赤目検出評価値の比較が完了すると、CPU30は、この画像記録判定回路202による記録画像回n_recの設定結果に基づき、記録画像回n_recが0に設定されているか否かを判定する(ステップS291)。
When the comparison of the red-eye detection evaluation values for all the images is completed, the
この判定の結果、記録画像回n_recが0に設定されていないと判定すると、設定された記録画像回の画像を記憶メディア20に記録する(ステップS292)。すなわち、必要に応じて圧縮処理を施し、メディアコントローラ56を介して記憶メディア20に記録する。たとえば、記録画像回n_recが2に設定されている場合は、2回目に撮影された画像の画像データを記憶メディア20に記録し、記録画像回n_recが3に設定されている場合は、3回目に撮影された画像の画像データを記憶メディア20に記録する。これにより、最も赤目らしい画像として赤目補正が施された画像のみが記憶メディア20に記録される。
If it is determined that the recorded image count n_rec is not set to 0 as a result of this determination, the set recorded image count image is recorded in the storage medium 20 (step S292). That is, compression processing is performed as necessary, and recording is performed on the
一方、上記ステップS291において、記録画像回n_recが0に設定されていると判定すると、全ての画像を記憶メディア20に記録する(ステップS293)。たとえば、顔が検出され、複数回フラッシュ撮影されたが、どの画像についても赤目が検出されず、赤目補正が行われなかった場合には、全ての画像が記憶メディア20に記録される。また、顔が検出されず、通常どおり1回のみフラッシュ撮影された場合には、赤目補正が行われないので、そのまま記憶メディア20に記録される。
On the other hand, if it is determined in step S291 that the recorded image count n_rec is set to 0, all images are recorded in the storage medium 20 (step S293). For example, if a face is detected and flash photography is performed a plurality of times, but no red-eye is detected for any image and no red-eye correction is performed, all images are recorded in the
このように、赤目補正した場合において、最も赤目らしい画像についてのみ記憶メディア20に記録することにより、確実に赤目補正された画像を記録することができる。すなわち、最も赤目らしい画像は、もっとも正確に赤目補正ができるので、赤目補正された画像として最も好ましい画像を記録することができる。これにより、無駄に記憶メディア20の容量を圧迫するのを防止することができる。
As described above, when red-eye correction is performed, by recording only the most red-eye-like image on the
また、本実施の形態では、複数回撮影する場合において、撮影回数を3回に設定しているが、撮影回数は、これに限定されるものではなく、適宜増減させて設定することもできる。また、ユーザが任意に設定できるようにしてもよい。 Further, in the present embodiment, when shooting a plurality of times, the number of times of shooting is set to three, but the number of times of shooting is not limited to this, and can be set by appropriately increasing or decreasing. Moreover, you may enable it to set arbitrarily by a user.
図14は、本発明に係る撮影装置の第4の実施の形態の概略構成を示すブロック図である。 FIG. 14 is a block diagram showing a schematic configuration of the fourth embodiment of the photographing apparatus according to the present invention.
上述した第3の実施の形態の撮影装置200では、顔検出したフラッシュ撮影時にフラッシュの発光量を段階的に増加させて複数回フラッシュ撮影し、各画像について赤目の検出・補正処理を実施して、赤目が補正された画像についてのみ記録しているが、本実施の形態の撮影装置300では、上記第2の実施の形態の撮影装置100のように、顔検出したフラッシュ撮影時に撮影感度を段階的に上げて複数回フラッシュ撮影する。そして、各画像について赤目の検出・補正処理を実施し、赤目が補正された画像についてのみ記録する。
In the photographing
このように、本実施の形態では、赤目が補正され画像のみを記録することから、画像記録の要否を判定する画像記録判定回路302を備えている点で上述した第2の実施の形態の撮影装置100と相違している。したがって、他の構成については、上述した第2の実施の形態の撮影装置100と同じ符号を付して、その説明は省略する。
As described above, in this embodiment, since the red-eye is corrected and only the image is recorded, the image
上記のように、本実施の形態の撮影装置300では、顔検出したフラッシュ撮影時に撮影感度を段階的に上げて複数回フラッシュ撮影を実施する。撮影された各画像の画像データは、赤目検出・補正回路64に加えられ、赤目の検出が行われる。そして、赤目が検出された画像については、その補正処理が行われる。画像記録判定回路302は、この赤目検出・補正回路64による赤目の検出・補正結果と顔検出回路62による顔検出の結果に基づき画像記録の要否を判定する。すなわち、顔が検出されていない画像(通常のフラッシュ撮影画像)、及び、顔が検出され、かつ、赤目が検出・補正された画像については、画像記録が必要と判定する(記録判定)。一方、顔は検出されたが、赤目は検出・補正されていない画像については画像記録が不要と判定する(消去判定)。CPU30は、この画像記録判定回路302の判定結果に基づいて画像の記録処理を実施する。
As described above, the photographing
以下、本実施の形態の撮影装置300によるフラッシュ撮影時の処理動作の手順について説明する。
Hereinafter, a procedure of processing operation at the time of flash photographing by the photographing
図15は、本実施の形態の撮影装置300によるフラッシュ撮影時における処理手順を示すフローチャートである。
FIG. 15 is a flowchart showing a processing procedure at the time of flash photographing by the photographing
シャッタボタンの押下により、本撮影の指示が行われると、CPU30は、AE制御の処理を実行し、被写体を測光して、適正撮影感度、適正露出を設定する(ステップS310)。また、AF制御の処理を実行し、主要被写体に焦点を合わせる(ステップS311)。
When an instruction for actual photographing is issued by pressing the shutter button, the
この後、CPU30は、フラッシュ発光制御回路74にコマンドを出力し、フラッシュ28を所定の発光量(発光時間)でプリ発光させる(ステップS312)。そして、そのプリ発光時に撮像素子14で撮像された画像に基づいて適正発光量(適正発光時間)を算出する。すなわち、プリ発光時に撮像素子14で撮像された画像の画像信号をAE検出回路58に加え、分割エリアごとのR、G、Bの画像信号の積算値を算出させる(ステップS313)。そして、このAE検出回路58から得た積算値に基づいて適正発光時間(t_flash)を算出する(ステップS314)。
Thereafter, the
適正発光時間(t_flash)が算出されると、CPU30は、本撮影の撮影回数(n_max)を設定する処理を実行する(ステップS315)。すなわち、プリ発光時に撮像素子14で撮像された画像のYC信号を顔検出回路62に加え、画像中の顔領域を検出させる。そして、その顔検出回路62による顔検出の結果、顔ありと判定すると、本撮影の撮影回数(n_max)を3に設定し、顔なしと判定すると、本撮影の撮影回数(n_max)を1に設定する(図3参照)。設定された本撮影の撮影回数(n_max)の情報はSDRAM36に格納される。
When the appropriate light emission time (t_flash) is calculated, the
本撮影時における撮影回数が設定されると、次に、CPU30は、撮影感度算出回路102に対して、各回における実際の撮影感度(SV(1)、SV(2)、…SV(n_max))の算出処理を行わせる(ステップS316)。
Once the number of times of photographing at the time of actual photographing is set, the
図16は、この撮影感度算出回路102による実際の撮影感度の算出処理の手順を示すフローチャートである。
FIG. 16 is a flowchart showing a procedure of actual photographing sensitivity calculation processing by the photographing
まず、CPU30から適正発光時間(t_flash)の情報を取得する(ステップS350)。そして、図5に示す所定の変換テーブルを用いて適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換する(ステップS351)。 First, information on the appropriate light emission time (t_flash) is acquired from the CPU 30 (step S350). Then, the appropriate light emission time (t_flash) is converted into the ΔEV value (ΔEV_flash) using the predetermined conversion table shown in FIG. 5 (step S351).
次にCPU30から差分ステップ(ΔSV)の情報を取得する(ステップS342)。ここで、この差分ステップ(ΔSV)は、一定の値としてフラッシュROM34に格納されており、CPU30は、このフラッシュROM34に格納された差分ステップ(ΔSV)の情報を撮影感度算出回路102に加える。
Next, information on the difference step (ΔSV) is acquired from the CPU 30 (step S342). Here, the difference step (ΔSV) is stored in the
次に、CPU30から撮影回数(n_max)の情報を取得し(ステップS343)、あらかじめ取得した差分ステップ(ΔSV)と適正撮影感度(SV_flash)とに基づいて各撮影回における実際の撮影感度(SV(1)、SV(2)、…SV(n_max))を算出する(ステップS344〜S347)。すなわち、まず、変数nをn=1とし(ステップS344)、次式[SV(n) = SV_flash + (n - 1) * ΔSV]…(式4)により、1回目の撮影の撮影感度ΔSV(1)を算出する(ステップS345)。なお、1回目の撮影の撮影感度ΔSV(1)は、適正撮影感度(SV_flash)に設定される。 Next, information on the number of times of shooting (n_max) is acquired from the CPU 30 (step S343), and the actual shooting sensitivity (SV ( 1), SV (2),... SV (n_max)) are calculated (steps S344 to S347). That is, first, the variable n is set to n = 1 (step S344), and the following sensitivity [SV (n) = SV_flash + (n-1) * ΔSV] (Expression 4) 1) is calculated (step S345). Note that the shooting sensitivity ΔSV (1) of the first shooting is set to an appropriate shooting sensitivity (SV_flash).
この後、変数nに1を加算して(ステップS346)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS347)、超えるまで上記ステップS345〜S247の処理を繰り返す。 Thereafter, 1 is added to the variable n (step S346), it is determined whether or not the variable n exceeds the number of times of photographing (n_max) (step S347), and the processing of steps S345 to S247 is repeated until the variable n is exceeded.
以上により、各撮影回における実際の撮影感度が設定される。設定された各撮影回における実際の撮影感度の情報は、SDRAM36に格納される。
As described above, the actual photographing sensitivity at each photographing time is set. Information of actual photographing sensitivity at each set photographing time is stored in the
なお、本実施の形態の撮影装置200では、顔が検出されていない場合、撮影回数(n_max)が1に設定されるので、この場合、実際の撮影感度(SV(1))は適正撮影感度(SV_flash)に設定される。
In the photographing
一方、顔が検出されている場合、撮影回数(n_max)が3設定されるので、3回分の撮影感度が設定される。この場合、上式4より、1回目の撮影の撮影感度SV(1)は、SV_flash(適正撮影感度)、2回目の撮影の撮影感度SV(2)は、SV_flash + ΔSV、3回目の撮影の撮影感度SV(3)は、SV_flash + 2*ΔSVとなる。すなわち、設定された差分ステップで段階的に撮影感度が上がるように設定される。
On the other hand, when the face is detected, the number of times of shooting (n_max) is set to 3, so the shooting sensitivity for 3 times is set. In this case, from the
以上のようにして、各撮影回における実際の撮影感度が設定されると、CPU30は、図15に示すように、設定された撮影回数(n_max)で本撮影の処理を実行する(ステップS317〜S322)。すなわち、まず、変数nをn=1とし(ステップS317)、1回目の撮影のフラッシュ28の発光時間t(1)(=適正発光時間)を設定するとともに(ステップS318)、撮影感度と露出を設定する(ステップS319)。この際、撮影感度SVは、上記ステップS316で設定で設定された1回目の撮影感度SV(1)(1回目は適正撮影感度)を設定する。そして、このように設定された撮影感度と露出で1回目のフラッシュ撮影を実行する(ステップS320)。
As described above, when the actual shooting sensitivity at each shooting time is set, the
この後、CPU30は、変数nに1を加算して(ステップS321)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS322)、超えるまで上記ステップS318〜S321の処理を繰り返す。
Thereafter, the
すなわち、スルー画において顔が検出されておらず、撮影回数(n_max)が1回に設定されている場合は、1回で撮影は終了し、顔が検出されて、撮影回数(n_max)が3回に設定されている場合は、3回フラッシュ撮影をして、撮影処理を終了する。この場合、1回目の撮影は、撮影感度がSV(1)(=適正発光感度(SV_flash))に、2回目の撮影は撮影感度がSV(2)に、3回目は撮影感度がSV(3)に設定されて、それぞれフラッシュ撮影が行われる(SV(1)>SV(2)>SV(3))。すなわち、段階的に撮影感度が適正撮影感度から上げられる方向にシフトされて撮影される。 That is, when a face is not detected in the through image and the number of times of photographing (n_max) is set to one, the photographing is finished once, the face is detected, and the number of times of photographing (n_max) is three. If the time is set, the flash photography is performed three times, and the photographing process is terminated. In this case, for the first shooting, the shooting sensitivity is SV (1) (= appropriate light emission sensitivity (SV_flash)), for the second shooting, the shooting sensitivity is SV (2), and for the third shooting, the shooting sensitivity is SV (3 ) And flash shooting is performed for each (SV (1)> SV (2)> SV (3)). In other words, the shooting sensitivity is gradually shifted in the direction of increasing from the appropriate shooting sensitivity.
このように本実施の形態の撮影装置300では、フラッシュ撮影する際、顔の有無に基づき本撮影の撮影回数を決定し、複数回撮影する場合は、撮影感度を段階的に上げて、複数回撮影を実施する。これにより、赤目の検出しやすい画像を簡単に得ることができる。得られた画像はSDRAM36に一時的に格納される。
As described above, in the photographing
以上のようにしてフラッシュ撮影が行われると、図15に示すように、CPU30は、撮影により得られた画像に対して赤目の検出・補正処理を実行する。
When flash shooting is performed as described above, as shown in FIG. 15, the
まず、変数nをn=1とし(ステップS323)、処理対象の画像に1回目の撮影画像を選択し(ステップS324)、その画像に対して赤目の検出処理を行う(ステップS325)。すなわち、1回目の撮影により得られた画像の画像データを顔検出回路62に加え、顔検出をさせる。そして、顔検出回路62で顔検出された画像の画像データを赤目検出・補正回路64に加え、赤目の検出処理を行わせる。赤目検出・補正回路64は、入力された画像データに対して赤目の検出を行い、その検出結果をCPU30に出力する。CPU30は、赤目検出・補正回路64による赤目の検出結果に基づき赤目の有無を判定し(ステップS326)、赤目が検出されると、赤目検出・補正回路64に赤目補正の指示を出力する。赤目検出・補正回路64は、このCPU30の指示に応じて撮影により得られた画像に対して画像処理により赤目の補正の処理を行う(ステップS327)。この赤目補正された画像の画像データは、顔検出の情報及び赤目補正の情報とともにSDRAM36に格納される。
First, the variable n is set to n = 1 (step S323), the first captured image is selected as the processing target image (step S324), and red-eye detection processing is performed on the image (step S325). That is, image data of an image obtained by the first shooting is added to the
1回目に撮影された画像に対する赤目の検出・補正処理が終了すると、CPU30は、変数nに1を加算して(ステップS328)、nが撮影回数(n_max)が超えているか否かを判定し(ステップS329)、超えるまで上記ステップS324〜S328の処理を繰り返す。すなわち、スルー画において顔が検出されておらず、撮影回数(n_max)が1回に設定されている場合は、1回で赤目の検出・補正処理は終了し、顔が検出されて、撮影回数(n_max)が3回に設定されている場合は、3回赤目の検出・補正処理が行われる(1日目に撮影された画像の赤目検出・補正が終了すると、2回目に撮影された画像の赤目検出・補正が行われ、2回目に撮影された画像の赤目検出・補正が終了すると、3回目に撮影された画像の赤目検出・補正が行われる。)。
When the red-eye detection / correction processing for the first photographed image ends, the
なお、ステップS325で赤目が検出されず、ステップS326で赤目が検出されていないと判定されると、その画像に対する赤目補正の処理は行われず、そのまま赤目補正無しの情報とともにSDRAM36に格納される。
If it is determined in step S325 that no red eye has been detected and no red eye has been detected in step S326, the red eye correction process is not performed on the image, and is stored in the
以上のようにして、撮影により得られた画像に対する赤目の検出・補正処理が完了すると、CPU30は、画像の記録判定の処理を行って、画像の記録処理を実施する(ステップS330)。すなわち、画像記録判定回路202に画像記録の要否の判定を行わせ、その判定結果に基づいて画像の記録処理を実施する。
As described above, when the red-eye detection / correction processing for the image obtained by photographing is completed, the
なお、この画像記録処理は、上記第3の実施の形態の撮影装置200における画像記録の処理(ステップS230)と同じである。すなわち、複数回フラッシュ撮影した場合は、赤目補正された画像についてのみ撮影により得られた画像を記憶メディア20に記録する(図12参照)。これにより、赤目補正された好ましい画像のみを記録することができる。
This image recording process is the same as the image recording process (step S230) in the photographing
このように、本実施の形態の撮影装置300では、フラッシュ撮影時に撮影感度を段階的に上げて複数回フラッシュ撮影し、各画像について自動で赤目の検出・補正処理を実施し、赤目が補正された画像についてのみ記憶メディア20に記録する。これにより確実に赤目補正された画像のみを記録することができる。また、撮影指示からの間隔が開くこともないので、撮影者の意図する構図で被写体を撮影することができる。
As described above, in the photographing
なお、上記実施の形態においても、フラッシュ28をプリ発光させて、本撮影時のフラッシュ28の適正発光時間を求めているが、適正発光時間を算出する方法は、これに限定されるものではない。
In the embodiment described above, the
また、本実施の形態では、顔検出を行い、顔が検出された場合にのみ、複数回撮影するようにしているが、顔の検出の有無に関わらず、複数回の撮影を行うようにしてもよい。 Also, in this embodiment, face detection is performed, and multiple shots are taken only when a face is detected. However, multiple shots are taken regardless of whether or not a face is detected. Also good.
また、本実施の形態では、差分ステップを一定にしているが、フラッシュの適正発光量に応じて差分ステップを設定するようにしてもよい。たとえば、上記ステップS341により適正発光時間(t_flash)をΔEV値(ΔEV_flash)に変換した後、その変換したΔEV値(ΔEV_flash)と閾値とを比較して差分ステップ(ΔSV)を設定するようにしてもよい。すなわち、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合は、差分ステップ(ΔSV)をΔSV1に設定し、閾値以下の場合は、差分ステップ(ΔSV)をΔSV2に設定する。ここで、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値を超えている場合に設定する差分ステップ(ΔSV1)は、適正発光時間から変換したΔEV値(ΔEV_flash)が閾値以下の場合に設定する差分ステップ(ΔSV2)よりも大きく設定される(ΔSV1 < ΔSV2)。これは、適正発光時間が短い(発光量が小さい)方が、赤目が発生しにくくなると考えられるためである。すなわち、適正発光時間が短く、赤目が発生しにくい場合は、感度の差分ステップ(ΔSV)を大きくし、赤目が検出されやすくする。一方、適正発光時間が長く、赤目が発生しやすい場合は、感度の差分ステップ(ΔSV)を小さくし、白飛び等が生じない範囲で赤目が検出されやすくする。 Further, in the present embodiment, the difference step is made constant, but the difference step may be set according to the appropriate light emission amount of the flash. For example, after the appropriate light emission time (t_flash) is converted into the ΔEV value (ΔEV_flash) in step S341, the converted ΔEV value (ΔEV_flash) is compared with the threshold value to set the difference step (ΔSV). Good. That is, if the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value, the difference step (ΔSV) is set to ΔSV1, and if it is equal to or less than the threshold value, the difference step (ΔSV) is set to ΔSV2. Here, the difference step (ΔSV1) set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time exceeds the threshold value is set when the ΔEV value (ΔEV_flash) converted from the appropriate light emission time is equal to or less than the threshold value. It is set larger than the difference step (ΔSV2) (ΔSV1 <ΔSV2). This is because it is considered that red eyes are less likely to occur when the appropriate light emission time is shorter (the light emission amount is smaller). That is, when the appropriate light emission time is short and red eyes are difficult to occur, the sensitivity difference step (ΔSV) is increased to facilitate detection of red eyes. On the other hand, if the proper light emission time is long and red eyes are likely to occur, the sensitivity difference step (ΔSV) is reduced to make it easier to detect red eyes in a range where whiteout or the like does not occur.
また、上記実施の形態では、撮影感度を適正撮影感度から段階的に上げて複数回撮影しているが、撮影絞りを適正撮影絞りから段階的に開く方向にシフトさせて複数回撮影するようにしてもよい。また、撮影感度と撮影絞りの双方を調整して、複数回撮影するようにしてもよい。 In the above embodiment, the shooting sensitivity is stepped up from the appropriate shooting sensitivity and shot multiple times. However, the shooting aperture is shifted from the appropriate shooting aperture in a stepwise opening direction and shot multiple times. May be. Further, it is possible to shoot a plurality of times by adjusting both the shooting sensitivity and the shooting aperture.
また、本実施の形態では、感度の差分ステップ(ΔSV)を設定する際、適正発光時間と閾値との比較において、2段階に分けて設定しているが、更に詳細に設定できるようにしてもよい。たとえば、適正発光時間を複数の区分に分割し、区分ごとに感度の分ステップを設定し、算出された適正発光時間が、どの区分に属するかによって感度の差分ステップを設定するようにしてもよい。また、算出された適正発光時間に比例して、差分ステップを設定するようにしてもよい。また、算出された適正発光時間に比例して、差分ステップを設定するようにしてもよい。また、算出された適正発光時間に応じて関数により、差分ステップを設定するようにしてもよい。なお、いずれの場合も適正発光量が大きくなるに従い差分ステップが小さくなるように設定する。 In this embodiment, when the sensitivity difference step (ΔSV) is set, it is set in two stages in the comparison between the appropriate light emission time and the threshold, but it may be set in more detail. Good. For example, the appropriate light emission time may be divided into a plurality of sections, a sensitivity minute step may be set for each section, and a sensitivity difference step may be set depending on which section the calculated appropriate light emission time belongs to. . Further, the difference step may be set in proportion to the calculated appropriate light emission time. Further, the difference step may be set in proportion to the calculated appropriate light emission time. Further, the difference step may be set by a function according to the calculated appropriate light emission time. In either case, the difference step is set to decrease as the appropriate light emission amount increases.
また、上記実施の形態では、複数回フラッシュ撮影した場合において、赤目補正された画像をすべて記憶メディア20に記録するようにしているが、記録前に液晶モニタ24に表示させ、記録の要否をユーザに問い合わせるようにしてもよい。
Further, in the above embodiment, when the flash photography is performed a plurality of times, all the red-eye corrected images are recorded on the
また、赤目補正された画像が複数枚ある場合には、記録する画像をユーザに選択させるようにしてもよい。 Further, when there are a plurality of red-eye corrected images, the user may select an image to be recorded.
さらに、複数回撮影された画像のなかで最も赤目らしい画像を自動で検出し、その画像の赤目補正後の画像データのみを記録するようにしてもよい(図13参照)。 Furthermore, it is also possible to automatically detect the most red-eye image among images taken a plurality of times and record only the image data after the red-eye correction of the image (see FIG. 13).
また、本実施の形態では、複数回撮影する場合において、撮影回数を3回に設定しているが、撮影回数は、これに限定されるものではなく、適宜増減させて設定することもできる。また、ユーザが任意に設定できるようにしてもよい。 Further, in the present embodiment, when shooting a plurality of times, the number of times of shooting is set to three, but the number of times of shooting is not limited to this, and can be set by appropriately increasing or decreasing. Moreover, you may enable it to set arbitrarily by a user.
図17は、本発明に係る撮影装置の第5の実施の形態の概略構成を示すブロック図である。 FIG. 17 is a block diagram showing a schematic configuration of the fifth embodiment of the photographing apparatus according to the present invention.
本実施の形態の撮影装置400では、フラッシュ撮影時に1回の撮影指示で通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回の撮影を行い、得られた各画像について赤目の検出・補正処理を行って画像の記録を行う。
The photographing
ここで、通常フラッシュ撮影とは、適正露出の下、適正発光量(適正発光時間)でフラッシュを発光させて撮影することをいい、赤目軽減フラッシュ撮影とは、通常フラッシュ撮影の直前にフラッシュをプリ発光させて撮影することをいう。 Here, normal flash photography refers to shooting with the appropriate flash amount (appropriate flash duration) under appropriate exposure, and flash shooting with red-eye reduction. Shooting with light emission.
画像をデジタルデータとして記録するデジタルカメラの場合、撮影段階で赤目が発生した場合であっても、画像処理により、それを補正することができる。しかし、人種による瞳の色の違いなどの影響で、どんな被写体でも簡単に違和感なく補正するのは難しいと考えられる。したがって、赤目軽減フラッシュ撮影を行うなどして撮影段階でできるだけ赤目を軽減させ、それでも発生した赤目について、後処理で補正することが望ましい。 In the case of a digital camera that records an image as digital data, even if red eyes are generated at the shooting stage, it can be corrected by image processing. However, it is considered difficult to easily correct any subject without a sense of incongruity due to the difference in the color of the eyes depending on the race. Therefore, it is desirable to reduce red eyes as much as possible at the shooting stage by performing red-eye reduction flash photography, and to correct the red eyes that still occur in post-processing.
しかし、赤目軽減フラッシュ撮影で発生する赤目は、補正すべきレベルのものであっても、通常フラッシュ撮影時に発生する赤目より、大きさ、色の差分が小さくなり、赤目を検出しづらくなるという欠点がある。その結果、赤目の検出方式によっては、検出できず、適切な補正ができないという問題がある。 However, the red-eye that occurs in red-eye reduction flash photography has the disadvantage that even if it is at a level that should be corrected, the difference in size and color is smaller than red-eye that normally occurs during flash photography, making it difficult to detect red-eye. There is. As a result, there is a problem that some red-eye detection methods cannot be detected and cannot be appropriately corrected.
そこで、本実施の形態の撮影装置400では、フラッシュ撮影時に1回の撮影指示で通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回の撮影を行い、得られた各画像について赤目の検出・補正処理を行って画像の記録を行う。
Therefore, the photographing
なお、装置の基本構成は、上述した第1の実施の形態の撮影装置10と同じであり、フラッシュ発光時間算出回路68がなく、画像記録判定回路402を有する点で相違している。
The basic configuration of the apparatus is the same as that of the photographing
画像記録判定回路402は、上記第3の実施の形態の撮影装置200における画像記録判定回路202と同様に、フラッシュ撮影により得られた2枚の画像の赤目補正の結果と顔検出の結果に基づき画像記録の要否を判定する。すなわち、顔が検出されていない画像、及び、顔が検出され、かつ、赤目が検出・補正された画像については、画像記録が必要と判定する(記録判定)。一方、顔は検出されたが、赤目は検出・補正されていない画像については画像記録が不要と判定する(消去判定)。CPU30は、この画像記録判定回路402の判定結果に基づいて画像の記録処理を実施する。
Similar to the image
以下、本実施の形態の撮影装置400によるフラッシュ撮影時の処理動作の手順について説明する。
Hereinafter, a procedure of processing operation at the time of flash photographing by the photographing
図18は、本実施の形態の撮影装置400によるフラッシュ撮影時における処理手順を示すフローチャートである。
FIG. 18 is a flowchart showing a processing procedure at the time of flash photographing by the photographing
シャッタボタンの押下により、本撮影の指示が行われると、CPU30は、AE制御の処理を実行し、被写体を測光して、適正撮影感度、適正露出を設定する(ステップS410)。また、AF制御の処理を実行し、主要被写体に焦点を合わせる(ステップS411)。
When an instruction for actual shooting is issued by pressing the shutter button, the
この後、CPU30は、フラッシュ発光制御回路74にコマンドを出力し、フラッシュ28を所定の発光量(発光時間)でプリ発光させる(ステップS312)。そして、そのプリ発光時に撮像素子14で撮像された画像に基づいて適正発光量(適正発光時間)を算出する。すなわち、プリ発光時に撮像素子14で撮像された画像の画像信号をAE検出回路58に加え、分割エリアごとのR、G、Bの画像信号の積算値を算出させる(ステップS313)。そして、このAE検出回路58から得た積算値に基づいて適正発光時間を算出する(ステップS414)。
Thereafter, the
適正発光時間が算出されると、CPU30は、本撮影の撮影回数(n_max)を設定する(ステップS415)。ここで、本実施の形態の撮影装置400では、1回のフラッシュ撮影で通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回の撮影を行うので、本撮影の撮影回数(n_max)を2に設定する。
When the appropriate light emission time is calculated, the
本撮影時における撮影回数が設定されると、次に、CPU30は、各撮影回の撮影条件を設定する(ステップS416)。ここでは、1回目の撮影を通常フラッシュ撮影とし、2回目の撮影を赤目軽減フラッシュ撮影とする。
When the number of times of photographing at the time of main photographing is set, the
以上のようにして、各撮影回における撮影条件が設定されると、CPU30は、設定された撮影条件の下で各回の本撮影の処理を実行する(ステップS417〜S424)。
As described above, when the shooting conditions for each shooting time are set, the
まず、変数nをn=1とし(ステップS417)、1回目の撮影(1回目の撮影は通常フラッシュ撮影)のフラッシュ28の発光時間を設定するとともに(ステップS418)、撮影感度、露出を適正撮影感度、適正露出に設定する(ステップS419)。
First, the variable n is set to n = 1 (step S417), the light emission time of the
この後、CPU30は、今回の撮影が赤目軽減フラッシュ撮影か否かを判定する(ステップS420)。そして、今回の撮影が赤目軽減フラッシュ撮影と判定すると、フラッシュ28をプリ発光させ(ステップS421)、その後、フラッシュ撮影を行う(ステップS422)。一方、赤目軽減フラッシュ撮影ではないと判定すると、フラッシュ28をプリ発光させずにフラッシュ撮影を行う(ステップS422)。
Thereafter, the
1回目の撮影は、通常フラッシュ撮影であるので、フラッシュ28はプリ発光させずにフラッシュ撮影を行う。
Since the first shooting is normal flash shooting, the
一方、2回目の撮影は、赤目軽減フラッシュ撮影であるので、フラッシュ28をプリ発光させたのち、フラッシュ撮影を行う。
On the other hand, since the second shooting is red-eye reduction flash shooting, flash shooting is performed after the
この後、CPU30は、変数nに1を加算して(ステップS423)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS424)、超えるまで上記ステップS318〜S321の処理を繰り返す。
Thereafter, the
すなわち、1回目の撮影(通常フラッシュ撮影)は、フラッシュ28をプリ発光させずにフラッシュ撮影を行い、2回目の撮影(赤目軽減フラッシュ撮影)は、フラッシュ28をプリ発光させたのち、フラッシュ撮影を行う。
That is, the first shooting (normal flash shooting) performs flash shooting without pre-flashing the
以上のようにして通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回のフラッシュ撮影が終了すると、CPU30は、撮影により得られた画像に対して赤目の検出・補正処理を実行する(ステップS425〜S431)。
When the two flash shootings of the normal flash shooting and the red-eye reduction flash shooting are completed as described above, the
まず、変数nをn=1とし(ステップS425)、処理対象の画像に1回目の撮影画像(通常フラッシュで撮影された画像)を選択し(ステップS426)、その画像に対して赤目の検出処理を行う(ステップS427)。すなわち、1回目の撮影により得られた画像の画像データを顔検出回路62に加え、顔検出をさせる。そして、顔検出回路62で顔検出された画像の画像データを赤目検出・補正回路64に加え、赤目の検出処理を行わせる。赤目検出・補正回路64は、入力された画像データに対して赤目の検出を行い、その検出結果をCPU30に出力する。CPU30は、赤目検出・補正回路64による赤目の検出結果に基づき赤目の有無を判定し(ステップS428)、赤目が検出されると、赤目検出・補正回路64に赤目補正の指示を出力する。赤目検出・補正回路64は、このCPU30の指示に応じて撮影により得られた画像に対して画像処理により赤目の補正の処理を行う(ステップS429)。この赤目補正された画像の画像データは、顔検出の情報及び赤目補正の情報とともにSDRAM36に格納される。
First, the variable n is set to n = 1 (step S425), the first captured image (image captured with a normal flash) is selected as the processing target image (step S426), and red-eye detection processing is performed on the image. Is performed (step S427). That is, image data of an image obtained by the first shooting is added to the
1回目に撮影された画像に対する赤目の検出・補正処理が終了すると、CPU30は、変数nに1を加算して(ステップS430)、変数nが撮影回数(n_max)が超えているか否かを判定し(ステップS431)、超えるまで上記ステップS426〜S430の処理を繰り返す。
When the red-eye detection / correction processing for the first captured image ends, the
なお、ステップS427で赤目が検出されず、ステップS428で赤目が検出されていないと判定されると、その画像に対する赤目補正の処理は行われず、そのまま赤目補正無しの情報とともにSDRAM36に格納される。
If it is determined in step S427 that no red eye is detected and no red eye is detected in step S428, the red-eye correction process is not performed on the image, and the image is stored in the
本実施の形態の撮影装置400では、通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回の撮影が行われているので、各撮影で得られた画像に対して赤目の検出・補正処理が行われる。
In the photographing
以上のようにして、撮影により得られた画像に対する赤目の検出・補正処理が完了すると、CPU30は、画像の記録判定の処理を行って、画像の記録処理を実施する(ステップS430)。すなわち、画像記録判定回路402に画像記録の要否の判定を行わせ、その判定結果に基づいて画像の記録処理を実施する。
As described above, when the red-eye detection / correction processing for the image obtained by photographing is completed, the
なお、この画像記録処理は、上記第3の実施の形態の撮影装置200における画像記録の処理(ステップS430)と同じである。すなわち、赤目補正された画像についてのみ撮影により得られた画像を記憶メディア20に記録する(図12参照)。これにより、適切に赤目補正された好ましい画像のみを記録することができる。
This image recording process is the same as the image recording process (step S430) in the photographing
このように、本実施の形態の撮影装置400では、フラッシュ撮影時に1回の撮影指示で通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回のフラッシュ撮影を行い、各撮影画像について自動で赤目の検出・補正処理を実施し、赤目が補正された画像についてのみ記憶メディア20に記録する。これにより確実に赤目補正された画像のみを記録することができる。また、撮影指示からの間隔が開くこともないので、撮影者の意図する構図で被写体を撮影することができる。
As described above, the photographing
なお、本実施の形態では、双方画像が赤目補正された場合、双方の画像を記憶メディア20に記録するようにしているが、記録前に液晶モニタ24に表示させ、個別に記録の要否をユーザに問い合わせるようにしてもよい。
In this embodiment, when both images are red-eye corrected, both images are recorded on the
また、いずれの画像が赤目らしいかを判定し、赤目らしい画像の赤目補正後の画像データのみを記録するようにしてもよい(図13参照)。 Further, it may be determined which image is red-eyed and only the image data after red-eye correction of the red-eye-like image is recorded (see FIG. 13).
また、上記実施の形態においても、フラッシュ28をプリ発光させて、本撮影時のフラッシュ28の適正発光時間を求めているが、適正発光時間を算出する方法は、これに限定されるものではない。
Also in the above-described embodiment, the
さらに、上記実施の形態では、フラッシュ撮影時に常に赤目軽減フラッシュ撮影と通常フラッシュ撮影の2回の撮影を行うようにしているが、スルー画の段階で顔が検出されなかった場合は、通常フラッシュ撮影を行い、スルー画の段階で顔が検出された場合にのみ赤目軽減フラッシュ撮影と通常フラッシュ撮影の2回の撮影を行うようにしてもよい。 Further, in the above-described embodiment, two shootings of red-eye reduction flash shooting and normal flash shooting are always performed at the time of flash shooting. However, if a face is not detected at the through image stage, normal flash shooting is performed. The red eye reduction flash photography and the normal flash photography may be performed only when a face is detected at the through image stage.
また、フラッシュモードとして、通常フラッシュ撮影のみを行う通常フラッシュ撮影モードと、赤目軽減フラッシュ撮影のみを行う赤目軽減フラッシュ撮影モードと、通常フラッシュ撮影と赤目軽減フラッシュ撮影の2回の撮影を行う2枚撮りモードを用意し、ユーザが適宜選択できるようにしてもよい。 In addition, as a flash mode, a normal flash shooting mode in which only normal flash shooting is performed, a red-eye reduction flash shooting mode in which only red-eye reduction flash shooting is performed, and double shooting in which normal flash shooting and red-eye reduction flash shooting are performed twice. A mode may be prepared so that the user can select as appropriate.
なお、上記一連の実施の形態では、本発明をデジタルカメラに適用した場合を例に説明したが、本発明の適用は、これに限定されるものではなく、フラッシュの撮影機能を備えた携帯電話機やビデオカメラ等にも同様に適用することができる。 In the series of embodiments described above, the case where the present invention is applied to a digital camera has been described as an example. However, the application of the present invention is not limited to this, and a mobile phone provided with a flash photographing function. It can be similarly applied to video cameras and video cameras.
また、上記一連の実施の形態の撮影装置では、実際のフラッシュ発光時間の算出処理や撮影感度の算出処理、撮影画像の記録判定処理、赤目の検出・補正処理、顔の検出処理等をハードウェア回路で実現しているが、ソフトウェアによって行うこともできる。 In addition, in the imaging apparatus according to the above-described series of embodiments, the actual flash emission time calculation processing, imaging sensitivity calculation processing, captured image recording determination processing, red-eye detection / correction processing, face detection processing, and the like are performed by hardware. Although it is realized by a circuit, it can also be performed by software.
10…撮影装置、12…撮影光学系、12z…ズームレンズ、12f…フォーカスレンズ、12i…アイリス絞り、12s…シャッタ、14…撮像素子、16…アナログ信号処理部、18…デジタル信号処理部、20…記憶メディア、22…操作部、24…液晶モニタ(LCD)、26…電源、28…フラッシュ、30…CPU、32…バス、34…フラッシュROM、36…SDRAM、38…レンズ駆動回路、40…タイミングジェネレータ(TG)、42…相関二重サンプリング回路(CDS)、44…オート・ゲイン・コントロール(AGC)回路、46…A/Dコンバータ、50…画像バッファ、52…YC処理回路、54…圧縮・伸張処理回路、56…メディアコントローラ、58…AE検出回路、60…AF検出回路、62…顔検出回路、64…赤目検出・補正回路、68…フラッシュ発光時間算出回路、70…エンコーダ、72…LCD駆動回路、74…フラッシュ発光制御回路、100…撮影装置、102…撮影感度算出回路、200…撮影装置、202…画像記録判定回路、300…撮影装置、302…画像記録判定回路、400…撮影装置、402…画像記録判定回路
DESCRIPTION OF
Claims (30)
所定の差分ステップでフラッシュの発光量を適正発光量から段階的に減少させて複数回本撮影することを特徴とする撮影方法。 When shooting with the flash fired during the main shooting, obtain the appropriate flash amount for the main shooting in advance,
An image-taking method characterized in that the main flash is taken a plurality of times by gradually reducing the flash light emission amount from the appropriate light emission amount at a predetermined difference step.
所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトさせて複数回本撮影することを特徴とする撮影方法。 When shooting with the flash fired during the main shooting, obtain the appropriate flash amount for the main shooting in advance,
An imaging method characterized in that at least one of imaging sensitivity or imaging aperture is shifted gradually from the appropriate imaging sensitivity or imaging aperture to the under side in a predetermined difference step to perform multiple imaging.
所定の差分ステップでフラッシュの発光量を適正発光量から段階的に増加させて複数回本撮影し、
本撮影により得られた各画像から赤目を検出し、
赤目が検出された画像に対して画像処理により赤目補正することを特徴とする撮影方法。 When shooting with the flash fired during the main shooting, obtain the appropriate flash amount for the main shooting in advance,
In a predetermined difference step, the flash emission level is gradually increased from the appropriate flash emission level, and multiple shots are taken.
Detect red eyes from each image obtained by this shooting,
An imaging method, wherein red-eye correction is performed by image processing on an image in which red-eye is detected.
被写体の顔が検出された画像については、赤目補正した画像のみを記録することを特徴とする請求項7に記載の撮影方法。 Detect the face of the subject from each image obtained by the actual shooting,
8. The photographing method according to claim 7, wherein only the red-eye corrected image is recorded for the image in which the face of the subject is detected.
所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方を適正撮影感度又は適正撮影絞りから段階的にオーバー側にシフトさせて複数回本撮影し、
本撮影により得られた各画像から赤目を検出し、
赤目が検出された画像に対して画像処理により赤目補正することを特徴とする撮影方法。 When shooting with the flash fired during the main shooting, obtain the appropriate flash amount for the main shooting in advance,
At least one of the shooting sensitivity or shooting aperture is shifted from the appropriate shooting sensitivity or shooting aperture to the over side step by step in a predetermined difference step, and multiple shots are taken.
Detect red eyes from each image obtained by this shooting,
An imaging method, wherein red-eye correction is performed by image processing on an image in which red-eye is detected.
被写体の顔が検出された画像については、赤目補正した画像のみを記録することを特徴とする請求項10に記載の撮影方法。 Detect the face of the subject from each image obtained by the actual shooting,
The image capturing method according to claim 10, wherein only the red-eye corrected image is recorded for the image in which the face of the subject is detected.
1回の撮影指示で、撮影直前にフラッシュをプリ発光させてフラッシュ撮影する赤目軽減フラッシュ撮影と、撮影直前にフラッシュをプリ発光させないでフラッシュ撮影する通常フラッシュ撮影の2回の撮影を実施し、
撮影により得られた各画像から赤目を検出し、
赤目が検出された画像に対して画像処理により赤目補正することを特徴とする撮影方法。 In the shooting method of shooting with the flash fired,
With one shooting instruction, two shootings were performed: red-eye reduction flash shooting with flash pre-flash just before shooting, and normal flash shooting without flash pre-flash immediately before shooting,
Detect red eyes from each image obtained by shooting,
An imaging method, wherein red-eye correction is performed by image processing on an image in which red-eye is detected.
被写体の顔が検出された画像については、赤目補正した画像のみを記録することを特徴とする請求項13に記載の撮影方法。 Detect the face of the subject from each image obtained by shooting,
14. The photographing method according to claim 13, wherein only the red-eye corrected image is recorded for the image in which the face of the subject is detected.
1回の撮影指示でフラッシュの発光量を変えた本撮影の処理を複数回実行する撮影制御手段と、
所定の差分ステップでフラッシュの発光量が適正発光量から段階的に減少するように各回のフラッシュの発光量を設定するフラッシュ発光量設定手段と、
を備えたことを特徴とする撮影装置。 When shooting with the flash fired at the time of actual shooting, obtain the appropriate flash intensity for the actual shooting in advance,
Shooting control means for executing a plurality of times of main shooting processing in which the flash emission amount is changed by one shooting instruction;
A flash light emission amount setting means for setting the light emission amount of each flash so that the light emission amount of the flash gradually decreases from the appropriate light emission amount in a predetermined difference step;
An imaging apparatus comprising:
1回の撮影指示で撮影感度又は撮影絞りの少なくとも一方を変えた本撮影の処理を複数回実行する撮影制御手段と、
所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方が適正撮影感度又は適正撮影絞りから段階的にアンダー側にシフトするように各回の撮影感度又は撮影絞りを設定する設定手段と、
を備えたことを特徴とする撮影装置。 When shooting with the flash fired at the time of actual shooting, obtain the appropriate flash intensity for the actual shooting in advance,
Photographing control means for executing a plurality of times of main photographing processing in which at least one of photographing sensitivity or photographing aperture is changed by one photographing instruction;
Setting means for setting the shooting sensitivity or the shooting aperture for each time so that at least one of the shooting sensitivity or the shooting aperture is shifted gradually from the appropriate shooting sensitivity or the appropriate shooting aperture to the under side in a predetermined difference step;
An imaging apparatus comprising:
1回の撮影指示でフラッシュの発光量を変えた本撮影の処理を複数回実行する撮影制御手段と、
所定の差分ステップでフラッシュの発光量が適正発光量から段階的に増加するように各回のフラッシュの発光量を設定するフラッシュ発光量設定手段と、
撮影により得られた画像から赤目を検出する赤目検出手段と、
前記赤目検出手段で赤目が検出された画像に対して画像処理により赤目補正する赤目補正手段と、
を備えたこと特徴とする撮影装置。 When shooting with the flash fired at the time of actual shooting, obtain the appropriate flash intensity for the actual shooting in advance,
Shooting control means for executing a plurality of times of main shooting processing in which the flash emission amount is changed by one shooting instruction;
A flash light emission amount setting means for setting the light emission amount of each flash so that the flash light emission amount gradually increases from the appropriate light emission amount in a predetermined difference step;
Red-eye detecting means for detecting red eyes from an image obtained by photographing;
Red-eye correction means for correcting red-eye by image processing on an image in which red-eye is detected by the red-eye detection means;
An imaging apparatus comprising:
前記顔検出手段で被写体の顔が検出された画像について、前記赤目検出手段で赤目補正された画像のみを記録する記録制御手段と、
を備えたことを特徴とする請求項22に記載の撮影装置。 Face detection means for detecting the face of the subject from an image obtained by shooting;
A recording control means for recording only an image in which the face of the subject is detected by the face detection means, and an image whose red eye is corrected by the red eye detection means;
The photographing apparatus according to claim 22, further comprising:
前記赤目補正手段で赤目補正された画像がある場合に最も評価値が高い画像のみを記録する記録制御手段と、
を備えたことを特徴とする請求項22に記載の撮影装置。 Evaluation value calculation means for calculating an evaluation value of redness likeness for an image in which red eyes are detected by the red eye detection means;
A recording control means for recording only an image having the highest evaluation value when there is an image that has been red-eye corrected by the red-eye correction means;
The photographing apparatus according to claim 22, further comprising:
1回の撮影指示で撮影感度又は撮影絞りの少なくとも一方を変えた本撮影の処理を複数回実行する撮影制御手段と、
所定の差分ステップで撮影感度又は撮影絞りの少なくとも一方が適正撮影感度又は撮影絞りから段階的にオーバー側にシフトするように各回の撮影感度又は撮影絞りを設定する設定手段と、
撮影により得られた画像から赤目を検出する赤目検出手段と、
前記赤目検出手段で赤目が検出された画像に対して画像処理により赤目補正する赤目補正手段と、
を備えたこと特徴とする撮影装置。 When shooting with the flash fired at the time of actual shooting, obtain the appropriate flash intensity for the actual shooting in advance,
Photographing control means for executing a plurality of times of main photographing processing in which at least one of photographing sensitivity or photographing aperture is changed by one photographing instruction;
A setting means for setting the photographing sensitivity or the photographing aperture of each time so that at least one of the photographing sensitivity or the photographing aperture is gradually shifted to the over side from the appropriate photographing sensitivity or the photographing aperture in a predetermined difference step;
Red-eye detecting means for detecting red eyes from an image obtained by photographing;
Red-eye correction means for correcting red-eye by image processing on an image in which red-eye is detected by the red-eye detection means;
An imaging apparatus comprising:
前記顔検出手段で被写体の顔が検出された画像について、前記赤目検出手段で赤目補正された画像のみを記録する記録制御手段と、
を備えたことを特徴とする請求項25に記載の撮影装置。 Face detection means for detecting the face of the subject from an image obtained by shooting;
A recording control means for recording only an image in which the face of the subject is detected by the face detection means, and an image whose red eye is corrected by the red eye detection means;
26. The photographing apparatus according to claim 25, comprising:
前記赤目補正手段で赤目補正された画像がある場合に最も評価値が高い画像のみを記録する記録制御手段と、
を備えたことを特徴とする請求項25に記載の撮影装置。 Evaluation value calculation means for calculating an evaluation value of redness likeness for an image in which red eyes are detected by the red eye detection means;
A recording control means for recording only an image having the highest evaluation value when there is an image that has been red-eye corrected by the red-eye correction means;
26. The photographing apparatus according to claim 25, comprising:
1回の撮影指示で、撮影直前にフラッシュをプリ発光させてフラッシュ撮影する赤目軽減フラッシュ撮影と、撮影直前にフラッシュをプリ発光させないでフラッシュ撮影する通常フラッシュ撮影の2回の撮影を実施する撮影制御手段と、
撮影により得られた各画像から赤目を検出する赤目検出手段と、
前記赤目検出手段で赤目が検出された画像に対して画像処理により赤目補正する赤目補正手段と、
を備えたことを特徴とする撮影装置。 In an imaging device that shoots with a flash,
Shooting control that performs two shootings: red-eye reduction flash shooting with flash pre-flash just before shooting and normal flash shooting without flash pre-flash just before shooting with one shooting instruction Means,
Red-eye detection means for detecting red eyes from each image obtained by photographing;
Red-eye correction means for correcting red-eye by image processing on an image in which red-eye is detected by the red-eye detection means;
An imaging apparatus comprising:
前記顔検出手段で被写体の顔が検出された画像について、前記赤目検出手段で赤目補正された画像のみを記録する記録制御手段と、
を備えたことを特徴とする請求項28に記載の撮影装置。 Face detection means for detecting the face of the subject from an image obtained by shooting;
A recording control means for recording only an image in which the face of the subject is detected by the face detection means, and an image whose red eye is corrected by the red eye detection means;
29. The photographing apparatus according to claim 28, comprising:
前記赤目補正手段で赤目補正された画像がある場合に最も評価値が高い画像のみを記録する記録制御手段と、
を備えたことを特徴とする請求項28に記載の撮影装置。 Evaluation value calculation means for calculating an evaluation value of redness likeness for an image in which red eyes are detected by the red eye detection means;
A recording control means for recording only an image having the highest evaluation value when there is an image that has been red-eye corrected by the red-eye correction means;
29. The photographing apparatus according to claim 28, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007159427A JP2008312057A (en) | 2007-06-15 | 2007-06-15 | Photographing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007159427A JP2008312057A (en) | 2007-06-15 | 2007-06-15 | Photographing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008312057A true JP2008312057A (en) | 2008-12-25 |
Family
ID=40239227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007159427A Abandoned JP2008312057A (en) | 2007-06-15 | 2007-06-15 | Photographing method and apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008312057A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014096836A (en) * | 2014-01-08 | 2014-05-22 | Nikon Corp | Digital camera |
JP2015110052A (en) * | 2015-02-19 | 2015-06-18 | 株式会社ユニバーサルエンターテインメント | Game device |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0329930A (en) * | 1989-06-27 | 1991-02-07 | Minolta Camera Co Ltd | Camera system |
JPH03168621A (en) * | 1989-11-28 | 1991-07-22 | Minolta Camera Co Ltd | Camera system |
JP2000075364A (en) * | 1998-08-27 | 2000-03-14 | Canon Inc | Camera system |
JP2001222049A (en) * | 2000-02-10 | 2001-08-17 | Fuji Photo Film Co Ltd | Image pickup unit, method of image pickup control, and recording medium readable by computer |
JP2001324751A (en) * | 2000-05-16 | 2001-11-22 | Canon Inc | Image pickup device and set value display method therefor |
JP2003107567A (en) * | 2001-09-28 | 2003-04-09 | Ricoh Co Ltd | Image pickup device, electronic flash control method, and program making computer implement the same method |
JP2004320284A (en) * | 2003-04-15 | 2004-11-11 | Nikon Gijutsu Kobo:Kk | Digital camera |
JP2005039715A (en) * | 2003-07-18 | 2005-02-10 | Pentax Corp | Digital camera having red-eye reducing bracket photographing mode |
JP2005065079A (en) * | 2003-08-19 | 2005-03-10 | Fuji Photo Film Co Ltd | Camera |
JP2005086271A (en) * | 2003-09-04 | 2005-03-31 | Nikon Corp | Electronic camera |
JP2005130213A (en) * | 2003-10-23 | 2005-05-19 | Canon Inc | Electronic camera |
JP2005210288A (en) * | 2004-01-21 | 2005-08-04 | Fuji Photo Film Co Ltd | Imaging device and method, and program |
JP2005221578A (en) * | 2004-02-03 | 2005-08-18 | Canon Inc | Imaging apparatus, control method thereof, program and storage medium |
JP2006126814A (en) * | 2004-09-29 | 2006-05-18 | Casio Comput Co Ltd | Imaging apparatus, its control method and control program |
JP2006148272A (en) * | 2004-11-17 | 2006-06-08 | Sanyo Electric Co Ltd | Electronic camera |
JP2006350558A (en) * | 2005-06-14 | 2006-12-28 | Canon Inc | Image processor and its method |
JP2007067934A (en) * | 2005-08-31 | 2007-03-15 | Canon Inc | Imaging apparatus and its control method |
-
2007
- 2007-06-15 JP JP2007159427A patent/JP2008312057A/en not_active Abandoned
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0329930A (en) * | 1989-06-27 | 1991-02-07 | Minolta Camera Co Ltd | Camera system |
JPH03168621A (en) * | 1989-11-28 | 1991-07-22 | Minolta Camera Co Ltd | Camera system |
JP2000075364A (en) * | 1998-08-27 | 2000-03-14 | Canon Inc | Camera system |
JP2001222049A (en) * | 2000-02-10 | 2001-08-17 | Fuji Photo Film Co Ltd | Image pickup unit, method of image pickup control, and recording medium readable by computer |
JP2001324751A (en) * | 2000-05-16 | 2001-11-22 | Canon Inc | Image pickup device and set value display method therefor |
JP2003107567A (en) * | 2001-09-28 | 2003-04-09 | Ricoh Co Ltd | Image pickup device, electronic flash control method, and program making computer implement the same method |
JP2004320284A (en) * | 2003-04-15 | 2004-11-11 | Nikon Gijutsu Kobo:Kk | Digital camera |
JP2005039715A (en) * | 2003-07-18 | 2005-02-10 | Pentax Corp | Digital camera having red-eye reducing bracket photographing mode |
JP2005065079A (en) * | 2003-08-19 | 2005-03-10 | Fuji Photo Film Co Ltd | Camera |
JP2005086271A (en) * | 2003-09-04 | 2005-03-31 | Nikon Corp | Electronic camera |
JP2005130213A (en) * | 2003-10-23 | 2005-05-19 | Canon Inc | Electronic camera |
JP2005210288A (en) * | 2004-01-21 | 2005-08-04 | Fuji Photo Film Co Ltd | Imaging device and method, and program |
JP2005221578A (en) * | 2004-02-03 | 2005-08-18 | Canon Inc | Imaging apparatus, control method thereof, program and storage medium |
JP2006126814A (en) * | 2004-09-29 | 2006-05-18 | Casio Comput Co Ltd | Imaging apparatus, its control method and control program |
JP2006148272A (en) * | 2004-11-17 | 2006-06-08 | Sanyo Electric Co Ltd | Electronic camera |
JP2006350558A (en) * | 2005-06-14 | 2006-12-28 | Canon Inc | Image processor and its method |
JP2007067934A (en) * | 2005-08-31 | 2007-03-15 | Canon Inc | Imaging apparatus and its control method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014096836A (en) * | 2014-01-08 | 2014-05-22 | Nikon Corp | Digital camera |
JP2015110052A (en) * | 2015-02-19 | 2015-06-18 | 株式会社ユニバーサルエンターテインメント | Game device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8199203B2 (en) | Imaging apparatus and imaging method with face detection based on scene recognition results | |
US8106995B2 (en) | Image-taking method and apparatus | |
US7893969B2 (en) | System for and method of controlling a parameter used for detecting an objective body in an image and computer program | |
JP4761066B2 (en) | White balance correction method and imaging apparatus | |
TWI423664B (en) | Imaging apparatus and exposure control method | |
JP4615458B2 (en) | Exposure control method and imaging apparatus | |
JP4542058B2 (en) | Imaging apparatus and imaging method | |
US20040061796A1 (en) | Image capturing apparatus | |
US8237854B2 (en) | Flash emission method and flash emission apparatus | |
JP5306628B2 (en) | Imaging method and apparatus | |
US9071766B2 (en) | Image capturing apparatus and control method thereof | |
JP6284408B2 (en) | Image processing apparatus, imaging apparatus, determination method, driving method, imaging method, and program | |
JP2003324656A (en) | Imaging device and imaging method, recording medium, and program | |
JP2002223387A (en) | Imaging unit | |
JP5048599B2 (en) | Imaging device | |
US9922410B2 (en) | Image processing apparatus and image processing method | |
JP4285668B2 (en) | Imaging apparatus, exposure control method thereof, and recording medium | |
JP2006127489A (en) | Imaging device, image-processing device, method for controlling imaging device, and program for making computer execute the same | |
JP2008312057A (en) | Photographing method and apparatus | |
JP2009033386A (en) | Photographing device and method | |
JP2015050733A (en) | Exposure control apparatus, exposure control method, control program, and imaging apparatus | |
JP6300514B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
JP4789776B2 (en) | Imaging apparatus and imaging method | |
JP5448391B2 (en) | Imaging apparatus and red-eye correction method | |
JP2001136546A (en) | Electronic camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100216 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110714 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110719 |
|
A762 | Written abandonment of application |
Free format text: JAPANESE INTERMEDIATE CODE: A762 Effective date: 20110914 |