Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7633143B2 - Stereo camera, stereo camera system, and arrangement method - Google Patents
[go: Go Back, main page]

JP7633143B2 - Stereo camera, stereo camera system, and arrangement method - Google Patents

Stereo camera, stereo camera system, and arrangement method Download PDF

Info

Publication number
JP7633143B2
JP7633143B2 JP2021197018A JP2021197018A JP7633143B2 JP 7633143 B2 JP7633143 B2 JP 7633143B2 JP 2021197018 A JP2021197018 A JP 2021197018A JP 2021197018 A JP2021197018 A JP 2021197018A JP 7633143 B2 JP7633143 B2 JP 7633143B2
Authority
JP
Japan
Prior art keywords
image
camera
rotation
stereo camera
correction
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.)
Active
Application number
JP2021197018A
Other languages
Japanese (ja)
Other versions
JP2023082965A (en
JP2023082965A5 (en
Inventor
制時 今川
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2021197018A priority Critical patent/JP7633143B2/en
Priority to PCT/JP2022/038983 priority patent/WO2023100516A1/en
Publication of JP2023082965A publication Critical patent/JP2023082965A/en
Publication of JP2023082965A5 publication Critical patent/JP2023082965A5/ja
Application granted granted Critical
Publication of JP7633143B2 publication Critical patent/JP7633143B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders
    • G01C3/02Details
    • G01C3/06Use of electric means to obtain final indication
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B35/00Stereoscopic photography
    • G03B35/08Stereoscopic photography by simultaneous recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Human Computer Interaction (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Measurement Of Optical Distance (AREA)
  • Stereoscopic And Panoramic Photography (AREA)
  • Studio Devices (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Description

本発明は、概して、物体の検知、測距および/または識別を行うためのステレオカメラに関する。 The present invention generally relates to a stereo camera for detecting, ranging and/or identifying objects.

近年、ズーム、パン、チルト等のカメラ設定を制御可能な機構を有するステレオカメラにおいて、少なくとも2つのカメラを有し、カメラの操作指示によりカメラのレンズ位置が変更された際に、カメラのカメラパラメータを推定する技術が開示されている(特許文献1参照)。 In recent years, a technology has been disclosed for a stereo camera having a mechanism capable of controlling camera settings such as zoom, pan, and tilt, which has at least two cameras and estimates the camera parameters when the camera lens position is changed by an instruction to operate the camera (see Patent Document 1).

また、撮像カメラを少なくとも一方向に回転させる回転機構を備えた画像取り込み装置であって、画像取り込み装置から出力される画像データはfθ特性を有し、回転機構の回転中心は、光学系の略入射瞳中心にあることを特徴とする画像取り込み装置が開示されている(特許文献2参照)。 Also disclosed is an image capture device equipped with a rotation mechanism that rotates an imaging camera in at least one direction, in which image data output from the image capture device has fθ characteristics, and the center of rotation of the rotation mechanism is approximately at the center of the entrance pupil of the optical system (see Patent Document 2).

特開2017-135495号公報JP 2017-135495 A 特開2004-289367号公報JP 2004-289367 A

カメラを用いた物体検知システムは、検知範囲の拡大要求に伴い、遠距離化、広角化が必要になっている。視認センサとして重要な役割を担うカメラでは、レンズの焦点距離を長くすることで遠距離化を実現できるが、撮像素子サイズはこれに比例するほどは大きくできないので、結果、画角は低下し、狭角化してしまう。逆に、広画角化するには、焦点距離を短くする必要があるため、結果、解像度が落ち、遠距離対応が困難となる。 Object detection systems using cameras need to be able to detect objects at longer distances and with wider angles in response to demands for wider detection ranges. Cameras play an important role as visual recognition sensors, and so longer distances can be achieved by lengthening the focal length of the lens, but the image sensor size cannot be increased proportionally, resulting in a smaller and narrower angle of view. Conversely, to widen the angle of view, the focal length must be shortened, resulting in a loss of resolution and making it difficult to detect objects at longer distances.

これに対応する方法として、魚眼レンズのような歪を有するレンズにより光軸付近では高解像度を、周辺では圧縮により広角化を実現する方法がある。しかしながら、魚眼レンズで用いられる射影方式、等距離射影(f・θ)、等立体角射影(2f・sin(θ/2))および正射影(f・sinθ)は、ある程度の画角がないと十分な効果が得られない。 One way to deal with this is to use a lens with distortion, such as a fisheye lens, to achieve high resolution near the optical axis and a wide angle by compressing the periphery. However, the projection methods used in fisheye lenses, equidistant projection (f θ), equisolid angle projection (2f sin(θ/2)), and orthogonal projection (f sinθ), do not provide sufficient results unless there is a certain angle of view.

一方、特許文献1および特許文献2のように、カメラの向きを機械的に変えるパン、チルト動作は、カメラの光学性能で遠距離性能を確保し、パンチルト動作によって広角化を実現する合理的な方法である。しかしながら、特許文献1および特許文献2には、全画角を同時に検知する必要がある場合については言及がなく、特許文献1および特許文献2に記載の技術では、遠距離化および広角化を実現することが困難である。 On the other hand, the pan and tilt operations that mechanically change the orientation of the camera, as described in Patent Documents 1 and 2, are a rational method of ensuring long-distance performance with the optical performance of the camera, and realizing a wide angle with the pan and tilt operations. However, Patent Documents 1 and 2 make no mention of cases where the entire angle of view needs to be detected simultaneously, and the technologies described in Patent Documents 1 and 2 make it difficult to realize long-distance and wide-angle views.

本発明は、以上の点を考慮してなされたもので、遠距離化および広角化を実現し得るステレオカメラ等を提案しようとするものである。 The present invention was made in consideration of the above points, and aims to propose a stereo camera etc. that can achieve long distance and wide angle.

かかる課題を解決するため本発明においては、第1のカメラと、前記第1のカメラを回転させる第1の回転機構と、第2のカメラと、前記第2のカメラを回転させる第2の回転機構と、を含んで構成されるステレオカメラであって、前記第1の回転機構の第1の回転軸と前記第2の回転機構の第2の回転軸との各々は、前記第1のカメラの第1の光軸と前記第2のカメラの第2の光軸との双方を含む平面に直行し、前記第1の回転軸は、前記第1の光軸と交差し、前記第2の回転軸は、前記第2の光軸と交差し、前記第1の回転軸および前記第1の光軸の交点から前記第1のカメラの第1の入射瞳位置までの距離と、前記第2の回転軸および前記第2の光軸の交点から前記第2のカメラの第2の入射瞳位置までの距離とが等しくなるようにした。 In order to solve this problem, the present invention provides a stereo camera including a first camera, a first rotation mechanism for rotating the first camera, a second camera, and a second rotation mechanism for rotating the second camera, in which a first rotation axis of the first rotation mechanism and a second rotation axis of the second rotation mechanism are each perpendicular to a plane including both a first optical axis of the first camera and a second optical axis of the second camera, the first rotation axis intersects with the first optical axis, and the second rotation axis intersects with the second optical axis, such that the distance from the intersection of the first rotation axis and the first optical axis to the first entrance pupil position of the first camera is equal to the distance from the intersection of the second rotation axis and the second optical axis to the second entrance pupil position of the second camera.

上記構成では、回転機構の回転軸から各カメラの入射瞳位置までの距離が一致するので、例えば、回転角情報を用いて画像の座標変換を行うことで、検知物の測距精度を確保しつつ、検知範囲の遠距離化および広角化を実現することができる。 In the above configuration, the distance from the rotation axis of the rotation mechanism to the entrance pupil position of each camera is the same, so for example, by performing coordinate transformation of the image using rotation angle information, it is possible to achieve a longer distance and wider angle detection range while maintaining the distance measurement accuracy of the detected object.

本発明によれば、遠距離化および広角化に対応するステレオカメラを実現することができる。上記以外の課題、構成、および効果は、以下の実施の形態の説明により明らかにされる。 The present invention makes it possible to realize a stereo camera that can handle longer distances and wider angles. Other issues, configurations, and advantages will become clear from the description of the embodiments below.

第1の実施の形態を説明するためのステレオカメラの一例を示す図である。FIG. 1 is a diagram illustrating an example of a stereo camera for explaining a first embodiment. 第1の実施の形態を説明するためのステレオカメラの一例を示す図である。FIG. 1 is a diagram illustrating an example of a stereo camera for explaining a first embodiment. 第1の実施の形態を説明するためのステレオカメラの一例を示す図である。FIG. 1 is a diagram illustrating an example of a stereo camera for explaining a first embodiment. 第1の実施の形態を説明するためのステレオカメラの一例を示す図である。FIG. 1 is a diagram illustrating an example of a stereo camera for explaining a first embodiment. 第1の実施の形態を説明するためのステレオカメラの一例を示す図である。FIG. 1 is a diagram illustrating an example of a stereo camera for explaining a first embodiment. 第1の実施の形態を説明するためのステレオカメラの一例を示す図である。FIG. 1 is a diagram illustrating an example of a stereo camera for explaining a first embodiment. 第1の実施の形態を説明するための測距誤差を示す図である。FIG. 11 is a diagram showing distance measurement errors for explaining the first embodiment; 第1の実施の形態による物体検知システムに係る構成の一例を示す図である。1 is a diagram illustrating an example of a configuration of an object detection system according to a first embodiment. 第1の実施の形態によるカメラと回転機構との位置関係を示す図である。3A and 3B are diagrams illustrating the positional relationship between a camera and a rotation mechanism according to the first embodiment. 第1の実施の形態による座標変換を説明するための図である。FIG. 2 is a diagram for explaining coordinate transformation according to the first embodiment. 第1の実施の形態による距離計算を説明するための図である。FIG. 4 is a diagram for explaining distance calculation according to the first embodiment; 第1の実施の形態による回転軸が入射瞳にない場合の不都合を説明するための図である。10A and 10B are diagrams for explaining inconveniences caused when the rotation axis is not at the entrance pupil in the first embodiment; 第1の実施の形態による校正を説明するための図である。FIG. 4 is a diagram for explaining calibration according to the first embodiment. 第1の実施の形態による校正を説明するための図である。FIG. 4 is a diagram for explaining calibration according to the first embodiment. 第2の実施の形態によるカメラと回転機構との位置関係を示す図である。13 is a diagram showing the positional relationship between a camera and a rotation mechanism according to the second embodiment. FIG. 第2の実施の形態による回転軸が入射瞳にない場合の不都合の解決方法を説明するための図である。13A and 13B are diagrams for explaining a method for solving the problem when the rotation axis is not at the entrance pupil according to the second embodiment. 第2の実施の形態による座標変換を説明するための図である。FIG. 11 is a diagram for explaining coordinate transformation according to the second embodiment.

(I)第1の実施の形態
以下、本発明の一実施の形態を詳述する。ただし、本発明は、実施の形態に限定されるものではない。
(I) First Embodiment Hereinafter, one embodiment of the present invention will be described in detail. However, the present invention is not limited to the embodiment.

本実施の形態では、特に、遠距離、広FOV(Field of view)の検知範囲を有し、かつ、高精度の測距性能を有するステレオカメラおよび当該ステレオカメラを用いたステレオカメラシステムについて説明する。 In this embodiment, we will particularly describe a stereo camera that has a long-distance, wide FOV (Field of view) detection range and high-precision distance measurement performance, and a stereo camera system that uses the stereo camera.

本実施の形態に記載のステレオカメラシステムは、上記課題を解決する手段を複数含んでいる。その一例を挙げるならば、「ステレオカメラを構成するカメラ1およびカメラ2がそれぞれ撮影方向を変える回転機構を備え、各カメラの入射瞳位置をP1,P2とし、P1とP2を含む直線をLとするとき、上記回転機構の回転軸R1,R2は、P1とP2とを通る直線Lと各カメラの光軸O1,O2とに直交し、かつ、互いに平行であること」を特徴とする。また、「上記回転機構の回転角θに基づいて、各カメラの撮影画像または当該撮影画像に画像処理を施した加工画像の少なくとも1つに補正処理を施すこと」を特徴とする。 The stereo camera system described in this embodiment includes multiple means for solving the above problem. For example, the stereo camera is characterized in that "camera 1 and camera 2 constituting the stereo camera each have a rotation mechanism for changing the shooting direction, and when the entrance pupil positions of each camera are P1 and P2 and a line including P1 and P2 is L, the rotation axes R1 and R2 of the rotation mechanisms are perpendicular to the line L passing through P1 and P2 and the optical axes O1 and O2 of each camera, and are parallel to each other." In addition, the stereo camera system is characterized in that "based on the rotation angle θ of the rotation mechanism, correction processing is performed on at least one of the captured images of each camera or processed images obtained by performing image processing on the captured images."

ステレオカメラの撮影方向を変える回転機構をカメラごとに有し、回転機構の回転軸を各カメラの入射瞳位置と一致させ、回転角情報を用いて画像の座標変換を行うことで、検知物の測距精度を確保しつつ、検知範囲の遠距離化および広角化と、省スペース化とを実現することができる。 Each stereo camera has a rotation mechanism that changes the shooting direction, and by aligning the rotation axis of the rotation mechanism with the entrance pupil position of each camera and using the rotation angle information to perform coordinate conversion of the image, it is possible to achieve a longer distance and wider angle detection range and space saving while maintaining the distance measurement accuracy of the detected object.

本明細書等における「第1」、「第2」、「第3」等の表記は、構成要素を識別するために付するものであり、必ずしも、数または順序を限定するものではない。また、構成要素の識別のための番号は、文脈毎に用いられ、1つの文脈で用いた番号が、他の文脈で必ずしも同一の構成を示すとは限らない。また、ある番号で識別された構成要素が、他の番号で識別された構成要素の機能を兼ねることを妨げるものではない。 The designations "first," "second," "third," and the like in this specification are used to identify components and do not necessarily limit the number or order. Furthermore, numbers for identifying components are used in different contexts, and a number used in one context does not necessarily indicate the same configuration in another context. Furthermore, this does not prevent a component identified by a certain number from also serving the function of a component identified by another number.

次に、本発明の実施の形態を図面に基づいて説明する。以下の記載および図面は、本発明を説明するための例示であって、説明の明確化のため、適宜、省略および簡略化がなされている。本発明は、他の種々の形態でも実施することが可能である。特に限定しない限り、各構成要素は、単数でも複数でも構わない。 Next, an embodiment of the present invention will be described with reference to the drawings. The following description and drawings are examples for explaining the present invention, and some parts have been omitted or simplified as appropriate for clarity of explanation. The present invention can also be implemented in various other forms. Unless otherwise specified, each component may be singular or plural.

なお、以下の説明では、図面において同一要素については、同じ番号を付し、説明を適宜省略する。また、同種の要素を区別しないで説明する場合には、枝番を含む参照符号のうちの共通部分(枝番を除く部分)を使用し、同種の要素を区別して説明する場合は、枝番を含む参照符号を使用することがある。例えば、カメラを特に区別しないで説明する場合には、「カメラ401」と記載し、個々のカメラを区別して説明する場合には、「カメラ401-1」、「カメラ401-2」のように記載することがある。 In the following description, identical elements in the drawings are given the same numbers and descriptions are omitted as appropriate. When describing similar elements without distinguishing between them, the common portion (excluding the branch number) of the reference sign including the branch number is used, and when describing similar elements with distinction, the reference sign including the branch number may be used. For example, when describing a camera without distinction between them, it may be written as "camera 401", and when describing individual cameras with distinction between them, it may be written as "camera 401-1", "camera 401-2", etc.

[カメラ毎に回転で省スペース化。斜めモデルは、測距誤差あり。]
一般的には、カメラの向きを変える方法ではいくつか不都合が生じる。通常のカメラの射影方式である中心射影(f・tanθ)では、光軸から離れるほど像は大きく見える。例えば、カメラの画面の隅に立った人の幅は、カメラの正面に立った人の幅より画像上で太く見える。この点、等距離射影(f・θ)を用いることで解決することができる。等距離射影を用いると、物体の像は、画角に拠らず等しくなるため、パン、チルトなどのカメラの向きを変えても同一物体の画像サイズを一定にすることができる。また、カメラの回転軸をカメラの入射瞳と一致させることで、カメラの向きを変えても物体との距離を正確に一定にすることができ、像サイズの画角による変動をより小さくすることができる。
[Each camera rotates to save space. The diagonal model has distance measurement errors.]
Generally, the method of changing the camera orientation causes some inconveniences. In central projection (f tan θ), which is a normal camera projection method, the image appears larger the further away from the optical axis. For example, the width of a person standing at the corner of the camera screen appears wider on the image than the width of a person standing in front of the camera. This can be solved by using equidistant projection (f θ). When equidistant projection is used, the image of an object is equal regardless of the angle of view, so the image size of the same object can be kept constant even if the camera orientation is changed by panning, tilting, etc. In addition, by aligning the rotation axis of the camera with the entrance pupil of the camera, the distance to the object can be accurately kept constant even if the camera orientation is changed, and the variation in image size due to the angle of view can be further reduced.

ここで、ステレオカメラにおいて撮影方向を変える場合、2つのカメラの相対位置および向きが正確に保たれている必要がある。このため、図1、図2、図3に示すように、ステレオカメラ100全体の向きを変え、カメラ101同士の相対位置は維持する方が容易に広角化を実現できる。しかしながら、単眼カメラと異なり、ステレオカメラ100の向きを変える場合、カメラ101およびカメラ101の固定機構が他の部材と干渉しない広いスペースを確保する必要がある。これは、カメラ101の必要回転角および基線長に応じて増大するので、特に遠距離対応で基線が長いステレオカメラ100では、自動車、鉄道などの狭い運転席、運転室に設置するのは難しくなる。 Here, when changing the shooting direction in a stereo camera, the relative positions and orientations of the two cameras must be accurately maintained. For this reason, as shown in Figures 1, 2, and 3, changing the orientation of the stereo camera 100 as a whole and maintaining the relative positions of the cameras 101 can more easily achieve a wide angle. However, unlike a monocular camera, when changing the orientation of the stereo camera 100, it is necessary to ensure a large space where the cameras 101 and the fixing mechanism for the cameras 101 do not interfere with other components. This increases depending on the required rotation angle and baseline length of the cameras 101, so it is difficult to install the stereo camera 100, which is particularly suitable for long distances and has a long baseline, in a narrow driver's seat or cab in an automobile, train, etc.

そこで、図4、図5、図6等に示すように、ステレオカメラ400の各カメラ401が独立した回転軸を有する構造にすることで、装置の水平投影面積以上のスペースを設けることなく広角化を実現できる。しかしながら、この方法は、カメラ401の向きを傾けたときに測距結果に誤差が生じるという不都合がある。例えば、図5の場合を図7のように置き換えて考えると、カメラ401-1(カメラ1)およびカメラ401-2(カメラ2)の像サイズI1および像サイズI2は、それぞれ、
I1=Ob/L1・fc ・・・式(1)
I2=Ob/L2・fc=Ob/(L1-B・sin(Δθ))・fc・・・式(2)
となる。
ここで、Obは、対象物体のサイズ、L1、L2は、それぞれカメラ1、カメラ2から対象物体までの距離、fcは、カメラ1およびカメラ2の焦点距離、Bは、基線長、Δθは、カメラ1およびカメラ2の向き(回転角)である。両式からカメラ1とカメラ2とで得られる対象物体の像サイズが異なることが分かる。また、像サイズの比率も対象物体の距離によって異なるため、一方の画像を単純に拡大または縮小するだけでは測距誤差を生じてしまう。
Therefore, as shown in Figures 4, 5, 6, etc., by configuring each camera 401 of the stereo camera 400 to have an independent rotation axis, it is possible to achieve a wide angle without providing a space larger than the horizontal projection area of the device. However, this method has the disadvantage that an error occurs in the distance measurement result when the orientation of the camera 401 is tilted. For example, if the case of Figure 5 is replaced with that of Figure 7, the image sizes I1 and I2 of the camera 401-1 (camera 1) and the camera 401-2 (camera 2) are respectively:
I1=Ob/L1・fc...Formula (1)
I2=Ob/L2・fc=Ob/(L1−B・sin(Δθ))・fc...Formula (2)
It becomes.
Here, Ob is the size of the target object, L1 and L2 are the distances from camera 1 and camera 2 to the target object, respectively, fc is the focal length of camera 1 and camera 2, B is the base line length, and Δθ is the orientation (rotation angle) of camera 1 and camera 2. It can be seen from both equations that the image sizes of the target object obtained by camera 1 and camera 2 are different. In addition, since the ratio of the image sizes also differs depending on the distance to the target object, simply enlarging or reducing one of the images will result in a distance measurement error.

本実施の形態では、ステレオカメラシステムの一例として、列車に搭載したステレオカメラおよび当該ステレオカメラを用いた物体検知システム800を説明する。図8に物体検知システム800の概略構成を示す。まず各ブロックの役割を説明する。符号801,802は、ステレオカメラを構成するカメラを示す。符号811,812は、カメラ801,802の撮影方向を変更する回転機構(ROTATION MECH.)を示す。符号820は、カメラ801,802の撮影タイミングおよび回転機構811,812の動作を制御するコントローラ部(CAMERA & ANGLE CONTROLLER)を示す。符号830は、カメラ801,802が取得した画像に対し、画像歪、画像向き、画像サイズなどを補正する幾何補正部(GEOMETRIC CORRECTION)を示す。符号840は、回転機構811,812の回転角に基づいて、主に画素値の座標変換を行う座標変換部(COORDINATE CORRECTION)を示す。符号850は、幾何補正および座標変換を施した画像を用いて視差画像を生成する視差画像生成部(DISPARITY)を示す。符号860は、視差画像および元画像を用いて測距、画像解析、物体検知等を行う物体検知部(IMAGE ANALYSIS OBJECT DETECTION)を示す。 In this embodiment, as an example of a stereo camera system, a stereo camera mounted on a train and an object detection system 800 using the stereo camera will be described. FIG. 8 shows a schematic configuration of the object detection system 800. First, the role of each block will be described. Reference numerals 801 and 802 indicate cameras constituting the stereo camera. Reference numerals 811 and 812 indicate a rotation mechanism (ROTATION MECH.) that changes the shooting direction of the cameras 801 and 802. Reference numeral 820 indicates a controller unit (CAMERA & ANGLE CONTROLLER) that controls the shooting timing of the cameras 801 and 802 and the operation of the rotation mechanisms 811 and 812. Reference numeral 830 indicates a geometric correction unit (GEOMETRIC CORRECTION) that corrects image distortion, image orientation, image size, etc. for the images acquired by the cameras 801 and 802. Reference numeral 840 indicates a coordinate conversion unit (COORDINATE CORRECTION) that mainly performs coordinate conversion of pixel values based on the rotation angle of the rotation mechanisms 811 and 812. Reference numeral 850 denotes a disparity image generating unit (DISPARITY) that generates a disparity image using an image that has been subjected to geometric correction and coordinate transformation. Reference numeral 860 denotes an object detection unit (IMAGE ANALYSIS OBJECT DETECTION) that performs distance measurement, image analysis, object detection, etc. using the disparity image and the original image.

物体検知システム800の機能(コントローラ部820、幾何補正部830、座標変換部840、視差画像生成部850、物体検知部860等)は、例えば、プロセッサが補助記憶装置に格納されたプログラムを主記憶装置に読み出して実行すること(ソフトウェア)により実現されてもよいし、専用の回路等のハードウェアにより実現されてもよいし、ソフトウェアとハードウェアとが組み合わされて実現されてもよい。なお、物体検知システム800の1つの機能は、複数の機能に分けられていてもよいし、複数の機能は、1つの機能にまとめられていてもよい。例えば、幾何補正部830、座標変換部840、および視差画像生成部850は、補正部とされてもよい。また、物体検知システム800の機能の一部は、別の機能として設けられてもよいし、他の機能に含められていてもよい。例えば、幾何補正と座標変換とが同時に行われてもよい。付言するならば、カメラ801,802を備えるステレオカメラは、例えば、コントローラ部820、幾何補正部830、座標変換部840、および視差画像生成部850を備え、当該ステレオカメラと通信可能なコンピュータが物体検知部860を備えてもよい。また、例えば、カメラ801,802を備えるステレオカメラは、例えば、コントローラ部820を備え、当該ステレオカメラと通信可能なコンピュータが幾何補正部830、座標変換部840、視差画像生成部850、および物体検知部860を備えてもよい。また、物体検知システム800の機能の一部は、物体検知システム800と通信可能な他のコンピュータにより実現されてもよい。 The functions of the object detection system 800 (controller unit 820, geometric correction unit 830, coordinate conversion unit 840, parallax image generation unit 850, object detection unit 860, etc.) may be realized, for example, by a processor reading a program stored in an auxiliary storage device into a main storage device and executing it (software), or may be realized by hardware such as a dedicated circuit, or may be realized by a combination of software and hardware. Note that one function of the object detection system 800 may be divided into multiple functions, or multiple functions may be combined into one function. For example, the geometric correction unit 830, the coordinate conversion unit 840, and the parallax image generation unit 850 may be a correction unit. In addition, some of the functions of the object detection system 800 may be provided as separate functions or may be included in other functions. For example, geometric correction and coordinate conversion may be performed simultaneously. In addition, the stereo camera including the cameras 801 and 802 may include, for example, a controller unit 820, a geometric correction unit 830, a coordinate conversion unit 840, and a parallax image generation unit 850, and a computer capable of communicating with the stereo camera may include an object detection unit 860. Also, for example, the stereo camera including the cameras 801 and 802 may include, for example, a controller unit 820, and a computer capable of communicating with the stereo camera may include, for example, a geometric correction unit 830, a coordinate conversion unit 840, a parallax image generation unit 850, and an object detection unit 860. Also, some of the functions of the object detection system 800 may be realized by another computer capable of communicating with the object detection system 800.

次に、各ブロックの関係について述べる。回転機構811,812は、コントローラ部820が指示する回転角で回転し、回転機構811,812の各々に固定されたカメラ801,802の撮影方向を変更する。カメラ801,802は、コントローラ部820が指示するタイミングで撮影を行い、取得した画像(画像データ)を幾何補正部830に送る。幾何補正部830に送られた各画像について、幾何補正部830は、レンズ歪補正、平行化処理などを含む幾何補正処理を行い、処理後の幾何補正画像を座標変換部840に送る。座標変換部840は、コントローラ部820から送られる回転角情報に基づいて、幾何補正部830から送られた幾何補正画像の座標変換を行い、座標変換画像を視差画像生成部850と物体検知部860とに送る。視差画像生成部850は、送られた各カメラ801,802の画像がベースとなった座標変換画像を用いて視差画像を生成し、生成した視差画像を物体検知部860に送る。物体検知部860は、送られた視差画像と座標変換画像とを用いて、測距、物体検知、物体識別などを行い、車両制御に必要な情報を図示しない後段のシステムに送る。例えば、後段のシステムがブレーキ制御システムである場合、ブレーキ機制御システムは、受け取った情報(例えば、軌道上に障害物を検知したことを示す情報)に基づいて、車両のブレーキ制御を行う。 Next, the relationship between each block will be described. The rotation mechanisms 811 and 812 rotate at a rotation angle instructed by the controller unit 820, and change the shooting direction of the cameras 801 and 802 fixed to each of the rotation mechanisms 811 and 812. The cameras 801 and 802 shoot at the timing instructed by the controller unit 820, and send the acquired images (image data) to the geometric correction unit 830. For each image sent to the geometric correction unit 830, the geometric correction unit 830 performs geometric correction processing including lens distortion correction and parallelization processing, and sends the processed geometrically corrected image to the coordinate conversion unit 840. The coordinate conversion unit 840 performs coordinate conversion of the geometrically corrected image sent from the geometric correction unit 830 based on the rotation angle information sent from the controller unit 820, and sends the coordinate conversion image to the parallax image generation unit 850 and the object detection unit 860. The parallax image generating unit 850 generates a parallax image using a coordinate transformation image based on the images sent from each of the cameras 801 and 802, and sends the generated parallax image to the object detection unit 860. The object detection unit 860 performs distance measurement, object detection, object identification, etc. using the sent parallax image and coordinate transformation image, and sends information necessary for vehicle control to a downstream system (not shown). For example, if the downstream system is a brake control system, the brake control system controls the vehicle brakes based on the received information (for example, information indicating that an obstacle has been detected on the track).

図9は、カメラ801,802と回転機構811,812との位置関係を示す図である。符号901,902は、各カメラ801,802のレンズを示す。なお、レンズ901,902は、カメラ801,802において、1以上設けられ、典型的には複数設けられるが、図9では、説明の便宜上、1つ示している。符号911,912は、各カメラ801,802の撮像素子を示す。符号921.922は、各カメラ801,802の入射瞳位置(入射瞳)を示す。符号931,932は、各レンズ901,902(カメラ801,802)の光軸を示す。符号941,942は、各回転機構811,812の回転軸を一点鎖線で示している。これらの回転軸941,942は、それぞれ入射瞳921,922を通り、各光軸931,932と直線Lに直交するように配置している。ここで、直線Lは、入射瞳921,922の両方を通る直線である。一般的にステレオカメラの両カメラの光軸は、平行になるように配置されるので、上記を言い換えると、回転軸941,942は、両光軸931,932を含む平面と直交し、かつ、各入射瞳921,922を通るように配置しているとも言える。 Figure 9 is a diagram showing the positional relationship between the cameras 801, 802 and the rotation mechanisms 811, 812. Reference numerals 901, 902 indicate the lenses of each camera 801, 802. Note that the cameras 801, 802 are provided with one or more lenses 901, 902, typically with multiple lenses, but FIG. 9 shows only one lens for ease of explanation. Reference numerals 911, 912 indicate the image pickup elements of each camera 801, 802. Reference numerals 921, 922 indicate the entrance pupil positions (entrance pupils) of each camera 801, 802. Reference numerals 931, 932 indicate the optical axes of each lens 901, 902 (cameras 801, 802). Reference numerals 941, 942 indicate the rotation axes of each rotation mechanism 811, 812 with dashed lines. These rotation axes 941, 942 pass through the entrance pupils 921, 922, respectively, and are arranged so as to be perpendicular to the optical axes 931, 932 and the line L. Here, the line L is a line that passes through both the entrance pupils 921, 922. In general, the optical axes of both cameras in a stereo camera are arranged to be parallel, so in other words, the rotation axes 941, 942 are arranged so as to be perpendicular to a plane that includes both optical axes 931, 932, and to pass through each entrance pupil 921, 922.

また、回転角θは、光軸931,932が直線Lと直交する状態を基準(θ=0deg)とし、以下、これを前提として説明する。 The rotation angle θ is based on the state in which the optical axes 931, 932 are perpendicular to the line L (θ = 0 deg), and the following explanation will be based on this premise.

[変換式]
次に、座標変換部840の詳細動作について図10を用いて説明する。図10は、カメラ801が回転角θ=Δθの方向に向いたときの概略図であり、点線を用いてθ=0のときのカメラ801の配置も示している。また、同図のカメラ801は、幾何補正後の中心射影モデルであり、ピンホールモデルと等価である。符号1001は、レンズ901をモデル化したレンズを示す。図10に示すように、基本的には、ピンホールモデルにおいては、ピンホール位置とカメラ801の入射瞳位置とが一致している。なお、カメラ802についても、カメラ801と同様であり、その説明は省略する。
[Conversion formula]
Next, the detailed operation of the coordinate conversion unit 840 will be described with reference to FIG. 10. FIG. 10 is a schematic diagram of the camera 801 facing in the direction of a rotation angle θ=Δθ, and also shows the arrangement of the camera 801 when θ=0 using a dotted line. The camera 801 in the figure is a central projection model after geometric correction, and is equivalent to a pinhole model. Reference numeral 1001 denotes a lens modeled after the lens 901. As shown in FIG. 10, basically, in the pinhole model, the pinhole position and the entrance pupil position of the camera 801 coincide with each other. Note that the camera 802 is similar to the camera 801, and a description thereof will be omitted.

座標変換部840による座標変換は、ある方向から入射した光線が、カメラ801の回転角Δθのときに至る画素を画素B、回転角θ=0のときに光線が至る画素を画素Aとしたとき、実在する画素Bの値を仮想の画素Aの値に変換する動作である。具体的には、変換前画像の各画素の座標をB(Ub,Vb)、変換前画像の基準画素(例えば、中心画素)の座標をB(Ub0,Vb0)、変換後画像(補正後画像)の各画素の画素をA(Ua,Va)、変換後画像の基準画素(例えば、中心画素)の座標をA(Ua0,Va0)、カメラ801の焦点距離をfc、x方向およびy方向の画素ピッチをpx,pyとするとき、変換後の座標は、変換前の座標と回転角Δθとを用いて、
Ua=fc・tan(Δθ+α)/px+Ua0 ・・・式(3)
Va=Vb-Vb0+Va0 ・・・式(4)
α=atan((Ub-Ub0)・px/fc) ・・・式(5)
と表せる。
The coordinate conversion by the coordinate conversion unit 840 is an operation of converting the value of an actual pixel B into the value of a virtual pixel A, where the pixel that a light ray incident from a certain direction reaches when the rotation angle of the camera 801 is Δθ is pixel B, and the pixel that the light ray reaches when the rotation angle θ=0 is pixel A. Specifically, when the coordinates of each pixel in the pre-conversion image are B(Ub, Vb), the coordinates of a reference pixel (e.g., center pixel) in the pre-conversion image are B(Ub0, Vb0), the coordinates of each pixel in the post-conversion image (post-correction image) are A(Ua, Va), the coordinates of a reference pixel (e.g., center pixel) in the post-conversion image are A(Ua0, Va0), the focal length of the camera 801 is fc, and the pixel pitches in the x and y directions are px and py, the coordinates after conversion are expressed as follows, using the coordinates before conversion and the rotation angle Δθ:
Ua=fc・tan(Δθ+α)/px+Ua0...Formula (3)
Va=Vb-Vb0+Va0...Formula (4)
α=atan((Ub-Ub0)・px/fc) ...Formula (5)
This can be expressed as:

回転角θ=0の場合は、画角(Δθ+α)から入射する光線は、撮像素子911の範囲外に到達するので、撮像素子911は、その像を得ることができない。そこで、カメラ向きを回転角Δθ変更することで、同光線は、撮像素子911の範囲内に到達することになり、さらに結像した画素の座標によりαを得ることができるので、既知の回転角Δθを用いて、光線の入射角(Δθ+α)を得て、回転角θ=0の状態における光線の結像画素の座標を算出することができる。 When the rotation angle θ = 0, the light ray incident from the angle of view (Δθ + α) reaches outside the range of the image sensor 911, so the image sensor 911 cannot capture the image. Therefore, by changing the camera orientation by the rotation angle Δθ, the light ray reaches within the range of the image sensor 911, and α can be obtained from the coordinates of the imaged pixel. Therefore, the known rotation angle Δθ can be used to obtain the angle of incidence (Δθ + α) of the light ray, and the coordinates of the imaged pixel of the light ray when the rotation angle θ = 0 can be calculated.

[変換で得られる視差と距離]
次に、図11を用いて対象物体の距離計算の例を示す。ここで、対象物体は、点光源とし、カメラ801,802は、図示せず、各カメラ801,802の入射瞳921,922を黒丸で示している。回転角θ=0である場合の光線の結像画素のU座標は、上記式より(Ua-Ua0)で表されるので、カメラ801,802の同座標を(Ua1-Ua10)、(Ua2-Ua20)で表すと、
(Ua1-Ua10)=tan(Δθ+α)・fc/px ・・・式(6)
(Ua2-Ua20)=tan(Δθ)・fc/px ・・・式(7)
となる。ここで、
Y/L=tan(Δθ) ・・・式(8)
(B+Y)/L=tan(Δθ+α) ・・・式(9)
である。視差Dは、(Ua1-Ua10)-(Ua2-Ua20)であるので、上式より、
D=B/L・fc/px ・・・式(10)
となる。この視差Dの実測値を用いて、光点の距離Lを得ることができる。
L=B/D・fc/px ・・・式(11)
[Disparity and distance obtained by transformation]
Next, an example of distance calculation of a target object will be shown using Fig. 11. Here, the target object is a point light source, and the cameras 801 and 802 are not shown, but the entrance pupils 921 and 922 of the cameras 801 and 802 are indicated by black circles. The U coordinate of the image-forming pixel of the light ray when the rotation angle θ = 0 is expressed as (Ua - Ua0) from the above formula, so if the same coordinates of the cameras 801 and 802 are expressed as (Ua1 - Ua10) and (Ua2 - Ua20), then
(Ua1-Ua10)=tan(Δθ+α)・fc/px...Formula (6)
(Ua2-Ua20)=tan(Δθ)・fc/px...Equation (7)
Here,
Y/L=tan(Δθ)...Formula (8)
(B+Y)/L=tan(Δθ+α)...Formula (9)
Since the parallax D is (Ua1-Ua10)-(Ua2-Ua20), the above formula gives:
D=B/L・fc/px...Formula (10)
Using the measured value of the parallax D, the distance L of the light spot can be obtained.
L=B/D・fc/px...Formula (11)

[入射瞳=回転軸でないと何が起こるか]
ここで、回転軸941が入射瞳921ではない場合に生じる不都合ついてカメラ801を用いて説明する。図12は、回転軸941を撮像素子911上に設け、カメラ向きを回転角Δθとした場合の図である。一点鎖線は、カメラ801の回転角Δθの光軸931を示し、実太線は、撮像素子911の撮像面1201を示す。撮像面1201に結像した光点の像の座標と焦点距離とから光線方向βが算出できる。しかしながら、図11の場合とは異なり、光線方向βを用いてもカメラ向きθ=0状態における光線方向(Δθ+α)は、算出できない。それは、対象物体が光線方向β上に存在することが分かっても、カメラ向きθ=0状態における光線方向は、対象物の距離によってα0、α1など取りうる値が異なるためである。これは、カメラ向きθ=0とΔθとにおけるピンホール位置が一致していないために生ずる。
[What happens if the entrance pupil is not the rotation axis?]
Here, the inconvenience that occurs when the rotation axis 941 is not the entrance pupil 921 will be described using the camera 801. FIG. 12 is a diagram in which the rotation axis 941 is provided on the image sensor 911 and the camera orientation is set to a rotation angle Δθ. The dashed line indicates the optical axis 931 of the rotation angle Δθ of the camera 801, and the solid thick line indicates the image plane 1201 of the image sensor 911. The light ray direction β can be calculated from the coordinates of the image of the light point imaged on the image plane 1201 and the focal length. However, unlike the case of FIG. 11, the light ray direction (Δθ+α) in the camera orientation θ=0 state cannot be calculated even if the light ray direction β is used. This is because, even if it is known that the target object exists on the light ray direction β, the light ray direction in the camera orientation θ=0 state can take different values such as α0 and α1 depending on the distance of the target object. This occurs because the pinhole positions in the camera orientations θ=0 and Δθ do not match.

[校正]
以上の視差および距離は、回転機構811,812が理想的に動作する場合に正確に得ることができるが、実際には機構的な回転誤差と、回転軸941,942の傾き、ガタなどで生じる機械的な誤差とがあり、これにより無視できない視差誤差および測距誤差が生じたり、そもそも視差が得られないなどの不具合が生じたりする。この場合、回転角Δθに応じた変換式の校正が必要になる。校正は、システム製造時に初期的な機械誤差に対応する初期校正と、経時変化などで発生する機械誤差に対応する経時校正とが必要になる。経時校正は、初期校正と同様の設備、方法を用いて目的を達成することができるが、営業中にバックグラウンドで校正動作を行うように動作してもよい。以下、初期校正と経時校正との方法について順に説明する。
[Proofreading]
The above parallax and distance can be obtained accurately when the rotation mechanisms 811 and 812 operate ideally, but in reality, there are mechanical rotation errors and mechanical errors caused by the inclination and backlash of the rotation axes 941 and 942, which can cause non-negligible parallax errors and distance measurement errors, or problems such as the parallax not being obtained at all. In this case, calibration of the conversion formula according to the rotation angle Δθ is required. Calibration requires initial calibration corresponding to the initial mechanical error at the time of system manufacture, and time-dependent calibration corresponding to the mechanical error caused by changes over time. The purpose of time-dependent calibration can be achieved using the same equipment and method as the initial calibration, but it may also be operated so that the calibration operation is performed in the background during business hours. Below, the methods of initial calibration and time-dependent calibration will be described in order.

[校正(初期、チャート有)]
回転角Δθに応じた変換式の初期校正の一例を図13および図14を用いて説明する。両図ともに紙面下側にステレオカメラ1300、紙面上側にチャート1301,1302を示している。チャート1301,1302は、視差が得られるように全面に高コントラストの模様が配されていることが望ましい。例えば、チェッカーマーク、等間隔に配されたドットまたはドーナツ型のマーク、ランダム模様などがある。チャート1301,1302およびカメラ801,802間の距離は、ピントが合う程度に離れている、また、チャート1301,1302上の共通エリアを両カメラ801,802が撮影できる程度に離れていることが理想である。
[Proofreading (initial, with chart)]
An example of initial calibration of the conversion equation according to the rotation angle Δθ will be described with reference to Figs. 13 and 14. In both figures, a stereo camera 1300 is shown at the bottom of the paper, and charts 1301 and 1302 are shown at the top of the paper. It is desirable that the charts 1301 and 1302 have a high-contrast pattern arranged all over so that parallax can be obtained. For example, checker marks, evenly spaced dots or doughnut-shaped marks, random patterns, etc. are available. The distance between the charts 1301 and 1302 and the cameras 801 and 802 is ideally set to a distance sufficient to allow focus and sufficient distance to allow both cameras 801 and 802 to capture a common area on the charts 1301 and 1302.

初めに図9で説明した直線Lと各カメラ801,802の光軸931,932が直交するようにカメラ801,802が向いている状態でチャート画像を取得する。このとき、例えば、図13に示すエリアa1は、カメラ801(左カメラ)の左側に映っており、エリアa2は、同カメラ801の右側に映っている。 First, the chart image is acquired with the cameras 801 and 802 facing in such a way that the straight line L described in FIG. 9 and the optical axes 931 and 932 of the cameras 801 and 802 are perpendicular to each other. At this time, for example, the area a1 shown in FIG. 13 is captured on the left side of the camera 801 (left camera), and the area a2 is captured on the right side of the same camera 801.

次に、カメラ801,802の向きを半画角だけ変更し、図14の状態にする。ここで、カメラ801,802の向きが理想的に動けば、図14の状態で取得した画像の左半分であるエリアa2を幾何および座標変換した画像は、図13の状態で取得した先のエリアa2を幾何変換した画像と一致するはずである。しかしながら、回転時の機械誤差がある場合には両画像は一致しないので、両画像の対応画素のズレ量を求め、ズレ量をなくすように校正を行う。画素ごとのズレ量は、両画像のブロックマッチング、特徴点マッチングなどによって得られるが、ズレ量が得られる場合、どの手段を用いてもよい。 Next, the orientation of cameras 801 and 802 is changed by half the angle of view to the state shown in FIG. 14. If the orientation of cameras 801 and 802 moves ideally, the image obtained by geometrically and coordinate-transforming area a2, which is the left half of the image acquired in the state of FIG. 14, should match the image obtained by geometrically transforming area a2 acquired in the state of FIG. 13. However, if there is a mechanical error during rotation, the two images will not match, so the amount of misalignment between corresponding pixels in both images is found and calibration is performed to eliminate the amount of misalignment. The amount of misalignment for each pixel can be obtained by block matching or feature point matching of both images, but any means may be used as long as the amount of misalignment can be obtained.

エリアa3は、エリアa2の校正を外挿することで校正が可能である。以降、順に半画角のn倍回転した画像の右半分の領域a(n)と(n+1)倍回転した画像の左半分の領域a(n+1)とのズレ量を校正していく。エリアa1の左側の領域も回転角を負側に変更することで校正を実施する。図13および図14の紙面右側のカメラ802も同様にして校正を実施することができる。以上の手順で初期校正を完了する。 Area a3 can be calibrated by extrapolating the calibration of area a2. Thereafter, the amount of misalignment between the right half area a(n) of the image rotated n times the half angle of view and the left half area a(n+1) of the image rotated (n+1) times is calibrated. The area to the left of area a1 is also calibrated by changing the rotation angle to the negative side. The camera 802 on the right side of the paper in Figures 13 and 14 can be calibrated in the same way. The initial calibration is completed with the above procedure.

[校正(経時、チャート無)]
経時校正の方法も基本的には初期校正と同様に実施することができる。保守、整備などを行う整備場内では、専用チャートを設けたり、カメラ801,802の揺れを排除したりすることができ、ほぼ初期校正と同様の精度を実現できる。一方、営業中の車両で校正を行う場合には工夫が必要である。特にカメラ801,802に揺れが加わる場合には、校正に使用する画像の不一致が揺れによるものか機械誤差によるものか判断できない。したがって、利用者および荷物の車両への乗降車が無いとき、車両内で利用者および荷物の移動が発生しないとき、または同状況を検知して校正動作を行うことが望ましい。また、ブロックマッチング、特徴点マッチングなどに不向きな低コントラスト画像が含まれる環境を避け、一定以上のコントラスト画像が得られる条件を設けて校正情報を蓄積し、一定以上の情報を得たのちに校正を実行する仕組みを構築することが望ましい。
[Calibration (over time, no chart)]
The method of time-dependent calibration can be basically the same as that of initial calibration. In a maintenance yard where maintenance and repairs are performed, a dedicated chart can be provided or the shaking of the cameras 801 and 802 can be eliminated, so that the accuracy can be almost the same as that of the initial calibration. On the other hand, when performing calibration on a vehicle in operation, some ingenuity is required. In particular, when the cameras 801 and 802 are shaken, it is not possible to determine whether the mismatch of the images used for calibration is due to the shaking or mechanical error. Therefore, it is desirable to perform the calibration operation when there are no passengers or luggage getting on or off the vehicle, when there is no movement of passengers or luggage inside the vehicle, or when the same situation is detected. In addition, it is desirable to avoid environments that include low-contrast images that are unsuitable for block matching, feature point matching, etc., set conditions to obtain images with a certain level of contrast, accumulate calibration information, and build a mechanism to perform calibration after obtaining information of a certain level or more.

[離散値]
上記校正方法を考慮すると、カメラ向き(回転角Δθ)は、離散的な値を有し、その角度毎に校正値を有することが望ましい。また、実際の撮影方向の変更動作も離散的に行い、その角度毎に校正値を適用することが望ましい。
[Discrete value]
Considering the above calibration method, it is desirable that the camera orientation (rotation angle Δθ) has discrete values and that a calibration value is provided for each angle. It is also desirable that the actual shooting direction is changed discretely and that a calibration value is applied for each angle.

[校正は半画角単位でなくてもよい]
ただし、離散値は、上記のように、カメラ801,802の半画角と一致する必要はない。離散値を細かくするほど校正に時間を要するが、外挿の精度が高くなることが期待でき、実用時に高精度な測距を行える。逆に、離散間隔を大きくすると、校正時間を短縮できるが、外挿時の誤差が増大する懸念がある。
[Calibration does not have to be in units of half angle of view]
However, as described above, the discrete values do not need to match the half angle of view of the cameras 801 and 802. The finer the discrete values, the longer the calibration takes, but the higher the accuracy of extrapolation is expected, and high-precision distance measurement can be performed in practical use. Conversely, if the discrete interval is made larger, the calibration time can be shortened, but there is a concern that errors during extrapolation will increase.

[左右半分ペア以外の外挿部分は精度に疑義あり。全体で直線性、等間隔性を整える]
外挿による誤差が実害を及ぼす場合には、チャート1301,1302全域に直線模様、等間隔マーク、直交線などを配し、校正後の画像における直線性、等間隔性、直交性を確保するように校正を行ってもよい。これにより実用上の弊害を排除することができる。
[The accuracy of the extrapolated parts other than the left and right half pairs is questionable. Adjust the linearity and equal spacing as a whole.]
If errors due to extrapolation cause actual harm, calibration may be performed by arranging straight lines, evenly spaced marks, or orthogonal lines, etc., over the entire area of the charts 1301 and 1302, to ensure linearity, even spacing, and orthogonality in the calibrated image. This can eliminate practical problems.

[同方向から着地]
また、回転機構811,812の制御を工夫することで、回転時の機械誤差を低減することができる。つまり、コントローラ部820は、どの回転角で停止する場合も必ず一方向から動いて止まるように回転機構811,812を制御する。これにより、回転機構811,812のヒステリシスおよび回転機構811,812のガタを低減し、機械誤差を低減することができる。
[Landing from the same direction]
Furthermore, mechanical errors during rotation can be reduced by devising control over the rotation mechanisms 811 and 812. In other words, the controller unit 820 controls the rotation mechanisms 811 and 812 so that they always move in one direction and then stop, regardless of the rotation angle at which they are stopped. This reduces the hysteresis of the rotation mechanisms 811 and 812 and the backlash of the rotation mechanisms 811 and 812, and can reduce mechanical errors.

[校正式]
x方向の校正値をKa、y方向の校正値をKbとするとき、
Ua’=Ua+Ka ・・・式(12)
Va’=Va+Kb ・・・式(13)
となる。ここで、Ua=fc・tan(Δθ+α)/px+Ua0である。Va=Vb-Vb0+Va0である。
[Calibration formula]
When the calibration value in the x direction is Ka and the calibration value in the y direction is Kb,
Ua'=Ua+Ka...Formula (12)
Va'=Va+Kb...Formula (13)
Here, Ua=fc·tan(Δθ+α)/px+Ua0, and Va=Vb−Vb0+Va0.

以上のように、カメラの向きを変更する回転軸が入射瞳を通り、かつ、各光軸および入射瞳を結ぶ線に直交するように配置し、両カメラの撮影画像に対して中心射影への幾何変換と、回転角情報に基づいた座標変換とを行うことで、高精度な測距性能を備えつつ、遠距離化、広画角化、および省スペース化を実現できるステレオカメラおよび当該ステレオカメラを用いた物体検知システムを提供することができる。 As described above, by arranging the rotation axis that changes the camera orientation so that it passes through the entrance pupil and is perpendicular to the line connecting each optical axis and the entrance pupil, and performing a geometric transformation to central projection on the images captured by both cameras and a coordinate transformation based on the rotation angle information, it is possible to provide a stereo camera that can achieve long distances, a wide angle of view, and space savings while providing high-precision distance measurement performance, and an object detection system using this stereo camera.

(II)第2の実施の形態
[入射瞳≠回転軸の例。ただし、左右カメラの回転角は一致させる]
第1の実施の形態では、各カメラ801,802の回転機構811,812の回転軸941,942がカメラ801,802の入射瞳921,922を通る構造としたが、これに限らずとも類似の効果を得ることができる。すなわち、図9では、回転軸941,942が入射瞳921,922を通過することとしたが、本実施の形態では、図15のように回転軸941,942が入射瞳921,922を通らず、代わりに入射瞳921,922から等距離、等方向の光軸931,932上の点を通る構造としても精度よく測距を行うことができる。
(II) Second embodiment [Example in which the entrance pupil is not equal to the rotation axis. However, the rotation angles of the left and right cameras are made the same]
In the first embodiment, the rotation axes 941, 942 of the rotation mechanisms 811, 812 of the cameras 801, 802 pass through the entrance pupils 921, 922 of the cameras 801, 802, but similar effects can be obtained without being limited to this. That is, in Fig. 9, the rotation axes 941, 942 pass through the entrance pupils 921, 922, but in this embodiment, accurate distance measurement can be performed even if the rotation axes 941, 942 do not pass through the entrance pupils 921, 922, but instead pass through points on the optical axes 931, 932 that are equidistant and in the same direction from the entrance pupils 921, 922, as shown in Fig. 15.

物体検知システム800の構成要素は、第1の実施の形態を説明した図8と同様であるので省略する。また、構成要素間の関連についても第1の実施の形態と同様なので省略する。第1の実施の形態と異なる点は、カメラ801,802が回転角Δθを向いたときに移動する入射瞳位置に対する考え方にある。つまり、第1の実施の形態では、図12を用いて入射角βから入射角αは求められないことを示したが、本実施の形態ではステレオカメラ自身も入射瞳921,922と同じだけ動いたと仮定する。具体的には、図16に示す通り、θ=0のときカメラ801,802は、その光軸931,932が一点鎖線と重なる位置に配されているが、回転角Δθの向きを向いたとき、ステレオカメラは、紙面右方向にfc・tan(Δθ)、紙面下に(1-fc・cos(Δθ))だけシフトしたものと考える。このとき、カメラ801の向きとカメラ802の向きとは、等しい状態にある。 The components of the object detection system 800 are the same as those in FIG. 8, which describes the first embodiment, and therefore are omitted. The relationship between the components is also the same as in the first embodiment, and therefore is omitted. The difference from the first embodiment is in the way of thinking about the entrance pupil position that moves when the cameras 801 and 802 face the rotation angle Δθ. In other words, in the first embodiment, it was shown using FIG. 12 that the entrance angle α cannot be calculated from the entrance angle β, but in this embodiment, it is assumed that the stereo camera itself has moved the same amount as the entrance pupils 921 and 922. Specifically, as shown in FIG. 16, when θ=0, the cameras 801 and 802 are arranged at positions where their optical axes 931 and 932 overlap with the dashed line, but when they face the direction of the rotation angle Δθ, it is assumed that the stereo camera has shifted by fc tan(Δθ) to the right of the paper and by (1-fc cos(Δθ)) below the paper. At this time, the orientation of the camera 801 and the orientation of the camera 802 are in the same state.

このように考えると、図17に示すようにカメラ801で結像した光点の座標から光線方向βおよびγが算出され、その値と回転角Δθとを用いて、図中の黒丸を入射瞳921,922、光軸931,932が太点線と一致するシフト後のステレオカメラにおける光点の結像画素の座標を得ることができる。ステレオカメラのシフト量は、算出した物体位置に対しては微小であるので、多くの場合、無視することができる。 Thinking about it this way, the light ray directions β and γ are calculated from the coordinates of the light point imaged by camera 801 as shown in Figure 17, and using these values and the rotation angle Δθ, it is possible to obtain the coordinates of the imaged pixels of the light point in the stereo camera after shifting so that the black circles in the figure coincide with the entrance pupils 921, 922 and the optical axes 931, 932 coincide with the thick dotted lines. The shift amount of the stereo camera is minute compared to the calculated object position, and can therefore be ignored in many cases.

本実施の形態では、回転機構の回転軸が入射瞳を通らずとも、入射瞳から等しくシフトした位置を通り、両カメラ向きが等しくなるように制御することで、第1の実施の形態と同様の座標変換部を用いて正確な測距を行うことができる。したがって、広画角、遠距離化を実現し、かつ精度の高い測距性能を有するステレオカメラおよび当該ステレオカメラを用いた物体検知システムを提供することができる。 In this embodiment, the rotation axis of the rotation mechanism does not pass through the entrance pupil, but passes through a position equally shifted from the entrance pupil, and the orientation of both cameras is controlled to be equal, making it possible to perform accurate distance measurement using a coordinate conversion unit similar to that of the first embodiment. Therefore, it is possible to provide a stereo camera that achieves a wide angle of view, long distances, and has highly accurate distance measurement performance, and an object detection system using the stereo camera.

以上のように、回転軸は、各カメラの光軸を含む平面に直交し、かつ各光軸を通る。さらに、各回転軸が光軸と交差する点は、等しく入射瞳からの距離ΔXで示すことができる。ΔXの値は、ゼロでもゼロ以外の値でも適切な補正をすることで誤差を低減することが可能であるが、前者はより簡便な計算で座標変換を行うことができる。しかしながら、一般的に回転軸は、被回転体の重心と近い方が機械誤差、安定性などの観点から有利な場合もある。この点から、ΔXの範囲は、撮像素子の撮像面からレンズの最前面までとするのが妥当であるとも言える。 As described above, the rotation axis is perpendicular to the plane containing the optical axis of each camera and passes through each optical axis. Furthermore, the point where each rotation axis intersects with the optical axis can be equally expressed as the distance ΔX from the entrance pupil. The value of ΔX can be reduced by appropriate correction whether it is zero or a non-zero value, but the former allows coordinate transformation with simpler calculations. However, in general, it may be advantageous from the standpoint of mechanical error, stability, etc. to have the rotation axis closer to the center of gravity of the rotated body. From this point of view, it can also be said that it is reasonable to set the range of ΔX from the imaging surface of the image sensor to the frontmost surface of the lens.

(III)付記
上述の実施の形態には、例えば、以下のような内容が含まれる。
(III) Supplementary Notes The above-described embodiment includes, for example, the following contents.

上述の実施の形態においては、本発明を列車の物体検知システムに適用するようにした場合について述べたが、本発明はこれに限らず、作業者、製造機械などの作業主体がステレオカメラにおけるカメラと回転機構とを配置する配置方法、この他種々のシステム、装置、プログラムに広く適用することができる。 In the above embodiment, the present invention has been described as being applied to an object detection system for trains, but the present invention is not limited to this, and can be widely applied to a variety of systems, devices, and programs, including a method for an operator, manufacturing machine, or other task force to position the camera and rotation mechanism in a stereo camera.

また、上述の実施の形態において、プログラムの一部またはすべては、プログラムソースから、装置にインストールされてもよい。プログラムソースは、例えば、ネットワークで接続されたプログラム配布サーバまたはコンピュータが読み取り可能な記録媒体(例えば非一時的な記録媒体)であってもよい。また、上述の説明において、2以上のプログラムが1つのプログラムとして実現されてもよいし、1つのプログラムが2以上のプログラムとして実現されてもよい。 In the above-described embodiment, some or all of the programs may be installed in the device from a program source. The program source may be, for example, a program distribution server connected via a network or a computer-readable recording medium (e.g., a non-transitory recording medium). In the above description, two or more programs may be realized as one program, and one program may be realized as two or more programs.

上述した実施の形態は、例えば、以下の特徴的な構成を有する。 The above-described embodiment has the following characteristic configurations:

(1)
第1のカメラ(例えば、カメラ801)と、上記第1のカメラを回転させる第1の回転機構(例えば、回転機構811)と、第2のカメラ(例えば、カメラ802)と、上記第2のカメラを回転させる第2の回転機構(例えば、回転機構812)と、を含んで構成されるステレオカメラ(例えば、ステレオカメラ1300)であって、上記第1の回転機構の第1の回転軸(例えば、回転軸941)と上記第2の回転機構の第2の回転軸(例えば、回転軸942)との各々は、上記第1のカメラの第1の光軸(例えば、光軸931)と上記第2のカメラの第2の光軸(例えば、光軸932)との双方を含む平面に直行し、上記第1の回転軸は、上記第1の光軸と交差し、上記第2の回転軸は、上記第2の光軸と交差し、上記第1の回転軸および上記第1の光軸の交点から上記第1のカメラの第1の入射瞳位置(例えば、入射瞳921)までの距離と、上記第2の回転軸および上記第2の光軸の交点から上記第2のカメラの第2の入射瞳位置(例えば、入射瞳922)までの距離とが等しい。
(1)
A stereo camera (e.g., stereo camera 1300) including a first camera (e.g., camera 801), a first rotation mechanism (e.g., rotation mechanism 811) that rotates the first camera, a second camera (e.g., camera 802), and a second rotation mechanism (e.g., rotation mechanism 812) that rotates the second camera, wherein each of a first rotation axis (e.g., rotation axis 941) of the first rotation mechanism and a second rotation axis (e.g., rotation axis 942) of the second rotation mechanism is a rotation axis of the first camera. The first rotation axis is perpendicular to a plane containing both a first optical axis (e.g., optical axis 931) and a second optical axis (e.g., optical axis 932) of the second camera, the first rotation axis intersects the first optical axis, and the second rotation axis intersects the second optical axis, and the distance from the intersection of the first rotation axis and the first optical axis to a first entrance pupil position (e.g., entrance pupil 921) of the first camera is equal to the distance from the intersection of the second rotation axis and the second optical axis to a second entrance pupil position (e.g., entrance pupil 922) of the second camera.

(2)
上記第1の回転軸は、上記第1の入射瞳位置を通り、上記第2の回転軸は、上記第2の入射瞳位置を通る(例えば、図9参照)。上記構成では、回転軸が入射瞳位置を通っているので、例えば、精度よく座標変換をすることができる。
(2)
The first rotation axis passes through the first entrance pupil position, and the second rotation axis passes through the second entrance pupil position (see, for example, FIG. 9 ). In the above configuration, since the rotation axes pass through the entrance pupil position, for example, it is possible to perform coordinate transformation with high accuracy.

(3)
上記ステレオカメラを用いるステレオカメラシステム(例えば、物体検知システム800)であって、上記第1の回転機構および上記第2の回転機構にコントローラ部(例えば、コントローラ部820)から送られる回転角情報の回転角に基づいて、上記第1のカメラの第1の画像または上記第1の画像(例えば、カメラ801の撮影画像)に画像処理を施した加工画像(例えば、幾何補正画像)の少なくとも1つに補正処理(例えば、座標変換)を行い、上記回転角に基づいて、上記第2のカメラの第2の画像(例えば、カメラ801の撮影画像)または上記第2の画像に画像処理を施した加工画像(例えば、幾何補正画像)の少なくとも1つに補正処理(例えば、座標変換)を行う補正部(例えば、座標変換部840)を備える。
(3)
A stereo camera system (e.g., object detection system 800) using the stereo camera includes a correction unit (e.g., coordinate conversion unit 840) that performs a correction process (e.g., coordinate conversion) on at least one of a first image of the first camera or a processed image (e.g., geometric correction image) obtained by applying image processing to the first image (e.g., image captured by camera 801) based on a rotation angle of rotation angle information sent from a controller unit (e.g., controller unit 820) to the first rotation mechanism and the second rotation mechanism, and performs a correction process (e.g., coordinate conversion) on at least one of a second image of the second camera (e.g., image captured by camera 801) or a processed image (e.g., geometric correction image) obtained by applying image processing to the second image based on the rotation angle.

(4)
上記補正部は、上記第1の画像と上記第2の画像との各々について幾何補正を行う幾何補正部(例えば、幾何補正部830)と、上記幾何補正部により幾何補正が行われた第1の幾何補正画像および第2の幾何補正画像の各々について、上記回転角に基づいて画素値の座標変換を行う座標変換部(例えば、座標変換部840)と、上記座標変換部により座標変換が行われた第1の座標変換画像と第2の座標変換画像とを比較して、画素値ごとの視差値を含む視差画像を生成する視差画像生成部(例えば、視差画像生成部850)と、を備える。
(4)
The correction unit includes a geometric correction unit (e.g., geometric correction unit 830) that performs geometric correction on each of the first image and the second image, a coordinate conversion unit (e.g., coordinate conversion unit 840) that performs coordinate conversion of pixel values based on the rotation angle for each of the first geometrically corrected image and the second geometrically corrected image that have been geometrically corrected by the geometric correction unit, and a parallax image generation unit (e.g., parallax image generation unit 850) that compares the first coordinate converted image and the second coordinate converted image that have been coordinate converted by the coordinate conversion unit to generate a parallax image including a parallax value for each pixel value.

(5)
上記補正部は、上記第1の画像について幾何補正と上記回転角に基づく画素値の座標変換とを行い、上記第2の画像について幾何補正と上記回転角に基づく画素値の座標変換とを行う。
(5)
The correction unit performs geometric correction and coordinate conversion of pixel values based on the rotation angle on the first image, and performs geometric correction and coordinate conversion of pixel values based on the rotation angle on the second image.

(6)
上記座標変換部は、補正前の画像の各画素値をB(Ub,Vb)、上記補正前の画像の基準画素をB(Ub0,Vb0)、補正後の画像の各画素値をA(Ua,Va)、上記補正後の画像の基準画素をA(Ua0,Va0)、焦点距離をfc、x方向およびy方向の画素ピッチをpx,pyとするとき、基準角θ=0からの回転角Δθに応じて、
Ua=fc・tan(Δθ+α)/px+Ua0 ・・・(式1)
Va=Vb-Vb0+Va0 ・・・(式2)
α=atan((Ub-Ub0)・px/fc) ・・・(式3)
に従って座標変換を行う(例えば、図10参照)。
(6)
The coordinate conversion unit calculates, according to a rotation angle Δθ from a reference angle θ=0, the following: where each pixel value of the image before correction is B (Ub, Vb), a reference pixel of the image before correction is B (Ub0, Vb0), each pixel value of the image after correction is A (Ua, Va), a reference pixel of the image after correction is A (Ua0, Va0), a focal length is fc, and pixel pitches in the x and y directions are px, py.
Ua=fc・tan(Δθ+α)/px+Ua0...(Formula 1)
Va=Vb-Vb0+Va0...(Formula 2)
α=atan((Ub-Ub0)・px/fc)...(Formula 3)
(For example, see FIG. 10).

(7)
上記第1の光軸および上記第2の光軸が、上記第1の入射瞳位置と上記第2の入射瞳位置とを含む直線と直交する回転角が基準角として設定され、上記ステレオカメラシステムは、離散的な値の回転角を示す角度情報を、上記第1の回転機構および上記第2の回転機構に送るコントローラ部(例えば、コントローラ部820)を備える。
(7)
A rotation angle at which the first optical axis and the second optical axis are perpendicular to a line containing the first entrance pupil position and the second entrance pupil position is set as a reference angle, and the stereo camera system includes a controller unit (e.g., controller unit 820) that sends angle information indicating a rotation angle of a discrete value to the first rotation mechanism and the second rotation mechanism.

(8)
上記補正部は、上記第1のカメラと上記第2のカメラとの少なくとも1つのカメラが用いられて基準角で基準の画像が取得され、上記カメラの第1の回転角で第1の画像が取得され、上記カメラの第2の回転角で第2の画像が取得される場合、上記基準の画像に基づいて上記第1の画像の補正画像に対する校正を行い、上記第1の画像の校正後の画像に基づいて上記第2の画像の補正画像に対する校正を行う(例えば、図13参照)。
(8)
When at least one of the first camera and the second camera is used to acquire a reference image at a reference angle, a first image is acquired at a first rotation angle of the camera, and a second image is acquired at a second rotation angle of the camera, the correction unit calibrates the corrected image of the first image based on the reference image, and calibrates the corrected image of the second image based on the calibrated image of the first image (see, for example, Figure 13).

(9)
上記校正に用いる画像を取得する第nの回転角と第n+1の回転角との角度差は、半画角以下である(例えば、図13参照)。
(9)
The angle difference between the n-th rotation angle and the (n+1)-th rotation angle for acquiring the images used for the calibration is equal to or smaller than a half angle of view (see FIG. 13, for example).

(10)
上記補正部は、上記第1の画像と上記第2の画像との重複領域を用いて、上記第2の画像の補正画像が上記第1の画像の補正画像と一致するように各画素の補正式を校正するとともに、上記第2の画像の重複領域以外の領域を重複領域の校正結果から外挿して構成する(例えば、図13参照)。
(10)
The correction unit uses the overlapping area between the first image and the second image to calibrate the correction formula for each pixel so that the corrected image of the second image matches the corrected image of the first image, and constructs the area of the second image other than the overlapping area by extrapolating from the calibration result of the overlapping area (e.g., see Figure 13).

(11)
上記ステレオカメラシステムは、上記第1の回転機構および上記第2の回転機構を任意の回転角に位置付ける際、上記第1のカメラの回転および上記第2のカメラの回転を一方向に行うコントローラ部(例えば、コントローラ部820)を備える。
(11)
The stereo camera system includes a controller unit (e.g., controller unit 820) that rotates the first camera and the second camera in one direction when positioning the first rotation mechanism and the second rotation mechanism at any rotation angle.

また上述した構成については、本発明の要旨を超えない範囲において、適宜に、変更したり、組み替えたり、組み合わせたり、省略したりしてもよい。 Furthermore, the above-mentioned configurations may be modified, rearranged, combined, or omitted as appropriate without departing from the spirit and scope of the present invention.

「A、B、およびCのうちの少なくとも1つ」という形式におけるリストに含まれる項目は、(A)、(B)、(C)、(AおよびB)、(AおよびC)、(BおよびC)または(A、B、およびC)を意味することができると理解されたい。同様に、「A、B、またはCのうちの少なくとも1つ」の形式においてリストされた項目は、(A)、(B)、(C)、(AおよびB)、(AおよびC)、(BおよびC)または(A、B、およびC)を意味することができる。 It should be understood that an item in a list in the format "at least one of A, B, and C" can mean (A), (B), (C), (A and B), (A and C), (B and C), or (A, B, and C). Similarly, an item in a list in the format "at least one of A, B, or C" can mean (A), (B), (C), (A and B), (A and C), (B and C), or (A, B, and C).

800……物体検知システム、801……カメラ、802……カメラ、811……回転機構、812……回転機構、921……入射瞳(入射瞳位置)、922……入射瞳(入射瞳位置)、931……光軸、932……光軸、941……回転軸、942……回転軸。 800...object detection system, 801...camera, 802...camera, 811...rotation mechanism, 812...rotation mechanism, 921...entrance pupil (entrance pupil position), 922...entrance pupil (entrance pupil position), 931...optical axis, 932...optical axis, 941...rotation axis, 942...rotation axis.

Claims (10)

第1のカメラと、前記第1のカメラを回転させる第1の回転機構と、第2のカメラと、前記第2のカメラを回転させる第2の回転機構と、を含んで構成されるステレオカメラを用いるステレオカメラシステムであって、
前記第1の回転機構の第1の回転軸と前記第2の回転機構の第2の回転軸との各々は、前記第1のカメラの第1の光軸と前記第2のカメラの第2の光軸との双方を含む平面に直交し、
前記第1の回転軸は、前記第1の光軸と交差し、前記第2の回転軸は、前記第2の光軸と交差し、
前記第1の回転軸および前記第1の光軸の交点から前記第1のカメラの第1の入射瞳位置までの距離と、前記第2の回転軸および前記第2の光軸の交点から前記第2のカメラの第2の入射瞳位置までの距離とが等し
前記第1の回転機構および前記第2の回転機構にコントローラ部から送られる回転角情報の回転角に基づいて、前記第1のカメラの第1の画像または前記第1の画像に画像処理を施した加工画像の少なくとも1つに補正処理を行い、前記回転角に基づいて、前記第2のカメラの第2の画像または前記第2の画像に画像処理を施した加工画像の少なくとも1つに補正処理を行う補正部を備え、
前記補正部は、
前記第1の画像と前記第2の画像との各々について幾何補正を行う幾何補正部と、
前記幾何補正部により幾何補正が行われた第1の幾何補正画像および第2の幾何補正画像の各々について、前記回転角に基づいて画素値の座標変換を行う座標変換部と、
を備え、
前記座標変換部は、補正前の画像の各画素値をB(Ub,Vb)、前記補正前の画像の基準画素をB(Ub0,Vb0)、補正後の画像の各画素値をA(Ua,Va)、前記補正後の画像の基準画素をA(Ua0,Va0)、焦点距離をfc、x方向およびy方向の画素ピッチをpx,pyとするとき、基準角θ=0からの回転角Δθに応じて、
Ua=fc・tan(Δθ+α)/px+Ua0 ・・・(式1)
Va=Vb-Vb0+Va0 ・・・(式2)
α=atan((Ub-Ub0)・px/fc) ・・・(式3)
に従って座標変換を行う、
ステレオカメラシステム
A stereo camera system using a stereo camera including a first camera, a first rotation mechanism that rotates the first camera, a second camera, and a second rotation mechanism that rotates the second camera ,
a first rotation axis of the first rotation mechanism and a second rotation axis of the second rotation mechanism are each perpendicular to a plane including both a first optical axis of the first camera and a second optical axis of the second camera;
the first rotation axis intersects the first optical axis, and the second rotation axis intersects the second optical axis;
a distance from an intersection of the first rotation axis and the first optical axis to a first entrance pupil position of the first camera is equal to a distance from an intersection of the second rotation axis and the second optical axis to a second entrance pupil position of the second camera;
a correction unit that performs a correction process on at least one of a first image of the first camera or a processed image obtained by performing image processing on the first image, based on a rotation angle of rotation angle information sent from a controller unit to the first rotation mechanism and the second rotation mechanism, and performs a correction process on at least one of a second image of the second camera or a processed image obtained by performing image processing on the second image, based on the rotation angle;
The correction unit is
a geometric correction unit that performs geometric correction on each of the first image and the second image;
a coordinate conversion unit that performs coordinate conversion of pixel values on each of the first geometrically corrected image and the second geometrically corrected image that have been geometrically corrected by the geometric correction unit, based on the rotation angle;
Equipped with
The coordinate conversion unit calculates, according to a rotation angle Δθ from a reference angle θ=0, the following: where each pixel value of the image before correction is B (Ub, Vb), a reference pixel of the image before correction is B (Ub0, Vb0), each pixel value of the image after correction is A (Ua, Va), a reference pixel of the image after correction is A (Ua0, Va0), a focal length is fc, and pixel pitches in the x and y directions are px, py:
Ua=fc・tan(Δθ+α)/px+Ua0...(Formula 1)
Va=Vb-Vb0+Va0...(Formula 2)
α=atan((Ub-Ub0)・px/fc)...(Formula 3)
Perform coordinate transformation according to
Stereo camera system .
請求項1に記載のステレオカメラシステムであって、
前記第1の回転軸は、前記第1の入射瞳位置を通り、前記第2の回転軸は、前記第2の入射瞳位置を通る、
ステレオカメラシステム
2. The stereo camera system according to claim 1,
the first axis of rotation passes through the first entrance pupil position and the second axis of rotation passes through the second entrance pupil position.
Stereo camera system .
請求項に記載のステレオカメラシステムであって、
前記補正部は、
前記座標変換部により座標変換が行われた第1の座標変換画像と第2の座標変換画像とを比較して、画素値ごとの視差値を含む視差画像を生成する視差画像生成部を備える、
ステレオカメラシステム。
2. The stereo camera system according to claim 1 ,
The correction unit is
a parallax image generating unit that compares a first coordinate transformed image, which has been subjected to coordinate transformation by the coordinate transformation unit, with a second coordinate transformed image, to generate a parallax image including a parallax value for each pixel value;
Stereo camera system.
請求項に記載のステレオカメラシステムであって、
前記補正部は、前記第1の画像について幾何補正と前記回転角に基づく画素値の座標変換とを行い、前記第2の画像について幾何補正と前記回転角に基づく画素値の座標変換とを行う、
ステレオカメラシステム。
2. The stereo camera system according to claim 1 ,
the correction unit performs geometric correction and coordinate conversion of pixel values based on the rotation angle on the first image, and performs geometric correction and coordinate conversion of pixel values based on the rotation angle on the second image.
Stereo camera system.
請求項1に記載のステレオカメラシステムであって、
前記第1の光軸および前記第2の光軸が、前記第1の入射瞳位置と前記第2の入射瞳位置とを含む直線と直交する回転角が基準角として設定され、
離散的な値の回転角を示す角度情報を、前記第1の回転機構および前記第2の回転機構に送るコントローラ部を備える、
ステレオカメラシステム。
2. The stereo camera system according to claim 1,
a rotation angle at which the first optical axis and the second optical axis are perpendicular to a line including the first entrance pupil position and the second entrance pupil position is set as a reference angle;
a controller unit that transmits angle information indicating a rotation angle of a discrete value to the first rotation mechanism and the second rotation mechanism;
Stereo camera system.
請求項に記載のステレオカメラシステムであって、
前記補正部は、前記第1のカメラと前記第2のカメラとの少なくとも1つのカメラが用いられて基準角で基準の画像が取得され、前記カメラの第1の回転角で第1の画像が取得され、前記カメラの第2の回転角で第2の画像が取得される場合、前記基準の画像に基づいて前記第1の画像の補正画像に対する校正を行い、前記第1の画像の校正後の画像に基づいて前記第2の画像の補正画像に対する校正を行う、
ステレオカメラシステム。
2. The stereo camera system according to claim 1 ,
when at least one of the first camera and the second camera is used to acquire a reference image at a reference angle, a first image is acquired at a first rotation angle of the camera, and a second image is acquired at a second rotation angle of the camera, the correction unit calibrates the corrected image of the first image based on the reference image, and calibrates the corrected image of the second image based on an image after calibration of the first image;
Stereo camera system.
請求項に記載のステレオカメラシステムであって、
前記校正に用いる画像を取得する第nの回転角と第n+1の回転角との角度差は、半画角以下である、
ステレオカメラシステム。
7. The stereo camera system according to claim 6 ,
an angle difference between the n-th rotation angle and the (n+1)-th rotation angle for acquiring the image used for the calibration is equal to or smaller than a half angle of view;
Stereo camera system.
請求項に記載のステレオカメラシステムであって、
前記補正部は、前記第1の画像と前記第2の画像との重複領域を用いて、前記第2の画像の補正画像が前記第1の画像の補正画像と一致するように各画素の補正式を校正するとともに、前記第2の画像の重複領域以外の領域を重複領域の校正結果から外挿して構成する、
ステレオカメラシステム。
7. The stereo camera system according to claim 6 ,
the correction unit calibrates a correction equation for each pixel using an overlapping area between the first image and the second image so that a corrected image of the second image coincides with a corrected image of the first image, and configures an area of the second image other than the overlapping area by extrapolating from the calibration result of the overlapping area.
Stereo camera system.
請求項1に記載のステレオカメラシステムであって、
前記第1の回転機構および前記第2の回転機構を任意の回転角に位置付ける際、前記第1のカメラの回転および前記第2のカメラの回転を一方向に行うコントローラ部を備える、
ステレオカメラシステム。
2. The stereo camera system according to claim 1,
a controller unit that rotates the first camera and the second camera in one direction when the first rotation mechanism and the second rotation mechanism are positioned at any rotation angle;
Stereo camera system.
ステレオカメラシステムに用いられるステレオカメラにおけるカメラと回転機構との配置方法であって、
前記ステレオカメラは、第1のカメラと、前記第1のカメラを回転させる第1の回転機構と、第2のカメラと、前記第2のカメラを回転させる第2の回転機構と、を含んで構成され、
前記第1の回転機構の第1の回転軸と前記第2の回転機構の第2の回転軸との各々は、前記第1のカメラの第1の光軸と前記第2のカメラの第2の光軸との双方を含む平面に直交し、
前記第1の回転軸は、前記第1の光軸と交差し、前記第2の回転軸は、前記第2の光軸と交差し、
前記第1の回転軸および前記第1の光軸の交点から前記第1のカメラの第1の入射瞳位置までの距離と、前記第2の回転軸および前記第2の光軸の交点から前記第2のカメラの第2の入射瞳位置までの距離とが等しくなるように配置され
前記ステレオカメラシステムは、前記第1の回転機構および前記第2の回転機構にコントローラ部から送られる回転角情報の回転角に基づいて、前記第1のカメラの第1の画像または前記第1の画像に画像処理を施した加工画像の少なくとも1つに補正処理を行い、前記回転角に基づいて、前記第2のカメラの第2の画像または前記第2の画像に画像処理を施した加工画像の少なくとも1つに補正処理を行う補正部を備え、
前記補正部は、
前記第1の画像と前記第2の画像との各々について幾何補正を行う幾何補正部と、
前記幾何補正部により幾何補正が行われた第1の幾何補正画像および第2の幾何補正画像の各々について、前記回転角に基づいて画素値の座標変換を行う座標変換部と、
を備え、
前記座標変換部は、補正前の画像の各画素値をB(Ub,Vb)、前記補正前の画像の基準画素をB(Ub0,Vb0)、補正後の画像の各画素値をA(Ua,Va)、前記補正後の画像の基準画素をA(Ua0,Va0)、焦点距離をfc、x方向およびy方向の画素ピッチをpx,pyとするとき、基準角θ=0からの回転角Δθに応じて、
Ua=fc・tan(Δθ+α)/px+Ua0 ・・・(式1)
Va=Vb-Vb0+Va0 ・・・(式2)
α=atan((Ub-Ub0)・px/fc) ・・・(式3)
に従って座標変換を行う、
配置方法。
A method for arranging a camera and a rotation mechanism in a stereo camera used in a stereo camera system , comprising:
the stereo camera includes a first camera, a first rotation mechanism that rotates the first camera, a second camera, and a second rotation mechanism that rotates the second camera;
a first rotation axis of the first rotation mechanism and a second rotation axis of the second rotation mechanism are each perpendicular to a plane including both a first optical axis of the first camera and a second optical axis of the second camera;
the first rotation axis intersects the first optical axis, and the second rotation axis intersects the second optical axis;
a distance from an intersection of the first rotation axis and the first optical axis to a first entrance pupil position of the first camera is equal to a distance from an intersection of the second rotation axis and the second optical axis to a second entrance pupil position of the second camera;
the stereo camera system includes a correction unit that performs a correction process on at least one of a first image of the first camera or a processed image obtained by performing image processing on the first image based on a rotation angle of rotation angle information sent from a controller unit to the first rotation mechanism and the second rotation mechanism, and performs a correction process on at least one of a second image of the second camera or a processed image obtained by performing image processing on the second image based on the rotation angle;
The correction unit is
a geometric correction unit that performs geometric correction on each of the first image and the second image;
a coordinate conversion unit that performs coordinate conversion of pixel values on each of the first geometrically corrected image and the second geometrically corrected image that have been geometrically corrected by the geometric correction unit, based on the rotation angle;
Equipped with
The coordinate conversion unit calculates, according to a rotation angle Δθ from a reference angle θ=0, the following: where each pixel value of the image before correction is B (Ub, Vb), a reference pixel of the image before correction is B (Ub0, Vb0), each pixel value of the image after correction is A (Ua, Va), a reference pixel of the image after correction is A (Ua0, Va0), a focal length is fc, and pixel pitches in the x and y directions are px, py:
Ua=fc・tan(Δθ+α)/px+Ua0...(Formula 1)
Va=Vb-Vb0+Va0...(Formula 2)
α=atan((Ub-Ub0)・px/fc)...(Formula 3)
Perform coordinate transformation according to
Placement method.
JP2021197018A 2021-12-03 2021-12-03 Stereo camera, stereo camera system, and arrangement method Active JP7633143B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021197018A JP7633143B2 (en) 2021-12-03 2021-12-03 Stereo camera, stereo camera system, and arrangement method
PCT/JP2022/038983 WO2023100516A1 (en) 2021-12-03 2022-10-19 Stereo camera, stereo camera system, and arrangement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021197018A JP7633143B2 (en) 2021-12-03 2021-12-03 Stereo camera, stereo camera system, and arrangement method

Publications (3)

Publication Number Publication Date
JP2023082965A JP2023082965A (en) 2023-06-15
JP2023082965A5 JP2023082965A5 (en) 2024-04-25
JP7633143B2 true JP7633143B2 (en) 2025-02-19

Family

ID=86611836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021197018A Active JP7633143B2 (en) 2021-12-03 2021-12-03 Stereo camera, stereo camera system, and arrangement method

Country Status (2)

Country Link
JP (1) JP7633143B2 (en)
WO (1) WO2023100516A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264396A (en) 2006-03-29 2007-10-11 Canon Inc Camera system
WO2017199556A1 (en) 2016-05-17 2017-11-23 富士フイルム株式会社 Stereo camera and stereo camera control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5365387B2 (en) * 2009-07-17 2013-12-11 株式会社ニコン Position detection device
JP6592277B2 (en) * 2015-06-04 2019-10-16 シャープ株式会社 Measuring device, calibration method and program
JP2018031733A (en) * 2016-08-26 2018-03-01 株式会社豊田中央研究所 Distance measuring device and distance measuring method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264396A (en) 2006-03-29 2007-10-11 Canon Inc Camera system
WO2017199556A1 (en) 2016-05-17 2017-11-23 富士フイルム株式会社 Stereo camera and stereo camera control method

Also Published As

Publication number Publication date
JP2023082965A (en) 2023-06-15
WO2023100516A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
US8452568B2 (en) Method for calibrating cameras installed on vehicle
US10319111B2 (en) Image projection device for 3D measurement and calibration method for calibration of camera and projector
JP4861034B2 (en) Car camera calibration system
JP6427900B2 (en) Calibration method, calibration system, program, and moving object
JP6767998B2 (en) Estimating external parameters of the camera from the lines of the image
JP6079333B2 (en) Calibration apparatus, method and program
US8711213B2 (en) Correction information calculating device, image processing apparatus, image display system, and image correcting method
JP5401940B2 (en) Projection optical system zoom ratio measurement method, projection image correction method using the zoom ratio measurement method, and projector for executing the correction method
US20170277961A1 (en) Automatic surround view homography matrix adjustment, and system and method for calibration thereof
JP6209833B2 (en) Inspection tool, inspection method, stereo camera production method and system
EP1602894A1 (en) Projector with a device for measuring angle of inclination
KR102538592B1 (en) Apparatus for generating top-view image and method thereof
JP6791341B2 (en) Calibration method, calibration equipment, and program
JP2009031150A (en) Three-dimensional shape measuring apparatus, three-dimensional shape measuring method, three-dimensional shape measuring program, and recording medium
JP2008187566A (en) Camera calibration apparatus and method and vehicle
JP2008187564A (en) Camera calibration apparatus and method, and vehicle
JP2009069146A (en) Method and device for three dimensionally digitizing object
WO2015045329A1 (en) Vehicle periphery image display device, and camera adjustment method
JP6669182B2 (en) Occupant monitoring device
JP2013024712A (en) Method and system for calibrating multiple camera
JP6582683B2 (en) Angle calculation system, angle calculation device, program, and angle calculation method
WO2019058729A1 (en) Stereo camera
JP4969279B2 (en) Position detection method and position detection apparatus
EP4012495B1 (en) Method for correcting stereocamera and device for correcting stereocamera
JP4715334B2 (en) Vehicular image generation apparatus and method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240417

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240417

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250206

R150 Certificate of patent or registration of utility model

Ref document number: 7633143

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150