KR20120005664A - A device of transforming fish-eye image to flat image in cctv camera - Google Patents

A device of transforming fish-eye image to flat image in cctv camera Download PDF

Info

Publication number
KR20120005664A
KR20120005664A KR1020100066213A KR20100066213A KR20120005664A KR 20120005664 A KR20120005664 A KR 20120005664A KR 1020100066213 A KR1020100066213 A KR 1020100066213A KR 20100066213 A KR20100066213 A KR 20100066213A KR 20120005664 A KR20120005664 A KR 20120005664A
Authority
KR
South Korea
Prior art keywords
image
fisheye
converting
processor
centerx
Prior art date
Application number
KR1020100066213A
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 KR1020100066213A priority Critical patent/KR20120005664A/en
Publication of KR20120005664A publication Critical patent/KR20120005664A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/06Colour space transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

PURPOSE: A device of transforming a fish-eye image into a flat image in a cctv camera is provided to monitor the wide area without a dead space at the same time. CONSTITUTION: An image sensor(31) detects the information of a subject. An image processor(32) changes a video signal into video information. A frame buffer(33) provisionally stores the video information. A video processor(34) converts the video information into a planar image. A display(36) shows the planer image.

Description

CCTV 카메라의 어안 영상의 평면 영상 변환 장치{A DEVICE OF TRANSFORMING FISH-EYE IMAGE TO FLAT IMAGE IN CCTV CAMERA}Plane image converting device of fisheye image of CCTV camera {A DEVICE OF TRANSFORMING FISH-EYE IMAGE TO FLAT IMAGE IN CCTV CAMERA}

본 발명은 CCTV 카메라의 어안 영상의 평면 영상 변환 장치에 관한 것으로, 보다 상세하게는 CCTV 카메라에서 광역 영상 촬상을 위해 사용하는 어안렌즈를 통해 촬상된 곡면 영상을 평면 영상으로 변환하는 CCTV 카메라의 어안 영상의 평면 영상 변환 장치에 관한 것이다.
The present invention relates to a planar image converting device of a fisheye image of a CCTV camera, and more particularly, to a fisheye image of a CCTV camera for converting a curved image photographed through a fisheye lens used for wide area image capturing in a CCTV camera into a planar image. Relates to a planar image conversion device.

일반적으로, 은행, 백화점, 24시간 편의점, 관공서 등에서는 고객의 안전등을 위하여 감시 카메라를 설치 운영하고 있고, 이들 장소의 대부분은 독립된 구성으로 되는 고정식 카메라를 이용하여 필요한 장소에 각기 하나씩 장착하여 카메라에서 전달되는 영상을 모니터로 실시간 출력함과 동시에 VCR로 녹화를 하도록 구성되어In general, banks, department stores, 24-hour convenience stores, public offices, etc., install and operate surveillance cameras for the safety of customers, and most of these sites are equipped with fixed cameras of independent configuration, one at each of the necessary places, and It is configured to record the video to the VCR while outputting it to the monitor in real time.

있다.have.

그러나, 상기와 같은 용도로 사용되었던 종래 카메라들은 제한된 시야각을 가지고 있기 때문에 몇몇 용도에 있어서는, 광각렌즈{예컨대, 어안렌즈(fisheye lens)}가 좀더 넓은 시야 각을 얻기 위해 사용된다. 또한, 상기와 같은 종래 카메라에 적용되는 시각 센서분야에서는 광학계와 촬상 장치에 의해 얻어지는 전방향 화상을 파노라마 화상 등 인간이 보기 쉬운 화상으로 변환되도록 컴퓨터에 의해 사용되는 소프트웨어를 이용하여 처리하는 카메라를 포함하는 전방향 감시시스템이 최근 각광을 받고 있다.However, in some applications, wide angle lenses (eg, fisheye lenses) are used to obtain wider viewing angles because conventional cameras used for such applications have limited viewing angles. In addition, the field of the visual sensor applied to the conventional camera as described above includes a camera that processes the omnidirectional image obtained by the optical system and the imaging device using software used by a computer to convert the omnidirectional image into a human-readable image such as a panoramic image. Omni-directional surveillance systems are in the spotlight.

여기서, 상기와 같은 어안렌즈는 원상 영상이 심한 왜곡수차에 의해 화면의 중심을 통과하지 않은 광선(주변광)이 모두 왜곡되어 둥글게 촬영되며, 특히 화면의 중심으로부터 멀어질수록 피사체가 둥근 모양으로 왜곡되어 화면이 둥글게 찍히기 때문에 들어오기 때문에 일반적이지 못하다는 불편함이 있다.Here, the fisheye lens as described above is rounded by all the rays (ambient light) that do not pass through the center of the screen due to severe distortion aberration, the subject is rounded away as the distance from the center of the screen Because the screen is rounded, it is uncomfortable because it comes in.

이러한 왜곡연상의 보정방법으로는 포워드 맵핑(forward mapping) 방법과 인버스 맵핑(inverse mapping) 방법이 있는데, 전자는 왜곡영상에서 보정영상을 얻을 수 있는 보정계수를 구한 후 이를 직접 왜곡영상에 적용시켜 보정하는 방법이고, 후자는 미리 보정된 영상을 가정하고 이 영상의 점들이 왜곡영상의 어느 점과 매칭이 되는 지 찾는 방법이다.There are two methods for correcting distortion, such as a forward mapping method and an inverse mapping method. The former obtains a correction coefficient for obtaining a corrected image from a distorted image and applies it directly to the distorted image. The latter method assumes a pre-corrected image and finds out which points of the image match the distorted image.

도 1에 도시된 바와 같은 종래의 전방향 감시시스템(10)의 일례를 참조하면, 어안렌즈(11)를 이용하는 카메라(12)와; 상기 카메라(12)에 의해 얻어진 광학상을 화상 데이터로 변환시키기 위한 촬상부(13)와; 상기 촬상부(13)로부터 송출된 화상데이터를 화상 변환하여 모니터(14)상에 표시시키는 컴퓨터(15)를 포함한다.Referring to an example of the conventional omnidirectional monitoring system 10 as shown in FIG. 1, there is provided a camera 12 using a fisheye lens 11; An imaging unit (13) for converting the optical image obtained by the camera (12) into image data; And a computer 15 for converting the image data sent from the image pickup section 13 to an image and displaying the image data on the monitor 14.

한편, 상기와 같은 종래 전방향 감시시스템(10)의 동작을 살펴보면, 먼저, 카메라(12)에 의해 얻어진 원형의 광학상을 촬상부(13)에 의해 원형의 화상 데이터로 변환된다. 그리고, 상기 촬상부(13)는 그 화상 변환된 화상데이터를 컴퓨터(15)로 출력시킨다. 그러면, 상기 컴퓨터(15)는 입력된 화상데이터를 사각 파노라마 화상 또는 투시 화상 등의 인간이 좀더 보기 쉬운 화상으로 처리하여 모니터(14)상에 표시시킨다.On the other hand, referring to the operation of the conventional omnidirectional monitoring system 10 as described above, first, the circular optical image obtained by the camera 12 is converted into circular image data by the imaging unit 13. The imaging section 13 then outputs the converted image data to the computer 15. The computer 15 then processes the input image data into an image that is easier to see by a human, such as a rectangular panoramic image or a perspective image, and displays it on the monitor 14.

그러나, 상기와 같은 종래 전방향 감시시스템(10)의 광학장치는 360도 전방향을 촬상하도록 설계된 곡면경을 장착하고 있기 때문에 이러한 시스템을 스쿨죤(school zone)이나 공원 등에 설치하여 감시하게 될 경우 그 곡면경에 의해 촬상된 영상이 왜곡된 상태이므로 이를 평면영상으로 보정해 주어야 한다. However, since the optical apparatus of the conventional omnidirectional monitoring system 10 is equipped with a curved mirror designed to capture 360 degrees omnidirectional, such a system is installed in a school zone or a park and monitored. Since the image captured by the curved mirror is in a distorted state, it should be corrected to a flat image.

이러한 곡면영상을 평면영상으로 변환하기 위해서는 도 2에 도시된 바와 같은 좌표변환의 기하학적 형태를 알아야 한다.In order to convert the curved image into a planar image, it is necessary to know the geometric shape of the coordinate transformation as shown in FIG. 2.

수학적으로 반경이 r인 구면에 있는 영상을 평면으로 변환하기 위해선, 도 2에 도시된 곡면영상(21)의 한 지점의 3차원 좌표(x, y, z)를 2차원 좌표(a, b)로 변환하여야 하는데, 이는 하기의 수식으로 표현된다.In order to mathematically convert an image on a spherical radius r into a plane, three-dimensional coordinates (x, y, z) of one point of the curved image 21 shown in FIG. 2 are converted to two-dimensional coordinates (a, b). To be expressed as the following formula.

Figure pat00001
Figure pat00001

Figure pat00002
Figure pat00002

Figure pat00003
Figure pat00003

Figure pat00004
Figure pat00004

여기서, k는 구면의 중심에서 3차원 좌표(x, y, z)까지의 거리이며, kp는 구면의 중심에서 2차원 좌표(a, b)까지의 거리이다.Where k is the distance from the center of the sphere to three-dimensional coordinates (x, y, z), and kp is the distance from the center of the sphere to two-dimensional coordinates (a, b).

이때, 어안렌즈에 의해 촬상되어 전송된 곡면영상(21)을 컴퓨터(15)로 평면영상으로 변환하는 과정에서 계산해야할 알고리즘의 계산량이 많으며, 이로 인해 변환된 평면영상의 프렝미수가 적어져서 평면영상으로 변환된 영상의 정지 영상으로 보이는 현상이 발생하게된다. 즉 영상의 움직임이 끊어져 보이게 되는 문제점이 있었다.
At this time, a large amount of computational algorithm has to be calculated in the process of converting the curved image 21 captured and transmitted by the fisheye lens into a planar image by the computer 15, thereby reducing the number of premies of the converted planar image. The phenomenon shown as the still image of the converted image is generated. That is, there was a problem that the motion of the image is broken.

따라서 본 발명의 목적은 상기와 같은 문제를 해결하기 위해, 컴퓨터가 계산해야할 알고리즘의 계산량을 줄이며, 이 알고리즘을 회로로 구현하고 이 회로를 카메라에 부착해서, 이 카메라에 의해 촬상된 영상을 모니터에서 곧바로 평면영상으로 볼 수 있게 하는 CCTV 카메라의 어안 영상의 평면 영상 변환 장치를 제공함을 그 목적으로 한다.
Therefore, the object of the present invention is to solve the above problems, reduce the amount of computation of the algorithm to be calculated by the computer, implement this algorithm as a circuit and attach this circuit to the camera, the image captured by this camera on the monitor It is an object of the present invention to provide a planar image converting device for fisheye images of CCTV cameras that can be viewed immediately as a planar image.

본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치는 어안렌즈를 통해 광각으로 볼 수 있는 파사체의 정보를 검지(檢知)하여 전기적인 영상신호로 변환시키는 광전변환장치의 일종인 이미지 센서와; 상기 이미지 센서로 부터 전송된 영상신호를 영상정보로 변환하기 위한 이미지 프로세서와; 상기 이미지 프로세서와 연결되어 상기 변환된 영상정보를 일시적으로 저장하기 위한 프레임 버퍼와; 상기 이미지 프로세서로부터 전송된 영상정보를 평면 영상화하기 위한 비디오 프로세서 및; 상기 비디오 프로세서와 연결되어 평면화된 영상을 기록하기 위한 DVR 또는 상기 비디오 프로세서에서 평면화된 영상을 나타내는 디스플레이로 이루어진 것을 특징으로 한다.The planar image converting device of a fisheye image of a CCTV camera according to the present invention includes an image sensor which is a kind of a photoelectric conversion device that detects the information of a projectile visible through a fisheye lens and converts it into an electrical image signal. ; An image processor for converting an image signal transmitted from the image sensor into image information; A frame buffer connected to the image processor to temporarily store the converted image information; A video processor for planar imaging of image information transmitted from the image processor; It is characterized in that it is connected to the video processor DVR for recording the flattened image or a display showing the flattened image in the video processor.

또한, 상기 비디오 프로세서는 YCbCr422를 RGB로 변환시키는 컬러 스페이스 컨버터와, 목표의 좌표를 계산하는 목표 어드레스 계산부와, 상기 프레임 버퍼를 제어하는 메모리 제어기 및, RGB를 YCbCr422로 변환시키는 컬러 스페이스 컨버터로 이루어진 것을 특징으로 한다.The video processor includes a color space converter for converting YCbCr422 to RGB, a target address calculator for calculating target coordinates, a memory controller for controlling the frame buffer, and a color space converter for converting RGB to YCbCr422. It is characterized by.

또한, 상기 목표 어드레스 계산부는 평면화 알고리즘을 사용하여 어안영상을 평면영상으로 변환시키는데, 상기 평면화 알고리즘은, The target address calculator converts the fisheye image into a planar image using a planarization algorithm.

int y=0, x=0, xr=480, yr=640, cx, cy, centerx=240, centery=320; int y = 0, x = 0, xr = 480, yr = 640, cx, cy, centerx = 240, centery = 320;

float r=240, xreal, yreal, k, k2, kp, kptr;float r = 240, xreal, yreal, k, k2, kp, kptr;

int m_scaleImg[720[960];int m_scaleImg [720 [960];

for(x=0; x<xr; x++){xreal=x; for (x = 0; x <xr; x ++) {xreal = x;

for(y=0; y<yr; y++){yreal=y;         for (y = 0; y <yr; y ++) {yreal = y;

k2=(yreal-yr/2)*(yreal-yr/2)+(xreal-xr/2)*(xreal-xr/2);k2 = (yreal-yr / 2) * (yreal-yr / 2) + (xreal-xr / 2) * (xreal-xr / 2);

if(k2==0) kp=0;if (k2 == 0) kp = 0;

else {kptr=(4*r*r*k2)/(4*r*r+k2);else {kptr = (4 * r * r * k2) / (4 * r * r + k2);

k=sqrt(k2);k = sqrt (k 2);

kp=kptr/k;}kp = kptr / k;}

if(y<(yr/2)||x<(xr/2)) {cy=centery - (kp/k)*(yr/2-y);if (y <(yr / 2) || x <(xr / 2)) {cy = centery-(kp / k) * (yr / 2-y);

cx=centerx - (kp/k)*(xr/2-x);}cx = centerx-(kp / k) * (xr / 2-x);}

if(y>(yr/2)||x<(xr/2)) {cy=centery + (kp/k)*(y-yr/2);  if (y> (yr / 2) || x <(xr / 2)) {cy = centery + (kp / k) * (y-yr / 2);

cx=centerx -(kp/k)*(xr/2-x);}cx = centerx-(kp / k) * (xr / 2-x);}

if(y>(yr/2)||x>(xr/2)) {cy=centery + (kp/k)*(y-yr/2);if (y> (yr / 2) || x> (xr / 2)) {cy = centery + (kp / k) * (y-yr / 2);

cx=centerx + (kp/k)*(x-xr/2);}cx = centerx + (kp / k) * (x-xr / 2);}

elseelse

{cy=centery - (kp/k)*(yr/2-y);              {cy = centery-(kp / k) * (yr / 2-y);

cx=centerx + (kp/k)*(x-xr/2);}cx = centerx + (kp / k) * (x-xr / 2);}

m_scaleImg[x][y]=m_OpenImg[cx][cy]; }}m_scaleImg [x] [y] = m_OpenImg [cx] [cy]; }}

인 것을 특징으로 한다.
It is characterized by that.

상술한 바와 같이, 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치는 곡면영상이 실시간으로 변환되는 CCTV 카메라로 광역으로 영상을 동시에 수집하므로 넓은 지역을 사각없이 동시에 감시할 수 있다는 이점이 있다.
As described above, the planar image converting device of the fisheye image of the CCTV camera according to the present invention has the advantage that it is possible to simultaneously monitor a large area without blind spots by collecting the image in a wide area at the same time as a CCTV camera that the curved image is converted in real time .

도 1은 종래의 다영역 감시시스템 구성도.
도 2는 종래의 좌표변환의 기하학적 형태와 변환된 영상 표본 도시도.
도 3은 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치의 전체 시스템 블럭도.
도 4는 도 3의 이미지 센서의 신호처리를 도시한 블럭도.
도 5는 도 3의 비디오 프로세서의 내부 블럭도.
1 is a configuration diagram of a conventional multi-region monitoring system.
FIG. 2 is a diagram illustrating a geometric sample of a conventional coordinate transformation and a transformed image sample. FIG.
Figure 3 is a block diagram of the entire system of the planar image conversion apparatus for fisheye image of a CCTV camera according to the present invention.
4 is a block diagram showing signal processing of the image sensor of FIG.
5 is an internal block diagram of the video processor of FIG.

이하, 도면을 참조하면서 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치를 보다 상세히 기술하기로 한다. 본 발명을 설명함에 있어서 관련된 공지기술 또는 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략될 것이다. 그리고, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 클라이언트나 운용자, 사용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.Hereinafter, a planar image converting device of a fisheye image of a CCTV camera according to the present invention will be described in detail with reference to the drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. In addition, terms to be described below are terms defined in consideration of functions in the present invention, which may vary according to a client's or operator's intention or custom. Therefore, the definition should be based on the contents throughout this specification.

도면 전체에 걸쳐 같은 참조번호는 같은 구성 요소를 가리킨다.Like numbers refer to like elements throughout the drawings.

도 3은 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치의 전체 시스템 블럭도이며, 도 4는 도 3의 이미지 센서의 신호처리를 도시한 블럭도이며, 도 5는 도 3의 비디오 프로세서의 내부 블럭도이다.FIG. 3 is a block diagram illustrating an entire system for converting a fisheye image of a CCTV camera according to the present invention. FIG. 4 is a block diagram illustrating signal processing of the image sensor of FIG. 3, and FIG. 5 is a video processor of FIG. 3. Is an internal block diagram of.

이하에서, 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치는 어안렌즈로부터 획득된 곡면영상을 컴퓨터에서 평면영상으로 변환하는데, 상기 컴퓨터에서 처리해야 할 알고리즘의 계산량을 줄일 수 있는 하기의 신규의 컴퓨터용 평면화 알고리즘을 사용한다.Hereinafter, the planar image converting device of a fisheye image of a CCTV camera according to the present invention converts a curved image obtained from a fisheye lens into a planar image on a computer, and the following novel method can reduce the amount of computation of the algorithm to be processed in the computer. Uses a computerized flattening algorithm.

int y=0, x=0, xr=480, yr=640, cx, cy, centerx=240, centery=320; int y = 0, x = 0, xr = 480, yr = 640, cx, cy, centerx = 240, centery = 320;

float r=240, xreal, yreal, k, k2, kp, kptr;float r = 240, xreal, yreal, k, k2, kp, kptr;

int m_scaleImg[720[960];int m_scaleImg [720 [960];

for(x=0; x<xr; x++){xreal=x; for (x = 0; x <xr; x ++) {xreal = x;

for(y=0; y<yr; y++){yreal=y;         for (y = 0; y <yr; y ++) {yreal = y;

k2=(yreal-yr/2)*(yreal-yr/2)+(xreal-xr/2)*(xreal-xr/2);k2 = (yreal-yr / 2) * (yreal-yr / 2) + (xreal-xr / 2) * (xreal-xr / 2);

if(k2==0) kp=0;if (k2 == 0) kp = 0;

else {kptr=(4*r*r*k2)/(4*r*r+k2);else {kptr = (4 * r * r * k2) / (4 * r * r + k2);

k=sqrt(k2);k = sqrt (k 2);

kp=kptr/k;}kp = kptr / k;}

if(y<(yr/2)||x<(xr/2)) {cy=centery - (kp/k)*(yr/2-y);if (y <(yr / 2) || x <(xr / 2)) {cy = centery-(kp / k) * (yr / 2-y);

cx=centerx - (kp/k)*(xr/2-x);}cx = centerx-(kp / k) * (xr / 2-x);}

if(y>(yr/2)||x<(xr/2)) {cy=centery + (kp/k)*(y-yr/2);  if (y> (yr / 2) || x <(xr / 2)) {cy = centery + (kp / k) * (y-yr / 2);

cx=centerx -(kp/k)*(xr/2-x);}cx = centerx-(kp / k) * (xr / 2-x);}

if(y>(yr/2)||x>(xr/2)) {cy=centery + (kp/k)*(y-yr/2);if (y> (yr / 2) || x> (xr / 2)) {cy = centery + (kp / k) * (y-yr / 2);

cx=centerx + (kp/k)*(x-xr/2);}cx = centerx + (kp / k) * (x-xr / 2);}

elseelse

{cy=centery - (kp/k)*(yr/2-y);              {cy = centery-(kp / k) * (yr / 2-y);

cx=centerx + (kp/k)*(x-xr/2);}cx = centerx + (kp / k) * (x-xr / 2);}

m_scaleImg[x][y]=m_OpenImg[cx][cy]; }}m_scaleImg [x] [y] = m_OpenImg [cx] [cy]; }}

이러한 평면화 알고리즘을 하드웨어로 구현하기 위해 FPGA 회로화 작업을 수행한 결과가 상기 도 3에 도시된 바와 같은 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치의 전체 시스템이다.The result of performing the FPGA circuitization to implement such a planarization algorithm in hardware is the entire system of the planar image converting device of the fisheye image of the CCTV camera according to the present invention as shown in FIG.

도 3을 참조하면, 본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치(30)는 어안렌즈(11)를 통해 광각으로 볼 수 있는 파사체의 정보를 검지(檢知)하여 전기적인 영상신호로 변환시키는 광전변환장치의 일종인 이미지 센서(31)와, 상기 이미지 센서(31)로 부터 전송된 영상신호를 영상정보로 변환하기 위한 이미지 프로세서(32)와, 상기 이미지 프로세서(32)와 연결되어 상기 변환된 영상정보를 일시적으로 저장하기 위한 프레임 버퍼(33)와, 상기 이미지 프로세서(32)로 부터 전송된 영상정보를 평면영상화하기 위한 비디오 프로세서(34)와, 상기 비디오 프로세서(34)와 연결되어 평면화된 영상을 기록하기 위한 DVR(35) 또는 상기 비디오 프로세서(34)에서 평면화된 영상을 나타내는 디스플레이(36)로 구성된다.Referring to FIG. 3, the planar image converting device 30 of a fisheye image of a CCTV camera according to the present invention detects the information of a projectile visible through a fisheye lens 11 to detect an electric image signal. An image sensor 31, which is a type of photoelectric conversion device for converting a photoelectric device, an image processor 32 for converting an image signal transmitted from the image sensor 31 into image information, and connected to the image processor 32. Frame buffer 33 for temporarily storing the converted image information, a video processor 34 for planarizing the image information transmitted from the image processor 32, the video processor 34, DVR 35 for recording the planarized image or the display 36 representing the planarized image in the video processor 34.

여기서, 상기 이미지 센서(31)로 부터의 포맷은 SD(보통화질)해상도의 경우 8비트 YCbCr422이며 HD 해상도(고해상도)의 경우 16비트 YCbCr422 이며, 입력 영상신호의 비트 심도(bit depth)는 상기 이미지 센서(31)의 성능에 따라 달라질 수 있다. 또한, 프레임 버퍼(33)는 는 일반적으로 DRAM을 사용하여 구성하는데, 상기 DRAM은 SDR SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM 등 대용량의 영상 데이터를 저장할수 있는 저장 수단이 사용될 수 있다.The format from the image sensor 31 is 8-bit YCbCr422 for SD (normal definition) resolution and 16-bit YCbCr422 for HD resolution (high resolution), and the bit depth of the input video signal is the image. It may vary depending on the performance of the sensor 31. In addition, the frame buffer 33 is generally configured using a DRAM, which may be a storage means capable of storing a large amount of image data such as SDR SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM.

이제, 상기 도 3에 도시된 이미지 센서(31)를 보다 상세히 도시한 도 4를 참조하면, 상기 이미지 센서(31)는 2-와이어 직렬 인터페이스 레지스터(2-wire serial interface registers)(41), 이미지 신호 처리부(42), 타이밍 제어부(43), 칼럼 디코더(44), ADC(45), CDS(46), 픽셀 어레이(690x512)(47), Bias/ADC 제어부(48), 로 디코더(49)로 이루어진다.Referring now to FIG. 4, which shows in more detail the image sensor 31 shown in FIG. 3, the image sensor 31 includes two-wire serial interface registers 41, an image. Signal processor 42, timing controller 43, column decoder 44, ADC 45, CDS 46, pixel array 690 512, 47, Bias / ADC controller 48, raw decoder 49 Is made of.

여기서, 타이밍 제어부(43)에서 전송된 디지털 제어신호는 상기 칼럼 디코더(44)와 로 디코더(49)로 전송되며, 아나로그 제어신호는 상기 Bias/ADC 제어부(48)로 전송된다.Here, the digital control signal transmitted from the timing controller 43 is transmitted to the column decoder 44 and the row decoder 49, and the analog control signal is transmitted to the Bias / ADC controller 48.

또한, 이미지 센서(31)의 픽셀 어레이는 690x512이며, 상기 이미지 센서(32)의 출력신호는 NTSC 또는 PAL 신호이고 최대 프레임 레이트는 30fps이고 상기 출력신호의 포맷은 CCIR656, 8비트 YCbCr422, 8비트 RGB565, 9비트 RGB 베이어, 9비트 Mono 중에서 선택하여 출력할 수 있다. 또한, 이러한 이미지 센서(31)의 동작은 공지된 것이기에 더이상의 상세한 설명은 생략한다.In addition, the pixel array of the image sensor 31 is 690x512, the output signal of the image sensor 32 is NTSC or PAL signal, the maximum frame rate is 30fps and the format of the output signal is CCIR656, 8-bit YCbCr422, 8-bit RGB565 You can select from among 9-bit RGB Bayer and 9-bit Mono. In addition, since the operation of the image sensor 31 is well known, a detailed description thereof will be omitted.

이러한 이미지 센서(31)로 부터 전송된 영상신호가 이미지 프로세서(32)를 거쳐 영상정보로 변환되고, 이 변환된 영상정보가 비디오 프로세서(34)에 의해 평면으로 영상화되는데, 이러한 비디오 프로세서(34)의 내부 블럭도를 도시한 도 5를 참조하면, 상기 비디오 프로세서(34)는 YCbCr422를 RGB로 변환시키는 컬러 스페이스 컨버터(51-1)과, 목표의 좌표를 계산하는 목표 어드레스 계산부(52)와, 상기 프레임 버퍼(33)를 제어하는 메모리 제어기(53) 및, RGB를 YCbCr422로 변환시키는 컬러 스페이스 컨버터(51-2)로 이루어진다.The image signal transmitted from the image sensor 31 is converted into the image information via the image processor 32, and the converted image information is imaged in a plane by the video processor 34, which is the video processor 34 Referring to FIG. 5, which shows an internal block diagram of the video processor 34, the video processor 34 includes a color space converter 51-1 for converting YCbCr422 to RGB, a target address calculator 52 for calculating coordinates of a target; And a memory controller 53 for controlling the frame buffer 33, and a color space converter 51-2 for converting RGB into YCbCr422.

여기서, 상기 카메라(12)로부터 CIR656 또는 8비트 YCbCr422의 영상신호를 입력받는데, 상기 영상신호는 1픽셀당 1개의 휘도신호(Y)와, 2픽셀당 1개의 컬러신호로 구성되어 있어, 이를 평면영상화하기 위해서는 1픽셀 단위로 처리되어야 하므로, 상기 컬러 스페이스 컨버터(51-1)는 상기 CIR656 또는 8비트 YCbCr422 영상신호를 1픽셀당 독립적인 화소정보를 가지는 RGB 형식의 컬러 신호로 변환시키는 기능을 한다.Here, the CIR656 or 8-bit YCbCr422 video signal is input from the camera 12. The video signal is composed of one luminance signal Y per pixel and one color signal per two pixels. In order to image, the color space converter 51-1 converts the CIR656 or 8-bit YCbCr422 video signal into an RGB format color signal having independent pixel information per pixel. .

또한, 상기 목표 어드레스 계산부(52)는 전술된 바와 같은 평면화 알고리즘에 의하여 어안영상을 평면영상으로 변환하는데 필요한 좌표를 계산하며, 상기 평면화 알고리즘에 의하여 계산된 좌표 데이터를 사용하여 상기 프레임 버퍼(33)에 저장된 카메라(12)로부터 입력받은 어안영상을 읽어내는데 필요한 프레임 버퍼(33)의 읽기 어드레스 번지를 생성한다.In addition, the target address calculator 52 calculates coordinates necessary for converting the fisheye image into the planar image by the planarization algorithm as described above, and uses the coordinate data calculated by the planarization algorithm and uses the frame buffer 33. A read address address of the frame buffer 33 required to read the fisheye image received from the camera 12 stored in the C) is generated.

또한, 상기 카메라(12)로부터 입력된 어안영상의 신호 데이터 상기 컬러 스페이스 컨버터(51-1)를 거쳐 RGB 형식으로 변환되어 프레임 버퍼 메모리에 저장되는데, 상기 메모리 제어기(53)는 입력된 영상 데이터를 프레임 단위로 프레임 버퍼(33)에 기록시키며; 상기 목표 어드레스 계산부(52)에서 상기 평면화 알고리즘에 의하여 계산된 결과값을 상기 프레임 버퍼(33)에 기록시키며; 상기 프레임 버퍼(33)에 저장된 상기 평면화 알고리즘의 결과값을 사용하여 상기 프레임 버퍼(33)에 프레임 단위로 저장되어 있는 입력 영상 데이터중 읽어낼 영상 데이터의 번지를 결정하고, 해당 번지의 영상 데이터를 읽어내는 기능을 한다. In addition, the signal data of the fisheye image input from the camera 12 is converted into an RGB format through the color space converter 51-1 and stored in the frame buffer memory. The memory controller 53 stores the input image data. Write to the frame buffer 33 in units of frames; The target address calculator (52) writes the result value calculated by the planarization algorithm into the frame buffer (33); The address of the image data to be read among the input image data stored in the frame buffer 33 in units of frames is determined by using the result value of the flattening algorithm stored in the frame buffer 33, and the image data of the corresponding address is determined. Read function.

또한, 통상의 비디오 디코더 IC의 입력 가능 영상신호 형식이 YCbCr422 또는 CCIR656 형식이기 때문에, RGB 형식의 영상신호를 입력했을 경우 비디오 신호를 정상적으로 엔코딩하지 못하며 결과적으로 비정상적인 비디오 신호를 출력하게 되기에, 상기 컬러 스페이스 컨버터(51-2)는 상기 평면화 알고리즘에 의하여 상기 프레임 버퍼(33)로 부터 출력된 RGB 픽셀 데이터를 YCbCr422 픽셀 데이터로 변환시키는 기능을 한다. In addition, since the inputtable video signal format of a conventional video decoder IC is YCbCr422 or CCIR656 format, when the RGB video signal is input, the video signal cannot be encoded normally, and as a result, an abnormal video signal is output. The space converter 51-2 converts RGB pixel data output from the frame buffer 33 into YCbCr422 pixel data by the flattening algorithm.

상기 비디오 프로세서(34)로 부터 출력된 아나로그 영상신호는 영상저장장치인 DVR 또는 비디오 디스플레이(TV, 모니터 등)의 입력 영상신호로 사용된다.The analog video signal output from the video processor 34 is used as an input video signal of a DVR or a video display (TV, monitor, etc.) which is an image storage device.

본 발명에 따른 CCTV 카메라의 어안 영상의 평면 영상 변환 장치는 곡면영상이 실시간으로 변환되는 CCTV 카메라로 광역으로 영상을 동시에 수집하므로 넓은 지역을 사각없이 동시에 감시할 수 있다.The planar image converting device of a fisheye image of a CCTV camera according to the present invention is a CCTV camera that converts a curved image in real time to simultaneously collect the image in a wide area can simultaneously monitor a large area without blind spots.

비록 본 발명의 실시 예에선, 카메라로부터 입력되는 영상신호로 CIR656 또는 8비트 YCbCr422가 사용되었으나, 그 외에도 8비트 RGB565, 9비트 RGB Bayer, 9비트 Mono 등이 사용될 수 있다.Although CIR656 or 8-bit YCbCr422 is used as an image signal input from the camera in the embodiment of the present invention, 8-bit RGB565, 9-bit RGB Bayer, 9-bit Mono, etc. may be used.

또한, 본 발명의 실시 예에선, 1개 또는 2개의 프레임 버퍼를 사용했으나, 이러한 프레임 버퍼의 갯수가 제한되지 않음은 물론이다.In addition, in the embodiment of the present invention, one or two frame buffers are used, but the number of such frame buffers is not limited.

이상과 같이 본 발명은 양호한 실시 예에 근거하여 설명하였지만, 이러한 실시 예는 본 발명을 제한하려는 것이 아니라 예시하려는 것이므로, 본 발명이 속하는 기술분야의 숙련자라면 본 발명의 기술사상을 벗어남이 없이 위 실시 예에 대한 다양한 변화나 변경 또는 조절이 가능할 것이다. 그러므로, 본 발명의 보호 범위는 본 발명의 기술적 사상의 요지에 속하는 변화 예나 변경 예 또는 조절 예를 모두 포함하는 것으로 해석되어야 할 것이다.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, Various changes, modifications or adjustments to the example will be possible. Therefore, the scope of protection of the present invention should be construed as including all changes, modifications, and adjustments that fall within the spirit of the technical idea of the present invention.

10: 종래의 전방향 감시시스템(10) 11: 어안렌즈
12: 카메라 13: 촬상부
14: 모니터 15: 컴퓨터
30: CCTV 카메라의 어안 영상의 평면 영상 변환 장치
31: 이미지 센서 32: 이미지 프로세서
33: 프레임 버퍼 34: 비디오 프로세서
35: DVR 36: 디스플레이
41: 2와이어 직렬 인터페이스 레지스터
42: 이미지 신호 처리부 43: 타이밍 제어부
44: 칼럼 디코더 45: ADC
46: CDS 47: 픽셀 어레이
48: Bias/ADC 제어부 49: 로 디코더
51-1, 51-2: 컬러 스페이스 컨버터
52: 목표 어드레스 계산부(52) 53: 메모리 제어기
10: conventional omnidirectional monitoring system 10: fisheye lens
12: camera 13: imaging unit
14: Monitor 15: Computer
30: Planar video conversion device of fisheye video of CCTV camera
31: image sensor 32: image processor
33: frame buffer 34: video processor
35: DVR 36: Display
41: 2-wire serial interface register
42: image signal processor 43: timing controller
44: column decoder 45: ADC
46: CDS 47: pixel array
48: Bias / ADC Control Unit 49: Low Decoder
51-1, 51-2: color space converter
52: target address calculator 52 53: memory controller

Claims (3)

어안렌즈를 통해 광각으로 볼 수 있는 파사체의 정보를 검지(檢知)하여 전기적인 영상신호로 변환시키는 광전변환장치의 일종인 이미지 센서와;
상기 이미지 센서로 부터 전송된 영상신호를 영상정보로 변환하기 위한 이미지 프로세서와;
상기 이미지 프로세서와 연결되어 상기 변환된 영상정보를 일시적으로 저장하기 위한 프레임 버퍼와;
상기 이미지 프로세서로 부터 전송된 영상정보를 평면 영상화하기 위한 비디오 프로세서 및;
상기 비디오 프로세서와 연결되어 평면화된 영상을 기록하기 위한 DVR 또는 상기 비디오 프로세서에서 평면화된 영상을 나타내는 디스플레이로 이루어진 것을 특징으로 하는 CCTV 카메라의 어안 영상의 평면 영상 변환 장치.
An image sensor which is a type of photoelectric conversion device that detects information of a wide viewing object through a fisheye lens and converts the information into an electrical image signal;
An image processor for converting an image signal transmitted from the image sensor into image information;
A frame buffer connected to the image processor to temporarily store the converted image information;
A video processor for planar imaging of image information transmitted from the image processor;
A device for converting a fisheye image of a CCTV camera, comprising: a DVR for recording a planarized image connected to the video processor or a display representing a planarized image in the video processor.
제 1항에 있어서, 상기 비디오 프로세서는 YCbCr422를 RGB로 변환시키는 컬러 스페이스 컨버터와, 목표의 좌표를 계산하는 목표 어드레스 계산부와, 상기 프레임 버퍼를 제어하는 메모리 제어기 및, RGB를 YCbCr422로 변환시키는 컬러 스페이스 컨버터로 이루어진 것을 특징으로 하는 CCTV 카메라의 어안 영상의 평면 영상 변환 장치.2. The video processor of claim 1, wherein the video processor comprises: a color space converter for converting YCbCr422 to RGB, a target address calculator for calculating coordinates of a target, a memory controller for controlling the frame buffer, and a color for converting RGB to YCbCr422. Planar image converting device for fisheye image of a CCTV camera, characterized in that consisting of a space converter. 제 3항에 있어서, 상기 목표 어드레스 계산부는 평면화 알고리즘을 사용하여 어안영상을 평면영상으로 변환시키는데, 상기 평면화 알고리즘은,
int y=0, x=0, xr=480, yr=640, cx, cy, centerx=240, centery=320;
float r=240, xreal, yreal, k, k2, kp, kptr;
int m_scaleImg[720[960];
for(x=0; x<xr; x++){xreal=x;
for(y=0; y<yr; y++){yreal=y;
k2=(yreal-yr/2)*(yreal-yr/2)+(xreal-xr/2)*(xreal-xr/2);
if(k2==0) kp=0;
else {kptr=(4*r*r*k2)/(4*r*r+k2);
k=sqrt(k2);
kp=kptr/k;}
if(y<(yr/2)||x<(xr/2)) {cy=centery - (kp/k)*(yr/2-y);
cx=centerx - (kp/k)*(xr/2-x);}
if(y>(yr/2)||x<(xr/2)) {cy=centery + (kp/k)*(y-yr/2);
cx=centerx -(kp/k)*(xr/2-x);}
if(y>(yr/2)||x>(xr/2)) {cy=centery + (kp/k)*(y-yr/2);
cx=centerx + (kp/k)*(x-xr/2);}
else
{cy=centery - (kp/k)*(yr/2-y);
cx=centerx + (kp/k)*(x-xr/2);}
m_scaleImg[x][y]=m_OpenImg[cx][cy]; }}인 것을 특징으로 하는 CCTV 카메라의 어안 영상의 평면 영상 변환 장치.
The planarization algorithm of claim 3, wherein the target address calculator converts the fisheye image into a planar image using a planarization algorithm.
int y = 0, x = 0, xr = 480, yr = 640, cx, cy, centerx = 240, centery = 320;
float r = 240, xreal, yreal, k, k2, kp, kptr;
int m_scaleImg [720 [960];
for (x = 0; x <xr; x ++) {xreal = x;
for (y = 0; y <yr; y ++) {yreal = y;
k2 = (yreal-yr / 2) * (yreal-yr / 2) + (xreal-xr / 2) * (xreal-xr / 2);
if (k2 == 0) kp = 0;
else {kptr = (4 * r * r * k2) / (4 * r * r + k2);
k = sqrt (k 2);
kp = kptr / k;}
if (y <(yr / 2) || x <(xr / 2)) {cy = centery-(kp / k) * (yr / 2-y);
cx = centerx-(kp / k) * (xr / 2-x);}
if (y> (yr / 2) || x <(xr / 2)) {cy = centery + (kp / k) * (y-yr / 2);
cx = centerx-(kp / k) * (xr / 2-x);}
if (y> (yr / 2) || x> (xr / 2)) {cy = centery + (kp / k) * (y-yr / 2);
cx = centerx + (kp / k) * (x-xr / 2);}
else
{cy = centery-(kp / k) * (yr / 2-y);
cx = centerx + (kp / k) * (x-xr / 2);}
m_scaleImg [x] [y] = m_OpenImg [cx] [cy]; The plane image conversion apparatus of the fisheye image of a CCTV camera, characterized in that the}}.
KR1020100066213A 2010-07-09 2010-07-09 A device of transforming fish-eye image to flat image in cctv camera KR20120005664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100066213A KR20120005664A (en) 2010-07-09 2010-07-09 A device of transforming fish-eye image to flat image in cctv camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100066213A KR20120005664A (en) 2010-07-09 2010-07-09 A device of transforming fish-eye image to flat image in cctv camera

Publications (1)

Publication Number Publication Date
KR20120005664A true KR20120005664A (en) 2012-01-17

Family

ID=45611661

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100066213A KR20120005664A (en) 2010-07-09 2010-07-09 A device of transforming fish-eye image to flat image in cctv camera

Country Status (1)

Country Link
KR (1) KR20120005664A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101478980B1 (en) * 2013-05-22 2015-01-05 아이오솔루션(주) System for multi channel display to use a fish-eye lens
US10728431B1 (en) 2019-01-22 2020-07-28 Idis Co., Ltd. Fish eye camera having a bracket which elastically supports plurality of light emitting diode (LED) substrates

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101478980B1 (en) * 2013-05-22 2015-01-05 아이오솔루션(주) System for multi channel display to use a fish-eye lens
US10728431B1 (en) 2019-01-22 2020-07-28 Idis Co., Ltd. Fish eye camera having a bracket which elastically supports plurality of light emitting diode (LED) substrates

Similar Documents

Publication Publication Date Title
US7450165B2 (en) Multiple-view processing in wide-angle video camera
US9398214B2 (en) Multiple view and multiple object processing in wide-angle video camera
US20210084221A1 (en) Image processing system and image processing method
US9602700B2 (en) Method and system of simultaneously displaying multiple views for video surveillance
US6069351A (en) Focal plane processor for scaling information from image sensors
US8305424B2 (en) System, apparatus and method for panorama image display
US8238695B1 (en) Data reduction techniques for processing wide-angle video
JP5353393B2 (en) Image processing apparatus and image processing method
US20130058589A1 (en) Method and apparatus for transforming a non-linear lens-distorted image
US20090185028A1 (en) Camera apparatus and image recording/reproducing method
US20120075409A1 (en) Image segmentation system and method thereof
KR20140090775A (en) Correction method of distortion image obtained by using fisheye lens and image display system implementing thereof
US20220222856A1 (en) Fixed pattern calibration for multi-view stitching
JP7282798B2 (en) Imaging device, image processing method, and program
US20110141321A1 (en) Method and apparatus for transforming a lens-distorted image to a perspective image in bayer space
US20100020202A1 (en) Camera apparatus, and image processing apparatus and image processing method
KR101778744B1 (en) Monitoring system through synthesis of multiple camera inputs
EP1892665A2 (en) Entire-view video image process system and method thereof
US20200244950A1 (en) Image Sensor Blemish Detection
KR20120005664A (en) A device of transforming fish-eye image to flat image in cctv camera
JP4877165B2 (en) Monitoring system
US20200374434A1 (en) Dual imaging module cameras
KR20180022327A (en) Image transforming device of a 360-degree revolution in CCTV camera
CN103780829A (en) Integrated processing system of multiple cameras and method thereof
JP7118659B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD AND PROGRAM

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
NORF Unpaid initial registration fee