KR20190056650A - Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera - Google Patents

Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera Download PDF

Info

Publication number
KR20190056650A
KR20190056650A KR1020170153837A KR20170153837A KR20190056650A KR 20190056650 A KR20190056650 A KR 20190056650A KR 1020170153837 A KR1020170153837 A KR 1020170153837A KR 20170153837 A KR20170153837 A KR 20170153837A KR 20190056650 A KR20190056650 A KR 20190056650A
Authority
KR
South Korea
Prior art keywords
distance
wide
image processing
processing apparatus
camera
Prior art date
Application number
KR1020170153837A
Other languages
Korean (ko)
Inventor
안철
김태민
Original Assignee
주식회사 올로케이션
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 주식회사 올로케이션 filed Critical 주식회사 올로케이션
Priority to KR1020170153837A priority Critical patent/KR20190056650A/en
Publication of KR20190056650A publication Critical patent/KR20190056650A/en

Links

Images

Classifications

    • H04N5/23293
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • H04N5/23296
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Abstract

Provided is a method for generating a control value to control a pan/tilt/zoom (PTZ) camera in a wide-angle image processing apparatus which can control the rotation speed. To this end, provided is a method for generating a distance look-up table and a focus look-up table and generating a PTZ rotation speed value and a focal distance by using the distance look-up table and the focus look-up table.

Description

고정카메라에 의해 촬영된 영상의 분석값을 이용하여 PTZ 카메라를 제어하는 방법{Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera} A method for controlling a PTZ camera using an analysis value of an image captured by a fixed camera, the method comprising:

본 발명은 고정카메라에 의해 촬영된 영상의 분석값을 이용하여, 이동 중인 사람의 원거리 얼굴인식을 위한 PTZ 카메라를 제어하는 방법에 관한 기술이다.The present invention relates to a method for controlling a PTZ camera for remote face recognition of a moving person by using an analysis value of an image captured by a fixed camera.

종래의 얼굴인식 기술은 1m 이내의 근접 촬영을 통해 획득한 얼굴 영상으로 인식을 수행하는 방법을 주로 사용하고 있다. 최근에는 장비의 성능이 발달함에 따라 고성능 카메라를 사용하여 1m 이상의 원거리에 있는 사람을 확대 촬영하여 얼굴을 인식하는 기술도 등장하고 있다. 원거리 얼굴인식에서는 기존의 얼굴인식 기술과 다르게 정지상태가 아닌 지속적으로 이동하는 상태에서도 인식이 이루어져야만 한다. 이로 인해 여러 명의 인식 대상이 지속적으로 이동할 때, 각각의 인식 대상을 추적하며 인식하기 위해 PTZ(Pan/Tilt/Zoom) 기능을 갖는 카메라가 다수 요구된다.Conventional face recognition technology mainly uses a method of performing recognition with a facial image acquired through close-up photography within 1m. Recently, as the performance of equipment has improved, a technique of recognizing faces by enlarging a person at a distance of 1 m or more using a high-performance camera has appeared. Unlike the conventional face recognition technology, the remote face recognition must be recognized even when the subject is continuously moving, not in the stop state. Accordingly, when a plurality of recognition objects continuously move, many cameras having a PTZ (Pan / Tilt / Zoom) function are required in order to track and recognize each recognition object.

PTZ 카메라 기반의 원거리 얼굴인식에서 카메라를 제어하기 위한 방법은 고정카메라를 사용한 다중카메라 환경에서 구현되고 있다. 이동 중인 사람의 원거리 얼굴인식을 위해서, 먼저 PTZ 카메라가 회전하면서 이동 중인 사람을 추적하고, 이후 화면확대 기능을 활용하여 좋은 얼굴 형상을 획득해야 한다. 하지만 기존의 PTZ 카메라 제어방법들은 사람의 이동속도를 고려하지 않고, 고정된 회전 속도로 PTZ 카메라를 제어하여 사람을 추적하기 때문에 다양한 환경에서 좋은 얼굴 영상을 획득하기 어렵다. The method for controlling the camera in the remote face recognition based on the PTZ camera is implemented in a multi camera environment using a fixed camera. For the remote face recognition of the moving person, first, the PTZ camera rotates to track the moving person, and then the screen enlargement function is utilized to acquire a good face shape. However, existing PTZ camera control methods do not consider the moving speed of a person, and control a PTZ camera at a fixed rotation speed to track a person, so it is difficult to obtain a good face image in various environments.

기존의 PTZ 카메라 제어방법들에 따르면, PTZ 카메라의 화면이 확대될수록 팬(Pan), 틸트(Tilt) 회전 속도에 따른 영상의 번짐 현상이 심해지기 때문에 얼굴인식 기능을 수행하지 못한다는 문제가 있다. 이를 해결하기 위해서는 팬(Pan), 틸트(Tilt)가 사람의 이동속도에 맞게 적정 속도로 회전되어야 하고, 검출 대상체까지의 초점 조정이 정확하고 신속하게 이루어져야 한다.  According to the existing PTZ camera control methods, as the screen of the PTZ camera is enlarged, the blurring phenomenon of the image due to the pan and tilt rotation speed becomes worse, and thus the face recognition function can not be performed. In order to solve this problem, the pan and tilt must be rotated at an appropriate speed according to the moving speed of the person, and the focus adjustment to the object to be detected must be performed accurately and quickly.

본 발명에서는 상술한 문제를 해결하고 상술한 요구사항을 만족시킬 수 있는 기술로서, 회전 속도를 제어할 수 있는 PTZ 카메라 제어방법을 제공하고자 한다. The present invention provides a PTZ camera control method capable of controlling the rotation speed as a technique capable of solving the above-mentioned problems and satisfying the above-mentioned requirements.

본 발명의 일 관점에 따라 촬영방향과 촬영배율이 고정된 고정카메라가 출력하는 이미지를 획득하고, 상기 획득한 이미지를 이용하여 PTZ 카메라의 동작을 제어하도록 되어 있는 광각영상처리장치에서, 상기 PTZ 카메라를 제어하기 위한 제어값을 생성하는 방법을 제공할 수 있다. 상기 방법은, 상기 광각영상처리장치가, 복수 개의 이미지 획득 시점들 각각마다, 상기 고정카메라로부터 전송된 이미지에 포함된 제1객체를 검출하고, 상기 이미지 내에서 상기 검출된 제1객체가 차지하는 영역의 중심점 위치값(x, y)을 상기 이미지 획득 시점에 대응시켜 저장하는 저장단계; 상기 광각영상처리장치가, 연속된 N개의 상기 이미지 획득 시점들 각각에 대하여, 상기 제1객체가 차지하는 영역의 가로폭에 가장 근접한 값인 근사폭을 미리 제공된 거리 룩업 테이블로부터 획득하고, 상기 고정카메라로부터 상기 제1객체까지의 거리를 나타내는 객체거리로서 상기 근사폭에 대응하는 상기 객체거리를 상기 거리 룩업 테이블로부터 획득하는 제1획득단계; 상기 광각영상처리장치가, 상기 N개의 이미지 획득 시점들에 대하여 획득한 N개의 상기 객체거리들 및 상기 N개의 이미지 획득 시점들을 이용하여 상기 제1객체의 이동속도를 계산하는 계산단계; 상기 광각영상처리장치가, 상기 제1객체의 이동속도를 이용하여 상기 PTZ 카메라의 회전속도값을 산출하는 산출단계; 및 상기 광각영상처리장치가, 상기 PTZ 회전속도값을 상기 PTZ 카메라에 상기 제어값으로서 제공하는 제1제공단계;를 포함할 수 있다.In accordance with an aspect of the present invention, there is provided a wide-angle image processing apparatus for acquiring an image output by a fixed camera having a fixed photographing direction and a photographing magnification and controlling the operation of the PTZ camera using the obtained image, And a control value for controlling the control value. Wherein the wide-angle image processing apparatus detects, for each of a plurality of image acquiring time points, a first object included in the image transmitted from the fixed camera, (X, y) corresponding to the image acquiring time; Wherein the wide-angle image processing apparatus obtains, for each of the N consecutive image acquiring time points, an approximate width that is a value closest to a horizontal width of an area occupied by the first object from a previously provided distance look-up table, A first obtaining step of obtaining the object distance corresponding to the approximate width from the distance lookup table as an object distance representing a distance to the first object; Wherein the wide-angle image processing apparatus comprises: a calculating step of calculating a moving speed of the first object using N object distances and N image acquiring times acquired for the N image acquiring time points; Wherein the wide-angle image processing apparatus comprises: a calculating step of calculating a rotation speed value of the PTZ camera using a moving speed of the first object; And a first providing step in which the wide-angle image processing apparatus provides the PTZ rotation speed value to the PTZ camera as the control value.

이때, 상기 광각영상처리장치가, 상기 PTZ 카메라를 위한 N개의 초점거리들을 미리 제공된 초점 룩업 테이블로부터 획득하는 초점거리 획득단계로서, 상기 N개의 초점거리들은 각각 상기 N개의 상기 객체거리에 대응하는 값인, 제2획득단계; 및 상기 광각영상처리장치가, 상기 N개의 초점거리를 상기 PTZ 카메라에게 상기 제어값으로서 제공하는 제2제공단계를 더 포함할 수 있다.In this case, the wide-angle image processing apparatus acquires N focal lengths for the PTZ camera from a previously provided focus lookup table, and the N focal lengths are values corresponding to the N object distances , A second acquiring step; And the second wide-angle image processing apparatus may further include a second providing step of providing the N focal lengths as the control value to the PTZ camera.

이때, 상기 제1획득단계 이전에, 상기 광각영상처리장치가, 상기 고정카메라에 연관된 상기 거리 룩업 테이블의 존재 여부를 확인하는 단계; 및 상기 광각영상처리장치가, 상기 거리 룩업 테이블이 존재하지 않는 것으로 판단된 경우, 상기 고정카메라에 연관된 상기 거리 룩업 테이블을 생성 및 저장하는 단계를 더 포함할 수 있다. 그리고 상기 거리 룩업 테이블을 생성하는 단계는, 상기 고정카메라의 화각, 상기 고정카메라와 피사체까지의 거리인 상기 객체거리, 및 상기 객체거리에서의 미터당 화소 길이값을 이용하여, 상기 객체거리에서의 미터폭당 픽셀수를 계산하는 단계; 및 상기 미터폭당 픽셀수를 상기 거리 룩업 테이블에 저장하는 단계를 포함할 수 있다. At this time, before the first acquisition step, the wide-angle image processing apparatus confirms whether the distance lookup table associated with the fixed camera exists or not. And the step of generating and storing the distance lookup table associated with the fixed camera when the wide-angle image processing apparatus determines that the distance look-up table does not exist. Wherein the step of generating the distance lookup table comprises the steps of: using a view angle of the fixed camera, the object distance being a distance from the fixed camera to a subject, and a pixel length value per meter in the object distance, Calculating a number of pixels per pixel; And storing the number of pixels per meter-width in the distance look-up table.

이때, 상기 객체거리는, 상기 미터폭당 픽셀수인 상기 근사폭을 계산할 때에 사용된 거리값일 수 있다.In this case, the object distance may be a distance value used when calculating the approximate width, which is the number of pixels per meter-width.

이때, 상기 제2획득단계 이전에, 상기 광각영상처리장치가, 상기 고정카메라에 연관된 상기 초점 룩업 테이블의 존재 여부를 확인하는 단계; 및 상기 초점 룩업 테이블이 존재하지 않는 것으로 판단된 경우, 상기 초점 룩업 테이블을 생성 및 저장하는 단계를 더 포함하며, 상기 초점 룩업 테이블을 생성하는 단계는, N*N의 형태를 가지며 미리 결정된 넓이를 갖는 오브젝트인 체스보드(chessboard)를 이용하여 상기 PTZ 카메라로부터 상기 체스보드의 격자간격으로 상기 객체의 얼굴 영상을 추출하기 위한 줌값과 초점거리를 계산하는 단계; 및 상기 격자간격의 거리값에 대한 상기 줌값과 초점거리를 상기 초점 룩업 테이블에 저장하는 단계를 포함할 수 있다.At this time, before the second acquisition step, the wide-angle image processing apparatus confirms whether the focus look-up table associated with the fixed camera exists or not. And generating and storing the focus lookup table if it is determined that the focus lookup table does not exist, wherein the step of generating the focus lookup table comprises the steps of: Calculating a zoom value and a focal length for extracting a face image of the object from the PTZ camera at a lattice spacing of the chessboard using a chessboard as an object having the chessboard; And storing the zoom value and the focal length of the distance value of the grating interval in the focus lookup table.

본 발명의 일 관점에 따라 촬영방향과 촬영배율이 고정된 고정카메라가 출력하는 이미지를 획득하고, 상기 획득한 이미지를 이용하여 PTZ 카메라의 동작을 제어하도록 되어 있는 광각영상처리장치를 제공할 수 있다. 상기 광각영상처리장치는, 복수 개의 이미지 획득 시점들 각각마다, 상기 고정카메라로부터 전송된 이미지에 포함된 제1객체를 검출하고, 상기 이미지 내에서 상기 검출된 제1객체가 차지하는 영역의 중심점 위치값(x, y)을 상기 이미지 획득 시점에 대응시켜 저장하는 저장단계; 연속된 N개의 상기 이미지 획득 시점들 각각에 대하여, 상기 제1객체가 차지하는 영역의 가로폭에 가장 근접한 값인 근사폭을 미리 제공된 거리 룩업 테이블로부터 획득하고, 상기 고정카메라로부터 상기 제1객체까지의 거리를 나타내는 객체거리로서 상기 근사폭에 대응하는 상기 객체거리를 상기 거리 룩업 테이블로부터 획득하는 제1획득단계; 상기 N개의 이미지 획득 시점들에 대하여 획득한 N개의 상기 객체거리들 및 상기 N개의 이미지 획득 시점들을 이용하여 상기 제1객체의 이동속도를 계산하는 계산단계; 상기 제1객체의 이동속도를 이용하여 상기 PTZ 카메라의 회전속도값을 산출하는 산출단계; 및 상기 PTZ 회전속도값을 상기 PTZ 카메라에 제어값으로서 제공하는 제1제공단계를 실행하도록 되어 있을 수 있다.It is possible to provide a wide-angle image processing apparatus that obtains an image output from a fixed camera having a fixed photographing direction and a photographing magnification fixed according to an aspect of the present invention and controls the operation of the PTZ camera using the obtained image . The wide-angle image processing apparatus according to claim 1, wherein the wide-angle image processing apparatus detects a first object included in an image transmitted from the fixed camera for each of a plurality of image acquiring time points, (x, y) corresponding to the image acquisition time; Acquiring, for each of the N consecutive N image acquiring time points, an approximate width that is a value closest to a width of an area occupied by the first object, from a previously provided distance lookup table; and determining a distance from the fixed camera to the first object Acquiring the object distance corresponding to the approximate width as the object distance from the distance lookup table; Calculating a moving speed of the first object using the N object acquisitions for the N image acquiring times and the N image acquiring times; A calculating step of calculating a rotational speed value of the PTZ camera using the moving speed of the first object; And a first providing step of providing the PTZ rotational speed value as a control value to the PTZ camera.

이때, 상기 PTZ 카메라를 위한 N개의 초점거리들을 미리 제공된 초점 룩업 테이블로부터 획득하는 초점거리 획득단계로서, 상기 N개의 초점거리들은 각각 상기 N개의 상기 객체거리에 대응하는 값인, 제2획득단계; 및 상기 N개의 초점거리를 상기 PTZ 카메라에게 상기 제어값으로서 제공하는 제2제공단계를 더 수행하도록 되어 있을 수 있다.Acquiring N focal lengths for the PTZ camera from a previously provided focus lookup table, wherein the N focal lengths are values corresponding to the N object distances, respectively; And a second providing step of providing the N focal lengths as the control value to the PTZ camera.

이때, 상기 고정카메라를 포함할 수 있다.At this time, the fixed camera may be included.

본 발명에 따르면, PTZ 카메라 제어방법을 통해 회전 속도를 제어함으로써 영상의 번짐 형상을 해결할 수 있다.According to the present invention, the blur shape of an image can be solved by controlling the rotation speed through a PTZ camera control method.

도 1은 본 발명의 일 실시예에 따른 광각영상처리장치에서, PTZ 카메라를 제어하기 위한 제어값을 생성하는 방법을 설명하기 위한 순서도를 나타낸 것이다.
도 2는 본 발명의 일 실시예에 따라 객체의 위치에 따른 미터당 화소 수를 설명하기 위한 도면이다.
도 3은 본 발명의 일 실시예에 따라 미터폭당 픽셀 수를 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시예에 따라 단계(S40) 및 단계(S50)를 구체적으로 설명하기 위한 도면이다.
도 5는 본발명의 일 실시예에 따른 광각영상처리장치를 설명하기 위한 도면이다.
FIG. 1 is a flowchart illustrating a method of generating a control value for controlling a PTZ camera in a wide-angle image processing apparatus according to an exemplary embodiment of the present invention. Referring to FIG.
2 is a view for explaining the number of pixels per meter according to the position of an object according to an embodiment of the present invention.
3 is a view for explaining the number of pixels per meter-width according to an embodiment of the present invention.
4 is a diagram for explaining step S40 and step S50 according to an embodiment of the present invention.
5 is a view for explaining a wide-angle image processing apparatus according to an embodiment of the present invention.

이하, 본 발명의 실시예를 첨부한 도면을 참고하여 설명한다. 그러나 본 발명은 본 명세서에서 설명하는 실시예에 한정되지 않으며 여러 가지 다른 형태로 구현될 수 있다. 본 명세서에서 사용되는 용어는 실시예의 이해를 돕기 위한 것이며, 본 발명의 범위를 한정하고자 의도된 것이 아니다. 또한, 이하에서 사용되는 단수 형태들은 문구들이 이와 명백히 반대의 의미를 나타내지 않는 한 복수 형태들도 포함한다.Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention is not limited to the embodiments described herein, but may be implemented in various other forms. The terminology used herein is for the purpose of understanding the embodiments and is not intended to limit the scope of the present invention. Also, the singular forms as used below include plural forms unless the phrases expressly have the opposite meaning.

본 발명의 일 실시예에 따른 얼굴인식시스템은, 한 개 이상의 PTZ 카메라 및 한 개의 고정카메라 및 이들로부터 정보를 수신하고, 이들에게 명령을 내릴 수 있는 처리장치를 포함할 수 있다. 상기 고정카메라는 촬영방향, 줌 배율 등이 특정 값으로 고정되어 있는 것일 수 있다. 상기 처리장치를 포함하는 장치를, 이하, 광각영상처리장치라고 지칭할 수도 있다.A face recognition system according to an embodiment of the present invention may include one or more PTZ cameras and one fixed camera, and a processing device capable of receiving information from them and commanding them. The fixed camera may have the photographing direction, the zoom magnification, etc. fixed to a specific value. An apparatus including the above processing apparatus may be referred to as a wide-angle image processing apparatus.

도 1은 본 발명의 일 실시예에 따른 광각영상처리장치에서, PTZ 카메라를 제어하기 위한 제어값을 생성하는 방법을 설명하기 위한 순서도를 나타낸 것이다.FIG. 1 is a flowchart illustrating a method of generating a control value for controlling a PTZ camera in a wide-angle image processing apparatus according to an exemplary embodiment of the present invention. Referring to FIG.

단계(S10)에서, 광각영상처리장치가 고정카메라를 통해 획득한 제1영상에 대한 거리 룩업 테이블(distance lookup table)이 존재하는지 여부 및 상기 거리 룩업 테이블에 접근할 수 있는지 여부를 확인할 수 있다.In step S10, the wide-angle image processing apparatus can check whether a distance lookup table exists for the first image acquired through the fixed camera and whether the distance lookup table can be accessed.

상기 거리 룩업 테이블은 특정 고정카메라에 매칭되어 생성되어 있을 수 있다. 상기 거리 룩업 테이블은 고정카메라에서 촬영된 영상 또는 이미지에 대한 가로폭에 관한 값을 갖는 가로길이 필드 및 상기 영상 또는 이미지에 존재하는 객체와 상기 고정카메라까지의 거리를 나타내는 피사체 객체거리 필드를 포함할 수 있다. 이하 본 명세서에서 객체와 상기 고정카메라까지의 거리를 다른 거리와 구분하기 위해 단순히 객체거리라고 지칭할 수 있다.The distance lookup table may be generated by matching a specific fixed camera. The distance lookup table includes a horizontal length field having a value relating to a horizontal width of an image or an image photographed by a fixed camera, and a subject object distance field indicating a distance between the object existing in the image or the image and the fixed camera . Hereinafter, the distances to the fixed camera and the object may be referred to simply as object distances in order to distinguish them from other distances.

예컨대, 일정한 폭을 갖는 객체가 상기 영상 또는 이미지에서 차지하는 가로폭은 상기 객체과 상기 고정카메라까지의 객체거리에 따라 달라질 수 있다. 일정한 폭을 갖는 객체에 대하여 상기 객체거리가 멀어질수록 상기 가로폭은 감소할 것이다.For example, the horizontal width occupied by the object having the predetermined width in the image or the image may be changed according to the object distance from the object to the fixed camera. As the object distance increases for the object having a constant width, the width will decrease.

또한 후술하겠지만, 상기 거리 룩업 테이블에는 미터폭당 픽셀 수(δ)(pixel/m)를 나타내는 필드가 제공될 수 있다.As will also be described later, the distance lookup table may be provided with a field indicating the number of pixels per pixel (delta) (pixel / m).

단계(S20)에서, 상기 광각영상처리장치가 상기 거리 룩업 테이블이 존재하며 접근할 수 있는 경우, 상기 광각영상처리장치는 상기 획득한 제1영상에 대하여 초점 룩업 테이블(focus lookup table)이 존재하는지 여부 및 상기 초점 룩업 테이블에 접근할 수 있는지 여부를 확인할 수 있다.In step S20, if the wide-angle image processing apparatus has the distance look-up table and is accessible, the wide-angle image processing apparatus determines whether a focus lookup table exists for the acquired first image And whether or not the focus lookup table can be accessed.

상기 초점 룩업 테이블은 고정카메라에서 촬영된 영상 또는 이미지에 존재하는 객체와 상기 고정카메라 간의 객체거리를 나타내는 객체거리 필드 및 상기 객체거리마다 결정되는 상기 고정카메라의 초점거리를 나타내는 초점객체거리 필드를, 및 상기 객체거리마다 최적화된 줌 값을 나타내는 줌 값 필드를 포함할 수 있다.Wherein the focus lookup table comprises an object distance field indicating an object distance between an object existing in an image or an image photographed by a fixed camera and the fixed camera and a focus object distance field indicating a focal distance of the fixed camera determined for each object distance , And a zoom value field indicating an optimized zoom value for each object distance.

단계(S30)에서, 상기 광각영상처리장치가 상기 거리 룩업 테이블 및 상기 초점 룩업 테이블에 접근할 수 있는 경우, 상기 광각영상처리장치는 상기 획득한 제1영상에 포함된 제1객체를 검출할 수 있다. 상기 제1객체는, 예컨대, 사람의 전신형상을 의미할 수 있다.In step S30, if the wide-angle image processing apparatus can access the distance look-up table and the focus look-up table, the wide-angle image processing apparatus can detect the first object included in the acquired first image have. The first object may mean, for example, the whole body shape of a person.

단계(S40)에서, 상기 광각영상처리장치는, 미리 결정된 시점마다, 상기 제1객체의 위치를 대표하는 중심점 위치값(x, y)과 해당 시점에 대한 값을 배열에 저장할 수 있다. 이때, 상기 시점에 대한 값은 밀리초(millisecond) 단위로 저장될 수 있다. In step S40, the wide-angle image processing apparatus may store the center point position value (x, y) representing the position of the first object and the value for the time point in the array at predetermined time points. At this time, the value for the time may be stored in milliseconds.

예컨대, 제1시각(t1)에서 검출한 상기 제1객체의 중심점 위치값인 제1위치값(x1, y1)은 제1배열의 제1요소에 저장하고, 상기 제1시각보다 수 ms 늦은 제2시각(t2)에서 검출한 상기 제1객체의 중심점 위치값인 제2위치값(x2, y2)은 상기 제1배열의 제2요소에 저장하고, 상기 제2시각보다 수 ms 늦은 제3시각(t3)에서 검출한 상기 제1객체의 중심점 위치값인 제3위치값(x3, y3)은 상기 제1배열의 제3요소에 저장하고, 상기 제3시각보다 수 ms 늦은 제4시각(t4)에서 검출한 상기 제1객체의 중심점 위치값인 제4위치값(x4, y4)은 상기 제1배열의 제4요소에 저장하고, 상기 제4시각보다 수 ms 늦은 제5시각(t5)에서 검출한 상기 제1객체의 중심점 위치값인 제5위치값(x5, y5)은 상기 제1배열의 제5요소에 저장할 수 있다.For example, the first position value (x1, y1), which is the center position value of the first object detected at the first time (t1), is stored in the first element of the first arrangement, The second position value (x2, y2), which is the center point position value of the first object detected at time t2, is stored in the second element of the first array, and the third position (x3, y3), which is a center position value of the first object detected at time t3, is stored in a third element of the first array, and a fourth time t4 (X4, y4), which is the center position of the first object, detected in the first array is stored in the fourth element of the first array, and at a fifth time (t5) several ms later than the fourth time The detected fifth position value (x5, y5), which is the center position of the first object, may be stored in the fifth element of the first array.

단계(S50)에서, 상기 제1배열에 저장된 상기 중심점 위치값의 개수가 미리 결정된 개수(예컨대, 5개)에 도달한 경우, 상기 광각영상처리장치는 각 해당 시점(ex: t1, t2, t3, t4, t5)에 대하여 상기 제1객체가 상기 제1영상에서 차지하는 영역으로서 직사각형 모양으로 정의된 제1영역의 가로폭(w)을 산출할 수 있다. 상기 가로폭은 상기 제1영상을 구성하는 픽셀들 중 상기 제1영역이 차지하는 픽셀들의 가로 세로 개수를 이용하여 산출할 수 있다. When the number of the center point position values stored in the first arrangement reaches a predetermined number (for example, five) in step S50, the wide-angle image processing apparatus outputs the corresponding point of time (ex: t1, t2, t3 , t4, t5) of the first area defined by the first object as a rectangular area occupied by the first image. The horizontal width may be calculated using the horizontal and vertical number of pixels occupied by the first area among the pixels constituting the first image.

이때, 예컨대 촬영된 제1영상에서 얼굴이 식별가능한 자세로 서 있는 상기 제1객체를 나타내는 사람의 어깨 넓이를 40cm로 가정하여, 상기 산출된 가로폭에 2.5를 곱하여 상기 가로폭의 값을 1m 기준으로 보정할 수도 있다.At this time, assuming that the shoulder width of the person representing the first object standing in a posture in which the face is recognizable in the photographed first image is assumed to be 40 cm, the calculated width is multiplied by 2.5, .

그 다음, 상기 광각영상처리장치는, 상기 가로폭에 가장 근접한 폭(δc)인 근사폭(δc1)을 미리 생성된 상기 거리 룩업 테이블의 가로길이 필드로부터 찾아낼 수 있다. Next, the wide-angle image processing apparatus can find an approximate width (delta c1), which is the width (delta c) closest to the horizontal width, from the width field of the generated distance lookup table.

그 다음, 상기 광각영상처리장치는, 미리 생성된 상기 거리 룩업 테이블의 피사체 객체거리 필드로부터, 상기 근사폭(δc1)에 대응하는 거리값을 찾아낼 수 있다. 상기 거리값은 상기 고정카메라로부터 상기 제1객체까지의 객체거리를 나타내는 값이다.  Then, the wide-angle image processing apparatus can find a distance value corresponding to the approximate width (delta c1) from the object object distance field of the distance lookup table generated in advance. The distance value is a value indicating an object distance from the fixed camera to the first object.

즉, 거리 룩업 테이블과 촬영된 상기 제1영상을 이용하여, 상기 연속되는 5개의 시점(ex: t1, t2, t3, t4, t5)에 있어서의 상기 제1객체와 상기 고정카메라 사이의객체거리를 결정할 수 있다. 이하 상기 5개의 객체거리값을 제1객체거리값(d1), 제2객체거리값(d2), 제3객체거리값(d3), 제4객체거리값(d4), 및 제5객체거리값(d5)으로 지칭할 수 있다.That is, the object distance between the first object and the fixed camera at the consecutive five viewpoints (ex: t1, t2, t3, t4, t5) using the distance lookup table and the captured first image Can be determined. Hereinafter, the five object distance values are referred to as a first object distance value d1, a second object distance value d2, a third object distance value d3, a fourth object distance value d4, (d5).

단계(S60)에서, 상기 광각영상처리장치는, 상기 각 해당 시점(ex: t1, t2, t3, t4, t5)에 대하여 계산된 상기 미리 결정된 개수(예컨대, 5개)의 상기 객체거리들(distance)을 이용하여 상기 제1객체의 이동속도(speed(m/s))를 계산할 수 있다. 예컨대, 상기 이동속도를 구하는 식은 아래의 수식 1과 같을 수 있다.In step S60, the wide-angle image processing apparatus calculates the predetermined number (e.g., five) of the object distances (e.g., t1, t2, t3, t4, (m / s) of the first object can be calculated using the distance (distance). For example, the equation for obtaining the moving speed may be expressed by Equation 1 below.

[수식 1][Equation 1]

Figure pat00001
Figure pat00001

여기서, 상기 speed는 상기 제1객체의 이동속도,Here, the speed is a moving speed of the first object,

상기 time i 는 영상의 촬영시점으로서 인덱스 i로 식별되는 시점,The time i is a time point at which the image is photographed and identified as an index i,

상기 distance i 는 상기 제1객체와 상기 고정카메라 간의 객체거리로서, 인덱스 i로 식별되는 시점에서의 거리.The distance i is an object distance between the first object and the fixed camera, and is a distance from a point identified by the index i.

단계(S70)에서, 상기 광각영상처리장치는, 상기 객체의 이동속도를 이용하여 PTZ 회전속도값(rotation speed(deg/s))을 계산할 수 있다. 예컨대, 상기 PTZ 회전속도값을 구하는 식은 아래의 수식 2와 같을 수 있다.In step S70, the wide-angle image processing apparatus may calculate the PTZ rotation speed value (deg / s) using the moving speed of the object. For example, the equation for obtaining the PTZ rotational speed value may be as shown in the following equation (2).

[수식 2][Equation 2]

Figure pat00002
Figure pat00002

단계(S80)에서, 상기 광각영상처리장치는, 상기 획득한 거리값들을 미리 생성된 상기 초점 룩업 테이블에서 찾아 상기 객체거리(d1~d5)들에 대응하는 초점거리들을 획득할 수 있다.In step S80, the wide-angle image processing apparatus may obtain the distance values corresponding to the object distances d1 to d5 by searching the generated focus distance look-up table.

이후, 상기 광각영상처리장치는 상기 PTZ 회전속도값과 상기 초점거리들을 PTZ 카메라에 제공할 수 있다.Then, the wide-angle image processing apparatus may provide the PTZ rotation speed value and the focal distances to the PTZ camera.

도 2는 본 발명의 일 실시예에 따라 객체의 위치에 따른 미터당 화소 수(픽셀 수)를 설명하기 위한 도면이다.2 is a view for explaining the number of pixels (number of pixels) per meter according to the position of an object according to an embodiment of the present invention.

도 3은 본 발명의 일 실시예에 따라 미터당 화소 수를 설명하기 위한 도면이다. 도 3은 예컨대, 3m거리에서의 미터당 화소 수를 설명하기 위한 도면이다.3 is a view for explaining the number of pixels per meter according to an embodiment of the present invention. 3 is a diagram for explaining the number of pixels per meter at a distance of 3 m, for example.

이하, 도 2 내지 도 3을 함께 참조하여 설명한다.Hereinafter, description will be made with reference to FIGS. 2 to 3 together.

상기 거리 룩업 테이블은 상술한 단계(S10)에서, 존재하지 않는다고 판단된 경우 새롭게 생성되어 저장될 수 있다. 상기 거리 룩업 테이블은 고정카메라에 대응하여 저장되어 있을 수 있다.The distance lookup table may be newly generated and stored if it is determined that the distance lookup table does not exist in step S10. The distance lookup table may be stored corresponding to the fixed camera.

상기 거리 룩업 테이블에는, 특정 객체거리에 대하여, 미터폭당 픽셀 수(δ)(pixel/m)를 나타내는 필드가 제공될 수 있다. The distance lookup table may be provided with a field indicating the number of pixels per pixel (delta) (pixel / m) for a specific object distance.

본 발명의 일 실시예에서, 상기 특정 객체거리는 고정카메라로부터 객체까지의 연장한 반경직선의 길이를 나타내고, 상기 미터폭당 픽셀 수의 '미터폭'은 상기 객체를 중심으로 상기 반경직선에 수직인 수평선의 1미터를 나타내는 것일 수 있다. 따라서 상기 미터폭당 픽셀 수는, 해당 객체거리에 존재하는 1미터의 공간에 몇 개의 픽셀이 들어가는지를 나타내는 것일 수 있다. 즉, 상기 미터폭당 픽셀 수는 해당 반경 거리(즉, 상기 객체거리)에 존재하는 객체의 위치에서 1미터 수평선이 몇 개의 픽셀을 포함하는지를 나타내는 것일 수 있다.In one embodiment of the present invention, the specific object distance represents the length of an extended radius line from the fixed camera to the object, and the 'meter width' of the number of pixels per meter-width is the horizontal line Lt; RTI ID = 0.0 > 1 < / RTI > Therefore, the number of pixels per meter-meter may indicate how many pixels are contained in a space of 1 meter existing in the object distance. That is, the number of pixels per meter-meter may indicate how many pixels a one meter horizontal line contains at the location of an object that exists at the corresponding radial distance (i.e., the object distance).

특정 객체거리에 대한 미터폭당 픽셀 수(δ)는 상기 고정카메라의 화각(AoV, Angle of View)과 영상의 해상도에 따라 다를 수 있다.The number of pixels per meter-meter (?) Of a specific object distance may be different according to the angle of view (AoV, Angle of View) of the fixed camera and the resolution of the image.

상기 미터폭당 픽셀 수(δ)는, 상기 고정카메라의 화각(AoV), 상기 고정카메라와 객체까지의 객체거리(distance), 및 상기 고정카메라 해상도의 가로길이 픽셀 길이(pixel length)인 파라미터들을 이용하여 계산할 수 있다. 이때, 상기 고정카메라(21)가 설치된 위치에서 객체거리마다 미터폭당 픽셀 수(pixel/m)를 계산할 수 있다.Wherein the number of pixels per meter width is determined by using parameters such as an angle of view (AoV) of the fixed camera, an object distance to the fixed camera and an object, and a pixel length of the fixed camera resolution . At this time, the number of pixels per pixel (pixel / m) can be calculated for each object distance at the position where the fixed camera 21 is installed.

상기 고정카메라(21)로부터 획득한 영상이미지(1)는 복수 개의 행렬형태의 영역(또는 그리드)으로 구획될 수 있다. 예컨대, 영상이미지(1)에 걸쳐 m*n의 그리드(grid)를 생성할 수 있다. The image 1 obtained from the fixed camera 21 may be divided into a plurality of matrix-shaped regions (or grids). For example, a grid of m * n may be generated over the image image 1.

이때, 고정된 가로값을 갖는 객체(10)가 1m의 객체거리에 위치한 경우, 객체(10)를 나타내는 픽셀들이 이미지 내에서 차지하는 영역의 가로 길이값은 a1일 수 있다. 객체(10)가 2m 객체거리에 위치한 경우, 객체(10)를 나타내는 픽셀들이 이미지 내에서 차지하는 영역의 가로 길이값은 a2일 수 있다. 객체(10)가 3m 객체거리에 위치한 경우, 객체(10)를 나타내는 픽셀들이 이미지 내에서 차지하는 영역의 가로 길이값은 a3일 수 있다.In this case, when the object 10 having the fixed horizontal value is located at the object distance of 1 m, the horizontal length value of the area occupied by the pixels representing the object 10 in the image may be a1. If the object 10 is located at a distance of 2m objects, the width value of the area occupied by the pixels representing the object 10 in the image may be a2. When the object 10 is located at a distance of 3 m, the width value of the area occupied by the pixels representing the object 10 in the image may be a 3.

상기 객체가 사람인 경우, 사람의 평균적인 어깨 너비가 약 45cm 정도라고 가정하면, 상기 객체거리가 1m인 지점에 사람이 위치한 경우 사람이 이미지 내에서 차지하는 영역의 가로 길이가 예컨대 상기 a1에 근접하고, 상기 객체거리가 2m에 사람이 위치한 경우 사람이 이미지 내에서 차지하는 영역의 가로 길이가 예컨대 상기 a2에 근접할 수 있다. 사람이 서있는 방향 및 카메라 촬영 각도 등에 따라 상기 a1 및 a2의 값은 변경될 수 있다.If the object is a person, it is assumed that the average shoulder width of a person is about 45 cm. If a person is located at a point where the object distance is 1 m, the width of the area occupied by the person in the image is, If the object distance is 2 m, the width of the area occupied by the person in the image may be close to, for example, a2. The values of a1 and a2 may be changed according to the direction in which the person stands and the camera photographing angle.

도 2에서는 설명의 편의를 위하여 객체가 3m의 객체거리에 위치한 경우까지만 예로 들었으나, 최적의 실시예에서는 1m간격으로 1m부터 15m 거리까지 각각의 객체의 길이값을 계산할 수 있다.In FIG. 2, for convenience of description, the object is only located at a distance of 3 m. However, in the preferred embodiment, the length of each object can be calculated from 1 m to 15 m at intervals of 1 m.

객체(10)로부터 고정카메라(21)까지의 객체거리에 따라 각 픽셀이 커버하는 화각(θ)과 각 픽셀이 나타내는 실제 공간거리값(a)이 달라질 수 있다. 예컨대, 객체(10)가 고정카메라(21)로부터 3m의 객체 거리에 위치한 경우, 각 픽셀이 나타내는 화각은 θ3 이며, 각 픽셀이 나타내는 실제 공간거리값(a)은 a3일 수 있다.The angle of view? Covered by each pixel and the actual spatial distance value a indicated by each pixel may vary depending on the object distance from the object 10 to the fixed camera 21. For example, when the object 10 is located at an object distance of 3 m from the fixed camera 21, the angle of view represented by each pixel is? 3, and the actual spatial distance value a indicated by each pixel may be a3.

고정 카메라의 화각(AoV), 객체거리(m)(distance), 및 상기 객체거리에서의 각 픽셀의 공간거리값(a)(pixel length)을 아래의 수식 3에 적용함으로써, 해당 객체길이 위치에서의 미터폭당 픽셀 수(δ)를 계산할 수 있다.By applying the angle of view (AoV), the object distance (m) of the fixed camera, and the spatial distance a (pixel length) of each pixel in the object distance to the following equation 3, The number of pixels per meter width? Can be calculated.

[수식 3][Equation 3]

Figure pat00003
Figure pat00003

상기 픽셀길이는 고정카메라가 출력하는 이미지의 가로길이를 나타낸다. 예컨대 고정카메라가 1920*1080의 이미지를 출력하는 경우, 상기 픽셀길이는 1920px이다. 그리고 상기 고정카메라가 출력하는 이미지의 상기 가로길이가 실세계에서 몇 미터에 대응하는지를 계산하는 방법은 [수식 3]의 tan(AoV/2)*2 *distance 에 의해 이해될 수 있다. [수식 3]에서는 출력하는 이미지의 가로길이 실세계의 가로방향 미터값으로 나누어준다. 따라서 [수식 3]을 이용하면 실세계에서의 가로 1미터가 영상에서 몇 픽셀인지 구할 수 있다.The pixel length represents the width of the image output by the fixed camera. For example, when the fixed camera outputs an image of 1920 * 1080, the pixel length is 1920px. A method of calculating how many meters in the real world the transverse length of an image outputted by the fixed camera corresponds to can be understood by tan (AoV / 2) * 2 * distance in [Expression 3]. [Equation 3] divides the output image by the horizontal direction meter value of the real world. Therefore, by using [Equation 3], it is possible to find the number of pixels in the image 1 meter in the real world.

한편, 상술한 단계(S20)에서, 획득한 영상에 대하여 초점 룩업 테이블(focus lookup table)이 존재하지 않는다고 판단된 경우, 초점 룩업 테이블을 생성 및 저장할 수 있다. 이때, 초점 룩업 테이블에는 객체의 최적의 줌값과 초점거리가 저장될 수 있다.Meanwhile, if it is determined in step S20 that a focus lookup table does not exist for the acquired image, the focus lookup table may be generated and stored. At this time, the optimum zoom value and focal length of the object can be stored in the focus lookup table.

이때, N*N(예컨대, 50cm*50cm)의 미리 결정된 넓이의 체스보드(chessboard)를 이용하여 상기 PTZ 카메라로부터 상기 N(50cm) 간격으로 객체의 얼굴 영상을 추출하기 위한 최적의 줌값과 초점거리를 계산할 수 있다. At this time, the optimum zoom value and the focal length for extracting the face image of the object at intervals of N (50 cm) from the PTZ camera using a predetermined chessboard of N * N (for example, 50 cm * 50 cm) Can be calculated.

도 4는 본 발명의 일 실시예에 따라 단계(S40) 및 단계(S50)를 구체적으로 설명하기 위한 도면이다.4 is a diagram for explaining step S40 and step S50 according to an embodiment of the present invention.

상기 광각영상처리장치는, 상기 고정카메라로부터 획득한 영상이미지(1)를 이용하여, 미리 결정된 시점마다, 상기 객체(10)의 중심점(12)의 위치값(x, y)과 해당 시각을 나타내는 값을 배열에 저장할 수 있다. (X, y) of the center point (12) of the object (10) and the corresponding time at a predetermined point in time using the image image (1) acquired from the fixed camera You can store the value in an array.

상기 배열에 저장된 상기 중심점 위치값의 개수가 미리 결정된 개수(예컨대, 5개)에 도달한 경우, 상기 객체(10)가 차지하는 영역(11)의 가로폭(w)에 2.5를 곱한 값에 가장 유사하게 매칭되는 값인 근사폭(δc1)을 상기 거리 룩업 테이블의 가로길이 필드로부터 찾아낼 수 있다. (W) of the area 11 occupied by the object 10 is multiplied by 2.5 when the number of the center point position values stored in the array reaches a predetermined number (for example, five) An approximate width delta c1 that is a value matched to the length of the distance lookup table can be found from the width field of the distance lookup table.

그 다음, 상기 찾아낸 근사폭(δc1)에 대응되는 객체거리인 제1객체거리를 상기 거리 룩업 테이블의 피사체 객체거리 필드로부터 획득할 수 있다. Next, a first object distance, which is an object distance corresponding to the found approximate width? C1, can be obtained from the object object distance field of the distance lookup table.

도 5는 본발명의 일 실시예에 따른 광각영상처리장치를 설명하기 위한 도면이다.5 is a view for explaining a wide-angle image processing apparatus according to an embodiment of the present invention.

광각영상처리장치(20)는 PTZ 카메라(30)를 제어하기 위한 회전속도값과 초점거리를 생성하여 상기 PTZ 카메라(30)에 제공할 수 있다. The wide-angle image processing apparatus 20 can generate a rotation speed value and a focal distance for controlling the PTZ camera 30 and provide the rotation speed value and the focal distance to the PTZ camera 30.

그리고 광각영상처리장치(20)는 고정카메라(21)로부터 출력되는 정보를 획득할 수 있다. Then, the wide-angle image processing apparatus 20 can acquire information output from the fixed camera 21.

그리고 광각영상처리장치(20)는 상기 고정카메라(21)를 이용하여 획득한 영상에 대하여 객체(인식대상)를 검출하는 단계, 미리 결정된 시점마다, 상기 객체의 중심점 위치값(x, y)과 해당 시점에 대한 값을 배열에 저장하는 단계, 상기 배열에 저장된 상기 중심점 위치값의 개수가 미리 결정된 개수에 도달한 경우, 상기 객체의 영역의 가로길이에 관한 값과 가장 근접한 값을 미리 생성된 '거리 룩업 테이블'에서 찾아 상기 근접한 값에 대한 거리값을 획득하는 단계, 상기 각 해당 시점에 대하여 계산된 상기 미리 결정된 개수의 상기 거리값들을 이용하여 상기 객체의 이동속도를 계산하는 단계, 상기 객체의 이동속도를 이용하여 PTZ 회전속도값을 계산하는 단계, 상기 획득한 거리값들을 미리 생성된 '초점 룩업 테이블'에서 찾아 상기 거리값들에 대응하는 초점거리들을 획득하는 단계, 및 상기 PTZ 회전속도값 및 상기 초점거리를 상기 PTZ 카메라(30)에 제어값으로 제공하는 단계를 실행하도록 되어 있을 수 있다.The wide-angle image processing apparatus 20 includes a step of detecting an object (an object to be recognized) with respect to an image acquired using the fixed camera 21, a step of detecting an object center point position value (x, y) Storing a value for a corresponding time point in an array, and when a number of the center point position values stored in the array reaches a predetermined number, Calculating a moving speed of the object using the predetermined number of distance values calculated for each corresponding time point, calculating a moving speed of the object using the distance values calculated for each corresponding time point, Calculating a PTZ rotation speed value using the movement speed, searching the obtained distance values in a previously generated 'focus lookup table' Obtaining the focal distances, and providing the PTZ rotational speed value and the focal distance as control values to the PTZ camera 30. [

상술한 본 발명의 실시예들을 이용하여, 본 발명의 기술 분야에 속하는 자들은 본 발명의 본질적인 특성에서 벗어나지 않는 범위 내에 다양한 변경 및 수정을 용이하게 실시할 수 있을 것이다. 특허청구범위의 각 청구항의 내용은 본 명세서를 통해 이해할 수 있는 범위 내에서 인용관계가 없는 다른 청구항에 결합될 수 있다.It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the essential characteristics thereof. The contents of each claim in the claims may be combined with other claims without departing from the scope of the claims.

Claims (8)

촬영방향과 촬영배율이 고정된 고정카메라가 출력하는 이미지를 획득하고, 상기 획득한 이미지를 이용하여 PTZ 카메라의 동작을 제어하도록 되어 있는 광각영상처리장치에서, 상기 PTZ 카메라를 제어하기 위한 제어값을 생성하는 방법으로서,
상기 광각영상처리장치가, 복수 개의 이미지 획득 시점들 각각마다, 상기 고정카메라로부터 전송된 이미지에 포함된 제1객체를 검출하고, 상기 이미지 내에서 상기 검출된 제1객체가 차지하는 영역의 중심점 위치값(x, y)을 상기 이미지 획득 시점에 대응시켜 저장하는 저장단계;
상기 광각영상처리장치가, 연속된 N개의 상기 이미지 획득 시점들 각각에 대하여, 상기 제1객체가 차지하는 영역의 가로폭에 가장 근접한 값인 근사폭을 미리 제공된 거리 룩업 테이블로부터 획득하고, 상기 고정카메라로부터 상기 제1객체까지의 거리를 나타내는 객체거리로서 상기 근사폭에 대응하는 상기 객체거리를 상기 거리 룩업 테이블로부터 획득하는 제1획득단계;
상기 광각영상처리장치가, 상기 N개의 이미지 획득 시점들에 대하여 획득한 N개의 상기 객체거리들 및 상기 N개의 이미지 획득 시점들을 이용하여 상기 제1객체의 이동속도를 계산하는 계산단계;
상기 광각영상처리장치가, 상기 제1객체의 이동속도를 이용하여 상기 PTZ 카메라의 회전속도값을 산출하는 산출단계; 및
상기 광각영상처리장치가, 상기 PTZ 회전속도값을 상기 PTZ 카메라에 상기 제어값으로서 제공하는 제1제공단계;
를 포함하는,
PTZ 카메라 제어방법.
A wide-angle image processing apparatus for acquiring an image output from a fixed camera having a fixed photographing direction and a photographing magnification and controlling an operation of the PTZ camera using the obtained image, As a method of generating,
The wide-angle image processing apparatus according to claim 1, wherein the wide-angle image processing apparatus detects a first object included in an image transmitted from the fixed camera for each of a plurality of image acquiring time points, (x, y) corresponding to the image acquisition time;
Wherein the wide-angle image processing apparatus obtains, for each of the N consecutive image acquiring time points, an approximate width that is a value closest to a horizontal width of an area occupied by the first object from a previously provided distance look-up table, A first obtaining step of obtaining the object distance corresponding to the approximate width from the distance lookup table as an object distance representing a distance to the first object;
Wherein the wide-angle image processing apparatus comprises: a calculating step of calculating a moving speed of the first object using N object distances and N image acquiring times acquired for the N image acquiring time points;
Wherein the wide-angle image processing apparatus comprises: a calculating step of calculating a rotation speed value of the PTZ camera using a moving speed of the first object; And
The wide-angle image processing apparatus comprising: a first providing step of providing the PTZ rotation speed value to the PTZ camera as the control value;
/ RTI >
PTZ camera control method.
제1항에 있어서,
상기 광각영상처리장치가, 상기 PTZ 카메라를 위한 N개의 초점거리들을 미리 제공된 초점 룩업 테이블로부터 획득하는 초점거리 획득단계로서, 상기 N개의 초점거리들은 각각 상기 N개의 상기 객체거리에 대응하는 값인, 제2획득단계; 및
상기 광각영상처리장치가, 상기 N개의 초점거리를 상기 PTZ 카메라에게 상기 제어값으로서 제공하는 제2제공단계
를 더 포함하는,
PTZ 카메라 제어방법.
The method according to claim 1,
Wherein the wide-angle image processing apparatus obtains N focal lengths for the PTZ camera from a previously provided focus-lookup table, wherein the N focal lengths are values corresponding to the N object distances, 2 acquisition phase; And
Wherein the wide-angle image processing apparatus includes a second providing step of providing the N focal lengths as the control value to the PTZ camera
≪ / RTI >
PTZ camera control method.
제1항에 있어서,
상기 제1획득단계 이전에,
상기 광각영상처리장치가, 상기 고정카메라에 연관된 상기 거리 룩업 테이블의 존재 여부를 확인하는 단계; 및
상기 광각영상처리장치가, 상기 거리 룩업 테이블이 존재하지 않는 것으로 판단된 경우, 상기 고정카메라에 연관된 상기 거리 룩업 테이블을 생성 및 저장하는 단계
를 더 포함하며,
상기 거리 룩업 테이블을 생성하는 단계는,
상기 고정카메라의 화각, 상기 고정카메라와 피사체까지의 거리인 상기 객체거리, 및 상기 객체거리에서의 미터당 화소 길이값을 이용하여, 상기 객체거리에서의 미터폭당 픽셀수를 계산하는 단계; 및
상기 미터폭당 픽셀수를 상기 거리 룩업 테이블에 저장하는 단계
를 포함하는,
PTZ 카메라 제어방법.
The method according to claim 1,
Before the first acquisition step,
Wherein the wide-angle image processing apparatus comprises: checking whether the distance look-up table associated with the fixed camera is present; And
Wherein the wide-angle image processing apparatus further comprises a step of generating and storing the distance lookup table associated with the fixed camera when it is determined that the distance lookup table does not exist
Further comprising:
Wherein the step of generating the distance look-
Calculating a number of pixels per meter-width in the object distance using the angle of view of the fixed camera, the object distance as a distance between the fixed camera and the subject, and the pixel length per meter in the object distance; And
Storing the number of pixels per meter-width in the distance look-up table
/ RTI >
PTZ camera control method.
제3항에 있어서, 상기 객체거리는, 상기 미터폭당 픽셀수인 상기 근사폭을 계산할 때에 사용된 거리값인, PTZ 카메라 제어방법.4. The method of claim 3, wherein the object distance is a distance value used when calculating the approximate width that is the number of pixels per meter-width. 제2항에 있어서,
상기 제2획득단계 이전에,
상기 광각영상처리장치가, 상기 고정카메라에 연관된 상기 초점 룩업 테이블의 존재 여부를 확인하는 단계; 및
상기 초점 룩업 테이블이 존재하지 않는 것으로 판단된 경우, 상기 초점 룩업 테이블을 생성 및 저장하는 단계
를 더 포함하며,
상기 초점 룩업 테이블을 생성하는 단계는,
N*N의 형태를 가지며 미리 결정된 넓이를 갖는 오브젝트인 체스보드를 이용하여 상기 PTZ 카메라로부터 상기 체스보드의 격자간격으로 상기 객체의 얼굴 영상을 추출하기 위한 줌값과 초점거리를 계산하는 단계; 및
상기 격자간격의 거리값에 대한 상기 줌값과 초점거리를 상기 초점 룩업 테이블에 저장하는 단계
를 포함하는,
PTZ 카메라 제어방법.
3. The method of claim 2,
Before the second acquisition step,
Wherein the wide-angle image processing apparatus comprises: checking whether the focus lookup table associated with the fixed camera is present; And
If it is determined that the focus lookup table does not exist, generating and storing the focus lookup table
Further comprising:
Wherein the generating the focus lookup table comprises:
Calculating a zoom value and a focal length for extracting a face image of the object from the PTZ camera at a lattice interval of the chess board using a chess board having an N * N shape and having a predetermined width; And
Storing the zoom value and the focal length for the distance value of the grid interval in the focus lookup table
/ RTI >
PTZ camera control method.
촬영방향과 촬영배율이 고정된 고정카메라가 출력하는 이미지를 획득하고, 상기 획득한 이미지를 이용하여 PTZ 카메라의 동작을 제어하도록 되어 있는 광각영상처리장치로서,
복수 개의 이미지 획득 시점들 각각마다, 상기 고정카메라로부터 전송된 이미지에 포함된 제1객체를 검출하고, 상기 이미지 내에서 상기 검출된 제1객체가 차지하는 영역의 중심점 위치값(x, y)을 상기 이미지 획득 시점에 대응시켜 저장하는 저장단계;
연속된 N개의 상기 이미지 획득 시점들 각각에 대하여, 상기 제1객체가 차지하는 영역의 가로폭에 가장 근접한 값인 근사폭을 미리 제공된 거리 룩업 테이블로부터 획득하고, 상기 고정카메라로부터 상기 제1객체까지의 거리를 나타내는 객체거리로서 상기 근사폭에 대응하는 상기 객체거리를 상기 거리 룩업 테이블로부터 획득하는 제1획득단계;
상기 N개의 이미지 획득 시점들에 대하여 획득한 N개의 상기 객체거리들 및 상기 N개의 이미지 획득 시점들을 이용하여 상기 제1객체의 이동속도를 계산하는 계산단계;
상기 제1객체의 이동속도를 이용하여 상기 PTZ 카메라의 회전속도값을 산출하는 산출단계; 및
상기 PTZ 회전속도값을 상기 PTZ 카메라에 제어값으로서 제공하는 제1제공단계;
를 실행하도록 되어 있는,
광각영상처리장치.
A wide-angle image processing apparatus for acquiring an image output by a fixed camera having a fixed photographing direction and a photographing magnification, and controlling an operation of the PTZ camera using the obtained image,
Detecting a first object included in an image transmitted from the fixed camera for each of a plurality of image acquiring time points and calculating a center position value (x, y) of an area occupied by the detected first object in the image, Storing the image corresponding to the image acquiring time;
Acquiring, for each of the N consecutive N image acquiring time points, an approximate width that is a value closest to a width of an area occupied by the first object, from a previously provided distance lookup table; and determining a distance from the fixed camera to the first object Acquiring the object distance corresponding to the approximate width as the object distance from the distance lookup table;
Calculating a moving speed of the first object using the N object acquisitions for the N image acquiring times and the N image acquiring times;
A calculating step of calculating a rotational speed value of the PTZ camera using the moving speed of the first object; And
A first providing step of providing the PTZ rotational speed value to the PTZ camera as a control value;
Lt; / RTI >
Wide - angle image processing device.
제6항에 있어서,
상기 PTZ 카메라를 위한 N개의 초점거리들을 미리 제공된 초점 룩업 테이블로부터 획득하는 초점거리 획득단계로서, 상기 N개의 초점거리들은 각각 상기 N개의 상기 객체거리에 대응하는 값인, 제2획득단계; 및
상기 N개의 초점거리를 상기 PTZ 카메라에게 상기 제어값으로서 제공하는 제2제공단계
를 더 수행하도록 되어 있는,
광각영상처리장치.
The method according to claim 6,
Acquiring N focal lengths for the PTZ camera from a previously provided focus lookup table, wherein the N focal lengths are values corresponding to the N object distances, respectively; And
A second providing step of providing the N focal lengths as the control value to the PTZ camera
, ≪ / RTI >
Wide - angle image processing device.
제6항에 있어서, 상기 고정카메라를 포함하는 것을 특징으로 하는, 광각영상처리장치.7. The wide-angle image processing apparatus according to claim 6, comprising the fixed camera.
KR1020170153837A 2017-11-17 2017-11-17 Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera KR20190056650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170153837A KR20190056650A (en) 2017-11-17 2017-11-17 Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170153837A KR20190056650A (en) 2017-11-17 2017-11-17 Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera

Publications (1)

Publication Number Publication Date
KR20190056650A true KR20190056650A (en) 2019-05-27

Family

ID=66679288

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170153837A KR20190056650A (en) 2017-11-17 2017-11-17 Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera

Country Status (1)

Country Link
KR (1) KR20190056650A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102579511B1 (en) 2023-05-19 2023-09-18 주식회사 인텔리빅스 Video Surveillance Device and Driving Method Thereof, Video Surveillance System and Computer Readable Recording Medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102579511B1 (en) 2023-05-19 2023-09-18 주식회사 인텔리빅스 Video Surveillance Device and Driving Method Thereof, Video Surveillance System and Computer Readable Recording Medium

Similar Documents

Publication Publication Date Title
US20230059657A1 (en) Multi-camera zoom control method and apparatus, and electronic system and storage medium
EP3089449B1 (en) Method for obtaining light-field data using a non-light-field imaging device, corresponding device, computer program product and non-transitory computer-readable carrier medium
US9109891B2 (en) Stereo camera
US9076214B2 (en) Image acquisition apparatus and image processing apparatus using selected in-focus image data
EP3534109B1 (en) Depth measuring method and system
JP2017022694A (en) Method and apparatus for displaying light field based image on user's device, and corresponding computer program product
CN105574847B (en) Camera system and image registration method thereof
US9466119B2 (en) Method and apparatus for detecting posture of surveillance camera
JP6721112B2 (en) Camera parameter estimation device, method and program
US9031355B2 (en) Method of system for image stabilization through image processing, and zoom camera including image stabilization function
WO2013164595A1 (en) Collaborative sighting
WO2014084181A1 (en) Image measurement device
JPWO2011125937A1 (en) Calibration data selection device, selection method, selection program, and three-dimensional position measurement device
JP6624800B2 (en) Image processing apparatus, image processing method, and image processing system
CN110692085B (en) Control device for a camera device, camera assembly and method for stereoscopically capturing a monitoring region
US20150264332A1 (en) System and method for selecting a two-dimensional region of interest using a range sensor
JP4198536B2 (en) Object photographing apparatus, object photographing method and object photographing program
JP2010217984A (en) Image detector and image detection method
KR20190056650A (en) Method for controlling PTZ camera using values obtained by analyzing images obtained from a fixed camera
JP3491029B2 (en) Automatic monitoring device
US10783646B2 (en) Method for detecting motion in a video sequence
JP5454392B2 (en) Ranging device and imaging device
JP6483661B2 (en) Imaging control apparatus, imaging control method, and program
KR101076487B1 (en) Apparatus and method for automatic area enlargement control in ptz camera using sift
KR101020921B1 (en) Controlling Method For Rotate Type Camera

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application