JP2019174308A - Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device - Google Patents

Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device Download PDF

Info

Publication number
JP2019174308A
JP2019174308A JP2018063399A JP2018063399A JP2019174308A JP 2019174308 A JP2019174308 A JP 2019174308A JP 2018063399 A JP2018063399 A JP 2018063399A JP 2018063399 A JP2018063399 A JP 2018063399A JP 2019174308 A JP2019174308 A JP 2019174308A
Authority
JP
Japan
Prior art keywords
light
distance
subject
reference distance
pixel
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
JP2018063399A
Other languages
Japanese (ja)
Inventor
知弘 大林
Tomohiro Obayashi
知弘 大林
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.)
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Infrastructure Systems and Solutions 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 Toshiba Corp, Toshiba Infrastructure Systems and Solutions Corp filed Critical Toshiba Corp
Priority to JP2018063399A priority Critical patent/JP2019174308A/en
Publication of JP2019174308A publication Critical patent/JP2019174308A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Studio Devices (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

To provide an imaging device with which it is possible to measure the distance to a subject with high accuracy.SOLUTION: The imaging device comprises a light source, an imaging unit, a reference distance calculation unit, a storage unit, and a distance selection unit. The light source irradiates a subject with light. The imaging unit receives reflected light that is the light irradiated by the light source and reflected from the subject. The reference distance calculation unit calculates, by a combination of illumination light sources, among three or more light sources, except at least one, that irradiate light, a reference distance to the subject for each pixel in a combination of respective illumination light sources on the basis of a duration from when light is irradiated to when reflected light from the subject is received by the imaging unit, and generates a reference distance image. The storage unit associates a reference distance for each pixel in the reference distance image generated by the reference distance calculation unit with the received amount of the reflected light from the subject used for calculating the reference distance and stores them. The distance selection unit selects, for each pixel, as the distance to the subject in the pixel, on the basis of the reference distance, among the reference distances stored in the storage unit, for which effective distance is calculated and the received amount of light.SELECTED DRAWING: Figure 1

Description

本発明の実施形態は、被写体までの距離画像を取得する撮像装置、撮像装置の距離算出
方法及び撮像装置の距離算出プログラムに関する。
Embodiments described herein relate generally to an imaging apparatus that acquires a distance image to a subject, a distance calculation method for the imaging apparatus, and a distance calculation program for the imaging apparatus.

一般に、被写体までの距離を測定できるTOF(Time Of Flight)カメラなどの3次元
カメラが知られている。TOFカメラは、照射光が被写体に当たって撮像部に戻ってくる
までの時間により、距離を測定する技術である。しかし、被写体が細い円柱など平面が少
ない形状の場合、照射光が被写体により拡散し、反射光の受光量が減少してしまうため、
十分な精度で距離の測定ができないという問題がある。また、被写体が局所的に鏡面反射
するような場合は、鏡面反射した箇所の反射光が撮像部に戻らない場合や、光源からの照
射光のほとんどが撮像部に戻り、撮像部が飽和して距離を算出できない、という問題があ
る。このような例はビニールのような凹凸のある被写体や、アルミ箔で被写体を覆ったよ
うなケースで発生する。
In general, a three-dimensional camera such as a TOF (Time Of Flight) camera capable of measuring a distance to a subject is known. The TOF camera is a technique for measuring a distance based on a time until irradiation light hits a subject and returns to an imaging unit. However, if the subject has a shape with few planes, such as a thin cylinder, the irradiation light is diffused by the subject and the amount of reflected light received decreases.
There is a problem that the distance cannot be measured with sufficient accuracy. In addition, when the subject is specularly reflected locally, the reflected light from the specularly reflected part does not return to the imaging unit, or most of the irradiation light from the light source returns to the imaging unit and the imaging unit is saturated. There is a problem that the distance cannot be calculated. Such an example occurs in a case where the subject is uneven, such as vinyl, or the subject is covered with aluminum foil.

特開2010−190675号公報JP 2010-190675 A

本発明が解決しようとする課題は、被写体までの距離を高精度に測定できる撮像装置、
撮像装置の距離算出方法、及び撮像装置の距離算出プログラムを提供することである。
The problem to be solved by the present invention is an imaging device capable of measuring the distance to a subject with high accuracy,
An object is to provide a distance calculation method for an imaging apparatus and a distance calculation program for the imaging apparatus.

実施形態によれば、撮像装置は、3つ以上の光源と、撮像部と、参照距離算出部と、記
憶部と、距離選択部とを備える。3つ以上の光源は、光を被写体に照射する。撮像部は、
光源が照射した光の被写体からの反射光を受光する。参照距離算出部は、3つ以上の光源
のうち、少なくとも1つの光源を除く光源が光を照射する点灯光源の組合せにより、光を
照射してから撮像部が被写体からの反射光を受光するまでの時間に基づいて、それぞれの
点灯光源の組合せにおいて画素ごとに前記被写体までの参照距離を算出して、参照距離画
像を生成する。記憶部は参照距離算出部が生成した参照距離画像における画素ごとの参照
距離と、参照距離を算出するのに用いた被写体からの反射光の受光量とを対応付けて記憶
する。距離選択部は、記憶部に記憶された参照距離のうち有効な距離が算出された参照距
離と受光量とに基づいて、所定の参照距離を画素ごとに当該画素における被写体までの距
離として選択する。
According to the embodiment, the imaging apparatus includes three or more light sources, an imaging unit, a reference distance calculation unit, a storage unit, and a distance selection unit. Three or more light sources irradiate the subject with light. The imaging unit
The reflected light from the subject of the light irradiated by the light source is received. The reference distance calculation unit is a combination of lighting light sources in which light sources other than at least one light source among three or more light sources emit light, and from when the imaging unit receives reflected light from the subject. On the basis of this time, a reference distance to the subject is calculated for each pixel in each combination of lighting light sources to generate a reference distance image. The storage unit stores the reference distance for each pixel in the reference distance image generated by the reference distance calculation unit and the received light amount of the reflected light from the subject used to calculate the reference distance. The distance selection unit selects a predetermined reference distance for each pixel as a distance to the subject on the basis of the reference distance for which an effective distance is calculated from the reference distances stored in the storage unit and the received light amount. .

実施形態に係る撮像装置の外観の一例を示す正面図および及び光源の点灯の組合せを示す図。The figure which shows the front view which shows an example of the external appearance of the imaging device which concerns on embodiment, and the combination of lighting of a light source. 実施形態に係る撮像装置が備える制御部の機能構成の一例を示すブロック図。FIG. 3 is a block diagram illustrating an example of a functional configuration of a control unit included in the imaging apparatus according to the embodiment. 実施形態に係る撮像装置を用いた撮像状況の一例を示す斜視図。The perspective view which shows an example of the imaging condition using the imaging device which concerns on embodiment. 実施形態に係る撮像装置が取得する参照距離画像の画素の一例を示す図。FIG. 4 is a diagram illustrating an example of pixels of a reference distance image acquired by the imaging apparatus according to the embodiment. 実施形態に係る撮像装置が備える記憶部が記憶するデータの一例を示す図。4 is a diagram illustrating an example of data stored in a storage unit included in the imaging apparatus according to the embodiment. FIG. 実施形態に係る撮像装置が備える制御部が、被写体までの距離を選択する流れの一例を示すフローチャートThe flowchart which shows an example of the flow from which the control part with which the imaging device which concerns on embodiment is provided selects the distance to a to-be-photographed object.

以下、実施形態に係る撮像装置1を、図面を用いて説明する。
図1(A)は、実施形態に係る撮像装置1としてのTOFカメラの外観の一例を示す正面
図である。撮像装置1は、被写体に光を照射する複数の光源2a乃至2f、撮像部3を備
える。なお、光源については、図1に示した6個の光源2a乃至2fを個々に区別する必
要がないときは、光源2と略記する。
Hereinafter, imaging device 1 concerning an embodiment is explained using a drawing.
FIG. 1A is a front view illustrating an example of the appearance of a TOF camera as the imaging apparatus 1 according to the embodiment. The imaging device 1 includes a plurality of light sources 2 a to 2 f that irradiate light on a subject and an imaging unit 3. The light sources are abbreviated as light sources 2 when it is not necessary to individually distinguish the six light sources 2a to 2f shown in FIG.

撮像装置1は、光源2からの照射光が被写体に当たって、撮像部3で受光するまでの時
間に基づいて、被写体までの距離を画素ごとに測定することが可能に構成されている。ま
た、撮像装置1は、測定した距離の情報を画素ごとに表わした距離画像を生成することが
可能である。
The imaging apparatus 1 is configured to be able to measure the distance to the subject for each pixel based on the time from when the light emitted from the light source 2 hits the subject until it is received by the imaging unit 3. In addition, the imaging device 1 can generate a distance image that represents the measured distance information for each pixel.

光源2は、撮像部3の周囲に3つ以上設置され、図1(A)では6つの光源2から光を
被写体に向けて照射する。光源2が照射する光は、赤外線でも良いし、可視光でも良く、
撮像部3が受光することが可能な波長帯の光であれば良い。また、光源2は、被写体に照
射する光量、もしくは照射強度を高めるために、それぞれの光源に複数のLED光源を有
しても良い。
Three or more light sources 2 are installed around the imaging unit 3, and in FIG. 1A, light is emitted from six light sources 2 toward a subject. The light emitted from the light source 2 may be infrared or visible light.
Any light in a wavelength band that can be received by the imaging unit 3 may be used. Further, the light source 2 may include a plurality of LED light sources for each light source in order to increase the amount of light applied to the subject or the irradiation intensity.

光源2は6つの光源2のうち、少なくとも1つの光源2を除く光源2が光を照射する点
灯光源の組合せにより光源2を点灯させる。図1(B)は光源2の点灯の組合せを示す図
であり、光源2a乃至2fのうち少なくとも1つを除く光源2を順次点灯させる組合せを
示している。
The light source 2 lights up the light source 2 by the combination of the lighting light source which the light source 2 except the at least 1 light source 2 irradiates light among the six light sources 2. FIG. 1B is a diagram showing a combination of lighting of the light sources 2, and shows a combination of sequentially lighting the light sources 2 excluding at least one of the light sources 2a to 2f.

なお、光源2の設置位置、個数は図1に限定されるものではない。例えば、図1におい
て光源2は、撮像部3を中心に対称に設置されているが、非対称に設置されても良い。ま
た、光量を増加したいときはそれぞれの光源2a乃至2fに複数のLEDを配置してもよ
い。
In addition, the installation position and the number of the light sources 2 are not limited to those in FIG. For example, in FIG. 1, the light source 2 is installed symmetrically around the imaging unit 3, but may be installed asymmetrically. When it is desired to increase the amount of light, a plurality of LEDs may be arranged in each of the light sources 2a to 2f.

撮像部3は、光源2が照射した光の被写体からの反射光を受光し、2次元画像を撮像す
る。例えば、撮像部3は、被写体からの反射光を、図示しない開口部、レンズ、受光部を
介して受光する。
The imaging unit 3 receives reflected light from the subject of light emitted from the light source 2 and captures a two-dimensional image. For example, the imaging unit 3 receives reflected light from the subject via an opening, a lens, and a light receiving unit (not shown).

開口部は、レンズに入射する光量を調節するための絞りである。また、レンズは、被写
体からの光を受光部に集光する。なお、レンズは、1枚に限らず、例えば、複数枚を組み
合わせることで、フォーカスレンズや、ズームレンズを構成しても良い。受光部は、イメ
ージセンサなどの受光素子である。
The opening is a stop for adjusting the amount of light incident on the lens. The lens condenses light from the subject on the light receiving unit. The number of lenses is not limited to one, and a focus lens or a zoom lens may be configured by combining a plurality of lenses, for example. The light receiving unit is a light receiving element such as an image sensor.

次に、図2を用いて、撮像装置1が備える制御部について説明する。図2は実施形態に
係る撮像装置1が備える機能構成の一例を示すブロック図である。
Next, the control part with which the imaging device 1 is provided is demonstrated using FIG. FIG. 2 is a block diagram illustrating an example of a functional configuration included in the imaging device 1 according to the embodiment.

制御部4は、図示しないCPUを備え、撮像装置1が有する各構成部の動作を統括的に
制御する。また、制御部4は、参照距離算出部5、2次元画像生成部6、発光制御部7、
記憶部8、距離選択部9、距離画像出力部10を備える。
The control unit 4 includes a CPU (not shown) and comprehensively controls the operation of each component included in the imaging device 1. The control unit 4 includes a reference distance calculation unit 5, a two-dimensional image generation unit 6, a light emission control unit 7,
A storage unit 8, a distance selection unit 9, and a distance image output unit 10 are provided.

参照距離算出部5は、撮像部3が受光した被写体からの反射光に基づいて、被写体まで
の距離である参照距離を算出する処理を行う。つまり、参照距離算出部5は、3つ以上の
光源2のうち、少なくとも1つの光源2を除く光源2が光を照射する点灯光源の組合せに
より、光を照射してから撮像部3が被写体からの反射光を受光するまでの時間に基づいて
、それぞれの点灯光源の組合せにおいて画素ごとに被写体までの参照距離を算出し、参照
距離画像を生成する。
The reference distance calculation unit 5 performs a process of calculating a reference distance that is a distance to the subject based on the reflected light from the subject received by the imaging unit 3. That is, the reference distance calculation unit 5 uses a combination of lighting light sources that emit light from at least one of the three or more light sources 2 except for the light source 2, and then the imaging unit 3 starts from the subject. Based on the time until the reflected light is received, the reference distance to the subject is calculated for each pixel in each combination of lighting light sources, and a reference distance image is generated.

また、例えば被写体によって鏡面反射した光が全て撮像部3に到達した画素については
、撮像部3の受光量が飽和して有効な参照距離が得られないことがある。また、逆に鏡面
反射した光が撮像部3以外の方向に反射して撮像部3の受光量が不足して有効な参照距離
が得られない画素も存在する場合がある。つまり、参照距離算出部5は、有効な距離が算
出できず、距離を0とする場合がある。
Further, for example, with respect to a pixel in which all of the light specularly reflected by the subject reaches the imaging unit 3, the received light amount of the imaging unit 3 is saturated and an effective reference distance may not be obtained. On the other hand, there may be a pixel in which the specularly reflected light is reflected in a direction other than the imaging unit 3 and the amount of light received by the imaging unit 3 is insufficient and an effective reference distance cannot be obtained. That is, the reference distance calculation unit 5 may not be able to calculate an effective distance and may set the distance to zero.

2次元画像生成部6は、撮像部3が受光した光に基づいて、2次元画像を生成する。な
お、参照距離算出部5が算出する被写体までの参照距離、参照距離画像は、2次元画像生
成部6が生成する2次元画像の画素毎に算出される。
The two-dimensional image generation unit 6 generates a two-dimensional image based on the light received by the imaging unit 3. The reference distance to the subject and the reference distance image calculated by the reference distance calculation unit 5 are calculated for each pixel of the two-dimensional image generated by the two-dimensional image generation unit 6.

2次元画像は、光源2が照射した光の被写体からの反射光に基づいて2次元画像生成部
6によって生成されるため、グレースケール画像や、赤外画像など、光源に依存した種類
の画像である。
Since the two-dimensional image is generated by the two-dimensional image generation unit 6 based on the reflected light from the subject of the light emitted from the light source 2, it is a kind of image depending on the light source, such as a gray scale image or an infrared image. is there.

発光制御部7は、6つの光源2に対し、図1(B)に示すようにそれぞれ独立に点灯と
消灯を制御する。被写体を撮像する際には、6つの光源2のうち、少なくとも1つの光源
2を除く光源2が光を照射する点灯光源の組合せに従って、光源2を点灯させる。
The light emission control unit 7 controls lighting and extinction of the six light sources 2 independently as shown in FIG. When the subject is imaged, the light source 2 is turned on according to the combination of the lighting light sources that the light sources 2 excluding at least one of the six light sources 2 emit light.

また、制御部4は、被写体までの参照距離を測定する際には、全ての点灯光源の組合せ
に対して撮像を行うように各部を制御しても良いし、特定の点灯光源の組合せに対して撮
像を行うように各部を制御しても良い。
In addition, when measuring the reference distance to the subject, the control unit 4 may control each unit so as to perform imaging for all combinations of lighting sources, or for a specific combination of lighting sources. Then, each unit may be controlled so as to perform imaging.

記憶部8は、図示しないがROM(Read Only Memory)や、RAM(Random Access Me
mory)などで構成されるメモリである。ROMは、制御プログラム及び制御データなどが
予め記憶された不揮発性のメモリである。ROMに記憶される制御プログラム及び制御デ
ータは、制御部4の仕様に応じて予め組み込まれる。ROMは、たとえば、制御部4の回
路基板を制御するプログラムなどを格納する。
Although not shown, the storage unit 8 includes a ROM (Read Only Memory) and a RAM (Random Access Me).
memory). The ROM is a non-volatile memory in which a control program, control data, and the like are stored in advance. The control program and control data stored in the ROM are incorporated in advance according to the specifications of the control unit 4. The ROM stores, for example, a program for controlling the circuit board of the control unit 4.

RAMは、揮発性のメモリである。RAMは、制御部4の処理中のデータなどを一時的
に格納する。ROMは、制御部4からの命令に基づき種々のアプリケーションプログラム
を格納する。また、ROMは、アプリケーションプログラムの実行に必要なデータ及びア
プリケーションプログラムの実行結果などを格納してもよい。
The RAM is a volatile memory. The RAM temporarily stores data being processed by the control unit 4. The ROM stores various application programs based on instructions from the control unit 4. The ROM may store data necessary for executing the application program, an execution result of the application program, and the like.

さらに、記憶部8は、参照距離算出部5が生成した参照距離画像における画素ごとの参
照距離と、当該参照距離を算出するのに用いた被写体からの反射光の受光量とを対応付け
て記憶する。また、記憶部8は、2次元画像生成部6が生成する2次元画像を記憶しても
良い。さらに、記憶部8は、後述する距離画像出力部10が出力する距離画像を記憶する
Further, the storage unit 8 stores the reference distance for each pixel in the reference distance image generated by the reference distance calculation unit 5 and the received light amount of the reflected light from the subject used to calculate the reference distance. To do. The storage unit 8 may store a two-dimensional image generated by the two-dimensional image generation unit 6. Further, the storage unit 8 stores a distance image output from a distance image output unit 10 described later.

距離選択部9は、記憶部8に記憶された参照距離のうち有効な距離が算出された参照距
離と受光量とに基づいて、所定の参照距離を画素ごとに当該画素における被写体までの距
離として選択する。例えば、距離選択部9は、それぞれの点灯光源の組合せにおいて、各
画素における最も多くの受光量が記憶されている参照距離を当該画素における被写体まで
の距離として選択する。或いは、距離選択部9は、それぞれの点灯光源の組合せにおいて
、各画素における所定の範囲内で最も多くの受光量が記憶されている参照距離を当該画素
における被写体までの距離として選択する、としても良い。
The distance selection unit 9 sets a predetermined reference distance for each pixel as a distance to the subject based on the reference distance and the received light amount for which an effective distance among the reference distances stored in the storage unit 8 is calculated. select. For example, the distance selection unit 9 selects, as the distance to the subject in the pixel, the reference distance in which the largest amount of received light in each pixel is stored in each combination of lighting light sources. Alternatively, the distance selection unit 9 may select, as the distance to the subject in the pixel, the reference distance in which the most received light amount is stored in a predetermined range in each pixel in each combination of lighting light sources. good.

距離画像出力部10は、距離選択部9によって選択された各画素の距離を距離画像とし
て出力する。
The distance image output unit 10 outputs the distance of each pixel selected by the distance selection unit 9 as a distance image.

次に、図3及び図4を用いて参照距離算出部5が画素ごとに参照距離を算出する方法を
説明する。まず、図3は、実施形態に係る撮像装置1を用いた撮像状況の一例を示す図で
ある。図3には、撮像装置1の正面に直方体の物体12と、撮像装置1と物体12との間
に柵11がある状況を示す。なお、物体12は、撮像装置1から見ると物体12の一面の
みが見える角度で位置しているとする。
Next, a method in which the reference distance calculation unit 5 calculates the reference distance for each pixel will be described with reference to FIGS. 3 and 4. First, FIG. 3 is a diagram illustrating an example of an imaging situation using the imaging apparatus 1 according to the embodiment. FIG. 3 illustrates a situation in which a rectangular parallelepiped object 12 is present in front of the imaging apparatus 1 and a fence 11 is provided between the imaging apparatus 1 and the object 12. It is assumed that the object 12 is positioned at an angle at which only one surface of the object 12 can be seen when viewed from the imaging device 1.

図4は、実施形態に係る撮像装置1が取得する参照距離画像の画素の一例を示す図であ
る。また、図4に示す画素は、図3の撮像状況において、撮像した画素の一例である。な
お、図4の画素は、光源2b、2eを点灯させた点灯光源の組合せにおいて撮像されたも
のとする。また、説明を簡易にするために、図4に示す画素の行と列にはそれぞれアルフ
ァベットと数字を振っている。例えば、一番左上に位置する画素はA行1列と呼称する。
FIG. 4 is a diagram illustrating an example of pixels of the reference distance image acquired by the imaging device 1 according to the embodiment. 4 is an example of an imaged pixel in the imaging state of FIG. It is assumed that the pixels in FIG. 4 are imaged in a combination of lighting light sources in which the light sources 2b and 2e are turned on. In order to simplify the description, alphabets and numbers are assigned to the rows and columns of pixels shown in FIG. For example, the pixel located at the upper left is called A row and 1 column.

また、各画素に記載されている数値は、被写体までの距離を意味しており、数字が大き
いほど被写体までの距離が遠いこととしている。ただし、数値0の画素は距離を算出する
ことができなかったことを意味している。数値0の画素が意味する、距離を算出すること
ができないとは、例えば被写体までの距離が遠すぎる場合や、受光する光量が少なすぎる
場合や、受光する光量が多すぎるため撮像部3が飽和してしまうなどである。
The numerical value described in each pixel means the distance to the subject, and the larger the number, the farther the distance to the subject. However, a pixel with a numerical value of 0 means that the distance could not be calculated. The value 0 means that the distance cannot be calculated, for example, when the distance to the subject is too far, when the amount of received light is too small, or when the amount of received light is too large, the imaging unit 3 is saturated. And so on.

図4に示す画素には、5列と8列を除く、B行4列とB行9列とF行4列とF行9列の
画素を頂点とする四角形の範囲に数値6が示されている。これは、物体12の平面までの
距離が示されたもので、5列と8列は柵11によって物体12が遮られていることを示し
ている。TOFカメラは、一般的に、平面までの距離を測定するには有利であるが、エッ
ジである柵11までの距離については照射光が拡散してしまうため、測定するには不利で
あることを例示した極端な例である。
In the pixel shown in FIG. 4, a numerical value 6 is shown in a rectangular range having the pixels of B row 4 column, B row 9 column, F row 4 column and F row 9 column excluding 5 column and 8 column. ing. This indicates the distance to the plane of the object 12, and the fifth and eighth rows indicate that the object 12 is blocked by the fence 11. The TOF camera is generally advantageous for measuring the distance to the plane, but the irradiation light is diffused for the distance to the fence 11, which is an edge, so that it is disadvantageous for the measurement. It is an extreme example illustrated.

ここで、図4では、光源2b、2eを点灯させた点灯光源の組合せにより撮像したが、
光源2b、2eに加え、例えば、光源2a、2dを点灯させた場合、位置、角度が違う光
源2からの光の照射が与えられるため、柵11までの距離を算出できる場合がある。従っ
て、ある点灯光源の組合せでは、ある画素の被写体までの距離を算出できなかったとして
も、他の点灯光源の組合せを用いることで、その画素の被写体までの距離を算出でき、算
出結果を補完することが可能である。
Here, in FIG. 4, imaging is performed by a combination of lighting light sources in which the light sources 2 b and 2 e are turned on.
In addition to the light sources 2b and 2e, for example, when the light sources 2a and 2d are turned on, irradiation with light from the light source 2 with different positions and angles is given, so the distance to the fence 11 may be calculated. Therefore, even if it is not possible to calculate the distance to a subject of a pixel with a certain lighting source combination, the distance to the subject of that pixel can be calculated by using another lighting source combination, and the calculation result is complemented. Is possible.

図1では、6個の光源2を設置しているため、6つの光源2のうち、少なくとも1つの
光源2を除く光源2が光を照射する点灯光源の組合せは図1(B)に示すように63通り
存在する。この場合、63通り全てに対して距離を算出すると、組合せが多すぎるため、
かえって不便となることも考えられる。従って、参照距離を算出する点灯光源の組合せは
、事前に制限するよう設定しても良い。例えば、6つの光源2のうち、少なくとも1つの
光源2を除く光源2が点灯するのであれば、撮像部3との距離が短い光源2b、2eは必
ず点灯させるとしても良い。また、光源2の数は6つに限らず3つ以上あればよい。
In FIG. 1, since six light sources 2 are installed, combinations of lighting light sources that emit light from at least one of the six light sources 2 excluding at least one light source 2 are as shown in FIG. There are 63 ways. In this case, if the distance is calculated for all 63 ways, there are too many combinations.
On the contrary, it may be inconvenient. Therefore, the combination of the lighting light sources for calculating the reference distance may be set to be limited in advance. For example, the light sources 2b and 2e having a short distance from the imaging unit 3 may be necessarily turned on as long as the light sources 2 except for at least one light source 2 among the six light sources 2 are turned on. Further, the number of light sources 2 is not limited to six, but may be three or more.

次に、図5を用いて、実施形態に係る撮像装置1が備える記憶部8が、参照距離と、当
該参照距離を算出するのに用いた被写体からの反射光の受光量とを対応付けて記憶するデ
ータについて説明する。図5は、実施形態に係る撮像装置1が備える記憶部8が、記憶す
るデータの一例を示す図である。
Next, with reference to FIG. 5, the storage unit 8 included in the imaging device 1 according to the embodiment associates the reference distance with the received light amount of the reflected light from the subject used to calculate the reference distance. The data to be stored will be described. FIG. 5 is a diagram illustrating an example of data stored in the storage unit 8 included in the imaging apparatus 1 according to the embodiment.

図5では、図4の撮像装置1が取得した参照距離画像の画素の一例を示す図である。点
灯光源の組合せを10例、画素をA行11列目、及びB行の1列目から7列目までの、参
照距離と受光量とを対応付けたデータとして示している。なお、受光量は100%を最大
とした比率で示している。
FIG. 5 is a diagram illustrating an example of pixels of the reference distance image acquired by the imaging device 1 of FIG. 10 combinations of lighting light sources are shown as data in which reference distances and received light amounts are associated with pixels in the A row and the 11th column and the 1st to 7th columns of the B row. The amount of received light is shown as a ratio with 100% being the maximum.

図5に示すようにA行11列目は全て10%以下の受光量であるので有効な受光量でな
いとして参照距離は有効でない「0」となっている。また、B行の1列目から3列目も受
光量は10%以下であるので有効な受光量ではないので、参照距離は有効でない「0」と
なっている。次に、B行4列目は全てが有効な受光量である。この組合せの中で最大の受
光量を示しているのは3番目と4番目の組合せで、いずれも90%の受光量である。この
ため、最大の受光量と対応付けて記憶されている「6.0」の参照距離がB行4列目の距
離として選択されることになる。
同様にB行6列目についても、90%の受光量が最大であるので、この最大の受光量に対
応付けて記憶されている3番目乃至5番目の組合せである、参照距離「6.0」がB行6
列目の距離として選択される。B行7列目は4番目と5番目の組合せで90%の受光量が
最大の受光量であるのでこの受光量に対応付けて記憶されている参照距離「6.0」のB
行7列目の距離として選択される。
As shown in FIG. 5, the Ath row and the eleventh column all have a received light amount of 10% or less, so the reference distance is “0” which is not effective because it is not an effective received light amount. Also, the first to third columns of the B row are not effective since the amount of received light is 10% or less, so the reference distance is “0” which is not effective. Next, the B row and the fourth column are all effective received light amounts. Among these combinations, the third and fourth combinations show the maximum amount of received light, and both are 90% received. For this reason, the reference distance of “6.0” stored in association with the maximum received light amount is selected as the distance in the Bth row and the fourth column.
Similarly, since the 90% received light amount is the maximum for the Bth row and the 6th column, the reference distance “6.0, which is the third to fifth combinations stored in association with the maximum received light amount. Is B line 6
It is selected as the distance of the column. In the Bth row and the 7th column, 90% of the received light amount is the maximum received light amount in the fourth and fifth combination, and therefore the reference distance “6.0” stored in association with this received light amount is B.
It is selected as the distance in row 7 column.

なお、上記の実施形態では最大の受光量に対応付けて記憶された参照距離を選択するよ
うにしたが、受光量が大きすぎると飽和して正確な距離を得られないときは有効な受光量
を例えば15〜89%と設定したときは、上記の例では88%の受光量が所定の範囲内で
の最も多い受光量であるので、それに対応付けて記憶された参照距離「5.9」が当該画
素の距離として選択される。
次に、図6を用いて、実施形態に係る撮像装置1が備える制御部4が、被写体までの距離
を算出する方法を説明する。図6は、実施形態に係る撮像装置1が備える制御部4が、被
写体までの距離を算出する流れの一例を示すフローチャートである。
In the above embodiment, the reference distance stored in association with the maximum amount of received light is selected. However, if the amount of received light is too large, it is saturated and an accurate distance cannot be obtained. Is set to 15 to 89%, for example, in the above example, the received light amount of 88% is the largest received light amount within the predetermined range, so the reference distance “5.9” stored in association with it is stored. Is selected as the distance of the pixel.
Next, a method in which the control unit 4 included in the imaging apparatus 1 according to the embodiment calculates the distance to the subject will be described with reference to FIG. FIG. 6 is a flowchart illustrating an example of a flow in which the control unit 4 included in the imaging device 1 according to the embodiment calculates the distance to the subject.

まず、制御部4は、設定された全ての点灯光源の組合せにおいて参照距離を算出する(
ステップS00)。次に、制御部4は、任意の画素を一つ選択し(ステップS01)、全
ての参照距離の選択した画素に対応する画素の参照距離のうち、数値が0でない有効な参
照距離が存在するか否かを判定する(ステップS03)。制御部4は、有効な参照距離が
存在する場合(ステップS03、Yes)、選択した画素に対応し、距離が算出できなか
った数値0を除く有効な参照距離のうち、所定の条件を満たす参照距離を被写体までの距
離として選択する(ステップS05)。なお、所定の条件とは、例えば最も多くの受光量が
記憶されている参照距離、或いは各画素における所定の範囲内で最も多くの受光量が記憶
されている参照距離などである。所定の範囲とは、例えば撮像部3が飽和してしまう受光
量の5割から8割の範囲などである。
First, the control unit 4 calculates a reference distance for all the set combinations of lighting sources (
Step S00). Next, the control unit 4 selects one arbitrary pixel (step S01), and among the reference distances of the pixels corresponding to the selected pixels of all the reference distances, there is an effective reference distance whose numerical value is not 0. Is determined (step S03). When an effective reference distance exists (step S03, Yes), the control unit 4 corresponds to the selected pixel, and a reference satisfying a predetermined condition among the effective reference distances excluding the numerical value 0 for which the distance cannot be calculated. The distance is selected as the distance to the subject (step S05). The predetermined condition is, for example, a reference distance in which the largest amount of received light is stored, or a reference distance in which the largest amount of received light is stored within a predetermined range in each pixel. The predetermined range is, for example, a range of 50% to 80% of the received light amount that the imaging unit 3 is saturated.

また、ステップS03において、有効な参照距離が存在しない場合(ステップS03、
No)、制御部4は、数値0を被写体までの距離として選択する(ステップS07)。
In step S03, when there is no effective reference distance (step S03,
No), the control unit 4 selects the numerical value 0 as the distance to the subject (step S07).

次に、制御部4は、全ての画素に対して処理を行ったか判定し(ステップS09)、全
ての画素に対して処理を行ったと判定した場合(ステップS09、Yes)、選択された
各画素の距離を距離画像として出力し(ステップS10)、処理を終了する。
Next, the control unit 4 determines whether or not processing has been performed on all pixels (step S09). If it is determined that processing has been performed on all pixels (step S09, Yes), each selected pixel Is output as a distance image (step S10), and the process ends.

また、全ての画素に対して処理を行っていないと判定した場合(ステップS09、No
)、処理をステップS01に戻して次の画素に対する選択処理を実行する。
Further, when it is determined that processing has not been performed for all the pixels (step S09, No)
), The process is returned to step S01, and the selection process for the next pixel is executed.

以上の流れで動作を実行することにより、実施形態に係る撮像装置1は、光源2から照
射される光が被写体によって拡散されてしまうことが少ない、かつ、受光量が多すぎて撮
像部3が飽和しない最適な点灯光源の組合せにより得られる被写体までの距離を画素ごと
に選択することができる。その結果、被写体までの距離をより高精度に測定することが可
能である。
By performing the operation according to the above flow, the imaging apparatus 1 according to the embodiment causes the light emitted from the light source 2 to be hardly diffused by the subject, and the received light amount is too large. The distance to the subject obtained by an optimal combination of lighting sources that do not saturate can be selected for each pixel. As a result, the distance to the subject can be measured with higher accuracy.

なお、上記の実施形態では6つの光源2を例に説明したが、光源2は3つ以上であれば
良く、その数は制限されるものではない。
In the above embodiment, six light sources 2 have been described as an example. However, the number of light sources 2 may be three or more, and the number is not limited.

また、上記した実施形態の撮像装置1における処理はいくつかのソフトウェアによって
実行することが可能である。このため、上記処理の手順を実行するいくつかのプログラム
を格納したコンピュータ読み取り可能な記憶媒体を通じてこれらプログラムを撮像装置1
(TOFカメラ)へインストールして実行するだけで、上記処理を容易に実現することが
できる。例えば、撮像装置1は、上記プログラムをネットワーク経由でダウンロードし、
ダウンロードしたプログラムを記憶し、プログラムのインストールを完了することができ
る。或いは、撮像装置1は、上記プログラムを情報記憶媒体から読み取り、読み取ったプ
ログラムを記憶し、プログラムのインストールを完了することができる。
Moreover, the process in the imaging device 1 of the above-described embodiment can be executed by some software. For this reason, these programs are stored in the imaging apparatus 1 through a computer-readable storage medium storing several programs for executing the above-described processing procedures.
The above-described processing can be easily realized simply by installing it on the (TOF camera) and executing it. For example, the imaging device 1 downloads the above program via a network,
Stores downloaded programs and completes program installation. Alternatively, the imaging apparatus 1 can read the program from the information storage medium, store the read program, and complete the installation of the program.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したも
のであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その
他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の
省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や
要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる
Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

1 撮像装置
2、2a、2b、2d、2e、2f 光源
3 撮像部
4 制御部
5 参照距離算出部
6 次元画像生成部
7 発光制御部
8 記憶部
9 距離選択部
10 距離画像出力部
11 柵
12 物体
DESCRIPTION OF SYMBOLS 1 Imaging device 2, 2a, 2b, 2d, 2e, 2f Light source 3 Imaging part 4 Control part 5 Reference distance calculation part 6 Dimensional image generation part 7 Light emission control part 8 Storage part 9 Distance selection part 10 Distance image output part 11 Fence 12 object

Claims (6)

光を被写体に照射する3つ以上の光源と、
前記光源が照射した光の前記被写体からの反射光を受光する撮像部と、
前記3つ以上の光源のうち、少なくとも1つの光源を除く光源が光を照射する点灯光源
の組合せにより、光を照射してから前記撮像部が前記被写体からの反射光を受光するまで
の時間に基づいて、それぞれの前記点灯光源の組合せにおいて画素ごとに前記被写体まで
の参照距離を算出して参照距離画像を生成する参照距離算出部と、
前記参照距離算出部が生成した前記参照距離画像における画素ごとの前記参照距離と、
前記参照距離を算出するのに用いた前記被写体からの反射光の受光量とを対応付けて記憶
する記憶部と、
前記記憶部に記憶された前記参照距離のうち有効な距離が算出された前記参照距離と前
記受光量とに基づいて、所定の参照距離を画素ごとに当該画素における前記被写体までの
距離として選択する距離選択部と、
を備える撮像装置。
Three or more light sources that irradiate the subject with light;
An imaging unit that receives reflected light from the subject of light emitted by the light source;
Of the three or more light sources, a combination of a lighting light source that emits light from at least one light source, and a time from when the imaging unit receives reflected light from the subject after irradiation with light. A reference distance calculating unit that calculates a reference distance to the subject for each pixel in each combination of the lighting light sources and generates a reference distance image;
The reference distance for each pixel in the reference distance image generated by the reference distance calculator;
A storage unit for storing the received light amount of reflected light from the subject used to calculate the reference distance in association with each other;
A predetermined reference distance is selected for each pixel as a distance to the subject on the basis of the reference distance for which an effective distance is calculated among the reference distances stored in the storage unit and the received light amount. A distance selector;
An imaging apparatus comprising:
前記距離選択部は、それぞれの前記点灯光源の組合せにおいて、各画素における最も多
くの受光量が記憶されている前記参照距離を当該画素における前記被写体までの距離とし
て選択する、
請求項1に記載の撮像装置。
The distance selection unit selects, as the distance to the subject in the pixel, the reference distance in which the most received light amount in each pixel is stored in each combination of the lighting light sources.
The imaging device according to claim 1.
前記距離選択部は、それぞれの前記点灯光源の組合せにおいて、各画素における所定の
範囲内で最も多くの受光量が記憶されている前記参照距離を当該画素における前記被写体
までの距離として選択する、
請求項1に記載の撮像装置。
The distance selection unit selects, as the distance to the subject in the pixel, the reference distance in which the most received light amount is stored in a predetermined range in each pixel in each combination of the lighting light sources.
The imaging device according to claim 1.
前記距離選択部によって選択された各画素の距離を距離画像として出力する距離画像出
力部、
をさらに備える請求項1乃至請求項3のいずれか1項に記載の撮像装置。
A distance image output unit that outputs the distance of each pixel selected by the distance selection unit as a distance image;
The imaging device according to any one of claims 1 to 3, further comprising:
光を被写体に照射する3つ以上の光源が照射した光の前記被写体からの反射光を受光し

前記3つ以上の光源のうち、少なくとも1つの光源を除く光源が光を照射する点灯光源
の組合せにより、光を照射してから前記被写体からの反射光を受光するまでの時間に基づ
いて、それぞれの前記点灯光源の組合せにおいて画素ごとに前記被写体までの参照距離を
算出して参照距離画像を生成し、
生成した前記参照距離画像における画素ごとの前記参照距離と、前記参照距離を算出す
るのに用いた前記被写体からの反射光の受光量とを対応付けて記憶し、
記憶された前記参照距離のうち有効な距離が算出された前記参照距離と前記受光量とに
基づいて、所定の参照距離を画素ごとに当該画素における前記被写体までの距離として選
択する、
撮像装置の距離算出方法。
Receiving light reflected from the subject by three or more light sources that irradiate the subject with light;
Of the three or more light sources, a combination of lighting light sources that emit light from at least one light source, based on the time from irradiating light to receiving reflected light from the subject, A reference distance image is calculated by calculating a reference distance to the subject for each pixel in the combination of the lighting light source,
Storing the reference distance for each pixel in the generated reference distance image in association with the amount of reflected light received from the subject used to calculate the reference distance;
A predetermined reference distance is selected as a distance to the subject in the pixel for each pixel based on the reference distance for which an effective distance is calculated from the stored reference distances and the received light amount.
The distance calculation method of an imaging device.
3つ以上の光源を有するTOFカメラを制御するプログラムであって、
前記TOFカメラに、
光を被写体に照射する3つ以上の光源が照射した光の前記被写体からの反射光を受光す
る手順と、
前記3つ以上の光源のうち、少なくとも1つの光源を除く光源が光を照射する点灯光源
の組合せにより、光を照射してから前記被写体からの反射光を受光するまでの時間に基づ
いて、それぞれの前記点灯光源の組合せにおいて画素ごとに前記被写体までの参照距離を
算出して参照距離画像を生成する手順と、
生成した前記参照距離画像における画素ごとの前記参照距離と、前記参照距離を算出す
るのに用いた前記被写体からの反射光の受光量とを対応付けて記憶する手順と、
記憶された前記参照距離のうち有効な距離が算出された前記参照距離と前記受光量とに
基づいて、所定の参照距離を画素ごとに当該画素における前記被写体までの距離として選
択する手順と、
選択された各画素の距離を距離画像として出力する手順と、
を実行させる撮像装置の距離算出プログラム。
A program for controlling a TOF camera having three or more light sources,
To the TOF camera,
Receiving light reflected from the subject by three or more light sources that irradiate the subject with light;
Of the three or more light sources, a combination of lighting light sources that emit light from at least one light source, based on the time from receiving light to receiving reflected light from the subject, A procedure for calculating a reference distance to the subject for each pixel in the combination of the lighting light source and generating a reference distance image;
A procedure for storing the reference distance for each pixel in the generated reference distance image and the received light amount of the reflected light from the subject used to calculate the reference distance in association with each other;
A procedure for selecting a predetermined reference distance as a distance to the subject in the pixel for each pixel based on the reference distance for which an effective distance is calculated from the stored reference distances and the received light amount;
A procedure for outputting the distance of each selected pixel as a distance image;
The distance calculation program of the imaging device that executes
JP2018063399A 2018-03-29 2018-03-29 Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device Pending JP2019174308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018063399A JP2019174308A (en) 2018-03-29 2018-03-29 Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018063399A JP2019174308A (en) 2018-03-29 2018-03-29 Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device

Publications (1)

Publication Number Publication Date
JP2019174308A true JP2019174308A (en) 2019-10-10

Family

ID=68168846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018063399A Pending JP2019174308A (en) 2018-03-29 2018-03-29 Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device

Country Status (1)

Country Link
JP (1) JP2019174308A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021091105A1 (en) * 2019-11-06 2021-05-14 Samsung Electronics Co., Ltd. Electronic apparatus and control method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021091105A1 (en) * 2019-11-06 2021-05-14 Samsung Electronics Co., Ltd. Electronic apparatus and control method thereof

Similar Documents

Publication Publication Date Title
JP6597150B2 (en) Distance measuring device, distance measuring method, distance measuring program, and table creation method
US10041787B2 (en) Object detection device
US11561290B2 (en) Distance image generating device and distance image generating method
JP6484071B2 (en) Object detection device
US10638038B2 (en) System and method for enhancing the intrinsic spatial resolution of optical sensors
CA2957514C (en) Structured light for 3d sensing
US10094656B2 (en) Chromatic confocal sensor and measurement method
JP6073501B2 (en) Method and apparatus for generating a variable illumination pattern infrared illumination beam
EP2657782A3 (en) Image forming apparatus that controls correction of image forming positions and method of controlling the same
US11385184B2 (en) System and method for optical inspection of an object
JP2017003469A (en) Three-dimensional measurement device, three-dimensional measurement device control method and program
JPWO2018193609A1 (en) Distance measuring device and moving object
JP2021500742A5 (en)
JP2019174308A (en) Imaging device, distance calculation method for imaging device, and distance calculation program for imaging device
JP6601264B2 (en) Lighting condition setting device, lighting condition setting method, and lighting condition setting computer program
JP7042582B2 (en) Image pickup device and distance calculation method for image pickup device
US20200258246A1 (en) Inspection Device
US20230216273A1 (en) Diffuse illumination and multimode illumination devices
WO2022254854A1 (en) Three-dimensional measurement device
JP2011133360A (en) Distance measuring device, distance measurement method, and program
TWI719383B (en) Multi-image projector and electronic device having multi-image projector
JP2019164172A (en) Distance measuring apparatus, distance measuring method, distance measuring program, and table creation method
JP2018009977A (en) Pattern irradiation device, imaging system, and handling system
CN111512127A (en) Apparatus and method for determining spectral information
JP2020060377A (en) Multi-image projector and electronic device having multi-image projector

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20180831

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20190125