JP2009217115A - Camera picture simulator program - Google Patents

Camera picture simulator program Download PDF

Info

Publication number
JP2009217115A
JP2009217115A JP2008062368A JP2008062368A JP2009217115A JP 2009217115 A JP2009217115 A JP 2009217115A JP 2008062368 A JP2008062368 A JP 2008062368A JP 2008062368 A JP2008062368 A JP 2008062368A JP 2009217115 A JP2009217115 A JP 2009217115A
Authority
JP
Japan
Prior art keywords
camera
top view
indicator
image
angle
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
JP2008062368A
Other languages
Japanese (ja)
Other versions
JP5461782B2 (en
Inventor
Yuzo Ogawa
雄三 小川
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.)
Toa Corp
Original Assignee
Toa Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toa Corp filed Critical Toa Corp
Priority to JP2008062368A priority Critical patent/JP5461782B2/en
Publication of JP2009217115A publication Critical patent/JP2009217115A/en
Application granted granted Critical
Publication of JP5461782B2 publication Critical patent/JP5461782B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To simulate a virtual image to be imaged by a camera by using data of a two-dimensional top view. <P>SOLUTION: This camera picture simulator program is used to simulate an image to be imaged when the camera is arranged at an optional position in a predetermined area and display a part or the whole of image of the top view in the predetermined area based on the data of the top view in the predetermined area in a display device. A scale of the image of the top view, a position of the camera arranged on the image of the top view, a position indicating height of the camera, an angle for installing the camera horizontally and vertically, and an angle of view are optionally set. Three-dimensional graphics being virtual images to be imaged by the camera are prepared based on the set information and the data of the top view and are displayed in the display device. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、所定のエリアにカメラを設置した場合、どのように撮影されるかをシミュレーションするプログラムに関する。   The present invention relates to a program for simulating how a picture is taken when a camera is installed in a predetermined area.

従来、上記のシミュレーションに関連する技術として、特許文献1に開示されているものがある。この技術では、表示画面にモニタリング対象場所のレイアウト図と、カメラの設置位置と、このカメラによって得られる映像がレイアウト図の上でどの範囲であるかを示す映像枠の中心位置と、この映像枠の大きさとが、データとして与えられており、表示画面上にレイアウト図を表示し、このレイアウト図上にカメラの位置と、映像枠とが表示される。   Conventionally, as a technique related to the above simulation, there is one disclosed in Patent Document 1. In this technology, the layout diagram of the monitoring target location on the display screen, the installation position of the camera, the center position of the video frame indicating the range of the video obtained by this camera on the layout diagram, and the video frame Is provided as data, and a layout diagram is displayed on the display screen, and the position of the camera and a video frame are displayed on the layout diagram.

特開2006−148406号公報JP 2006-148406 A

上記の技術は、実際に設置された後のカメラに対して、レイアウト図上のどの範囲が撮影されるかを表す映像枠を表示することによって、カメラが撮影している範囲のレイアウト図面内における位置関係を大まかに示すものである。この技術はカメラを設置した後の運用を効率的にすることを目的としたものであり、どのような映り方をするのかを事前に知ることには利用できない。すなわち、従来、カメラを設置する前には、カメラがどのような映り方をするのか、明確に知ることができなかった。このため、設置時にカメラの位置や角度、画角を試行錯誤的に変えるしかなく、最悪の場合、その設置位置では所望の撮影をすることができないことが判明する場合もあった。また、監視カメラ等の場合では設置位置が高所になる場合が多く、この設置位置の調整作業には大変な困難を伴う。   The above technology displays a video frame indicating which range on the layout diagram is captured for the camera after it is actually installed, so that the range of the range captured by the camera in the layout drawing is displayed. It shows the positional relationship roughly. This technology is intended to make the operation after the camera is installed efficiently, and cannot be used for knowing in advance what the image will look like. That is, conventionally, before the camera was installed, it was impossible to clearly know how the camera would appear. For this reason, the position, angle, and angle of view of the camera must be changed by trial and error at the time of installation, and in the worst case, it may be found that desired shooting cannot be performed at the installation position. In addition, in the case of a surveillance camera or the like, the installation position is often high, and this installation position adjustment work is accompanied by great difficulty.

そこで、本発明は、撮影エリアの情報として比較的入手し易い二次元の上面図データを用いて、カメラの仮想三次元撮影映像をシミュレーションすることができるカメラ映像シミュレータプログラムを提供することを目的とする。また、本発明は、エリア画像上に配置されたカメラ表示子と撮影対象物表示子とを関係づけることで、自動的に所望の大きさで撮影対象物を撮影するために必要な設置角度や画角で計算して生成された仮想三次元撮影映像をシミュレーションすることができるカメラ映像シミュレータプログラムを提供することを目的とする。   Therefore, an object of the present invention is to provide a camera video simulator program capable of simulating a virtual three-dimensional shot video of a camera using two-dimensional top view data that is relatively easily available as shooting area information. To do. In addition, the present invention relates to the camera indicator arranged on the area image and the photographing object indicator so that the installation angle necessary for automatically photographing the photographing object with a desired size can be reduced. It is an object of the present invention to provide a camera video simulator program capable of simulating a virtual three-dimensional shot video generated by calculation with an angle of view.

本発明の一態様のカメラ映像シミュレータプログラムは、所定エリアの任意の位置にカメラを配置した場合の撮影映像をシミュレーションするもので、前記カメラ映像シミュレータプログラムを実行するコンピュータは、前記所定エリアの上面図データに基づいて当該所定エリアの上面図画像の一部又は全部を表示装置に表示させる処理を行う。前記上面図画像のスケール、前記上面図画像上のカメラの配置位置、カメラの高さ位置、カメラの水平及び垂直設置角度並びに画角を任意に設定する処理も行われる。前記コンピュータは、これらの設定情報と前記上面図データとに基づいて前記カメラの仮想撮影映像である三次元グラフィックスを作成し、表示装置に表示させる処理も行う。   A camera video simulator program according to an aspect of the present invention simulates a captured video when a camera is arranged at an arbitrary position in a predetermined area. A computer executing the camera video simulator program is a top view of the predetermined area. Based on the data, a process of displaying a part or all of the top view image of the predetermined area on the display device is performed. Processing for arbitrarily setting the scale of the top view image, the arrangement position of the camera on the top view image, the height position of the camera, the horizontal and vertical installation angles of the camera, and the angle of view is also performed. The computer also creates a three-dimensional graphic that is a virtual photographed image of the camera based on the setting information and the top view data, and displays the same on a display device.

このプログラムによれば、上面図に対してスケール、カメラの配置、カメラの高さ、カメラの水平及び垂直設置角度、画角を設定することによって、二次元データである上面図から三次元グラフィックスを作成することができる。従って、比較的入手しやすい二次元データを基にカメラの仮想撮影映像を作成することができる。また、上面図画像も表示されているので、上面図とカメラによる仮想撮影映像とを比較することもできる。すなわち、ユーザーはカメラを設置する前にどのような映像が撮影可能か、直感的に把握することが可能となり、ユーザーは実際のカメラの設置前に所望の撮影像を十分に考察した上で、カメラの設置工事を行うことができる。   According to this program, by setting the scale, camera placement, camera height, camera horizontal and vertical installation angles, and angle of view with respect to the top view, 3D graphics can be generated from the top view as 2D data. Can be created. Therefore, it is possible to create a virtual photographed image of the camera based on two-dimensional data that is relatively easy to obtain. Further, since a top view image is also displayed, it is possible to compare the top view with a virtual photographed image taken by the camera. In other words, the user can intuitively understand what kind of video can be taken before installing the camera, and the user carefully considers the desired shot image before installing the actual camera, Camera installation work can be done.

コンピュータは、撮影対象物を表す撮影対象表示子と、前記カメラを表すカメラ表示子とをそれぞれ前記上面図画像上の任意の位置に配置して表示させる処理を行うこともできる。この場合、前記各表示子の配置位置に基づいて、前記カメラで前記撮影対象物を所望の大きさで撮影するために必要な該カメラの水平及び垂直設置角度並びに画角を演算する処理が行われる。所望の大きさとしては、例えば撮影対象物の全体が撮影された大きさや、その上側の1/2が撮影された大きさ等種々のものがある。この処理による演算結果と、前記設定された上面図画像のスケールと、カメラの高さ位置と、前記カメラ表示子の配置位置と、前記上面図データとに基づいて、前記カメラの仮想撮影映像である三次元グラフィックスを作成し、表示装置に表示させる処理も行われる。   The computer can also perform processing for arranging and displaying a photographing object indicator representing a photographing object and a camera indicator representing the camera at arbitrary positions on the top view image. In this case, processing for calculating the horizontal and vertical installation angles and the angle of view of the camera necessary for photographing the object to be photographed with a desired size with the camera is performed based on the arrangement position of each indicator. Is called. Examples of the desired size include various sizes such as a size where the entire object to be imaged is imaged and a size where the upper half of the object is imaged. Based on the calculation result of this process, the scale of the set top view image, the height position of the camera, the arrangement position of the camera indicator, and the top view data, A process of creating certain 3D graphics and displaying them on a display device is also performed.

このように構成すると、上面図上に撮影対象表示子とカメラ表示子とを配置することによって、カメラ表示子に対応するカメラによって撮影対象表示子に対応する撮影対象物を撮影した仮想撮影映像を、二次元データである上面図を基に作成することができる。しかも、その仮想撮影映像では、撮影対象物が所望の大きさで撮影された状態に自動的になるので、所望の大きさで撮影された状態とするために、ユーザーがいちいちカメラの水平及び垂直設置角度並びに画角を上面図上で設定する必要がない。   With this configuration, by arranging the shooting target indicator and the camera indicator on the top view, the virtual shooting video obtained by shooting the shooting target object corresponding to the shooting target indicator with the camera corresponding to the camera indicator is displayed. It can be created based on a top view which is two-dimensional data. In addition, in the virtual captured video, the object to be photographed automatically becomes a state of being photographed at a desired size. Therefore, in order to obtain a state of being photographed at a desired size, the user needs to set the horizontal and vertical positions of the camera one by one. There is no need to set the installation angle and the angle of view on the top view.

更に、前記各表示子は、前記上面図画像上の任意の位置に配置した後に、それぞれ別の位置に移動配置可能とすることもできる。この場合、前記カメラ映像シミュレータプログラムを実行するコンピュータは、各表示子の一方又は双方の移動配置に応じて、前記カメラで前記撮影対象物を所望の大きさで撮影するために必要な該カメラの水平及び垂直設置角度並びに画角を再演算する。この再演算結果と、前記設定された上面図画像のスケールと、カメラの高さ位置と、前記カメラ表示子の移動配置後の配置位置と、前記上面図データとに基づいて、前記カメラの仮想撮影映像である三次元グラフィックスを再作成し、表示装置に表示させる。   Furthermore, the display elements can be arranged to move to different positions after being arranged at arbitrary positions on the top view image. In this case, the computer that executes the camera video simulator program needs the camera to capture the object to be photographed at a desired size with the camera according to the moving arrangement of one or both of the display elements. Recalculate the horizontal and vertical installation angles and angle of view. Based on the result of this recalculation, the scale of the set top view image, the height position of the camera, the placement position after the placement of the camera indicator, and the top view data, The 3D graphics that is the captured video is recreated and displayed on the display device.

このように構成すると、撮影対象表示子やカメラ表示子の位置を上面図上で移動させても、変更された位置においても撮影対象物を所望の大きさで撮影した仮想撮影映像を自動的に得ることができる。   With this configuration, even if the position of the photographing object indicator or the camera indicator is moved on the top view, a virtual photographed image obtained by photographing the photographing object with a desired size is automatically obtained even at the changed position. Obtainable.

前記上面図画像のスケール設定は、当該上面図画像に描かれている長さが既知の部分と、移動伸縮自在の線分で表されたスケーラ表示子とを重ね、当該既知の長さがコンピュータに入力されることで、当該上面図画像に基づく仮想三次元空間におけるスケールとして設定されるようにすることもできる。   The scale setting of the top view image is performed by superimposing a portion whose length is known in the top view image and a scaler indicator represented by a movable stretchable line segment, and the known length is a computer. Can be set as a scale in a virtual three-dimensional space based on the top view image.

このように構成すると、仮想三次元空間におけるスケールの設定を容易に行うことができる。   If comprised in this way, the setting of the scale in virtual three-dimensional space can be performed easily.

本発明の1実施形態のカメラ映像シミュレータプログラムは、コンピュータ、例えばパーソナルコンピュータで実行されるもので、パーソナルコンピュータの表示装置、例えば液晶表示装置の画面に、図1に示すような画像を表示する。なお、パーソナルコンピュータは、図示していないが、演算手段としてのCPU、記憶手段としてのメモリ、ハードディスク、CD−ROMまたはDVD−ROMドライバ、指示手段としてのキーボード、ポインティング手段としてのマウスやタブレット等を備えている。このプログラムは、記録媒体、例えばCD−ROMまたはDVD−ROMに記憶され、この記録媒体からメモリまたはハードディスクに転送される。また、サーバからネットワークを経由してダウンロードすることも可能である。   A camera video simulator program according to an embodiment of the present invention is executed by a computer, for example, a personal computer, and displays an image as shown in FIG. 1 on the screen of a display device of the personal computer, for example, a liquid crystal display device. Although not shown, the personal computer includes a CPU as a calculation means, a memory as a storage means, a hard disk, a CD-ROM or DVD-ROM driver, a keyboard as an instruction means, a mouse and a tablet as pointing means, and the like. I have. This program is stored in a recording medium such as a CD-ROM or DVD-ROM, and is transferred from the recording medium to a memory or a hard disk. It is also possible to download from the server via the network.

液晶表示装置の画面には、ベースとなる窓2が表示されている。この窓2の左上部に、エリア表示部、例えば矩形の上面図窓4が表示されている。この上面図窓4内には、所定エリア、例えばカメラを設置しようとする領域、例えばビルの内外を表す上面図6が表示されている。この上面図6を表示するための画像データは、二次元画像データであり、図示していないが、ベース窓2に表示されているファイル読み込み用のタブをマウス等によって選択して、読み込まれたものである。読み込む画像データは、種々の画像形式に対応しており、例えば、当該ビルの管理者から受領したビル内のフロアの上面図或いは建築図面の画像データを取り込んだり、紙に印刷された上面図をスキャナで読み取って画像データとして取り込んだりすることができる。画像データとしては、例えばビットマップ形式やJPEG形式の画像データを用いることができる。上面図窓4は、上面図6の一部のみを表示しており、上面図窓4に、上面図6の他の部分を表示する場合には、上面図窓4の下部にあるスライダ4aを操作するか、上面図窓4上でポインタをドラッグ操作する。また、表示倍率を変更することによって、上面図全体を表示することも可能である。   A window 2 serving as a base is displayed on the screen of the liquid crystal display device. In the upper left part of the window 2, an area display section, for example, a rectangular top view window 4 is displayed. In the top view window 4, a top view 6 representing a predetermined area, for example, a region where a camera is to be installed, for example, the inside or outside of a building, is displayed. The image data for displaying the top view 6 is two-dimensional image data. Although not shown, the file reading tab displayed on the base window 2 is selected by using a mouse or the like and read. Is. The image data to be read corresponds to various image formats. For example, the top view of the floor in the building or the image data of the architectural drawing received from the manager of the building or the top view printed on paper is used. It can be read by a scanner and captured as image data. As the image data, for example, image data in a bitmap format or JPEG format can be used. The top view window 4 displays only a part of the top view 6, and when displaying other parts of the top view 6 on the top view window 4, a slider 4 a at the bottom of the top view window 4 is provided. Operate or drag the pointer on the top view window 4. It is also possible to display the entire top view by changing the display magnification.

上面図窓4の斜め下方には、カメラ選択窓8が表示されている。カメラ選択窓8には、複数のカメラ、例えばビデオカメラの型番と、そのカメラの使用場所(例えば屋内用、屋外用)と、最小画角と、最大画角とが、リスト形式で表示されている。カメラの型番と使用場所とからカメラの種類を特定することができる。これらリストの内容を判断して、所望のカメラの型番をマウス等で選択し、上面図6上の任意の位置にドラッグアンドドロップすると、カメラを表すシンボルであるカメラ表示子、例えばカメラ上面図表示子10が上面図6上に、これに重ねて表示される。同時に、上面図窓4の下方に配置されている立面図窓12内の立面図14内にも、カメラを表すシンボルである別のカメラ表示子、例えばカメラ立面図表示子16が表示される。   A camera selection window 8 is displayed obliquely below the top view window 4. In the camera selection window 8, a model number of a plurality of cameras, for example, video cameras, a place where the cameras are used (for indoor use, for outdoor use), a minimum field angle, and a maximum field angle are displayed in a list format. Yes. The type of the camera can be specified from the model number of the camera and the place of use. When the contents of these lists are judged, the model number of the desired camera is selected with a mouse or the like, and dragged and dropped to an arbitrary position on the top view 6, a camera indicator which is a symbol representing the camera, for example, a camera top view display A child 10 is displayed on top of FIG. At the same time, another camera indicator which is a symbol representing a camera, for example, a camera elevation indicator 16 is also displayed in the elevation 14 in the elevation window 12 disposed below the top view window 4. Is done.

同時に、カメラ上面図表示子10から伸びる水平視野表示子18が上面図6上に表示され、カメラ立面図表示子16から伸びる垂直視野表示子20が立面図14上に表示される。水平視野表示子18は、カメラが撮影可能な撮影範囲を水平面に投影した水平視野を表したもので、垂直視野表示子20は、カメラが撮影可能な撮影範囲を、その光軸が通る垂直面に投影した垂直視野を表したものである。   At the same time, a horizontal field indicator 18 extending from the camera top view indicator 10 is displayed on the top view 6, and a vertical field indicator 20 extending from the camera elevation view indicator 16 is displayed on the elevation view 14. The horizontal visual field indicator 18 represents a horizontal visual field obtained by projecting a photographing range that can be photographed by the camera onto a horizontal plane, and the vertical visual field indicator 20 is a vertical plane through which the optical axis passes through the photographing range that can be photographed by the camera. It represents the vertical field of view projected onto.

上面図窓4内には、実線でスケール表示子、例えばスケーラ22が表示されている。スケーラ22は、ユーザーのマウス操作により、移動伸縮自在であり、ユーザーは事前に上面図窓4内に表示されている既知の長さの部分(例えば、建物の長さ等)と、スケーラ22を重ねる操作を行って、このスケーラ22を何メートルとして認識するかを設定することができる。すなわち、上記既知の長さが10mであれば、画面上でその既知の長さ部分と重ね合わせたスケーラ22を10mと設定することで、上面図画像と実寸との変換係数であるスケールが設定される。一方、立面図14上に描いた基準面、例えば地面を表す地面表示子24の上方に破線で描いた高さスケール表示子26の地面表示子24からの高さを何メートルとして認識するかを、事前にユーザーがマウス等を操作することによって設定することもできる。また、立面図14ではカメラ立面表示子16から地面表示子24に垂直に表示されたカメラ位置表示子30と、このカメラ位置表示子30からの距離を表す目盛表示子32、32・・・が表示されている。   A scale indicator such as a scaler 22 is displayed in the top view window 4 by a solid line. The scaler 22 can be moved and expanded by the user's mouse operation. The user can move the scaler 22 to a known length portion (for example, the length of a building) displayed in the top view window 4 in advance. It is possible to set how many meters the scaler 22 is recognized by performing an overlapping operation. That is, if the known length is 10 m, the scale which is the conversion coefficient between the top view image and the actual size is set by setting the scaler 22 superimposed on the known length portion on the screen to 10 m. Is done. On the other hand, how many meters is recognized as the height from the ground indicator 24 of the height scale indicator 26 drawn by a broken line above the reference surface drawn on the elevation 14, for example, the ground indicator 24 representing the ground surface? Can also be set in advance by the user operating a mouse or the like. Further, in the elevation view 14, a camera position indicator 30 displayed vertically from the camera elevation indicator 16 to the ground indicator 24, and scale indicators 32, 32... Representing the distance from the camera position indicator 30. • is displayed.

水平視野表示子18及び垂直視野表示子20は、カメラ上面表示子10が上面図6に配置されたとき、予め定めた高さ、予め定めた俯角及び予め定めた方向にカメラが配置され、カメラは最大画角の状態にあると設定されて、表示されている。   The horizontal visual field indicator 18 and the vertical visual field indicator 20 are arranged so that the camera is arranged at a predetermined height, a predetermined depression angle, and a predetermined direction when the camera upper surface indicator 10 is arranged in the top view 6. Is set and displayed as being in the maximum angle of view.

水平視野表示子18は、台形状に表示され、この台形の内側にある領域が撮影可能な範囲である。垂直視野表示子20は、立面図14に符号34で示す光軸表示子を通り地面に垂直な面に投影したカメラの撮影範囲を示しており、地面表示子24に近い近表示子20aと、地面表示子24から遠い遠表示子20bとを有している。この近表示子20aと遠表示子20bと地面表示子24とで囲われた範囲が撮影可能な範囲である。   The horizontal visual field indicator 18 is displayed in a trapezoidal shape, and an area inside the trapezoid is a range that can be photographed. The vertical visual field indicator 20 shows a photographing range of the camera projected on a plane perpendicular to the ground through the optical axis indicator indicated by reference numeral 34 in the elevation view 14, and a near indicator 20 a close to the ground indicator 24. And a far indicator 20b far from the ground indicator 24. A range surrounded by the near indicator 20a, the far indicator 20b, and the ground indicator 24 is a shootable range.

カメラ上面表示子10は、これをマウス等でクリックして任意の方向にドラッグすることによって、配置位置を変更することができ、これに応じて水平視野表示子18の位置を自動的に再計算し、水平視野表示子18をクリックして回転させることによって、カメラ上面表示子10、それの方向(光軸表示子34の方向)及び水平視野表示子18の方向である水平設置角を変化させることができる。   The camera top surface indicator 10 can be changed in position by clicking on it with a mouse or the like and dragging it in any direction, and the position of the horizontal field indicator 18 is automatically recalculated accordingly. Then, by clicking and rotating the horizontal visual field indicator 18, the camera upper surface indicator 10, its direction (direction of the optical axis indicator 34), and the horizontal installation angle that is the direction of the horizontal visual field indicator 18 are changed. be able to.

カメラ立面表示子16は、これをマウス等でクリックして上下方向にドラッグすることにより、カメラ立面表示子16の高さ位置を変更することができる。また、垂直視野表示子20をマウス等でクリックした状態で回転させることによって垂直設置角を変更することができる。   The camera elevation indicator 16 can change the height position of the camera elevation indicator 16 by clicking it with a mouse or the like and dragging it up and down. Further, the vertical installation angle can be changed by rotating the vertical visual field indicator 20 while clicking with the mouse or the like.

上記の説明では、カメラの画角は最大の場合を前提として説明したが、水平視野表示子18または垂直視野表示子20の縁をマウス等でクリックして、内側に向かって移動させることによって、画角を最小画角とした状態まで、水平視野表示子18及び垂直視野表示子20を連続的に変更することができる。逆に、最小画角とした状態から水平視野表示子18または垂直視野表示子20の縁をマウス等でクリックして、外側に向かって移動させることによって、画角を最大画角とした状態まで水平視野表示子18及び垂直視野表示子20を連続的に変更することができる。   In the above description, the description has been made on the assumption that the angle of view of the camera is the maximum, but by clicking the edge of the horizontal field indicator 18 or the vertical field indicator 20 with a mouse or the like and moving it inward, The horizontal visual field indicator 18 and the vertical visual field indicator 20 can be continuously changed until the angle of view is set to the minimum angle of view. On the contrary, from the state in which the angle of view is set to the minimum, the edge of the horizontal field indicator 18 or the vertical field indicator 20 is clicked with a mouse or the like and moved outward to bring the angle of view to the maximum angle of view. The horizontal field indicator 18 and the vertical field indicator 20 can be changed continuously.

カメラ選択窓8の下方には、撮影対象アイコン、例えば人物アイコン36と車アイコン38とが表示されている。人物アイコン36または車アイコン38をクリックして、上面図6にドラッグアンドドロップすると、撮影対象表示子、例えば人物上面表示子40または車上面表示子42が表示される。これら人物上面表示子40または車上面表示子42の配置位置及び方向は、ドラッグすることによって変更可能である。これらの配置位置が水平視野表示子18内であると、立面図14内に人物立面表示子44または車立面表示子(図示せず)が表示される。また、ユーザーは、人物上面表示子40または車上面表示子42で、人物上面表示子40が表す人物の身長及び車上面表示子42が表す車の長さを入力することができる。人物上面表示子40が表す人物の幅及び奥行寸法は、入力された身長に比例して設定され、同様に、車上面表示子42が表す車の幅及び高さ寸法も車の長さに比例して予め設定される。従って、上述したように身長、車の長さを設定することによって、人物及び車の三次元データが全て揃う。   Below the camera selection window 8, shooting object icons such as a person icon 36 and a car icon 38 are displayed. When the person icon 36 or the car icon 38 is clicked and dragged and dropped onto the top view 6, a photographing target indicator, for example, a person top face indicator 40 or a car top face indicator 42 is displayed. The arrangement position and direction of the person upper surface indicator 40 or the vehicle upper surface indicator 42 can be changed by dragging. When these arrangement positions are in the horizontal visual field indicator 18, the person elevation indicator 44 or the vehicle elevation indicator (not shown) is displayed in the elevation view 14. Further, the user can input the height of the person represented by the person upper surface indicator 40 and the length of the car represented by the vehicle upper surface indicator 42 with the person upper surface indicator 40 or the car upper surface indicator 42. The width and depth dimensions of the person represented by the person upper surface indicator 40 are set in proportion to the input height, and similarly, the width and height dimensions of the car represented by the vehicle upper surface indicator 42 are also proportional to the length of the car. To be preset. Therefore, by setting the height and the length of the car as described above, all the three-dimensional data of the person and the car are obtained.

カメラ選択窓8の上部の3D映像表示窓46に、水平視野表示子18及び垂直視野表示子20によって確定された撮影範囲に相当する仮想撮影映像である3D映像が表示される。この3D映像は、上述したカメラ上面表示子10の配置位置及び方向と、カメラ立面表示子16の配置位置から決定されたカメラの三次元座標の位置から、地面を見た状態を上面図を座標変換することによって得た画像を、上記水平視野表示子18及び垂直視野表示子20によって規定された範囲として表示したものである。この3D映像を得るアルゴリズムは、例えば次のようなものである。   In the 3D video display window 46 at the upper part of the camera selection window 8, a 3D video that is a virtual captured video corresponding to the imaging range determined by the horizontal visual field indicator 18 and the vertical visual field indicator 20 is displayed. This 3D image is a top view showing a state where the ground is viewed from the position and direction of the camera upper surface indicator 10 described above and the position of the three-dimensional coordinates of the camera determined from the position of the camera elevation indicator 16. The image obtained by the coordinate conversion is displayed as a range defined by the horizontal field indicator 18 and the vertical field indicator 20. The algorithm for obtaining this 3D video is, for example, as follows.

上面図は二次元データである。二次元データは、三次元空間上では平面と考えることができる。この考えを利用して図3(b)に示すように上面図が三次元空間上における高さ零の平面となるようなXw、Yw、Zwの直交する三軸で張られる三次元空間を構成する。更に、図3(a)に示す上面図の左下端点が三次元空間の原点0、上面図の右方向が+Xw、上面図の上方向が+Yw、上面図の奥から手前(図3(a)の紙面の裏面から表面)に向かう方向が+Zwとなるように、三次元空間を構成する。また、三次元空間の縮尺は、上面図と同じであるように構成する。   The top view is two-dimensional data. Two-dimensional data can be considered as a plane in a three-dimensional space. Using this idea, as shown in FIG. 3B, a three-dimensional space stretched by three orthogonal axes of Xw, Yw, and Zw is constructed so that the top view is a zero-height plane in the three-dimensional space. To do. 3A is the origin 0 of the three-dimensional space, the right direction of the top view is + Xw, the top direction of the top view is + Yw, and from the back of the top view (FIG. 3A). The three-dimensional space is configured so that the direction from the back side to the front side of the sheet is + Zw. The scale of the three-dimensional space is configured to be the same as that in the top view.

ここで、上述したような上面図、立面図上でのユーザーの操作によってカメラの設置情報が下記のように与えられているとする。   Here, it is assumed that the installation information of the camera is given as follows by the user's operation on the top view and the elevation view as described above.

カメラの情報 値
カメラの上面図上の座標 uc、vc(pix) 上面図上で設定
カメラの高さ h(mm) 立面図上で設定
カメラの水平設置角 θ(rad) 上面図上で設定
カメラの垂直設置角 ρ(rad) 立面図上で設定
上面図と実寸の変換係数 k(pix/mm) スケーラにより設定
カメラの水平画角 θh(rad) 上面図上で設定
カメラの垂直画角 θv(rad) 立面図上で設定
Camera information Value Camera coordinates on top view uc, vc (pix) Set on top view Camera height h (mm) Set on top view Camera horizontal installation angle θ (rad) Set on top view Vertical installation angle of the camera ρ (rad) Set on the elevation view Conversion factor between top view and actual size k (pix / mm) Set with the scaler Horizontal view angle of the camera θh (rad) Set on the top view Vertical view angle of the camera θv (rad) Set on elevation

3D映像作成プログラムにおいて、例えば三次元グラフィックス作成のためのライブラリとしてOpenGLを使用したものでは、カメラの三次元配置位置と注視点(上述した光軸の先端が撮影しようとする対象物と交差する点)、画角を設定すれば、カメラから見た三次元空間内の画を描画することができる。上記の条件においてカメラの三次元配置位置(xc、yc、zc)のうち、xc、ycは、上面図上のカメラの座標(uc、vc)から
xc=uc、yc=vc
と求められる。zcについては、立面図14上で設定した高さh(mm)を用いる。しかし、上述したように三次元空間の縮尺は上面図と同じであるように構成しているので、zcはピクセル単位で求めなければならない。このため、上面図上で設定したスケーラ22を用いる。上面図上で設定したスケーラ22により求めた変換係数k(pix/mm)を用いて、zcは、
zc=h*k
と求められる。これにより、三次元空間上において、上面図との位置関係を保持したカメラ位置を算出することができる。ここでは三次元空間の縮尺はピクセル単位に設定したが、スケーラ22の設定を用いることによって、ミリ単位に設定することも可能である。
In the 3D video creation program, for example, when OpenGL is used as a library for creating 3D graphics, the 3D placement position of the camera and the point of sight (the tip of the optical axis mentioned above intersects the object to be photographed). Point) If the angle of view is set, an image in the three-dimensional space viewed from the camera can be drawn. Of the three-dimensional camera positions (xc, yc, zc) under the above conditions, xc and yc are derived from the camera coordinates (uc, vc) on the top view. Xc = uc, yc = vc
Is required. For zc, the height h (mm) set on the elevational view 14 is used. However, since the scale of the three-dimensional space is configured to be the same as the top view as described above, zc must be obtained in units of pixels. For this reason, the scaler 22 set on the top view is used. Using the conversion coefficient k (pix / mm) obtained by the scaler 22 set on the top view, zc is
zc = h * k
Is required. This makes it possible to calculate the camera position that maintains the positional relationship with the top view in the three-dimensional space. Here, the scale of the three-dimensional space is set in units of pixels, but by using the setting of the scaler 22, it can be set in units of millimeters.

三次元空間内のカメラの注視点Oは、上記のカメラ位置xc、yc、zcと水平設置角θ、垂直設置角ρを用いて計算する。ここで、注視点OはXw−Yw平面上にあるとすると、点(xc、yc、0)から注視点Oまでの距離rは、
r=zc/tanρ
で求められる。注視点Oの座標(xo、yo、0)のうち、xo、yoは、
xo=xc+r・cosθ
yo=yc+r・sinθ
で求められる。
The gazing point O of the camera in the three-dimensional space is calculated using the camera positions xc, yc, zc, the horizontal installation angle θ, and the vertical installation angle ρ. Here, if the gazing point O is on the Xw-Yw plane, the distance r from the point (xc, yc, 0) to the gazing point O is
r = zc / tanρ
Is required. Of the coordinates (xo, yo, 0) of the gazing point O, xo and yo are
xo = xc + r · cos θ
yo = yc + r · sin θ
Is required.

更に、カメラの水平画角θh、垂直画角θvも設定されている。ところで、通常カメラの水平画角と垂直画角は、一方を決定することで他方も従属的に決定される関係にある。よって、上記カメラの水平画角および垂直画角のうち、いずれかを設定するだけでよい。
従って、これらの三次元空間上で算出されたカメラ位置、注視点、画角を用いることによってユーザーが指定した設置条件を正確に反映したカメラのシミュレーション画像を生成することができる。
Further, the horizontal field angle θh and the vertical field angle θv of the camera are also set. By the way, the horizontal angle of view and the vertical angle of view of the normal camera are in a relationship in which one is determined and the other is also dependently determined. Therefore, it is only necessary to set one of the horizontal field angle and the vertical field angle of the camera.
Therefore, by using the camera position, the gazing point, and the angle of view calculated in these three-dimensional spaces, it is possible to generate a camera simulation image that accurately reflects the installation conditions specified by the user.

但し、人物上面表示子40及び車上面表示子42に対応する人物及び車に対しては上述したように三次元データが揃っているので、人物上面表示子40や車上面表示子42が水平視野表示子18内に全部または一部入っている場合、人物立面表示子44や車立面表示子が垂直視野表示子20内に全部または一部入っている場合、これらに対応する像が3D映像表示部46に三次元表示される。しかも、その像は、カメラから見た大きさに対応したものとして表示される。   However, since the three-dimensional data is prepared for the person and the car corresponding to the person upper surface indicator 40 and the car upper surface indicator 42 as described above, the person upper surface indicator 40 and the car upper surface indicator 42 are in the horizontal field of view. When all or part of the display 18 is in the display 18, or when all or part of the person's elevation indicator 44 or vehicle elevation is in the vertical field indicator 20, the corresponding image is displayed in 3D. Three-dimensional display is performed on the video display unit 46. Moreover, the image is displayed as corresponding to the size seen from the camera.

従って、例えばカメラを監視用に使用しようとする場合、監視したい場所に人物上面表示子40や車上面表示子42を配置し、カメラ上面表示子10の配置位置や方向を変更し、かつカメラ立面表示子16の高さや俯角を調整することによって、人物や車をどのように撮影することができるかを、3D映像表示窓46の表示から認識できる。また、人物上面表示子40や車上面表示子42をドラッグすることによって、移動する人物や車がどのように表示されるかを3D映像表示窓46の表示から認識できる。   Therefore, for example, when the camera is to be used for monitoring, the person upper surface indicator 40 and the vehicle upper surface indicator 42 are arranged at a place to be monitored, the arrangement position and direction of the camera upper surface indicator 10 are changed, and the camera By adjusting the height and depression angle of the surface indicator 16, it is possible to recognize from the display on the 3D video display window 46 how a person or a car can be photographed. Further, by dragging the person upper surface indicator 40 or the car upper surface indicator 42, it is possible to recognize from the display of the 3D video display window 46 how the moving person or car is displayed.

なお、上記の説明は、カメラ上面表示子10を1つだけ表示する場合のものであるが、複数のカメラ上面表示子10を同時に上面図6上に表示し、同時に複数のカメラの水平視野表示子18を上面図6上に表示することもできる。この場合、立面図14には、上面図でマウス等で選択されているカメラ上面図表示子10に対応するカメラ立面表示子16および垂直視野表示子20が表示され、3D映像表示窓46には、上面図においてマウス等で選択されているカメラ上面図表示子10に対応する仮想撮影映像が表示される。
さらに、立面図14および3D映像表示窓46を複数用意し、複数のカメラに対応する立面図および三次元の仮想撮影映像を同時に表示することもできる。
The above description is for the case where only one camera upper surface indicator 10 is displayed. However, a plurality of camera upper surface indicators 10 are simultaneously displayed on the top view 6 and the horizontal field of view of the plurality of cameras is simultaneously displayed. The child 18 can also be displayed on the top view 6. In this case, the elevation view 14 displays the camera elevation indicator 16 and the vertical field indicator 20 corresponding to the camera top view indicator 10 selected with the mouse or the like in the top view, and displays the 3D video display window 46. Displays a virtual photographed image corresponding to the camera top view indicator 10 selected with the mouse or the like in the top view.
Further, a plurality of elevation views 14 and 3D video display windows 46 are prepared, and elevation views and three-dimensional virtual captured images corresponding to a plurality of cameras can be displayed simultaneously.

また、この実施形態では、上述したような表示の他に、所望のカメラ配置位置にカメラを配置し、このカメラ撮影位置から、撮影対象物配置位置に配置されている撮影対象物を所望の大きさで撮影するために必要なカメラの水平及び垂直設置角度、画角を、自動的に設定することもできる。   Further, in this embodiment, in addition to the display as described above, the camera is arranged at a desired camera arrangement position, and the photographing object arranged at the photographing object arrangement position is changed to a desired size from the camera photographing position. It is also possible to automatically set the horizontal and vertical installation angles and angle of view of the camera necessary for shooting.

例えば、図2に示すようにカメラで撮影したい位置である撮影対象物配置位置に人物上面表示子40を配置し、また所望のカメラ設置位置にカメラ上面表示子10を任意の方向を向いた状態で表示する。この状態で、カメラ上面表示子10上でマウスを右クリックすると、複数の目標画角、例えば撮影対象物の上半分を撮影する目標画角、撮影対象物の全体を撮影する目標画角、撮影対象物の全体が画面の高さの1/2を占める状態で撮影する目標画角、撮影対象物の全体が画面の高さの1/3を占める状態で撮影する目標画角の合計4つの画角が表示されるので、そのうち所望の目標画角をクリックする。   For example, as shown in FIG. 2, the person upper surface indicator 40 is arranged at the photographing object arrangement position which is the position where the camera wants to shoot, and the camera upper surface indicator 10 is directed to an arbitrary direction at the desired camera installation position. Is displayed. In this state, when the mouse is right-clicked on the camera upper surface indicator 10, a plurality of target angles of view, for example, a target angle of view for photographing the upper half of the photographing object, a target angle of view for photographing the whole photographing object, and photographing. There are a total of four target angles of view for shooting in a state where the entire object occupies 1/2 of the height of the screen, and a target angle of view for shooting in a state where the entire photographic object occupies 1/3 of the height of the screen. An angle of view is displayed. Click the desired target angle of view.

これによって、カメラと撮影対象物との関連付けがなされ、カメラ上面表示子10から図2に一点鎖線で示す関連づけ線表示子58が表示される。この線表示子58をマウスで人物上面表示子40までドラッグして、人物上面表示子40上でクリックすると、図2に矢印で示すように、カメラ上面表示子10が人物上面表示子40側を向き、指定された目標画角によって撮影する撮影範囲が水平視野表示子18によって表示される。また、図示していないが、指定された目標画角で撮影する撮影範囲が垂直視野表示子20によって表示される。これに併せて3D映像表示窓46には、指定された目標画角で人物を撮影した状態を3Dグラフィックスでシミュレーションした仮想撮影映像が、表示される。なお、カメラ上面表示子10と人物上面表示子40とを関連づけるのは、複数のカメラ上面表示子10や複数の人物上面表示子40とが上面図6上に表示されている場合に、どのカメラ上面表示子10が表すカメラで、どの人物上面表示子40が表す人物を撮影するかを決定するためである。また、車上面表示子42でも同様にできる。   Thus, the camera and the object to be imaged are associated with each other, and an association line indicator 58 indicated by a one-dot chain line in FIG. When the line indicator 58 is dragged to the person upper surface indicator 40 with the mouse and clicked on the person upper surface indicator 40, the camera upper surface indicator 10 moves the person upper surface indicator 40 side as shown by an arrow in FIG. The horizontal field indicator 18 displays the shooting range for shooting with the direction and the specified target angle of view. Although not shown, the vertical field indicator 20 displays a shooting range for shooting at a specified target angle of view. At the same time, the 3D video display window 46 displays a virtual captured video that simulates a state in which a person is captured at a specified target angle of view using 3D graphics. The camera top surface indicator 10 and the person top surface indicator 40 are associated with each other when the plurality of camera top surface indicators 10 and the plurality of person top surface indicators 40 are displayed on the top view 6. This is because the camera represented by the upper surface indicator 10 determines which person the upper surface indicator 40 represents. The same can be done for the vehicle upper surface indicator 42.

上記のようにカメラ上面表示子10が人物上面表示子40側を向き、指定された画角で撮影する撮影範囲が水平視野表示子18によって表示されている状態において、例えば上面人物表示子40をマウスでドラッグすると、上面人物表示子40の移動に従って、カメラ上面表示子10が表すカメラが、設定された目標画角を維持した状態で、人物の撮影を継続できるように、カメラの水平及び垂直設置角度及び画角が変更され、その変更に伴って3D映像表示窓46の仮想撮影映像が変更される。同様にカメラ上面表示子10をマウスでドラッグすると、上面人物表示子40が表す人物をカメラが設定された画角を維持した状態で撮影を継続できるように、カメラ上面表示子10の水平及び垂直設置角度が変更され、その変更に伴って3D映像表示窓46の仮想撮影映像が変更される。   In the state where the camera upper surface indicator 10 faces the human upper surface indicator 40 as described above and the shooting range for photographing at the specified angle of view is displayed by the horizontal visual field indicator 18, for example, the upper surface character indicator 40 is displayed. When dragging with the mouse, the camera is displayed horizontally and vertically so that the camera represented by the camera upper surface indicator 10 can continue to shoot a person while maintaining the set target angle of view as the upper surface character indicator 40 moves. The installation angle and the angle of view are changed, and the virtual captured video of the 3D video display window 46 is changed in accordance with the change. Similarly, when the camera upper surface indicator 10 is dragged with the mouse, the camera upper surface indicator 10 is horizontally and vertically aligned so that the person represented by the upper surface character indicator 40 can be continuously photographed while maintaining the angle of view set by the camera. The installation angle is changed, and the virtual captured video of the 3D video display window 46 is changed in accordance with the change.

以下、上述したような表示を行うためには、カメラ上面表示子10または上面人物表示子40の移動に従って、設定された目標画角を維持した状態で人物の撮影を継続できるようなカメラの水平設置角度、垂直設置角度及び画角を自動的に求める必要がある。これらを求めるアルゴリズムについて説明する。   Hereinafter, in order to perform the display as described above, the camera level is such that shooting of a person can be continued with the set target angle of view maintained according to the movement of the camera upper surface indicator 10 or the upper surface character indicator 40. It is necessary to automatically obtain the installation angle, the vertical installation angle, and the angle of view. An algorithm for obtaining these will be described.

図5において、ユーザーがカメラ上面表示子10またはカメラ立面表示子16の位置をマウス等の操作によって変更して、カメラの設置位置Cが定められ、上述したようにして、三次元空間上の座標(xc、yc、zc)が取得されているとする。同様に、ユーザーが人物上面表示子40または人物立面表示子44の位置をマウス等の操作によって変更して、人物の位置が定められ、その人物の足元の三次元空間上の座標(xo、yo、0)が取得されているとする。また人物の高さHoがユーザーの設定若しくはプログラム既定値によって与えられているとする。   In FIG. 5, the user changes the position of the camera upper surface indicator 10 or the camera elevation surface indicator 16 by operating the mouse or the like, and the camera installation position C is determined. Assume that coordinates (xc, yc, zc) have been acquired. Similarly, the user changes the position of the person upper surface indicator 40 or the person elevation indicator 44 by operating the mouse or the like to determine the position of the person, and the coordinates (xo, It is assumed that yo, 0) has been acquired. Further, it is assumed that the height Ho of the person is given by a user setting or a program default value.

カメラは、人物上の注視点O(xo、yo、zo)を注視するものとする。注視点Oの高さzoは、上述した撮影対象物の上半分を撮影するか、撮影対象物の全体を撮影するか等の目標画角の設定によって定まる。例えば撮影対象物の全体を撮影する場合には、zo=Ho/2とし、撮影対象物の上半分を撮影する場合には、zo=Ho*3/4とする。今、zo=Ho/2とする。   Assume that the camera gazes at a gaze point O (xo, yo, zo) on a person. The height zo of the gazing point O is determined by setting the target angle of view, such as whether to shoot the upper half of the photographic object described above or the entire photographic object. For example, zo = Ho / 2 is set when shooting the entire shooting target, and zo = Ho * 3/4 is set when shooting the upper half of the shooting target. Now, let zo = Ho / 2.

カメラの水平設置角θを+Xw軸方向を基準とした角度とすると、tanθは、
tanθ=[(yo−yc)/(xo−xc)]
であるので、
θ=tan−1[(yo−yc)/(xo−xc)]
と求まる。
When the horizontal installation angle θ of the camera is an angle with respect to the + Xw axis direction, tan θ is
tan θ = [(yo−yc) / (xo−xc)]
So
θ = tan −1 [(yo−yc) / (xo−xc)]
It is obtained.

次に、垂直設置角ρを求める。垂直設置角ρは、カメラの設置位置Cを通りXw−Yw平面に平行な面に対し、カメラの設置位置Cと注視点Oとを結ぶ直線が成す角となる。ここで、カメラの設置位置からXw−Yw面に立てた垂線と、この垂線に向かって注視点Oから伸ばした直線との交点をP’とする。なお、この垂線のXw−Yw平面への交点をP点とする。垂直設置角ρは、角COP’に等しいので、角COP’を求めればよい。tanCOP’は、P’O間の距離をrとすれば、
tanCOP’=(zc−zo)/r
で求められる。距離rは、図5から明らかなように、
r=[(xo−xc)+(yo−yc)1/2
で求められる。従って、ρは、
ρ=tan―1[(zc−zo)/r]
で求められる。
Next, the vertical installation angle ρ is obtained. The vertical installation angle ρ is an angle formed by a straight line connecting the camera installation position C and the gazing point O with respect to a plane passing through the camera installation position C and parallel to the Xw-Yw plane. Here, let P ′ be the intersection of a vertical line standing on the Xw-Yw plane from the camera installation position and a straight line extending from the gazing point O toward this vertical line. The intersection point of the perpendicular line to the Xw-Yw plane is defined as P point. Since the vertical installation angle ρ is equal to the angle COP ′, the angle COP ′ may be obtained. If tanCOP ′ is the distance between P′O, r,
tanCOP ′ = (zc−zo) / r
Is required. As is apparent from FIG. 5, the distance r is
r = [(xo-xc) 2 + (yo-yc) 2 ] 1/2
Is required. Therefore, ρ is
ρ = tan −1 [(zc-zo) / r]
Is required.

次に、カメラに設定する画角を算出する。ここで、上述したような目標画角を満足するように、垂直画角θvを図6を用いて導出する。このとき、撮影対象となる人物の全体像が画面の高さ一杯に映るように目標画角が設定されているとすると、図6に示すように注視点Oを中心にして、人物の身長Hoをピクセル値に換算した長さVの範囲が撮影されるように画角を算出すればよい。このとき、Vは線分OCと直角であるように設定すると、垂直画角θvは、画面の中央を通る縦方向の線分の両端とカメラの座標位置Cとの間の角度となる。従って、tan(θv/2)は、
tan(θv/2)=(V/2)/OC
で求められる。線分OCは、上述したrの二乗rと(zo−zc)の二乗(zo−zc)との和の平方根で求められる。従って、θv/2は、
θv/2=tan―1{(V/2)/[(xo−xc)+(yo−yc)+(zo−zc)−1/2
で求められる。
Next, the angle of view set for the camera is calculated. Here, the vertical angle of view θv is derived using FIG. 6 so as to satisfy the target angle of view as described above. At this time, assuming that the target angle of view is set so that the whole image of the person to be photographed is displayed at the full height of the screen, the person's height Ho with the gaze point O as the center as shown in FIG. It is only necessary to calculate the angle of view so that a range of a length V converted from a pixel value is captured. At this time, if V is set to be perpendicular to the line segment OC, the vertical field angle θv is an angle between both ends of the vertical line segment passing through the center of the screen and the coordinate position C of the camera. Therefore, tan (θv / 2) is
tan (θv / 2) = (V / 2) / OC
Is required. Segment OC is determined by the square root of the sum of the squares (zo-zc) 2 of the square r 2 of r as described above (zo-zc). Therefore, θv / 2 is
θv / 2 = tan −1 {(V / 2) / [(xo−xc) 2 + (yo−yc) 2 + (zo−zc) 2 ] −1/2 }
Is required.

このようにして求められた垂直画角θv及び水平設置角度θ、垂直設置角ρ、設置位置に従って3Dグラフィックスが作成され、3D映像表示窓46に表示される。   3D graphics are created in accordance with the vertical angle of view θv, the horizontal installation angle θ, the vertical installation angle ρ, and the installation position obtained in this manner, and displayed on the 3D video display window 46.

このようにして垂直画角を決定すると、カメラの垂直設置角ρによらず、常に画面の縦方向が長さVの大きさで撮影することができ、例えば撮影対象物がカメラの真下にいる場合でも、垂直画角θvが零にならず、撮影対象物を映すことができる。但し、垂直設置角ρが大きくなるに連れて、撮影対象物の映り方が所望の大きさに比べて小さくなる。そこで、図7に示すように撮影対象物が画面の縦一杯に映るような垂直画角θvを定めることもできる。この手法では、垂直設置角ρが大きくなっても、撮影対象物は、設定された大きさで映される。   When the vertical angle of view is determined in this way, the vertical direction of the screen can always be taken with the length V regardless of the vertical installation angle ρ of the camera. For example, the subject to be photographed is directly under the camera. Even in this case, the vertical angle of view θv does not become zero, and the object to be photographed can be projected. However, as the vertical installation angle ρ increases, the manner in which the object to be photographed is smaller than the desired size. Therefore, as shown in FIG. 7, it is possible to determine a vertical angle of view θv such that the object to be photographed is projected in the full length of the screen. In this method, even if the vertical installation angle ρ increases, the object to be photographed is projected at a set size.

図7において、人物の足元の座標をO’とし、角O’CPをθbとすると、垂直設置角ρを用いることによって、θv/2は、
θv/2=(π/2−ρ)−θb
で表される。tanθbは、
tanθb=zc/r
であるので、θbは、
θb=tan―1(zc/r)
で表される。rは上述したように、
r=[(xo−xc)+(yo−yc)1/2
であるので、θbは、
θb=tan―1{zc/[(xo−xc)+(yo−yc)−1/2
で求められる。従って、θv/2は、
θv/2=(π/2−ρ)−(tan―1{zc/[(xo−xc)+(yo−yc)−1/2})
で求められる。
In FIG. 7, assuming that the coordinates of the person's feet are O ′ and the angle O′CP is θb, by using the vertical installation angle ρ, θv / 2 is
θv / 2 = (π / 2−ρ) −θb
It is represented by tanθb is
tan θb = zc / r
Therefore, θb is
θb = tan −1 (zc / r)
It is represented by As described above, r is
r = [(xo-xc) 2 + (yo-yc) 2 ] 1/2
Therefore, θb is
θb = tan −1 {zc / [(xo−xc) 2 + (yo−yc) 2 ] −1/2 }
Is required. Therefore, θv / 2 is
θv / 2 = (π / 2−ρ) − (tan −1 {zc / [(xo−xc) 2 + (yo−yc) 2 ] −1/2 })
Is required.

この手法では、垂直設置角ρの大きさによらず、撮影対象物が画面の縦一杯に映るように画角を設定することができる。ただし、垂直設置角が大きくなるにつれて垂直画角θvが小さくなり、カメラが真下を向いたときには零になる。   In this method, the angle of view can be set so that the object to be photographed is projected vertically across the screen regardless of the vertical installation angle ρ. However, as the vertical installation angle increases, the vertical angle of view θv decreases, and becomes zero when the camera faces straight down.

上述のように、2つの手法は垂直設置角ρに応じてそれぞれ長所・短所があるので、どちらかの手法をユーザーが選択できるようにしてもよいし、予め定めた垂直設置角ρ、例えば45度以下の場合は後者の手法が自動的に選択され、45度以上の場合は前者の手法が自動的に選択されるようにすることもできる。   As described above, each of the two methods has advantages and disadvantages according to the vertical installation angle ρ. Therefore, either method may be selected by the user, or a predetermined vertical installation angle ρ, for example, 45 may be selected. The latter method can be automatically selected when the angle is less than or equal to 45 degrees, and the former method can be automatically selected when the angle is 45 degrees or more.

このようにして求めた垂直画角θvを用いて、上述したのと同様にして3Dグラフィックスが作成され、3D映像表示窓46に表示される。   Using the vertical angle of view θv thus obtained, 3D graphics is created and displayed on the 3D video display window 46 in the same manner as described above.

本発明の1実施形態のカメラ設置シミュレータプログラムに基づいてコンピュータが表示している画像を示す図である。It is a figure which shows the image which the computer is displaying based on the camera installation simulator program of one Embodiment of this invention. 図1の画像の一部拡大図である。FIG. 2 is a partially enlarged view of the image of FIG. 1. 実施形態のカメラ設置シミュレータプログラムによって上面図と三次元空間との関連の説明図である。It is explanatory drawing of the relationship between a top view and three-dimensional space by the camera installation simulator program of embodiment. 図3の三次元空間におけるカメラの設置位置及び注視点の算出法の説明図である。It is explanatory drawing of the calculation method of the installation position of a camera and the gaze point in the three-dimensional space of FIG. 同実施形態のカメラ設置シミュレータプログラムによってシミュレーションするためのカメラの水平設置角度と垂直設置角度を求める手法の説明図である。It is explanatory drawing of the method of calculating | requiring the horizontal installation angle and vertical installation angle of the camera for simulating with the camera installation simulator program of the embodiment. 実施形態のカメラ設置シミュレータプログラムによってシミュレーションするためのカメラの垂直画角を求める手法の一例の説明図である。It is explanatory drawing of an example of the method of calculating | requiring the vertical angle of view of the camera for simulating with the camera installation simulator program of embodiment. 実施形態のカメラ設置シミュレータプログラムによってシミュレーションするためのカメラの垂直画角を求める手法の他の例の説明図である。It is explanatory drawing of the other example of the method of calculating | requiring the vertical view angle of the camera for simulating with the camera installation simulator program of embodiment.

符号の説明Explanation of symbols

4 上面図表示窓
6 上面図
10 カメラ上面表示子
12 立面図表示窓
14 立面図
16 カメラ立面表示子
18 水平視野表示子
20 垂直視野表示子
4 Top View Display Window 6 Top View 10 Camera Top Indicator 12 Elevation View Display Window 14 Elevation View 16 Camera Elevation Indicator 18 Horizontal Field Indicator 20 Vertical Field Indicator

Claims (4)

所定エリアの任意の位置にカメラを配置した場合の撮影映像をシミュレーションするカメラ映像シミュレータプログラムであって、
前記カメラ映像シミュレータプログラムを実行するコンピュータは、
前記所定エリアの上面図データに基づいて当該所定エリアの上面図画像の一部又は全部を表示装置に表示させる処理と、
前記上面図画像のスケール、前記上面図画像上のカメラの配置位置、前記カメラの高さ位置、水平及び垂直設置角度並びに画角を任意に設定する処理と、
これらの設定情報と前記上面図データとに基づいて前記カメラの仮想撮影映像である三次元グラフィックスを作成し、前記表示装置に表示させる処理とを、
行うことを特徴とするカメラ映像シミュレータプログラム。
A camera image simulator program for simulating a captured image when a camera is arranged at an arbitrary position in a predetermined area,
A computer that executes the camera video simulator program includes:
Processing for displaying a part or all of the top view image of the predetermined area on the display device based on the top view data of the predetermined area;
Processing for arbitrarily setting the scale of the top view image, the placement position of the camera on the top view image, the height position of the camera, the horizontal and vertical installation angles, and the angle of view;
Based on these setting information and the top view data, to create a three-dimensional graphics that is a virtual captured video of the camera, and to display on the display device,
A camera image simulator program characterized by being performed.
前記カメラ映像シミュレータプログラムを実行するコンピュータは、
撮影対象物を表す撮影対象表示子と、前記カメラを表すカメラ表示子とをそれぞれ前記上面図画像上の任意の位置に配置して表示させる処理と、
前記各表示子の配置位置に基づいて、前記カメラで前記撮影対象物を所望の大きさで撮影するために必要な該カメラの水平及び垂直設置角度並びに画角を演算する処理と、
この演算結果と、前記設定された上面図画像のスケールと、前記カメラの高さ位置と、前記カメラ表示子の配置位置と、前記上面図データとに基づいて、前記カメラの仮想撮影映像である三次元グラフィックスを作成し、前記表示装置に表示させる処理とを、
行うことを特徴とする請求項1記載のカメラ映像シミュレータプログラム。
A computer that executes the camera video simulator program includes:
A process of displaying a shooting target indicator representing a shooting target and a camera indicator representing the camera arranged at arbitrary positions on the top view image, respectively,
A process of calculating the horizontal and vertical installation angles and the angle of view of the camera necessary for photographing the object to be photographed with a desired size with the camera based on the arrangement position of each indicator;
Based on the calculation result, the scale of the set top view image, the height position of the camera, the arrangement position of the camera indicator, and the top view data, it is a virtual photographed image of the camera. Processing to create three-dimensional graphics and display on the display device;
The camera image simulator program according to claim 1, wherein the camera image simulator program is executed.
前記各表示子は、前記上面図画像上の任意の位置に配置した後に、それぞれ別の位置に移動配置可能であり、
前記カメラ映像シミュレータプログラムを実行するコンピュータは、
前記各表示子の一方又は双方の前記移動配置に応じて、前記カメラで前記撮影対象物を所望の大きさで撮影するために必要な前記移動配置後のカメラの水平及び垂直設置角度並びに画角を再演算する処理と、
この再演算結果と、前記設定された上面図画像のスケールと、前記カメラの高さ位置と、前記カメラ表示子の移動配置後の配置位置と、前記上面図データとに基づいて、前記カメラの仮想撮影映像である三次元グラフィックスを再作成し、前記表示装置に表示させる処理とを、
行うことを特徴とする請求項2記載のカメラ映像シミュレータプログラム。
Each of the indicators can be moved and arranged at different positions after being arranged at an arbitrary position on the top view image,
A computer that executes the camera video simulator program includes:
The horizontal and vertical installation angles and angle of view of the camera after the moving arrangement necessary for photographing the object to be photographed with a desired size with the camera according to the moving arrangement of one or both of the indicators. Processing to recalculate
Based on the result of this recalculation, the scale of the set top view image, the height position of the camera, the placement position after the placement of the camera indicator, and the top view data, Re-creating three-dimensional graphics that are virtual images and displaying them on the display device;
3. The camera image simulator program according to claim 2, wherein the camera image simulator program is executed.
前記上面図画像のスケール設定は、当該上面図画像に描かれている長さが既知の部分と、移動伸縮自在の線分で表されたスケーラ表示子とを重ね、当該既知の長さがコンピュータに入力されることで、当該上面図画像に基づく仮想三次元空間におけるスケールとして設定されることを特徴とする請求項1から3のうちいずれか1項に記載のカメラ映像シミュレータプログラム。   The scale setting of the top view image is performed by superimposing a portion whose length is known in the top view image and a scaler indicator represented by a movable stretchable line segment, and the known length is a computer. The camera image simulator program according to claim 1, wherein the camera image simulator program is set as a scale in a virtual three-dimensional space based on the top view image.
JP2008062368A 2008-03-12 2008-03-12 Camera image simulator program Active JP5461782B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008062368A JP5461782B2 (en) 2008-03-12 2008-03-12 Camera image simulator program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008062368A JP5461782B2 (en) 2008-03-12 2008-03-12 Camera image simulator program

Publications (2)

Publication Number Publication Date
JP2009217115A true JP2009217115A (en) 2009-09-24
JP5461782B2 JP5461782B2 (en) 2014-04-02

Family

ID=41189016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008062368A Active JP5461782B2 (en) 2008-03-12 2008-03-12 Camera image simulator program

Country Status (1)

Country Link
JP (1) JP5461782B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015088819A (en) * 2013-10-29 2015-05-07 セコム株式会社 Imaging simulation device
JP2015195627A (en) * 2015-08-06 2015-11-05 Toa株式会社 Camera control unit and computer program of the same
JP2016201611A (en) * 2015-04-08 2016-12-01 三菱電機ビルテクノサービス株式会社 Security camera installation support device and program
KR101843758B1 (en) * 2013-03-05 2018-04-02 주식회사 디지털아이디어 Method and apparatus for producing 3d graphics
WO2020059064A1 (en) * 2018-09-20 2020-03-26 日本電気株式会社 Calculation device, information processing method, and recording medium
WO2023276306A1 (en) * 2021-06-29 2023-01-05 コニカミノルタ株式会社 Monitoring support system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05113745A (en) * 1990-12-27 1993-05-07 Toshiba Lighting & Technol Corp Camera operating simulation device
JPH0757095A (en) * 1993-08-13 1995-03-03 New Opt:Kk Number of reference picture element setting method in image processor for length measurement
JPH08251467A (en) * 1995-03-09 1996-09-27 Canon Inc Display device for camera information
JPH10178581A (en) * 1996-12-19 1998-06-30 Canon Inc Camera controller, its method and storage medium
JP2003009135A (en) * 2001-06-21 2003-01-10 Toshiba Corp Camera supervising control system and image server
JP2003032515A (en) * 2001-07-19 2003-01-31 Nippon Hoso Kyokai <Nhk> Camerawork simulator and simulation method
JP2007026129A (en) * 2005-07-19 2007-02-01 Nintendo Co Ltd Object movement control program and information processor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05113745A (en) * 1990-12-27 1993-05-07 Toshiba Lighting & Technol Corp Camera operating simulation device
JPH0757095A (en) * 1993-08-13 1995-03-03 New Opt:Kk Number of reference picture element setting method in image processor for length measurement
JPH08251467A (en) * 1995-03-09 1996-09-27 Canon Inc Display device for camera information
JPH10178581A (en) * 1996-12-19 1998-06-30 Canon Inc Camera controller, its method and storage medium
JP2003009135A (en) * 2001-06-21 2003-01-10 Toshiba Corp Camera supervising control system and image server
JP2003032515A (en) * 2001-07-19 2003-01-31 Nippon Hoso Kyokai <Nhk> Camerawork simulator and simulation method
JP2007026129A (en) * 2005-07-19 2007-02-01 Nintendo Co Ltd Object movement control program and information processor

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CSNG200100090019; 岡本稔,外1名: '古代景観シミュレーションのためのモデリング支援システムの試み' 情報処理学会論文誌 第40巻,第3号, 19990315, p.949-958, 社団法人情報処理学会 *
CSNG200401051007; 山本光重,外2名: '実写映像を利用した花火演出支援システム FirePainter' 日本バーチャルリアリティ学会論文誌 第7巻,第3号, 20020930, p.385-392 *
JPN6011060998; 岡本稔,外1名: '古代景観シミュレーションのためのモデリング支援システムの試み' 情報処理学会論文誌 第40巻,第3号, 19990315, p.949-958, 社団法人情報処理学会 *
JPN6011060999; 山本光重,外2名: '実写映像を利用した花火演出支援システム FirePainter' 日本バーチャルリアリティ学会論文誌 第7巻,第3号, 20020930, p.385-392 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101843758B1 (en) * 2013-03-05 2018-04-02 주식회사 디지털아이디어 Method and apparatus for producing 3d graphics
JP2015088819A (en) * 2013-10-29 2015-05-07 セコム株式会社 Imaging simulation device
JP2016201611A (en) * 2015-04-08 2016-12-01 三菱電機ビルテクノサービス株式会社 Security camera installation support device and program
JP2015195627A (en) * 2015-08-06 2015-11-05 Toa株式会社 Camera control unit and computer program of the same
WO2020059064A1 (en) * 2018-09-20 2020-03-26 日本電気株式会社 Calculation device, information processing method, and recording medium
JPWO2020059064A1 (en) * 2018-09-20 2021-08-30 日本電気株式会社 Calculator, information processing method and program
JP7040627B2 (en) 2018-09-20 2022-03-23 日本電気株式会社 Calculator, information processing method and program
US11481996B2 (en) 2018-09-20 2022-10-25 Nec Corporation Calculation device, information processing method, and storage medium
WO2023276306A1 (en) * 2021-06-29 2023-01-05 コニカミノルタ株式会社 Monitoring support system

Also Published As

Publication number Publication date
JP5461782B2 (en) 2014-04-02

Similar Documents

Publication Publication Date Title
AU2020202551B2 (en) Method for representing points of interest in a view of a real environment on a mobile device and mobile device therefor
JP4975673B2 (en) Camera installation simulator program
JP5991423B2 (en) Display device, display method, display program, and position setting system
US10290155B2 (en) 3D virtual environment interaction system
US7496222B2 (en) Method to define the 3D oblique cross-section of anatomy at a specific angle and be able to easily modify multiple angles of display simultaneously
JP5016443B2 (en) Camera installation simulator program
JP5461782B2 (en) Camera image simulator program
JP2011239361A (en) System and method for ar navigation and difference extraction for repeated photographing, and program thereof
US11477432B2 (en) Information processing apparatus, information processing method and storage medium
EP2991323A1 (en) Mobile device and method of projecting image by using the mobile device
JP2018113683A (en) Image processing apparatus, image processing method, and program
US20210208765A1 (en) Interactive three-dimensional representations of objects
US9881419B1 (en) Technique for providing an initial pose for a 3-D model
JP2006018444A (en) Image processing system and additional information indicating device
JP2013080466A (en) Method and device for processing document image
US9959637B2 (en) Method and apparatus for processing border of computer figure to be merged into background image
JP2004078121A (en) Device, method, and program for display correction and recording medium with recorded display correcting program
JP5287613B2 (en) Image display method, information processing apparatus, and image display program
JP2010117465A (en) Information processing device, information processing system and program
JP2005333628A (en) Camera control apparatus, and monitoring camera system using same
JP2017182843A (en) Program, display control device, and display control method
JP5122508B2 (en) 3D spatial data creation method and 3D spatial data creation apparatus
JP2016139201A (en) Image processing device, image processing method, and program
JP2021149798A (en) Support device, support method, and support program
JP2018186367A (en) Information processing device, method for controlling information processing device, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110530

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111122

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120123

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131212

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140116

R150 Certificate of patent or registration of utility model

Ref document number: 5461782

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250