JP2014236311A - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP2014236311A
JP2014236311A JP2013115667A JP2013115667A JP2014236311A JP 2014236311 A JP2014236311 A JP 2014236311A JP 2013115667 A JP2013115667 A JP 2013115667A JP 2013115667 A JP2013115667 A JP 2013115667A JP 2014236311 A JP2014236311 A JP 2014236311A
Authority
JP
Japan
Prior art keywords
image
angle
view
imaging
captured
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.)
Granted
Application number
JP2013115667A
Other languages
Japanese (ja)
Other versions
JP6128966B2 (en
JP2014236311A5 (en
Inventor
聡 仲摩
Satoshi Nakama
聡 仲摩
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013115667A priority Critical patent/JP6128966B2/en
Publication of JP2014236311A publication Critical patent/JP2014236311A/en
Publication of JP2014236311A5 publication Critical patent/JP2014236311A5/ja
Application granted granted Critical
Publication of JP6128966B2 publication Critical patent/JP6128966B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a plurality of panorama images having different size in a short time, when an imaging apparatus can change the angle of view of an image to be captured.SOLUTION: An image is supplemented to an image corresponding to a range capable of imaging while changing the imaging direction of an imaging apparatus with a second angle of view, narrower than a first angle of view, at least in one direction. A second panorama image having a length in one direction corresponding to that of a first panorama image, corresponding to a range that can be captured by changing the imaging direction of an imaging apparatus with a first angle of view, is generated.

Description

本発明は、画像処理装置、及び画像処理方法に関し、撮像装置により撮像された撮像画像からパノラマ画像を生成する技術に関するものである。   The present invention relates to an image processing apparatus and an image processing method, and relates to a technique for generating a panoramic image from a captured image captured by an imaging apparatus.

従来、撮像装置が撮像した複数の撮像画像をつなぎ合わせることにより、1枚のパノラマ画像を作成する撮像システムが知られている。   2. Description of the Related Art Conventionally, an imaging system that creates a single panoramic image by connecting a plurality of captured images captured by an imaging apparatus is known.

特許文献1には、撮像装置が撮像した撮像画像の一部の領域の画像を用いてパノラマ画像を生成することが記載されている。   Patent Document 1 describes that a panoramic image is generated using an image of a partial area of a captured image captured by an imaging apparatus.

また特許文献2には、パノラマ画像の右端領域の画像、左端領域の画像をそれぞれパノラマ画像の左端、右端につなぎ合わせて、パノラマ画像を拡張することが記載されている。   Patent Document 2 describes that a panoramic image is expanded by connecting an image in a right end region and an image in a left end region of a panoramic image to the left end and the right end of the panoramic image, respectively.

特開2011−234121号公報JP 2011-234121 A 特開2012−80432号公報JP 2012-80432 A

撮像装置が撮像する撮像画像の画角を変更可能である場合、大きさの異なる複数のパノラマ画像を生成することができる。   When the angle of view of the captured image captured by the imaging device can be changed, a plurality of panoramic images having different sizes can be generated.

たとえば、第1の画角で撮像装置が撮像可能な撮像範囲に対応する第1のパノラマ画像を、第1の画角の撮像画像を用いて生成することができる。   For example, a first panoramic image corresponding to an imaging range that can be imaged by the imaging device at the first angle of view can be generated using the captured image at the first angle of view.

また、第1の画角と異なる第2の画角で撮像装置が撮像可能な撮像範囲に対応する第2のパノラマ画像を、第2の画角の撮像画像を用いて生成することができる。   In addition, a second panoramic image corresponding to an imaging range that can be imaged by the imaging apparatus at a second angle of view different from the first angle of view can be generated using the captured image at the second angle of view.

ここで、撮像装置が撮像する撮像画像の画角が異なる場合、撮像装置が撮像可能な撮像範囲が異なる。すなわち、第1の画角で撮像装置が撮像可能な撮像範囲に対応する第1のパノラマ画像の大きさと、第2の画角で撮像装置が撮像可能な撮像範囲に対応する第2のパノラマ画像の大きさとは異なる。   Here, when the angle of view of the captured image captured by the imaging device is different, the imaging range that can be captured by the imaging device is different. That is, the size of the first panoramic image corresponding to the imaging range that can be imaged by the imaging device at the first angle of view, and the second panoramic image corresponding to the imaging range that can be imaged by the imaging device at the second angle of view. It is different from the size.

上述のように大きさが異なる複数のパノラマ画像を生成すると、パノラマ画像を生成するために必要とする処理時間が、1枚のパノラマ画像を生成する場合よりも長くなるという課題がある。   When a plurality of panoramic images having different sizes are generated as described above, there is a problem that the processing time required for generating a panoramic image becomes longer than that when a single panoramic image is generated.

上述の特許文献1から3では、大きさの異なる複数のパノラマ画像を生成することについて想定されていなかった。   In Patent Documents 1 to 3 described above, it has not been assumed to generate a plurality of panoramic images having different sizes.

上述の課題に鑑みて、本願発明は、撮像装置が撮像する撮像画像の画角を変更可能である場合に、大きさが異なる複数のパノラマ画像を短時間で生成することを目的とする。   In view of the above-described problems, an object of the present invention is to generate a plurality of panoramic images having different sizes in a short time when the angle of view of a captured image captured by an imaging device can be changed.

上記目的を達成するために、本発明は、第1の画角と、少なくとも一方の方向の画角が前記第1の画角よりも狭い第2の画角とで撮像可能な撮像手段であって、前記第2の画角の方が画角が狭い一方の方向において撮像方向を変更して前記第2の画角で撮像可能な範囲の一方の端部から他方の端部までの角度が360度以上である前記撮像手段が撮像した撮像画像を取得する取得手段と、前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像に、前記撮像手段の撮像方向を前記一方の方向において変更可能な一方の端部において前記第1の画角で撮像される撮像領域であって前記第2の画角で撮像されない撮像領域の撮像画像を、前記一方の方向において変更可能な他方の端部に向かって撮像方向を変更して前記第2の画角で前記撮像手段が撮像した撮像画像を用いて補って、前記第1の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像に前記一方の方向の長さが対応する第2のパノラマ画像を生成する生成手段とを有することを特徴とする。   In order to achieve the above object, the present invention provides an imaging means capable of imaging with a first angle of view and a second angle of view in which the angle of view in at least one direction is narrower than the first angle of view. Thus, the angle from one end to the other end of the range that can be imaged at the second angle of view by changing the imaging direction in one direction where the angle of view of the second angle of view is narrower. An acquisition unit that acquires a captured image captured by the imaging unit that is 360 degrees or more, and an image that corresponds to a range that can be captured by changing the imaging direction of the imaging unit at the second angle of view. An imaged image of an imaging region that is imaged at the first angle of view and that is not imaged at the second angle of view at one end where the imaging direction of the imager can be changed in the one direction. Change the imaging direction toward the other end that can be changed in the direction of A first panoramic image corresponding to a range that can be captured by changing the imaging direction of the imaging unit at the first angle of view is supplemented by using a captured image captured by the imaging unit at a second angle of view. And generating means for generating a second panoramic image corresponding to the length in the one direction.

本発明によれば、撮像装置が撮像する撮像画像の画角を変更可能である場合、大きさが異なる複数のパノラマ画像を生成するために必要とする処理時間を低減することができる。   ADVANTAGE OF THE INVENTION According to this invention, when the angle of view of the captured image which an imaging device images can be changed, the processing time required in order to produce | generate several panoramic images from which a magnitude | size can be reduced can be reduced.

ネットワークカメラシステムの構成を示す図Diagram showing the configuration of the network camera system パノラマ画像の生成処理を示すフローチャート図Flowchart diagram showing panorama image generation processing アスペクト比が異なる撮像画像を説明するための図Diagram for explaining captured images with different aspect ratios パノラマ画像に補う画像のサイズ決定処理を説明するためのフローチャート図The flowchart figure for demonstrating the size determination process of the image supplemented to a panoramic image カメラ1の撮像可能範囲を説明するための図The figure for demonstrating the imaging possible range of the camera 1 撮像画像平面とパノラマ画像平面の概念図Conceptual diagram of captured image plane and panoramic image plane ビューワクライアントの画面表示例Viewer client screen display example パノラマ画像の生成処理を説明するための図Diagram for explaining panorama image generation processing

以下に、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

<実施例1>
図1は、本実施形態におけるネットワークカメラシステムのブロック図である。
<Example 1>
FIG. 1 is a block diagram of a network camera system in the present embodiment.

本実施形態にかかるネットワークカメラシステムでは、カメラ1、ビューワクライアント2(以下クライアント2)、パノラマ生成クライアント3(以下クライアント3)がネットワーク4を介して接続されている。カメラ1、クライアント2、クライアント3は、それぞれ、ネットワーク4に複数接続するができる。   In the network camera system according to this embodiment, a camera 1, a viewer client 2 (hereinafter referred to as client 2), and a panorama generation client 3 (hereinafter referred to as client 3) are connected via a network 4. A plurality of cameras 1, clients 2, and clients 3 can be connected to the network 4.

ネットワーク4は、カメラ制御信号や、カメラ1による撮像画像を通信可能なインターネットやイントラネット等のネットワークである。本実施形態ではネットワークプロトコルとしてTCP/IP(またはUDP/IP)プロトコルを仮定するがこれに限られない。また、本実施形態では、カメラ1、クライアント2、クライアント3には、それぞれ異なるIPアドレスが割り当てられるものとする。   The network 4 is a network such as the Internet or an intranet that can communicate camera control signals and images captured by the camera 1. In this embodiment, a TCP / IP (or UDP / IP) protocol is assumed as a network protocol, but the present invention is not limited to this. In the present embodiment, it is assumed that different IP addresses are assigned to the camera 1, the client 2, and the client 3, respectively.

カメラ1は、後述のクライアント2、3から画像要求コマンドを受信すると、コマンドを送信したクライアントに対して撮像画像をネットワーク4を介して配信する撮像装置である。また、カメラ1は、クライアント2、3からカメラ制御コマンドを受信すると、当該カメラ制御コマンドに応じた各種カメラ制御(例えばパン・チルト・ズーム制御)を実行する。   When receiving an image request command from clients 2 and 3 (described later), the camera 1 is an imaging device that delivers a captured image via the network 4 to the client that transmitted the command. When the camera 1 receives a camera control command from the clients 2 and 3, the camera 1 executes various camera controls (for example, pan / tilt / zoom control) according to the camera control command.

クライアント2は、カメラ1に割り当てられているIPアドレスを指定して、カメラ1と接続を行う。クライアント2は、カメラ1に対して画像要求コマンドを送信する。そしてクライアント2は、画像要求コマンドの応答として、カメラ1から撮像画像を受信し、受信した撮像画像を表示部26に表示させる。   The client 2 specifies the IP address assigned to the camera 1 and connects to the camera 1. The client 2 transmits an image request command to the camera 1. Then, the client 2 receives the captured image from the camera 1 as a response to the image request command, and causes the display unit 26 to display the received captured image.

またクライアント2は、カメラ1の撮像方向を変更させるためのカメラ制御コマンドをカメラ1に送信する。このようにして、クライアント2は変更後の撮像方向においてカメラ1が撮像した撮像画像を受信して表示部26に表示させることができる。   Further, the client 2 transmits a camera control command for changing the imaging direction of the camera 1 to the camera 1. In this way, the client 2 can receive the captured image captured by the camera 1 in the changed imaging direction and display it on the display unit 26.

クライアント3は、クライアント2と同様に、カメラ1に割り当てられているIPアドレスを指定して、カメラ1と接続を行う。またクライアント3は、クライアント2と同様に、カメラ1に対して画像要求コマンドを送信する。そしてクライアント3は、画像要求コマンドの応答として、カメラ1から撮像画像を受信する。   Similarly to the client 2, the client 3 specifies the IP address assigned to the camera 1 and connects to the camera 1. Similarly to the client 2, the client 3 transmits an image request command to the camera 1. The client 3 receives a captured image from the camera 1 as a response to the image request command.

またクライアント3は、カメラ1から受信した撮像画像を用いて、パノラマ画像を生成する画像処理装置である。本実施例では、クライアント3がパノラマ画像を生成する場合について説明するが、カメラ1が後述のパノラマ生成処理を行うこととしてもよい。   The client 3 is an image processing device that generates a panoramic image using a captured image received from the camera 1. In this embodiment, a case where the client 3 generates a panoramic image will be described. However, the camera 1 may perform a panorama generation process described later.

またクライアント3は、受信した撮像画像を表示部36に表示させる。なお、本形態におけるパノラマ画像とは、1回の撮像で得られる撮像画像よりも、大きさ(例えば、垂直画角又は水平画角の少なくとも一方)が大きい画像である。   In addition, the client 3 causes the display unit 36 to display the received captured image. Note that the panoramic image in this embodiment is an image having a larger size (for example, at least one of a vertical field angle and a horizontal field angle) than a captured image obtained by one imaging.

本実施形態のクライアント3は、カメラ1に対してパン、チルト角度を指定して所望の位置へカメラ1を移動させ、撮像指示を出す。カメラ1で撮像した映像は通信制御部11によりクライアント3へ送信される。クライアント3は受信した撮像画像を基にパノラマ画像を作成し、作成したパノラマ画像をカメラ1へ送信する。カメラ1では受信したパノラマ画像を記憶部18に記憶する。カメラ1はクライアント2からの要求に応じて、記憶部18に記憶されたパノラマ画像をクライアント2へ送信する。   The client 3 of the present embodiment designates pan and tilt angles for the camera 1, moves the camera 1 to a desired position, and issues an imaging instruction. The video imaged by the camera 1 is transmitted to the client 3 by the communication control unit 11. The client 3 creates a panorama image based on the received captured image, and transmits the created panorama image to the camera 1. The camera 1 stores the received panoramic image in the storage unit 18. The camera 1 transmits the panoramic image stored in the storage unit 18 to the client 2 in response to a request from the client 2.

次に、カメラ1の構成について図1を用いて説明する。レンズ14は撮像部15に被写体の像を結像する。撮像部15は、撮像画像を生成する。撮像部15は、生成した撮像画像を圧縮部16に入力する。本実施形態では、撮像部15は、レンズ14から入力された映像を撮像部15において撮像した撮像画像の読み出し方を切り替えて、異なる画角の撮像画像を生成することができる。本実施形態では、撮像部15が、アスペクト比の異なる撮像画像を生成できる場合について説明する。例えば、本実施形態の撮像部15は、アスペクト比が4:3の撮像画像と、アスペクト比が16:9の撮像画像を撮像することができる。   Next, the configuration of the camera 1 will be described with reference to FIG. The lens 14 forms an image of the subject on the imaging unit 15. The imaging unit 15 generates a captured image. The imaging unit 15 inputs the generated captured image to the compression unit 16. In the present embodiment, the imaging unit 15 can generate a captured image with a different angle of view by switching a method of reading a captured image obtained by capturing the video input from the lens 14 in the imaging unit 15. In the present embodiment, a case where the imaging unit 15 can generate captured images with different aspect ratios will be described. For example, the imaging unit 15 of the present embodiment can capture a captured image with an aspect ratio of 4: 3 and a captured image with an aspect ratio of 16: 9.

このようにして、撮像部15は、第1の画角と、水平画角と垂直画角のうち少なくとも一方の方向の画角が第1の画角よりも狭い第2の画角とで撮像画像を撮像可能である。   In this manner, the imaging unit 15 captures an image with the first field angle and the second field angle in which the field angle in at least one of the horizontal field angle and the vertical field angle is narrower than the first field angle. An image can be taken.

撮像部15が生成する、アスペクト比が異なる画像について図3を用いて説明する。図3Aは水平画角80度、垂直画角45度(アスペクト比16:9)で撮像した画像である。図3Bは水平画角60度、垂直画角45度(アスペクト比4:3)撮像した画像である。図3Aに示した撮像画像から、垂直画角を保って図3Bに示した撮像画像を生成する場合、図3Aに示した撮像画像の左右を切り落とすことで図3Bの画像が生成される。このようにして、第1の画角と、少なくとも一方の方向の画角が第1の画角よりも狭い第2の画角とで撮像画像を撮像可能である。   Images generated by the imaging unit 15 and having different aspect ratios will be described with reference to FIG. FIG. 3A shows an image captured at a horizontal field angle of 80 degrees and a vertical field angle of 45 degrees (aspect ratio 16: 9). FIG. 3B shows an image captured at a horizontal field angle of 60 degrees and a vertical field angle of 45 degrees (aspect ratio 4: 3). When the captured image illustrated in FIG. 3B is generated from the captured image illustrated in FIG. 3A while maintaining the vertical angle of view, the image illustrated in FIG. 3B is generated by cutting off the left and right sides of the captured image illustrated in FIG. 3A. In this manner, a captured image can be captured with the first field angle and the second field angle in which the field angle in at least one direction is narrower than the first field angle.

圧縮部16は前記入力された撮像画像を、クライアント配信に適した画像に符号化圧縮し通信制御部11へ入力する。本実施形態の圧縮部16は、撮像部15からの画像信号をA/D変換した後、JPEGで圧縮する。ただし、他の圧縮形式を用いてもよい。   The compression unit 16 encodes and compresses the input captured image into an image suitable for client distribution, and inputs the image to the communication control unit 11. The compression unit 16 of the present embodiment performs A / D conversion on the image signal from the imaging unit 15 and then compresses the image signal using JPEG. However, other compression formats may be used.

通信制御部11は、圧縮部16が圧縮した撮像画像をネットワーク4を介して画像要求コマンドの送信元クライアントに送信する。   The communication control unit 11 transmits the captured image compressed by the compression unit 16 to the transmission source client of the image request command via the network 4.

記憶部18は、後述のクライアント3によって生成されたパノラマ画像やカメラの撮像方向、撮像パラメータ等の各種設定値およびデータを保持する。本実施形態における撮像パラメータには、例えば、撮像画像を撮像するためのカメラ1のフォーカス、ホワイトバランス、露出等のパラメータが含まれる。   The storage unit 18 holds various setting values and data such as a panoramic image generated by the client 3 to be described later, the imaging direction of the camera, and imaging parameters. The imaging parameters in the present embodiment include, for example, parameters such as focus, white balance, and exposure of the camera 1 for capturing a captured image.

解釈部17は、クライアント2、3からのコマンドを解釈して、カメラ1の各部の制御を行う。例えば、解釈部17は、通信制御部11によるカメラ制御コマンドの受信を駆動制御部12に通知する。通知を受けた駆動制御部12は、駆動部13の向きやレンズ14のズーム倍率などを制御する。   The interpretation unit 17 interprets commands from the clients 2 and 3 and controls each unit of the camera 1. For example, the interpretation unit 17 notifies the drive control unit 12 that the communication control unit 11 has received a camera control command. Upon receiving the notification, the drive control unit 12 controls the direction of the drive unit 13 and the zoom magnification of the lens 14.

駆動部13は、カメラ1を駆動してカメラ1の撮像方向を変更させる。本実施形態において、駆動部13は、基準の撮像方向からパン、チルト方向にカメラ1の撮像方向を変更することができる。駆動部13は、上述の第2の画角で撮像方向を一方の画角の方向において変更して撮像可能な範囲の一方の端部から他方の端部までの角度が360度以上になるように、カメラ1の撮像方向を変更することができる。   The driving unit 13 drives the camera 1 to change the imaging direction of the camera 1. In the present embodiment, the drive unit 13 can change the imaging direction of the camera 1 from the reference imaging direction to the pan and tilt directions. The drive unit 13 changes the imaging direction at the second angle of view in the direction of one angle of view so that the angle from one end to the other end of the imageable range becomes 360 degrees or more. In addition, the imaging direction of the camera 1 can be changed.

次に、クライアント2の構成について図1を用いて説明する。   Next, the configuration of the client 2 will be described with reference to FIG.

通信制御部21は、画像要求コマンド、カメラ制御コマンドをカメラ1へ送信する。また通信制御部21は、カメラ1が撮像した撮像画像、パノラマ画像、各種カメラ制御の結果を取得する。   The communication control unit 21 transmits an image request command and a camera control command to the camera 1. The communication control unit 21 acquires a captured image, a panoramic image, and various camera control results captured by the camera 1.

また、表示制御部24は、画像伸長部25で展開された撮像画像およびパノラマ画像を表示部26に表示させる。また表示制御部24はグラフィカルユーザインタフェース(GUI)を表示部26に表示させる。操作入力部23は、ユーザのマウスやキーボードによるGUI操作を受け付ける。あるいはタッチパネル操作により、GUI操作を受け付けることとしてもよい。   In addition, the display control unit 24 causes the display unit 26 to display the captured image and panoramic image developed by the image expansion unit 25. The display control unit 24 causes the display unit 26 to display a graphical user interface (GUI). The operation input unit 23 receives a GUI operation by a user's mouse or keyboard. Alternatively, a GUI operation may be received by a touch panel operation.

ユーザのGUI操作とは、例えば、カメラ1に対して撮像方向をパン方向、又は、チルト方向に変更させる制御や、ズーム制御を指示するための操作である。例えばユーザは、表示部26に表示されたパノラマ画像上の領域をマウスクリックやタッチ操作によって指定して、指定した領域に対応する撮像領域が撮像されるようにカメラ1の撮像方向を指定することができる。   The user's GUI operation is, for example, an operation for instructing the camera 1 to change the imaging direction to the pan direction or the tilt direction and to instruct zoom control. For example, the user designates an area on the panoramic image displayed on the display unit 26 by a mouse click or a touch operation, and designates the imaging direction of the camera 1 so that an imaging area corresponding to the designated area is imaged. Can do.

例えば、カメラ1のパン・チルト位置、及び、画角を表す枠をパノラマ画像上で移動させたり、枠の大きさを変更したりすることにより、パノラマ画像上の領域を指定することができる。   For example, an area on the panoramic image can be specified by moving a pan / tilt position of the camera 1 and a frame representing an angle of view on the panoramic image or changing the size of the frame.

コマンド生成部22は、操作入力部23が受け付けたGUI操作に応じて各種カメラ制御コマンドを生成する。生成されたカメラ制御コマンドは通信制御部21からカメラ1に送信される。   The command generation unit 22 generates various camera control commands according to the GUI operation received by the operation input unit 23. The generated camera control command is transmitted from the communication control unit 21 to the camera 1.

次に、画像処理装置であるクライアント3の構成について図1を用いて説明する。通信制御部31、表示制御部34、画像伸長部35、表示部36は、それぞれクライアント2の通信制御部21、表示制御部24、画像伸長部25、表示部26と同様の機能を有する。   Next, the configuration of the client 3 that is an image processing apparatus will be described with reference to FIG. The communication control unit 31, the display control unit 34, the image expansion unit 35, and the display unit 36 have the same functions as the communication control unit 21, display control unit 24, image expansion unit 25, and display unit 26 of the client 2, respectively.

操作部33は、クライアント2の操作入力部23に入力される操作に加えて、カメラ1にパノラマ画像の生成要求(以下、「パノラマ生成要求」)を受け付ける。パノラマ生成要求には、例えば、パノラマ画像を生成する撮像領域の範囲の指定が含まれる。   The operation unit 33 accepts a panorama image generation request (hereinafter referred to as “panorama generation request”) to the camera 1 in addition to an operation input to the operation input unit 23 of the client 2. The panorama generation request includes, for example, specification of the range of the imaging region for generating a panoramic image.

算出部37は、パノラマ生成要求に応じて、指定された範囲のパノラマ画像を生成するために用いる撮像画像を撮像するための撮像方向を算出し、算出結果をコマンド生成部32に入力する。   In response to the panorama generation request, the calculation unit 37 calculates an imaging direction for capturing a captured image used to generate a panoramic image in a specified range, and inputs the calculation result to the command generation unit 32.

コマンド生成部32は、算出部37から入力されたパン・チルト角度に応じたカメラ制御コマンドを生成し、通信制御部31を介してカメラ1へ送信する。このカメラ制御コマンドを受信したカメラ1の駆動制御部12は、カメラ1の撮像方向をカメラ制御コマンドに応じたパン・チルト角度へ変更する。変更後の撮像方向において撮像され、圧縮部16によって符号化圧縮された撮像画像は、画像要求コマンドに応じてクライアント3へ送信される。   The command generation unit 32 generates a camera control command corresponding to the pan / tilt angle input from the calculation unit 37 and transmits the camera control command to the camera 1 via the communication control unit 31. Upon receiving this camera control command, the drive control unit 12 of the camera 1 changes the imaging direction of the camera 1 to a pan / tilt angle corresponding to the camera control command. The captured image captured in the changed imaging direction and encoded and compressed by the compression unit 16 is transmitted to the client 3 in response to the image request command.

パノラマ画像生成部38は、カメラ1から受信した複数の撮像画像からパノラマ画像を生成する。すなわち、パノラマ画像生成部38は、画像伸長部35で伸長された複数の撮像画像の座標値を後述する変換処理(射影変換)で変換してつなぎ合わせることでパノラマ画像を生成する。パノラマ画像生成部38におけるパノラマ画像の生成方法については、詳細を後述する。   The panorama image generation unit 38 generates a panorama image from a plurality of captured images received from the camera 1. That is, the panorama image generation unit 38 generates a panorama image by converting and connecting coordinate values of a plurality of captured images expanded by the image expansion unit 35 by a conversion process (projection conversion) described later. The details of the panorama image generation method in the panorama image generator 38 will be described later.

通信制御部31は、パノラマ生成部38が生成したパノラマ画像をカメラ1に送信する。カメラ1へ送信されたパノラマ画像はカメラ1の記憶部18に記憶される。カメラ1は、クライアント(例えば、クライアント2)からのパノラマ画像の送信要求に応じて、記憶部18に記憶したパノラマ画像を当該送信要求を行ったクライアントに送信する。   The communication control unit 31 transmits the panorama image generated by the panorama generation unit 38 to the camera 1. The panoramic image transmitted to the camera 1 is stored in the storage unit 18 of the camera 1. In response to a panoramic image transmission request from a client (for example, client 2), the camera 1 transmits the panoramic image stored in the storage unit 18 to the client that has made the transmission request.

次に本実施形態のクライアント3におけるパノラマ画像の生成処理について図8を用いて説明する。   Next, panoramic image generation processing in the client 3 of the present embodiment will be described with reference to FIG.

図8には2枚のパノラマ画像が示されている。図8上段のパノラマ画像800は、第1の画角でカメラ1の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像である。図8下段のパノラマ画像801は、カメラ1の撮像部15が、垂直画角と水平画角のうち少なくとも一方の方向の画角が第1の画角よりも狭い第2の画角でカメラ1の撮像方向を変更して撮像可能な範囲に対応する第2のパノラマ画像である。   FIG. 8 shows two panoramic images. The panoramic image 800 in the upper part of FIG. 8 is a first panoramic image corresponding to a range that can be imaged by changing the imaging direction of the camera 1 at the first angle of view. The panorama image 801 in the lower part of FIG. 8 shows that the imaging unit 15 of the camera 1 has a second field angle in which at least one of the vertical field angle and the horizontal field angle is smaller than the first field angle. It is the 2nd panoramic image corresponding to the range which can be imaged by changing the imaging direction.

本実施形態では、例として、図5に示すように、カメラ1の撮像方向を一方の端部から他方の端部までカメラ1を中心としてパン方向(水平方向)に340度回転させることができる場合について説明する。本実施形態に係るカメラ1は、図5に示すように、基準となる撮像方向(以下、「基準位置」)を0度として、±170度の範囲で撮像方向を変更することができる。   In the present embodiment, as an example, as shown in FIG. 5, the imaging direction of the camera 1 can be rotated 340 degrees in the pan direction (horizontal direction) around the camera 1 from one end to the other end. The case will be described. As shown in FIG. 5, the camera 1 according to the present embodiment can change the imaging direction within a range of ± 170 degrees, with the reference imaging direction (hereinafter referred to as “reference position”) being 0 degrees.

また、第1の画角は図3Aに示した例と同様に水平画角が80度であり、垂直画角が45度であるものとする。また、第2の画角は、図3Bに示した例と同様に、水平画角が60度であり、垂直画角が45度であるものとする。   In addition, the first field angle is assumed to be a horizontal field angle of 80 degrees and a vertical field angle of 45 degrees as in the example shown in FIG. 3A. As for the second angle of view, it is assumed that the horizontal angle of view is 60 degrees and the vertical angle of view is 45 degrees, as in the example shown in FIG. 3B.

カメラ1が第1の画角で撮像を行う場合であって、基準位置からパン方向に+170度撮像方向を変更した位置で撮像を行う場合、基準位置からパン方向に+210度の範囲まで撮像することができる。第1の画角の水平画角は80度であり、撮像中心から左右に40度ずつ撮影することができるため、パン角+170度に、水平画角の半分の角度を加えた+210度の撮像範囲まで撮像することができる。   When the camera 1 captures an image at the first angle of view and captures an image at a position where the image capturing direction is changed by +170 degrees in the pan direction from the reference position, the image is captured from the reference position to a range of +210 degrees in the pan direction. be able to. Since the horizontal angle of view of the first angle of view is 80 degrees and images can be taken 40 degrees to the left and right from the imaging center, imaging of +210 degrees is obtained by adding a half angle of the horizontal angle of view to the pan angle of +170 degrees. It is possible to image up to a range.

同様にして、カメラ1が第1の画角で撮像を行う場合であって、基準位置からパン方向に−170度撮像方向を変更した位置で撮像を行う場合、基準位置からパン方向に−210度の範囲まで撮像することができる。パン角−170度から更に、水平画角の半分の角度を引いた−210度の撮像範囲まで撮像することができる。   Similarly, when the camera 1 captures an image at the first angle of view and captures an image at a position where the image capturing direction is changed by -170 degrees from the reference position to the pan direction, -210 from the reference position to the pan direction. It is possible to image up to a range of degrees. It is possible to capture an image up to an imaging range of -210 degrees obtained by subtracting half of the horizontal angle of view from the pan angle of -170 degrees.

このように、第1の画角でカメラ1の撮像方向を変更して撮像可能な範囲の一方の端から他方の端までの水平画角は420度となる。これは、基準位置からプラス方向に撮像可能な範囲(+210度)の絶対値と基準位置からマイナス方向に撮像可能な範囲(−210度)の絶対値の和である。   As described above, the horizontal angle of view from one end to the other end of the imageable range by changing the imaging direction of the camera 1 at the first angle of view is 420 degrees. This is the sum of the absolute value of the range (+210 degrees) that can be imaged in the plus direction from the reference position and the absolute value of the range (−210 degrees) that can be imaged in the minus direction from the reference position.

カメラ1が第1の画角で撮像を行う場合と同様にして、カメラ1は第2の画角で撮像を行う場合、撮像範囲の一方の端から他方の端までの水平画角は400度となる。   In the same way as when the camera 1 captures an image at the first angle of view, when the camera 1 captures an image at the second angle of view, the horizontal angle of view from one end of the imaging range to the other end is 400 degrees. It becomes.

図8に示す通り、第1のパノラマ画像800と第2のパノラマ画像801を比較すると、第2のパノラマ画像801は、第1のパノラマ画像800に対して左右の端が水平画角10度分ずつ短い。図8では、第1のパノラマ画像と第2のパノラマ画像の差分の領域であって右端の領域を(1)´、左端の領域を(2)´として示す。   As shown in FIG. 8, when the first panorama image 800 and the second panorama image 801 are compared, the second panorama image 801 has a horizontal angle of view of 10 degrees at the left and right edges with respect to the first panorama image 800. Short one by one. In FIG. 8, the right end area of the difference area between the first panorama image and the second panorama image is indicated as (1) ′, and the left end area is indicated as (2) ′.

領域(1)´及び領域(2)´は、撮像手段の撮像方向を水平画角方向において変更可能な一方の端部において第1の画角で撮像される撮像領域であって、第2の画角で撮像されない撮像領域である。   Region (1) ′ and region (2) ′ are imaging regions that are imaged at the first angle of view at one end where the imaging direction of the imaging means can be changed in the horizontal angle of view direction. This is an imaging region that is not imaged at an angle of view.

ここで、(1)´の撮像領域は図8中の(1)の撮像領域と対応する。ここで撮像領域が対応するとは、カメラ1から同じ方向に向かって撮影された領域であることを示す。   Here, the imaging region (1) ′ corresponds to the imaging region (1) in FIG. Here, “corresponding to an imaging region” indicates that the region is a region photographed from the camera 1 in the same direction.

例えば、(1)´の領域が基準位置からパン方向に+200度〜+210度の範囲の領域であるとすると、(1)´の領域は、基準位置からパン方向に−150度〜−160度の範囲の領域である(1)の領域と対応する。同様に、(2)´の領域が基準位置からパン方向に−200度〜−210度の範囲の領域であるとすると、(2)´の領域は、基準位置からパン方向に+150度〜+160度の範囲の領域である(2)の領域と対応する。   For example, if the area (1) ′ is an area in the range of +200 degrees to +210 degrees in the pan direction from the reference position, the area (1) ′ is −150 degrees to −160 degrees in the pan direction from the reference position. This corresponds to the area (1) which is the area of the range. Similarly, if the region (2) ′ is a region in the range of −200 degrees to −210 degrees in the pan direction from the reference position, the region (2) ′ is +150 degrees to +160 in the pan direction from the reference position. This corresponds to the area (2), which is an area in the range of degrees.

(1)の領域は、第2のパノラマ画像のうち(1)´側の端部から水平画角方向に変更可能な他方の端部((2)´側の端部)に向かって撮像方向を変更して、第2の画角で撮像される領域である。(2)の領域は、第2のパノラマ画像のうち(2)´側の端部から水平画角方向に変更可能な他方の端部((1)´側の端部)に向かって撮像方向を変更して、第2の画角で撮像される領域である。   The area (1) is the imaging direction from the end part on the (1) ′ side of the second panoramic image toward the other end part (the end part on the (2) ′ side) that can be changed in the horizontal angle of view direction. In which the image is captured at the second angle of view. The area (2) is the imaging direction from the second panoramic image toward the other end (the end on the (1) 'side) that can be changed in the horizontal angle of view direction from the end on the (2)' side. In which the image is captured at the second angle of view.

本実施形態では、第2のパノラマ画像に対して、(1)´の領域を(1)の領域の画像で補い、(2)´の領域を(2)の領域の画像で補って、第1のパノラマ画像に対応する大きさの第3のパノラマ画像を生成する。   In the present embodiment, the second panoramic image is supplemented with the area (1) ′ by the image of the area (1), and the area (2) ′ is supplemented with the image of the area (2). A third panoramic image having a size corresponding to one panoramic image is generated.

このようにして第1の画角でカメラ1の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像に水平画角方向の長さが対応する第3のパノラマ画像を生成することができる。   In this way, by changing the imaging direction of the camera 1 at the first angle of view, a third panoramic image in which the length in the horizontal angle of view direction corresponds to the first panoramic image corresponding to the imageable range is generated. be able to.

第2のパノラマ画像の生成処理について図2のフローチャートを用いて説明する。図2の処理は、画像処理装置であるクライアント3の操作部33で、パノラマ画像の生成を指示する操作が入力されたことに応じて開始される。   The second panorama image generation process will be described with reference to the flowchart of FIG. The processing in FIG. 2 is started in response to an operation for instructing generation of a panoramic image being input from the operation unit 33 of the client 3 that is an image processing apparatus.

ステップS101において、コマンド生成部32は、パノラマ画像を生成する際に使用する撮像パラメータをカメラ1に対して設定するためのコマンドを生成する。本実施形態における撮像パラメータには、例えば、パノラマ画像を生成するために用いられる撮像画像を撮像するための、カメラ1のフォーカス、ホワイトバランス、露出のパラメータが含まれる。   In step S <b> 101, the command generation unit 32 generates a command for setting the imaging parameter used for generating the panoramic image for the camera 1. The imaging parameters in the present embodiment include, for example, the focus, white balance, and exposure parameters of the camera 1 for capturing a captured image used to generate a panoramic image.

また本実施形態における撮像パラメータには、パノラマ画像を生成するために用いられる撮像画像を撮像するために、カメラ1の撮像方向をパン方向に動かす範囲が含まれる。さらに本実施形態における撮像パラメータには、パノラマ画像を生成するために用いられる撮像画像を撮像するために、カメラ1の撮像方向をチルト方向に動かす範囲が含まれる。   The imaging parameters in the present embodiment include a range in which the imaging direction of the camera 1 is moved in the pan direction in order to capture a captured image used for generating a panoramic image. Furthermore, the imaging parameters in the present embodiment include a range in which the imaging direction of the camera 1 is moved in the tilt direction in order to capture a captured image that is used to generate a panoramic image.

パノラマ画像を生成するために用いられる撮像画像を撮像するためにカメラ1の撮像方向をパン方向、あるいは、チルト方向に動かす範囲は、ユーザのGUI操作によって操作部33から入力される、パノラマ画像を生成する範囲の指定に基づいて特定される。   The range in which the imaging direction of the camera 1 is moved in the pan direction or the tilt direction in order to capture the captured image used for generating the panoramic image is the panoramic image input from the operation unit 33 by the user's GUI operation. It is specified based on the specification of the range to be generated.

なお、撮像パラメータはこれらに限らず、パノラマ画像を生成するために用いられる撮像画像の画質設定を行うための他のパラメータを含めることができる。本実施形態において、パノラマ生成に用いられる撮像画像のアスペクト比は、生成処理開始時に、カメラ1に設定されているアスペクト比が用いられるものとする。以下では、カメラ1が第1のアスペクト比である第1の画角と、水平画角と垂直画角の少なくとも一方の方向の画角が第1の画角よりも狭い第2のアスペクト比の第2の画角をカメラ1が撮像可能な場合について説明する。また、以下のパノラマ生成処理の開始時に、第2のアスペクト比の第2の画角がカメラ1に設定されている場合について説明する。   The imaging parameters are not limited to these, but may include other parameters for setting the image quality of the captured image used for generating the panoramic image. In the present embodiment, the aspect ratio of the captured image used for panorama generation is the aspect ratio set in the camera 1 at the start of generation processing. In the following, the first angle of view of the first aspect ratio of the camera 1 and the second aspect ratio of which the angle of view in at least one of the horizontal angle of view and the vertical angle of view is narrower than the first angle of view. A case where the camera 1 can capture the second angle of view will be described. A case will be described in which the second angle of view of the second aspect ratio is set in the camera 1 at the start of the following panorama generation process.

ステップS102において、算出部37は操作部33において入力されたパノラマ画像を生成する範囲の指定に応じて、パノラマ画像を生成するために用いる複数の撮像画像をそれぞれ撮像するための撮像方向(パン・チルト角度)を算出する。このようにして、パノラマ画像を生成するために用いる撮像画像の撮像方向についての位置情報を取得する。   In step S102, the calculation unit 37 captures a plurality of captured images used for generating a panoramic image in accordance with the designation of a range for generating a panoramic image input by the operation unit 33 (pan and pan). Tilt angle) is calculated. In this way, position information about the imaging direction of the captured image used for generating the panoramic image is acquired.

ステップS103において、コマンド生成部32は、ステップS102で取得した撮像方向にカメラ1の撮像方向を制御するためのカメラ制御コマンドを生成して、カメラ1に送信する。このようにして、カメラ1の撮像方向を指定する。カメラ1の駆動制御部12は受信したコマンドに応じて、駆動部13を駆動させカメラ1の撮像方向を変更する。   In step S <b> 103, the command generation unit 32 generates a camera control command for controlling the imaging direction of the camera 1 in the imaging direction acquired in step S <b> 102 and transmits it to the camera 1. In this way, the imaging direction of the camera 1 is designated. The drive control unit 12 of the camera 1 changes the imaging direction of the camera 1 by driving the drive unit 13 in accordance with the received command.

ステップS103において送信したカメラ制御コマンドに応じた撮像方向にカメラ1の撮像方向が制御されたことを示す通知を通信制御部31がカメラ1から受信すると、ステップS104において、コマンド生成部32は画像要求コマンドを送信する。クライアント3は、カメラ1に画像要求コマンドを送信することにより、撮像を実行させる。   When the communication control unit 31 receives from the camera 1 a notification indicating that the imaging direction of the camera 1 is controlled in the imaging direction according to the camera control command transmitted in step S103, in step S104, the command generation unit 32 performs an image request. Send a command. The client 3 executes imaging by transmitting an image request command to the camera 1.

カメラ1は、画像要求コマンドの受信に応じて、現在のパン・チルト角度で撮像を行う。これによりパノラマ画像を生成するために用いられる複数の撮像画像のうちの1枚が得られる。このようにして撮像された撮像画像は、撮像部15に入力されたのち、圧縮部16で圧縮され、通信制御部11を介してクライアント3へ送信される。   The camera 1 captures an image at the current pan / tilt angle in response to receiving the image request command. Accordingly, one of a plurality of captured images used for generating a panoramic image is obtained. The captured image thus captured is input to the imaging unit 15, compressed by the compression unit 16, and transmitted to the client 3 via the communication control unit 11.

ステップS105において、基準位置からパン方向又はチルト方向に±180度を超える範囲の画像が、現在撮像している撮像画像の画角内に含まれているか判定する。本実施形態では、基準位置からパン方向に±180度を超える範囲の画像が、現在撮像している撮像画像の画角内に含まれているか判定する場合について説明する。   In step S105, it is determined whether an image in a range exceeding ± 180 degrees in the pan direction or the tilt direction from the reference position is included within the angle of view of the currently captured image. In the present embodiment, a case will be described in which it is determined whether an image in a range exceeding ± 180 degrees in the pan direction from the reference position is included within the angle of view of the currently captured image.

ステップS105の判定は、例えば、基準位置を0度とした場合の現在の撮像方向のパン角度と、カメラ1の撮像する画像の水平画角とを用いて行うことができる。すなわち、現在のパン角度Θpの絶対値と、水平画角Θhの1/2の絶対値とを加算した値が、180を超えている場合、基準位置からパン方向に±180度を超える範囲の画像が、現在撮像している撮像画像の画角内に含まれていると判定することができる。   The determination in step S105 can be performed using, for example, the pan angle in the current imaging direction when the reference position is 0 degree and the horizontal angle of view of the image captured by the camera 1. That is, if the value obtained by adding the absolute value of the current pan angle Θp and the absolute value of ½ of the horizontal angle of view Θh exceeds 180, it is within a range exceeding ± 180 degrees in the pan direction from the reference position. It can be determined that the image is included within the angle of view of the currently captured image.

基準位置からパン方向に±180度を超える範囲の画像が、現在撮像している撮像画像の画角内に含まれる場合(ステップS105においてYesの場合)、ステップS106に進む。   If an image in a range exceeding ± 180 degrees in the pan direction from the reference position is included within the angle of view of the currently captured image (Yes in step S105), the process proceeds to step S106.

ステップS106において、パノラマ画像生成部38は、±180度を超えた部分の画像を一時保存する。   In step S106, the panoramic image generation unit 38 temporarily stores an image of a portion exceeding ± 180 degrees.

一方、基準位置からパン方向に±180度を超える範囲の画像が、現在撮像している撮像画像の画角内に含まれない場合(ステップS105においてNoの場合)、ステップS107に進む。   On the other hand, if an image in a range exceeding ± 180 degrees in the pan direction from the reference position is not included in the angle of view of the currently captured image (No in step S105), the process proceeds to step S107.

ステップS107において、コマンド生成部32は、パノラマ画像の生成に用いる撮像画像を全て取得したか否かを判定する。   In step S107, the command generation unit 32 determines whether or not all captured images used for generating the panoramic image have been acquired.

パノラマ画像の生成に用いる撮像画像を全て取得したと判定した場合(S107においてYesの場合)はステップS108へ進む。   If it is determined that all the captured images used for generating the panoramic image have been acquired (Yes in S107), the process proceeds to step S108.

パノラマ画像の生成に用いる撮像画像が全て取得されていない判定した場合(S107においてNoの場合)はステップS102に戻る。   If it is determined that not all the captured images used for generating the panorama image have been acquired (No in S107), the process returns to step S102.

S102に戻った場合、コマンド生成部32は、まだ撮像していない位置へのパン・チルト角度を算出してカメラ制御コマンドをカメラ1に送信する。そして、上述のステップS103からステップS107の処理を行う。ステップS102からステップS107の処理を繰り返すことにより、クライアント3はパノラマ画像の生成に用いる全ての撮像画像を取得することができる。   When returning to S <b> 102, the command generation unit 32 calculates a pan / tilt angle to a position that has not yet been imaged and transmits a camera control command to the camera 1. Then, the processing from step S103 to step S107 described above is performed. By repeating the processing from step S102 to step S107, the client 3 can acquire all the captured images used for generating the panoramic image.

なおステップS107において、ユーザからパノラマ画像の生成を中断する指示がなされた場合には、パノラマ画像の生成に用いる撮像画像が全て取得されていない判定した場合であっても、ステップS108へ進むこととしてもよい。   In step S107, if the user gives an instruction to interrupt the generation of the panoramic image, the process proceeds to step S108 even if it is determined that all the captured images used for generating the panoramic image have not been acquired. Also good.

ステップS108において、コマンド生成部32は、パノラマ画像の生成を中断する指示が入力されたか否かを判定する。S108において、撮像中断による指示が操作部33から入力されて中断された場合、ステップS113に進み、撮像中の画像を全て破棄して終了する。全ての画像が撮像終了したと判断された場合にはステップS109へ進む。   In step S108, the command generation unit 32 determines whether an instruction to interrupt the generation of the panoramic image has been input. In S108, when an instruction for interrupting imaging is input from the operation unit 33 and interrupted, the process proceeds to step S113, where all the images being captured are discarded and the process ends. If it is determined that all images have been captured, the process proceeds to step S109.

ステップS109において、パノラマ画像生成部38はステップS106で一時的に保存されていたパン角度±180度を超えた部分を含む画像を、パノラマ画像に追加する。パノラマ画像に画像を追加する方法については後述する。画像が追加されたパノラマ画像は表示制御部34を介して表示部36に表示される。   In step S109, the panorama image generation unit 38 adds an image including a portion exceeding the pan angle ± 180 degrees temporarily stored in step S106 to the panorama image. A method for adding an image to a panoramic image will be described later. The panoramic image to which the image has been added is displayed on the display unit 36 via the display control unit 34.

ステップS110において、表示部36に表示されたパノラマ画像の一部だけを再撮像することを指示することができる。例えば、ユーザがクライアント3のGUIを操作して、パノラマ画像の一部の画像を再度撮像する指示を入力することができる。ユーザは、再撮像を行う範囲と、再撮像実行命令をクライアント3に入力する。クライアント3は入力された範囲の情報と再撮像実行命令を、操作部33を介してコマンド生成部32に入力する。このようにして、パノラマ画像生成部38が生成したパノラマ画像における第1の領域を指定する。そして第1の領域に対応する撮像領域を撮像する指示をカメラ1に対して行う。   In step S110, it can be instructed to re-image only a part of the panoramic image displayed on the display unit. For example, the user can input an instruction to capture a part of the panoramic image again by operating the GUI of the client 3. The user inputs a re-imaging range and a re-imaging execution command to the client 3. The client 3 inputs the input range information and the re-imaging execution command to the command generation unit 32 via the operation unit 33. In this way, the first region in the panorama image generated by the panorama image generator 38 is designated. Then, the camera 1 is instructed to image the imaging area corresponding to the first area.

あるいは、クライアント3がパノラマ画像中に人体の画像が存在することを示す情報、或いは、パノラマ画像中に動体が存在することを示す情報をクライアント3が取得して、当該取得した情報に応じてカメラ1に対して再撮像を指示することとしてもよい。クライアント3はこれらの情報をカメラ1から取得することができる。カメラ1は、撮像画像中に人体や動体を検出した場合、人体や動体を検出した撮像画像を撮像した撮像方向や画角等をクライアント3に通知する。クライアント3は、通知された情報が示す撮像方向や画角に対応するパノラマ画像上の領域の画像をカメラ1に再撮像させる再撮像指示をコマンド生成部32に入力することができる。   Alternatively, the client 3 acquires information indicating that the human body image is present in the panoramic image, or information indicating that the moving object is present in the panoramic image, and the camera 3 performs the camera according to the acquired information. 1 may be instructed to perform re-imaging. The client 3 can acquire such information from the camera 1. When the camera 1 detects a human body or a moving body in the captured image, the camera 1 notifies the client 3 of the imaging direction, the angle of view, and the like in which the captured image obtained by detecting the human body or the moving body is captured. The client 3 can input a re-imaging instruction for causing the camera 1 to re-image the image of the area on the panoramic image corresponding to the imaging direction and the angle of view indicated by the notified information.

再撮像指示がコマンド生成部32に入力されると、ステップS103へ戻る。そして、コマンド生成部32は指示された位置のパン・チルト角度へのカメラの撮像方向を変更させるためのカメラ制御コマンドを送信する。送信されたカメラ制御コマンドに応じた撮像方向にカメラ1の撮像方向が制御されたことを示す通知を通信制御部31が受信すると、コマンド生成部32は撮像コマンドを送信し、カメラ1に再撮像を実行させる。再撮像前に生成したパノラマ画像のうち、再撮像された部分(再撮像領域)を更新した新たなパノラマ画像を生成する。   When the re-imaging instruction is input to the command generation unit 32, the process returns to step S103. Then, the command generation unit 32 transmits a camera control command for changing the imaging direction of the camera to the pan / tilt angle at the instructed position. When the communication control unit 31 receives a notification indicating that the imaging direction of the camera 1 has been controlled in the imaging direction according to the transmitted camera control command, the command generation unit 32 transmits the imaging command and re-images to the camera 1. Is executed. Of the panoramic image generated before re-imaging, a new panoramic image in which a re-imaged part (re-imaging region) is updated is generated.

ステップS109において追加した映像に対応する領域が再撮像された場合、映像を追加する前のパノラマ画像上の再撮像領域と、追加した映像上の再撮像領域の2か所が更新される。図8に示した例では、(1)の領域が再撮像された場合、(1)の領域と(1)´の領域の画像が更新される。   When the area corresponding to the added video is re-imaged in step S109, two locations of the re-imaging area on the panoramic image before adding the video and the re-imaging area on the added video are updated. In the example shown in FIG. 8, when the area (1) is re-imaged, the images of the area (1) and the area (1) ′ are updated.

このようにして、パノラマ画像生成部38は、カメラ1が再撮像指示に応じて撮像した撮像画像を用いて、パノラマ画像における第1の領域の画像を更新した新たなパノラマ画像を生成する。   In this manner, the panoramic image generation unit 38 generates a new panoramic image in which the image of the first region in the panoramic image is updated using the captured image captured by the camera 1 in response to the re-imaging instruction.

ステップS110で操作部33から撮像指示ではない入力が行われた場合はステップS111へ進み、画像保存して終了するか否かを確認する。操作部33から画像保存を指示された場合は、S112に進み、パノラマ画像を通信制御部31より完成したパノラマ画像をカメラ1へ送信する。カメラ1は通信制御部11で受けたパノラマ画像を記憶部18に保存する。   If an input that is not an imaging instruction is performed from the operation unit 33 in step S110, the process proceeds to step S111, and it is confirmed whether or not the image is stored and terminated. If an instruction to save an image is given from the operation unit 33, the process proceeds to S <b> 112, and the completed panorama image is transmitted from the communication control unit 31 to the camera 1. The camera 1 stores the panoramic image received by the communication control unit 11 in the storage unit 18.

ステップS111で画像保存しないで終了する指示が操作部33から行われた場合、ステップS113に進み、パノラマ画像生成部で作成したパノラマ画像を破棄し終了する。パノラマ画像を破棄した場合、カメラ1の記憶部18に既にパノラマ画像が保存されていれば更新されない。   If an instruction to end without saving the image is given from the operation unit 33 in step S111, the process proceeds to step S113, where the panorama image created by the panorama image generation unit is discarded and the process ends. When the panoramic image is discarded, it is not updated if the panoramic image is already stored in the storage unit 18 of the camera 1.

次に、図2のステップ109において基準位置から±180度を超えた撮像範囲の情報を記憶する処理について図4を用いて説明する。   Next, the processing for storing information of the imaging range exceeding ± 180 degrees from the reference position in step 109 in FIG. 2 will be described with reference to FIG.

クライアント3の通信制御部31は、ステップS201でカメラ1に対して撮像画角及びアスペクト比の情報を取得するための制御コマンドを送信する。   In step S201, the communication control unit 31 of the client 3 transmits a control command for acquiring information on the imaging angle of view and aspect ratio to the camera 1.

カメラ1は通信制御部11で受信した制御コマンドを解釈部17で解釈すると、圧縮部16で圧縮している画像のサイズ及びアスペクト比と画角情報を取得する。さらに、カメラ1の駆動制御部12は現在の撮像方向を取得する。そして、取得した画像サイズ、アスペクト比、及び、撮像方向を通信制御部11からクライアント3に送信する。   When the interpreter 17 interprets the control command received by the communication controller 11, the camera 1 acquires the size, aspect ratio, and angle of view information of the image compressed by the compressor 16. Further, the drive control unit 12 of the camera 1 acquires the current imaging direction. Then, the acquired image size, aspect ratio, and imaging direction are transmitted from the communication control unit 11 to the client 3.

クライアント3は通信制御部31で受信した情報を、コマンド生成部32を介して算出部37に渡す。   The client 3 passes the information received by the communication control unit 31 to the calculation unit 37 via the command generation unit 32.

ステップS202において、受信した返答情報を基に、算出部37で、パン角度とチルト角度、画角情報、アスペクト比情報から現在の画像の撮像範囲を算出する。撮像範囲がパン角度の±180度を超えているか否かを判断する。ステップS105で説明したように水平画角の計算には、撮像画像の画角とパン角度を用い計算することができる。撮像範囲がパン角度を超えていれば、ステップS203に進む。   In step S202, based on the received response information, the calculation unit 37 calculates the imaging range of the current image from the pan angle and tilt angle, field angle information, and aspect ratio information. It is determined whether the imaging range exceeds ± 180 degrees of the pan angle. As described in step S105, the horizontal angle of view can be calculated using the angle of view and pan angle of the captured image. If the imaging range exceeds the pan angle, the process proceeds to step S203.

ステップS203においてパノラマ画像の端位置に補う画像の大きさを計算する。図5にアスペクト比4:3で水平画角が60度である場合の撮像画像の一例を示す。本実施の形態では、パンの可動限界位置は±170度とする。   In step S203, the size of the image to be supplemented to the end position of the panoramic image is calculated. FIG. 5 shows an example of a captured image when the aspect ratio is 4: 3 and the horizontal angle of view is 60 degrees. In the present embodiment, the pan movable limit position is set to ± 170 degrees.

パン角度+170度の場合は51の細点線枠内に示される画像が撮像範囲となる。撮像範囲の中心が+170度であり撮像画像左端は+180度を超えている。よって中心より+10度左から画像左端までの水平画角20度分の領域52が補う対象となる。   When the pan angle is +170 degrees, the image shown in the 51 thin dotted line frame is the imaging range. The center of the imaging range is +170 degrees, and the left end of the captured image exceeds +180 degrees. Therefore, the region 52 corresponding to 20 degrees in the horizontal angle of view from +10 degrees to the left end of the image from the center is a target to be supplemented.

パン角度−170度の場合は53の太点線枠内に示される画像が撮像範囲となる。撮像範囲の中心が−170度であるため、撮像画像右端は−180度を超えている。従って、中心より−10度右から画像右端までの水平画角20度分の領域54が補う対象となる。   When the pan angle is -170 degrees, the image shown in the 53 thick dotted line frame is the imaging range. Since the center of the imaging range is −170 degrees, the right end of the captured image exceeds −180 degrees. Accordingly, the region 54 corresponding to 20 degrees in the horizontal angle of view from −10 degrees right to the right end of the image from the center is an object to be supplemented.

画角サイズは、アスペクト比による水平画角の差を計算することで得ることができる。図3で示したように16:9と4:3では水平画角で20度の差があり、パンの可動限界位置である端部分では、画像の半分が対象となるため10度の差が出てくる。つまり4:3と16:9の画角差は、端部分において±10度であり、補間すべき映像データは±180度から超えた部分に更に10度超えた部分の画像となる。+180度の場合は補う画像領域としては55の部分であり、−180度の場合は補う領域は56の部分となる。   The angle of view can be obtained by calculating the difference in horizontal angle of view depending on the aspect ratio. As shown in FIG. 3, there is a difference of 20 degrees in the horizontal angle of view between 16: 9 and 4: 3, and at the end portion which is the movable limit position of the pan, half of the image is targeted, so the difference of 10 degrees Come out. In other words, the angle of view difference between 4: 3 and 16: 9 is ± 10 degrees at the end portion, and the video data to be interpolated is an image of a portion exceeding 10 degrees beyond the portion exceeding ± 180 degrees. In the case of +180 degrees, the image area to be supplemented is 55, and in the case of -180 degrees, the area to be supplemented is 56.

ステップS202の計算で、パン角度が±180度を超えていなければステップS204に進む。画像を補うことは不要となるため補う画像のサイズは0に設定される。   If the pan angle does not exceed ± 180 degrees in the calculation in step S202, the process proceeds to step S204. Since it is not necessary to supplement the image, the size of the supplemented image is set to zero.

ステップS205において補うサイズをパノラマ画像生成部38に一時的に保存しておき、ステップS109においてコピーする際に、パノラマ画像の両端に付与することになる。両端への付与の際には、アスペクト比の水平画角による画角の差を埋めるために、保存された領域情報から算出された画像領域を、一時保存されている画像の中から抽出する。パノラマ画像生成部38で生成されたパノラマ画像は圧縮部39で圧縮し、表示制御部34を介して表示部36に表示される。   The size to be supplemented in step S205 is temporarily stored in the panoramic image generation unit 38, and is added to both ends of the panoramic image when copying in step S109. When applying to both ends, an image area calculated from the stored area information is extracted from the temporarily stored image in order to fill the difference in the angle of view due to the horizontal angle of view of the aspect ratio. The panorama image generated by the panorama image generation unit 38 is compressed by the compression unit 39 and displayed on the display unit 36 via the display control unit 34.

次に、複数の撮像画像からパノラマ画像を生成するために用いる射影変換について、図6を用いて説明する。   Next, projective transformation used for generating a panoramic image from a plurality of captured images will be described with reference to FIG.

図6は、撮像画像平面とパノラマ画像平面の概念図である。   FIG. 6 is a conceptual diagram of the captured image plane and the panoramic image plane.

パノラマ画像を生成するための射影変換は、地図の投影法における心射図法を用いて説明することができる。すなわち、心射図法における視点(Qとする)を、パン・チルト中心Q(0,0,0)に置く。そして、あるパンチルト角度(ρ,τ)で得られた画像平面上の座標をP1(x,y)、視点Qを中心とする半径R上の球面上に接するようにこの画像を置いたときに、P1(x,y)と視点Qを結ぶ直線が球面と交わる点の座標を極座標表示する。   Projective transformation for generating a panoramic image can be described using a cardiac projection method in a map projection method. That is, the viewpoint (Q) in the echocardiography is placed at the pan / tilt center Q (0, 0, 0). When the image is placed so that the coordinates on the image plane obtained at a certain pan / tilt angle (ρ, τ) are in contact with a spherical surface on the radius R with the viewpoint Q as the center, P1 (x, y). , P1 (x, y) and the coordinates of the point where the straight line connecting the viewpoint Q intersects the spherical surface are displayed in polar coordinates.

この極座標表示の結果を(Rsinθcosφ,Rcosθcosφ,Rsinφ)とすると、心射図法においては、mを定数として一般に次の式が成り立つ。   Assuming that the polar coordinate display result is (R sin θ cos φ, R cos θ cos φ, R sin φ), the following formula is generally established in the echocardiographic method with m as a constant.

x=m・Rcosφsin(θ−ρ)/{sinφsinτ+cosφcosτcos(θ−ρ)} (式1.1)
y=m・R(sinφcosτ−cosφsinτcos(θ−ρ))/{sinφsinτ+cosφcosτcos(θ−ρ)} (式1.2)
なお、パン・チルト角度(ρ,τ)のときにこの画像平面と球の交わる画像平面上の座標を原点(0,0)とする。
x = m · R cos φ sin (θ−ρ) / {sin φ sin τ + cos φ cos τ cos (θ−ρ)} (Formula 1.1)
y = m · R (sinφcosτ−cosφsinτcos (θ−ρ)) / {sinφsinτ + cosφcosτcos (θ−ρ)} (Formula 1.2)
Note that the coordinates on the image plane where the image plane and the sphere intersect at the pan / tilt angle (ρ, τ) are defined as the origin (0, 0).

ここで、パン・チルトして得られる全撮像範囲を角度で表したものを、パン方向θmin〜θmax、チルト方向φmin〜φmaxとする。なお、この角度は、駆動部12のパン・チルト可動範囲にレンズ14の画角を加えたものである。すなわち、パン・チルト限界をそれぞれ、Pmin,Pmax,Tmin,Tmaxとして、レンズ14の画角を水平、垂直それぞれAh,Avとすると、
θmin=Pmin−Ah/2
θmax=Pmax+Ah/2
φmin=Pmin−Av/2
φmax=Pmax+Av/2
となる。生成するパノラマ画像の画素数を横H画素、縦V画素とすると、1画素に相当する画角は、パン方向、チルト方向それぞれ
Δθ=(θmax−θmin)/H (式2.1)
Δφ=(φmax−φmin)/V (式2.2)
となる。すなわちパノラマ画像上の画素(i,j)は、パン・チルト角度(θ,φ)で表すと
(θ,φ)=(θmin+Δθ×i,φmin+Δφ×j)
但し、
i=0,1,2,・・・,H−1
j=0,1,2,・・・,V−1
で表すことができる。
Here, the whole imaging range obtained by panning / tilting is represented by an angle as pan direction θmin to θmax and tilt direction φmin to φmax. This angle is obtained by adding the angle of view of the lens 14 to the pan / tilt movable range of the drive unit 12. That is, when the pan / tilt limits are Pmin, Pmax, Tmin, and Tmax, respectively, and the angle of view of the lens 14 is Ah and Av, respectively,
θmin = Pmin−Ah / 2
θmax = Pmax + Ah / 2
φmin = Pmin−Av / 2
φmax = Pmax + Av / 2
It becomes. If the number of pixels of the panorama image to be generated is horizontal H pixels and vertical V pixels, the angle of view corresponding to one pixel is Δθ = (θmax−θmin) / H (Equation 2.1)
Δφ = (φmax−φmin) / V (Formula 2.2)
It becomes. That is, the pixel (i, j) on the panoramic image is represented by the pan / tilt angle (θ, φ). (Θ, φ) = (θmin + Δθ × i, φmin + Δφ × j)
However,
i = 0, 1, 2,..., H−1
j = 0, 1, 2,..., V-1
Can be expressed as

したがって、この(θ,φ)と、ある画像img(Pa,Tb)を得る際のパン、チルト角度、(ρ,τ)=(Pa,Tb)から、画像img(Pa,Tb)上の座標(x,y)が、パノラマ画像上のどの座標に対応するかが決定される。この際、式(1.1),(1.2),(2.1),(2.2)が用いられる。ただし、a=1,2,・・・,n,b=1,2,・・・,mである。すなわちパノラマ画像上の座標をXp,Ypとすると、この変換式をFとすれば、元の撮像画像の座標は、パノラマ画像上の座標
(Xp、Yp)=F(X、y、Pa、Tb) 式(3)
にマッピングされることになる。
Therefore, the coordinates on the image img (Pa, Tb) are obtained from this (θ, φ) and the pan / tilt angle (ρ, τ) = (Pa, Tb) when obtaining a certain image img (Pa, Tb). It is determined which coordinate on the panoramic image corresponds to (x, y). At this time, equations (1.1), (1.2), (2.1), and (2.2) are used. However, a = 1, 2,..., N, b = 1, 2,. That is, if the coordinates on the panorama image are Xp and Yp, and if this conversion formula is F, the coordinates of the original captured image are the coordinates on the panorama image (Xp, Yp) = F (X, y, Pa, Tb Formula (3)
Will be mapped.

したがって、パノラマ画像上の座標(Xp,Yp)の画素値は元の撮像画像img(Pa,Tb)の画素値で置き換えることができる。これを全パノラマ画像上の画素(i,j)について求めれば、パン、チルト角度にリニアな座標系を持つパノラマ画像が得られる。この変換式Fがパノラマ画像生成部38によって実行される射影変換の計算式である。   Therefore, the pixel value of the coordinate (Xp, Yp) on the panoramic image can be replaced with the pixel value of the original captured image img (Pa, Tb). If this is obtained for pixels (i, j) on all panoramic images, a panoramic image having a linear coordinate system for pan and tilt angles can be obtained. This conversion formula F is a calculation formula for projective conversion executed by the panoramic image generation unit 38.

次に、クライアント2において、アスペクト比4:3と16:9の場合における、撮像可能範囲を考慮したパノラマ画像の表示方法について、図7を用いて説明する。   Next, a method for displaying a panoramic image in consideration of the imageable range in the case where the client 2 has an aspect ratio of 4: 3 and 16: 9 will be described with reference to FIG.

図7はクライアント2の表示部26及びクライアント3の表示部26に表示されるビューワのGUIの例である。図7に示したビューワは、図7Aはアスペクト比16:9の表示、図7Bはアスペクト比4:3の表示を示している。   FIG. 7 shows an example of the GUI of the viewer displayed on the display unit 26 of the client 2 and the display unit 26 of the client 3. In the viewer shown in FIG. 7, FIG. 7A shows a display with an aspect ratio of 16: 9, and FIG. 7B shows a display with an aspect ratio of 4: 3.

クライアント2の表示画面には、カメラ1で撮像されたライブ画像を表示するライブ画像表示部70、76があり、それぞれカメラ1の記憶部18から取得されたパノラマ画像を表示するパノラマ画像表示部71、77を有する。   The display screen of the client 2 includes live image display units 70 and 76 that display live images captured by the camera 1, and each displays a panoramic image acquired from the storage unit 18 of the camera 1. , 77.

ライブ画像表示部70、76は、カメラ1が撮像した画像を表示させる第1の領域である。パノラマ画像表示部71、77は、パノラマ画像生成部38が生成したパノラマ画像を表示させるための第2の領域である。   The live image display units 70 and 76 are first areas for displaying images captured by the camera 1. The panorama image display units 71 and 77 are second areas for displaying the panorama image generated by the panorama image generation unit 38.

また、クライアント2の表示画面には、つまみのドラッグによりパンとチルト方向にカメラ1を制御するコマンドを指示するパンスクロールバー73とチルトスクロールバー74があり、ズーム制御を指示するズームスライダー75が表示される。   The display screen of the client 2 includes a pan scroll bar 73 and a tilt scroll bar 74 for instructing commands for controlling the camera 1 in the pan and tilt directions by dragging a knob, and a zoom slider 75 for instructing zoom control is displayed. Is done.

パンスクロールバー73とチルトスクロールバー74とズームスライダーバー75は、アスペクト比の異なる場合でも共通に使用される。さらに、パノラマ画像表示部71、77にはパン、チルト、ズーム制御を指示するためのパノラマプレビュー枠72、78が表示される。   The pan scroll bar 73, the tilt scroll bar 74, and the zoom slider bar 75 are commonly used even when the aspect ratios are different. Further, panorama image display units 71 and 77 display panorama preview frames 72 and 78 for instructing pan, tilt and zoom control.

パノラマプレビュー枠72、78を例えばマウスドラッグにより移動させることにより、カメラ1の撮像方向を制御することが可能である。また、パノラマプレビュー枠72、78の大きさを例えばマウスドラッグにより変更することで、カメラ1のズーム倍率を制御することが可能である。ライブ画像表示部70、76には、パノラマプレビュー枠72、78に対する操作による制御後のライブ画像が表示される。   It is possible to control the imaging direction of the camera 1 by moving the panorama preview frames 72 and 78 by, for example, mouse dragging. Further, the zoom magnification of the camera 1 can be controlled by changing the size of the panorama preview frames 72 and 78 by, for example, dragging the mouse. On the live image display sections 70 and 76, live images after control by operations on the panorama preview frames 72 and 78 are displayed.

カメラ1が図3Aに示した第1の画角(アスペクト比16:9)で映像配信を行っている場合には、ビューワは図7Aのようにライブ画像表示部70とパノラマプレビュー枠72は、第1の画角に合わせた表示枠となる。   When the camera 1 is delivering video at the first angle of view (aspect ratio 16: 9) shown in FIG. 3A, the viewer displays the live image display unit 70 and the panorama preview frame 72 as shown in FIG. The display frame matches the first angle of view.

カメラ1が図3Bに示した第2の画角(アスペクト比4:3)で映像配信を行っている場合には、図7Bのようにライブ画像表示部76とパノラマプレビュー枠78は、第2の画角に合わせた表示枠となる。   When the camera 1 is delivering video at the second angle of view (aspect ratio 4: 3) shown in FIG. 3B, the live image display unit 76 and the panorama preview frame 78 are displayed in the second view angle as shown in FIG. 7B. The display frame matches the angle of view.

パノラマ画像表示部71は、カメラ1が第1の画角の水平画角で撮像可能な範囲のパノラマ画像を、カメラ1の記憶部18に保存されているパノラマ画像を用いて表示する。一方、第2の画角の撮像画像を表示するビューワでは、パノラマ画像表示部77は、第2の画角の水平画角に合わせた撮像可能範囲になるようにパノラマ画像の左右の端を非表示領域として表示しないように制御する。例えば、非表示領域に黒枠画像を重畳することにより、パノラマ画像の左右の端を非表示とすることができる。   The panoramic image display unit 71 displays a panoramic image in a range that can be captured by the camera 1 with the horizontal angle of view of the first angle of view using the panoramic image stored in the storage unit 18 of the camera 1. On the other hand, in the viewer that displays the captured image of the second angle of view, the panoramic image display unit 77 displays the left and right ends of the panoramic image so as to be within the imageable range that matches the horizontal angle of view of the second angle of view. Control not to display as a display area. For example, the left and right edges of the panoramic image can be hidden by superimposing a black frame image on the non-display area.

すなわち、第2の画角の撮像画像を第1の領域に表示させる場合、パノラマ画像生成部38が生成した第3のパノラマ画像の一部の表示を制限する。そして、第3のパノラマ画像のうち、第2の画角でカメラ1の撮像方向を変更して撮像可能な範囲(図8の801)に対応する領域の画像を表示画面の第2の領域に表示させる。   That is, when the captured image having the second angle of view is displayed in the first area, the display of a part of the third panoramic image generated by the panoramic image generation unit 38 is limited. Then, in the third panoramic image, an image in an area corresponding to a range (801 in FIG. 8) that can be imaged by changing the imaging direction of the camera 1 at the second angle of view is set as the second area of the display screen. Display.

なお、ビューワの図7AとBでは、ライブ画像表示部70、76をアスペクト比に合わせて表示すると説明したが、表示領域はアスペクト比に合わせて変化するが、表示サイズはアスペクト比を拡大、縮小することも可能である。またアスペクト比16:9の領域内に4:3の画像を表すことも可能であり、その場合は非表示領域を設けることで対応する。もちろん4:3の領域内に16:9の画像を表示することも可能であり、本実施の形態において表示領域の表現を変更しても目的を達成できる。   In FIGS. 7A and 7B of the viewer, it has been described that the live image display units 70 and 76 are displayed according to the aspect ratio. However, the display area changes according to the aspect ratio, but the display size is enlarged or reduced. It is also possible to do. It is also possible to represent a 4: 3 image in an area with an aspect ratio of 16: 9. In this case, a non-display area is provided. Of course, a 16: 9 image can be displayed in the 4: 3 area, and the object can be achieved even if the display area is changed in this embodiment.

本実施形態では第1の画角でカメラ1の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像に対応する大きさのパノラマ画像を、水平画角又は垂直画角の少なくとも一方が第1の画角よりも狭い第2の画角で撮像した撮像画像を用いて生成できる。   In the present embodiment, the panorama image having a size corresponding to the first panorama image corresponding to the range that can be imaged by changing the imaging direction of the camera 1 at the first angle of view is at least a horizontal angle of view or a vertical angle of view. One can be generated using a captured image captured at a second field angle narrower than the first field angle.

また、このようにして生成したパノラマ画像の一部の表示を制限することにより、第2の画角でカメラ1の撮像方向を変更して撮像可能な範囲に対応するパノラマ画像を表示させることができる。   In addition, by restricting the display of a part of the panoramic image generated in this way, the panoramic image corresponding to the imageable range can be displayed by changing the imaging direction of the camera 1 at the second angle of view. it can.

このようにして、撮像装置が第1の画角と第2の画角で撮像可能である場合、第1の画角よりも狭い第2の画角で撮像する場合にも、大きさが異なる複数のパノラマ画像を生成することができる。   In this way, when the imaging device can capture images with the first angle of view and the second angle of view, the size is different even when imaging with a second angle of view that is narrower than the first angle of view. A plurality of panoramic images can be generated.

したがって、撮像装置が撮像する撮像画像の画角を変更可能である場合に、大きさが異なる複数のパノラマ画像を生成するために必要とする処理時間低減することができる。   Therefore, when the angle of view of the captured image captured by the imaging device can be changed, the processing time required to generate a plurality of panoramic images having different sizes can be reduced.

更に、表示においてパノラマ画像をアスペクト比に応じて表示することで、適切な撮像可能範囲を示すパノラマ表示領域を表示することができる。なお、本実施の形態において、パノラマ画像は水平画角が広い画角に合わせて作成する説明を行ったが、水平画角に応じて複数のパノラマ画像を生成及び保存することも可能である。   Furthermore, by displaying the panorama image according to the aspect ratio in the display, it is possible to display a panorama display area indicating an appropriate image pickup range. In the present embodiment, the panoramic image is created in accordance with the wide angle of view. However, a plurality of panoramic images can be generated and stored in accordance with the horizontal angle of view.

<その他の実施例>
上述の実施形態では、クライアント3がパノラマ画像を生成する場合について説明したが、カメラ1がパノラマ生成処理を行うこととしてもよい。
<Other examples>
In the above-described embodiment, the case where the client 3 generates a panoramic image has been described. However, the camera 1 may perform panorama generation processing.

また、上述の実施形態では、図1に示すカメラ1、クライアント2、クライアント3の各部の処理が、それぞれ専用のハードウェアにより実行される例について説明したが、これに限られない。図1に示すカメラ1、クライアント2、クライアント3の各部の処理の少なくとも一部の処理を、CPU(Central Processing Unit)等のプロセッサで実行するようにしても良い。   Moreover, although the above-mentioned embodiment demonstrated the example in which the process of each part of the camera 1, the client 2, and the client 3 shown in FIG. 1 was each performed by exclusive hardware, it is not restricted to this. At least a part of the processing of each unit of the camera 1, the client 2, and the client 3 illustrated in FIG. 1 may be executed by a processor such as a CPU (Central Processing Unit).

例えば、図1に示すカメラ1の各部のうち少なくとも一部を、カメラ1のCPUと、当該CPUで実行されるプログラムを格納するメモリに置き換えて、処理を実行するようにしても良い。また、同様に、クライアント2、3の各部のうち少なくとも一部を、クライアント2、3のCPUと、当該CPUで実行されるプログラムを格納するメモリに置き換えて、処理を実行するようにしても良い。   For example, at least a part of each unit of the camera 1 illustrated in FIG. 1 may be replaced with the CPU of the camera 1 and a memory that stores a program executed by the CPU, and the process may be executed. Similarly, at least a part of each part of the clients 2 and 3 may be replaced with the CPU of the clients 2 and 3 and a memory that stores a program executed by the CPU to execute the processing. .

図2又は図4で示すフローチャートの処理のうちの少なくとも一部が、CPUで実行することも可能である。クライアント3がプロセッサを内蔵する形態では、図2又は図4の処理フローは、図2又は図4に示す手順をプロセッサに実行させるためのプログラムを示す。クライアント3が内蔵するプロセッサはコンピュータであり、クライアント3が内蔵する記憶部から読み出したプログラムを実行する。   It is also possible for at least a part of the processing of the flowchart shown in FIG. 2 or FIG. 4 to be executed by the CPU. In the form in which the client 3 includes a processor, the processing flow of FIG. 2 or 4 shows a program for causing the processor to execute the procedure shown in FIG. 2 or FIG. The processor built in the client 3 is a computer, and executes a program read from a storage unit built in the client 3.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

1 カメラ
2 ビューワクライアント
3 パノラマ生成用クライアント
31 通信制御部
38 パノラマ画像生成部
34 表示制御部
33 操作部
DESCRIPTION OF SYMBOLS 1 Camera 2 Viewer client 3 Client for panorama generation 31 Communication control part 38 Panorama image generation part 34 Display control part 33 Operation part

Claims (12)

第1の画角と、少なくとも一方の方向の画角が前記第1の画角よりも狭い第2の画角とで撮像可能な撮像手段であって、前記第2の画角の方が画角が狭い一方の方向において撮像方向を変更して前記第2の画角で撮像可能な範囲の一方の端部から他方の端部までの角度が360度以上である前記撮像手段が撮像した撮像画像を取得する取得手段と、
前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像に、前記撮像手段の撮像方向を前記一方の方向において変更可能な一方の端部において前記第1の画角で撮像される撮像領域であって前記第2の画角で撮像されない撮像領域の撮像画像を、前記一方の方向において変更可能な他方の端部に向かって撮像方向を変更して前記第2の画角で前記撮像手段が撮像した撮像画像を用いて補って、前記第1の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像に前記一方の方向の長さが対応する第2のパノラマ画像を生成する生成手段と
を有することを特徴とする画像処理装置。
An imaging means capable of capturing an image with a first angle of view and a second angle of view in which the angle of view in at least one direction is narrower than the first angle of view, wherein the second angle of view is the angle of view. An image picked up by the image pickup means whose angle from one end to the other end of the range that can be picked up at the second angle of view by changing the image pickup direction in one direction with a narrow angle is 360 degrees or more. An acquisition means for acquiring an image;
An image corresponding to a range that can be imaged by changing the imaging direction of the imaging unit at the second angle of view, the first direction at one end where the imaging direction of the imaging unit can be changed in the one direction. The imaging area of the imaging area that is imaged at the angle of view of the imaging area that is not imaged at the second angle of view is changed in the imaging direction toward the other end that can be changed in the one direction. A first panoramic image corresponding to a range that can be captured by changing the imaging direction of the imaging unit at the first angle of view is supplemented by using a captured image captured by the imaging unit at a second angle of view. An image processing apparatus comprising: generating means for generating a second panoramic image corresponding to the length in the one direction.
表示手段が表示する表示画面の第1の領域に前記撮像手段が撮像した撮像画像を表示させ、前記表示手段が表示する表示画面の第2の領域に前記生成手段が生成した前記第2のパノラマ画像を表示させる表示制御手段を有し、
前記表示制御手段は、前記第2の画角の撮像画像を前記表示画面の前記第1の領域に表示させる場合、前記第2のパノラマ画像の一部の領域の表示を制限して、前記第2のパノラマ画像のうち前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像を前記表示画面の前記第2の領域に表示させることを特徴とする請求項1に記載の画像処理装置。
The captured image captured by the imaging unit is displayed in a first area of the display screen displayed by the display unit, and the second panorama generated by the generation unit is displayed in a second area of the display screen displayed by the display unit. Having display control means for displaying an image;
The display control unit restricts display of a partial area of the second panoramic image when displaying the captured image of the second angle of view in the first area of the display screen, and An image corresponding to a range that can be imaged by changing the imaging direction of the imaging unit at the second angle of view among the two panoramic images is displayed in the second area of the display screen. Item 8. The image processing apparatus according to Item 1.
前記生成手段が生成した前記第2のパノラマ画像における第1の領域を指定する指定手段と、
前記第1の領域に対応する撮像領域を撮像する指示を前記撮像手段に対して行う指示手段とを有し、
前記生成手段は、前記撮像手段が前記指示に応じて撮像した撮像画像を用いて前記第2のパノラマ画像における第1の領域の画像を更新した第3のパノラマ画像を生成することを特徴とする請求項1に記載の画像処理装置。
Designating means for designating a first area in the second panoramic image generated by the generating means;
Instruction means for instructing the imaging means to image an imaging area corresponding to the first area;
The generating unit generates a third panoramic image obtained by updating an image of a first region in the second panoramic image using a captured image captured by the imaging unit according to the instruction. The image processing apparatus according to claim 1.
前記第1の画角と前記第2の画角はアスペクト比が異なることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the first field angle and the second field angle have different aspect ratios. 第1の画角と、少なくとも一方の方向の画角が前記第1の画角よりも狭い第2の画角とで撮像可能な撮像手段であって、前記第2の画角の方が画角が狭い一方の方向において撮像方向を変更して前記第2の画角で撮像可能な範囲の一方の端部から他方の端部までの角度が360度以上である前記撮像手段が撮像した撮像画像を取得する取得ステップと、
前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像に、前記撮像手段の撮像方向を前記一方の方向において変更可能な一方の端部において前記第1の画角で撮像される撮像領域であって前記第2の画角で撮像されない撮像領域の撮像画像を、前記一方の方向において変更可能な他方の端部に向かって撮像方向を変更して前記第2の画角で前記撮像手段が撮像した撮像画像を用いて補って、前記第1の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像に前記一方の方向の長さが対応する第2のパノラマ画像を生成する生成ステップと
を有することを特徴とする画像処理方法。
An imaging means capable of capturing an image with a first angle of view and a second angle of view in which the angle of view in at least one direction is narrower than the first angle of view, wherein the second angle of view is the angle of view. An image picked up by the image pickup means whose angle from one end to the other end of the range that can be picked up at the second angle of view by changing the image pickup direction in one direction with a narrow angle is 360 degrees or more. An acquisition step of acquiring an image;
An image corresponding to a range that can be imaged by changing the imaging direction of the imaging unit at the second angle of view, the first direction at one end where the imaging direction of the imaging unit can be changed in the one direction The imaging area of the imaging area that is imaged at the angle of view of the imaging area that is not imaged at the second angle of view is changed in the imaging direction toward the other end that can be changed in the one direction. A first panoramic image corresponding to a range that can be captured by changing the imaging direction of the imaging unit at the first angle of view is supplemented by using a captured image captured by the imaging unit at a second angle of view. An image processing method comprising: generating a second panoramic image corresponding to a length in the one direction.
表示手段が表示する表示画面の第1の領域に前記撮像手段が撮像した撮像画像を表示させ、前記表示手段が表示する表示画面の第2の領域に前記生成ステップにおいて生成した前記第2のパノラマ画像を表示させる表示制御ステップを有し、
前記表示制御ステップにおいて、前記第2の画角の撮像画像を前記表示画面の前記第1の領域に表示させる場合、前記第2のパノラマ画像の一部の領域の表示を制限して、前記第2のパノラマ画像のうち前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像を前記表示画面の前記第2の領域に表示させることを特徴とする請求項5に記載の画像処理方法。
The second panorama generated in the generating step is displayed in the second region of the display screen displayed by the display unit, the captured image captured by the imaging unit is displayed in the first region of the display screen displayed by the display unit. A display control step for displaying an image;
In the display control step, when the captured image having the second angle of view is displayed in the first region of the display screen, the display of the partial region of the second panoramic image is limited, An image corresponding to a range that can be imaged by changing the imaging direction of the imaging unit at the second angle of view among the two panoramic images is displayed in the second area of the display screen. Item 6. The image processing method according to Item 5.
前記生成ステップにおいて生成した前記第2のパノラマ画像における第1の領域を指定する指定ステップと、
前記第1の領域に対応する撮像領域を撮像する指示を前記撮像手段に対して行う指示ステップとを有し、
前記生成ステップにおいて、前記撮像手段が前記指示に応じて撮像した撮像画像を用いて前記第2のパノラマ画像における第1の領域の画像を更新した第3のパノラマ画像を生成することを特徴とする請求項5に記載の画像処理方法。
A designation step of designating a first region in the second panoramic image generated in the generation step;
An instruction step for instructing the imaging means to image an imaging area corresponding to the first area;
The generating step generates a third panoramic image in which the image of the first region in the second panoramic image is updated using the captured image captured by the imaging unit in response to the instruction. The image processing method according to claim 5.
前記第1の画角と前記第2の画角はアスペクト比が異なることを特徴とする請求項5に記載の画像処理方法。   The image processing method according to claim 5, wherein the first angle of view and the second angle of view are different in aspect ratio. コンピュータに、
第1の画角と、少なくとも一方の方向の画角が前記第1の画角よりも狭い第2の画角とで撮像可能な撮像手段であって、前記第2の画角の方が画角が狭い一方の方向において撮像方向を変更して前記第2の画角で撮像可能な範囲の一方の端部から他方の端部までの角度が360度以上である前記撮像手段が撮像した撮像画像を取得する取得手順と、
前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像に、前記撮像手段の撮像方向を前記一方の方向において変更可能な一方の端部において前記第1の画角で撮像される撮像領域であって前記第2の画角で撮像されない撮像領域の撮像画像を、前記一方の方向において変更可能な他方の端部に向かって撮像方向を変更して前記第2の画角で前記撮像手段が撮像した撮像画像を用いて補って、前記第1の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する第1のパノラマ画像に前記一方の方向の長さが対応する第2のパノラマ画像を生成する生成手順と
を実行させるためのプログラム。
On the computer,
An imaging means capable of capturing an image with a first angle of view and a second angle of view in which the angle of view in at least one direction is narrower than the first angle of view, wherein the second angle of view is the angle of view. An image picked up by the image pickup means whose angle from one end to the other end of the range that can be picked up at the second angle of view by changing the image pickup direction in one direction with a narrow angle is 360 degrees or more. An acquisition procedure to acquire an image;
An image corresponding to a range that can be imaged by changing the imaging direction of the imaging unit at the second angle of view, the first direction at one end where the imaging direction of the imaging unit can be changed in the one direction The imaging area of the imaging area that is imaged at the angle of view of the imaging area that is not imaged at the second angle of view is changed in the imaging direction toward the other end that can be changed in the one direction. A first panoramic image corresponding to a range that can be captured by changing the imaging direction of the imaging unit at the first angle of view is supplemented by using a captured image captured by the imaging unit at a second angle of view. A generation procedure for generating a second panoramic image corresponding to a length in the one direction.
前記コンピュータに、
表示手段が表示する表示画面の第1の領域に前記撮像手段が撮像した撮像画像を表示させ、前記表示手段が表示する表示画面の第2の領域に前記生成手段が生成した前記第2のパノラマ画像を表示させる表示制御手順を実行させ、
前記表示制御手順において、前記第2の画角の撮像画像を前記表示画面の前記第1の領域に表示させる場合、前記第2のパノラマ画像の一部の領域の表示を制限して、前記第2のパノラマ画像のうち前記第2の画角で前記撮像手段の撮像方向を変更して撮像可能な範囲に対応する画像を前記表示画面の前記第2の領域に表示させる処理を前記コンピュータに実行させるための請求項9に記載のプログラム。
In the computer,
The captured image captured by the imaging unit is displayed in a first area of the display screen displayed by the display unit, and the second panorama generated by the generation unit is displayed in a second area of the display screen displayed by the display unit. Execute the display control procedure to display the image,
In the display control procedure, when the captured image of the second angle of view is displayed in the first area of the display screen, the display of the partial area of the second panoramic image is limited, A process of causing the computer to display an image corresponding to a range that can be captured by changing the imaging direction of the imaging unit at the second angle of view among the two panoramic images in the second area of the display screen. The program of Claim 9 for making it do.
前記コンピュータに、
前記生成手順において生成した前記第2のパノラマ画像における第1の領域を指定する指定手順と、
前記第1の領域に対応する撮像領域を撮像する指示を前記撮像手段に対して行う指示手順とを実行させ、
前記生成手順において、前記撮像手段が前記指示に応じて撮像した撮像画像を用いて前記第2のパノラマ画像における第1の領域の画像を更新した第3のパノラマ画像を生成する処理を前記コンピュータに実行させるための請求項9に記載のプログラム。
In the computer,
A designation procedure for designating a first region in the second panoramic image generated in the generation procedure;
An instruction procedure for instructing the imaging means to image an imaging area corresponding to the first area;
In the generation procedure, processing for generating a third panoramic image in which the image of the first region in the second panoramic image is updated using the captured image captured by the imaging unit according to the instruction is performed on the computer. The program according to claim 9 for execution.
前記第1の画角と前記第2の画角はアスペクト比が異なることを特徴とする請求項9に記載のプログラム。   The program according to claim 9, wherein the first angle of view and the second angle of view are different in aspect ratio.
JP2013115667A 2013-05-31 2013-05-31 Image processing apparatus, image processing method, and program Active JP6128966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013115667A JP6128966B2 (en) 2013-05-31 2013-05-31 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013115667A JP6128966B2 (en) 2013-05-31 2013-05-31 Image processing apparatus, image processing method, and program

Publications (3)

Publication Number Publication Date
JP2014236311A true JP2014236311A (en) 2014-12-15
JP2014236311A5 JP2014236311A5 (en) 2016-07-07
JP6128966B2 JP6128966B2 (en) 2017-05-17

Family

ID=52138737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013115667A Active JP6128966B2 (en) 2013-05-31 2013-05-31 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6128966B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016178534A (en) * 2015-03-20 2016-10-06 キヤノン株式会社 Image processing device and method thereof, and image processing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000347650A (en) * 1999-06-07 2000-12-15 Matsushita Joho System Kk Device and method for displaying image
JP2007143064A (en) * 2005-11-22 2007-06-07 Canon Inc Imaging device and imaging method
JP2010114599A (en) * 2008-11-05 2010-05-20 Nikon Corp Digital camera
JP2011234121A (en) * 2010-04-27 2011-11-17 Fujifilm Corp Photographing apparatus and panoramic photographing method
JP2012160904A (en) * 2011-01-31 2012-08-23 Sony Corp Information processor, information processing method, program, and imaging apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000347650A (en) * 1999-06-07 2000-12-15 Matsushita Joho System Kk Device and method for displaying image
JP2007143064A (en) * 2005-11-22 2007-06-07 Canon Inc Imaging device and imaging method
JP2010114599A (en) * 2008-11-05 2010-05-20 Nikon Corp Digital camera
JP2011234121A (en) * 2010-04-27 2011-11-17 Fujifilm Corp Photographing apparatus and panoramic photographing method
JP2012160904A (en) * 2011-01-31 2012-08-23 Sony Corp Information processor, information processing method, program, and imaging apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016178534A (en) * 2015-03-20 2016-10-06 キヤノン株式会社 Image processing device and method thereof, and image processing system
US10542210B2 (en) 2015-03-20 2020-01-21 Canon Kabushiki Kaisha Display control apparatus, image processing apparatus, display control method, and image processing method in which a panoramic image corresponds to a range indicated on a user interface

Also Published As

Publication number Publication date
JP6128966B2 (en) 2017-05-17

Similar Documents

Publication Publication Date Title
JP5005080B2 (en) Panorama image generation method
JP5569329B2 (en) Conference system, monitoring system, image processing apparatus, image processing method, image processing program, etc.
JP4914171B2 (en) Imaging device control method and camera system
JP5596972B2 (en) Control device and control method of imaging apparatus
US20170041530A1 (en) Information processing apparatus and control method therefor
KR20110108265A (en) Control device, camera system and program
JP2009010782A (en) Image processor and control program
JP7204346B2 (en) Information processing device, system, information processing method and program
US20120057037A1 (en) Imaging control system, control apparatus, control method, and storage medium
JP2010283529A (en) Display control device, method of controlling display device, program, and storage medium
JP2001136514A (en) Camera control system, and control method and storage medium thereof
JPH118845A (en) Panoramic image generation device and its method
JP6231757B2 (en) Imaging apparatus, information processing apparatus, control method therefor, and program
JP6128966B2 (en) Image processing apparatus, image processing method, and program
JP2015115851A (en) Focus control device and focus control method
JP6584093B2 (en) Image processing apparatus, image processing method, and program
JP6504793B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
CN117083871A (en) Method for controlling camera
JP2001136431A (en) Camera controller and camera control method and storage medium
KR20170055455A (en) Camera system for compensating distortion of lens using super wide angle camera and Transport Video Interface Apparatus used in it
JP5863257B2 (en) Panorama image generation apparatus and generation method
JP2019192996A (en) Projection control apparatus and projection control method
JP2013085041A (en) Information processing apparatus, processing method thereof, and program
JP4628350B2 (en) Camera control apparatus, camera control method, and camera control program
JP2013042213A (en) Image processing device, image processing method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160519

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160519

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170116

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: 20170314

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170411

R151 Written notification of patent or utility model registration

Ref document number: 6128966

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151