KR102264111B1 - Apparatus and method for three-dimensional calibration of video image - Google Patents

Apparatus and method for three-dimensional calibration of video image Download PDF

Info

Publication number
KR102264111B1
KR102264111B1 KR1020140058335A KR20140058335A KR102264111B1 KR 102264111 B1 KR102264111 B1 KR 102264111B1 KR 1020140058335 A KR1020140058335 A KR 1020140058335A KR 20140058335 A KR20140058335 A KR 20140058335A KR 102264111 B1 KR102264111 B1 KR 102264111B1
Authority
KR
South Korea
Prior art keywords
image
template
candidate
characteristic parameter
real object
Prior art date
Application number
KR1020140058335A
Other languages
Korean (ko)
Other versions
KR20150131543A (en
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 KR1020140058335A priority Critical patent/KR102264111B1/en
Priority to PCT/KR2015/004762 priority patent/WO2015174724A1/en
Publication of KR20150131543A publication Critical patent/KR20150131543A/en
Application granted granted Critical
Publication of KR102264111B1 publication Critical patent/KR102264111B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Abstract

영상의 3차원 보정 장치 및 방법이 개시된다. 본 발명의 일 실시예에 따른 영상의 3차원 보정 장치는 영상을 획득하고, 획득된 상기 영상에 3차원 템플릿을 중첩하여 오버레이 영상을 생성하는 템플릿 중첩 모듈; 및 상기 오버레이 영상에 기 설정된 가상 객체를 배치하고, 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 상기 3차원 템플릿의 특성 파라미터를 조정하는 템플릿 조정 모듈을 포함한다.An apparatus and method for three-dimensional correction of an image are disclosed. An apparatus for correcting a 3D image according to an embodiment of the present invention includes: a template overlapping module for obtaining an image, and superimposing a 3D template on the obtained image to generate an overlay image; and a template adjustment module for arranging a preset virtual object on the overlay image, and adjusting a characteristic parameter of the 3D template through feature comparison between the placed virtual object and a real object in the image.

Description

영상의 3차원 보정 장치 및 방법{APPARATUS AND METHOD FOR THREE-DIMENSIONAL CALIBRATION OF VIDEO IMAGE}Apparatus and method for three-dimensional correction of images {APPARATUS AND METHOD FOR THREE-DIMENSIONAL CALIBRATION OF VIDEO IMAGE}

본 발명의 실시예들은 카메라를 이용한 영상 내 객체 인식 기술과 관련된다.
Embodiments of the present invention relate to techniques for recognizing objects in an image using a camera.

CCTV(Closed-Circuit Television) 등의 감시 카메라가 일반화되면서, 용의자 또는 용의 차량 등의 이동 경로를 추적하기 위하여 비디오 데이터를 이용하는 경우가 증가하고 있다. CCTV를 활용한 관제는 주로 특정 장소에 설치된 카메라의 감시 영상 분석(Video Analysis)을 통해 영상 내 객체(사람, 또는 차량 등의 물체)의 크기 및 움직임을 감지하는, 이벤트에 기초한(Event Driven) 관제가 주로 이루어진다.As surveillance cameras such as Closed-Circuit Television (CCTV) become common, video data is increasingly used to track the movement path of a suspect or a vehicle of the suspect. Control using CCTV is mainly event-driven control that detects the size and movement of objects (such as people or vehicles) in the video through video analysis of the cameras installed in specific places. is mainly made

카메라 등을 통하여 촬영되는 영상은 2차원인 반면 실제 촬영되는 피사체는 3차원이므로, 2차원 화면 상에서 3차원 객체를 감지하기 위해서는 현재 설치된 카메라의 시야각, 높이, 화각 등의 정보가 필요하다. 이를 위하여, 종래에는 시스템 운영자 등이 수작업으로 화면을 보면서 상기 정보들을 입력하였다. 그러나 이는 운영자의 오랜 경험 및 시행 착오가 필요한 작업이어서 작업 시간이 매우 오래 소요됨은 물론 전 과정이 수작업으로 이루어지므로 정확도에 있어서도 한계가 있었다.
Since an image photographed through a camera is two-dimensional whereas an actual photographed subject is three-dimensional, information such as a viewing angle, a height, and an angle of view of the currently installed camera is required to detect a three-dimensional object on a two-dimensional screen. To this end, conventionally, a system operator or the like manually inputs the information while viewing the screen. However, since this is a task that requires a long experience and trial and error of the operator, it takes a very long time, and there is a limit in accuracy as the whole process is done manually.

대한민국 등록특허공보 제 10-0863507호 (2008. 10. 08)Republic of Korea Patent Publication No. 10-0863507 (2008. 10. 08)

본 발명의 실시예들은 감시 카메라 등의 영상에 3차원 템플릿을 효과적으로 오버레이하기 위한 수단을 제공하기 위한 것이다.
SUMMARY Embodiments of the present invention are to provide a means for effectively overlaying a 3D template on an image of a surveillance camera or the like.

본 발명의 예시적인 실시예에 따르면, 영상을 획득하고, 획득된 상기 영상에 3차원 템플릿을 중첩하여 오버레이 영상을 생성하는 템플릿 중첩 모듈; 및 상기 오버레이 영상에 기 설정된 가상 객체를 배치하고, 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 상기 3차원 템플릿의 특성 파라미터를 조정하는 템플릿 조정 모듈을 포함하는 영상의 3차원 보정 장치가 제공된다.According to an exemplary embodiment of the present invention, there is provided a template superimposition module for acquiring an image, and superimposing a 3D template on the acquired image to generate an overlay image; and a template adjustment module for arranging a preset virtual object on the overlay image, and adjusting a characteristic parameter of the three-dimensional template through feature comparison between the placed virtual object and a real object in the image. A calibration device is provided.

상기 템플릿 중첩 모듈은, 획득된 상기 영상과 함께 상기 하나 이상의 기 저장된 후보 템플릿을 화면 상에 디스플레이하며, 디스플레이된 상기 하나 이상의 후보 템플릿 중 어느 하나의 후보 템플릿이 선택됨에 따라, 선택된 후보 템플릿을 상기 영상에 중첩하여 오버레이 영상을 생성할 수 있다.The template overlapping module displays the one or more pre-stored candidate templates together with the acquired image on a screen, and when any one candidate template among the displayed one or more candidate templates is selected, the selected candidate template is displayed on the image An overlay image can be created by superimposing it on the .

상기 템플릿 중첩 모듈은, 상기 영상으로부터 상기 영상의 특징 정보를 추출하고, 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택하여 상기 오버레이 영상을 생성할 수 있다.The template overlay module may generate the overlay image by extracting feature information of the image from the image, and selecting a candidate template having the highest similarity to the extracted feature information from among pre-stored candidate templates.

상기 템플릿 중첩 모듈은, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택할 수 있다.The template overlapping module may select a candidate template having the highest degree of similarity to the extracted feature information from among pre-stored candidate templates based on at least one of a photographing area name of a camera that has captured the image or a keyword stored in association with the camera. have.

상기 템플릿 조정 모듈은, 기 저장된 하나 이상의 후보 가상 객체 중 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 상기 오버레이 영상에 배치할 수 있다.The template adjustment module may arrange a candidate virtual object having the highest similarity to the real object among one or more previously stored candidate virtual objects on the overlay image.

상기 템플릿 조정 모듈은, 사용자로부터 입력된 상기 실 객체의 크기와 저장된 상기 하나 이상의 후보 가상 객체의 크기를 비교함으로써 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 선택할 수 있다.The template adjustment module may select a candidate virtual object having the highest similarity to the real object by comparing the size of the real object input from the user with the stored size of the one or more candidate virtual objects.

상기 템플릿 조정 모듈은, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 가상 객체 중 상기 오버레이 영상에 배치할 후보 가상 객체를 선택할 수 있다.The template adjustment module may select a candidate virtual object to be placed on the overlay image from among previously stored candidate virtual objects based on at least one of a photographing area name of a camera that captured the image or a keyword stored in association with the camera.

상기 템플릿 조정 모듈은, 상기 실 객체가 상기 영상 내에서 이동함에 따라 측정되는 상기 실 객체의 상기 영상 내에서의 크기 변화, 및 상기 실 객체와 동일 위치에서 계산되는 상기 실 객체의 상기 3차원 템플릿 상에서의 크기 변화를 비교하고, 상기 비교 결과에 따라 상기 3차원 템플릿의 특성 파라미터를 조정할 수 있다.The template adjustment module is configured to: a size change in the image of the real object measured as the real object moves in the image, and a three-dimensional template of the real object calculated at the same location as the real object. A change in the size of may be compared, and the characteristic parameter of the 3D template may be adjusted according to the comparison result.

상기 특성 파라미터는, 상기 3차원 템플릿의 투사 높이, 투사 방향, 기울기, 화각 및 초점 위치 중 하나 이상을 포함할 수 있다.The characteristic parameter may include one or more of a projection height, a projection direction, an inclination, an angle of view, and a focal position of the 3D template.

상기 템플릿 조정 모듈은, 사용자로부터 상기 3차원 템플릿의 특성 파라미터 보정값이 입력되는 경우, 입력된 상기 입력값을 반영하여 상기 3차원 템플릿의 특성 파라미터를 조정할 수 있다.The template adjustment module may adjust the characteristic parameter of the 3D template by reflecting the input value when a correction value of the characteristic parameter of the 3D template is input by the user.

본 발명의 다른 예시적인 실시예에 따르면, 영상을 획득하고, 획득된 상기 영상에 3차원 템플릿을 중첩하여 오버레이 영상을 생성하는 단계; 및 상기 오버레이 영상에 기 설정된 가상 객체를 배치하고, 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 상기 3차원 템플릿의 특성 파라미터를 조정하는 단계를 포함하는 영상의 3차원 보정 방법이 제공된다.According to another exemplary embodiment of the present invention, generating an overlay image by acquiring an image, and superimposing a 3D template on the acquired image; and arranging a preset virtual object on the overlay image, and adjusting a characteristic parameter of the three-dimensional template through feature comparison between the placed virtual object and a real object in the image. this is provided

상기 오버레이 영상을 생성하는 단계는, 기 저장된 하나 이상의 후보 템플릿을 획득된 상기 영상과 함께 화면 상에 디스플레이하는 단계; 및 디스플레이된 상기 하나 이상의 후보 템플릿 중 어느 하나의 후보 템플릿이 선택됨에 따라, 선택된 후보 템플릿을 상기 영상에 중첩하는 단계를 더 포함할 수 있다.The generating of the overlay image may include: displaying one or more pre-stored candidate templates together with the obtained image on a screen; and overlaying the selected candidate template on the image as any one candidate template among the displayed one or more candidate templates is selected.

상기 특성 파라미터를 조정하는 단계는, 기 저장된 하나 이상의 후보 가상 객체 중 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 상기 오버레이 영상에 배치할 수 있다.The adjusting of the characteristic parameter may include disposing a candidate virtual object having the highest similarity to the real object among one or more previously stored candidate virtual objects on the overlay image.

상기 오버레이 영상을 생성하는 단계는, 상기 영상으로부터 상기 영상의 특징 정보를 추출하고, 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택하여 상기 오버레이 영상을 생성할 수 있다.The generating of the overlay image may include extracting feature information of the image from the image, and selecting a candidate template having the highest similarity to the extracted feature information from among pre-stored candidate templates to generate the overlay image.

상기 템플릿 중첩 모듈은, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택할 수 있다.The template overlapping module may select a candidate template having the highest degree of similarity to the extracted feature information from among pre-stored candidate templates based on at least one of a photographing area name of a camera that has captured the image or a keyword stored in association with the camera. have.

상기 특성 파라미터를 조정하는 단계는, 사용자로부터 입력된 상기 실 객체의 크기와 저장된 상기 하나 이상의 후보 가상 객체의 크기를 비교함으로써 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 선택할 수 있다.The adjusting of the characteristic parameter may include selecting a candidate virtual object having the highest similarity to the real object by comparing the size of the real object input from the user with the stored size of the one or more candidate virtual objects.

상기 특성 파라미터를 조정하는 단계는, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 가상 객체 중 상기 오버레이 영상에 배치할 후보 가상 객체를 선택할 수 있다.The adjusting of the characteristic parameter may include selecting a candidate virtual object to be placed in the overlay image from among pre-stored candidate virtual objects based on at least one of a photographing area name of a camera that captured the image or a keyword stored in association with the camera. can

상기 특성 파라미터를 조정하는 단계는, 상기 실 객체가 상기 영상 내에서 이동함에 따라 측정되는 상기 실 객체의 상기 영상 내에서의 크기 변화, 및 상기 실 객체와 동일 위치에서 계산되는 상기 실 객체의 상기 3차원 템플릿 상에서의 크기 변화를 비교하고, 상기 비교 결과에 따라 상기 3차원 템플릿의 특성 파라미터를 조정할 수 있다.The adjusting of the characteristic parameter may include: a size change in the image of the real object measured as the real object moves in the image, and the three values of the real object calculated at the same location as the real object. The size change on the dimension template may be compared, and the characteristic parameter of the three-dimensional template may be adjusted according to the comparison result.

상기 특성 파라미터는, 상기 3차원 템플릿의 투사 높이, 투사 방향, 기울기 화각 및 초점 위치 중 하나 이상을 포함할 수 있다.The characteristic parameter may include one or more of a projection height, a projection direction, a tilt angle of view, and a focal position of the 3D template.

상기 특성 파라미터를 조정하는 단계는, 사용자로부터 상기 3차원 템플릿의 특성 파라미터 보정값이 입력되는 경우, 입력된 상기 입력값을 반영하여 상기 3차원 템플릿의 특성 파라미터를 조정할 수 있다.
The adjusting of the characteristic parameter may include adjusting the characteristic parameter of the 3D template by reflecting the input value when a correction value of the characteristic parameter of the 3D template is input from the user.

본 발명의 실시예들에 따르면, 다양한 종류 및 형태의 3차원 템플릿을 미리 저장하여 두었다가, 촬영되는 영상의 특징에 따라 저장된 템플릿 중 적절하다고 판단되는 템플릿을 이용하여 실제 영상에 중첩함으로써 빠르고 용이하게 촬영 영상의 3차원 영상 보정 작업을 수행할 수 있다.According to the embodiments of the present invention, three-dimensional templates of various types and shapes are stored in advance, and then, using a template determined to be appropriate among the stored templates according to the characteristics of the image to be photographed, is superimposed on the actual image to quickly and easily shoot. 3D image correction of the image may be performed.

또한, 본 발명의 실시예들에 따르면 기 저장된 가상 객체를 상기 3차원 템플릿에 배치하고, 상기 가상 객체와 영상 내 실 객체 간의 특징 비교를 통해 상기 오버레이된 3차원 템플릿의 파라미터를 보정하여 줌으로써 3차원 영상 보정의 정확도를 향상시킬 수 있게 된다.In addition, according to embodiments of the present invention, a three-dimensional (3D) object is arranged by placing a pre-stored virtual object in the three-dimensional template and correcting parameters of the overlaid three-dimensional template through feature comparison between the virtual object and the real object in the image It is possible to improve the accuracy of image correction.

아울러, 본 발명의 실시예들에 따를 경우, 객체의 거리 변화 뿐만 아니라 카메라의 시야각 변화에 따른 객체의 크기 변화까지 보정이 가능하게 되는 장점이 있다.
In addition, according to the embodiments of the present invention, it is possible to correct not only the distance change of the object but also the change in the size of the object according to the change in the viewing angle of the camera.

도 1은 본 발명의 일 실시예에 따른 영상의 3차원 보정 장치(100)를 설명하기 위한 블록도
도 2는 본 발명의 일 실시예에 따른 3차원 템플릿을 설명하기 위한 예시도
도 3은 도 2에 도시된 3차원 템플릿이 영상에 중첩된 예를 나타낸 예시도
도 4는 도 3에 도시된 오버레이 영상에 가상 객체를 배치한 예를 나타낸 예시도
도 5는 본 발명의 일 실시예에 다른 템플릿 조정 모듈(106)에서의 3차원 템플릿의 특성 파라미터를 조정하는 과정을 설명하기 위한 예시도
도 6 및 도 7은 본 발명의 일 실시예에 따른 카메라의 특성값을 계산하기 위한 과정을 설명하기 위한 예시도
도 8은 본 발명의 일 실시예에 따른 영상의 3차원 보정 방법(800)을 설명하기 위한 흐름도
1 is a block diagram illustrating an apparatus 100 for correcting a 3D image according to an embodiment of the present invention.
2 is an exemplary diagram for explaining a three-dimensional template according to an embodiment of the present invention;
3 is an exemplary view showing an example in which the 3D template shown in FIG. 2 is superimposed on an image
4 is an exemplary view illustrating an example of arranging a virtual object on the overlay image shown in FIG. 3
5 is an exemplary diagram for explaining the process of adjusting the characteristic parameters of the three-dimensional template in the template adjustment module 106 according to an embodiment of the present invention.
6 and 7 are exemplary views for explaining a process for calculating a characteristic value of a camera according to an embodiment of the present invention;
8 is a flowchart illustrating a 3D correction method 800 of an image according to an embodiment of the present invention.

이하, 도면을 참조하여 본 발명의 구체적인 실시형태를 설명하기로 한다. 이하의 상세한 설명은 본 명세서에서 기술된 방법, 장치 및/또는 시스템에 대한 포괄적인 이해를 돕기 위해 제공된다. 그러나 이는 예시에 불과하며 본 발명은 이에 제한되지 않는다.Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. The following detailed description is provided to provide a comprehensive understanding of the methods, apparatus, and/or systems described herein. However, this is merely an example and the present invention is not limited thereto.

본 발명의 실시예들을 설명함에 있어서, 본 발명과 관련된 공지기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략하기로 한다. 그리고, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다. 상세한 설명에서 사용되는 용어는 단지 본 발명의 실시예들을 기술하기 위한 것이며, 결코 제한적이어서는 안 된다. 명확하게 달리 사용되지 않는 한, 단수 형태의 표현은 복수 형태의 의미를 포함한다. 본 설명에서, "포함" 또는 "구비"와 같은 표현은 어떤 특성들, 숫자들, 단계들, 동작들, 요소들, 이들의 일부 또는 조합을 가리키기 위한 것이며, 기술된 것 이외에 하나 또는 그 이상의 다른 특성, 숫자, 단계, 동작, 요소, 이들의 일부 또는 조합의 존재 또는 가능성을 배제하도록 해석되어서는 안 된다.
In describing the embodiments of the present invention, if it is determined that the detailed description of the known technology related to the present invention may unnecessarily obscure the gist of the present invention, the detailed description thereof will be omitted. In addition, the terms to be described later are terms defined in consideration of functions in the present invention, which may vary according to intentions or customs of users and operators. Therefore, the definition should be made based on the content throughout this specification. The terminology used in the detailed description is for the purpose of describing embodiments of the present invention only, and should in no way be limiting. Unless explicitly used otherwise, expressions in the singular include the meaning of the plural. In this description, expressions such as “comprising” or “comprising” are intended to indicate certain features, numbers, steps, acts, elements, some or a combination thereof, one or more other than those described. It should not be construed to exclude the presence or possibility of other features, numbers, steps, acts, elements, or any part or combination thereof.

도 1은 본 발명의 일 실시예에 따른 영상의 3차원 보정 장치(100)를 설명하기 위한 블록도이다. 본 발명의 일 실시예에 따른 영상의 3차원 보정 장치(100)는 2차원 영상에 3차원 템플릿을 중첩함으로써 상기 2차원 영상 내의 객체(피사체)의 3차원 공간상의 위치를 계산할 수 있도록 하기 위한 장치이다. 본 발명의 일 실시예에 따른 영상의 3차원 보정 장치(100)는 감시 카메라 등의 카메라 장치 내부의 일 요소로 포함되거나, 또는 감시 카메라 등과는 별도의 장치로 구성되어 상기 감시 카메라와 연결되도록 구성될 수 있다. 도시된 바와 같이, 본 발명의 일 실시예에 따른 영상의 3차원 보정 장치(100)는 데이터 저장 모듈(102), 템플릿 중첩 모듈(104) 및 템플릿 조정 모듈(106)을 포함한다.1 is a block diagram illustrating an apparatus 100 for correcting a 3D image according to an embodiment of the present invention. The apparatus 100 for correcting a 3D image according to an embodiment of the present invention is an apparatus for calculating a position in 3D space of an object (subject) in the 2D image by superimposing a 3D template on the 2D image to be. The three-dimensional correction apparatus 100 of an image according to an embodiment of the present invention is included as an element inside a camera device, such as a surveillance camera, or is configured as a separate device from the surveillance camera and connected to the surveillance camera. can be As shown, the apparatus 100 for correcting a 3D image according to an embodiment of the present invention includes a data storage module 102 , a template overlapping module 104 , and a template adjustment module 106 .

데이터 저장 모듈(102)은 감시 카메라 등으로부터 촬영된 영상에 중첩(overlay)될 하나 이상의 3차원 템플릿 및 하나 이상의 가상 객체를 저장하는 공간이다.The data storage module 102 is a space for storing one or more three-dimensional templates and one or more virtual objects to be overlaid on an image captured by a surveillance camera or the like.

본 발명의 일 실시예에서, 3차원 템플릿은 영상 내에 위치한 객체의 3차원 공간상의 위치를 계산하기 위한 일종의 가이드 라인으로서, 도 2에 도시된 바와 같이 화면 상의 바닥 또는 벽면 등을 표현하기 위한 복수 개의 격자(grid)를 포함하여 구성될 수 있다. 상기 3차원 템플릿을 구성하는 각각의 격자들은 2차원 화면 상에서는 그 크기가 모두 다른 것으로 보이더라도 실제 공간 내에서는 동일한 크기의 공간에 해당하는 바, 영상에 중첩된 상기 3차원 템플릿을 이용하면 화면 상 객체의 실제 공간 상에서의 크기 및 위치를 계산할 수 있게 된다. 도 3은 도 2에 도시된 3차원 템플릿이 영상에 중첩된 예를 나타낸 것이다.In one embodiment of the present invention, the 3D template is a guideline for calculating the position in 3D space of an object located in an image, and as shown in FIG. 2 , a plurality of It may be configured to include a grid. Each grid constituting the three-dimensional template corresponds to a space of the same size in the real space even though the sizes appear to be different on the two-dimensional screen. When the three-dimensional template superimposed on the image is used, the object on the screen It becomes possible to calculate the size and position of in real space. 3 shows an example in which the 3D template shown in FIG. 2 is superimposed on an image.

데이터 저장 모듈(102)은 서로 다른 하나 이상의 3차원 템플릿을 저장할 수 있다. 예를 들어, 데이터 저장 모듈(102)는 평지, 도로, 교차로, 출입구, 사무실, 복도 등 공간의 특성에 따라 서로 다른 형태를 가진 3차원 템플릿을 저장해 둘 수 있다.The data storage module 102 may store one or more different three-dimensional templates. For example, the data storage module 102 may store three-dimensional templates having different shapes according to the characteristics of spaces, such as a flat ground, a road, an intersection, an entrance, an office, and a hallway.

또한, 가상 객체는 영상 내에 3차원 템플릿과 함께 중첩되어 표시되기 위한 일종의 가상 물체로서, 사람(남자, 여자, 아이 등), 차량(승합차, 버스, 승용차 등), 가로수, 가로등 등의 형상을 가질 수 있다. 데이터 저장 모듈(102)은 상기 가상 객체와 함께 각 객체의 크기 정보(높이, 넓이 등)을 함께 저장할 수 있다. 상기 가상 객체는 영상 내 실 객체와의 비교를 통해 상기 3차원 템플릿을 보정하는 데 이용된다. 도 4는 도 3에 도시된 오버레이 영상에 가상 객체(나무, 사람, 자동차 등)를 배치한 예를 나타낸 것이다.In addition, a virtual object is a kind of virtual object to be displayed overlaid with a 3D template in an image, and has the shape of a person (man, woman, child, etc.), vehicle (van, bus, passenger car, etc.), street tree, street lamp, etc. can The data storage module 102 may store size information (height, width, etc.) of each object together with the virtual object. The virtual object is used to correct the 3D template through comparison with the real object in the image. FIG. 4 illustrates an example of arranging virtual objects (trees, people, cars, etc.) on the overlay image shown in FIG. 3 .

템플릿 중첩 모듈(104)은 카메라 등으로부터 영상을 획득하고, 획득된 상기 영상에 3차원 템플릿을 중첩하여 오버레이 영상을 생성한다. The template overlay module 104 acquires an image from a camera or the like, and superimposes a 3D template on the acquired image to generate an overlay image.

일 실시예에서, 템플릿 중첩 모듈(104)은 영상에 중첩될 하나 이상의 3차원 템플릿(후보 템플릿)의 정보를 데이터 저장 모듈(102)에 저장 및 관리하고, 획득된 상기 영상과 함께 상기 하나 이상의 3차원 템플릿을 화면 상에 디스플레이할 수 있다. 그러면 사용자는 상기 디스플레이된 3차원 템플릿 중 어느 하나를 선택하며, 템플릿 중첩 모듈(104)은 선택된 후보 템플릿을 상기 영상에 중첩하여 오버레이 영상을 생성할 수 있다. In one embodiment, the template overlay module 104 stores and manages information of one or more three-dimensional templates (candidate templates) to be superimposed on an image in the data storage module 102, and stores and manages the one or more three-dimensional templates (candidate templates) together with the obtained image. A dimension template can be displayed on the screen. Then, the user selects any one of the displayed 3D templates, and the template overlay module 104 may generate an overlay image by superimposing the selected candidate template on the image.

다른 실시예에서 템플릿 중첩 모듈(104)은 획득된 상기 영상의 특성(화상 내 지평선 존재 유무, 주요 특징 선의 위치 및 연결 관계 등)을 도출하고, 도출된 특성에 맞는 최적의 3차원 템플릿을 자동으로 선택하도록 구성될 수도 있다. 이를 위하여, 템플릿 중첩 모듈(104)은 영상 내 특성 정보를 도출할 수 있는 다양한 알고리즘을 이용할 수 있다. 또한, 이를 위하여 템플릿 중첩 모듈(104)은 영상 내 주요 특징선의 위치 및 연결 관계를 정확하게 인식하기 위하여, 화면 내의 객체 및 그 유형(자동차, 사람 등)을 인식하는 알고리즘을 포함할 수 있다.In another embodiment, the template overlapping module 104 derives the characteristics of the obtained image (the presence or absence of a horizon in the image, the position and connection relationship of main feature lines, etc.), and automatically selects an optimal 3D template suitable for the derived characteristics. It may be configured to select. To this end, the template overlapping module 104 may use various algorithms capable of deriving characteristic information in the image. Also, for this purpose, the template overlapping module 104 may include an algorithm for recognizing an object and its type (car, person, etc.) in the screen in order to accurately recognize the position and connection relationship of the main feature lines in the image.

또한, 템플릿 중첩 모듈(104)은 영상을 촬영한 카메라의 정보를 이용하여 최적의 3차원 템플릿을 선택할 수도 있다. 예를 들어, 영상을 촬영한 카메라에 촬영 구역 또는 촬영 지역 등에 대한 명칭(포스코 사거리, 남산1호터널 등)이 부가되어 있거나, 이와 별도로 촬영 구역의 형태를 인식할 수 있는 키워드 등(출입구, 사거리, 회의실, 복도 등)이 부가되어 있는 경우, 템플릿 중첩 모듈(104)은 이를 기초로 기 저장된 템플릿 중 최적의 템플릿을 선택하는 데 이용할 수 있다. Also, the template overlapping module 104 may select an optimal 3D template using information of a camera that has captured an image. For example, the name of the shooting area or shooting area (POSCO Intersection, Namsan No. 1 Tunnel, etc.) is added to the camera that captured the video, or keywords that can recognize the shape of the shooting area separately (entrance, intersection, etc.) , conference room, hallway, etc.) is added, the template overlapping module 104 may be used to select an optimal template from among pre-stored templates based on this.

템플릿 조정 모듈(106)은 템플릿 중첩 모듈(104)에서 생성된 상기 오버레이 영상에 가상 객체를 배치하고, 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 상기 3차원 템플릿의 특성 파라미터를 조정한다.The template adjustment module 106 arranges a virtual object on the overlay image generated by the template overlay module 104, and compares the placed virtual object with a real object in the image to obtain a characteristic parameter of the three-dimensional template. to adjust

본 발명의 실시예에서, 상기 특성 파라미터란 상기 3차원 템플릿의 투사 높이, 투사 방향, 기울기, 화각 및 초점 위치 중 하나 이상을 포함하는 정보로서, 주로 상기 3차원 템플릿의 지면 부분을 실제 영상의 지면과 일치시키는 데 필요한 정보를 의미한다. 상기 특성 파라미터는 영상을 촬영한 카메라 등의 설치 높이, 렌즈 종류(초점거리 등), 틸트각 등에 따라 달라지게 되므로, 상기 3차원 템플릿의 특성 파라미터가 계산되면 이로부터 카메라의 설치 높이, 각도 피사체로부터의 거리, 화각 등의 정보를 계산할 수 있게 된다.In an embodiment of the present invention, the characteristic parameter is information including at least one of a projection height, a projection direction, a tilt, an angle of view, and a focal position of the 3D template, and is mainly based on the ground portion of the 3D template on the ground of the actual image. information necessary to match Since the characteristic parameter varies depending on the installation height, lens type (focal length, etc.), tilt angle, etc. of a camera that has taken an image, when the characteristic parameter of the three-dimensional template is calculated, the installation height of the camera and angle from the subject It becomes possible to calculate information such as distance and angle of view.

구체적으로, 템플릿 조정 모듈(106)은, 데이터 저장 모듈(102)에 저장된 하나 이상의 가상 객체 중 영상 내 실 객체의 크기와 유사도가 가장 높은 후보 가상 객체를 선택하여 오버레이 영상에 배치할 수 있다. 이를 위하여 템플릿 조정 모듈(106)은 사용자로부터 상기 영상 내 실 객체의 크기 정보(키 또는 넓이 등)을 입력받을 수 있다. 예를 들어, 화면 상에 키 160센티미터의 여성이 존재하는 경우, 템플릿 조정 모듈(106)은 상기 여성과 동일한 키를 가지는 가상 객체를 오버레이 영상에 배치할 수 있다. 또한, 템플릿 조정 모듈(106)은 상기 영상의 특성에 따라 자동으로 최적의 가상 객체를 오버레이 영상에 배치할 수 있다. 예를 들어 상기 영상이 교차로일 경우 차량을, 복도 또는 출입구의 경우에는 사람을 가상 객체로 배치할 수 있다. 이와 같은 영상의 특성은 전술한 바와 같은 영상을 촬영한 카메라의 명칭 또는 키워드 등을 이용하여 알아낼 수 있다.Specifically, the template adjustment module 106 may select a candidate virtual object having the highest similarity to the size of the real object in the image from among one or more virtual objects stored in the data storage module 102 and place it on the overlay image. To this end, the template adjustment module 106 may receive size information (such as height or width) of the real object in the image from the user. For example, when a woman having a height of 160 cm exists on the screen, the template adjustment module 106 may arrange a virtual object having the same height as the woman on the overlay image. Also, the template adjustment module 106 may automatically place an optimal virtual object on the overlay image according to the characteristics of the image. For example, when the image is an intersection, a vehicle may be disposed as a virtual object, and in the case of a hallway or an entrance, a person may be disposed. Such characteristics of the image can be found by using the name or keyword of the camera that captured the image as described above.

상기 가상 객체의 영상 내에서의 크기는 영상 내 상기 가상 객체의 위치 및 중첩된 3차원 템플릿으로부터 획득된 정보에 따라 달라지게 된다. 예를 들어 동일한 크기의 가상 객체라도 3차원 템플릿 상에서 카메라에서 멀리 떨어진 거리에 있는 것으로 판단되는 위치의 가상 객체는 그보다 가까운 거리에 있는 것으로 판단되는 위치의 가상 객체보다 화면상의 크기가 작아지게 된다.The size of the virtual object in the image varies according to the position of the virtual object in the image and information obtained from the superimposed 3D template. For example, even if a virtual object of the same size is a virtual object at a location determined to be far from the camera on the 3D template, the size on the screen is smaller than a virtual object at a location determined to be closer than that.

상기와 같이 오버레이 영상 내에 가상 객체가 배치되면, 템플릿 조정 모듈(106)은 영상 내 실 객체와 가상 객체를 비교함으로써 상기 3차원 템플릿의 특성 파라미터를 조정한다. 구체적으로, 템플릿 조정 모듈(106)은 상기 실 객체가 상기 영상 내에서 이동함에 따라 측정되는 상기 실 객체의 상기 영상 내에서의 크기 변화 및, 상기 실 객체와 동일 위치에서 계산되는 상기 실 객체의 상기 3차원 템플릿 상에서의 크기 변화를 비교하고, 상기 비교 결과에 따라 상기 3차원 템플릿의 특성 파라미터를 조정하게 된다. 즉, 본 발명에서 실 객체 또는 가상 객체의 특징이란 해당 객체가 영상 내에서 이동할 때의 크기 변화의 정도를 의미한다. 이를 좀 더 구체적으로 설명하면 다음과 같다.When the virtual object is arranged in the overlay image as described above, the template adjustment module 106 adjusts the characteristic parameter of the 3D template by comparing the real object and the virtual object in the image. Specifically, the template adjustment module 106 is configured to configure a size change in the image of the real object measured as the real object moves in the image, and a change in size of the real object calculated at the same location as the real object. The size change on the 3D template is compared, and the characteristic parameter of the 3D template is adjusted according to the comparison result. That is, in the present invention, the characteristic of a real object or a virtual object means a degree of change in size when the corresponding object moves in an image. A more detailed explanation of this is as follows.

도 5는 본 발명의 일 실시예에 다른 템플릿 조정 모듈(106)에서의 3차원 템플릿의 특성 파라미터를 조정하는 과정을 설명하기 위한 예시도이다. 도시된 예에서 502는 영상 내 실 객체를, 504는 가상 객체를 각각 나타낸다. 도시된 바와 같이, 영상 내의 실 객체(예를 들어, 사람)이 위치 A에서 위치 B로 이동함에 따라 그 높이(키)가 h1에서 h1'로 변경되었다고, 같은 위치에서 가상 객체 504의 경우 그 높이(키)가 h2에서 h2'로 변경되었다고 가정하자. 전술한 바와 같이, 가상 객체의 영상 내에서의 크기는 영상에 중첩된 3차원 템플릿의 특성 파라미터에 따라 결정된다. 따라서 만약 h1는 h2와 동일한데, h1'이 h2'와 동일하지 아니할 경우에는 중첩된 3차원 템플릿의 특성 파라미터가 실제 공간과 일치하지 않음을 의미하므로, 템플릿 조정 모듈(106)은 상기 3차원 템플릿의 투사 높이, 투사 방향, 기울기, 화각 및 초점 위치 중 하나 이상을 변경함으로써 상기 특성 파라미터를 조정하게 된다. 이와 같은 조정은 영상 내 실 객체의 이동에 따른 변화가 가상 객체와 동일해질 때까지 반복된다. 5 is an exemplary diagram for explaining a process of adjusting the characteristic parameter of a 3D template in the template adjustment module 106 according to an embodiment of the present invention. In the illustrated example, 502 denotes a real object in the image, and 504 denotes a virtual object, respectively. As shown, as a real object (eg, a person) in the image moves from position A to position B, its height (height) is changed from h1 to h1'. In the case of a virtual object 504 at the same position, the height Assume that (key) is changed from h2 to h2'. As described above, the size of the virtual object in the image is determined according to the characteristic parameter of the 3D template superimposed on the image. Therefore, if h1 is the same as h2, but h1' is not the same as h2', it means that the characteristic parameters of the overlapped three-dimensional template do not match the real space, so the template adjustment module 106 is the three-dimensional template The characteristic parameter is adjusted by changing one or more of the projection height, projection direction, tilt, angle of view, and focal position of . Such adjustment is repeated until the change according to the movement of the real object in the image becomes the same as that of the virtual object.

또한, 템플릿 조정 모듈(106)은 사용자로부터 상기 특성 파라미터에 대한 보정값을 입력받고 이를 상기 특성 파라미터 조정에 반영할 수 있다. 이를 위하여 템플릿 조정 모듈(106)은 사용자가 키보드, 마우스 또는 화면 터치 등을 이용하여 직관적으로 템플릿을 조정하기 위한 인터페이스를 제공할 수 있다. 이와 같이 템플릿 조정 모듈(106)에서 영상 내 객체의 크기 변화와 함께 사용자로부터 입력된 보정값을 사용할 경우 상기 특성 파라미터의 정확성을 한층 높일 수 있게 된다.Also, the template adjustment module 106 may receive a correction value for the characteristic parameter from the user and reflect it in the adjustment of the characteristic parameter. To this end, the template adjustment module 106 may provide an interface for the user to intuitively adjust the template using a keyboard, mouse, or screen touch. As such, when the template adjustment module 106 uses the correction value input by the user along with the change in the size of the object in the image, the accuracy of the characteristic parameter can be further increased.

상기와 같이 3차원 템플릿이 조정되면, 영상 내 객체로부터 카메라의 설치 특성 값을 계산할 수 있다. 도 6 및 도 7은 이를 설명하기 위한 것이다. 도시된 바와 같이, 화면상에 객체 A 및 객체 B의 두 객체가 존재하고, 객체 A는 카메라로부터 연결되는 중심선(점선으로 표시) 상에 위치하며, 객체 B는 객체 A와 각도 x 만큼 떨어진 곳에 위치한다고 가정하자.When the 3D template is adjusted as described above, the installation characteristic value of the camera can be calculated from the object in the image. 6 and 7 are for explaining this. As shown, there are two objects, object A and object B, on the screen, object A is located on the center line (indicated by a dotted line) connected from the camera, and object B is located at an angle x distance from object A Suppose we do

객체 A와 객체 B의 거리를 y, 객체 B와 중심선과의 거리를 z라 하면, 카메라의 설치 위치(cl)은 다음과 같이 계산될 수 있다.
Assuming that the distance between the object A and the object B is y and the distance between the object B and the center line is z, the installation position cl of the camera can be calculated as follows.

cl = z / tan(x) + y
cl = z / tan(x) + y

객체 A의 화면상의 크기를 ah, 객체B의 화면상의 크기를 bh라 하면, 카메라 설치 높이(ch)는 다음과 같이 계산될 수 있다.
Assuming that the size of the object A on the screen is ah and the size of the object B on the screen is bh, the camera installation height ch can be calculated as follows.

ch = (bh - ah) * cl / y
ch = (bh - ah) * cl / y

이로부터 카메라의 화각(cv) 및 설치각(ct)은 다음과 같이 계산될 수 있다.
From this, the angle of view (cv) and the installation angle (ct) of the camera can be calculated as follows.

cv = arctan(ch / cl)cv = arctan(ch/cl)

ct = 90 - arctan(ch / cl)
ct = 90 - arctan(ch/cl)

도 8은 본 발명의 일 실시예에 따른 영상의 3차원 보정 방법(800)을 설명하기 위한 흐름도이다.8 is a flowchart illustrating a 3D correction method 800 of an image according to an embodiment of the present invention.

단계 802에서, 템플릿 중첩 모듈(104)은 사용자 등으로부터 영상이 중첩할 3차원 템플릿을 선택받는다. 이를 위하여 템플릿 중첩 모듈(102)은 사용자가 시각적으로 기 저장된 템플릿을 열람하고 이 중 영상에 적합한 템플릿을 선택하도록 하기 위한 적절한 인터페이스를 제공할 수 있다. 예를 들어, 템플릿 중첩 모듈(104)은 기 저장된 하나 이상의 후보 템플릿을 획득된 상기 영상과 함께 화면 상에 디스플레이하고, 디스플레이된 상기 하나 이상의 후보 템플릿 중 어느 하나의 후보 템플릿이 선택되도록 할 수 있다.In step 802 , the template overlay module 104 receives a selection of a 3D template on which an image is to be superposed from a user or the like. To this end, the template overlapping module 102 may provide an appropriate interface for the user to visually browse pre-stored templates and select a template suitable for an image among them. For example, the template overlapping module 104 may display one or more pre-stored candidate templates together with the obtained image on a screen, and select any one candidate template from among the displayed one or more candidate templates.

단계 804에서, 템플릿 중첩 모듈(104)은 선택된 템플릿에 대한 설정값(특성 파라미터 등)에 대한 입력이 필요한지 여부를 판단하고, 만약 필요하다고 판단되는 경우에는 단계 806에서 사용자로부터 이를 입력받는다.In step 804 , the template nesting module 104 determines whether an input for a set value (a characteristic parameter, etc.) for the selected template is necessary, and if it is determined that it is necessary, receives it from the user in step 806 .

단계 808에서, 템플릿 조정 모듈(106)은 사용자 등으로부터 영상에 배치할 가상 객체를 입력받는다. 이때 상기 가상 객체는 기 저장된 하나 이상의 후보 가상 객체 중에서 상기 실 객체와 유사도가 가장 높은 후보 가상 객체일 수 있다.In step 808, the template adjustment module 106 receives a virtual object to be placed on the image from a user or the like. In this case, the virtual object may be a candidate virtual object having the highest degree of similarity to the real object among one or more previously stored candidate virtual objects.

단계 810에서, 템플릿 조정 모듈(106)은 선택된 가상 객체에 대한 설정값(객체의 높이 또는 길이 등)에 대한 입력이 필요한지 여부를 판단하고, 만약 필요하다고 판단되는 경우에는 단계 812에서 사용자로부터 이를 입력받는다.In step 810, the template adjustment module 106 determines whether it is necessary to input a set value (such as the height or length of the object) for the selected virtual object, and if it is determined that it is necessary, input it from the user in step 812 receive

단계 814에서, 템플릿 조정 모듈(106)은 영상 내에 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 가상 객체와 실 개체의 특징이 일치하는지의 여부를 판단한다. 전술한 바와 같이, 템플릿 조정 모듈(106)은 상기 실 객체가 상기 영상 내에서 이동함에 따라 측정되는 상기 실 객체의 상기 영상 내에서의 크기 변화, 및 상기 실 객체와 동일 위치에서 계산되는 상기 실 객체의 상기 3차원 템플릿 상에서의 크기 변화를 비교하고, 상기 비교 결과에 따라 상기 3차원 템플릿의 특성 파라미터를 조정할 수 있다.In step 814 , the template adjustment module 106 determines whether the characteristics of the virtual object and the real object coincide with each other through feature comparison between the virtual object disposed in the image and the real object in the image. As described above, the template adjustment module 106 is configured to include a change in size of the real object in the image measured as the real object moves in the image, and the real object calculated at the same location as the real object. may compare the size change on the 3D template, and adjust the characteristic parameter of the 3D template according to the comparison result.

만약 상기 814 단계의 판단 결과 실 객체와 가상 객체의 특징이 일치하지 않는 경우, 단계 816에서 템플릿 조정 모듈(106)은 상기 특징이 일치할 때 까지 템플릿의 특성 파라미터를 조절한다.If it is determined in step 814 that the characteristics of the real object and the virtual object do not match, the template adjustment module 106 adjusts the characteristic parameters of the template until the characteristics match in step 816 .

단계 818에서, 템플릿 조정 모듈(106)은 사용자로부터 가상 객체의 추가 요청이 수신되는지의 여부를 판단하고, 가상 객체의 추가 요청이 있는 경우 새로 선택된 가상 객체에 대하여 상기 808 단계 이하를 반복 수행한다.
In step 818, the template adjustment module 106 determines whether a request for adding a virtual object is received from the user, and if there is a request for adding a virtual object, repeats steps 808 and below for the newly selected virtual object.

한편, 본 발명의 실시예는 본 명세서에서 기술한 방법들을 컴퓨터상에서 수행하기 위한 프로그램을 포함하는 컴퓨터 판독 가능 기록매체를 포함할 수 있다. 상기 컴퓨터 판독 가능 기록매체는 프로그램 명령, 로컬 데이터 파일, 로컬 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체는 본 발명을 위하여 특별히 설계되고 구성된 것들이거나, 또는 컴퓨터 소프트웨어 분야에서 통상적으로 사용 가능한 것일 수 있다. 컴퓨터 판독 가능 기록매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광 기록 매체, 플로피 디스크와 같은 자기-광 매체, 및 롬, 램, 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다.Meanwhile, an embodiment of the present invention may include a computer-readable recording medium including a program for performing the methods described in this specification on a computer. The computer-readable recording medium may include program instructions, local data files, local data structures, and the like alone or in combination. The medium may be specially designed and configured for the present invention, or may be commonly used in the field of computer software. Examples of the computer-readable recording medium include hard disks, magnetic media such as floppy disks and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floppy disks, and ROMs, RAMs, flash memories, and the like. Hardware devices specifically configured to store and execute program instructions are included. Examples of program instructions may include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like.

이상에서 본 발명의 대표적인 실시예들을 상세하게 설명하였으나, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 상술한 실시예에 대하여 본 발명의 범주에서 벗어나지 않는 한도 내에서 다양한 변형이 가능함을 이해할 것이다. 그러므로 본 발명의 권리범위는 설명된 실시예에 국한되어 정해져서는 안 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.
Although representative embodiments of the present invention have been described in detail above, those of ordinary skill in the art to which the present invention pertains will understand that various modifications are possible without departing from the scope of the present invention with respect to the above-described embodiments. . Therefore, the scope of the present invention should not be limited to the described embodiments and should be defined by the claims described below as well as the claims and equivalents.

100: 영상의 3차원 보정 장치
102: 데이터 저장 모듈
104: 템플릿 중첩 모듈
106: 템플릿 조정 모듈
100: three-dimensional correction device of the image
102: data storage module
104: Template nested module
106: template adjustment module

Claims (20)

영상을 획득하고, 획득된 상기 영상에 3차원 템플릿을 중첩하여 오버레이 영상을 생성하는 템플릿 중첩 모듈; 및
상기 오버레이 영상에 기 설정된 가상 객체를 배치하고, 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 상기 3차원 템플릿의 특성 파라미터를 조정하는 템플릿 조정 모듈을 포함하고,
상기 템플릿 조정 모듈은, 상기 실 객체가 상기 영상 내에서 이동함에 따라 측정되는 상기 실 객체의 상기 영상 내에서의 크기 변화, 및 상기 실 객체와 동일 위치에서 계산되는 상기 실 객체의 상기 3차원 템플릿 상에서의 크기 변화를 비교하고, 상기 비교 결과에 따라 상기 3차원 템플릿의 특성 파라미터를 조정하는, 영상의 3차원 보정 장치.
a template overlapping module for acquiring an image and superimposing a 3D template on the acquired image to generate an overlay image; and
a template adjustment module for arranging a preset virtual object on the overlay image, and adjusting a characteristic parameter of the three-dimensional template through feature comparison between the placed virtual object and a real object in the image;
The template adjustment module is configured to: a size change in the image of the real object measured as the real object moves in the image, and a three-dimensional template of the real object calculated at the same location as the real object. A three-dimensional correction apparatus for an image, comparing the size change of , and adjusting the characteristic parameter of the three-dimensional template according to the comparison result.
청구항 1에 있어서,
상기 템플릿 중첩 모듈은,
획득된 상기 영상과 함께 하나 이상의 기 저장된 후보 템플릿을 화면 상에 디스플레이하며,
디스플레이된 상기 하나 이상의 후보 템플릿 중 어느 하나의 후보 템플릿이 선택됨에 따라, 선택된 후보 템플릿을 상기 영상에 중첩하여 오버레이 영상을 생성하는, 영상의 3차원 보정 장치.
The method according to claim 1,
The template nesting module is
Displaying one or more pre-stored candidate templates together with the obtained image on the screen,
When any one candidate template among the displayed one or more candidate templates is selected, the selected candidate template is superimposed on the image to generate an overlay image.
청구항 1에 있어서,
상기 템플릿 중첩 모듈은, 상기 영상으로부터 상기 영상의 특징 정보를 추출하고, 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택하여 상기 오버레이 영상을 생성하는, 영상의 3차원 보정 장치.
The method according to claim 1,
The template overlay module extracts feature information of the image from the image, selects a candidate template having the highest similarity to the extracted feature information from among pre-stored candidate templates to generate the overlay image, 3D correction of the image Device.
청구항 3에 있어서,
상기 템플릿 중첩 모듈은, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택하는, 영상의 3차원 보정 장치.
4. The method according to claim 3,
The template overlapping module is configured to select a candidate template having the highest degree of similarity to the extracted feature information from among pre-stored candidate templates based on at least one of a photographing area name of a camera that has captured the image or a keyword stored in association with the camera. , a three-dimensional correction device for images.
청구항 1에 있어서,
상기 템플릿 조정 모듈은, 기 저장된 하나 이상의 후보 가상 객체 중 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 상기 오버레이 영상에 배치하는, 영상의 3차원 보정 장치.
The method according to claim 1,
The template adjustment module is configured to arrange, on the overlay image, a candidate virtual object having the highest similarity to the real object among one or more previously stored candidate virtual objects.
청구항 5에 있어서,
상기 템플릿 조정 모듈은, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 가상 객체 중 상기 오버레이 영상에 배치할 후보 가상 객체를 선택하는, 영상의 3차원 보정 장치.
6. The method of claim 5,
The template adjustment module is configured to select a candidate virtual object to be placed in the overlay image from among previously stored candidate virtual objects based on at least one of a photographing area name of a camera that has captured the image or a keyword stored in association with the camera, of the three-dimensional correction device.
청구항 5에 있어서,
상기 템플릿 조정 모듈은, 사용자로부터 입력된 상기 실 객체의 크기와 저장된 상기 하나 이상의 후보 가상 객체의 크기를 비교함으로써 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 선택하는, 영상의 3차원 보정 장치.
6. The method of claim 5,
The template adjustment module is configured to select a candidate virtual object having the highest similarity to the real object by comparing the size of the real object input from the user with the stored size of the one or more candidate virtual objects.
삭제delete 청구항 1에 있어서,
상기 특성 파라미터는, 상기 3차원 템플릿의 투사 높이, 투사 방향, 기울기, 화각 및 초점 위치 중 하나 이상을 포함하는, 영상의 3차원 보정 장치.
The method according to claim 1,
The characteristic parameter includes at least one of a projection height, a projection direction, a tilt, an angle of view, and a focal position of the 3D template.
청구항 1에 있어서,
상기 템플릿 조정 모듈은, 사용자로부터 상기 3차원 템플릿의 특성 파라미터 보정값이 입력되는 경우, 입력된 입력값을 반영하여 상기 3차원 템플릿의 특성 파라미터를 조정하는, 영상의 3차원 보정 장치.
The method according to claim 1,
wherein the template adjustment module adjusts the characteristic parameter of the 3D template by reflecting the input value when a correction value of the characteristic parameter of the 3D template is input from the user.
영상을 획득하고, 획득된 상기 영상에 3차원 템플릿을 중첩하여 오버레이 영상을 생성하는 단계; 및
상기 오버레이 영상에 기 설정된 가상 객체를 배치하고, 배치된 상기 가상 객체와 상기 영상 내 실 객체와의 특징 비교를 통해 상기 3차원 템플릿의 특성 파라미터를 조정하는 단계를 포함하고,
상기 특성 파라미터를 조정하는 단계는,
상기 실 객체가 상기 영상 내에서 이동함에 따라 측정되는 상기 실 객체의 상기 영상 내에서의 크기 변화, 및 상기 실 객체와 동일 위치에서 계산되는 상기 실 객체의 상기 3차원 템플릿 상에서의 크기 변화를 비교하고, 상기 비교 결과에 따라 상기 3차원 템플릿의 특성 파라미터를 조정하는, 영상의 3차원 보정 방법.
generating an overlay image by acquiring an image and superimposing a 3D template on the acquired image; and
disposing a preset virtual object on the overlay image, and adjusting a characteristic parameter of the three-dimensional template through feature comparison between the placed virtual object and a real object in the image,
Adjusting the characteristic parameter comprises:
comparing the size change in the image of the real object measured as the real object moves in the image, and the size change in the 3D template of the real object calculated at the same location as the real object, , a three-dimensional correction method of an image for adjusting the characteristic parameter of the three-dimensional template according to the comparison result.
청구항 11에 있어서,
상기 오버레이 영상을 생성하는 단계는,
기 저장된 하나 이상의 후보 템플릿을 획득된 상기 영상과 함께 화면 상에 디스플레이하는 단계; 및
디스플레이된 상기 하나 이상의 후보 템플릿 중 어느 하나의 후보 템플릿이 선택됨에 따라, 선택된 후보 템플릿을 상기 영상에 중첩하는 단계를 더 포함하는, 영상의 3차원 보정 방법.
12. The method of claim 11,
The step of generating the overlay image comprises:
displaying one or more pre-stored candidate templates together with the obtained image on a screen; and
The method of claim 1, further comprising: superimposing the selected candidate template on the image as any one candidate template among the displayed one or more candidate templates is selected.
청구항 11에 있어서,
상기 오버레이 영상을 생성하는 단계는,
상기 영상으로부터 상기 영상의 특징 정보를 추출하고, 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택하여 상기 오버레이 영상을 생성하는, 영상의 3차원 보정 방법.
12. The method of claim 11,
The step of generating the overlay image comprises:
A 3D correction method of an image, comprising extracting feature information of the image from the image, and generating the overlay image by selecting a candidate template having the highest similarity to the extracted feature information from among pre-stored candidate templates.
청구항 13에 있어서,
상기 오버레이 영상을 생성하는 단계는, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 템플릿 중 추출된 상기 특징 정보와 유사도가 가장 높은 후보 템플릿을 선택하는, 영상의 3차원 보정 방법.
14. The method of claim 13,
The generating of the overlay image may include: a candidate template having the highest similarity to the feature information extracted from pre-stored candidate templates based on at least one of a photographing area name of a camera capturing the image or a keyword stored in association with the camera A three-dimensional correction method of the image to select.
청구항 11에 있어서,
상기 특성 파라미터를 조정하는 단계는, 기 저장된 하나 이상의 후보 가상 객체 중 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 상기 오버레이 영상에 배치하는, 영상의 3차원 보정 방법.
12. The method of claim 11,
The adjusting of the characteristic parameter may include disposing a candidate virtual object having the highest similarity to the real object among one or more previously stored candidate virtual objects in the overlay image.
청구항 15에 있어서,
상기 특성 파라미터를 조정하는 단계는, 상기 영상을 촬영한 카메라의 촬영 구역 명칭 또는 상기 카메라와 연관되어 저장된 키워드 중 하나 이상에 기초하여 기 저장된 후보 가상 객체 중 상기 오버레이 영상에 배치할 후보 가상 객체를 선택하는, 영상의 3차원 보정 방법.
16. The method of claim 15,
The adjusting of the characteristic parameter may include selecting a candidate virtual object to be placed in the overlay image from among pre-stored candidate virtual objects based on at least one of a photographing area name of a camera that captured the image or a keyword stored in association with the camera. A three-dimensional correction method of an image.
청구항 15에 있어서,
상기 특성 파라미터를 조정하는 단계는, 사용자로부터 입력된 상기 실 객체의 크기와 저장된 상기 하나 이상의 후보 가상 객체의 크기를 비교함으로써 상기 실 객체와 유사도가 가장 높은 후보 가상 객체를 선택하는, 영상의 3차원 보정 방법.
16. The method of claim 15,
The adjusting of the characteristic parameter may include selecting a candidate virtual object having the highest similarity to the real object by comparing the size of the real object input from a user with the stored size of the one or more candidate virtual objects. Calibration method.
삭제delete 청구항 11에 있어서,
상기 특성 파라미터는, 상기 3차원 템플릿의 투사 높이, 투사 방향, 기울기 화각 및 초점 위치 중 하나 이상을 포함하는, 영상의 3차원 보정 방법.
12. The method of claim 11,
The characteristic parameter includes at least one of a projection height, a projection direction, an inclination angle of view, and a focal position of the 3D template.
청구항 11에 있어서,
상기 특성 파라미터를 조정하는 단계는, 사용자로부터 상기 3차원 템플릿의 특성 파라미터 보정값이 입력되는 경우, 입력된 입력값을 반영하여 상기 3차원 템플릿의 특성 파라미터를 조정하는, 영상의 3차원 보정 방법.
12. The method of claim 11,
In the adjusting of the characteristic parameter, when a correction value of the characteristic parameter of the 3D template is input from a user, the characteristic parameter of the 3D template is adjusted by reflecting the input value.
KR1020140058335A 2014-05-15 2014-05-15 Apparatus and method for three-dimensional calibration of video image KR102264111B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020140058335A KR102264111B1 (en) 2014-05-15 2014-05-15 Apparatus and method for three-dimensional calibration of video image
PCT/KR2015/004762 WO2015174724A1 (en) 2014-05-15 2015-05-12 Device and method for three-dimensionally correcting image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140058335A KR102264111B1 (en) 2014-05-15 2014-05-15 Apparatus and method for three-dimensional calibration of video image

Publications (2)

Publication Number Publication Date
KR20150131543A KR20150131543A (en) 2015-11-25
KR102264111B1 true KR102264111B1 (en) 2021-06-10

Family

ID=54480207

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140058335A KR102264111B1 (en) 2014-05-15 2014-05-15 Apparatus and method for three-dimensional calibration of video image

Country Status (2)

Country Link
KR (1) KR102264111B1 (en)
WO (1) WO2015174724A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107462392A (en) * 2017-09-01 2017-12-12 南京航空航天大学 High Precision Automatic scaling method based on virtual template
CN110969682B (en) * 2019-11-27 2021-03-02 深圳追一科技有限公司 Virtual image switching method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101126449B1 (en) * 2011-06-30 2012-03-29 양재일 System and method for augmented reality service

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100863507B1 (en) 2007-05-02 2008-10-15 한국도로공사 Multi-area monitoring system from single cctv having a camera quadratic curved surface mirror structure and unwrapping method for the same
US8570343B2 (en) * 2010-04-20 2013-10-29 Dassault Systemes Automatic generation of 3D models from packaged goods product images
KR100997084B1 (en) * 2010-06-22 2010-11-29 (주)올포랜드 A method and system for providing real time information of underground object, and a sever and method for providing information of the same, and recording medium storing a program thereof
KR101168599B1 (en) * 2010-09-10 2012-07-30 주식회사 인스프리트 Device for Displaying Virtual Object Corresponding Respective Distance
KR101339900B1 (en) * 2012-03-09 2014-01-08 한국과학기술연구원 Three dimensional montage generation system and method based on two dimensinal single image
KR101356544B1 (en) * 2012-03-29 2014-02-19 한국과학기술원 Method and apparatus for generating 3d stereoscopic image

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101126449B1 (en) * 2011-06-30 2012-03-29 양재일 System and method for augmented reality service

Also Published As

Publication number Publication date
KR20150131543A (en) 2015-11-25
WO2015174724A1 (en) 2015-11-19

Similar Documents

Publication Publication Date Title
KR101811157B1 (en) Bowl-shaped imaging system
WO2020206708A1 (en) Obstacle recognition method and apparatus, computer device, and storage medium
US9311711B2 (en) Image processing apparatus and image processing method
US9723203B1 (en) Method, system, and computer program product for providing a target user interface for capturing panoramic images
JP5536060B2 (en) Omnidirectional image processing apparatus and omnidirectional image processing method
KR102046719B1 (en) Interactive 3d navigation system with 3d helicopter view at destination and method for providing navigational instructions thereof
JP2010117800A (en) Parking lot monitoring device and method
KR101373854B1 (en) Parking guidance system using image improvement technique based on sensor
US20180114067A1 (en) Apparatus and method for extracting objects in view point of moving vehicle
JP6467798B2 (en) Image processing apparatus, three-dimensional object detection method, three-dimensional object detection program, and moving object control system
KR102003776B1 (en) Method and apparatus of detecting posture of the camera for surveillance
KR101462855B1 (en) Automatic regulation system for detecting of irregular stopping and parking vehicle, and method for processing of the same
KR20120089402A (en) Apparatus for providing ubiquitous geometry information system contents service and method thereof
KR101550972B1 (en) Apparatus and Method for Extracting of Feature Point for Recognize of Obstacle using Laser Scanner
JP5178454B2 (en) Vehicle perimeter monitoring apparatus and vehicle perimeter monitoring method
JP7102890B2 (en) Path simulation device
KR20140076415A (en) Apparatus and method for providing information of blind spot
WO2018134897A1 (en) Position and posture detection device, ar display device, position and posture detection method, and ar display method
JP6110780B2 (en) Additional information display system
KR102264111B1 (en) Apparatus and method for three-dimensional calibration of video image
US9418284B1 (en) Method, system and computer program for locating mobile devices based on imaging
KR101504335B1 (en) Device, method and vehicle for providing around view
JP2012198857A (en) Approaching object detector and approaching object detection method
JP2018503195A (en) Object detection method and object detection apparatus
JP2014154062A (en) Object detector

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)
GRNT Written decision to grant