JP7410688B2 - Imaging device and its control method - Google Patents
Imaging device and its control method Download PDFInfo
- Publication number
- JP7410688B2 JP7410688B2 JP2019197646A JP2019197646A JP7410688B2 JP 7410688 B2 JP7410688 B2 JP 7410688B2 JP 2019197646 A JP2019197646 A JP 2019197646A JP 2019197646 A JP2019197646 A JP 2019197646A JP 7410688 B2 JP7410688 B2 JP 7410688B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- camera
- mac address
- controller
- imaging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003384 imaging method Methods 0.000 title claims description 42
- 238000000034 method Methods 0.000 title claims description 25
- 230000001133 acceleration Effects 0.000 claims description 41
- 230000007246 mechanism Effects 0.000 claims description 14
- 230000008859 change Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000004044 response Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Accessories Of Cameras (AREA)
- Studio Devices (AREA)
Description
本発明は、撮像装置の駆動制御に関するものである。 The present invention relates to drive control of an imaging device.
近年、カメラで撮影した映像を配信するシステムとして、Internet Protocol(IP)を用いた映像伝送システムが広く普及している。また、カメラの設定変更や、パン・チルト・ズーム(PTZ)を遠隔制御するためのコントローラと呼ばれる制御装置を用いることも一般的である。カメラとコントローラが共通の標準規格に準拠している場合、カメラと同一のメーカーが製造したコントローラだけでなく、他社製のコントローラと接続して利用することが出来る。例えば、カメラと制御装置との接続に関する標準規格として、Open Network Video Interface Forum(ONVIF)が利用されている。 In recent years, video transmission systems using Internet Protocol (IP) have become widely used as systems for distributing video captured by cameras. It is also common to use a control device called a controller for changing camera settings and remotely controlling pan-tilt-zoom (PTZ). If the camera and controller conform to a common standard, it can be used not only with controllers manufactured by the same manufacturer as the camera, but also with controllers made by other companies. For example, the Open Network Video Interface Forum (ONVIF) is used as a standard for connecting cameras and control devices.
ただし、異なる複数のコントローラを利用する場合、ユーザは、コントローラに依存した操作感の違いを体感することがある。例えば、物理的に操作具(ジョイスティック等)が異なる場合や、操作具を操作した際のPTZ操作コマンド送信のアルゴリズムがコントローラごとに異なる場合、同一の力や角度で操作しても、PTZの加減速に違いが発生する。 However, when using a plurality of different controllers, the user may experience a difference in operational feel depending on the controller. For example, if the operating tools (joysticks, etc.) are physically different, or if the algorithm for sending PTZ operation commands when operating the operating tool is different for each controller, the PTZ addition may be different even if the operating tool is operated with the same force or angle. There will be a difference in deceleration.
特許文献1では、カメラの入力部を介したズーム操作と外部装置を介したズーム操作との間での操作感を統一するために、外部装置を介したズーム操作時はズーム作動速度を低下させる手法が開示されている。
In
しかしながら、特許文献1には、ズーム制御に関する操作感の違いを低減させる手法について開示しているものの、パン・チルト制御に関する操作感の違いについては開示していない。
However, although
本発明は、このような問題に鑑みてなされたものであり、異なる複数のコントローラを利用する場合におけるPTZ制御に関する操作感の違いを低減する技術を提供することを目的としている。 The present invention has been made in view of such problems, and aims to provide a technique for reducing differences in operational feel regarding PTZ control when a plurality of different controllers are used.
上述の問題点を解決するため、本発明に係る撮像装置は以下の構成を備える。すなわち、撮像方向を変更可能に構成された撮像装置は、
前記撮像装置をユーザによる操作に基づいて制御するための制御装置から所定のコマンドを受信する受信手段と、
前記所定のコマンドに含まれる前記制御装置を識別する識別情報に基づいて、前記撮像装置における撮像方向を変更するための機構を駆動する際の加速度を規定する設定値を決定する決定手段と、
を有する。
In order to solve the above-mentioned problems, an imaging device according to the present invention has the following configuration. In other words, an imaging device configured to be able to change the imaging direction is
receiving means for receiving a predetermined command from a control device for controlling the imaging device based on an operation by a user ;
determining means for determining a setting value that defines an acceleration when driving a mechanism for changing the imaging direction in the imaging device , based on identification information that identifies the control device included in the predetermined command ;
has .
本発明によれば、異なる複数のコントローラを利用する場合におけるPTZ制御に関する操作感の違いを低減する技術を提供することができる。 According to the present invention, it is possible to provide a technique for reducing differences in operational feel regarding PTZ control when a plurality of different controllers are used.
以下、添付図面を参照して実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る発明を限定するものでするものではない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments are not intended to limit the claimed invention. Although a plurality of features are described in the embodiments, not all of these features are essential to the invention, and the plurality of features may be arbitrarily combined. Furthermore, in the accompanying drawings, the same or similar components are designated by the same reference numerals, and redundant description will be omitted.
<概要>
標準規格であるONVIFにおいて、カメラのPTZ駆動時の加速度を示すパラメータとしてRampパラメータが規格されている。しかしながら、必須のパラメータでないため対応していないコントローラも存在し、また、Rampはリスト型のパラメータであるためどのような加速度であるかを示すことが出来ない。更に、ONVIFをはじめ、カメラ制御の共通プロトコルにおいては、制御装置がカメラに一方的に制御コマンドを送る規格が多く、その場合にはカメラがコントローラの情報を取得することが出来ない。
<Summary>
In the standard ONVIF, a Ramp parameter is specified as a parameter indicating the acceleration of the camera during PTZ driving. However, since it is not an essential parameter, some controllers do not support it, and since Ramp is a list-type parameter, it cannot indicate what kind of acceleration it is. Furthermore, in common protocols for camera control such as ONVIF, there are many standards in which a control device unilaterally sends control commands to a camera, and in that case, the camera cannot acquire controller information.
そこで、本発明では、カメラ側で、各コントローラをMacアドレス(装置の識別情報)により識別し、コントローラに応じて最適なRampの値(加速度)を決定する。これにより、ONVIFコマンドを用いたPTZ駆動の加速度の制御が可能となり、操作感が統一された撮像システムが実現される。 Therefore, in the present invention, each controller is identified by a Mac address (device identification information) on the camera side, and an optimal Ramp value (acceleration) is determined according to the controller. This makes it possible to control the acceleration of the PTZ drive using ONVIF commands, and realizes an imaging system with a unified operational feel.
(第1実施形態)
本発明に係る撮像装置の第1実施形態として、ONVIFに準拠した制御をコントローラから受け付けて撮像方向を変更可能に構成されたカメラを例に挙げて以下に説明する。特に、第1実施形態では、コントローラから送信された、PTZ駆動に関する構成情報の取得要求コマンドに含まれるMacアドレスによってコントローラを識別し、応答する加速度情報(Ramp値)を変更する形態について説明する。
(First embodiment)
As a first embodiment of the imaging device according to the present invention, a camera configured to accept ONVIF-compliant control from a controller and change the imaging direction will be described below as an example. In particular, in the first embodiment, a mode will be described in which the controller is identified by the Mac address included in a command for requesting configuration information related to PTZ driving sent from the controller, and the response acceleration information (Ramp value) is changed.
<システム及び装置構成>
図1は、撮像システムの全体構成を示す図である。撮像システムは、カメラ1000、コントローラ2000A、コントローラ2000Bを含み、これらの機器は、ネットワーク3000を介して相互に通信可能に接続されている。コントローラ2000A及び2000Bは、カメラ1000に対して、PTZ制御等を行うための各制御コマンドを送信する。カメラ1000は、受信した制御コマンドに対するレスポンスをコントローラ2000A及び2000Bに送信する。以下では、コントローラ2000A及び2000Bを代表してコントローラ2000と表現する。
<System and device configuration>
FIG. 1 is a diagram showing the overall configuration of an imaging system. The imaging system includes a
図2は、カメラ1000の内部構成を示すブロック図である。制御部1001は、例えばCPUで構成され、カメラ全体の制御を行う。記憶部1002は、例えば、RAMで構成され、後述するカメラ側の処理を実現するためのプログラムやデータの格納領域、及び、プログラムを実行する際のワーク領域として使用される。データには、撮像部1003が生成する画像データ、撮像機構制御部1005で利用される設定値(撮像機構の方向や、撮像機構駆動時の加速度の値等)などのデータが含まれる。なお、記憶部1002の一部を、ROMやHDDなどにより構成してもよい。
FIG. 2 is a block diagram showing the internal configuration of
撮像部1003は、撮像機構1004により結像された被写体像を撮像して得られる画像信号を撮像画像として記憶部1002に出力する。撮像機構1004は、レンズや撮像素子等からなる撮像光学系及び、撮像方向や画角を制御するパン・チルト・ズーム(PTZ)機構で構成される。撮像機構制御部1005は、撮像機構1004のPTZ機構を駆動制御し、駆動制御により変更された撮像領域(方向や画角)に係る値を記憶部1002に出力する。
The
通信部1006は、ネットワーク3000を介して各種データを送受信する。例えば、コントローラ2000からの制御コマンドの受信、制御コマンドに対する応答や記憶部1002に格納された画像データ等の様々なデータのコントローラ2000への送信に使用される。
The
なお、図2に示した構成は一例であり、カメラ1000は図2の構成に限定されるものでは無い。例えば、映像解析部、音声入力部、音声出力部等の更なる機能部を追加で備え得る。
Note that the configuration shown in FIG. 2 is an example, and the
図3は、コントローラ2000の内部構成を示すブロック図である。制御部2001は、例えばCPUで構成され、コントローラ全体の制御を行う。記憶部2002は、例えば、RAMで構成され、後述するコントローラ側の処理を実現するためのプログラムやデータの格納領域、及び、プログラムを実行する際のワーク領域として使用される。データには、現在ネットワーク3000に接続され、コントローラ2000と接続可能なカメラの情報などのデータが含まれる。なお、記憶部2002の一部を、ROMやHDDなどにより構成してもよい。
FIG. 3 is a block diagram showing the internal configuration of
表示部2003は、例えばLCD等で構成され、コントローラ2000の使用者に対して、様々な設定画面や、データ取得・表示画面、各種メッセージ等を表示する。入力部2004は、例えばボタン、タッチパネル、PTZ操作用のジョイスティック等で構成され、ユーザーによる操作を受け付け、受け付けた内容を制御部2001に通知する。
The
通信部2005は、ネットワーク3000を介して各種データを送受信する。例えば、カメラ1000への制御コマンドの送信、制御コマンドに対するレスポンスや画像データ等のカメラ1000からの受信に使用される。
The
なお、図3に示した構成は一例であり、コントローラ2000は図3の構成に限定されるものでは無い。例えば、受信映像表示部、画像解析処理部、映像蓄積部等の更なる機能部を追加で備え得る。
Note that the configuration shown in FIG. 3 is an example, and the
<装置の動作>
図4は、第1実施形態におけるシステムの動作シーケンスを示す図である。具体的には、ONVIFにおけるPTZ駆動に関する構成情報の取得要求コマンドを介して、コントローラ2000が、カメラ1000のPTZ駆動の加速度指定値を取得するシーケンスを示している。
<Device operation>
FIG. 4 is a diagram showing the operation sequence of the system in the first embodiment. Specifically, it shows a sequence in which the
S1001では、コントローラ2000は、GetPTZConfigurationコマンドをカメラ1000に送信する。ここで、GetPTZConfigurationコマンドは、カメラが保有するPTZConfigurationを問い合わせて取得するためのコマンドである。PTZConfigurationとは、ONVIFで規格化されているPTZ駆動に関する設定値である。PTZ駆動時の加速度を示すパラメータであるRampパラメータもPTZConfigurationに含まれる。Rampパラメータは、加速度の各段階を整数値で示すパラメータである。
In S1001, the
S1002では、カメラ1000は、GetPTZConfigurationコマンドを受信すると、コントローラ2000に送信(応答)する設定値を決定する。GetPTZCofigurationコマンドには、カメラが持つConfigurationを識別するために、Tokenと呼ばれるトークン情報(識別子)が付与されている。カメラ1000は、Token及び、GetPTZConfigurationに付与されるMacアドレスを使用して、コントローラ2000に応答する設定値を決定する。S1003では、カメラ1000は、S1002で決定した設定値をコントローラ2000に送信する。
In S1002, upon receiving the GetPTZConfiguration command, the
図5は、第1実施形態におけるカメラの動作を示すフローチャートである。具体的には、GetPTZConfigurationコマンドを受信する際にカメラ1000が実行する制御を示している。
FIG. 5 is a flowchart showing the operation of the camera in the first embodiment. Specifically, it shows the control executed by the
S1101では、カメラ1000は、通信部1006を介して、コントローラ2000からGetPTZConfigurationコマンドを受信する。S1001で前述した通り、GetPTZConfigurationコマンドはカメラ1000が有するPTZConfigurationの取得を要求するコマンドである。
In S1101, the
S1102では、カメラ1000は、S1101で受信したGetPTZConfigurationコマンドに含まれるMacアドレスを取得する。具体的には、S1101で受信したGetPTZConfiguraitonコマンドはHTTPリクエストをベースとしたコマンドであり、通信部1006で受信した後、制御部1001においてコマンドを解釈するためのデコード処理が行われる。HTTPリクエストに付加されるEthernet(登録商標)ヘッダにはMacアドレスが含まれるので、デコード処理時に、Macアドレスの取得も行う。Macアドレスの取得は、Ethernetヘッダから取得する方法でもよいし、IPアドレスとMacアドレスの組合せを覚えておき、IPアドレスから判別する方法でも良い。
In S1102, the
S1103では、カメラ1000は、S1102で取得したMacアドレスとコマンドに含まれるTokenとの組合せに対して、紐づけて記憶されているRamp値があるか否かを判定する。以前に、PTZConfigurationに関するコマンドが送られている場合は、後述するS1107の各パラメータを紐づける処理で、紐づけられたRamp値があるため、S1104に進む。一方、紐づけられたRamp値がない場合は、S1105に進む。
In S1103, the
S1104では、カメラ1000は、紐づけられたRamp値を含むPTZConfigurationをコントローラ2000に応答値として送信する。
In S1104, the
S1105では、カメラ1000は、S1102で取得したMacアドレスに対して、適したRampのデフォルト値(初期値)が記憶されているか否かを判定する。S1102で取得したMacアドレスがテーブルに含まれる場合、S1106に進み、取得したMacアドレスがテーブルに含まれない場合、S1108に進む。例えば、デフォルト値は、カメラ1000内において、MacアドレスとRampの適した組合せテーブルを記憶部1002で予め保持しておく。
In S1105, the
図6は、第1実施形態における組み合わせテーブルの例を示す図である。組み合わせテーブルは、RampとMacアドレスの組み合わせを規定したテーブルである。テーブルを用いて、Macアドレスから適したRampを判定する方法として、図6(a)のようにMacアドレスの全桁が登録されたテーブルを用意し、完全一致するMacアドレスを検索し、適したRampを判定する方法でもよい。また、図6(b)のように上位4桁等の一部のみが登録されたテーブルを用意し、当該一部を検索し適したRampを判定する方法でもよい。 FIG. 6 is a diagram showing an example of a combination table in the first embodiment. The combination table is a table that defines combinations of Ramp and Mac addresses. As a method of determining a suitable Ramp from a Mac address using a table, prepare a table in which all digits of a Mac address are registered as shown in Figure 6 (a), search for a completely matching Mac address, and select a suitable Ramp. A method of determining Ramp may also be used. Alternatively, as shown in FIG. 6(b), a table may be prepared in which only a part of the upper four digits is registered, and the part may be searched to determine an appropriate Ramp.
S1106では、カメラ1000は、S1102で受信したGetPTZConfigurationコマンドに含まれるTokenと、Macアドレス、Rampの紐づけを新しく記憶する。S1107では、カメラ1000は、適したRamp値を含むPTZConfigurationをコントローラ2000に応答値として送信する。
In S1106, the
S1108では、カメラ1000は、GetPTZConfigurationに含まれるTokenと紐づくPTZConfigurationを応答値としてコントローラ2000に送信する。
In S1108, the
なお、上述の説明では、カメラ1000が、RampとMacアドレスの組合せテーブル(図6)を予め保持しておく形態について説明したが、当該組合せテーブルを外部から登録可能な構成としてもよい。
In the above description, the
以上説明したとおり第1実施形態によれば、カメラは、コントローラから送信されたGetPTZConfigurationコマンドに含まれるMacアドレスによってコントローラを識別する。そして、Macアドレスに応じて応答するRamp値を変更する。この構成により、各コントローラに応じてPTZ駆動の加速度を設定することが出来、異なる複数のコントローラを用いる際の操作感の違いを低減することが可能となる。 As described above, according to the first embodiment, the camera identifies the controller based on the Mac address included in the GetPTZConfiguration command sent from the controller. Then, the Ramp value that responds is changed according to the Mac address. With this configuration, it is possible to set the acceleration of the PTZ drive according to each controller, and it is possible to reduce differences in operational feel when using a plurality of different controllers.
なお、上述の説明では、構成情報の取得要求コマンド(所定のコマンド)に含まれるMacアドレスに基づいて識別を行ったが、他のコマンドに含まれるMacアドレスに基づいて識別を行う構成としてもよい。例えば、駆動要求コマンド(PTZMoveコマンドなど)に含まれるMacアドレスに基づいて識別を行ってもよい。 Note that in the above description, identification was performed based on the Mac address included in the configuration information acquisition request command (predetermined command), but the configuration may be such that identification is performed based on the Mac address included in other commands. . For example, identification may be performed based on a Mac address included in a drive request command (PTZMove command, etc.).
(第2実施形態)
第2実施形態では、コントローラから送信された、PTZ駆動に関する構成情報設定コマンド及びPTZ駆動コマンドを利用して、駆動に利用するRamp値を決定する形態について説明する。詳しくは後述するが、PTZ駆動に関する構成情報設定コマンドに含まれるMacアドレスによってコントローラを識別し、Macアドレス、Token、加速度(Ramp値)の組み合わせを登録する。その後、PTZ駆動コマンドを受信した際に、MacアドレスとTokenの組み合わせから駆動時の加速度を決定する。なお、システム及び各装置の構成は第1実施形態(図1~図3)と同様であるため、説明を省略する。
(Second embodiment)
In the second embodiment, a configuration will be described in which a configuration information setting command related to PTZ driving and a PTZ driving command transmitted from a controller are used to determine a Ramp value to be used for driving. As will be described in detail later, the controller is identified by the Mac address included in the configuration information setting command related to PTZ driving, and the combination of the Mac address, Token, and acceleration (Ramp value) is registered. After that, when a PTZ drive command is received, the acceleration during driving is determined from the combination of the Mac address and Token. Note that the configuration of the system and each device is the same as that of the first embodiment (FIGS. 1 to 3), so a description thereof will be omitted.
<装置の動作>
図7は、第2実施形態におけるシステムの動作シーケンスを示す図である。具体的には、ONVIFにおけるPTZ駆動に関する構成情報設定及び駆動の制御シーケンスである。
<Device operation>
FIG. 7 is a diagram showing the operation sequence of the system in the second embodiment. Specifically, this is a control sequence for configuration information setting and driving regarding PTZ driving in ONVIF.
S2001では、コントローラ2000は、SetPTZConfigurationコマンドをカメラ1000に送信する。上述のように、PTZConfigurationとは、ONVIFで規格化されているPTZ駆動に関する設定値である。SetPTZConfigurationコマンドは、カメラ1000のPTZConfigurationの設定更新を要求するコマンドである。
In S2001, the
S2002では、カメラ1000は、SetPTZConfigurationコマンドを受信すると、設定値の更新処理を実行する。SetPTZCofigurationコマンドには、カメラが持つConfigurationを識別するために、Tokenと呼ばれる識別子が付与されている。この識別子及び、SetPTZConfigurationに付与されるMacアドレスを使い、Ramp値を含む設定値の更新を行う。その後、S2003では、カメラ1000は、設定更新コマンドの成否をコントローラ2000に送信する。
In S2002, upon receiving the SetPTZConfiguration command, the
S2004では、コントローラ2000は、PTZMoveコマンドをカメラ1000に送信する。PTZMoveコマンドは、PTZConfigurationに応じたPTZ駆動をカメラ1000に要求するコマンドである。
In S2004, the
S2005では。カメラ1000は、PTZMoveコマンドを受信すると、駆動に利用する加速度設定を決定する。具体的には、PTZMoveコマンドで指定された識別子及び、PTZMoveコマンドに付与されるMacアドレスを使い、Ramp値を含む駆動時の加速度設定を決定する。その後、S2006では、カメラ1000は、S2005で決定された加速度設定に基づいてPTZ駆動を行う。S2007では、カメラ1000は、PTZMoveコマンドに対する応答(例えば成否)をコントローラ2000に送信する。
In S2005. When the
図8は、第2実施形態におけるカメラの動作を示すフローチャートである。具体的には、図7のS2001~S2003に対応する、設定値の更新処理に対応するフローチャートである。 FIG. 8 is a flowchart showing the operation of the camera in the second embodiment. Specifically, this is a flowchart corresponding to the setting value update process corresponding to S2001 to S2003 in FIG.
S2101では、カメラ1000は、SetPTZConfigurationコマンドをコントローラ2000から受信する。上述した通り、SetPTZConfigurationコマンドはカメラ1000のPTZConfigurationの更新を要求するコマンドである。ここでは、PTZConfigurationにはRampパラメータが含まれる。カメラ1000は、通信部1006を介してSetPTZConfigurationコマンドを受信する。
In S2101, the
S2102では、カメラ1000は、S2101で受信したSetPTZConfigurationコマンドに含まれるMacアドレスを取得する。具体的には、S2101で受信したSetPTZConfiguraitonコマンドはHTTPリクエストをベースとしたコマンドであり、通信部1006で受信した後、制御部1001においてコマンドを解釈するためのデコード処理が行われる。HTTPリクエストに付加されるEthernetヘッダにはMacアドレスが含まれるので、デコード処理時に、Macアドレスの取得も行う。Macアドレスの取得は、Ethernetヘッダから取得する方法でもよいし、IPアドレスとMacアドレスの組合せを覚えておき、IPアドレスから判別する方法でも良い。
In S2102, the
S2103では、カメラ1000は、S2102で取得したMacアドレスとコマンドに含まれるTokenとの組合せに対して、紐づけて記憶されているRamp値があるか否かを判定する。以前に、SetPTZConfigurationに関するコマンドが送られている場合は、後述するS2105の各パラメータを紐づける処理で、Token及びMacアドレスに紐づけられたRamp値があるため、S2104に進む。一方、紐づけられたRamp値がない場合は、S2105の処理に進む。
In S2103, the
S2104では、カメラ1000は、紐づけられたRamp値及びPTZConfigurationを更新し、S2106に進む。
In S2104, the
S2105では、カメラ1000は、S2102で取得したMacアドレスとTokenとの組み合わせに対して、指定されたRamp値を紐づけて新規に登録する。そして、カメラ1000内において、MacアドレスとToken及びRampを登録するテーブルを記憶部1002で保持しておく。S2106では、カメラ1000は、SetPTZConfiguraitonコマンドの成否を示す応答をコントローラ2000に送信する。
In S2105, the
図9は、第2実施形態における組み合わせテーブルの例を示す図である。組み合わせテーブルは、Token、Ramp、Macアドレスの組み合わせを格納したテーブルである。図9に示されるように、MacアドレスとTokenの組み合わせに対して、一つずつRamp値が登録される。 FIG. 9 is a diagram showing an example of a combination table in the second embodiment. The combination table is a table that stores combinations of Token, Ramp, and Mac addresses. As shown in FIG. 9, Ramp values are registered one by one for each combination of Mac address and Token.
図10は、第2実施形態におけるカメラの動作を示すフローチャートである。具体的には、図7のS2004~S2007に対応する、PTZ駆動の制御処理に対応するフローチャートである。 FIG. 10 is a flowchart showing the operation of the camera in the second embodiment. Specifically, this is a flowchart corresponding to PTZ drive control processing corresponding to S2004 to S2007 in FIG.
S2201では、カメラ1000は、コントローラ2000からPTZMoveコマンドを受信する。前述した通り、PTZMoveコマンドは、PTZConfiguration(Rampパラメータを含む)に応じたPTZ駆動をカメラ1000に要求するコマンドである。カメラ1000は、通信部1006を介してPTZMoveコマンドを受信する。
In S2201, the
S2202では、カメラ1000は、S2201で受信したPTZMoveコマンドに含まれるMacアドレスを取得する。具体的には、S2201で受信したPTZMoveコマンドはHTTPリクエストをベースとしたコマンドであり、通信部1006で受信した後、制御部1001においてコマンドを解釈するためのデコード処理が行われる。HTTPリクエストに付加されるEthernetヘッダにはMacアドレスが含まれるので、デコード処理時に、Macアドレスの取得も行う。Macアドレスの取得は、Ethernetヘッダから取得する方法でもよいし、IPアドレスとMacアドレスの組合せを覚えておき、IPアドレスから判別する方法でも良い。
In S2202, the
S2203では、カメラ1000は、S2202で取得したMacアドレスとコマンドに含まれるTokenとの組合せに対して、紐づけて記憶されているRamp値があるか否かを判定する。Token及びMacアドレスに紐づけられたRamp値がある場合、S2204に進み、紐づけられたRamp値が無い場合、S2205に進む。
In S2203, the
S2204では、カメラ1000は、紐づけられたRamp値を使用してPTZ駆動を行う。一方、S2205では、Tokenのみに紐づけられているRamp値を使用してPTZ駆動を行う。その後、S2206では、カメラ1000は、PTZMoveコマンドに対する応答(例えば成否)をコントローラ2000に送信する。
In S2204, the
以上説明したとおり第2実施形態によれば、カメラは、コントローラから送信されたPTZ駆動に関する構成情報設定コマンドに含まれるMacアドレスによってコントローラを識別する。そして、Macアドレス、Token、Ramp値の組み合わせを登録(更新)する。その後、PTZ駆動コマンドを受信した際に、MacアドレスとTokenの組み合わせから駆動に利用する加速度(Ramp値)を決定する。この構成により、第1実施形態と同様に、各コントローラに応じてPTZ駆動の加速度を設定することが出来、異なる複数のコントローラを用いる際の操作感の違いを低減することが可能となる。更に、複数のコントローラから同一のTokenで構成情報設定コマンドを受信した場合であっても、各コントローラに応じた加速度でPTZ制御を行うことが可能となる。 As described above, according to the second embodiment, the camera identifies the controller based on the Mac address included in the configuration information setting command related to PTZ driving transmitted from the controller. Then, the combination of the Mac address, Token, and Ramp value is registered (updated). After that, when a PTZ drive command is received, the acceleration (Ramp value) used for drive is determined from the combination of the Mac address and Token. With this configuration, similarly to the first embodiment, it is possible to set the acceleration of the PTZ drive according to each controller, and it is possible to reduce differences in operational feel when using a plurality of different controllers. Furthermore, even when configuration information setting commands are received from multiple controllers using the same token, it is possible to perform PTZ control with an acceleration that corresponds to each controller.
(第3実施形態)
第3実施形態では、コントローラから送信された、PTZ駆動コマンドに含まれるMacアドレスによってコントローラを識別し、駆動に利用する加速度設定値を決定する形態について説明する。なお、システム及び各装置の構成は第1実施形態(図1~図3)と同様であるため、説明を省略する。
(Third embodiment)
In the third embodiment, a mode will be described in which a controller is identified by a Mac address included in a PTZ drive command transmitted from the controller, and an acceleration setting value used for drive is determined. Note that the configuration of the system and each device is the same as that of the first embodiment (FIGS. 1 to 3), so the description thereof will be omitted.
<装置の動作>
図11は、第3実施形態におけるカメラの動作を示すフローチャートである。具体的には、コントローラ2000からPTZ駆動コマンドを受信する際にカメラ1000が実行する制御を示している。
<Device operation>
FIG. 11 is a flowchart showing the operation of the camera in the third embodiment. Specifically, control executed by the
S3001では、カメラ1000は、コントローラ2000からPTZMoveコマンドを受信する。前述した通り、PTZMoveコマンドは、PTZConfiguration(Rampパラメータを含む)に応じたPTZ駆動をカメラ1000に要求するコマンドである。カメラ1000は、通信部1006を介してPTZMoveコマンドを受信する。
In S3001, the
S3002では、カメラ1000は、S3001で受信したPTZMoveコマンドに含まれるMacアドレスを取得する。具体的には、S1001で受信したPTZMoveコマンドはHTTPリクエストをベースとしたコマンドであり、通信部1006で受信した後、制御部1001においてコマンドを解釈するためのデコード処理が行われる。HTTPリクエストに付加されるEthernetヘッダにはMacアドレスが含まれるので、デコード処理時に、Macアドレスの取得も行う。Macアドレスの取得は、Ethernetヘッダから取得する方法でもよいし、IPアドレスとMacアドレスの組合せを覚えておき、IPアドレスから判別する方法でも良い。
In S3002, the
S3003では、カメラ1000は、S3002で取得したMacアドレスとコマンドに含まれるTokenとの組合せに基づき、PTZ駆動に利用する加速度を決定する。具体的には、後述する加速度決定テーブルを元に加速度を決定し、PTZ駆動を行う。その後、S3004では、カメラ1000は、PTZMoveコマンドに対する応答(例えば成否)をコントローラ2000に送信する。
In S3003, the
図12(a)は、利用可能な加速度のパラメータリストを示している。ここでは、撮像機構部1005における加速度を100段階で指定可能な場合を想定している。この場合、リスト3001のように独自コマンドでは加速度指定値(第2加速度設定値)を1~100の範囲の整数値で設定可能であることを登録する。また、リスト3002のようにONVIFでは加速度指定値(第1加速度設定値)をRamp値(1~3の範囲の整数値)で設定可能であることを登録する。
FIG. 12(a) shows a list of available acceleration parameters. Here, it is assumed that the acceleration in the
図12(b)は、Macアドレス、Ramp、加速度の組み合わせテーブルを示している。この組み合わせテーブルは、これは、Macアドレス毎に、ONVIFにおける第1加速度指定値(Ramp値)と独自コマンドにおける第2加速度指定値とを対応付けるテーブルである。このテーブルを用いて、前述したS3003において、PTZMoveコマンドで指定されたRamp値とコマンドに付与されるMacアドレスを元に、独自コマンドの第2加速度設定値に変換する。このとき、図12(b)に例示されるように、コントローラごと(Macアドレスごと)に対応付けを指定することにより、加速度指定値をより細かく指定することが可能となる。そして、カメラ1000は、変換された第2加速度設定値でPTZ駆動を行う。なお、Ramp値と独自コマンドにおける第2加速度指定値との対応付けを外部から登録できる構成としてもよい。
FIG. 12(b) shows a combination table of Mac address, Ramp, and acceleration. This combination table is a table that associates the first specified acceleration value (Ramp value) in ONVIF with the second specified acceleration value in the unique command for each Mac address. Using this table, in S3003 described above, the Ramp value specified by the PTZMove command and the Mac address given to the command are converted into the second acceleration setting value of the unique command. At this time, as illustrated in FIG. 12(b), by specifying the correspondence for each controller (for each Mac address), it becomes possible to specify the acceleration specified value in more detail. Then, the
以上説明したとおり第3実施形態によれば、各コントローラに応じたPTZ駆動の加速度を設定することが出来る。特に、撮像機構部1005における加速度をより細かく加速度を指定することが可能な場合に、操作感の違いをより低減することが可能となる。
As explained above, according to the third embodiment, it is possible to set the acceleration of the PTZ drive according to each controller. In particular, when it is possible to specify the acceleration in the
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention provides a system or device with a program that implements one or more of the functions of the embodiments described above via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the embodiments described above, and various changes and modifications can be made without departing from the spirit and scope of the invention. Therefore, the following claims are hereby appended to disclose the scope of the invention.
1000 カメラ; 2000 コントローラ; 3000 ネットワーク 1000 cameras; 2000 controllers; 3000 networks
Claims (5)
前記撮像装置をユーザによる操作に基づいて制御するための制御装置から所定のコマンドを受信する受信手段と、
前記所定のコマンドに含まれる前記制御装置を識別する識別情報に基づいて、前記撮像装置における撮像方向を変更するための機構を駆動する際の加速度を規定する設定値を決定する決定手段と、
を有することを特徴とする撮像装置。 An imaging device configured to be able to change an imaging direction,
receiving means for receiving a predetermined command from a control device for controlling the imaging device based on an operation by a user ;
determining means for determining a setting value that defines an acceleration when driving a mechanism for changing the imaging direction in the imaging device , based on identification information that identifies the control device included in the predetermined command ;
An imaging device comprising :
前記決定手段は、前記テーブルに含まれる前記制御装置の識別情報に対応する設定値を、前記設定値として決定する
ことを特徴とする請求項1に記載の撮像装置。 further comprising a storage means for storing a table defining combinations of identification information and setting values of the control device;
The imaging device according to claim 1, wherein the determining unit determines, as the setting value, a setting value corresponding to identification information of the control device included in the table.
ことを特徴とする請求項1または2に記載の撮像装置。 3. The imaging apparatus according to claim 1, wherein the predetermined command is a command to request acquisition of the set value or a command to request driving to change an imaging direction.
前記撮像装置をユーザによる操作に基づいて制御するための制御装置から所定のコマンドを受信する受信工程と、
前記所定のコマンドに含まれる前記制御装置を識別する識別情報に基づいて、前記撮像装置における撮像方向を変更するための機構を駆動する際の加速度を規定する設定値を決定する決定工程と、
を含むことを特徴とする制御方法。 A method for controlling an imaging device configured to be able to change an imaging direction, the method comprising:
a receiving step of receiving a predetermined command from a control device for controlling the imaging device based on an operation by a user ;
a determination step of determining a setting value that defines an acceleration when driving a mechanism for changing the imaging direction in the imaging device , based on identification information that identifies the control device included in the predetermined command ;
A control method characterized by comprising :
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019197646A JP7410688B2 (en) | 2019-10-30 | 2019-10-30 | Imaging device and its control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019197646A JP7410688B2 (en) | 2019-10-30 | 2019-10-30 | Imaging device and its control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021072523A JP2021072523A (en) | 2021-05-06 |
JP7410688B2 true JP7410688B2 (en) | 2024-01-10 |
Family
ID=75713887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019197646A Active JP7410688B2 (en) | 2019-10-30 | 2019-10-30 | Imaging device and its control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7410688B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015023476A (en) | 2013-07-20 | 2015-02-02 | キヤノン株式会社 | Imaging apparatus, external apparatus, imaging system, imaging apparatus control method, external apparatus control method, imaging system control method, and program |
JP2017041705A (en) | 2015-08-18 | 2017-02-23 | キヤノン株式会社 | Imaging device |
-
2019
- 2019-10-30 JP JP2019197646A patent/JP7410688B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015023476A (en) | 2013-07-20 | 2015-02-02 | キヤノン株式会社 | Imaging apparatus, external apparatus, imaging system, imaging apparatus control method, external apparatus control method, imaging system control method, and program |
JP2017041705A (en) | 2015-08-18 | 2017-02-23 | キヤノン株式会社 | Imaging device |
Also Published As
Publication number | Publication date |
---|---|
JP2021072523A (en) | 2021-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4590039B2 (en) | CAMERA OPERATION DEVICE, CAMERA SERVER, ITS CONTROL METHOD, AND STORAGE MEDIUM CONTAINING PROGRAM FOR EXECUTING THEIR OPERATION PROCESS | |
US8429703B2 (en) | Video distribution apparatus, viewer apparatus, video distribution system including these apparatuses, control method for the video distribution apparatus, control method for the viewer apparatus, and computer program for the apparatuses | |
US6822676B1 (en) | Camera control system with electronic zoom processing | |
JP6808399B2 (en) | Accessory device, control device, imaging system, communication control method and communication control program | |
JP6402228B2 (en) | Method and system for providing video data streams to multiple users | |
CN1830204B (en) | Camera unit and a camera unit control method | |
JP6478777B2 (en) | Control device, control method therefor, and program | |
JP6231757B2 (en) | Imaging apparatus, information processing apparatus, control method therefor, and program | |
US12010419B2 (en) | Control apparatus, control method, and non-transitory computer-readable storage medium | |
JP7410688B2 (en) | Imaging device and its control method | |
WO2001022147A1 (en) | Microscope image transfer system | |
JP6234165B2 (en) | IMAGING DEVICE, EXTERNAL DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, EXTERNAL DEVICE CONTROL METHOD, IMAGING SYSTEM CONTROL METHOD, AND PROGRAM | |
JP2020171000A (en) | Imaging apparatus, system, imaging apparatus control method, and program | |
JP2015088786A (en) | Imaging apparatus, imaging system, control method of imaging apparatus, control method of imaging system, and program | |
JP7073120B2 (en) | Video transmitters, information processing devices, systems, information processing methods and programs | |
JP7191663B2 (en) | IMAGING DEVICE, CONTROL METHOD AND PROGRAM | |
JP2015023417A (en) | Communication device and imaging device, control method thereof, and program | |
JP7005282B2 (en) | Imaging equipment, accessory equipment and their control methods | |
JP2020017862A (en) | Information processing device, control method, and network camera | |
JP7284600B2 (en) | Imaging device, imaging device control method, information processing device, information processing device control method | |
JP7516179B2 (en) | VIDEO SWITCHING DEVICE, OPERATION DEVICE, SYSTEM, VIDEO SWITCHING METHOD, AND PROGRAM | |
JP6444473B2 (en) | IMAGING DEVICE, EXTERNAL DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, EXTERNAL DEVICE CONTROL METHOD, IMAGING SYSTEM CONTROL METHOD, AND PROGRAM | |
JP6945194B2 (en) | Communication device | |
JP2008228039A (en) | Network camera apparatus and control method thereof | |
JP2022124337A (en) | Imaging control device, imaging system, imaging control method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20221017 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230817 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230904 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231101 |
|
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: 20231124 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231222 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7410688 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |