METHOD OF CONTROLLING PAN-TILT-ZOOM CAMERA BY USING FISHEYE CAMERA AND MONITORING SYSTEM
20200382712 ยท 2020-12-03
Assignee
Inventors
Cpc classification
H04N23/698
ELECTRICITY
G08B13/1963
PHYSICS
H04N7/181
ELECTRICITY
G08B13/19643
PHYSICS
G08B13/19628
PHYSICS
H04N23/695
ELECTRICITY
H04N23/69
ELECTRICITY
International classification
Abstract
Provided is a monitoring system and a method of controlling a panning-tilt zoom (PTZ) camera by using a fisheye camera when the fisheye camera and the PTZ camera are adjacently installed. The method includes selecting a region of interest (ROI) in an entire surveillance-target area image captured by the fisheye camera and adjusting a panning angle P and a tilting angle T of the PTZ camera to acquire an accurate image of the selected ROI.
Claims
1. A method of controlling a pan-tilt-zoom (PTZ) camera by using a fisheye camera when the fisheye camera and the PTZ camera are adjacently installed, the method comprising: selecting a region of interest in an entire surveillance-target area image captured by the fisheye camera; and adjusting a panning angle P and a tilting angle T of the PTZ camera to acquire an accurate image of the selected region of interest, wherein the adjusting of the panning angle P and the tilting angle T comprises: adjusting the panning angle P and the tilting angle T of the PTZ camera first so that an optical axis of the PTZ camera is parallel with an optical axis of the fisheye camera directed to a center of the region of interest; and after the panning angle P and the tilting angle T are adjusted first, adjusting the panning angle P and the tilting angle T of the PTZ camera second on the basis of a distance value between a center of the region of interest in an image captured by the PTZ camera and a center of the PTZ camera image.
2. The method of claim 1, wherein the first adjusting of the panning angle P and the tilting angle T comprises: de-warping an image having a certain range from the center of the region of interest selected in the entire surveillance-target area image captured by the fisheye camera; calculating a panning angle and a tilting angle of the optical axis of the PTZ camera directed to the center of the region of interest of the fisheye camera from the de-warped image; and adjusting the panning angle P and the tilting angle T of the PTZ camera first so that the optical axis of the PTZ camera is parallel with the optical axis of the fisheye camera directed to the center of the region of interest indicated by the panning angle and the tilting angle.
3. The method of claim 1, wherein the first adjusting of the panning angle P and the tilting angle T comprises adjusting the panning angle P and the tilting angle T of the PTZ camera first by considering a difference value between reference coordinates of the fisheye camera stored when the fisheye camera is installed and reference coordinates of the PTZ camera stored when the PTZ camera is installed.
4. The method of claim 1, wherein the second adjusting of the panning angle P and the tilting angle T comprises: acquiring a region of interest image captured by the PTZ camera whose panning angle P and tilting angle T have been adjusted first; detecting the region of interest in the image captured by the PTZ camera by matching the region of interest image to the de-warped image and calculating a distance between a center of the region of interest in the image captured by the PTZ camera and a center of the image captured by the PTZ camera; and adjusting the panning angle P and the tilting angle T of the PTZ camera second on the basis of the calculated distance.
5. A monitoring system comprising: a fisheye camera configured with a fisheye lens to monitor an entire surveillance-target area; a pan-tilt-zoom (PTZ) camera installed adjacent to the fisheye camera and configured to closely monitor a specific location of the surveillance-target area; and a controller configured to have a region of interest selected in an image of the entire surveillance-target area captured by the fisheye camera and adjust a panning angle P and a tilting angle T of the PTZ camera in order to acquire an accurate image of the selected region of interest, wherein the controller adjusts the panning angle P and the tilting angle T of the PTZ camera first so that an optical axis of the PTZ camera is parallel with an optical axis of the fisheye camera directed to a center of the region of interest and adjusts the panning angle P and the tilting angle T of the PTZ camera second on the basis of a distance value between a center of the region of interest in an image captured by the PTZ camera and a center of the PTZ camera image after the panning angle P and the tilting angle T are adjusted first.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025] Throughout the drawings and the detailed description, unless otherwise described, the same drawing reference numerals will be understood to refer to the same elements, features, and structures. The relative size and depiction of these elements may be exaggerated for clarity, illustration, and convenience.
DETAILED DESCRIPTION
[0026] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, exemplary embodiments of the present invention set forth herein can be modified in various different forms, and the scope of the present invention is not limited thereto. The exemplary embodiments of the present invention are provided to fully describe the present invention to those of ordinary skill in the art.
[0027]
[0028] Referring to
[0029] First, the fisheye camera 10 functions to monitor an entire surveillance-target area. A fisheye lens may be installed in the fisheye camera 10 to image an entire horizontal area downward. However, with the resolution of the fisheye camera 10 having a limited number of pixels, it is difficult to acquire the accurate shape of a subject. In other words, the fisheye camera 10 generally provides a clear image of a subject captured at the center of the screen (see
[0030] To solve this problem, according to the present invention, the PTZ camera 20 functions to clearly image a subject in a specific area.
[0031] In other words, according to the present invention, a region of interest (ROI) may be located by using the fisheye camera 10, and then the ROI may be closely monitored by using the PTZ camera 20.
[0032] In this case, the controller 100 calculates a panning angle and a tilting angle of the PTZ camera 20 so that the PTZ camera 20 may be directed toward the ROI and generates a control signal corresponding to the panning angle P and the tilting angle T. The PTZ camera 20 changes a panning angle P and a tilting angle T thereof according to the control signal.
[0033] Here, the panning angle P refers to the angle of a straight line between the PTZ camera 20 and a subject with respect to a reference point (0 degrees) assuming that the PTZ camera 20 and the subject are coplanar. In other words, the subject and the PTZ camera 20 are disposed at the single panning angle P among 0 degrees to 360 degrees. Therefore, the PTZ camera 20 is rotated in a horizontal plane according to the panning angle P.
[0034] The tilting angle T refers to the angle between a straight line extending from the PTZ camera 20 and crossing the ground surface at right angles and the straight line between the PTZ camera 20 and the subject. The tilting angle T varies according to the distance between the subject and the PTZ camera 20. For example, when the subject is disposed vertically below the PTZ camera 20, the tilting angle T is 0 degrees. As the subject becomes farther away from the PTZ camera 20, the tilting angle T gradually increases. When the subject is considerably far away from the PTZ camera 20, the tilting angle T approximates to 90 degrees. In other words, the tilting angle T ranges from 0 degrees to less than 90 degrees.
[0035] According to an exemplary embodiment of the present invention, the fisheye camera 10 and the PTZ camera 20 are not integrated in one camera module but are separate pieces of equipment which are separate camera modules and installed as close to each other as possible. In this case, according to characteristics of an installation space, the fisheye camera 10 and the PTZ camera 20 may be installed so that reference coordinates (0 degrees) of the fisheye camera 10 and reference coordinates (0 degrees) of the PTZ camera 20 may correspond to each other or may not correspond to each other but may roll with respect to each other.
[0036] However, the present invention relates to a method of controlling the fisheye camera 10 and the PTZ camera 20 in association with each other. Consequently, it is necessary to measure and provide a difference value between the reference coordinates (0 degrees) of the installed fisheye camera 10 and the reference coordinates (0 degrees) of the PTZ camera 20 to the controller 100 in advance. Then, when adjusting the panning angle P and the tilting angle T of the PTZ camera 20, particularly, in first adjusting of the panning angle P and the tilting angle T which will be described below, the controller 100 may accurately control the panning angle P and the tilting angle T by considering the difference value between the reference coordinates (0 degrees) of the fisheye camera 10 and the reference coordinates (0 degrees) of the PTZ camera 20. This will be described below with reference to
[0037] The user interface 30 is a means for outputting a still image or a moving image captured by the fisheye camera 10 and the PTZ camera 20 and generating manipulation information of a user as key data for the controller 100. As the user interface 30, a manipulator and a display may be separately implemented or integrated in the form of a touch screen. According to an exemplary embodiment of the present invention, a fisheye camera image is output to the user interface 30 so that an ROI may be selected by the user and output to the controller 100.
[0038] The controller 100 controls each of the above-described components. Specifically, the controller 100 may output an image received from the fisheye camera 10 to the user interface 30. When an ROI selection signal is input through the user interface 30, the controller 100 may control the PTZ camera 20 to rotate to or zoom in on the ROI by transmitting a control signal for adjusting the panning angle P, the tilting angle T, and a zoom distance Z of the PTZ camera 20 to the PTZ camera 20. In this way, the user is enabled to closely monitor the ROI through the image captured by the PTZ camera 20.
[0039] A method of controlling a PTZ camera by using a fisheye camera in the above-described monitoring system will be described in detail with reference to
[0040]
[0041] First, the controller 100 acquires a fisheye camera image of an entire surveillance-target area by operating the fisheye camera 10 and provides the fisheye camera image to the user interface 30. In other words, a fisheye camera image is output as shown in
[0042] In this case, a user may select an ROI in the entire surveillance-target area and request an image of the ROI captured by the PTZ camera 20.
[0043] When an ROI is selected in the fisheye camera image by the user (S210), the controller 100 adjusts the panning angle P and the tilting angle T of the PTZ camera 20 to acquire an accurate image of the selected ROI. According to an exemplary embodiment of the present invention, the controller 100 adjusts the panning angle P and the tilting angle T of the PTZ camera 20 two times.
[0044] The controller 100 adjusts the panning angle P and the tilting angle T of the PTZ camera 20 first so that an optical axis of the PTZ camera 20 may be parallel with an optical axis of the fisheye camera 10 directed to the centered of the ROI (S220).
[0045] Specifically, the controller 100 de-warps an image having a certain range from the ROI selected by the user in the entire surveillance-target area image captured by the fisheye camera 10 (S221). In other words, a de-warped image having a certain range from a trashcan which is an object of interest selected by the user is generated from the entire surveillance-target area image shown in
[0046] The controller 100 calculates a panning angle and a tilting angle of an optical axis directed to the center of the ROI of the fisheye camera 10 from the de-warped image (S223). In other words, a panning angle and a tilting angle of the center of the ROI are calculated on the basis of the reference coordinates (0 degrees) of the fisheye camera 10.
[0047] Subsequently, the controller 100 generates a control signal for adjusting the panning angle P and the tilting angle T of the PTZ camera 20 so that an optical axis of the PTZ camera 20 may be parallel with an optical axis directed to the center of the ROI indicated by the panning angle and the tilting angle of the center of the ROI on the basis of the reference coordinates (0 degrees) of the fisheye camera 10 (S225). In this case, the controller 100 has stored a difference value between the reference coordinates (0 degrees) of the fisheye camera 10 and the reference coordinates (0 degrees) of the PTZ camera 20 acquired upon installation, and thus the panning angle P and the tilting angle T of the PTZ camera 20 are adjusted first by considering the difference value in S225.
[0048] After the panning angle P and the tilting angle T are adjusted first as described above, an image of the ROI captured by the PTZ camera 20 may be the same as an image shown in
[0049] Comparing the images shown in
[0050]
[0051] Referring to
[0052] In this situation, a user may request the PTZ camera 20 to zoom in and image the ROI through the user interface 30 in order to monitor the ROI more closely. As shown in
[0053]
[0054] In the above case, the user may request enlargement expecting an image of the object of interest as shown in
[0055] Therefore, referring back to
[0056] Specifically, the controller 100 acquires an ROI image captured by the PTZ camera 20 whose panning angle P and tilting angle T have been adjusted first (S231). The ROI image may be the image shown in
[0057] The controller 100 calculates the distance between the center of the ROI in the PTZ camera image and the center of the PTZ camera image by matching the acquired PTZ camera image to the de-warped image.
[0058]
[0059] In other words, as shown in
[0060] Subsequently, the controller 100 calculates a panning angle and a tilting angle of the PTZ camera 20, which will be corrected, by using the calculated horizontal distance dx and vertical distance dy through [Equation 1] to [Equation 4] below and adjusts the panning angle P and the tilting angle T of the PTZ camera 20 second (S235).
[0061]
[0062] The panning angle shown in
[0063] Therefore, the panning angle may be finally calculated by [Equation 3] below.
[0064] The tilting angle may be calculated by [Equation 4] below in the same way as the panning angle .
[0065] Subsequently, when zoom-in is requested through the user interface 30, the controller 100 may zoom the PTZ camera 20 whose panning angle P and tilting angle T have been adjusted second and acquires and outputs an enlarged image of the ROI to the user interface 30 (S240).
[0066]
[0067] In other words, as shown in
[0068] As described above, according to exemplary embodiments of the present invention, it is possible to rapidly and automatically control a PTZ camera by using a fisheye camera image without a complicated calibration process.
[0069] Embodiments disclosed herein and illustrated in the drawings are set forth as specific examples only to help understanding and are not intended to limit the scope of various embodiments of the present invention.
[0070] Accordingly, the scope of various embodiments of the present invention should be interpreted to encompass all alterations and modifications derived from the technical spirit of various embodiments of the present invention as well as the above-described embodiments.