JP2014155033A - Exposure setting device, light emission intensity setting device, control method, program, and storage medium - Google Patents

Exposure setting device, light emission intensity setting device, control method, program, and storage medium Download PDF

Info

Publication number
JP2014155033A
JP2014155033A JP2013023043A JP2013023043A JP2014155033A JP 2014155033 A JP2014155033 A JP 2014155033A JP 2013023043 A JP2013023043 A JP 2013023043A JP 2013023043 A JP2013023043 A JP 2013023043A JP 2014155033 A JP2014155033 A JP 2014155033A
Authority
JP
Japan
Prior art keywords
exposure
image
unit
irradiated
emission intensity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013023043A
Other languages
Japanese (ja)
Inventor
Makoto Kurahashi
誠 倉橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pioneer Corp
Original Assignee
Pioneer Electronic Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pioneer Electronic Corp filed Critical Pioneer Electronic Corp
Priority to JP2013023043A priority Critical patent/JP2014155033A/en
Publication of JP2014155033A publication Critical patent/JP2014155033A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Camera Bodies And Camera Details Or Accessories (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)
  • Stroboscope Apparatuses (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an exposure setting device and a light emission intensity setting device that are capable of adjusting exposure of a photographing unit or/and light emission intensity of a light emission unit so as to enhance detection accuracy of a photographed object.SOLUTION: An imaging device 1 detects a fingertip of a subject 5 from an irradiation image and a non-irradiation image photographed by a photographing unit 12 interlocked with a light emission unit 11, and outputs the detection result to an external device. Then, the imaging device 1 adjusts exposure of the photographing unit 12 and light emission intensity of the light emission unit 11 in accordance with the above-described detection result.

Description

本発明は、画像に基づき被撮影物を検出する技術に関する。   The present invention relates to a technique for detecting an object to be photographed based on an image.

従来から、カメラに発光部を設け、発光がある場合とない場合のそれぞれの場合に撮影した画像の各画素値の差をとった差分画像に基づき、被写体(被撮影物)を検出する方法が知られている。例えば、特許文献1には、上述の差分画像の輝度値に基づき、カメラに近接した被写体を検出する技術が開示されている。また、特許文献2には、発光の有無のそれぞれで撮影した画像又はこれらの差分画像の少なくとも1つに基づき、被写体を検出するのに好適な適正露出に露出を調整する技術が開示されている。   2. Description of the Related Art Conventionally, there has been a method of detecting a subject (object to be photographed) based on a difference image obtained by providing a camera with a light emitting unit and taking a difference between pixel values of images taken in each case where light is emitted. Are known. For example, Patent Document 1 discloses a technique for detecting a subject close to a camera based on the luminance value of the above-described difference image. Patent Document 2 discloses a technique for adjusting exposure to an appropriate exposure suitable for detecting a subject based on at least one of images taken with and without light emission or a difference image thereof. .

特開2004−328657号公報JP 2004-328657 A 特開2009−182461号公報JP 2009-182461 A

カメラに発光部を設け、発光がある場合とない場合のそれぞれの場合に撮影した画像に基づき、被撮影物を検出する場合、被撮影物の表示部分での発光の有無に基づく輝度差が大きくなることが好ましい。従って、カメラの露出を調整する場合には、被撮影物の表示部分での発光の有無に基づく輝度差が大きくなるように露出を調整する必要がある。   When the camera is equipped with a light-emitting unit and the object to be detected is detected based on the images taken with and without the light emission, the brightness difference based on the presence or absence of light emission at the display part of the object is large. It is preferable to become. Therefore, when adjusting the exposure of the camera, it is necessary to adjust the exposure so that the luminance difference based on the presence or absence of light emission at the display portion of the object to be photographed becomes large.

本発明は、上記のような課題を解決するためになされたものであり、被撮影物の検出精度を高めるように撮影部の露出又は/及び発光部の発光強度を調整することが可能な露出設定装置及び発光強度設定装置を提供することを主な目的とする。   The present invention has been made to solve the above-described problems, and is capable of adjusting the exposure of the photographing unit and / or the emission intensity of the light emitting unit so as to improve the detection accuracy of the object to be photographed. A main object is to provide a setting device and a light emission intensity setting device.

請求項1に記載の発明は、被撮影物を撮影する撮影部の露出を設定する露出設定装置であって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出手段と、前記検出手段により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定手段と、を備えることを特徴とする。   The invention according to claim 1 is an exposure setting device that sets an exposure of an imaging unit that captures an object to be imaged, and includes an irradiation image of the object irradiated with light by a light emitting unit, and the light emitting unit. The object to be photographed is detected based on an image acquisition means for obtaining a non-irradiated image of the object to be photographed that is not irradiated with light from the photographing unit, and a luminance difference between the irradiated image and the non-irradiated image. And an exposure setting means for changing the exposure setting of the imaging unit based on the brightness of the display area in the irradiated image or / and the non-irradiated image of the object detected by the detecting means, It is characterized by providing.

また、請求項9に記載の発明は、撮影部により撮影される被撮影物を照射する発光部の発光強度を設定する発光強度設定装置であって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、前記撮影部の露出が適正である場合の前記被撮影物での前記照射画像と前記非照射画像との輝度差を増加させるように、前記発光部の発光強度を設定する発光強度設定手段と、を備えることを特徴とする。   The invention according to claim 9 is a light emission intensity setting device for setting a light emission intensity of a light emitting unit that irradiates an object to be photographed by a photographing unit, wherein the object to be photographed is irradiated with light from the light emitting unit. An image acquisition means for acquiring an irradiation image of an object and a non-irradiation image of the object not irradiated with light from the light emitting unit from the imaging unit, and the exposure when the exposure of the imaging unit is appropriate And a light emission intensity setting means for setting a light emission intensity of the light emitting unit so as to increase a luminance difference between the irradiated image and the non-irradiated image on the object to be photographed.

また、請求項10に記載の発明は、被撮影物を撮影する撮影部の露出を設定する露出設定装置が実行する制御方法であって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得工程と、前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出工程と、前記検出工程により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定工程と、を有することを特徴とする。   The invention according to claim 10 is a control method executed by an exposure setting device that sets an exposure of a photographing unit that photographs a subject, and irradiates the subject with light emitted from a light emitting unit. Based on an image acquisition step of acquiring an image and a non-irradiated image of the object not irradiated with light from the light emitting unit from the imaging unit, and a luminance difference between the irradiated image and the non-irradiated image A detection step of detecting the object to be photographed, and a setting of exposure of the photographing unit based on a luminance of a display area in the irradiated image or / and the non-irradiated image of the object to be photographed detected in the detection step. And an exposure setting step to be changed.

また、請求項11に記載の発明は、被撮影物を撮影する撮影部の露出を設定する露出設定装置が実行するプログラムであって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出手段と、前記検出手段により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定手段として前記露出設定装置を機能させることを特徴とする。   According to an eleventh aspect of the present invention, there is provided a program executed by an exposure setting device for setting an exposure of a photographing unit that photographs a subject, and an irradiation image of the subject irradiated with light from a light emitting unit. And based on the brightness difference between the image acquisition means for acquiring the non-irradiated image of the object to be imaged that is not irradiated by the light emitting unit from the imaging unit, the irradiated image, and the non-irradiated image, Based on the detection means for detecting the object to be photographed and the brightness of the display area in the irradiated image and / or the non-irradiated image of the object to be photographed detected by the detecting means, the exposure setting of the photographing part is changed. The exposure setting device is caused to function as an exposure setting means.

撮像装置の概略構成図である。It is a schematic block diagram of an imaging device. 露出判定領域を示す画像及び露出判定領域での輝度ヒストグラムを示す。The image which shows an exposure determination area | region, and the brightness | luminance histogram in an exposure determination area | region are shown. 露出過多の場合の輝度ヒストグラムと、露出不足の場合の輝度ヒストグラムとをそれぞれ示す。A luminance histogram in the case of overexposure and a luminance histogram in the case of underexposure are shown respectively. 適正露出の場合に発光部の発光強度を弱める前後での輝度と露出の関係を示す。In the case of proper exposure, the relationship between the brightness and the exposure before and after the emission intensity of the light emitting part is weakened is shown. 露出過多の場合に発光部の発光強度を弱める前後での輝度と露出の関係を示す。In the case of overexposure, the relationship between luminance and exposure before and after the emission intensity of the light emitting part is weakened is shown. 適正露出の場合に発光部の発光強度を強める前後での輝度と露出の関係を示す。In the case of appropriate exposure, the relationship between the brightness and the exposure before and after increasing the light emission intensity of the light emitting part is shown. 露出不足の場合に発光部の発光強度を強める前後での輝度と露出の関係を示す。The relationship between the brightness and the exposure before and after increasing the light emission intensity of the light emitting part in the case of underexposure is shown. 本実施例の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a present Example. 露出判定処理のフローチャートである。It is a flowchart of an exposure determination process. 発光強度調整処理のフローチャートである。It is a flowchart of light emission intensity adjustment processing. 変形例に係る処理を説明するための図である。It is a figure for demonstrating the process which concerns on a modification.

本発明の1つの好適な実施形態では、被撮影物を撮影する撮影部の露出を設定する露出設定装置であって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出手段と、前記検出手段により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定手段と、を備える。   In one preferred embodiment of the present invention, there is provided an exposure setting device for setting an exposure of an imaging unit that images an object to be imaged, the irradiation image of the object being irradiated by a light emitting unit, and the light emission The object to be imaged is acquired based on a luminance difference between the image acquisition unit that acquires the non-irradiated image of the object not irradiated with light from the image capturing unit from the image capturing unit, and the irradiated image and the non-irradiated image. Detecting means for detecting the exposure, and exposure setting means for changing the exposure setting of the imaging unit based on the luminance of the display area in the irradiated image and / or the non-irradiated image of the object detected by the detecting means And comprising.

上記の露出設定装置は、画像取得手段と、検出手段と、露出設定手段とを備える。画像取得手段は、発光部により光が照射された被撮影物の照射画像と、発光部により光が照射されていない被撮影物の非照射画像とを、撮影部から取得する。検出手段は、照射画像と、非照射画像との輝度差に基づき、被撮影物を検出する。露出設定手段は、検出手段により検出した被撮影物の照射画像又は/及び非照射画像での表示領域の輝度に基づき、撮影部の露出の設定を変更する。このようにすることで、露出設定装置は、検出した被撮影物の表示領域の輝度に応じて、撮影部の露出を好適に変更することができる。従って、露出設定装置は、被撮影物を検出しやすい露出に撮影部の露出を好適に変更することができる。   The exposure setting apparatus includes an image acquisition unit, a detection unit, and an exposure setting unit. The image acquisition unit acquires, from the imaging unit, an irradiation image of the object irradiated with light from the light emitting unit and a non-irradiated image of the object not irradiated with light from the light emitting unit. The detection means detects the object to be photographed based on the luminance difference between the irradiated image and the non-irradiated image. The exposure setting unit changes the exposure setting of the photographing unit based on the luminance of the display area in the irradiated image and / or the non-irradiated image of the object detected by the detecting unit. By doing in this way, the exposure setting apparatus can suitably change the exposure of the photographing unit according to the detected luminance of the display area of the subject. Therefore, the exposure setting device can suitably change the exposure of the imaging unit to an exposure that makes it easy to detect the subject.

上記露出設定装置の一態様では、前記検出手段は、前記照射画像と、前記非照射画像との輝度差によって、差分画像を生成し、当該差分画像に基づいて前記被撮影物を検出する。この態様により、露出設定装置は、被撮影物を好適に検出することができる。   In one aspect of the exposure setting apparatus, the detection unit generates a difference image based on a luminance difference between the irradiated image and the non-irradiated image, and detects the object to be photographed based on the difference image. According to this aspect, the exposure setting device can suitably detect the object to be photographed.

上記露出設定装置の他の一態様では、前記露出設定手段は、前記検出手段により検出した前記被撮影物の前記表示領域の各画素の輝度の度数分布に基づき、前記撮影部の露出が適正露出、露出不足、又は露出過多のいずれであるかを判定する。この態様により、露出設定装置は、撮影部の露出が適正露出、露出不足、又は露出過多のいずれであるか好適に判定することができる。   In another aspect of the exposure setting apparatus, the exposure setting unit is configured such that the exposure of the imaging unit is an appropriate exposure based on a frequency distribution of luminance of each pixel in the display area of the object to be detected detected by the detection unit. Whether underexposed or overexposed. According to this aspect, the exposure setting device can preferably determine whether the exposure of the photographing unit is appropriate exposure, underexposure, or overexposure.

上記露出設定装置の他の一態様では、露出設定装置は、前記撮影部の露出が適正露出である場合の前記被撮影物の前記照射画像での表示領域の輝度と前記被撮影物の前記非照射画像での表示領域の輝度との輝度差を増加させるように、前記発光部の発光強度を設定する発光強度設定手段をさらに備える。この態様により、露出設定装置は、非照射画像の輝度が過度に低くならない範囲において、被撮影物の照射画像での表示領域の輝度と非照射画像での表示領域の輝度との輝度差を大きくし、被撮影物の検出精度を向上させることができる。   In another aspect of the exposure setting device, the exposure setting device is configured such that the brightness of the display area in the irradiated image of the object to be imaged and the non-existence of the object to be imaged when the exposure of the imaging unit is appropriate exposure. The apparatus further includes emission intensity setting means for setting the emission intensity of the light emitting unit so as to increase the luminance difference with the luminance of the display area in the irradiated image. According to this aspect, the exposure setting device increases the luminance difference between the luminance of the display area in the irradiated image of the object to be photographed and the luminance of the display area in the non-irradiated image within a range where the luminance of the non-irradiated image does not become excessively low. In addition, the detection accuracy of the object to be photographed can be improved.

上記露出設定装置の他の一態様では、前記発光強度設定手段は、前記被撮影物の前記非照射画像での表示領域の輝度が閾値より大きい場合に、前記発光部の発光強度を強くし、前記被撮影物の前記非照射画像での表示領域の輝度が前記閾値以下の場合に、前記発光部の発光強度を弱める。この態様により、露出設定装置は、適正露出での被撮影物の照射画像での表示領域の輝度と非照射画像での表示領域の輝度との輝度差を大きくするように、発光部の発光強度を好適に変更することができる。   In another aspect of the exposure setting device, the light emission intensity setting means increases the light emission intensity of the light emitting unit when the luminance of the display area in the non-irradiated image of the object to be photographed is greater than a threshold value. When the luminance of the display area in the non-irradiated image of the object to be photographed is less than or equal to the threshold value, the light emission intensity of the light emitting unit is reduced. According to this aspect, the exposure setting device causes the light emission intensity of the light emitting unit to increase the luminance difference between the luminance of the display area in the irradiation image of the object to be photographed at the appropriate exposure and the luminance of the display area in the non-irradiation image. Can be suitably changed.

上記露出設定装置の他の一態様では、前記発光強度設定手段は、前記被撮影部の露出が露出過多の場合には、前記被撮影物の前記非照射画像での表示領域の輝度が前記閾値より大きい場合であっても、前記発光部の発光強度の設定を変更しない。これにより、露出設定装置は、撮影部の露出が適正露出から乖離するのを抑制することができる。   In another aspect of the exposure setting device, the light emission intensity setting means may be configured such that the brightness of the display area in the non-irradiated image of the object is the threshold value when the exposure of the object to be imaged is overexposed. Even if larger, the setting of the light emission intensity of the light emitting unit is not changed. Thereby, the exposure setting device can suppress the deviation of the exposure of the photographing unit from the appropriate exposure.

上記露出設定装置の他の一態様では、前記発光強度設定手段は、前記被撮影部の露出が露出不足の場合には、前記被撮影物の前記非照射画像での表示領域の輝度が前記閾値以下の場合であっても、前記発光部の発光強度の設定を変更しない。これにより、露出設定装置は、撮影部の露出が適正露出から乖離するのを抑制することができる。   In another aspect of the exposure setting device, the light emission intensity setting means is configured such that the brightness of the display area in the non-irradiated image of the subject is the threshold when the exposure of the subject is underexposed. Even in the following cases, the setting of the light emission intensity of the light emitting unit is not changed. Thereby, the exposure setting device can suppress the deviation of the exposure of the photographing unit from the appropriate exposure.

上記露出設定装置の他の一態様では、前記検出手段は、前記被撮影物の前記照射画像又は前記非照射画像での表示領域の面積の変化に基づき、前記被撮影物の接近又は遠ざかりをさらに検出する。この場合であっても、露出設定装置は、被撮影物の接近又は遠ざかりの検出に適した露出に撮影部の露出を好適に変更することができる。   In another aspect of the exposure setting apparatus, the detection unit may further approach or move away the object based on a change in the area of the display area in the irradiated image or the non-irradiated image of the object. To detect. Even in this case, the exposure setting device can suitably change the exposure of the imaging unit to an exposure suitable for detecting the approach or distance of the subject.

本発明の他の好適な実施形態では、撮影部により撮影される被撮影物を照射する発光部の発光強度を設定する発光強度設定装置であって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、前記撮影部の露出が適正である場合の前記被撮影物での前記照射画像と前記非照射画像との輝度差を増加させるように、前記発光部の発光強度を設定する発光強度設定手段と、を備える。この態様により、発光強度設定装置は、適正露出での被撮影物の照射画像での表示領域の輝度と非照射画像での表示領域の輝度との輝度差を大きくするように、発光部の発光強度を好適に変更し、被撮影物の検出精度を向上させることができる。   In another preferred embodiment of the present invention, there is provided a light emission intensity setting device for setting a light emission intensity of a light emitting unit that irradiates an object to be imaged by an imaging unit, wherein the object to be imaged is irradiated with light by the light emitting unit. An image acquisition means for acquiring an irradiation image of an object and a non-irradiation image of the object not irradiated with light from the light emitting unit from the imaging unit, and the exposure when the exposure of the imaging unit is appropriate A light emission intensity setting unit configured to set a light emission intensity of the light emitting unit so as to increase a luminance difference between the irradiated image and the non-irradiated image on the subject. According to this aspect, the light emission intensity setting device emits light from the light emitting unit so as to increase the luminance difference between the luminance of the display area in the irradiation image of the object to be photographed with appropriate exposure and the luminance of the display area in the non-irradiation image. The intensity can be suitably changed, and the detection accuracy of the object to be photographed can be improved.

本発明の他の好適な実施形態では、被撮影物を撮影する撮影部の露出を設定する露出設定装置が実行する制御方法であって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得工程と、前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出工程と、前記検出工程により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定工程と、を有する。露出設定装置は、この制御方法を実行することで、被撮影物の検出精度を向上させるように、撮影部の露出を好適に変更することができる。   In another preferred embodiment of the present invention, there is provided a control method executed by an exposure setting device for setting an exposure of an imaging unit that images an object to be shot, the irradiation of the object being irradiated with light by a light emitting unit. Based on an image acquisition step of acquiring an image and a non-irradiated image of the object not irradiated with light from the light emitting unit from the imaging unit, and a luminance difference between the irradiated image and the non-irradiated image A detection step of detecting the object to be photographed, and a setting of exposure of the photographing unit based on a luminance of a display area in the irradiated image or / and the non-irradiated image of the object to be photographed detected in the detection step. And an exposure setting process to be changed. By executing this control method, the exposure setting device can suitably change the exposure of the photographing unit so as to improve the detection accuracy of the object to be photographed.

本発明の他の好適な実施形態では、被撮影物を撮影する撮影部の露出を設定する露出設定装置が実行するプログラムであって、発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出手段と、前記検出手段により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定手段として前記露出設定装置を機能させる。露出設定装置は、このプログラムを実行することで、被撮影物の検出精度を向上させるように、撮影部の露出を好適に変更することができる。好適には、上記プログラムは、記憶媒体に記憶される。   In another preferred embodiment of the present invention, there is provided a program executed by an exposure setting device that sets an exposure of a photographing unit that photographs a subject, and an irradiation image of the subject that is irradiated with light by a light emitting unit. And based on the brightness difference between the image acquisition means for acquiring the non-irradiated image of the object to be imaged that is not irradiated by the light emitting unit from the imaging unit, the irradiated image, and the non-irradiated image, Based on the detection means for detecting the object to be photographed and the brightness of the display area in the irradiated image and / or the non-irradiated image of the object to be photographed detected by the detecting means, the exposure setting of the photographing part is changed. The exposure setting device functions as an exposure setting means. By executing this program, the exposure setting device can suitably change the exposure of the photographing unit so as to improve the detection accuracy of the object to be photographed. Preferably, the program is stored in a storage medium.

以下、図面を参照して本発明の好適な実施例について説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

[撮像装置の構成]
図1は、本実施例に係る撮像装置1の概略構成図である。撮像装置1は、発光部11と連動する撮影部12により撮影した画像から被写体5の所定部分(ここでは指先とする)を検出し、その検出結果を外部の装置へ出力する。また、撮像装置1は、上述の検出結果に応じて撮影部12の露出及び発光部11の発光強度を調整する。撮像装置1は、発光部11と、撮影部12と、画像保持部13と、差分算出部14と、被写体検出部15と、露出判定部16と、露出・発光強度設定部17とを備える。
[Configuration of imaging device]
FIG. 1 is a schematic configuration diagram of an imaging apparatus 1 according to the present embodiment. The imaging device 1 detects a predetermined portion (here, a fingertip) of the subject 5 from an image photographed by the photographing unit 12 interlocked with the light emitting unit 11, and outputs the detection result to an external device. Further, the imaging apparatus 1 adjusts the exposure of the photographing unit 12 and the light emission intensity of the light emitting unit 11 according to the detection result described above. The imaging device 1 includes a light emitting unit 11, a photographing unit 12, an image holding unit 13, a difference calculation unit 14, a subject detection unit 15, an exposure determination unit 16, and an exposure / light emission intensity setting unit 17.

発光部11は、撮影部12の制御に基づき被写体5に向けて発光する。発光部11は、撮影部12により指示された発光強度により発光する。後述するように、発光部11の発光強度は、露出・発光強度設定部17が撮影部12に送信する発光強度調整信号「S2」により初期値から適宜変更される。   The light emitting unit 11 emits light toward the subject 5 based on the control of the photographing unit 12. The light emitting unit 11 emits light with the light emission intensity instructed by the photographing unit 12. As will be described later, the light emission intensity of the light emitting unit 11 is appropriately changed from the initial value by a light emission intensity adjustment signal “S2” transmitted from the exposure / light emission intensity setting unit 17 to the photographing unit 12.

撮影部12は、設定された露出により、静止画を連続撮影し、撮影した画像(撮影画像)を画像保持部13に供給する。後述するように、撮影部12の露出は、露出・発光強度設定部17から送信される露出調整信号「S1」により初期値から適宜変更される。以後では、露出は、撮影画像の明るさを決定するための各要素(パラメータ)を指し、シャッター速度及び絞りの要素に加え、センサ感度などの要素も含むものとする。   The photographing unit 12 continuously photographs still images with the set exposure, and supplies the photographed images (captured images) to the image holding unit 13. As will be described later, the exposure of the photographing unit 12 is appropriately changed from the initial value by the exposure adjustment signal “S1” transmitted from the exposure / light emission intensity setting unit 17. Hereinafter, exposure refers to each element (parameter) for determining the brightness of the captured image, and includes elements such as sensor sensitivity in addition to shutter speed and aperture elements.

また、撮影部12は、発光部11の発光の有無を制御し、発光部11が発光している状態で撮影した画像(「照射画像Im1」とも呼ぶ。)と、発光部11が発光していない状態で撮影した画像(「非照射画像Im2」とも呼ぶ。)とを生成する。本実施例では、撮影部12は、照射画像Im1と、非照射画像Im2とを交互に生成する。   In addition, the photographing unit 12 controls whether or not the light emitting unit 11 emits light, and the light emitting unit 11 emits an image (also referred to as “irradiated image Im1”) taken in a state where the light emitting unit 11 emits light. An image photographed in the absence (also referred to as “non-irradiated image Im2”) is generated. In the present embodiment, the photographing unit 12 alternately generates the irradiation image Im1 and the non-irradiation image Im2.

好適には、発光部11は、赤外線を照射し、撮影部12は、赤外線を透過し、かつ、可視光をカットするフィルタを有する。これにより、発光部11の発光により撮像装置1の使用者の視覚に影響を与えるのを抑制しつつ、外光の影響を排除することができる。   Suitably, the light emission part 11 irradiates infrared rays, and the imaging | photography part 12 has a filter which permeate | transmits infrared rays and cuts visible light. Thereby, it is possible to eliminate the influence of the external light while suppressing the light emission of the light emitting unit 11 from affecting the visual perception of the user of the imaging device 1.

画像保持部13は、撮影部12から交互に供給される照射画像Im1及び非照射画像Im2を記憶する。このとき、画像保持部13は、連続して供給された照射画像Im1及び非照射画像Im2を1組の画像として記憶する。   The image holding unit 13 stores irradiation images Im1 and non-irradiation images Im2 that are alternately supplied from the imaging unit 12. At this time, the image holding unit 13 stores the irradiation image Im1 and the non-irradiation image Im2 supplied continuously as a set of images.

差分算出部14は、画像保持部13に記憶された1組の照射画像Im1及び非照射画像Im2の差分処理を行うことで、発光部11の発光により増加した輝度値を示す差分画像(「差分画像Imd」とも呼ぶ。)を生成する。具体的には、この場合、差分算出部14は、照射画像Im1の各画素の輝度値から、非照射画像Im2の各画素の輝度値を引いた差分画像Imdを算出する。これにより、差分算出部14は、照射画像Im1及び非照射画像Im2に共通して存在する環境光を除去し、発光部11の発光により増加した輝度値を示す差分画像Imdを生成する。なお、ここでは、撮影部12による撮影間隔は十分に短いものとし、発光部11による発光以外による照射画像Im1及び非照射画像Im2の違いは無視できるものとする。そして、差分算出部14は、算出した差分画像Imdを被写体検出部15に供給する。   The difference calculation unit 14 performs a difference process between a set of the irradiation image Im1 and the non-irradiation image Im2 stored in the image holding unit 13, thereby indicating a difference image (“difference” indicating a luminance value increased by light emission of the light emitting unit 11. Also called “Image Imd”). Specifically, in this case, the difference calculation unit 14 calculates a difference image Imd obtained by subtracting the luminance value of each pixel of the non-irradiated image Im2 from the luminance value of each pixel of the irradiated image Im1. As a result, the difference calculation unit 14 removes the ambient light that is commonly present in the irradiation image Im1 and the non-irradiation image Im2, and generates a difference image Imd indicating the luminance value increased by the light emission of the light emitting unit 11. Here, it is assumed that the photographing interval by the photographing unit 12 is sufficiently short, and the difference between the irradiated image Im1 and the non-irradiated image Im2 other than the light emission by the light emitting unit 11 can be ignored. Then, the difference calculation unit 14 supplies the calculated difference image Imd to the subject detection unit 15.

被写体検出部15は、差分算出部14が算出した差分画像Imdから、撮影部12に向けられた被写体5の指先を示す画素領域を検出する。この場合、被写体検出部15は、差分画像Imdから、周囲よりも輝度が高い突起形状をなす画素領域を、撮影部12に向けられた被写体5の指先を示す画素領域として検出する。   The subject detection unit 15 detects a pixel region indicating the fingertip of the subject 5 directed toward the photographing unit 12 from the difference image Imd calculated by the difference calculation unit 14. In this case, the subject detection unit 15 detects, from the difference image Imd, a pixel region having a protrusion shape with higher brightness than the surroundings as a pixel region indicating the fingertip of the subject 5 directed toward the photographing unit 12.

ここで、突起形状をなす画素領域を抽出する具体例を2つ挙げて説明する。第1の例では、被写体検出部15は、想定する被写体5の指先の形状を示す画像をテンプレート画像として予め記憶しておき、差分画像Imdの所定輝度以上の領域のうち、当該テンプレート画像が示す領域と一致する部分を、指先部分の画素領域として認識する。この場合、テンプレート画像の生成時と、被写体5の指先の検出時とで、手のポーズや手の位置をおよそ一致させておく。第2の例では、被写体検出部15は、差分画像Imdを種々の閾値により2値化画像を生成し、各2値化画像で境界線が突起形状になっている部分を検出する。そして、被写体検出部15は、所定数以上の2値化画像において、同一位置の突起形状の部分を検出した場合、当該部分を、被写体5の指先の形状を示す画素領域であると認識する。   Here, two specific examples of extracting a pixel region having a protrusion shape will be described. In the first example, the subject detection unit 15 stores an image indicating the shape of the assumed fingertip of the subject 5 in advance as a template image, and the template image indicates the region of the difference image Imd having a predetermined luminance or higher. A portion matching the region is recognized as a pixel region of the fingertip portion. In this case, the pose of the hand and the position of the hand are approximately matched when the template image is generated and when the fingertip of the subject 5 is detected. In the second example, the subject detection unit 15 generates a binarized image from the difference image Imd using various threshold values, and detects a portion where the boundary line has a projection shape in each binarized image. When the subject detection unit 15 detects a protrusion-shaped portion at the same position in a predetermined number or more of the binarized images, the subject detection unit 15 recognizes the portion as a pixel region indicating the shape of the fingertip of the subject 5.

そして、被写体検出部15は、撮影部12に向けられた被写体5の指先を示す画素領域を検出した場合、各指先の位置、範囲、太さなどの検出結果の情報(「検出結果情報Ir」とも呼ぶ。)を、露出判定部16及び撮像装置1と接続する外部機器に供給する。そして、外部機器は、例えば、検出結果情報Irに基づき使用者の操作を認識し、当該操作に応じた機能を実行する処理などを行う。   When the subject detection unit 15 detects a pixel region indicating the fingertip of the subject 5 directed toward the photographing unit 12, information on detection results such as the position, range, and thickness of each fingertip (“detection result information Ir”). Is also supplied to an external device connected to the exposure determination unit 16 and the imaging device 1. Then, for example, the external device recognizes a user operation based on the detection result information Ir and performs a process of executing a function corresponding to the operation.

露出判定部16は、画像保持部13が保持する1組の照射画像Im1及び非照射画像Im2と、差分算出部14が算出した差分画像Imdと、検出結果情報Irとに基づき、撮影部12の露出が、被写体5の指先を検出するのに適した露出(「適正露出」とも呼ぶ。)、露出過多、又は、露出不足のいずれであるかを判定する。ここで、適正露出とは、1組の照射画像Im1及び非照射画像Im2の各輝度値の差が最大付近になる露出を指す。この判定方法については、[露出判定方法]のセクションで詳しく説明する。そして、露出判定部16は、上述の判定の結果を示す露出の情報(「露出情報Iex」とも呼ぶ。)を露出・発光強度設定部17に供給する。   The exposure determination unit 16 is based on the set of irradiation image Im1 and non-irradiation image Im2 held by the image holding unit 13, the difference image Imd calculated by the difference calculation unit 14, and the detection result information Ir. It is determined whether the exposure is suitable for detecting the fingertip of the subject 5 (also referred to as “appropriate exposure”), overexposed, or underexposed. Here, the appropriate exposure refers to an exposure in which the difference between the luminance values of the set of the irradiated image Im1 and the non-irradiated image Im2 is near the maximum. This determination method will be described in detail in the [Exposure determination method] section. Then, the exposure determination unit 16 supplies exposure information (also referred to as “exposure information Iex”) indicating the result of the above determination to the exposure / light emission intensity setting unit 17.

露出・発光強度設定部17は、露出判定部16から受信した露出情報Iexに基づき、露出の補正を指示する露出調整信号S1及び発光部11の発光強度の補正を指示する発光強度調整信号S2を、撮影部12に送信する。   Based on the exposure information Iex received from the exposure determination unit 16, the exposure / light emission intensity setting unit 17 receives an exposure adjustment signal S1 that instructs correction of exposure and a light emission intensity adjustment signal S2 that instructs correction of the light emission intensity of the light emitting unit 11. , To the imaging unit 12.

なお、図1において、撮像装置1は、本発明における「露出設定装置」及び「発光強度設定装置」の一例であり、被写体5の指先は、本発明における「被撮影物」の一例である。また、画像保持部13は、本発明における「画像取得手段」の一例であり、差分算出部14及び被写体検出部15は、本発明における「検出手段」の一例である。さらに、露出判定部16及び露出・発光強度設定部17は、本発明における「露出設定手段」及び「発光強度設定手段」の一例である。   In FIG. 1, an imaging device 1 is an example of an “exposure setting device” and a “light emission intensity setting device” in the present invention, and a fingertip of a subject 5 is an example of an “object to be photographed” in the present invention. The image holding unit 13 is an example of the “image acquisition unit” in the present invention, and the difference calculation unit 14 and the subject detection unit 15 are examples of the “detection unit” in the present invention. Furthermore, the exposure determination unit 16 and the exposure / light emission intensity setting unit 17 are examples of the “exposure setting unit” and the “light emission intensity setting unit” in the present invention.

[露出判定処理]
まず、露出判定部16が行う露出判定処理について説明する。概略的には、露出判定部16は、差分画像Imdで検出された指先部分に対応する照射画像Im1の画素領域(「露出判定領域T1」とも呼ぶ。)内での各輝度値の度数分布に基づき、撮影部12の露出が適正露出、露出過多、露出不足のいずれであるかを判定する。これについて具体的に説明する。
[Exposure judgment processing]
First, the exposure determination process performed by the exposure determination unit 16 will be described. Schematically, the exposure determination unit 16 has a frequency distribution of each luminance value in the pixel area (also referred to as “exposure determination area T1”) of the irradiation image Im1 corresponding to the fingertip portion detected in the difference image Imd. Based on this, it is determined whether the exposure of the photographing unit 12 is proper exposure, overexposure, or underexposure. This will be specifically described.

図2(A)は、差分画像Imdで特定した露出判定領域T1に対応する露出判定領域T1を点線により明示した照射画像Im1の表示例を示す。図2(A)に示すように、露出判定領域T1は、被写体5の表示領域50のうち、各指の先端から第1関節を含む範囲に設定されている。なお、図2(A)では、表示の便宜上、露出判定領域T1を示す点線は、指の輪郭と重ならないように表示されている。   FIG. 2A shows a display example of an irradiation image Im1 in which an exposure determination region T1 corresponding to the exposure determination region T1 specified by the difference image Imd is clearly indicated by a dotted line. As shown in FIG. 2A, the exposure determination area T1 is set in a range including the first joint from the tip of each finger in the display area 50 of the subject 5. In FIG. 2A, for the convenience of display, the dotted line indicating the exposure determination region T1 is displayed so as not to overlap the outline of the finger.

そして、露出判定部16は、露出判定領域T1の内の画素輝度値の度数分布をグラフ化したヒストグラム(「輝度ヒストグラム」とも呼ぶ。)を生成する。図2(B)は、露出判定領域T1での輝度ヒストグラムの一例を示す。露出判定部16は、最小値から最大値(飽和値)までの各輝度について、当該輝度に該当する露出判定領域T1内の画素の数を集計することで、図2(B)に示す輝度ヒストグラムを生成する。なお、図2(B)等では、便宜上、輝度ヒストグラムを平滑化した曲線により表示している。   Then, the exposure determination unit 16 generates a histogram (also referred to as “luminance histogram”) that graphs the frequency distribution of pixel luminance values in the exposure determination region T1. FIG. 2B shows an example of a luminance histogram in the exposure determination area T1. For each luminance from the minimum value to the maximum value (saturation value), the exposure determination unit 16 aggregates the number of pixels in the exposure determination region T1 corresponding to the luminance, thereby the luminance histogram shown in FIG. Is generated. In FIG. 2B and the like, the luminance histogram is displayed as a smoothed curve for convenience.

そして、露出判定部16は、図2(B)の輝度ヒストグラムが示す輝度値の度数分布に基づき、撮影部12の露出が露出過多、露出不足のいずれかに該当するか否か判定し、露出過多又は露出不足のいずれでもないと判断した場合には、適正露出であると判断する。   Then, the exposure determination unit 16 determines whether the exposure of the photographing unit 12 corresponds to either overexposure or underexposure based on the frequency distribution of the luminance values indicated by the luminance histogram of FIG. If it is determined that neither overexposure nor underexposure is detected, it is determined that the exposure is appropriate.

ここで、まず、撮影部12の露出が露出過多であるか否かの判定方法について説明する。露出判定部16は、輝度が最大値となる露出判定領域T1内の画素数(「飽和画素数」とも呼ぶ。)を算出し、飽和画素数が所定の閾値以上又は露出判定領域T1内の総画素数に対する飽和画素数の割合(「飽和画素数割合」とも呼ぶ。)が所定の閾値以上である場合、露出過多であると判定する。上述の閾値は、例えば、実験等に基づき予め設定される。   Here, first, a method for determining whether or not the exposure of the photographing unit 12 is overexposed will be described. The exposure determination unit 16 calculates the number of pixels in the exposure determination region T1 where the luminance is the maximum value (also referred to as “saturated pixel number”), and the number of saturated pixels is equal to or greater than a predetermined threshold or the total number in the exposure determination region T1. When the ratio of the number of saturated pixels to the number of pixels (also referred to as “saturated pixel number ratio”) is equal to or greater than a predetermined threshold value, it is determined that the image is overexposed. The above-described threshold is set in advance based on, for example, experiments.

図3(A)は、露出判定部16が露出過多であると判定した場合の露出判定領域T1の内の輝度ヒストグラムを示す。図3(A)では、輝度値の最大値に属する画素が多く存在する。これらの画素は、発光部11の発光により白飛びが発生した部分であり、発光部11の非発光時に対する発光による増加分が飽和により反映されていない部分に該当する。従って、露出判定部16は、このように飽和画素数が多い場合には、露出過多であると判定する。   FIG. 3A shows a luminance histogram in the exposure determination region T1 when the exposure determination unit 16 determines that the exposure is excessive. In FIG. 3A, there are many pixels belonging to the maximum luminance value. These pixels are portions where whiteout occurs due to light emission of the light emitting unit 11, and correspond to portions where an increase due to light emission when the light emitting unit 11 does not emit light is not reflected due to saturation. Therefore, the exposure determination unit 16 determines that the exposure is excessive when the number of saturated pixels is large.

次に、撮影部12の露出が露出不足であるか否かの判定方法について説明する。露出判定部16は、露出判定領域T1内の画素の輝度値の平均値が所定の閾値以下である場合、露出不足であると判定する。上述の閾値は、例えば、実験等に基づき予め設定される。図3(B)は、露出判定部16が露出不足であると判定した場合の露出判定領域T1内の輝度ヒストグラムを示す。この場合、露出判定領域T1内の画素は、全体的に輝度値が低い。一般に、輝度値は露出を多くすることにより上昇するため、撮影部12の露出が不足しているときには、露出判定領域T1内の輝度値が全体的に低くなり、かつ、発光部11の発光時と非発光時とでの輝度差が小さくなる。従って、露出判定部16は、露出判定領域T1内の輝度値が全体的に低い場合には、露出不足であると判定する。   Next, a method for determining whether or not the exposure of the photographing unit 12 is underexposed will be described. The exposure determination unit 16 determines that the exposure is insufficient when the average value of the luminance values of the pixels in the exposure determination region T1 is equal to or less than a predetermined threshold. The above-described threshold is set in advance based on, for example, experiments. FIG. 3B shows a luminance histogram in the exposure determination region T1 when the exposure determination unit 16 determines that the exposure is insufficient. In this case, the pixels in the exposure determination area T1 generally have a low luminance value. In general, the luminance value increases as the exposure is increased. Therefore, when the photographing unit 12 is insufficiently exposed, the luminance value in the exposure determination region T1 is lowered overall, and the light emitting unit 11 emits light. And the luminance difference between the non-light-emitting state becomes small. Therefore, the exposure determination unit 16 determines that the exposure is insufficient when the luminance value in the exposure determination region T1 is low overall.

そして、露出判定部16は、露出が過多でなく不足もしていないと判断した場合には、撮影部12の露出が適正露出であると判断する。このように、露出判定部16は、露出判定領域T1内での各輝度値の度数分布に基づき、撮影部12の露出が適正露出、露出過多、露出不足のいずれであるかを判定することができる。   When the exposure determination unit 16 determines that the exposure is neither excessive nor insufficient, the exposure determination unit 16 determines that the exposure of the photographing unit 12 is appropriate exposure. As described above, the exposure determination unit 16 can determine whether the exposure of the photographing unit 12 is appropriate exposure, overexposure, or underexposure based on the frequency distribution of each luminance value in the exposure determination region T1. it can.

[露出設定処理]
次に、露出・発光強度設定部17が実行する露出設定処理について説明する。露出・発光強度設定部17は、露出判定部16から受信した露出情報Iexに基づき、露出の補正量を示す露出調整信号S1を撮影部12に送信する。
[Exposure setting processing]
Next, an exposure setting process executed by the exposure / light emission intensity setting unit 17 will be described. Based on the exposure information Iex received from the exposure determination unit 16, the exposure / light emission intensity setting unit 17 transmits an exposure adjustment signal S1 indicating the exposure correction amount to the photographing unit 12.

具体的には、露出・発光強度設定部17は、露出情報Iexが露出過多である旨を示す場合、露出を所定値又は所定率だけ減少させる旨の露出調整信号S1を撮影部12に送信する。ここで、露出・発光強度設定部17は、上述の所定値及び所定率を、予め定められた値に設定してもよく、飽和画素数又は飽和画素数割合と、これらの閾値との差に応じて大きい値に設定してもよい。   Specifically, when the exposure information Iex indicates that the exposure information Iex is overexposed, the exposure / light emission intensity setting unit 17 transmits an exposure adjustment signal S1 for decreasing the exposure by a predetermined value or a predetermined rate to the photographing unit 12. . Here, the exposure / light emission intensity setting unit 17 may set the above-described predetermined value and predetermined ratio to predetermined values, and determines the difference between the saturated pixel number or the saturated pixel number ratio and these threshold values. A large value may be set accordingly.

また、露出・発光強度設定部17は、露出情報Iexが露出不足である旨を示す場合、露出を所定値又は所定率だけ増加させる旨の露出調整信号S1を撮影部12に送信する。ここで、露出・発光強度設定部17は、上述の所定値及び所定率を、予め定められた値に設定してもよく、露出判定領域T1内の画素の輝度値の平均値と、これの閾値との差に応じて大きい値に設定してもよい。   Further, when the exposure information Iex indicates that the exposure information Iex is underexposed, the exposure / light emission intensity setting unit 17 transmits an exposure adjustment signal S1 for increasing the exposure by a predetermined value or a predetermined rate to the photographing unit 12. Here, the exposure / light emission intensity setting unit 17 may set the predetermined value and the predetermined rate to a predetermined value, the average value of the luminance values of the pixels in the exposure determination region T1, and the You may set to a big value according to the difference with a threshold value.

一方、露出・発光強度設定部17は、露出情報Iexが適正露出である旨を示す場合、露出調整信号S1を撮影部12に送信しないか、露出調整が必要ない旨を示す露出調整信号S1を撮影部12に送信する。   On the other hand, when the exposure information Iex indicates that the exposure is appropriate exposure, the exposure / light emission intensity setting unit 17 does not transmit the exposure adjustment signal S1 to the photographing unit 12, or the exposure adjustment signal S1 indicating that exposure adjustment is not necessary. Transmit to the imaging unit 12.

[発光強度調整処理]
次に、露出・発光強度設定部17が実行する発光強度調整処理について説明する。概略的には、露出・発光強度設定部17は、非照射画像Im2の輝度値が0にならない範囲において、適正露出の場合での照射画像Im1と非照射画像Im2との被写体5の表示領域での輝度差が大きくなるように、発光部11の発光強度を調整する。これにより、被写体検出部15の検出精度を向上させる。
[Light emission intensity adjustment processing]
Next, the light emission intensity adjustment process executed by the exposure / light emission intensity setting unit 17 will be described. Schematically, the exposure / light emission intensity setting unit 17 is within the display area of the subject 5 in the irradiation image Im1 and the non-irradiation image Im2 in the case of proper exposure in a range where the luminance value of the non-irradiation image Im2 does not become zero. The light emission intensity of the light emitting unit 11 is adjusted so that the luminance difference between the light emitting unit 11 and the light emitting unit 11 increases. Thereby, the detection accuracy of the subject detection unit 15 is improved.

まず、露出・発光強度設定部17は、非照射画像Im2における被写体5又は被写体5の指先の表示領域(「被写体領域T2」とも呼ぶ。)を認識する。例えば、露出・発光強度設定部17は、露出判定部16から供給される検出結果情報Irに基づき、被写体検出部15が検出した被写体5又は被写体5の指の位置及び範囲に対応する非照射画像Im2内の画素を、被写体領域T2として認識する。   First, the exposure / light emission intensity setting unit 17 recognizes the subject 5 or the display region of the fingertip of the subject 5 (also referred to as “subject region T2”) in the non-irradiated image Im2. For example, the exposure / light emission intensity setting unit 17 is based on the detection result information Ir supplied from the exposure determination unit 16, and the non-irradiated image corresponding to the position and range of the subject 5 or the finger of the subject 5 detected by the subject detection unit 15. The pixels in Im2 are recognized as the subject area T2.

そして、露出・発光強度設定部17は、非照射画像Im2の被写体領域T2の輝度値が0又はその近傍値である閾値(「閾値TH0」とも呼ぶ。)以下である場合と、Im2の被写体領域T2の輝度値が閾値TH0より大きい場合とに分けて処理を行う。これについて、以下、場合分けをして詳しく説明する。   Then, the exposure / light emission intensity setting unit 17 determines that the luminance value of the subject region T2 of the non-irradiated image Im2 is 0 or less than a threshold value (also referred to as “threshold value TH0”), or the subject region of Im2. The process is performed separately when the luminance value of T2 is larger than the threshold value TH0. This will be described in detail below by dividing cases.

以下の説明において、「被写体領域T2の輝度値」とは、被写体領域T2の各画素の輝度値の平均値、最大値、中央値などの代表値を指すものとする。また、照射画像Im1と非照射画像Im2との被写体領域T2での輝度値の差を「輝度差Dlit」とも呼ぶ。   In the following description, “the luminance value of the subject region T2” refers to a representative value such as an average value, a maximum value, or a median value of the luminance values of each pixel in the subject region T2. Further, the difference in luminance value in the subject area T2 between the irradiated image Im1 and the non-irradiated image Im2 is also referred to as “luminance difference Dlit”.

(1)非照射画像Im2の被写体領域T2の輝度値が閾値TH0以下の場合
この場合、露出・発光強度設定部17は、適正露出又は露出過多の場合には、露出が最大でなく、かつ発光強度が最低でない限り発光部11の発光強度を弱める。これにより、露出・発光強度設定部17は、適正露出の場合の非照射画像Im2の被写体領域T2の輝度値を0よりも大きくする。これについて、図4及び図5を参照して説明する。
(1) When the luminance value of the subject region T2 of the non-irradiated image Im2 is equal to or less than the threshold value TH0 In this case, the exposure / light emission intensity setting unit 17 does not maximize exposure and emits light when the exposure is appropriate or overexposed. Unless the intensity is the lowest, the light emission intensity of the light emitting unit 11 is weakened. Thereby, the exposure / light emission intensity setting unit 17 increases the luminance value of the subject region T2 of the non-irradiated image Im2 in the case of proper exposure to be larger than zero. This will be described with reference to FIGS.

(1−1)適正露出の場合
図4(A)は、非照射画像Im2の被写体領域T2の輝度値が閾値THO以下であって適正露出である場合の撮影部12の露出と照射画像Im1及び非照射画像Im2の被写体領域T2の輝度値との関係を示す。以後では、グラフ「G1」は照射画像Im1の被写体領域T2の輝度値を示し、グラフ「G2」は非照射画像Im2の被写体領域T2の輝度値を示す。
(1-1) Case of Appropriate Exposure FIG. 4A shows the exposure of the photographing unit 12 and the irradiated image Im1 when the luminance value of the subject region T2 of the non-irradiated image Im2 is equal to or less than the threshold value THO. The relationship with the luminance value of the subject region T2 of the non-irradiated image Im2 is shown. Hereinafter, the graph “G1” indicates the luminance value of the subject region T2 of the irradiated image Im1, and the graph “G2” indicates the luminance value of the subject region T2 of the non-irradiated image Im2.

図4(A)では、照射画像Im1及び非照射画像Im2の撮影時での撮影部12の露出である露出現在値「Exp」は、照射画像Im1の被写体領域T2の輝度値が飽和値にならない範囲で輝度差Dlitが最大となる適正露出に設定されている。そして、露出現在値Expは、非照射画像Im2の被写体領域T2の輝度値が0以上となる露出よりも大幅に下回っている。この場合、非照射画像Im2には輝度が0の黒領域が多く存在し、被写体検出部15は、被写体5の指先部分の領域を適切に検出することができない。   In FIG. 4A, the exposure current value “Exp”, which is the exposure of the imaging unit 12 at the time of capturing the irradiated image Im1 and the non-irradiated image Im2, does not reach the saturation value of the subject area T2 of the irradiated image Im1. Appropriate exposure is set so that the luminance difference Dlit is maximized in the range. The current exposure value Exp is significantly lower than the exposure at which the luminance value of the subject region T2 of the non-irradiated image Im2 is 0 or more. In this case, the non-irradiated image Im2 has many black areas with zero brightness, and the subject detection unit 15 cannot appropriately detect the fingertip portion of the subject 5.

以上を勘案し、この場合には、露出・発光強度設定部17は、発光部11の発光強度を下げることで適正露出を上げて、適正露出の場合の非照射画像Im2の被写体領域T2の輝度値を上げる。図4(B)は、図4(A)の例で発光部11の発光強度を上げた場合のグラフG1、G2を示す。図4(B)に示すように、発光部11の発光強度が下がったことで、照射画像Im1の被写体領域T2の輝度値が下がる。即ち、この場合、露出の上昇に対するグラフG1が示す発光時の輝度値の上昇の割合が小さくなる。その結果、図4(B)の場合の適正露出は、露出現在値Expから露出値「Ex1」に遷移し(矢印40参照)、この場合の被写体領域T2の輝度値は、0より大きくなる。このように、露出・発光強度設定部17は、適正露出の場合の非照射画像Im2の被写体領域T2の輝度値を上げることができる。なお、露出現在値Expは、発光強度を低下させた後に再度実行する露出判定処理及び露出設定処理により、適正露出である露出値Ex1に近づく。   In consideration of the above, in this case, the exposure / light emission intensity setting unit 17 increases the appropriate exposure by lowering the light emission intensity of the light emitting unit 11, and the luminance of the subject region T2 of the non-irradiated image Im2 in the case of the proper exposure. Increase the value. FIG. 4B shows graphs G1 and G2 when the emission intensity of the light emitting unit 11 is increased in the example of FIG. As shown in FIG. 4B, the luminance value of the subject region T2 of the irradiation image Im1 decreases due to the decrease in the emission intensity of the light emitting unit 11. That is, in this case, the rate of increase in the luminance value during light emission indicated by the graph G1 with respect to the increase in exposure is reduced. As a result, the proper exposure in the case of FIG. 4B transitions from the current exposure value Exp to the exposure value “Ex1” (see arrow 40), and the luminance value of the subject region T2 in this case becomes greater than zero. In this way, the exposure / light emission intensity setting unit 17 can increase the luminance value of the subject region T2 of the non-irradiated image Im2 in the case of proper exposure. Note that the current exposure value Exp approaches the exposure value Ex1 that is a proper exposure by the exposure determination process and the exposure setting process that are executed again after the emission intensity is reduced.

(1−2)露出過多の場合
図5(A)は、非照射画像Im2の被写体領域T2の輝度値が閾値THO以下であって、露出過多である場合の撮影部12の露出と照射画像Im1及び非照射画像Im2の被写体領域T2の輝度値との関係を示す。
(1-2) Overexposure FIG. 5A shows the exposure of the photographing unit 12 and the irradiated image Im1 when the luminance value of the subject region T2 of the non-irradiated image Im2 is equal to or lower than the threshold value THO. And the relationship with the luminance value of the subject region T2 of the non-irradiated image Im2.

図5(A)では、照射画像Im1の被写体領域T2の輝度値が飽和値に達しており、露出現在値Expが適正露出である露出値「Ex2」に対して過多状態となっている。この場合、照射画像Im1の被写体領域T2では、白飛び状態が多く発生しているため、被写体検出部15は、被写体5の指先部分を適切に検出することができない。一方、露出現在値Expを下げて適正露出である露出値Ex2に近づけた場合には、非照射画像Im2の被写体領域T2の輝度値がさらに低下し、当該領域が完全に黒領域となる。   In FIG. 5A, the luminance value of the subject area T2 of the irradiation image Im1 has reached a saturation value, and the current exposure value Exp is excessive with respect to the exposure value “Ex2” that is a proper exposure. In this case, in the subject region T2 of the irradiation image Im1, many whiteout states occur, and thus the subject detection unit 15 cannot appropriately detect the fingertip portion of the subject 5. On the other hand, when the current exposure value Exp is lowered to be close to the exposure value Ex2 that is the proper exposure, the luminance value of the subject area T2 of the non-irradiated image Im2 further decreases, and the area becomes a completely black area.

以上を勘案し、この場合には、露出・発光強度設定部17は、発光部11の発光強度を下げることで、適正露出を上げて、適正露出を現在露出値Expに近づける。図5(B)は、図5(A)の例で発光部11の発光強度を下げた場合のグラフG1、G2を示す。図5(B)の例では、発光部11の発光強度が下がったことで、適正露出が現在露出値Expの近傍まで上昇する。このように、露出・発光強度設定部17は、この場合、適正露出を現在露出値Expに近づけることができる。   Considering the above, in this case, the exposure / light emission intensity setting unit 17 increases the appropriate exposure by lowering the light emission intensity of the light emitting unit 11 and brings the appropriate exposure closer to the current exposure value Exp. FIG. 5B shows graphs G1 and G2 when the light emission intensity of the light emitting unit 11 is lowered in the example of FIG. In the example of FIG. 5B, the appropriate exposure increases to the vicinity of the current exposure value Exp because the light emission intensity of the light emitting unit 11 has decreased. Thus, in this case, the exposure / light emission intensity setting unit 17 can bring the appropriate exposure closer to the current exposure value Exp.

なお、図5(B)の例では、引き続き非照射画像Im2の被写体領域T2の輝度値が閾値TH0以下となっている。従って、この場合、撮像装置1は、次の発光強度調整処理において、「(1−1)適正露出の場合」のセクションで説明した処理を実行する。これにより、撮像装置1は、発光部11の発光強度を再び下げて適正露出の場合の非照射画像Im2の被写体領域T2の輝度値を0より大きくする。   In the example of FIG. 5B, the luminance value of the subject area T2 of the non-irradiated image Im2 continues to be equal to or lower than the threshold value TH0. Accordingly, in this case, the imaging apparatus 1 executes the processing described in the section “(1-1) In the case of proper exposure” in the next light emission intensity adjustment processing. Thereby, the imaging device 1 lowers the light emission intensity of the light emitting unit 11 again to make the luminance value of the subject region T2 of the non-irradiated image Im2 larger than 0 in the case of proper exposure.

(2)非照射画像Im2の被写体領域T2の輝度値が閾値TH0より大きい場合
この場合、露出・発光強度設定部17は、適正露出又は露出不足の場合には、露出が最小でなく、かつ発光強度が最大でない限り発光部11の発光強度を強める。これにより、露出・発光強度設定部17は、適正露出の場合での照射画像Im1と非照射画像Im2との輝度差Dlitを大きくする。これについて、図6及び図7を参照して説明する。
(2) When the luminance value of the subject region T2 of the non-irradiated image Im2 is larger than the threshold value TH0 In this case, the exposure / light emission intensity setting unit 17 does not have minimum exposure and emits light when the exposure is appropriate or underexposed. Unless the intensity is maximum, the light emission intensity of the light emitting unit 11 is increased. Thereby, the exposure / light emission intensity setting unit 17 increases the luminance difference Dlit between the irradiated image Im1 and the non-irradiated image Im2 in the case of proper exposure. This will be described with reference to FIGS.

(2−1)適正露出の場合
図6(A)は、非照射画像Im2の被写体領域T2の輝度値が閾値THOより大きく、かつ、適正露出である場合の撮影部12の露出と照射画像Im1及び非照射画像Im2の被写体領域T2の輝度値との関係を示す。図6(A)では、露出現在値Expは、照射画像Im1の被写体領域T2の輝度値が飽和値にならない範囲で輝度差Dlit(矢印45参照)が最大となる適正露出に設定されている。
(2-1) Case of Appropriate Exposure FIG. 6A shows the exposure of the photographing unit 12 and the irradiated image Im1 when the luminance value of the subject region T2 of the non-irradiated image Im2 is larger than the threshold value THO and the exposure is appropriate. And the relationship with the luminance value of the subject region T2 of the non-irradiated image Im2. In FIG. 6A, the current exposure value Exp is set to an appropriate exposure that maximizes the luminance difference Dlit (see arrow 45) in a range where the luminance value of the subject region T2 of the irradiation image Im1 does not become a saturation value.

図6(B)は、図6(A)の例で発光部11の発光強度を上げた場合のグラフG1、G2を示す。この場合、露出の上昇に対するグラフG1が示す発光時の輝度値の上昇の割合が大きくなる。その結果、図6(B)の場合の適正露出は、露出現在値Expから露出値「Ex3」に遷移する。そして、この場合、適正露出である露出値Ex3での輝度差Dlit(矢印46参照)は、図6(A)の場合の輝度差Dlit(矢印45参照)と比較して増大する。このように、非照射画像Im2の被写体領域T2の輝度値が閾値THOより大きく、かつ、適正露出である場合に発光部11の発光強度を高めることで、露出・発光強度設定部17は、好適に、適正露出での照射画像Im1と非照射画像Im2との輝度値の差を増大させることができる。なお、この場合、露出現在値Expは、発光強度を増大させた後に再度実行する露出判定処理及び露出設定処理により、適正露出である露出値Ex3に近づく。   FIG. 6B shows graphs G1 and G2 when the emission intensity of the light emitting unit 11 is increased in the example of FIG. In this case, the rate of increase in the luminance value during light emission indicated by the graph G1 with respect to the increase in exposure increases. As a result, the appropriate exposure in the case of FIG. 6B transitions from the current exposure value Exp to the exposure value “Ex3”. In this case, the luminance difference Dlit (see arrow 46) at the exposure value Ex3, which is a proper exposure, increases as compared with the luminance difference Dlit (see arrow 45) in the case of FIG. Thus, when the luminance value of the subject region T2 of the non-irradiated image Im2 is larger than the threshold value THO and the exposure is appropriate, the exposure / emission intensity setting unit 17 is preferable by increasing the emission intensity of the light emitting unit 11. In addition, the difference in luminance value between the irradiated image Im1 and the non-irradiated image Im2 at appropriate exposure can be increased. In this case, the current exposure value Exp approaches the exposure value Ex3, which is a proper exposure, by the exposure determination process and the exposure setting process that are executed again after increasing the light emission intensity.

(2−2)露出不足の場合
図7(A)は、非照射画像Im2の被写体領域T2の輝度値が閾値THOより大きく、かつ、露出不足である場合の撮影部12の露出と照射画像Im1及び非照射画像Im2の被写体領域T2の輝度値との関係を示す。この場合での輝度差Dlit(矢印47参照)は、適正露出である露出値「Ex4」の場合の輝度差Dlit(矢印48参照)によりも小さい。
(2-2) Underexposure FIG. 7A shows the exposure of the photographing unit 12 and the irradiated image Im1 when the luminance value of the subject region T2 of the non-irradiated image Im2 is larger than the threshold THO and underexposed. And the relationship with the luminance value of the subject region T2 of the non-irradiated image Im2. In this case, the luminance difference Dlit (see arrow 47) is smaller than the luminance difference Dlit (see arrow 48) in the case of the exposure value “Ex4” which is appropriate exposure.

図7(B)は、図7(A)の例で発光部11の発光強度を上げた場合のグラフG1、G2を示す。この場合、グラフG1が示すように、発光時の輝度値の露出に対する上昇の割合が大きくなる。従って、この場合、適正露出が低下し、適正露出が露出現在値Expに近似される。また、グラフG1の傾きの上昇に伴い、図7(B)での適正露出に近い露出現在値Expでの輝度差Dlit(矢印49参照)は、図7(A)の場合の適正露出での輝度差Dlit(矢印48参照)と比較して大きい。このように、露出・発光強度設定部17は、現在露出値Expを適正露出に近似させると共に、適正露出での輝度差Dlitを大きくすることができる。   FIG. 7B shows graphs G1 and G2 when the emission intensity of the light emitting unit 11 is increased in the example of FIG. In this case, as the graph G1 shows, the rate of increase of the luminance value during light emission with respect to exposure increases. Therefore, in this case, the proper exposure is reduced, and the proper exposure is approximated to the current exposure value Exp. In addition, as the slope of the graph G1 increases, the luminance difference Dlit (see arrow 49) at the current exposure value Exp close to the appropriate exposure in FIG. 7B is obtained at the appropriate exposure in the case of FIG. Larger than the luminance difference Dlit (see arrow 48). As described above, the exposure / light emission intensity setting unit 17 can approximate the current exposure value Exp to the appropriate exposure and increase the luminance difference Dlit at the appropriate exposure.

[処理フロー]
次に、撮像装置1が実行する処理手順について、図8〜図10を参照して説明する。
[Processing flow]
Next, a processing procedure executed by the imaging apparatus 1 will be described with reference to FIGS.

(1)処理概要
図8は、撮像装置1が実行する処理の概要を示すフローチャートである。撮像装置1は、図8に示す処理を、所定の周期に従い繰り返し実行する。
(1) Processing Overview FIG. 8 is a flowchart illustrating an overview of processing executed by the imaging apparatus 1. The imaging device 1 repeatedly executes the process shown in FIG. 8 according to a predetermined cycle.

まず、撮像装置1の露出・発光強度設定部17は、撮影部12の露出及び発光部11の発光強度の初期値を設定する(ステップS101)。例えば、露出・発光強度設定部17は、被写体5の指先部分が発光部11及び撮影部12から適当な距離まで接近した時に想定される反射の強度と、その時の環境光の強度とを勘案して予め定められた露出及び発光強度を、これらの初期値として設定する。   First, the exposure / light emission intensity setting unit 17 of the imaging device 1 sets the initial value of the exposure of the photographing unit 12 and the light emission intensity of the light emitting unit 11 (step S101). For example, the exposure / light emission intensity setting unit 17 considers the reflection intensity assumed when the fingertip portion of the subject 5 approaches a suitable distance from the light emission unit 11 and the imaging unit 12 and the intensity of ambient light at that time. The predetermined exposure and emission intensity are set as these initial values.

次に、撮影部12は、発光部11を発光させて照射画像Im1を生成する(ステップS102)。次に、撮影部12は、発光部11を発光させない状態で非照射画像Im2を生成する(ステップS103)。そして、撮影部12は、照射画像Im1及び非照射画像Im2を、画像保持部13に記憶させる。次に、差分算出部14は、画像保持部13に記憶された照射画像Im1及び非照射画像Im2に基づき、差分画像Imdを生成する(ステップS104)。   Next, the imaging unit 12 generates the irradiation image Im1 by causing the light emitting unit 11 to emit light (step S102). Next, the imaging unit 12 generates a non-irradiated image Im2 in a state where the light emitting unit 11 does not emit light (step S103). Then, the imaging unit 12 causes the image holding unit 13 to store the irradiation image Im1 and the non-irradiation image Im2. Next, the difference calculation unit 14 generates a difference image Imd based on the irradiation image Im1 and the non-irradiation image Im2 stored in the image holding unit 13 (step S104).

次に、被写体検出部15は、差分画像Imdに基づき、被写体5の指先部分を検出する(ステップS105)。そして、被写体検出部15は、検出した被写体5及び被写体5の指先部分の位置や範囲等を示す検出結果情報Irを外部装置へ出力すると共に、当該検出結果情報Irを露出判定部16に供給する。   Next, the subject detection unit 15 detects the fingertip portion of the subject 5 based on the difference image Imd (step S105). Then, the subject detection unit 15 outputs detection result information Ir indicating the detected subject 5 and the position and range of the fingertip portion of the subject 5 to the external device and supplies the detection result information Ir to the exposure determination unit 16. .

次に、露出判定部16は、検出結果情報Ir及び照射画像Im1等に基づき、露出判定処理を実行する(ステップS106)。露出判定処理については、図9のフローチャートを用いて詳細に説明する。そして、露出判定部16は、撮影部12の露出の状態を示す露出情報Iexを露出・発光強度設定部17に供給する。そして、露出・発光強度設定部17は、露出情報Iexに基づき露出を調整する(ステップS107)。具体的には、露出・発光強度設定部17は、露出情報Iexが露出不足である旨を示す場合には、露出を所定値又は所定率だけ上げる旨の露出調整信号S1を撮影部12に送信する。また、露出・発光強度設定部17は、露出情報Iexが露出過多である旨を示す場合には、露出を所定値又は所定率だけ下げる旨の露出調整信号S1を撮影部12に送信する。   Next, the exposure determination unit 16 performs an exposure determination process based on the detection result information Ir, the irradiation image Im1, and the like (step S106). The exposure determination process will be described in detail with reference to the flowchart of FIG. Then, the exposure determination unit 16 supplies exposure information Iex indicating the exposure state of the photographing unit 12 to the exposure / light emission intensity setting unit 17. Then, the exposure / light emission intensity setting unit 17 adjusts the exposure based on the exposure information Iex (step S107). Specifically, when the exposure information Iex indicates underexposure, the exposure / light emission intensity setting unit 17 transmits an exposure adjustment signal S1 for increasing the exposure by a predetermined value or a predetermined rate to the photographing unit 12. To do. Further, when the exposure information Iex indicates that the exposure information Iex is overexposed, the exposure / light emission intensity setting unit 17 transmits an exposure adjustment signal S1 indicating that the exposure is reduced by a predetermined value or a predetermined rate to the photographing unit 12.

次に、露出・発光強度設定部17は、露出情報Iex及び非照射画像Im2に基づき、発光強度調整処理を実行する(ステップS108)。発光強度調整処理については、図10のフローチャートを用いて詳細に説明する。そして、撮像装置1は、処理を終了すべきか否か判定する(ステップS109)。そして、撮像装置1は、例えば、処理を実行すべき所定時間が経過した、又は処理を終了すべき旨の指示信号を受信した場合、処理を終了すべきと判断し(ステップS109;Yes)、フローチャートの処理を終了する。他の例では、撮像装置1は、ステップS106において撮影部12の露出が適正露出であると判断し、かつ、ステップS108で発光強度を変更しなかった場合には、フローチャートの処理を終了する。一方、撮像装置1は、処理を終了すべきでないと判断した場合(ステップS109;No)、ステップS102へ処理を戻す。   Next, the exposure / light emission intensity setting unit 17 performs a light emission intensity adjustment process based on the exposure information Iex and the non-irradiated image Im2 (step S108). The emission intensity adjustment process will be described in detail with reference to the flowchart of FIG. Then, the imaging apparatus 1 determines whether or not to end the process (step S109). Then, for example, when a predetermined time for executing the process has elapsed or an instruction signal indicating that the process should be terminated is received, the imaging apparatus 1 determines that the process should be terminated (step S109; Yes). The process of the flowchart ends. In another example, the imaging apparatus 1 determines that the exposure of the photographing unit 12 is appropriate exposure in step S106, and ends the process of the flowchart when the light emission intensity is not changed in step S108. On the other hand, when the imaging apparatus 1 determines that the process should not be terminated (step S109; No), the process returns to step S102.

(2)露出判定処理
図9は、図8のステップS106で露出判定部16が実行する処理手順を示すフローチャートである。
(2) Exposure Determination Processing FIG. 9 is a flowchart showing a processing procedure executed by the exposure determination unit 16 in step S106 of FIG.

まず、露出判定部16は、照射画像Im1内の露出判定領域T1を決定する(ステップS201)。例えば、露出判定部16は、被写体検出部15から受信した検出結果情報Irに基づき、被写体検出部15が検出した被写体の指先の表示領域に対応する照射画像Im1内の領域を、露出判定領域T1として認識する。   First, the exposure determination part 16 determines the exposure determination area | region T1 in the irradiation image Im1 (step S201). For example, based on the detection result information Ir received from the subject detection unit 15, the exposure determination unit 16 determines an area in the irradiation image Im1 corresponding to the display area of the fingertip of the subject detected by the subject detection unit 15 as the exposure determination region T1. Recognize as

次に、露出判定部16は、照射画像Im1内の露出判定領域T1の各画素を対象に、輝度ヒストグラムを生成する(ステップS202)。そして、露出判定部16は、輝度ヒストグラムに基づき、飽和画素数が所定の閾値以上であるか否か判定する(ステップS203)。なお、露出判定部16は、ステップS203において、飽和画素数に代えて、飽和画素数割合が所定の閾値以上であるか否かを判定してもよい。そして、飽和画素数が所定の閾値以上である場合(ステップS203;Yes)、露出判定部16は、撮影部12の露出が過多状態であると判定する(ステップS204)。   Next, the exposure determination unit 16 generates a luminance histogram for each pixel in the exposure determination region T1 in the irradiation image Im1 (step S202). Then, the exposure determination unit 16 determines whether or not the number of saturated pixels is greater than or equal to a predetermined threshold based on the luminance histogram (step S203). Note that, in step S203, the exposure determination unit 16 may determine whether the saturated pixel number ratio is equal to or greater than a predetermined threshold instead of the saturated pixel number. If the number of saturated pixels is equal to or greater than the predetermined threshold (step S203; Yes), the exposure determination unit 16 determines that the exposure of the photographing unit 12 is excessive (step S204).

一方、飽和画素数が所定の閾値未満である場合(ステップS203;No)、露出判定部16は、照射画像Im1内の露出判定領域T1の輝度値の平均が所定の閾値以下であるか否か判定する(ステップS205)。そして、照射画像Im1内の露出判定領域T1の輝度値の平均が所定の閾値以下である場合(ステップS205;Yes)、露出判定部16は、撮影部12の露出が不足していると判定する(ステップS206)。一方、照射画像Im1内の露出判定領域T1の輝度値の平均が所定の閾値より大きい場合(ステップS205;No)、露出判定部16は、撮影部12の露出が適正であると判定する(ステップS207)。   On the other hand, when the number of saturated pixels is less than the predetermined threshold (step S203; No), the exposure determination unit 16 determines whether or not the average luminance value of the exposure determination region T1 in the irradiation image Im1 is equal to or less than the predetermined threshold. Determination is made (step S205). And when the average of the luminance value of the exposure determination area | region T1 in the irradiation image Im1 is below a predetermined threshold value (step S205; Yes), the exposure determination part 16 determines with the exposure of the imaging | photography part 12 being insufficient. (Step S206). On the other hand, when the average luminance value of the exposure determination area T1 in the irradiation image Im1 is larger than a predetermined threshold (step S205; No), the exposure determination unit 16 determines that the exposure of the photographing unit 12 is appropriate (step). S207).

(3)発光強度調整処理
図10は、図8のステップS108で露出・発光強度設定部17が実行する処理手順を示すフローチャートである。
(3) Luminous Intensity Adjustment Processing FIG. 10 is a flowchart showing a processing procedure executed by the exposure / light emission intensity setting unit 17 in step S108 of FIG.

まず、露出・発光強度設定部17は、非照射画像Im2の被写体領域T2の輝度値が閾値THO以下であるか否か判定する(ステップS301)。例えば、露出・発光強度設定部17は、非照射画像Im2の被写体領域T2内の画素の輝度値の平均値などの代表値が閾値THO以下であるか否か判定する。   First, the exposure / light emission intensity setting unit 17 determines whether or not the luminance value of the subject region T2 of the non-irradiated image Im2 is equal to or less than the threshold value THO (step S301). For example, the exposure / light emission intensity setting unit 17 determines whether a representative value such as an average value of luminance values of pixels in the subject region T2 of the non-irradiated image Im2 is equal to or less than the threshold value THO.

そして、非照射画像Im2の被写体領域T2の輝度値が閾値THO以下である場合(ステップS301;Yes)、露出・発光強度設定部17は、露出判定部16から受信した露出情報Iexが適正露出又は露出過多のいずれかを示していたか否か判定する(ステップS302)。そして、適正露出又は露出過多に該当する場合(ステップS302;Yes)、露出・発光強度設定部17は、ステップS303の処理を実行する。一方、適正露出及び露出過多に該当しない場合(ステップS302;No)、即ち露出不足の場合、露出・発光強度設定部17は、発光部11の発光強度を下げることなく、フローチャートの処理を終了する。即ち、この場合、露出・発光強度設定部17は、発光部11の発光強度を下げると、露出の不足度がさらに増加すると判断し、発光部11の発光強度を調整しない。   When the luminance value of the subject region T2 of the non-irradiated image Im2 is equal to or less than the threshold value THO (step S301; Yes), the exposure / light emission intensity setting unit 17 determines that the exposure information Iex received from the exposure determination unit 16 is appropriate exposure or It is determined whether or not any of over-exposure has been indicated (step S302). Then, when it corresponds to appropriate exposure or overexposure (step S302; Yes), the exposure / light emission intensity setting unit 17 executes the process of step S303. On the other hand, when it does not correspond to appropriate exposure and overexposure (step S302; No), that is, when underexposure, the exposure / light emission intensity setting unit 17 ends the process of the flowchart without reducing the light emission intensity of the light emitting unit 11. . That is, in this case, the exposure / light emission intensity setting unit 17 determines that the degree of exposure deficiency further increases when the light emission intensity of the light emitting unit 11 is lowered, and does not adjust the light emission intensity of the light emitting unit 11.

次に、ステップS303では、露出・発光強度設定部17は、現在の撮影部12の露出が最高でなく、かつ、発光強度が最低でないか否か判定する(ステップS303)。そして、現在の撮影部12の露出が最高でなく、かつ、発光強度が最低でない場合(ステップS303;Yes)、発光部11の発光強度を所定値又は所定率だけ下げる旨の発光強度調整信号S2を撮影部12に送信する(ステップS304)。これにより、露出・発光強度設定部17は、適正露出の場合の非照射画像Im2の被写体領域T2の輝度値を0よりも大きくすることができる。一方、現在の撮影部12の露出が最高、または、発光部11の発光強度が最低の場合(ステップS303;No)、撮像装置1は、フローチャートの処理を終了する。なお、発光部11の発光強度が最低の場合、露出・発光強度設定部17は、ステップS304で発光強度を下げることができないと判断する。また、露出が最高の場合、露出・発光強度設定部17は、ステップS304での発光強度の低下に起因して上昇する適正露出に、撮影部12の露出を調整することができなくなると判断する。   Next, in step S303, the exposure / light emission intensity setting unit 17 determines whether or not the current exposure of the photographing unit 12 is the highest and the light emission intensity is not the lowest (step S303). If the current exposure of the photographing unit 12 is not the highest and the emission intensity is not the lowest (step S303; Yes), the emission intensity adjustment signal S2 for decreasing the emission intensity of the light emitting unit 11 by a predetermined value or a predetermined rate. Is transmitted to the imaging unit 12 (step S304). Thereby, the exposure / light emission intensity setting unit 17 can make the luminance value of the subject region T2 of the non-irradiated image Im2 larger than 0 in the case of proper exposure. On the other hand, when the exposure of the current photographing unit 12 is the highest or the light emission intensity of the light emitting unit 11 is the lowest (step S303; No), the imaging device 1 ends the process of the flowchart. When the light emission intensity of the light emitting unit 11 is the lowest, the exposure / light emission intensity setting unit 17 determines that the light emission intensity cannot be reduced in step S304. When the exposure is the highest, the exposure / light emission intensity setting unit 17 determines that the exposure of the photographing unit 12 cannot be adjusted to the appropriate exposure that increases due to the decrease in the light emission intensity in step S304. .

一方、非照射画像Im2の被写体領域T2の輝度値が閾値THOより大きい場合(ステップS301;No)、露出・発光強度設定部17は、露出判定部16から受信した露出情報Iexが適正露出又は露出過多のいずれかを示していたか否か判定する(ステップS305)。そして、適正露出又は露出不足に該当する場合(ステップS305;Yes)、ステップS306へ処理を進める。一方、適正露出及び露出不足に該当しない場合(ステップS305;No)、即ち、露出過多の場合、露出・発光強度設定部17は、フローチャートの処理を終了する。即ち、この場合、露出・発光強度設定部17は、発光部11の発光強度を上げると、撮影部12の露出が適正露出からさらに乖離すると判断し、発光部11の発光強度を調整しない。   On the other hand, when the luminance value of the subject region T2 of the non-irradiated image Im2 is larger than the threshold value THO (step S301; No), the exposure / light emission intensity setting unit 17 determines that the exposure information Iex received from the exposure determination unit 16 is appropriate exposure or exposure. It is determined whether any of the excess has been indicated (step S305). And when it corresponds to appropriate exposure or underexposure (step S305; Yes), a process is advanced to step S306. On the other hand, when it does not correspond to appropriate exposure and underexposure (step S305; No), that is, when it is overexposed, the exposure / light emission intensity setting unit 17 ends the process of the flowchart. That is, in this case, when the light emission intensity of the light emitting unit 11 is increased, the exposure / light emission intensity setting unit 17 determines that the exposure of the photographing unit 12 further deviates from the appropriate exposure, and does not adjust the light emission intensity of the light emitting unit 11.

次に、ステップS306では、露出・発光強度設定部17は、現在の撮影部12の露出が最低でなく、かつ、発光強度が最高でないか否か判定する(ステップS306)。そして、現在の撮影部12の露出が最低でなく、かつ、発光強度が最高でない場合(ステップS306;Yes)、発光部11の発光強度を所定値又は所定率だけ上げる旨の発光強度調整信号S2を撮影部12に送信する(ステップS307)。これにより、露出・発光強度設定部17は、適正露出での輝度差Dlitを好適に広げることができる。一方、現在の撮影部12の露出が最低、または、発光部11の発光強度が最高の場合(ステップS306;No)、撮像装置1は、フローチャートの処理を終了する。なお、発光部11の発光強度が最高の場合、露出・発光強度設定部17は、ステップS307で発光強度を上げることができないと判断する。また、露出が最低の場合、露出・発光強度設定部17は、ステップS307で発光強度を上げることに起因して下がる適正露出に露出を調整することができなくなると判断する。   Next, in step S306, the exposure / light emission intensity setting unit 17 determines whether or not the current exposure of the photographing unit 12 is the lowest and the light emission intensity is not the highest (step S306). If the current exposure of the photographing unit 12 is not the lowest and the emission intensity is not the highest (step S306; Yes), the emission intensity adjustment signal S2 for increasing the emission intensity of the light emitting unit 11 by a predetermined value or a predetermined rate. Is transmitted to the imaging unit 12 (step S307). Thereby, the exposure / light emission intensity setting unit 17 can suitably widen the luminance difference Dlit with appropriate exposure. On the other hand, when the exposure of the current photographing unit 12 is the lowest or the light emission intensity of the light emitting unit 11 is the highest (step S306; No), the imaging device 1 ends the process of the flowchart. When the light emission intensity of the light emitting unit 11 is the highest, the exposure / light emission intensity setting unit 17 determines that the light emission intensity cannot be increased in step S307. When the exposure is the lowest, the exposure / light emission intensity setting unit 17 determines that the exposure cannot be adjusted to an appropriate exposure that decreases due to the increase of the light emission intensity in step S307.

<変形例>
以下、上述の実施例に好適な変形例について説明する。以下の変形例は、任意に組み合わせて上述の実施例に適用してもよい。
<Modification>
Hereinafter, modified examples suitable for the above-described embodiments will be described. The following modifications may be applied in any combination to the above-described embodiments.

(変形例1)
被写体検出部15は、実施例の処理に加え、被写体5の指の先端部分及び付け根部分の輝度差に基づき、撮影部12に対する指の向きを認識する処理を行ってもよい。
(Modification 1)
In addition to the processing of the embodiment, the subject detection unit 15 may perform processing for recognizing the orientation of the finger with respect to the photographing unit 12 based on the luminance difference between the tip portion and base portion of the subject 5.

図11(A)は、被写体5が表示された照射画像Im1の表示例を示す。まず、被写体検出部15は、当該照射画像Im1から生成した差分画像Imdを対象に周知の画像処理を行うことで、被写体5の各指の先端部分及び付け根部分を認識する。図11(A)の領域55Aは、差分画像Imdに基づき認識した各指の先端部分の照射画像Im1での領域を示し、図11(A)の領域55Bは、差分画像Imdに基づき認識した各指の付け根部分の照射画像Im1での領域を示す。そして、被写体検出部15は、指ごとに領域55A及び領域55Bの輝度差を算出し、所定のマップ又は式を参照することで、当該輝度差から撮影部12に対する各指の指先及び付け根の相対的な距離関係を認識する。上述のマップ等は、例えば実験等に基づき予め作成されて撮像装置1のメモリに記憶される。これにより、被写体検出部15は、好適に、撮影部12に対する指の向きを認識することができる。そして、被写体検出部15は、撮影部12に対する指の向きを示す情報を、検出結果情報Irに含めて外部装置等に送信する。   FIG. 11A shows a display example of the irradiation image Im1 on which the subject 5 is displayed. First, the subject detection unit 15 recognizes the tip portion and the base portion of each finger of the subject 5 by performing known image processing on the difference image Imd generated from the irradiation image Im1. A region 55A in FIG. 11A shows a region in the irradiation image Im1 of the tip portion of each finger recognized based on the difference image Imd, and a region 55B in FIG. 11A represents each region recognized based on the difference image Imd. The area | region in the irradiation image Im1 of the base part of a finger | toe is shown. Then, the subject detection unit 15 calculates the luminance difference between the region 55A and the region 55B for each finger, and refers to a predetermined map or expression so that the fingertip and the base of each finger relative to the photographing unit 12 are calculated based on the luminance difference. Recognizable distance relations. The above-described map and the like are created in advance based on, for example, experiments and stored in the memory of the imaging apparatus 1. Thereby, the subject detection unit 15 can preferably recognize the orientation of the finger with respect to the imaging unit 12. Then, the subject detection unit 15 includes information indicating the orientation of the finger with respect to the photographing unit 12 in the detection result information Ir and transmits the information to an external device or the like.

(変形例2)
被写体検出部15は、実施例の処理に加え、被写体5の撮影部12に対する接近や遠ざかりを認識する処理を行ってもよい。
(Modification 2)
In addition to the processing of the embodiment, the subject detection unit 15 may perform processing for recognizing the approach or distance of the subject 5 from the photographing unit 12.

この場合、まず、被写体検出部15は、差分画像Imdにおいて、被写体5の全体を示す領域の面積(即ち画素数)を算出する。そして、被写体検出部15は、算出した面積の時間変化に基づき、被写体5が撮影部12に接近したか否かを判定する。例えば、被写体検出部15は、検出した被写体5の面積が増加した場合、当該増加した面積分に比例した距離だけ被写体5が撮影部12に近づいたと判断する。同様に、被写体検出部15は、検出した被写体5の面積が減少した場合、当該減少した面積分に比例した距離だけ被写体5が撮影部12から遠ざかったと判断する。そして、被写体検出部15は、上述の比例の関係を示す比例定数を予め記憶しておき、当該比例定数に基づき、被写体5が撮影部12に対して接近した又は遠ざかった距離を算出する。そして、被写体検出部15は、被写体5の撮影部12に対して接近した距離や遠ざかった距離などの情報を、検出結果情報Irに含めて外部装置等に送信する。   In this case, first, the subject detection unit 15 calculates the area (that is, the number of pixels) of the region indicating the entire subject 5 in the difference image Imd. Then, the subject detection unit 15 determines whether or not the subject 5 has approached the photographing unit 12 based on the calculated time change of the area. For example, when the area of the detected subject 5 increases, the subject detection unit 15 determines that the subject 5 has approached the photographing unit 12 by a distance proportional to the increased area. Similarly, when the area of the detected subject 5 is reduced, the subject detection unit 15 determines that the subject 5 has moved away from the photographing unit 12 by a distance proportional to the reduced area. The subject detection unit 15 stores in advance a proportional constant indicating the above-described proportional relationship, and calculates the distance that the subject 5 has approached or moved away from the photographing unit 12 based on the proportional constant. Then, the subject detection unit 15 includes information such as the distance of the subject 5 that is close to or far away from the photographing unit 12 in the detection result information Ir and transmits the information to an external device or the like.

(変形例3)
図2(A)の説明では、露出判定部16は、露出判定領域T1を、被写体検出部15が検出した被写体5の指先部分の表示領域に設定した。これに代えて、露出判定部16は、被写体5の指全体の表示領域を、露出判定領域T1に設定してもよい。
(Modification 3)
In the description of FIG. 2A, the exposure determination unit 16 sets the exposure determination region T1 as the display region of the fingertip portion of the subject 5 detected by the subject detection unit 15. Instead, the exposure determination unit 16 may set the display area of the entire finger of the subject 5 as the exposure determination area T1.

図11(B)は、本変形例における露出判定領域T1を点線により明示した照射画像Im1の表示例を示す。図11(B)に示すように、この例では、露出判定部16は、露出判定領域T1を、各指の先から付け根部分までを含む領域に設定している。   FIG. 11B shows a display example of the irradiation image Im1 in which the exposure determination region T1 in the present modification is clearly indicated by a dotted line. As shown in FIG. 11B, in this example, the exposure determination unit 16 sets the exposure determination region T1 to a region including from the tip of each finger to the root portion.

好適には、変形例1に従い各指の向きを検出する場合に、露出判定部16は、図11(B)に示すように露出判定領域T1を設定する。これにより、各指の先から付け根部分までを含む領域の輝度を対象にして露出を調整することができ、被写体検出部15による検出精度を向上させることができる。   Preferably, when the orientation of each finger is detected according to the first modification, the exposure determination unit 16 sets an exposure determination region T1 as shown in FIG. Thereby, the exposure can be adjusted for the luminance of the region including the tip to the base of each finger, and the detection accuracy by the subject detection unit 15 can be improved.

さらに、この場合、好適には、露出判定部16は、適正露出であるか否かの基準を、輝度ヒストグラムにおける輝度値の広がり度合い(即ち均等に分布している度合い)に基づき判定するとよい。この場合、露出判定部16は、輝度ヒストグラムに基づき、輝度値の広がりを示す指標を算出し、当該指標が所定範囲内にある場合には、適正露出であると判断する。そして、露出・発光強度設定部17は、露出判定部16が適正露出でないと判断した場合、撮影部12の露出を変更する。   Further, in this case, preferably, the exposure determination unit 16 may determine the criterion of whether or not the exposure is appropriate based on the degree of spread of the luminance value (that is, the degree of uniform distribution) in the luminance histogram. In this case, the exposure determination unit 16 calculates an index indicating the spread of the brightness value based on the brightness histogram, and determines that the exposure is appropriate when the index is within a predetermined range. The exposure / light emission intensity setting unit 17 changes the exposure of the photographing unit 12 when the exposure determination unit 16 determines that the exposure is not appropriate.

(変形例4)
差分算出部14は、撮影部12により交互に生成された照射画像Im1及び非照射画像Im2に基づき、差分画像Imdを生成した。しかし、本発明が適用可能な構成は、これに限定されない。
(Modification 4)
The difference calculation unit 14 generates a difference image Imd based on the irradiation image Im1 and the non-irradiation image Im2 generated alternately by the imaging unit 12. However, the configuration to which the present invention is applicable is not limited to this.

これに代えて、撮像装置1は、赤外線を照射する赤外線照射部を有し、被写体5に赤外線を照射させた状態で撮影部12が生成した撮影画像に基づき、差分画像Imdを生成してもよい。この場合、撮影部12は、赤外線をカットするフィルタが設けられたイメージセンサ(「フィルタ付きイメージセンサ」とも呼ぶ。)と、当該フィルタが設けられていないイメージセンサ(「フィルタなしイメージセンサ」とも呼ぶ。)とを内蔵し、レンズを通った光を分光して各イメージセンサに入射させる構造を有する。そして、撮影部12は、フィルタ付きイメージセンサでは、照射された赤外線を含まない画像(即ち、非照射画像Im2)を生成し、フィルタなしイメージセンサでは、照射された赤外線を含む画像(即ち、照射画像Im1)を生成する。従って、この構成によっても、差分算出部14は、撮影部12が同時に生成した2つ画像に基づき、差分画像Imdを好適に生成することができる。なお、撮影部12は、上述のフィルタ付きイメージセンサに代えて、可視光に反応するイメージセンサを備え、上述のフィルタなしイメージセンサに代えて、赤外線に反応するイメージセンサを備えてもよい。   Instead, the imaging apparatus 1 includes an infrared irradiation unit that irradiates infrared rays, and generates the difference image Imd based on the captured image generated by the imaging unit 12 in a state where the subject 5 is irradiated with infrared rays. Good. In this case, the photographing unit 12 is also referred to as an image sensor provided with a filter that cuts infrared rays (also referred to as “image sensor with filter”) and an image sensor not provided with the filter (also referred to as “image sensor without filter”). )), And the light that has passed through the lens is split and incident on each image sensor. The imaging unit 12 generates an image that does not include the irradiated infrared ray (that is, the non-irradiated image Im2) in the image sensor with a filter, and the image that includes the irradiated infrared ray (that is, the irradiation) in the image sensor without a filter. An image Im1) is generated. Therefore, also with this configuration, the difference calculation unit 14 can suitably generate the difference image Imd based on the two images generated simultaneously by the imaging unit 12. The photographing unit 12 may include an image sensor that reacts to visible light instead of the above-described image sensor with a filter, and may include an image sensor that reacts to infrared light instead of the above-described image sensor without a filter.

(変形例5)
露出・発光強度設定部17は、発光部11の発光強度の調整と、撮影部12の露出調整との両方を実行した。しかし、本発明が適用可能な構成は、これに限定されない。これに代えて、露出・発光強度設定部17は、発光部11の発光強度の調整と、撮影部12の露出調整とのいずれか一方を実行してもよい。これによっても、好適に、被写体検出部15での検出精度が向上させることができる。
(Modification 5)
The exposure / light emission intensity setting unit 17 performs both the adjustment of the light emission intensity of the light emitting unit 11 and the exposure adjustment of the photographing unit 12. However, the configuration to which the present invention is applicable is not limited to this. Instead of this, the exposure / light emission intensity setting unit 17 may execute either adjustment of the light emission intensity of the light emitting unit 11 or exposure adjustment of the photographing unit 12. Also by this, the detection accuracy in the subject detection unit 15 can be preferably improved.

(変形例6)
露出判定部16は、照射画像Im1における露出判定領域T1の輝度の度数分布に基づき、撮影部12の露出の判定を行った。これに代えて、露出判定部16は、被写体5の指先の領域に相当する非照射画像Im2又は差分画像Imdの領域を露出判定領域T1とし、当該露出判定領域T1内での輝度の度数分布に基づき、撮影部12の露出の判定を行ってもよい。非照射画像Im2から露出判定を行う場合、非照射画像Im2の(被写体領域T2の)輝度値が高ければ、それは環境光が強い状況であり、環境光の影響を減らすため、露出をより少なく、かつ、発光強度をより強くすることができる。差分画像Imdから露出判定を行う場合、差分画像Imdの(被写体領域T2の)値が低ければ、環境光が強い。つまり、環境光に対して自発光が弱い状態であり、環境光の影響を軽減するため、すなわち自発光が弱いことを補うため、露出をより少なく、かつ、発光強度をより強くすることができる。
(Modification 6)
The exposure determination unit 16 determines the exposure of the photographing unit 12 based on the frequency distribution of the luminance of the exposure determination region T1 in the irradiation image Im1. Instead, the exposure determination unit 16 sets the non-irradiated image Im2 or the difference image Imd region corresponding to the fingertip region of the subject 5 as the exposure determination region T1, and uses the luminance frequency distribution in the exposure determination region T1. Based on this, the exposure of the photographing unit 12 may be determined. When performing the exposure determination from the non-irradiated image Im2, if the luminance value of the non-irradiated image Im2 (subject region T2) is high, it is a situation where the ambient light is strong, and in order to reduce the influence of the environmental light, the exposure is reduced, In addition, the emission intensity can be increased. When the exposure determination is performed from the difference image Imd, the ambient light is strong if the value of the difference image Imd (subject area T2) is low. In other words, it is in a state where the self-emission is weak with respect to the ambient light, and in order to reduce the influence of the ambient light, that is, to compensate for the weak self-emission, the exposure can be reduced and the emission intensity can be increased. .

1 撮像装置
5 被写体
11 発光部
12 撮影部
13 画像保持部
14 差分算出部
15 被写体検出部
16 露出判定部
17 露出・発光強度設定部
DESCRIPTION OF SYMBOLS 1 Imaging device 5 Subject 11 Light emission part 12 Imaging part 13 Image holding part 14 Difference calculation part 15 Subject detection part 16 Exposure determination part 17 Exposure and light emission intensity setting part

Claims (12)

被撮影物を撮影する撮影部の露出を設定する露出設定装置であって、
発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、
前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出手段と、
前記検出手段により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出設定を変更する露出設定手段と、
を備えることを特徴とする露出設定装置。
An exposure setting device for setting an exposure of a photographing unit for photographing an object,
An image acquisition means for acquiring, from the imaging unit, an irradiation image of the object irradiated with light by the light emitting unit and a non-irradiated image of the object not irradiated with light by the light emitting unit;
Detecting means for detecting the object based on a luminance difference between the irradiated image and the non-irradiated image;
Exposure setting means for changing the exposure setting of the photographing unit based on the luminance of the display area in the irradiated image or / and the non-irradiated image of the object detected by the detecting means;
An exposure setting device comprising:
前記検出手段は、前記照射画像と、前記非照射画像との輝度差によって、差分画像を生成し、当該差分画像に基づいて前記被撮影物を検出することを特徴とする請求項1に記載の露出設定装置。   The said detection means produces | generates a difference image by the brightness | luminance difference of the said irradiation image and the said non-irradiation image, The said to-be-photographed object is detected based on the said difference image, It is characterized by the above-mentioned. Exposure setting device. 前記露出設定手段は、前記検出手段により検出した前記被撮影物の前記表示領域の各画素の輝度の度数分布に基づき、前記撮影部の露出が適正露出、露出不足、又は露出過多のいずれであるかを判定することを特徴とする請求項1または2に記載の露出設定装置。   The exposure setting means is either an appropriate exposure, an underexposure, or an overexposure based on a luminance frequency distribution of each pixel in the display area of the object to be detected detected by the detection means. The exposure setting device according to claim 1, wherein the exposure setting device determines whether or not the exposure has occurred. 前記撮影部の露出が適正露出である場合の前記被撮影物の前記照射画像での表示領域の輝度と前記被撮影物の前記非照射画像での表示領域の輝度との輝度差を増加させるように、前記発光部の発光強度を設定する発光強度設定手段をさらに備えることを特徴とする請求項1〜3のいずれか一項に記載の露出設定装置。   Increasing the luminance difference between the luminance of the display area in the irradiated image of the subject and the luminance of the display area in the non-irradiated image of the subject when the exposure of the photographing unit is appropriate exposure The exposure setting device according to any one of claims 1 to 3, further comprising a light emission intensity setting unit that sets a light emission intensity of the light emitting unit. 前記発光強度設定手段は、前記被撮影物の前記非照射画像での表示領域の輝度が閾値より大きい場合に、前記発光部の発光強度を強くし、
前記被撮影物の前記非照射画像での表示領域の輝度が前記閾値以下の場合に、前記発光部の発光強度を弱めることを特徴とする請求項4に記載の露出設定装置。
The light emission intensity setting means increases the light emission intensity of the light emitting unit when the luminance of the display area in the non-irradiated image of the object to be photographed is greater than a threshold value,
The exposure setting apparatus according to claim 4, wherein when the luminance of the display area of the non-irradiated image of the object to be photographed is equal to or less than the threshold value, the light emission intensity of the light emitting unit is reduced.
前記発光強度設定手段は、前記被撮影部の露出が露出過多の場合には、前記被撮影物の前記非照射画像での表示領域の輝度が前記閾値より大きい場合であっても、前記発光部の発光強度の設定を変更しないことを特徴とする請求項3に記載の露出設定装置。   The light emission intensity setting means, when the exposure of the object to be imaged is overexposed, even if the luminance of the display area in the non-irradiated image of the object to be imaged is greater than the threshold value. 4. The exposure setting device according to claim 3, wherein the setting of the light emission intensity is not changed. 前記発光強度設定手段は、前記被撮影部の露出が露出不足の場合には、前記被撮影物の前記非照射画像での表示領域の輝度が前記閾値以下の場合であっても、前記発光部の発光強度の設定を変更しないことを特徴とする請求項5または6に記載の露出設定装置。   The light emission intensity setting means, when the exposure of the object to be imaged is underexposed, even if the luminance of the display area in the non-irradiated image of the object to be imaged is not more than the threshold value. The exposure setting device according to claim 5 or 6, wherein the setting of the light emission intensity is not changed. 前記検出手段は、前記被撮影物の前記照射画像又は前記非照射画像での表示領域の面積の変化に基づき、前記被撮影物の接近又は遠ざかりをさらに検出することを特徴とする請求項1乃至7のいずれか一項に記載の露出設定装置。   The detection means further detects an approach or a distance of the subject based on a change in an area of a display region in the irradiated image or the non-irradiated image of the subject. The exposure setting device according to claim 7. 撮影部により撮影される被撮影物を照射する発光部の発光強度を設定する発光強度設定装置であって、
発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、
前記撮影部の露出が適正である場合の前記被撮影物での前記照射画像と前記非照射画像との輝度差を増加させるように、前記発光部の発光強度を設定する発光強度設定手段と、
を備えることを特徴とする発光強度設定装置。
A light emission intensity setting device for setting a light emission intensity of a light emitting unit that irradiates an object to be photographed by a photographing unit,
An image acquisition means for acquiring, from the imaging unit, an irradiation image of the object irradiated with light by the light emitting unit and a non-irradiated image of the object not irradiated with light by the light emitting unit;
A light emission intensity setting means for setting a light emission intensity of the light emitting unit so as to increase a luminance difference between the irradiated image and the non-irradiated image on the subject when the exposure of the photographing unit is appropriate;
A light emission intensity setting device comprising:
被撮影物を撮影する撮影部の露出を設定する露出設定装置が実行する制御方法であって、
発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得工程と、
前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出工程と、
前記検出工程により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定工程と、
を有することを特徴とする制御方法。
A control method executed by an exposure setting device that sets the exposure of a photographing unit that photographs a subject,
An image acquisition step of acquiring, from the imaging unit, an irradiation image of the object irradiated with light by the light emitting unit and a non-irradiated image of the object not irradiated with light by the light emitting unit;
A detection step of detecting the object to be photographed based on a luminance difference between the irradiated image and the non-irradiated image;
An exposure setting step of changing the exposure setting of the imaging unit based on the brightness of the display area in the irradiated image or / and the non-irradiated image of the object detected by the detection step;
A control method characterized by comprising:
被撮影物を撮影する撮影部の露出を設定する露出設定装置が実行するプログラムであって、
発光部により光が照射された前記被撮影物の照射画像と、前記発光部により光が照射されていない前記被撮影物の非照射画像とを、前記撮影部から取得する画像取得手段と、
前記照射画像と、前記非照射画像との輝度差に基づき、前記被撮影物を検出する検出手段と、
前記検出手段により検出した前記被撮影物の前記照射画像又は/及び前記非照射画像での表示領域の輝度に基づき、前記撮影部の露出の設定を変更する露出設定手段
として前記露出設定装置を機能させることを特徴とするプログラム。
A program executed by an exposure setting device for setting an exposure of a photographing unit for photographing an object,
An image acquisition means for acquiring, from the imaging unit, an irradiation image of the object irradiated with light by the light emitting unit and a non-irradiated image of the object not irradiated with light by the light emitting unit;
Detecting means for detecting the object based on a luminance difference between the irradiated image and the non-irradiated image;
The exposure setting device functions as an exposure setting unit that changes the exposure setting of the imaging unit based on the luminance of the display area of the irradiated image or / and the non-irradiated image of the object detected by the detection unit. A program characterized by letting
請求項11に記載のプログラムを記憶したことを特徴とする記憶媒体。   A storage medium storing the program according to claim 11.
JP2013023043A 2013-02-08 2013-02-08 Exposure setting device, light emission intensity setting device, control method, program, and storage medium Pending JP2014155033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013023043A JP2014155033A (en) 2013-02-08 2013-02-08 Exposure setting device, light emission intensity setting device, control method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013023043A JP2014155033A (en) 2013-02-08 2013-02-08 Exposure setting device, light emission intensity setting device, control method, program, and storage medium

Publications (1)

Publication Number Publication Date
JP2014155033A true JP2014155033A (en) 2014-08-25

Family

ID=51576504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013023043A Pending JP2014155033A (en) 2013-02-08 2013-02-08 Exposure setting device, light emission intensity setting device, control method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP2014155033A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018503325A (en) * 2014-11-06 2018-02-01 デューライト・リミテッド・ライアビリティ・カンパニーDuelight Llc System and method for performing operations on pixel data
US10558848B2 (en) 2017-10-05 2020-02-11 Duelight Llc System, method, and computer program for capturing an image with correct skin tone exposure
US10652478B2 (en) 2012-09-04 2020-05-12 Duelight Llc Image sensor apparatus and method for obtaining multiple exposures with zero interframe time
US10785401B2 (en) 2016-09-01 2020-09-22 Duelight Llc Systems and methods for adjusting focus based on focus target information
US10904505B2 (en) 2015-05-01 2021-01-26 Duelight Llc Systems and methods for generating a digital image
US10924688B2 (en) 2014-11-06 2021-02-16 Duelight Llc Image sensor apparatus and method for obtaining low-noise, high-speed captures of a photographic scene
US10931897B2 (en) 2013-03-15 2021-02-23 Duelight Llc Systems and methods for a digital image sensor
US11375085B2 (en) 2016-07-01 2022-06-28 Duelight Llc Systems and methods for capturing digital images
US11463630B2 (en) 2014-11-07 2022-10-04 Duelight Llc Systems and methods for generating a high-dynamic range (HDR) pixel stream
US12003864B2 (en) 2021-05-14 2024-06-04 Duelight Llc Image sensor apparatus and method for obtaining multiple exposures with zero interframe time

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10652478B2 (en) 2012-09-04 2020-05-12 Duelight Llc Image sensor apparatus and method for obtaining multiple exposures with zero interframe time
US11025831B2 (en) 2012-09-04 2021-06-01 Duelight Llc Image sensor apparatus and method for obtaining multiple exposures with zero interframe time
US10931897B2 (en) 2013-03-15 2021-02-23 Duelight Llc Systems and methods for a digital image sensor
US11394894B2 (en) 2014-11-06 2022-07-19 Duelight Llc Image sensor apparatus and method for obtaining low-noise, high-speed captures of a photographic scene
JP2018503325A (en) * 2014-11-06 2018-02-01 デューライト・リミテッド・ライアビリティ・カンパニーDuelight Llc System and method for performing operations on pixel data
US10924688B2 (en) 2014-11-06 2021-02-16 Duelight Llc Image sensor apparatus and method for obtaining low-noise, high-speed captures of a photographic scene
US11463630B2 (en) 2014-11-07 2022-10-04 Duelight Llc Systems and methods for generating a high-dynamic range (HDR) pixel stream
US10904505B2 (en) 2015-05-01 2021-01-26 Duelight Llc Systems and methods for generating a digital image
US11356647B2 (en) 2015-05-01 2022-06-07 Duelight Llc Systems and methods for generating a digital image
US11375085B2 (en) 2016-07-01 2022-06-28 Duelight Llc Systems and methods for capturing digital images
US10785401B2 (en) 2016-09-01 2020-09-22 Duelight Llc Systems and methods for adjusting focus based on focus target information
US10586097B2 (en) 2017-10-05 2020-03-10 Duelight Llc System, method, and computer program for capturing an image with correct skin tone exposure
US11455829B2 (en) 2017-10-05 2022-09-27 Duelight Llc System, method, and computer program for capturing an image with correct skin tone exposure
US10558848B2 (en) 2017-10-05 2020-02-11 Duelight Llc System, method, and computer program for capturing an image with correct skin tone exposure
US11699219B2 (en) 2017-10-05 2023-07-11 Duelight Llc System, method, and computer program for capturing an image with correct skin tone exposure
US12003853B2 (en) 2020-08-21 2024-06-04 Duelight Llc Systems and methods for adjusting focus based on focus target information
US12003864B2 (en) 2021-05-14 2024-06-04 Duelight Llc Image sensor apparatus and method for obtaining multiple exposures with zero interframe time

Similar Documents

Publication Publication Date Title
JP2014155033A (en) Exposure setting device, light emission intensity setting device, control method, program, and storage medium
KR101861153B1 (en) Image processing apparatus and control method thereof
CN105744175B (en) A kind of screen light compensation method, device and mobile terminal
JP6168879B2 (en) Endoscope apparatus, operation method and program for endoscope apparatus
US10084967B1 (en) Systems and methods for regionally controlling exposure time in high dynamic range imaging
JP5493512B2 (en) IMAGING DEVICE AND CELLULAR PHONE MOUNTING THE SAME
JP2007201980A (en) Apparatus and method of determining face importance, and imaging apparatus
JP6412386B2 (en) Image processing apparatus, control method therefor, program, and recording medium
JP5166370B2 (en) Imaging apparatus and imaging method
KR20160047196A (en) APPARATUS FOR TRACKING EYE POINT OPERABLE AT HIGH intensity of illumination AND LOW intensity of illumination AND METHOD THEREOF
JP2017028376A5 (en)
WO2017141730A1 (en) Image processing device and method, and program
US8736707B2 (en) System and method for utilizing scene detection in a depth estimation procedure
JP2007312206A (en) Imaging apparatus and image reproducing apparatus
CN108289170B (en) Photographing apparatus, method and computer readable medium capable of detecting measurement area
JP2010154306A (en) Device, program and method for imaging control
JP2014157316A (en) Projector device
US20120188437A1 (en) Electronic camera
JP2007328213A (en) Imaging apparatus, imaging apparatus control method, and computer program
JP2015154220A (en) Illumination control device
JP2014098859A (en) Imaging apparatus and imaging method
JP2018107741A (en) Image processing system, image processing method, and program
JP2020101624A (en) Imaging apparatus, electronic apparatus, and control method and program of imaging apparatus
JP6423669B2 (en) Imaging apparatus and control method thereof
JP2006081087A (en) Imaging apparatus and method