JP2023142834A - Camera calibration device, camera calibration method, and camera calibration program - Google Patents

Camera calibration device, camera calibration method, and camera calibration program Download PDF

Info

Publication number
JP2023142834A
JP2023142834A JP2022049950A JP2022049950A JP2023142834A JP 2023142834 A JP2023142834 A JP 2023142834A JP 2022049950 A JP2022049950 A JP 2022049950A JP 2022049950 A JP2022049950 A JP 2022049950A JP 2023142834 A JP2023142834 A JP 2023142834A
Authority
JP
Japan
Prior art keywords
camera
calibration
information
attitude information
attitude
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
JP2022049950A
Other languages
Japanese (ja)
Inventor
恭平 奥川
Kyohei Okugawa
将由 道口
Masayoshi Michiguchi
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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co 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 Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2022049950A priority Critical patent/JP2023142834A/en
Publication of JP2023142834A publication Critical patent/JP2023142834A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Studio Devices (AREA)

Abstract

To improve the accuracy of calibrating a camera and work efficiency.SOLUTION: A camera calibration device 10 comprises an image acquisition circuit 16A, a first attitude information acquisition circuit 16B, a second attitude information acquisition circuit 16C, a calculation circuit 16D, and a correction circuit 16E. The image acquisition circuit 16A acquires a photographic image, which is obtained by a camera 20, of a marker for calibration 40 provided on a display unit 30 (information apparatus) comprising an attitude sensor 34. The first attitude information acquisition circuit 16B acquires first attitude information on the marker for calibration during photographing of the photographic image. The second attitude information acquisition circuit 16C acquires second attitude information on a device mounted with the camera (vehicle 2). The calculation circuit 16D calculates the amount of calibration according to camera attitude information on the camera 20 derived based on the marker for calibration included in the photographic image. The correction circuit 16E corrects the amount of calibration calculated by the calculation circuit 16D based on the difference between the first attitude information and the second attitude information.SELECTED DRAWING: Figure 4

Description

本開示は、カメラ校正装置、カメラ校正方法、およびカメラ校正プログラムに関する。 The present disclosure relates to a camera calibration device, a camera calibration method, and a camera calibration program.

従来、車両や計測機器等のカメラ搭載機器に搭載されたカメラの取り付け誤差を、販売元や製造元等で校正することが行われている。例えば、車両に対して正確な角度で床面に配置された校正用マーカを車載カメラで撮影し、撮影画像に含まれるマーカの特徴点等を用いてカメラの姿勢のずれ量を算出する方法が開示されている(例えば、特許文献1~特許文献3参照)。 BACKGROUND ART Conventionally, installation errors of cameras mounted on camera-equipped devices such as vehicles and measuring instruments have been calibrated by vendors, manufacturers, and the like. For example, there is a method in which a calibration marker placed on the floor at an accurate angle to the vehicle is photographed using an on-vehicle camera, and the amount of deviation in the camera's posture is calculated using the characteristic points of the marker included in the photographed image. (For example, see Patent Documents 1 to 3).

特開2009-118414号公報Japanese Patent Application Publication No. 2009-118414 特開2016-30554号公報Japanese Patent Application Publication No. 2016-30554 特開2012-123750号公報Japanese Patent Application Publication No. 2012-123750

しかしながら、従来技術では、車両等のカメラの搭載機器の周囲に、搭載機器に対して正確な位置に校正用マーカを配置することが困難である場合には校正精度が低下することがあった。また、校正用マーカを正確な位置に設置するには、多大な作業時間がかかってしまう場合が多い。 However, in the conventional technology, when it is difficult to arrange a calibration marker at an accurate position with respect to the mounted equipment around the mounted equipment of a camera such as a vehicle, the calibration accuracy may deteriorate. Moreover, it often takes a great deal of work time to install the calibration marker at an accurate position.

本開示の非限定的な実施例は、カメラの校正精度の向上を図ることができる、カメラ校正装置、カメラ校正方法、およびカメラ校正プログラムの提供に資する。 Non-limiting embodiments of the present disclosure contribute to providing a camera calibration device, a camera calibration method, and a camera calibration program that can improve camera calibration accuracy.

本開示にかかるカメラ校正装置は、画像取得回路と、第1姿勢情報取得回路と、第2姿勢情報取得回路と、算出回路と、補正回路と、を備える。画像取得回路は、姿勢センサを備えた情報機器に設けられた校正用マーカの、カメラによる撮影画像を取得する。第1姿勢情報取得回路は、前記撮影画像の撮影時の前記校正用マーカの第1姿勢情報を取得する。第2姿勢情報取得回路は、前記カメラの搭載装置の第2姿勢情報を取得する。算出回路は、前記撮影画像に含まれる前記校正用マーカに基づいて導出した前記カメラのカメラ姿勢情報に応じた校正量を算出する。補正回路は、前記校正量を、前記第1姿勢情報と前記第2姿勢情報との差に基づいて補正する。 A camera calibration device according to the present disclosure includes an image acquisition circuit, a first attitude information acquisition circuit, a second attitude information acquisition circuit, a calculation circuit, and a correction circuit. The image acquisition circuit acquires an image taken by a camera of a calibration marker provided on an information device equipped with an attitude sensor. The first posture information acquisition circuit acquires first posture information of the calibration marker at the time of photographing the photographed image. The second posture information acquisition circuit acquires second posture information of the camera mounting device. The calculation circuit calculates a calibration amount according to camera attitude information of the camera derived based on the calibration marker included in the photographed image. The correction circuit corrects the correction amount based on a difference between the first attitude information and the second attitude information.

本開示にかかるカメラ校正装置、カメラ校正方法、およびカメラ校正プログラムによれば、カメラの校正精度および作業効率の向上を図ることができる。 According to the camera calibration device, camera calibration method, and camera calibration program according to the present disclosure, camera calibration accuracy and work efficiency can be improved.

図1は、本実施形態の校正システムの一例を示す模式図である。FIG. 1 is a schematic diagram showing an example of a calibration system according to this embodiment. 図2Aは、表示部に表示された校正用マーカの一例の模式図である。FIG. 2A is a schematic diagram of an example of a calibration marker displayed on the display unit. 図2Bは、表示部に表示された校正用マーカの一例の模式図である。FIG. 2B is a schematic diagram of an example of a calibration marker displayed on the display unit. 図3は、カメラ校正装置および表示装置の一例のハードウェア構成図である。FIG. 3 is a hardware configuration diagram of an example of a camera calibration device and a display device. 図4は、校正システムの機能的構成の一例のブロック図である。FIG. 4 is a block diagram of an example of the functional configuration of the calibration system. 図5Aは、車両と表示装置との位置関係の一例の説明図である。FIG. 5A is an explanatory diagram of an example of the positional relationship between the vehicle and the display device. 図5Bは、車両と表示装置との位置関係の一例の説明図である。FIG. 5B is an explanatory diagram of an example of the positional relationship between the vehicle and the display device. 図6は、撮影画像の一例の模式図である。FIG. 6 is a schematic diagram of an example of a photographed image. 図7Aは、第1姿勢情報を表す画像の表示形態の一例を示す模式図である。FIG. 7A is a schematic diagram illustrating an example of a display form of an image representing first posture information. 図7Bは、第1姿勢情報を表す画像の表示形態の一例を示す模式図である。FIG. 7B is a schematic diagram showing an example of a display form of an image representing the first posture information. 図8は、カメラ姿勢情報の算出の一例の説明図である。FIG. 8 is an explanatory diagram of an example of calculation of camera posture information. 図9Aは、第1姿勢情報と第2姿勢情報との差の算出の一例の説明図である。FIG. 9A is an explanatory diagram of an example of calculating the difference between the first attitude information and the second attitude information. 図9Bは、第1姿勢情報と第2姿勢情報との差の算出の一例の説明図である。FIG. 9B is an explanatory diagram of an example of calculating the difference between the first attitude information and the second attitude information. 図9Cは、第1姿勢情報と第2姿勢情報との差の算出の一例の説明図である。FIG. 9C is an explanatory diagram of an example of calculation of the difference between the first attitude information and the second attitude information. 図10は、本実施形態の表示装置が実行する情報処理の流れの一例を示すフローチャートである。FIG. 10 is a flowchart illustrating an example of the flow of information processing executed by the display device of this embodiment. 図11は、カメラ校正装置で実行される情報処理の流れの一例を示すフローチャートである。FIG. 11 is a flowchart showing an example of the flow of information processing executed by the camera calibration device.

以下に添付図面を参照して、本開示に係るカメラ校正装置、カメラ校正方法、およびカメラ校正プログラムの実施形態について説明する。 Embodiments of a camera calibration device, a camera calibration method, and a camera calibration program according to the present disclosure will be described below with reference to the accompanying drawings.

図1を用いて、本実施形態の校正システム1の構成を説明する。 The configuration of a calibration system 1 of this embodiment will be explained using FIG. 1.

校正システム1は、搭載機器に搭載されたカメラ20の取り付け誤差を校正するシステムである。搭載機器は、カメラを搭載可能な機器であればよい。詳細には、搭載機器は、搭載されたカメラの撮影画像を用いて各種の処理を実行する機器である。搭載機器は、具体的には、例えば、車両、計測機器、等である。本実施形態では、搭載機器が、車両2である形態を一例として説明する。 The calibration system 1 is a system that calibrates the installation error of the camera 20 mounted on the mounted equipment. The mounted device may be any device that can mount a camera. Specifically, the on-board device is a device that executes various processes using images captured by the on-board camera. Specifically, the onboard equipment is, for example, a vehicle, a measuring device, or the like. In this embodiment, an example in which the onboard equipment is the vehicle 2 will be described.

校正システム1は、カメラ校正装置10と、カメラ20と、姿勢センサ22と、表示装置30と、を備える。 The calibration system 1 includes a camera calibration device 10, a camera 20, an attitude sensor 22, and a display device 30.

カメラ校正装置10は、車両2に搭載されたカメラ20の取り付け誤差を校正するための情報処理装置である。例えば、カメラ校正装置10は、車両2に搭載されたECU(Electronic Control Unit)等によって実現される。 The camera calibration device 10 is an information processing device for calibrating the installation error of the camera 20 mounted on the vehicle 2. For example, the camera calibration device 10 is realized by an ECU (Electronic Control Unit) or the like mounted on the vehicle 2.

カメラ20は校正対象の機器であり、撮影によって撮影画像データを得る。本実施形態では、撮影画像データを単に撮影画像と称して説明する。 The camera 20 is a device to be calibrated, and obtains photographed image data by photographing. In this embodiment, photographed image data will be simply referred to as a photographed image.

本実施形態では、カメラ20は車両2に搭載されている。例えば、車両2には、撮影方向の異なる複数のカメラ20が取り付けられている。図1には、車両2の前方を撮影するカメラ20A、車両2の後方を撮影するカメラ20D、車両2の周囲の車幅方向を撮影するカメラ20Cおよびカメラ20D、が車両2に設けられた形態を一例として示す。なお、車両2に搭載される車両2の数および位置は、図1に示す例に限定されない。 In this embodiment, the camera 20 is mounted on the vehicle 2. For example, the vehicle 2 is equipped with a plurality of cameras 20 that take pictures in different directions. FIG. 1 shows a configuration in which the vehicle 2 is provided with a camera 20A for photographing the front of the vehicle 2, a camera 20D for photographing the rear of the vehicle 2, and a camera 20C and a camera 20D for photographing the surroundings of the vehicle 2 in the vehicle width direction. is shown as an example. Note that the number and positions of vehicles 2 mounted on vehicle 2 are not limited to the example shown in FIG.

姿勢センサ22は、車両2の姿勢情報である第2姿勢情報を検出するセンサである。 The attitude sensor 22 is a sensor that detects second attitude information that is attitude information of the vehicle 2.

姿勢情報は、ロール角、ピッチ角、ヨー角によって表される。ロール角は、ロール軸であるZ軸を回転軸とした回転角である。ピッチ角は、ピッチ軸であるX軸を回転軸とした回転角である。ヨー角は、ヨー軸であるY軸を回転軸とした回転角である。 Attitude information is represented by roll angle, pitch angle, and yaw angle. The roll angle is a rotation angle about the Z axis, which is the roll axis, as the rotation axis. The pitch angle is a rotation angle with the X axis as the pitch axis as the rotation axis. The yaw angle is a rotation angle with the Y axis, which is the yaw axis, as the rotation axis.

姿勢センサ22としては、例えば、3軸角度センサおよび地磁気センサが挙げられる。本実施形態では、姿勢センサ22は、地磁気センサによって得られる各方位および水平面を基準とする、3軸角度センサによって検出されたXYZ軸の各々の軸回りの傾きであるロール角、ピッチ角、およびヨー角を含む第2姿勢情報を検出する。 Examples of the attitude sensor 22 include a three-axis angle sensor and a geomagnetic sensor. In the present embodiment, the attitude sensor 22 measures a roll angle, a pitch angle, which is a tilt around each of the XYZ axes detected by a three-axis angle sensor, based on each direction obtained by a geomagnetic sensor and a horizontal plane, and Second attitude information including a yaw angle is detected.

表示装置30は、校正用マーカ40を表示する情報処理装置である。表示装置30は、携帯端末、タブレット端末、パーソナルコンピュータ等である。本実施形態では、表示装置30がタブレット端末である形態を一例として説明する。 The display device 30 is an information processing device that displays the calibration marker 40. The display device 30 is a mobile terminal, a tablet terminal, a personal computer, or the like. In this embodiment, an example in which the display device 30 is a tablet terminal will be described.

表示装置30は、表示部32と、姿勢センサ34と、を有する。表示部32は、2次元平面である表示面に各種の情報を表示する。表示部32は、各種の情報を表示するディスプレイ、または、モニタである。 The display device 30 includes a display section 32 and a posture sensor 34. The display unit 32 displays various information on a display surface that is a two-dimensional plane. The display unit 32 is a display or a monitor that displays various information.

姿勢センサ34は、表示部32に表示された校正用マーカ40の姿勢情報である第1姿勢情報を検出するセンサである。本実施形態では、姿勢センサ34は、校正用マーカ40を表示した表示部32であるディスプレイの姿勢情報を、校正用マーカ40の第1姿勢情報として検出する。 The attitude sensor 34 is a sensor that detects first attitude information that is attitude information of the calibration marker 40 displayed on the display unit 32. In this embodiment, the attitude sensor 34 detects the attitude information of the display, which is the display unit 32 that displays the calibration marker 40, as the first attitude information of the calibration marker 40.

姿勢センサ34としては、3軸角度センサおよび地磁気センサが挙げられる。本実施形態では、姿勢センサ34は、地磁気センサによって得られる各方位および水平面を基準とする、3軸角度センサによって検出されたXYZ軸の各々の軸回りの傾きであるロール角、ピッチ角、およびヨー角を含む第2姿勢情報を検出する。 The attitude sensor 34 includes a three-axis angle sensor and a geomagnetic sensor. In the present embodiment, the attitude sensor 34 measures a roll angle, a pitch angle, which is a tilt around each of the XYZ axes detected by a three-axis angle sensor, based on each azimuth obtained by a geomagnetic sensor and a horizontal plane, and Second attitude information including a yaw angle is detected.

校正用マーカ40とは、カメラ20の校正に用いられる指標である。例えば、校正用マーカ40は、ドット、複数の直線、等によって表される1または複数のパタンを含む。本実施形態では、校正用マーカ40が、互いに交差する方向に配列された平行線を含む形態を一例として説明する。平行線は、平行な複数の直線から構成される。 The calibration marker 40 is an index used to calibrate the camera 20. For example, the calibration marker 40 includes one or more patterns represented by dots, a plurality of straight lines, or the like. In this embodiment, an example will be described in which the calibration markers 40 include parallel lines arranged in directions that intersect with each other. A parallel line is composed of a plurality of parallel straight lines.

図2Aは、格子状の校正用マーカ40の一例の模式図である。例えば、校正用マーカ40は、複数の平行線L1と、平行線L1に対して交差する方向に配列された複数の平行線L2と、を含む。平行線L1および平行線L2は、校正用マーカ40によって構成される平行線Lの一例である。図2Aには、平行線L1と平行線L2とが直交する方向に交差する形態を一例として示す。 FIG. 2A is a schematic diagram of an example of a grid-like calibration marker 40. For example, the calibration marker 40 includes a plurality of parallel lines L1 and a plurality of parallel lines L2 arranged in a direction intersecting the parallel lines L1. The parallel line L1 and the parallel line L2 are examples of the parallel line L formed by the calibration marker 40. FIG. 2A shows, as an example, a configuration in which parallel lines L1 and L2 intersect in orthogonal directions.

図2Bは、平行四辺形状の校正用マーカ40の一例の模式図である。例えば、校正用マーカ40は、平行線L1と、平行線L2と、からなる1または複数の平行四辺形のパタンによって表される。 FIG. 2B is a schematic diagram of an example of a parallelogram-shaped calibration marker 40. For example, the calibration marker 40 is represented by one or more parallelogram patterns including a parallel line L1 and a parallel line L2.

本実施形態では、校正用マーカ40が、図2Aに示す格子状のパタンである形態を一例として説明する。本実施形態では、校正用マーカ40が、複数の平行線L1と、平行線L1に対して直交する方向に配列された複数の平行線L2と、を含むパタンである形態を一例として説明する。 In this embodiment, an example in which the calibration marker 40 has a grid pattern shown in FIG. 2A will be described. In this embodiment, an example will be described in which the calibration marker 40 is a pattern including a plurality of parallel lines L1 and a plurality of parallel lines L2 arranged in a direction orthogonal to the parallel lines L1.

図1に戻り説明を続ける。表示装置30は、カメラ20の校正時に、ユーザによって校正対象のカメラ20の撮影画角内に配置される。図1には、カメラ20Aが校正対象のカメラ20である形態を一例として示す。カメラ20によって表示装置30の表示部32に表示された校正用マーカ40が撮影され、撮影によって得られた撮影画像は、カメラ校正装置10による後述する処理で用いられる。 Returning to FIG. 1, the explanation will be continued. The display device 30 is placed within the photographing angle of view of the camera 20 to be calibrated by the user when calibrating the camera 20 . FIG. 1 shows, as an example, a configuration in which the camera 20A is the camera 20 to be calibrated. The calibration marker 40 displayed on the display unit 32 of the display device 30 is photographed by the camera 20, and the photographed image obtained by the photographing is used in processing by the camera calibration device 10, which will be described later.

図3を用いて、カメラ校正装置10および表示装置30の構成を説明する。 The configurations of the camera calibration device 10 and the display device 30 will be explained using FIG. 3.

カメラ校正装置10および表示装置30は、CPU(Central Processing Unit)90A、ROM(Read Only Memory)90B、RAM90C、およびI/F90D等がバス90Eにより相互に接続されており、通常のコンピュータを利用したハードウェア構成となっている。 The camera calibration device 10 and the display device 30 have a CPU (Central Processing Unit) 90A, a ROM (Read Only Memory) 90B, a RAM 90C, an I/F 90D, etc. connected to each other by a bus 90E, and can be configured using a normal computer. It has a hardware configuration.

CPU90Aは、本実施形態のカメラ校正装置10および表示装置30を制御する演算装置である。ROM90Bは、CPU90Aによる各種の処理を実現するプログラム等を記憶する。RAM90Cは、CPU90Aによる各種の処理に使用するデータを記憶する。I/F90Dは、データを送受信するためのインターフェースである。 The CPU 90A is a calculation device that controls the camera calibration device 10 and the display device 30 of this embodiment. The ROM 90B stores programs and the like that implement various processes by the CPU 90A. The RAM 90C stores data used for various processing by the CPU 90A. I/F90D is an interface for transmitting and receiving data.

本実施形態のカメラ校正装置10および表示装置30で実行される情報処理を実行するためのプログラムは、ROM90B等に予め組み込んで提供される。なお、本実施形態のカメラ校正装置10および表示装置30で実行されるプログラムは、カメラ校正装置10および表示装置30にインストール可能な形式又は実行可能な形式のファイルでCD-ROM、フレキシブルディスク(FD)、CD-R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録されて提供するように構成してもよい。 A program for executing information processing executed by the camera calibration device 10 and the display device 30 of this embodiment is provided by being pre-installed in the ROM 90B or the like. Note that the program executed by the camera calibration device 10 and the display device 30 of this embodiment is a file in a format that can be installed or executable in the camera calibration device 10 and the display device 30, and can be stored on a CD-ROM or a flexible disk (FD). ), CD-R, DVD (Digital Versatile Disk), or the like may be configured to be recorded and provided on a computer-readable recording medium.

次に、校正システム1の機能的構成について、図4を用いて詳細に説明する。 Next, the functional configuration of the calibration system 1 will be described in detail using FIG. 4.

上述したように、校正システム1は、カメラ校正装置10と、カメラ20と、姿勢センサ22と、表示装置30と、を備える。カメラ校正装置10と、カメラ20、姿勢センサ22、および表示装置30とは、通信可能に接続されている。 As described above, the calibration system 1 includes the camera calibration device 10, the camera 20, the attitude sensor 22, and the display device 30. The camera calibration device 10, the camera 20, the attitude sensor 22, and the display device 30 are communicably connected.

表示装置30は、表示部32と、入力部33と、姿勢センサ34と、記憶部35と、通信部36と、処理部37と、を備える。表示部32、入力部33、姿勢センサ34、記憶部35、通信部36、および処理部37は、バス38などを介して通信可能に接続されている。 The display device 30 includes a display section 32 , an input section 33 , a posture sensor 34 , a storage section 35 , a communication section 36 , and a processing section 37 . The display section 32, the input section 33, the posture sensor 34, the storage section 35, the communication section 36, and the processing section 37 are communicably connected via a bus 38 or the like.

入力部33は、ユーザによる操作入力を受付ける。入力部33は、例えば、マウス等のポインティングデバイス、キーボード等である。なお、表示部32および入力部33は、一体的に構成されたタッチパネルであってもよい。 The input unit 33 receives operation input from the user. The input unit 33 is, for example, a pointing device such as a mouse, a keyboard, or the like. Note that the display section 32 and the input section 33 may be an integrated touch panel.

記憶部35は、各種のデータを記憶する。本実施形態では、記憶部35は、表示部32に表示するための校正用マーカ40の画像データを予め記憶する。 The storage unit 35 stores various data. In this embodiment, the storage unit 35 stores in advance image data of the calibration marker 40 to be displayed on the display unit 32.

通信部36は、カメラ校正装置10などの外部の情報処理装置と通信するための通信インターフェースである。処理部37は、各種の情報処理を実行する。 The communication unit 36 is a communication interface for communicating with an external information processing device such as the camera calibration device 10. The processing unit 37 executes various information processing.

カメラ校正装置10は、通信部12と、記憶部14と、処理部16と、を備える。通信部12、記憶部14、および処理部16は、バス18等を介して通信可能に接続されている。 The camera calibration device 10 includes a communication section 12, a storage section 14, and a processing section 16. The communication unit 12, storage unit 14, and processing unit 16 are communicably connected via a bus 18 or the like.

通信部12は、表示装置30、カメラ20、および姿勢センサ22等と通信する通信インターフェースである。記憶部14は、各種の情報を記憶する。 The communication unit 12 is a communication interface that communicates with the display device 30, camera 20, posture sensor 22, and the like. The storage unit 14 stores various information.

処理部16は、各種の情報処理を実行する。処理部16は、画像取得回路16Aと、第1姿勢情報取得回路16Bと、第2姿勢情報取得回路16Cと、算出回路16Dと、補正回路16Eと、を備える。 The processing unit 16 executes various information processing. The processing unit 16 includes an image acquisition circuit 16A, a first posture information acquisition circuit 16B, a second posture information acquisition circuit 16C, a calculation circuit 16D, and a correction circuit 16E.

画像取得回路16A、第1姿勢情報取得回路16B、第2姿勢情報取得回路16C、算出回路16D、および補正回路16Eの少なくとも1つは、例えば、CPU90Aなどの処理装置にプログラムを実行させること、例えば、ソフトウェアにより実現してもよいし、IC(Integrated Circuit)などのハードウェアにより実現してもよいし、ソフトウェアおよびハードウェアを併用して実現してもよい。また、第1姿勢情報取得回路16B、第2姿勢情報取得回路16C、算出回路16D、および補正回路16Eの少なくとも1つを、ネットワーク等を介してカメラ校正装置10に通信可能に接続された外部の情報処理装置に搭載した構成としてもよい。 At least one of the image acquisition circuit 16A, the first posture information acquisition circuit 16B, the second posture information acquisition circuit 16C, the calculation circuit 16D, and the correction circuit 16E is configured to cause a processing device such as the CPU 90A to execute a program, for example. , may be realized by software, may be realized by hardware such as an IC (Integrated Circuit), or may be realized by using software and hardware together. Further, at least one of the first attitude information acquisition circuit 16B, the second attitude information acquisition circuit 16C, the calculation circuit 16D, and the correction circuit 16E is connected to an external device communicatively connected to the camera calibration device 10 via a network or the like. It may also be configured to be installed in an information processing device.

画像取得回路16Aは、表示装置30に設けられた校正用マーカ40のカメラ20による撮影画像を取得する。 The image acquisition circuit 16A acquires an image taken by the camera 20 of the calibration marker 40 provided on the display device 30.

ユーザは、校正対象のカメラ20の撮影画角内に表示装置30を設置する。本実施形態では、カメラ20Aの撮影画角内に表示装置30を設置する場面を一例として説明する。そして、ユーザは、表示装置30の表示部32に表示された校正用マーカ40に含まれる少なくとも1つの平行線Lが、カメラ20Aの撮影方向に平行となるように表示装置30を配置する。 The user installs the display device 30 within the photographing angle of view of the camera 20 to be calibrated. In this embodiment, a scene in which the display device 30 is installed within the photographing angle of view of the camera 20A will be described as an example. The user then arranges the display device 30 so that at least one parallel line L included in the calibration marker 40 displayed on the display unit 32 of the display device 30 is parallel to the photographing direction of the camera 20A.

例えば、図2Aに示すように、ユーザは、表示部32に表示された校正用マーカ40の平行線L1がカメラ20Aの撮影方向SDに対して平行となるように、表示装置30をカメラ20Aの画角内に配置する。なお、校正用マーカ40に含まれる平行線L2と、撮影方向SDとは、完全に平行となるように配置されていなくてもよい。 For example, as shown in FIG. 2A, the user moves the display device 30 toward the camera 20A so that the parallel line L1 of the calibration marker 40 displayed on the display section 32 is parallel to the photographing direction SD of the camera 20A. Place it within the angle of view. Note that the parallel line L2 included in the calibration marker 40 and the photographing direction SD may not be arranged to be completely parallel.

例えば、ユーザは、表示部32に表示された校正用マーカ40を視認しながら、校正用マーカ40の平行線L1が校正対象のカメラ20Aの撮影方向SDとほぼ平行となるように、カメラ20の撮影画角内に表示装置30を配置する。 For example, while visually checking the calibration marker 40 displayed on the display unit 32, the user moves the camera 20 so that the parallel line L1 of the calibration marker 40 is approximately parallel to the photographing direction SD of the camera 20A to be calibrated. A display device 30 is placed within the photographing angle of view.

図5Aに示すように、例えば、ユーザは、カメラ20を搭載した車両2の設置面G上に表示装置30を直接載置する。設置面Gは、例えば、地面、床、等である。また、図5Bに示すように、ユーザは、設置面Gに配置された支持部材39上に表示装置30を配置してもよい。このように、表示装置30は、設置面Gに直接設置された形態であってもよく、設置面Gに設置された支持部材39上に載置された形態であってもよい。 As shown in FIG. 5A, for example, the user places the display device 30 directly on the installation surface G of the vehicle 2 on which the camera 20 is mounted. The installation surface G is, for example, the ground, the floor, or the like. Further, as shown in FIG. 5B, the user may place the display device 30 on a support member 39 placed on the installation surface G. In this way, the display device 30 may be installed directly on the installation surface G, or may be placed on the support member 39 installed on the installation surface G.

そして、ユーザは、カメラ20Aの撮影方向SDと表示部32に表示された校正用マーカ40の平行線L1とが略平行となるように、カメラ20Aの撮影画角内に表示装置30を配置する。このとき、上述したように、表示部32に表示された校正用マーカ40の平行線L1または平行線L2と、カメラ20の撮影方向SDとは、完全な平行状態となっていなくてもよい。 Then, the user places the display device 30 within the photographing angle of view of the camera 20A so that the photographing direction SD of the camera 20A and the parallel line L1 of the calibration marker 40 displayed on the display section 32 are substantially parallel. . At this time, as described above, the parallel line L1 or parallel line L2 of the calibration marker 40 displayed on the display unit 32 and the photographing direction SD of the camera 20 do not need to be completely parallel.

なお、本実施形態では、校正用マーカ40が表示装置30の表示部32に表示される形態を一例として説明する。しかし、校正用マーカ40は、表示装置30等の姿勢センサ34を備えた機器の2次元平面上に設けられていればよく、表示部32に表示される形態に限定されない。例えば、表示装置30を平板状の板状面を備えた構成とし、該板状面に校正用マーカ40を記録、記載、または添付された構成としてもよい。この場合、姿勢センサ34は、該板状面の姿勢情報を、校正用マーカ40の第1姿勢情報として検出可能な構成であればよい。 In this embodiment, a mode in which the calibration marker 40 is displayed on the display section 32 of the display device 30 will be described as an example. However, the calibration marker 40 only needs to be provided on a two-dimensional plane of a device including the attitude sensor 34, such as the display device 30, and is not limited to the form displayed on the display unit 32. For example, the display device 30 may be configured to have a flat plate-like surface, and the calibration marker 40 may be recorded, written on, or attached to the plate-like surface. In this case, the attitude sensor 34 may have any configuration as long as it can detect the attitude information of the plate-like surface as the first attitude information of the calibration marker 40.

図4に戻り説明を続ける。表示装置30の処理部37は、例えば、ユーザによる入力部33の操作指示等によって校正開始要求の入力を受付けると、記憶部35に記憶されている校正用マーカ40の画像データを読取り、表示部32に表示する。ユーザは、表示部32に表示された校正用マーカ40を視認しながら、校正用マーカ40の平行線L1とカメラ20Aの撮影方向SDとが略平行となるように、該カメラ20Aの撮影画角内に表示装置30を配置する。 Returning to FIG. 4, the explanation will be continued. When the processing unit 37 of the display device 30 receives an input of a calibration start request, for example, by a user's operation instruction on the input unit 33, the processing unit 37 reads the image data of the calibration marker 40 stored in the storage unit 35, and displays the image data on the display unit. 32. While visually checking the calibration marker 40 displayed on the display unit 32, the user adjusts the photographing angle of view of the camera 20A so that the parallel line L1 of the calibration marker 40 and the photographing direction SD of the camera 20A are approximately parallel. A display device 30 is placed inside.

カメラ20Aは、カメラ20Aの撮影画角内に載置された表示装置30の表示部32を撮影することで、該表示部32に表示された校正用マーカ40の撮影画像を取得する。画像取得回路16Aは、カメラ20Aで撮影された撮影画像をカメラ20Aから受付けることで、実空間Sに配置された校正用マーカ40の、カメラ20Aによる撮影画像を取得する。 The camera 20A acquires a photographed image of the calibration marker 40 displayed on the display section 32 by photographing the display section 32 of the display device 30 placed within the photographing angle of view of the camera 20A. The image acquisition circuit 16A acquires an image of the calibration marker 40 placed in the real space S by the camera 20A by receiving the image taken by the camera 20A.

図6は、カメラ20Aによって撮影された撮影画像50の一例の模式図である。撮影画像50には、撮影された校正用マーカ40の像が含まれる。以下では、撮影された校正用マーカ40の像を、単に、校正用マーカ40と称して説明する。 FIG. 6 is a schematic diagram of an example of a photographed image 50 photographed by the camera 20A. The photographed image 50 includes a photographed image of the calibration marker 40. Below, the photographed image of the calibration marker 40 will be simply referred to as the calibration marker 40 and will be described.

図4に戻り説明を続ける。第1姿勢情報取得回路16Bは、撮影画像50の撮影時の校正用マーカ40の第1姿勢情報を取得する。 Returning to FIG. 4, the explanation will be continued. The first posture information acquisition circuit 16B acquires first posture information of the calibration marker 40 at the time of photographing the photographed image 50.

本実施形態では、第1姿勢情報取得回路16Bは、撮影画像50の撮影時の表示部32の姿勢情報を、校正用マーカ40の第1姿勢情報として取得する。例えば、第1姿勢情報は、カメラ20Aによる撮影画像50の撮影時の、実空間Sにおける校正用マーカ40の姿勢情報である。 In this embodiment, the first posture information acquisition circuit 16B acquires the posture information of the display unit 32 at the time of photographing the photographed image 50 as the first posture information of the calibration marker 40. For example, the first attitude information is attitude information of the calibration marker 40 in the real space S when the captured image 50 is captured by the camera 20A.

例えば、第1姿勢情報取得回路16Bは、通信部12を介して表示装置30から第1姿勢情報を受信することで、第1姿勢情報を取得する。 For example, the first attitude information acquisition circuit 16B obtains the first attitude information by receiving the first attitude information from the display device 30 via the communication unit 12.

この場合、例えば、表示装置30の処理部37は、姿勢センサ34で検出された表示部32の第1姿勢情報を、第1姿勢情報の検出時刻を表す検出時刻情報と共に順次カメラ校正装置10へ送信する。画像取得回路16Aは、カメラ20Aから受付けた撮影画像50の撮影時刻に一致する検出時刻情報と共に受信した第1姿勢情報を、該撮影画像50に含まれる校正用マーカ40の撮影時の第1姿勢情報として特定する。そして、画像取得回路16Aは、特定した第1姿勢情報を、該撮影画像50の撮影時の第1姿勢情報として取得すればよい。 In this case, for example, the processing unit 37 of the display device 30 sequentially sends the first attitude information of the display unit 32 detected by the attitude sensor 34 to the camera calibration device 10 together with detection time information representing the detection time of the first attitude information. Send. The image acquisition circuit 16A converts the first attitude information received from the camera 20A together with the detection time information that matches the shooting time of the captured image 50 into the first attitude of the calibration marker 40 included in the captured image 50 at the time of capturing. Identify as information. Then, the image acquisition circuit 16A may acquire the specified first posture information as the first posture information at the time of photographing the photographed image 50.

また、例えば、表示装置30の処理部37は、校正用マーカ40の表示部32への表示中に、姿勢センサ34によって検出された第1姿勢情報を表す画像を該表示部32へ表示してもよい。 Further, for example, while displaying the calibration marker 40 on the display section 32, the processing section 37 of the display device 30 displays an image representing the first posture information detected by the posture sensor 34 on the display section 32. Good too.

図7Aに示すように、例えば、表示装置30の処理部37は、校正用マーカ40および第1姿勢情報を表す画像42を表示部32へ表示する。図7Aには、第1姿勢情報を表す画像42として、第1姿勢情報を表す文字画像42Aを一例として示す。Rdxは表示部32のピッチ角を表し、Rdyは表示部32のヨー角を表し、Rdzは表示部32のロール角を表す。 As shown in FIG. 7A, for example, the processing unit 37 of the display device 30 displays the calibration marker 40 and an image 42 representing the first posture information on the display unit 32. FIG. 7A shows a character image 42A representing the first orientation information as an example of the image 42 representing the first orientation information. Rdx represents the pitch angle of the display section 32, Rdy represents the yaw angle of the display section 32, and Rdz represents the roll angle of the display section 32.

また、表示装置30の処理部37は、図7Bに示すように、第1姿勢情報を表す画像42として第1姿勢情報を表すQR(Quick Response)(登録商標)コード42Bを表示部32へ表示してもよい。 Further, as shown in FIG. 7B, the processing unit 37 of the display device 30 displays a QR (Quick Response) (registered trademark) code 42B representing the first attitude information on the display unit 32 as an image 42 representing the first attitude information. You may.

なお、処理部37は、姿勢センサ34によって新たな第1姿勢情報が検出されるごとに、最新の検出結果である第1姿勢情報を表す画像42を表示部32に表示すればよい。このため、表示部32には、表示部32に含まれる校正用マーカ40の現在の第1姿勢情報を表す画像42が表示される。 Note that the processing unit 37 may display the image 42 representing the first attitude information, which is the latest detection result, on the display unit 32 every time new first attitude information is detected by the attitude sensor 34. Therefore, the image 42 representing the current first posture information of the calibration marker 40 included in the display section 32 is displayed on the display section 32.

図4に戻り説明を続ける。第1姿勢情報を表す画像42が表示部32に表示される場合、第1姿勢情報取得回路16Bは、カメラ20Aで撮影された撮影画像50に含まれる第1姿勢情報を表す画像42を公知の方法で画像解析することで、該撮影画像50に含まれる校正用マーカ40の撮影時の第1姿勢情報を取得する。 Returning to FIG. 4, the explanation will be continued. When the image 42 representing the first posture information is displayed on the display unit 32, the first posture information acquisition circuit 16B converts the image 42 representing the first posture information included in the photographed image 50 photographed by the camera 20A into a known image 42 representing the first posture information. By analyzing the image using this method, first posture information of the calibration marker 40 included in the photographed image 50 at the time of photographing is obtained.

第2姿勢情報取得回路16Cは、カメラ20の搭載装置である車両2の第2姿勢情報を取得する。第2姿勢情報取得回路16Cは、姿勢センサ22で検出された第2姿勢情報を受付けることで、車両2の第2姿勢情報を取得する。なお、第2姿勢情報取得回路16Cは、撮影画像50の撮影時刻に一致する検出時刻に姿勢センサ22で検出された第2姿勢情報を取得すればよい。 The second posture information acquisition circuit 16C acquires second posture information of the vehicle 2, which is the device on which the camera 20 is mounted. The second attitude information acquisition circuit 16C acquires second attitude information of the vehicle 2 by receiving the second attitude information detected by the attitude sensor 22. Note that the second posture information acquisition circuit 16C may acquire the second posture information detected by the posture sensor 22 at a detection time that coincides with the photographing time of the photographed image 50.

算出回路16Dは、撮影画像50に含まれる校正用マーカ40に基づいて、カメラ20のカメラ姿勢情報を導出する。そして、算出回路16Dは、導出したカメラ姿勢情報に応じた校正量を算出する。 The calculation circuit 16D derives camera attitude information of the camera 20 based on the calibration marker 40 included in the photographed image 50. Then, the calculation circuit 16D calculates a correction amount according to the derived camera attitude information.

校正量とは、カメラ20の取り付け誤差の校正に用いられる情報である。本実施形態では、校正量が、ロール角、ピッチ角、およびヨー角によって表される場合を一例として説明する。 The calibration amount is information used to calibrate mounting errors of the camera 20. In this embodiment, a case where the calibration amount is represented by a roll angle, a pitch angle, and a yaw angle will be described as an example.

算出回路16Dは、撮影画像50に含まれる校正用マーカ40を用いて、公知の方法で、カメラ20のカメラ姿勢情報を導出する。例えば、算出回路16Dは、撮影画像50に含まれる校正用マーカ40によって構成される平行線Lの延長線の収束点である消失点、および、複数の消失点を通る直線である消失線に基づいて、カメラ姿勢情報を算出する。 The calculation circuit 16D uses the calibration marker 40 included in the captured image 50 to derive camera attitude information of the camera 20 using a known method. For example, the calculation circuit 16D is based on a vanishing point that is a convergence point of an extension of the parallel line L formed by the calibration marker 40 included in the photographed image 50, and a vanishing line that is a straight line passing through a plurality of vanishing points. Then, camera posture information is calculated.

図8を用いて、カメラ姿勢情報の算出について説明する。 Calculation of camera posture information will be explained using FIG. 8.

算出回路16Dは、撮影画像50に含まれる校正用マーカ40によって構成される、撮影方向SDに沿った平行線L、および、撮影方向SDに対して交差する方向に沿った平行線L、の少なくとも一方の収束点を、消失点Pとして特定する。 The calculation circuit 16D calculates at least a parallel line L along the shooting direction SD and a parallel line L along the direction intersecting the shooting direction SD, which are formed by the calibration marker 40 included in the shot image 50. One convergence point is identified as the vanishing point P.

詳細には、算出回路16Dは、格子状の校正用マーカ40を構成する平行線L1と平行線L2との交点を結ぶ平行線L3および平行線L4を特定する。そして、算出回路16Dは、平行線L3の収束点を消失点P3として特定する。また、算出回路16Dは、平行線L4の収束点を消失点P2として特定する。同様に、算出回路16Dは、実空間Sに載置された校正用マーカ40の撮影方向SDに沿った平行線Lである平行線L1の収束点を、深消失点P1として特定する。深消失点P1、消失点P2、および消失点P3は、消失点Pの一例である。 Specifically, the calculation circuit 16D specifies a parallel line L3 and a parallel line L4 that connect the intersections of the parallel lines L1 and L2 that constitute the grid-like calibration marker 40. The calculation circuit 16D then identifies the convergence point of the parallel lines L3 as the vanishing point P3. Further, the calculation circuit 16D identifies the convergence point of the parallel line L4 as the vanishing point P2. Similarly, the calculation circuit 16D identifies the convergence point of the parallel line L1, which is the parallel line L along the photographing direction SD of the calibration marker 40 placed in the real space S, as the deep vanishing point P1. The deep vanishing point P1, the vanishing point P2, and the vanishing point P3 are examples of the vanishing point P.

更に、算出回路16Dは、特定した2点の消失点P、例えば消失点P2と消失点P3とを通る直線を、消失線VLとして特定する。 Furthermore, the calculation circuit 16D specifies a straight line passing through the two identified vanishing points P, for example, the vanishing point P2 and the vanishing point P3, as the vanishing line VL.

そして、算出回路16Dは、消失点P2、消失点P3、および消失線VLに基づいて、カメラ姿勢情報に含まれるロール角およびピッチ角を公知の方法により算出する。 Then, the calculation circuit 16D calculates the roll angle and pitch angle included in the camera attitude information using a known method based on the vanishing point P2, the vanishing point P3, and the vanishing line VL.

例えば、算出回路16Dは、消失線VLを用いて、公知の方法によりロール角を算出する。詳細には、例えば、算出回路16Dは、消失線VLの実空間Sにおける水平方向に対する角度を、カメラ姿勢情報に含まれるロール角として算出する。 For example, the calculation circuit 16D calculates the roll angle using a known method using the vanishing line VL. Specifically, for example, the calculation circuit 16D calculates the angle of the vanishing line VL with respect to the horizontal direction in the real space S as the roll angle included in the camera attitude information.

また、算出回路16Dは、算出したロール角と、1つの消失点P(例えば消失点P3)と、を用いて、公知の方法を用いてカメラ20のピッチ角を算出する。詳細には、例えば、算出回路16Dは、消失線VLに対する消失点Pのピッチ軸を軸中心とした移動角度を、カメラ姿勢情報に含まれるピッチ角として算出する。 Further, the calculation circuit 16D uses the calculated roll angle and one vanishing point P (for example, vanishing point P3) to calculate the pitch angle of the camera 20 using a known method. Specifically, for example, the calculation circuit 16D calculates the movement angle of the vanishing point P with respect to the vanishing line VL about the pitch axis as the pitch angle included in the camera attitude information.

また、算出回路16Dは、算出したピッチ角と深消失点P1とを用いて、公知の方法によりカメラ20のヨー角を算出する。詳細には、算出回路16Dは、消失線VLに沿った深消失点P1の移動距離に相当する角度を、カメラ姿勢情報に含まれるヨー角として算出する。 Further, the calculation circuit 16D uses the calculated pitch angle and deep vanishing point P1 to calculate the yaw angle of the camera 20 using a known method. Specifically, the calculation circuit 16D calculates the angle corresponding to the moving distance of the deep vanishing point P1 along the vanishing line VL as the yaw angle included in the camera attitude information.

算出回路16Dは、これらの算出処理により算出したロール角、ピッチ角、およびヨー角を含むカメラ姿勢情報を、校正量として算出する。なお、算出回路16Dは、カメラ姿勢情報に含まれるロール角、ピッチ角、およびヨー角の各々に、”-1”を乗算することで正負(±)を逆にした値を、校正量として算出してもよい。本実施形態では、算出回路16Dは、撮影画像50に含まれる校正用マーカ40から算出したカメラ姿勢情報を、校正量として算出する場合を一例として説明する。 The calculation circuit 16D calculates camera attitude information including the roll angle, pitch angle, and yaw angle calculated by these calculation processes as a calibration amount. Note that the calculation circuit 16D calculates, as a calibration amount, a value obtained by multiplying each of the roll angle, pitch angle, and yaw angle included in the camera attitude information by "-1" to reverse the sign (±). You may. In the present embodiment, an example will be described in which the calculation circuit 16D calculates camera attitude information calculated from the calibration marker 40 included in the photographed image 50 as the calibration amount.

図4に戻り説明を続ける。補正回路16Eは、算出回路16Dによって算出された校正量を、第1姿勢情報と第2姿勢情報との差に基づいて補正した補正校正量を算出する。 Returning to FIG. 4, the explanation will be continued. The correction circuit 16E calculates a corrected calibration amount by correcting the calibration amount calculated by the calculation circuit 16D based on the difference between the first attitude information and the second attitude information.

例えば、補正回路16Eは、算出回路16Dによって撮影画像50に含まれる校正用マーカ40に基づいて算出された校正量を、撮影画像50の撮影時の校正用マーカ40の姿勢情報である第1姿勢情報と、撮影画像50の撮影時の車両2の姿勢情報である第2姿勢情報と、に基づいて補正する。そして、補正回路16Eは、補正によって得られた補正校正量を、カメラ20の正式な校正量として記憶部35へ記憶する。 For example, the correction circuit 16E calculates the amount of correction calculated based on the calibration marker 40 included in the photographed image 50 by the calculation circuit 16D into the first posture that is the posture information of the calibration marker 40 at the time of photographing the photographed image 50. The correction is made based on the information and the second posture information that is the posture information of the vehicle 2 at the time the photographed image 50 was photographed. Then, the correction circuit 16E stores the corrected calibration amount obtained by the correction in the storage unit 35 as the official calibration amount of the camera 20.

まず、補正回路16Eは、撮影画像50の撮影時の表示部32の姿勢情報である第1姿勢情報と、撮影画像50の撮影時の車両2の姿勢情報である第2姿勢情報と、の差を算出する。 First, the correction circuit 16E calculates the difference between the first attitude information, which is the attitude information of the display unit 32 at the time of capturing the captured image 50, and the second attitude information, which is the attitude information of the vehicle 2 at the time of capturing the captured image 50. Calculate.

図9A~図9Cを用いて、第1姿勢情報と第2姿勢情報との差の算出について説明する。 Calculation of the difference between the first attitude information and the second attitude information will be explained using FIGS. 9A to 9C.

上述したように、第1姿勢情報および第2姿勢情報は、姿勢情報の一例であり、ロール角、ピッチ角、ヨー角によって表される。図9A~図9C中、Rdxは、表示部32のピッチ角を表す。Rdyは、表示部32のヨー角を表す。Rdzは、表示部32のロール角を表す。Rcxは、車両2のピッチ角を表す。Rcyは、車両2のヨー角を表す。Rczは、車両2のロール角を表す。図9C中、Nは、方位の北方向を表す。 As described above, the first attitude information and the second attitude information are examples of attitude information, and are represented by a roll angle, a pitch angle, and a yaw angle. In FIGS. 9A to 9C, R dx represents the pitch angle of the display section 32. Rdy represents the yaw angle of the display section 32. R dz represents the roll angle of the display section 32. R cx represents the pitch angle of the vehicle 2. R cy represents the yaw angle of the vehicle 2. R cz represents the roll angle of the vehicle 2. In FIG. 9C, N represents the north direction.

補正回路16Eは、下記式(1)~式(3)により、第1姿勢情報および第2姿勢情報の、ロール角、ピッチ角、およびヨー角の各々の差を算出することで、第1姿勢情報と第2姿勢情報との差を算出する。 The correction circuit 16E calculates the difference between the roll angle, pitch angle, and yaw angle of the first attitude information and the second attitude information using equations (1) to (3) below, thereby adjusting the first attitude. A difference between the information and the second posture information is calculated.

ピッチ角の差=(Rdx-Rcx) ・・・式(1)
ヨー角の差 =(Rdy-Rcy) ・・・式(2)
ロール角の差=(Rdz-Rcz) ・・・式(3)
Difference in pitch angle = (R dx - R cx ) ...Formula (1)
Difference in yaw angle = (R dy - R cy ) ...Formula (2)
Difference in roll angle = (R dz - R cz ) ...Formula (3)

そして、補正回路16Eは、算出回路16Dによって校正用マーカ40に基づいて算出された校正量から、第1姿勢情報と第2姿勢情報との差を減算した結果を、補正校正量として算出する。詳細には、補正回路16Eは、下記式(4)~式(6)により、補正校正量を算出する。 Then, the correction circuit 16E calculates the result of subtracting the difference between the first attitude information and the second attitude information from the correction amount calculated by the calculation circuit 16D based on the calibration marker 40 as a corrected correction amount. Specifically, the correction circuit 16E calculates the correction amount using equations (4) to (6) below.

ピッチ角の補正校正量=ピッチ角の校正量-(Rdx-Rcx) ・・・式(4)
ヨー角の補正校正量 =ヨー角の校正量 -(Rdy-Rcy) ・・・式(5)
ロール角の補正校正量=ロール角の校正量-(Rdz-Rcz) ・・・式(6)
Pitch angle correction calibration amount = Pitch angle calibration amount - (R dx - R cx ) ...Formula (4)
Yaw angle correction calibration amount = Yaw angle calibration amount - (R dy - R cy ) ... Formula (5)
Roll angle correction calibration amount = Roll angle calibration amount - (R dz - R cz ) ...Formula (6)

例えば、本実施形態のカメラ校正装置10では、上記式(1)~式(3)によって表される第1姿勢情報と第2姿勢情報との差分を、校正対象のカメラ20Aから見た校正用マーカ40の設置誤差ととらえる。そして、カメラ校正装置10の補正回路16Eは、算出回路16Dで撮影画像50に含まれる校正用マーカ40に基づいて算出した校正量から、カメラ20Aからみた校正用マーカ40の設置誤差による影響成分を除去することで、正しい校正量である補正校正量を算出する。 For example, in the camera calibration device 10 of the present embodiment, the difference between the first attitude information and the second attitude information expressed by the above equations (1) to (3) is used for calibration as seen from the camera 20A to be calibrated. This is considered to be an installation error of the marker 40. Then, the correction circuit 16E of the camera calibration device 10 calculates the influence component due to the installation error of the calibration marker 40 as seen from the camera 20A from the calibration amount calculated by the calculation circuit 16D based on the calibration marker 40 included in the photographed image 50. By removing it, a corrected calibration amount, which is a correct calibration amount, is calculated.

そして、補正回路16Eは、補正によって得られた補正校正量を、カメラ20Aの正式な校正量として記憶部14へ記憶する。 Then, the correction circuit 16E stores the corrected calibration amount obtained by the correction in the storage unit 14 as the official calibration amount of the camera 20A.

なお、補正回路16Eは、補正によって得られた補正校正量を、校正対象のカメラ20Aの識別情報に対応付けて記憶部14へ記憶すればよい。また、補正回路16Eは、算出した補正校正量を用いて、公知の方法により、カメラ20Aの設置誤差を補正してもよい。 Note that the correction circuit 16E may store the correction amount obtained by the correction in the storage unit 14 in association with the identification information of the camera 20A to be corrected. Further, the correction circuit 16E may correct the installation error of the camera 20A using the calculated correction amount by a known method.

また、本実施形態のカメラ校正装置10は、他の校正対象のカメラ20(カメラ20B~カメラ20D)についても同様の処理を行うことで、車両2に搭載されたカメラ20の各々ごとに、補正校正量を算出すればよい。 In addition, the camera calibration device 10 of the present embodiment performs the same process on other cameras 20 to be calibrated (cameras 20B to 20D), thereby performing correction for each camera 20 mounted on the vehicle 2. All you have to do is calculate the calibration amount.

次に、本実施形態の校正システム1で実行する情報処理の流れの一例を、図10を用いて説明する。 Next, an example of the flow of information processing executed by the calibration system 1 of this embodiment will be described using FIG. 10.

表示装置30の処理部37は、ユーザによる入力部33の操作指示等によって入力部33から校正開始要求を表す信号を受付けると(ステップS100)、ステップS102へ進む。 When the processing unit 37 of the display device 30 receives a signal representing a calibration start request from the input unit 33 based on an operation instruction of the input unit 33 by the user (step S100), the process proceeds to step S102.

ステップS102では、処理部37は、記憶部35から校正用マーカ40の画像データを読取り(ステップS102)、表示部32へ表示する(ステップS104)。 In step S102, the processing unit 37 reads the image data of the calibration marker 40 from the storage unit 35 (step S102), and displays it on the display unit 32 (step S104).

ユーザは、表示部32に表示された校正用マーカ40を視認しながら、校正用マーカ40の平行線L1が校正対象のカメラ20Aの撮影方向SDとほぼ平行となるように、カメラ20の撮影画角内に表示装置30を配置する。 While visually checking the calibration marker 40 displayed on the display unit 32, the user adjusts the photographed image of the camera 20 so that the parallel line L1 of the calibration marker 40 is approximately parallel to the photographing direction SD of the camera 20A to be calibrated. A display device 30 is placed within the corner.

処理部37は、姿勢センサ34から表示部32の第1姿勢情報を取得し(ステップS106)、第1姿勢情報を表す画像42を表示部32へ表示する(ステップS108)。このため、表示部32には、校正用マーカ40および第1姿勢情報を表す画像42が表示される。なお、処理部37は、姿勢センサ34で検出された第1姿勢情報および該第1姿勢情報の検出時間をカメラ校正装置10へ送信してもよい。 The processing unit 37 acquires the first attitude information of the display unit 32 from the attitude sensor 34 (step S106), and displays the image 42 representing the first attitude information on the display unit 32 (step S108). Therefore, the calibration marker 40 and an image 42 representing the first posture information are displayed on the display unit 32. Note that the processing unit 37 may transmit the first attitude information detected by the attitude sensor 34 and the detection time of the first attitude information to the camera calibration device 10.

次に、処理部37は、校正終了要求を受付けたか否かを判断する(ステップS110)。例えば、処理部37は、ユーザによる入力部33の操作指示等によって入力部33から構成終了要求を表す信号を受付けたか否かを判別することで、ステップS110の判断を行う。ステップS110で否定判断すると(ステップS110:No)、上記ステップS106へ戻る。ステップS110で肯定判断すると(ステップS110:Yes)、本ルーチンを終了する。 Next, the processing unit 37 determines whether a proofreading completion request has been accepted (step S110). For example, the processing unit 37 makes the determination in step S110 by determining whether or not a signal representing a configuration termination request is received from the input unit 33 based on an operation instruction of the input unit 33 or the like by the user. If a negative determination is made in step S110 (step S110: No), the process returns to step S106. If an affirmative determination is made in step S110 (step S110: Yes), this routine ends.

次に、本実施形態のカメラ校正装置10で実行される情報処理の流れの一例を、図11を用いて説明する。 Next, an example of the flow of information processing executed by the camera calibration device 10 of this embodiment will be described using FIG. 11.

カメラ校正装置10の処理部16は、ユーザによる操作指示等によって校正開始要求を受付けると(ステップS200)、カメラ20から撮影画像50を取得する(ステップS202)。 When the processing unit 16 of the camera calibration device 10 receives a calibration start request based on an operation instruction or the like from the user (step S200), the processing unit 16 acquires a photographed image 50 from the camera 20 (step S202).

算出回路16Dは、ステップS202で取得した撮影画像50に含まれる校正用マーカ40に基づいてカメラ20のカメラ姿勢情報を導出し、カメラ姿勢情報に応じた校正量を算出する(ステップS204~ステップS222)。 The calculation circuit 16D derives the camera attitude information of the camera 20 based on the calibration marker 40 included in the captured image 50 acquired in step S202, and calculates the amount of calibration according to the camera attitude information (steps S204 to S222). ).

詳細には、算出回路16Dは、算出回路16Dは、撮影画像50に含まれる校正用マーカ40に含まれる、互いに交差する平行線L1および平行線L2を検出する(ステップS204)。 Specifically, the calculation circuit 16D detects parallel lines L1 and L2 that intersect with each other and are included in the calibration marker 40 included in the captured image 50 (step S204).

平行線L1および平行線L2に検出に失敗した場合(ステップS202:No)、後述するステップS238へ進む。平行線L1および平行線L2の検出に成功した場合(ステップS202:Yes)、ステップS208へ進む。 If the detection of parallel line L1 and parallel line L2 fails (step S202: No), the process advances to step S238, which will be described later. If parallel line L1 and parallel line L2 are successfully detected (step S202: Yes), the process advances to step S208.

ステップS208では、算出回路16Dは、撮影方向SDに沿った平行線L、および、撮影方向SDに対して交差する方向に沿った平行線L、の少なくとも一方の収束点を、消失点Pとして特定する(ステップS212)。例えば、図8に示すように、算出回路16Dは、格子状の校正用マーカ40を構成する平行線L1と平行線L2との交点を結ぶ平行線L3および平行線L4を特定する。そして、算出回路16Dは、平行線L3の収束点を消失点P3として特定する。また、算出回路16Dは、平行線L4の収束点を消失点P2として特定する。また、算出回路16Dは、実空間Sに載置された校正用マーカ40の撮影方向SDに沿った平行線Lである、撮影画像50に含まれる平行線L1の収束点である消失点Pを特定する。 In step S208, the calculation circuit 16D identifies the convergence point of at least one of the parallel line L along the shooting direction SD and the parallel line L along the direction intersecting the shooting direction SD as the vanishing point P. (Step S212). For example, as shown in FIG. 8, the calculation circuit 16D specifies a parallel line L3 and a parallel line L4 that connect the intersections of the parallel lines L1 and L2 that constitute the grid-like calibration marker 40. The calculation circuit 16D then identifies the convergence point of the parallel lines L3 as the vanishing point P3. Further, the calculation circuit 16D identifies the convergence point of the parallel line L4 as the vanishing point P2. Further, the calculation circuit 16D calculates a vanishing point P that is a convergence point of a parallel line L1 included in the photographed image 50, which is a parallel line L along the photographing direction SD of the calibration marker 40 placed in the real space S. Identify.

算出回路16Dは、ステップS208の処理によって消失点Pを2点以上特定出来たか否かを判断する(ステップS210)。消失点Pを2点以上特定することが困難であった場合(ステップS210:No)、後述するステップS238へ進む。消失点Pを2点以上特定できた場合(ステップS210:Yes)、ステップS212へ進む。 The calculation circuit 16D determines whether two or more vanishing points P can be identified through the process of step S208 (step S210). If it is difficult to specify two or more vanishing points P (step S210: No), the process advances to step S238, which will be described later. If two or more vanishing points P can be identified (step S210: Yes), the process advances to step S212.

ステップS212では、算出回路16Dは、ステップS208で特定した2点の消失点Pを通る線を消失線VLとして特定する(ステップS212)。また、算出回路16Dは、ステップS208で特定した消失点Pの内、撮影方向SDに沿った平行線Lである平行線L1の収束点である消失点Pを、深消失点P1として特定する(ステップS214)。 In step S212, the calculation circuit 16D identifies a line passing through the two vanishing points P identified in step S208 as the vanishing line VL (step S212). Further, the calculation circuit 16D identifies the vanishing point P, which is the convergence point of the parallel line L1, which is the parallel line L along the photographing direction SD, as the deep vanishing point P1, among the vanishing points P identified in step S208 ( Step S214).

次に、算出回路16Dは、ステップS212で特定した消失線VLの、実空間Sにおける水平方向に対する角度を、カメラ20のロール角として算出する(ステップS216)。 Next, the calculation circuit 16D calculates the angle of the vanishing line VL identified in step S212 with respect to the horizontal direction in the real space S as the roll angle of the camera 20 (step S216).

次に、算出回路16Dは、ステップS216で算出したロール角と、ステップS212で特定した1つの消失点P(例えば消失点P3、図8参照)と、を用いて、カメラ20のピッチ角を算出する(ステップS218)。 Next, the calculation circuit 16D calculates the pitch angle of the camera 20 using the roll angle calculated in step S216 and one vanishing point P (for example, vanishing point P3, see FIG. 8) specified in step S212. (Step S218).

次に、算出回路16Dは、ステップPS218で算出したピッチ角とステップS214で特定した深消失点P1とを用いて、カメラ20のヨー角を算出する(ステップS220)。 Next, the calculation circuit 16D calculates the yaw angle of the camera 20 using the pitch angle calculated in step PS218 and the deep vanishing point P1 specified in step S214 (step S220).

算出回路16Dは、ステップS216~ステップS220によって算出された、カメラ20のロール角、ピッチ角、およびヨー角によって表されるカメラ姿勢情報に応じて、カメラ20の校正量を算出する(ステップS222)。例えば、算出回路16Dは、ステップS216~ステップS220によって算出された、カメラ20のロール角、ピッチ角、およびヨー角によって表されるカメラ姿勢情報を、カメラ20の校正量として算出する。 The calculation circuit 16D calculates the amount of calibration of the camera 20 according to the camera posture information represented by the roll angle, pitch angle, and yaw angle of the camera 20 calculated in steps S216 to S220 (step S222). . For example, the calculation circuit 16D calculates the camera posture information represented by the roll angle, pitch angle, and yaw angle of the camera 20 calculated in steps S216 to S220 as the calibration amount of the camera 20.

次に、算出回路16Dは、ステップS222で算出した校正量が正常であるか否かを判断する(ステップS224)。例えば、算出回路16Dは、カメラ20の識別情報に対応付けて、カメラ20の取りうるカメラ姿勢情報の範囲を予め記憶部14へ記憶する。カメラ20の取りうるカメラ姿勢情報の範囲には、カメラ20の製造メーカ等から提供された情報等を用いればよい。算出回路16Dは、ステップS222で算出した校正量が、校正対象のカメラ20のカメラ識別情報に対応するカメラ姿勢情報の範囲内の値であるか否かを判別することで、ステップS224の判断を行う。 Next, the calculation circuit 16D determines whether the calibration amount calculated in step S222 is normal (step S224). For example, the calculation circuit 16D stores in advance the range of camera posture information that the camera 20 can take in the storage unit 14 in association with the identification information of the camera 20. For the range of camera posture information that the camera 20 can take, information provided by the manufacturer of the camera 20, etc. may be used. The calculation circuit 16D makes the determination in step S224 by determining whether the calibration amount calculated in step S222 is within the range of the camera attitude information corresponding to the camera identification information of the camera 20 to be calibrated. conduct.

ステップS224で否定判断すると(ステップS224:No)、後述するステップS238へ進む。ステップS224で肯定判断すると(ステップS224:Yes)、ステップS226へ進む。 If a negative determination is made in step S224 (step S224: No), the process advances to step S238, which will be described later. If an affirmative determination is made in step S224 (step S224: Yes), the process advances to step S226.

ステップS226では、第1姿勢情報取得回路16Bが、ステップS202で取得した撮影画像50の撮影時の校正用マーカ40の第1姿勢情報を取得する(ステップS230)。第1姿勢情報取得回路16Bが第1姿勢情報の取得に失敗した場合(ステップS228:No)、後述するステップS238へ進む。第1姿勢情報取得回路16Bが第1姿勢情報の取得に成功した場合(ステップS228:Yes)、ステップS230へ進む。 In step S226, the first posture information acquisition circuit 16B acquires first posture information of the calibration marker 40 at the time of photographing the photographed image 50 acquired in step S202 (step S230). If the first posture information acquisition circuit 16B fails to acquire the first posture information (step S228: No), the process proceeds to step S238, which will be described later. If the first posture information acquisition circuit 16B succeeds in acquiring the first posture information (step S228: Yes), the process advances to step S230.

ステップS230では、第2姿勢情報取得回路16Cが、ステップS202で取得した撮影画像50の撮影時の車両2の第2姿勢情報を取得する(ステップS230)。 In step S230, the second posture information acquisition circuit 16C acquires second posture information of the vehicle 2 at the time of photographing the photographed image 50 acquired in step S202 (step S230).

補正回路16Eは、ステップS226で取得した第1姿勢情報とステップS230で取得した第2姿勢情報との差を算出する(ステップ232)。 The correction circuit 16E calculates the difference between the first attitude information obtained in step S226 and the second attitude information obtained in step S230 (step 232).

次に、補正回路16Eは、ステップS222で算出した校正量から、ステップS232で算出した第1姿勢情報と第2姿勢情報との差を減算することで、補正校正量を算出する(ステップS234)。そして、補正回路16Eは、ステップS234で算出した補正校正量を、校正対象のカメラ20の正式な校正量として、該カメラ20の識別情報に対応付けて記憶部14へ記憶する(ステップS236)。そして、本ルーチンを終了する。 Next, the correction circuit 16E calculates a corrected calibration amount by subtracting the difference between the first attitude information and the second attitude information calculated in step S232 from the correction amount calculated in step S222 (step S234). . Then, the correction circuit 16E stores the correction amount calculated in step S234 in the storage unit 14 as the official correction amount of the camera 20 to be corrected, in association with the identification information of the camera 20 (step S236). Then, this routine ends.

一方、ステップS238では、処理部16は、校正エラーを表す情報をカメラ校正装置10の図示を省略する表示部等に出力し(ステップS238)、本ルーチンを終了する。 On the other hand, in step S238, the processing unit 16 outputs information indicating the calibration error to a display unit (not shown) of the camera calibration device 10 (step S238), and ends this routine.

以上説明したように、本実施形態のカメラ校正装置10は、画像取得回路16Aと、第1姿勢情報取得回路16Bと、第2姿勢情報取得回路16Cと、算出回路16Dと、補正回路16Eと、を備える。画像取得回路16Aは、姿勢センサ34を備えた表示装置30(情報機器)に設けられた校正用マーカ40のカメラ20による撮影画像50を取得する。第1姿勢情報取得回路16Bは、撮影画像50の撮影時の校正用マーカ40の第1姿勢情報を取得する。第2姿勢情報取得回路16Cは、カメラ20の搭載装置(車両2)の第2姿勢情報を取得する。算出回路16Dは、撮影画像50に含まれる校正用マーカ40に基づいて導出したカメラ20のカメラ姿勢情報に応じた校正量を算出する。補正回路16Eは、算出回路16Dで算出された校正量を、第1姿勢情報と第2姿勢情報との差に基づいて補正する。 As explained above, the camera calibration device 10 of this embodiment includes an image acquisition circuit 16A, a first attitude information acquisition circuit 16B, a second attitude information acquisition circuit 16C, a calculation circuit 16D, a correction circuit 16E, Equipped with The image acquisition circuit 16A acquires an image 50 taken by the camera 20 of the calibration marker 40 provided on the display device 30 (information device) equipped with the attitude sensor 34. The first posture information acquisition circuit 16B acquires first posture information of the calibration marker 40 at the time of photographing the photographed image 50. The second attitude information acquisition circuit 16C acquires second attitude information of the device (vehicle 2) on which the camera 20 is mounted. The calculation circuit 16D calculates the amount of calibration according to the camera attitude information of the camera 20 derived based on the calibration marker 40 included in the photographed image 50. The correction circuit 16E corrects the correction amount calculated by the calculation circuit 16D based on the difference between the first attitude information and the second attitude information.

ここで、従来技術には、車両2に対して正確な角度で床面に配置された校正用のマーカを車両2に搭載されたカメラ20で撮影し、撮影画像に含まれるマーカの特徴点等を用いてカメラ20の校正量を求める方法が開示されている。しかしながら、従来技術では、車両2等のカメラ20の搭載機器の周囲に、搭載機器に対して正確な角度で高精度にマーカを配置する必要があり、設置環境によっては校正精度が低下する場合があった。 Here, in the conventional technology, a calibration marker placed on the floor at an accurate angle with respect to the vehicle 2 is photographed by a camera 20 mounted on the vehicle 2, and characteristic points of the marker included in the photographed image are collected. A method for determining the amount of calibration of the camera 20 using the method is disclosed. However, in the conventional technology, it is necessary to place markers with high precision around the equipment mounted on the camera 20 of the vehicle 2 etc. at accurate angles with respect to the equipment mounted, and the calibration accuracy may deteriorate depending on the installation environment. there were.

例えば、車両2を販売する販売業者等でカメラ20の校正作業を行う場合、車両2の周囲にマーカを設置するための十分なスペースが無いことがある。また、精密に設置されている車両生産工場と異なり、校正担当者が都度手作業で設置するため、校正担当者が車両2に対して正確な角度でマーカを車両2の周囲に設置することが困難となり、加えて、多大な時間も要する場合がある。 For example, when calibrating the camera 20 at a dealer who sells the vehicle 2, there may not be enough space around the vehicle 2 to install markers. In addition, unlike vehicle production plants where the markers are precisely set up, the calibration personnel manually install the markers each time, making it difficult for the calibration personnel to place the markers around the vehicle 2 at accurate angles relative to the vehicle 2. This can be difficult and can also take a lot of time.

しかしながら、従来技術は、車両2に対して正確な角度で高精度に配置したマーカを用いる方法であるため、校正精度が低下する場合があった。 However, since the conventional technique uses a marker that is placed with high accuracy at an accurate angle with respect to the vehicle 2, the calibration accuracy may deteriorate.

一方、本実施形態のカメラ校正装置10では、撮影画像50に写り込んだ校正用マーカ40に基づいて導出したカメラ20の校正量を、該撮影画像50の撮影時の校正用マーカ40の第1姿勢情報と該撮影画像50の撮影時の車両2の第2姿勢情報とを用いて補正する。そして、本実施形態のカメラ校正装置10では、校正量の補正によって得られた補正校正量を、カメラ20の正式な校正量として扱う。 On the other hand, in the camera calibration device 10 of the present embodiment, the amount of calibration of the camera 20 derived based on the calibration marker 40 reflected in the photographed image 50 is calculated based on the first calibration amount of the calibration marker 40 at the time of photographing the photographed image 50. The correction is performed using the posture information and the second posture information of the vehicle 2 at the time the photographed image 50 was photographed. In the camera calibration device 10 of this embodiment, the corrected calibration amount obtained by correcting the calibration amount is treated as the official calibration amount of the camera 20.

例えば、本実施形態のカメラ校正装置10は、第1姿勢情報と第2姿勢情報との差分を、校正対象のカメラ20から見た校正用マーカ40の設置誤差ととらえる。そして、カメラ校正装置10は、撮影画像50に含まれる校正用マーカ40に基づいて算出した校正量から、カメラ20からみた校正用マーカ40の設置誤差による影響成分を除去した補正校正量を、カメラ20の正しい校正量として算出する。 For example, the camera calibration device 10 of this embodiment regards the difference between the first attitude information and the second attitude information as the installation error of the calibration marker 40 as seen from the camera 20 to be calibrated. Then, the camera calibration device 10 calculates a corrected calibration amount by removing the influence component due to the installation error of the calibration marker 40 as seen from the camera 20 from the calibration amount calculated based on the calibration marker 40 included in the photographed image 50. Calculate as 20 correct calibration amounts.

このように、本実施形態のカメラ校正装置10は、実空間Sに配置された校正用マーカ40の設置誤差による影響を除去した補正校正量を算出する。このため、本実施形態のカメラ校正装置10は、車両2に搭載されたカメラ20に対する校正用マーカ40の設置精度が低い場合であっても、高精度にカメラ20の校正量を算出することができる。 In this way, the camera calibration device 10 of the present embodiment calculates a corrected calibration amount that removes the influence of the installation error of the calibration marker 40 placed in the real space S. Therefore, the camera calibration device 10 of this embodiment can calculate the amount of calibration of the camera 20 with high accuracy even if the installation accuracy of the calibration marker 40 with respect to the camera 20 mounted on the vehicle 2 is low. can.

従って、本実施形態のカメラ校正装置10は、カメラ20の校正精度および作業効率の向上を図ることができる。 Therefore, the camera calibration device 10 of this embodiment can improve the calibration accuracy and work efficiency of the camera 20.

また、本実施形態のカメラ校正装置10は、校正対象のカメラ20を搭載した車両2等の搭載機器の周囲に校正用マーカ40の設置スペースが十分に無い環境であっても、カメラ20の校正精度および作業効率の向上を図ることができる。 Further, the camera calibration device 10 of the present embodiment can calibrate the camera 20 even in an environment where there is not enough installation space for the calibration marker 40 around the onboard equipment such as the vehicle 2 on which the camera 20 to be calibrated is mounted. Accuracy and work efficiency can be improved.

また、本実施形態のカメラ校正装置10は、車両2の周囲に校正用マーカ40を配置する校正担当者の熟練度に拘わらず、カメラ20の校正精度および作業効率の向上を図ることができる。また、校正用マーカと車両姿勢の差を補正する機能を有するため、校正用マーカを正確に設置しなくてもよく、作業時間を短縮することができる。 Further, the camera calibration device 10 of the present embodiment can improve the calibration accuracy and work efficiency of the camera 20, regardless of the skill level of the person in charge of calibration who arranges the calibration markers 40 around the vehicle 2. Furthermore, since it has a function of correcting the difference between the calibration marker and the vehicle attitude, the calibration marker does not have to be installed accurately, and the working time can be shortened.

なお、上述の実施形態においては、各構成要素に用いる「・・・部」という表記は、「・・・回路(circuitry)」、「・・・アッセンブリ」、「・・・デバイス」、「・・・ユニット」、または、「・・・モジュール」といった他の表記に置換されてもよい。 In the above-described embodiment, the notation "...unit" used for each component is "...circuitry", "...assembly", "...device", "... It may be replaced with other expressions such as "...unit" or "...module".

以上、図面を参照しながら実施形態について説明したが、本開示はかかる例に限定されない。当業者であれば、特許請求の範囲に記載された範疇において、各種の変更例または修正例に想到し得ることは明らかである。そのような変更例または修正例についても、本開示の技術的範囲に属するものと了解される。また、本開示の趣旨を逸脱しない範囲において、実施形態における各構成要素は任意に組み合わされてよい。 Although the embodiments have been described above with reference to the drawings, the present disclosure is not limited to such examples. It is clear that those skilled in the art can come up with various changes and modifications within the scope of the claims. It is understood that such changes or modifications also fall within the technical scope of the present disclosure. Furthermore, each component in the embodiments may be combined as desired without departing from the spirit of the present disclosure.

本開示はソフトウェア、ハードウェア、または、ハードウェアと連携したソフトウェアで実現することが可能である。上記実施形態の説明に用いた各機能ブロックは、部分的にまたは全体的に、集積回路であるLSIとして実現され、上記実施形態で説明した各プロセスは、部分的にまたは全体的に、一つのLSIまたはLSIの組み合わせによって制御されてもよい。LSIは個々のチップから構成されてもよいし、機能ブロックの一部または全てを含むように一つのチップから構成されてもよい。LSIはデータの入力と出力を備えてもよい。LSIは、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。 The present disclosure can be implemented by software, hardware, or software in conjunction with hardware. Each functional block used in the explanation of the above embodiment is partially or entirely realized as an LSI that is an integrated circuit, and each process explained in the above embodiment is partially or entirely realized as one LSI. It may be controlled by an LSI or a combination of LSIs. The LSI may be composed of individual chips, or may be composed of a single chip that includes some or all of the functional blocks. The LSI may include data input and output. LSIs are sometimes called ICs, system LSIs, super LSIs, and ultra LSIs depending on the degree of integration.

集積回路化の手法はLSIに限るものではなく、専用回路、汎用プロセッサまたは専用プロセッサで実現してもよい。また、LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。本開示は、デジタル処理またはアナログ処理として実現されてもよい。 The method of circuit integration is not limited to LSI, but may be implemented using a dedicated circuit, a general-purpose processor, or a dedicated processor. Furthermore, an FPGA (Field Programmable Gate Array) that can be programmed after the LSI is manufactured or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI may be used. The present disclosure may be implemented as digital or analog processing.

さらには、半導体技術の進歩または派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適用等が可能性としてありえる。 Furthermore, if an integrated circuit technology that replaces LSI emerges due to advancements in semiconductor technology or other derived technology, then of course the functional blocks may be integrated using that technology. Possibilities include the application of biotechnology.

なお、上記には、実施形態を説明したが、上記実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。上記新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。上記実施形態は、発明の範囲または要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although embodiments have been described above, the embodiments are presented as examples and are not intended to limit the scope of the invention. The novel embodiment described above can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the gist of the invention. The embodiments described above are included within the scope or gist of the invention, and are included within the scope of the invention described in the claims and its equivalents.

2 車両
10 カメラ校正装置
16A 画像取得回路
16B 第1姿勢情報取得回路
16C 第2姿勢情報取得回路
16D 算出回路
16E 補正回路
20、20A、20B、20C、20D カメラ
22 姿勢センサ
30 表示装置
32 表示部
34 姿勢センサ
2 Vehicle 10 Camera calibration device 16A Image acquisition circuit 16B First attitude information acquisition circuit 16C Second attitude information acquisition circuit 16D Calculation circuit 16E Correction circuits 20, 20A, 20B, 20C, 20D Camera 22 Attitude sensor 30 Display device 32 Display section 34 attitude sensor

Claims (7)

姿勢センサを備えた情報機器に設けられた校正用マーカのカメラによる撮影画像を取得する画像取得回路と、
前記撮影画像の撮影時の前記校正用マーカの第1姿勢情報を取得する第1姿勢情報取得回路と、
前記カメラの搭載装置の第2姿勢情報を取得する第2姿勢情報取得回路と、
前記撮影画像に含まれる前記校正用マーカに基づいて導出した前記カメラのカメラ姿勢情報に応じた校正量を算出する算出回路と、
前記校正量を、前記第1姿勢情報と前記第2姿勢情報との差に基づいて補正する補正回路と、
を備えるカメラ校正装置。
an image acquisition circuit that acquires an image taken by a camera of a calibration marker provided in an information device equipped with an attitude sensor;
a first posture information acquisition circuit that acquires first posture information of the calibration marker at the time of photographing the photographed image;
a second posture information acquisition circuit that acquires second posture information of the device mounted on the camera;
a calculation circuit that calculates a calibration amount according to camera attitude information of the camera derived based on the calibration marker included in the photographed image;
a correction circuit that corrects the calibration amount based on a difference between the first attitude information and the second attitude information;
A camera calibration device equipped with.
前記補正回路は、
前記校正量から前記第1姿勢情報と前記第2姿勢情報との差を減算した補正校正量を算出する、
請求項1に記載のカメラ校正装置。
The correction circuit is
calculating a corrected calibration amount by subtracting a difference between the first attitude information and the second attitude information from the calibration amount;
The camera calibration device according to claim 1.
前記画像取得回路は、
前記情報機器に設けられたモニタに表示された前記校正用マーカの、前記カメラによる前記撮影画像を取得し、
前記第1姿勢情報取得回路は、
前記校正用マーカが表示された前記モニタの前記第1姿勢情報を取得する、
請求項1に記載のカメラ校正装置。
The image acquisition circuit includes:
acquiring the image taken by the camera of the calibration marker displayed on a monitor provided in the information device;
The first posture information acquisition circuit includes:
acquiring the first attitude information of the monitor on which the calibration marker is displayed;
The camera calibration device according to claim 1.
前記校正用マーカは、
互いに交差する方向に配列された複数の平行線を含み、
前記画像取得回路は、
前記校正用マーカに含まれる少なくとも1つの平行線が前記カメラの撮影方向に平行となるように配置された前記校正用マーカの前記撮影画像を取得し、
前記算出回路は、
前記撮影画像に含まれる前記校正用マーカによって構成される平行線の延長線の収束点である消失点および複数の前記消失点を通る直線である消失線に基づいて、前記カメラ姿勢情報を算出する、
請求項1に記載のカメラ校正装置。
The calibration marker is
It includes a plurality of parallel lines arranged in directions that intersect with each other,
The image acquisition circuit includes:
acquiring the photographed image of the calibration marker arranged such that at least one parallel line included in the calibration marker is parallel to the photographing direction of the camera;
The calculation circuit is
The camera attitude information is calculated based on a vanishing point that is a convergence point of extensions of parallel lines formed by the calibration markers included in the captured image and a vanishing line that is a straight line that passes through the plurality of vanishing points. ,
The camera calibration device according to claim 1.
前記第1姿勢情報取得回路は、
前記情報機器または前記撮影画像から、前記第1姿勢情報を取得する、
請求項1に記載のカメラ校正装置。
The first posture information acquisition circuit includes:
acquiring the first posture information from the information device or the photographed image;
The camera calibration device according to claim 1.
姿勢センサを備えた情報機器に設けられた校正用マーカの、カメラによる撮影画像を取得するステップと、
前記撮影画像の撮影時の前記校正用マーカの第1姿勢情報を取得するステップと、
前記カメラの搭載装置の第2姿勢情報を取得するステップと、
前記撮影画像に含まれる前記校正用マーカに基づいて導出した前記カメラのカメラ姿勢情報に応じた校正量を算出するステップと、
前記校正量を、前記第1姿勢情報と前記第2姿勢情報との差に基づいて補正するステップと、
を含むカメラ校正方法。
a step of acquiring an image taken by a camera of a calibration marker provided on an information device equipped with an attitude sensor;
acquiring first posture information of the calibration marker at the time of photographing the photographed image;
acquiring second attitude information of the camera mounting device;
calculating a calibration amount according to camera attitude information of the camera derived based on the calibration marker included in the captured image;
correcting the calibration amount based on a difference between the first attitude information and the second attitude information;
Camera calibration methods including.
姿勢センサを備えた情報機器に設けられた校正用マーカの、カメラによる撮影画像を取得するステップと、
前記撮影画像の撮影時の前記校正用マーカの第1姿勢情報を取得するステップと、
前記カメラの搭載装置の第2姿勢情報を取得するステップと、
前記撮影画像に含まれる前記校正用マーカに基づいて導出した前記カメラのカメラ姿勢情報に応じた校正量を算出するステップと、
前記校正量を、前記第1姿勢情報と前記第2姿勢情報との差に基づいて補正するステップと、
をコンピュータに実行させるためのカメラ校正プログラム。
a step of acquiring an image taken by a camera of a calibration marker provided on an information device equipped with an attitude sensor;
acquiring first posture information of the calibration marker at the time of photographing the photographed image;
acquiring second attitude information of the camera mounting device;
calculating a calibration amount according to camera attitude information of the camera derived based on the calibration marker included in the captured image;
correcting the calibration amount based on a difference between the first attitude information and the second attitude information;
A camera calibration program to run on a computer.
JP2022049950A 2022-03-25 2022-03-25 Camera calibration device, camera calibration method, and camera calibration program Pending JP2023142834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022049950A JP2023142834A (en) 2022-03-25 2022-03-25 Camera calibration device, camera calibration method, and camera calibration program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022049950A JP2023142834A (en) 2022-03-25 2022-03-25 Camera calibration device, camera calibration method, and camera calibration program

Publications (1)

Publication Number Publication Date
JP2023142834A true JP2023142834A (en) 2023-10-05

Family

ID=88205498

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022049950A Pending JP2023142834A (en) 2022-03-25 2022-03-25 Camera calibration device, camera calibration method, and camera calibration program

Country Status (1)

Country Link
JP (1) JP2023142834A (en)

Similar Documents

Publication Publication Date Title
CN107784672B (en) Method and device for acquiring external parameters of vehicle-mounted camera
US8452568B2 (en) Method for calibrating cameras installed on vehicle
CN107481292B (en) Attitude error estimation method and device for vehicle-mounted camera
US20060227211A1 (en) Method and apparatus for measuring position and orientation
US20160063704A1 (en) Image processing device, image processing method, and program therefor
CN109883444B (en) Attitude angle coupling error compensation method and device and electronic equipment
CN111263142B (en) Method, device, equipment and medium for testing optical anti-shake of camera module
JP6966218B2 (en) Imaging equipment calibration equipment, work machines and calibration methods
CN112991453B (en) Calibration parameter verification method and device for binocular camera and electronic equipment
CN106767895B (en) The system and method for solving camera elements of exterior orientation are oriented using index point
CN111750896B (en) Holder calibration method and device, electronic equipment and storage medium
JP2007322170A (en) Method of aerial photographic survey
CN112970249A (en) Assembly for calibrating a camera and measurement of such an assembly
CN113758498A (en) Unmanned aerial vehicle holder calibration method and device
CN114777768A (en) High-precision positioning method and system for satellite rejection environment and electronic equipment
KR102167847B1 (en) System and Method for Calibration of Mobile Mapping System Using Laser Observation Equipment
JP2023142834A (en) Camera calibration device, camera calibration method, and camera calibration program
CN114754779B (en) Positioning and mapping method and device and electronic equipment
CN111563936A (en) Camera external parameter automatic calibration method and automobile data recorder
CN112633043B (en) Lane line determining method and device, electronic equipment and storage medium
CN114018212B (en) Spherical camera monocular ranging-oriented pitch angle correction method and system
CN115018922A (en) Distortion parameter calibration method, electronic device and computer readable storage medium
US8903163B2 (en) Using gravity measurements within a photogrammetric adjustment
CN113610086A (en) Reading correction method and device for vertical-scale pointer instrument and terminal equipment
CN113365045B (en) Camera module detection method, device and system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20240226