METHOD OF CONTROLLING PAN-TILT-ZOOM CAMERA BY USING FISHEYE CAMERA AND MONITORING SYSTEM

20200382712 ยท 2020-12-03

Assignee

Inventors

Cpc classification

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] FIG. 1 schematically shows a configuration of a monitoring system in which a method of controlling a pan-tilt-zoom (PTZ) camera by using a fisheye camera is performed according to an exemplary embodiment of the present invention.

[0017] FIG. 2 is a flowchart illustrating a method of controlling a PTZ camera by using a fisheye camera according to an exemplary embodiment of the present invention.

[0018] FIG. 3 shows an example of an entire surveillance-target area image captured by a fisheye camera.

[0019] FIGS. 4A and 4B show examples of region of interest (ROI) images.

[0020] FIG. 5 is a diagram illustrating optical axes of a fisheye camera and a PTZ camera with respect to an ROI according to an exemplary embodiment of the present invention.

[0021] FIGS. 6A and 6B show examples of images illustrating an ROI range as a PTZ camera zooms in.

[0022] FIGS. 7A and 7B are a set of pictures illustrating matching between images of a fisheye camera and a PTZ camera.

[0023] FIG. 8 is a diagram schematically illustrating calculation of a panning angle to be corrected according to a distance.

[0024] FIG. 9 is a picture showing an example of a zoom-in image captured by a PTZ camera according to an exemplary embodiment of the present invention.

[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] FIG. 1 schematically shows a configuration of a monitoring system in which a method of controlling a pan-tilt-zoom (PTZ) camera by using a fisheye camera is performed according to an exemplary embodiment of the present invention.

[0028] Referring to FIG. 1, a monitoring system is implemented by connecting a fisheye camera 10, a PTZ camera 20, a user interface 30, and a controller 40 through wired or wireless communication.

[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 FIG. 3) because the fisheye camera 10 is not far away from the subject. However, an image of a subject captured in pixels far away from the center of the screen is warped and unclear because the subject is far away from the fisheye camera 10.

[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 FIG. 2.

[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 FIGS. 2 to 9.

[0040] FIG. 2 is a flowchart illustrating a method of controlling a PTZ camera by using a fisheye camera according to an exemplary embodiment of the present invention, FIG. 3 shows an example of an entire surveillance-target area image captured by a fisheye camera, and FIGS. 4A and 4B show examples of ROI images.

[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 FIG. 3.

[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 FIG. 3. The de-warped image may be an image centered on the trashcan as shown in FIG. 4A.

[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 FIG. 4B.

[0049] Comparing the images shown in FIGS. 4A and 4B, the centers do not correspond to each other. This is because the fisheye camera 10 and the PTZ camera 20 are not integrated and are installed a certain distance away from each other as separate pieces of equipment. This will be described in further detail with reference to FIG. 5.

[0050] FIG. 5 is a diagram illustrating optical axes of a fisheye camera and a PTZ camera with respect to an ROI according to an exemplary embodiment of the present invention.

[0051] Referring to FIG. 5, due to the first adjustment of the panning angle P and the tilting angle T of the PTZ camera 20, an optical axis 501 of the fisheye camera 10 and an optical axis 502 of the PTZ camera 20 toward an object of interest do not correspond to each other but are parallel to each other at a certain distance. Consequently, the centers of the images shown in FIGS. 4A and 4B do not correspond to each other.

[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 FIG. 5, the object of interest is imaged when the PTZ camera 20 has a viewing angle FOV1 at a zoom level 1 but is not shown when the PTZ camera 20 has a viewing angle FOV2 at a zoom level 2.

[0053] FIG. 6A and FIG. 6B show examples of images illustrating an ROI range as a PTZ camera zooms in.

[0054] In the above case, the user may request enlargement expecting an image of the object of interest as shown in FIG. 6A, but an image may be captured in which an area other than the object of interest is enlarged as shown in FIG. 6B.

[0055] Therefore, referring back to FIG. 2, the controller 100 adjusts the panning angle P and the tilting angle T of the PTZ camera 20 second on the basis of the distance between the center of an ROI image captured by the PTZ camera 20 and the center of the de-warped fisheye image according to an exemplary embodiment of the present invention.

[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 FIG. 4B.

[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] FIG. 7A and FIG. 7B are a set of pictures illustrating matching between images of a fisheye camera and a PTZ camera.

[0059] In other words, as shown in FIG. 7A, the controller 100 detects an appropriately large area based on the center of the de-warped image (hereinafter image A) of the fisheye camera 10 in an image captured by the PTZ camera 20 (hereinafter image B) through image matching. Subsequently, the controller 100 calculates a horizontal migration distance dx and a vertical migration distance dy of the center of image A detected in image B.

[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] FIG. 8 is a diagram schematically illustrating calculation of a panning angle to be corrected according to a distance.

[0062] The panning angle shown in FIG. 8 may be calculated by [Equation 1] below. In [Equation 1], R is the distance between the PTZ camera 20 and an object of interest as shown in FIG. 8, and x may be defined by [Equation 2] below. Each variable of [Equation 2] may be defined as shown in FIG. 8.

[00001] = atan ( x R ) [ Equation .Math. .Math. 1 ] x = dx hw R tan ( xfov 2 ) [ Equation .Math. .Math. 2 ]

[0063] Therefore, the panning angle may be finally calculated by [Equation 3] below.

[00002] = atan ( dx hw tan ( xfov 2 ) ) [ Equation .Math. .Math. 3 ]

[0064] The tilting angle may be calculated by [Equation 4] below in the same way as the panning angle .

[00003] = atan ( dy hh tan ( yfov 2 ) ) [ Equation .Math. .Math. 4 ]

[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] FIG. 9 is a picture showing an example of a zoom-in image captured by a PTZ camera according to an exemplary embodiment of the present invention.

[0067] In other words, as shown in FIG. 9, when the panning angle P and the tilting angle T of the PTZ camera 20 are adjusted second, it is possible to acquire an enlarged image of an object of interest desired by a user.

[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.