KR102238036B1 - Method and system for image processing - Google Patents

Method and system for image processing Download PDF

Info

Publication number
KR102238036B1
KR102238036B1 KR1020190037921A KR20190037921A KR102238036B1 KR 102238036 B1 KR102238036 B1 KR 102238036B1 KR 1020190037921 A KR1020190037921 A KR 1020190037921A KR 20190037921 A KR20190037921 A KR 20190037921A KR 102238036 B1 KR102238036 B1 KR 102238036B1
Authority
KR
South Korea
Prior art keywords
landmark
components
angle
value
event
Prior art date
Application number
KR1020190037921A
Other languages
Korean (ko)
Other versions
KR20190039045A (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 KR1020190037921A priority Critical patent/KR102238036B1/en
Publication of KR20190039045A publication Critical patent/KR20190039045A/en
Application granted granted Critical
Publication of KR102238036B1 publication Critical patent/KR102238036B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/012Head tracking input arrangements
    • G06K9/00221
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker

Abstract

영상 처리 방법 및 시스템에 관한 것으로, 보다 자세하게는, 입력되는 영상에 포함된 사용자의 얼굴과 같은 객체를 특정 캐릭터의 얼굴과 같은 가상 객체에 매핑하고, 객체에 대해 기 정의되어 있는 컴포넌트들의 값들의 조합에 따른 이벤트를 가상 객체에 적용함으로써, 사용자의 얼굴 표정이나 특정 이벤트 등을 캐릭터에 실시간으로 매핑할 수 있는 영상 처리 방법 및 시스템, 그리고 컴퓨터 장치와 결합되어 영상 처리 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램이 개시된다.Regarding an image processing method and system, in more detail, an object such as a user's face included in an input image is mapped to a virtual object such as a face of a specific character, and a combination of values of components predefined for the object An image processing method and system capable of mapping a user's facial expression or a specific event to a character in real time by applying the event according to the virtual object, and a computer-readable recording in order to execute the image processing method in combination with a computer device. A computer program stored on the medium is started.

Description

영상 처리 방법 및 시스템{METHOD AND SYSTEM FOR IMAGE PROCESSING}Image processing method and system {METHOD AND SYSTEM FOR IMAGE PROCESSING}

아래의 설명은 영상 처리 방법 및 시스템에 관한 것으로, 보다 자세하게는, 입력되는 영상에 포함된 사용자의 얼굴과 같은 객체를 특정 캐릭터의 얼굴과 같은 가상 객체에 매핑하고, 객체에 대해 기 정의되어 있는 컴포넌트들의 값들의 조합에 따른 이벤트를 가상 객체에 적용함으로써, 사용자의 얼굴 표정이나 특정 이벤트 등을 캐릭터에 실시간으로 매핑할 수 있는 영상 처리 방법 및 시스템, 그리고 컴퓨터 장치와 결합되어 영상 처리 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램에 관한 것이다.The following description relates to an image processing method and system, and more specifically, a component that maps an object such as a user's face included in an input image to a virtual object such as a face of a specific character, and is predefined for the object. In order to execute an image processing method in combination with a computer device, an image processing method and system capable of mapping a user's facial expression or a specific event to a character in real time by applying an event according to the combination of values of the virtual object. It relates to a computer program stored in a computer-readable recording medium.

아바타와 같은 특정한 캐릭터의 제어를 위한 종래기술로, 사용자의 얼굴 표정을 아바타에 반영함으로써 아바타를 보다 사실적으로 표현하기 위한 기술이 존재한다. 예를 들어, 한국공개특허 제10-2012-0059994호는 표정 제어점을 이용한 아바타 제어 장치 및 방법에 관한 것으로, 사용자의 얼굴 표정에서 추적되는 특징점 위치에 따라 아바타의 특징점 위치를 제어하여 사용자의 얼굴 표정을 아바타에 적용할 수 있다.As a conventional technology for controlling a specific character such as an avatar, there is a technology for expressing an avatar more realistically by reflecting a user's facial expression on the avatar. For example, Korean Patent Application Publication No. 10-2012-0059994 relates to an apparatus and method for controlling an avatar using facial expression control points. By controlling the position of the feature point of the avatar according to the location of the feature point tracked in the user's facial expression, Can be applied to the avatar.

그러나, 사용자의 얼굴에서 추적되는 특징점 위치를 그대로 아바타에 적용하면, 사용자의 얼굴 표정은 아바타에 잘 적용될 수 있을지 몰라도, 아바타의 관점에서 아바타에 자연스럽지 않은 표정이 나타날 수 있다는 문제점이 있다. 예를 들어, 사용자의 얼굴과 전혀 닮지 않은 캐릭터의 얼굴에 사용자의 얼굴 표정을 그대로 특징점 위치를 매핑하여 적용한다면, 캐릭터의 얼굴에 전혀 어울리지 않는 표정이 될 수 있다는 문제점이 있다.However, if the position of the feature point tracked from the user's face is applied to the avatar as it is, the user's facial expression may be well applied to the avatar, but there is a problem that an unnatural expression may appear on the avatar from the viewpoint of the avatar. For example, if a user's facial expression is mapped and applied to a character's face that does not resemble the user's face as it is, there is a problem that an expression that does not match the character's face at all can be obtained.

입력되는 영상에 포함되어 있는 객체(일례로, 사용자의 얼굴)에 대해 기 정의되어 있는 컴포넌트들(일례로, 눈, 코, 입, 눈썹, 얼굴의 각도 등)의 값들을 결정하고, 결정된 값들의 조합에 따라 가상 객체에 대해 기 설정되어 있는 이벤트들 중 하나를 선택하여 가상 객체에 적용함으로써, 객체의 변화(일례로, 얼굴의 표정 변화)를 가상 객체에 반영하면서도 동시에 가상 객체의 관점에서 보다 자연스러운 변화의 적용이 가능한 영상 처리 방법 및 시스템, 그리고 컴퓨터 장치와 결합되어 영상 처리 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램을 제공한다.Determine values of predefined components (eg, eyes, nose, mouth, eyebrows, face angle, etc.) for an object (eg, a user's face) included in the input image, and By selecting one of the events set in advance for the virtual object according to the combination and applying it to the virtual object, changes in the object (for example, changes in facial expressions) are reflected in the virtual object, while at the same time more natural from the perspective of the virtual object It provides an image processing method and system capable of applying changes, and a computer program stored in a computer-readable recording medium to execute the image processing method in combination with a computer device.

컴퓨터와 결합되어 영상 처리 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램에 있어서, 상기 영상 처리 방법은, 입력되는 영상이 포함하는 객체에 대해 랜드마크정보를 추출하는 단계; 상기 랜드마크정보에 기초하여 상기 입력되는 영상이 포함하는 객체와 가상 객체를 매핑하는 단계; 상기 랜드마크정보에 기초하여 상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계; 상기 결정된 복수의 컴포넌트들의 값들의 조합에 대응하는 이벤트를 결정하는 단계; 및 상기 결정된 이벤트를 상기 객체에 매핑된 가상 객체에 적용하는 단계를 포함하는 것을 특징으로 하는 컴퓨터 프로그램을 제공한다.A computer program combined with a computer and stored in a computer-readable recording medium to execute an image processing method, the image processing method comprising: extracting landmark information for an object included in an input image; Mapping an object included in the input image and a virtual object based on the landmark information; Determining a value of each of a plurality of components predefined for the object based on the landmark information; Determining an event corresponding to the determined combination of values of the plurality of components; And applying the determined event to a virtual object mapped to the object.

입력되는 영상이 포함하는 객체에 대해 랜드마크정보를 추출하는 단계; 상기 랜드마크정보에 기초하여 상기 입력되는 영상이 포함하는 객체와 가상 객체를 매핑하는 단계; 상기 랜드마크정보에 기초하여 상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계; 상기 결정된 복수의 컴포넌트들의 값들의 조합에 대응하는 이벤트를 결정하는 단계; 및 상기 결정된 이벤트를 상기 객체에 매핑된 가상 객체에 적용하는 단계를 포함하는 것을 특징으로 하는 영상 처리 방법을 제공한다.Extracting landmark information for an object included in the input image; Mapping an object included in the input image and a virtual object based on the landmark information; Determining a value of each of a plurality of components predefined for the object based on the landmark information; Determining an event corresponding to the determined combination of values of the plurality of components; And applying the determined event to a virtual object mapped to the object.

상기 영상 처리 방법을 컴퓨터에 실행시키기 위한 프로그램이 기록되어 있는 것을 특징으로 하는 컴퓨터에서 판독 가능한 기록매체를 제공한다.It provides a computer-readable recording medium, characterized in that a program for executing the image processing method on a computer is recorded.

입력되는 영상에 포함되어 있는 객체(일례로, 사용자의 얼굴)에 대해 기 정의되어 있는 컴포넌트들(일례로, 눈, 코, 입, 눈썹, 얼굴의 각도 등)의 값들을 결정하고, 결정된 값들의 조합에 따라 가상 객체에 대해 기 설정되어 있는 이벤트들 중 하나를 선택하여 가상 객체에 적용함으로써, 객체의 변화(일례로, 얼굴의 표정 변화)를 가상 객체에 반영하면서도 동시에 가상 객체의 관점에서 보다 자연스러운 변화를 적용할 수 있다.Determine values of predefined components (eg, eyes, nose, mouth, eyebrows, face angle, etc.) for an object (eg, a user's face) included in the input image, and By selecting one of the events set in advance for the virtual object according to the combination and applying it to the virtual object, changes in the object (for example, changes in facial expressions) are reflected in the virtual object, and at the same time, more natural from the perspective of the virtual object. Change can be applied.

도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다.
도 2는 본 발명의 일실시예에 있어서, 전자 기기 및 서버의 내부 구성을 설명하기 위한 블록도이다.
도 3은 본 발명의 일실시예에 있어서, 영상 처리 방법의 예를 도시한 도면이다.
도 4는 본 발명의 일실시예에 있어서, 얼굴 객체의 랜드마크 컴포넌트의 예를 도시한 도면이다.
도 5는 본 발명의 일실시예에 있어서, 얼굴 객체의 각도 컴포넌트의 예를 도시한 도면이다.
도 6은 본 발명의 일실시예에 있어서, 가상 객체에 이벤트를 적용하는 방법의 예를 도시한 흐름도이다.
도 7은 본 발명의 일실시예에 있어서, 모션 파일이 포함하는 복수의 모션 프레임들의 예를 도시한 도면이다.
도 8은 본 발명의 일실시예에 있어서, 랜드마크 좌표를 정규화하는 예를 도시한 도면이다.
도 9는 본 발명의 일실시예에 있어서, 랜드마크 좌표를 보정하는 예를 도시한 도면이다.
도 10은 본 발명의 일실시예에 있어서, 양눈 깜박임과 윙크를 구분하기 위한 방법의 예를 도시한 흐름도이다.
도 11은 본 발명의 일실시예에 있어서, 서비스 전체 흐름의 예를 도시한 흐름도이다.
1 is a diagram showing an example of a network environment according to an embodiment of the present invention.
2 is a block diagram illustrating an internal configuration of an electronic device and a server according to an embodiment of the present invention.
3 is a diagram illustrating an example of an image processing method according to an embodiment of the present invention.
4 is a diagram illustrating an example of a landmark component of a face object according to an embodiment of the present invention.
5 is a diagram illustrating an example of an angular component of a face object according to an embodiment of the present invention.
6 is a flowchart illustrating an example of a method of applying an event to a virtual object according to an embodiment of the present invention.
7 is a diagram illustrating an example of a plurality of motion frames included in a motion file according to an embodiment of the present invention.
8 is a diagram illustrating an example of normalizing landmark coordinates according to an embodiment of the present invention.
9 is a diagram illustrating an example of correcting landmark coordinates according to an embodiment of the present invention.
10 is a flowchart illustrating an example of a method for discriminating between blinking and winking of both eyes in an embodiment of the present invention.
11 is a flowchart illustrating an example of the overall service flow according to an embodiment of the present invention.

이하, 실시예를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, embodiments will be described in detail with reference to the accompanying drawings.

본 발명의 실시예들에 따른 영상 처리 시스템은 이후 설명될 전자 기기 또는 서버와 같은 컴퓨터 장치를 통해 구현될 수 있으며, 본 발명의 실시예들에 따른 영상 처리 방법은 이러한 전자 기기 또는 서버를 통해 수행될 수 있다. 예를 들어, 전자 기기에는 본 발명의 일실시예에 따른 컴퓨터 프로그램으로서 구현되는 어플리케이션이 설치 및 구동될 수 있고, 전자 기기는 구동된 어플리케이션의 제어에 따라 입력되는 영상을 처리하고, 가상 객체에 이벤트를 적용할 수 있다. 컴퓨터 프로그램은 전자 기기와 결합되어 영상 처리 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장될 수 있다. 다른 실시예로, 서버가 상술한 어플리케이션의 제어에 따라 영상 처리 방법을 수행할 수도 있다.The image processing system according to the embodiments of the present invention may be implemented through an electronic device or a computer device such as a server, which will be described later, and the image processing method according to the embodiments of the present invention is performed through such an electronic device or a server. Can be. For example, an application implemented as a computer program according to an embodiment of the present invention may be installed and driven in an electronic device, and the electronic device processes an input image according to the control of the driven application, and an event is applied to a virtual object. Can be applied. The computer program may be combined with an electronic device and stored in a computer-readable recording medium to execute an image processing method. In another embodiment, the server may perform the image processing method according to the control of the above-described application.

일실시예로, 전자 기기나 서버와 같은 컴퓨터 장치는 입력되는 영상에 포함되어 있는 객체(일례로, 사용자의 얼굴)에 대해 기 정의되어 있는 컴포넌트들(일례로, 눈, 코, 입, 눈썹, 얼굴의 각도 등)의 값들을 결정하고, 결정된 값들의 조합에 따라 가상 객체에 대해 기 설정되어 있는 이벤트들 중 하나를 선택하여 가상 객체에 적용함으로써, 객체의 변화(일례로, 얼굴의 표정 변화)를 가상 객체에 반영하면서도 동시에 가상 객체의 관점에서 보다 자연스러운 변화를 적용할 수 있다.In one embodiment, a computer device such as an electronic device or a server includes components (for example, eyes, nose, mouth, eyebrows, etc.) that are predefined for an object (for example, a user's face) included in an input image. Face angle, etc.), and by selecting one of the preset events for the virtual object and applying it to the virtual object according to the combination of the determined values, the change of the object (for example, change of facial expression) While reflecting on the virtual object, more natural changes can be applied from the perspective of the virtual object.

도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다. 도 1의 네트워크 환경은 복수의 전자 기기들(110, 120, 130, 140), 복수의 서버들(150, 160) 및 네트워크(170)를 포함하는 예를 나타내고 있다. 이러한 도 1은 발명의 설명을 위한 일례로 전자 기기의 수나 서버의 수가 도 1과 같이 한정되는 것은 아니다.1 is a diagram showing an example of a network environment according to an embodiment of the present invention. The network environment of FIG. 1 shows an example including a plurality of electronic devices 110, 120, 130, and 140, a plurality of servers 150 and 160, and a network 170. 1 is an example for explaining the invention, and the number of electronic devices or servers is not limited as in FIG. 1.

복수의 전자 기기들(110, 120, 130, 140)은 컴퓨터 장치로 구현되는 고정형 단말이거나 이동형 단말일 수 있다. 복수의 전자 기기들(110, 120, 130, 140)의 예를 들면, 스마트폰(smart phone), 휴대폰, 네비게이션, 컴퓨터, 노트북, 디지털방송용 단말, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 태블릿 PC 등이 있다. 일례로 도 1에서는 전자 기기 1(110)의 예로 스마트폰의 형상을 나타내고 있으나, 본 발명의 실시예들에서는 실질적으로 무선 또는 유선 통신 방식을 이용하여 네트워크(170)를 통해 다른 전자 기기들(120, 130, 140) 및/또는 서버(150, 160)와 통신할 수 있는 다양한 기기들 중 하나를 의미할 수 있다.The plurality of electronic devices 110, 120, 130, and 140 may be a fixed terminal implemented as a computer device or a mobile terminal. Examples of the plurality of electronic devices 110, 120, 130, and 140 include smart phones, mobile phones, navigation, computers, notebook computers, digital broadcasting terminals, personal digital assistants (PDAs), and portable multimedia players (PMPs). ), tablet PC, etc. As an example, although the shape of a smartphone is shown as an example of the electronic device 1 110 in FIG. 1, in the embodiments of the present invention, other electronic devices 120 are substantially transmitted through the network 170 using a wireless or wired communication method. , 130, 140) and/or the servers 150 and 160 may mean one of various devices capable of communicating with each other.

통신 방식은 제한되지 않으며, 네트워크(170)가 포함할 수 있는 통신망(일례로, 이동통신망, 유선 인터넷, 무선 인터넷, 방송망)을 활용하는 통신 방식뿐만 아니라 기기들간의 근거리 무선 통신 역시 포함될 수 있다. 예를 들어, 네트워크(170)는, PAN(personal area network), LAN(local area network), CAN(campus area network), MAN(metropolitan area network), WAN(wide area network), BBN(broadband network), 인터넷 등의 네트워크 중 하나 이상의 임의의 네트워크를 포함할 수 있다. 또한, 네트워크(170)는 버스 네트워크, 스타 네트워크, 링 네트워크, 메쉬 네트워크, 스타-버스 네트워크, 트리 또는 계층적(hierarchical) 네트워크 등을 포함하는 네트워크 토폴로지 중 임의의 하나 이상을 포함할 수 있으나, 이에 제한되지 않는다.The communication method is not limited, and not only a communication method using a communication network (for example, a mobile communication network, a wired Internet, a wireless Internet, a broadcasting network), but also a short-range wireless communication between devices may be included. For example, the network 170 includes a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), and a broadband network (BBN). And any one or more of networks such as the Internet. In addition, the network 170 may include any one or more of a network topology including a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree or a hierarchical network, etc. Not limited.

서버(150, 160) 각각은 복수의 전자 기기들(110, 120, 130, 140)과 네트워크(170)를 통해 통신하여 명령, 코드, 파일, 컨텐츠, 서비스 등을 제공하는 컴퓨터 장치 또는 복수의 컴퓨터 장치들로 구현될 수 있다. 예를 들어, 서버(150)는 네트워크(170)를 통해 접속한 복수의 전자 기기들(110, 120, 130, 140)로 제1 서비스를 제공하는 시스템일 수 있으며, 서버(160) 역시 네트워크(170)를 통해 접속한 복수의 전자 기기들(110, 120, 130, 140)로 제2 서비스를 제공하는 시스템일 수 있다. 보다 구체적인 예로, 서버(160)는 제2 서비스로서 어플리케이션(컴퓨터 프로그램)의 설치를 위한 설치파일(일례로, 응용 프로그램 패키지 파일)을 복수의 전자 기기들(110, 120, 130, 140)로 제공하는 시스템일 수 있다. 또한, 서버(150)는 제1 서비스로서 상술한 어플리케이션과 관련된 서비스(일례로, 메시징 서비스, 소셜 네트워크 서비스, 컨텐츠 제공 서비스 등)를 제공하는 복수의 전자 기기들(110, 120, 130, 140)로 제공할 수 있다. 이러한 서비스들은 네트워크 환경을 설명하기 위한 하나의 실시예일뿐, 실제로 네트워크 환경에서 서버(150, 160) 각각이 제공하는 서비스들은 매우 다양할 수 있다.Each of the servers 150 and 160 is a computer device or a plurality of computers that communicates with a plurality of electronic devices 110, 120, 130, and 140 through a network 170 to provide commands, codes, files, contents, services, etc. It can be implemented with devices. For example, the server 150 may be a system that provides a first service to a plurality of electronic devices 110, 120, 130, and 140 accessed through the network 170, and the server 160 is also a network ( It may be a system that provides a second service to a plurality of electronic devices 110, 120, 130, and 140 accessed through 170). As a more specific example, the server 160 provides an installation file (for example, an application program package file) for installing an application (computer program) as a second service to a plurality of electronic devices 110, 120, 130, 140 It may be a system that does. In addition, the server 150 is a plurality of electronic devices (110, 120, 130, 140) providing services related to the above-described application as a first service (for example, a messaging service, a social network service, a content providing service, etc.) Can be provided as. These services are only one embodiment for describing a network environment, and in fact, services provided by each of the servers 150 and 160 in the network environment may be very diverse.

이미 설명한 바와 같이, 본 발명의 실시예들에 따른 영상 처리 방법은 전자 기기에 의해 수행될 수도 있고, 전자 기기와 통신하는 서버에 의해 수행될 수도 있다.As described above, the image processing method according to embodiments of the present invention may be performed by an electronic device or a server communicating with the electronic device.

도 2는 본 발명의 일실시예에 있어서, 전자 기기 및 서버의 내부 구성을 설명하기 위한 블록도이다. . 도 2에서는 전자 기기에 대한 예로서 전자 기기 1(110), 그리고 서버(150)의 내부 구성을 설명한다. 또한, 다른 전자 기기들(120, 130, 140)이나 서버(160) 역시 상술한 전자 기기 1(110) 또는 서버(150)와 동일한 또는 유사한 내부 구성을 가질 수 있다.2 is a block diagram illustrating an internal configuration of an electronic device and a server according to an embodiment of the present invention. . In FIG. 2, internal configurations of the electronic device 1 110 and the server 150 are described as examples of the electronic device. In addition, the other electronic devices 120, 130, 140 or the server 160 may also have the same or similar internal configuration as the electronic device 1 110 or the server 150 described above.

전자 기기 1(110)과 서버(150)는 메모리(211, 221), 프로세서(212, 222), 통신 모듈(213, 223) 그리고 입출력 인터페이스(214, 224)를 포함할 수 있다. 메모리(211, 221)는 컴퓨터에서 판독 가능한 기록 매체로서, RAM(random access memory), ROM(read only memory) 및 디스크 드라이브와 같은 비소멸성 대용량 기록장치(permanent mass storage device)를 포함할 수 있다. 여기서 ROM과 디스크 드라이브와 같은 비소멸성 대용량 기록장치는 메모리(211, 221)와는 구분되는 별도의 영구 저장 장치로서 전자 기기 1(110)나 서버(150)에 포함될 수도 있다. 또한, 메모리(211, 221)에는 운영체제와 적어도 하나의 프로그램 코드(일례로 전자 기기 1(110)에 설치되어 구동되는 브라우저나 특정 서비스의 제공을 위해 전자 기기 1(110)에 설치된 어플리케이션 등을 위한 코드)가 저장될 수 있다. 이러한 소프트웨어 구성요소들은 메모리(211, 221)와는 별도의 컴퓨터에서 판독 가능한 기록 매체로부터 로딩될 수 있다. 이러한 별도의 컴퓨터에서 판독 가능한 기록 매체는 플로피 드라이브, 디스크, 테이프, DVD/CD-ROM 드라이브, 메모리 카드 등의 컴퓨터에서 판독 가능한 기록 매체를 포함할 수 있다. 다른 실시예에서 소프트웨어 구성요소들은 컴퓨터에서 판독 가능한 기록 매체가 아닌 통신 모듈(213, 223)을 통해 메모리(211, 221)에 로딩될 수도 있다. 예를 들어, 적어도 하나의 프로그램은 개발자들 또는 어플리케이션의 설치 파일을 배포하는 파일 배포 시스템(일례로, 서버(150))이 네트워크(170)를 통해 제공하는 파일들에 의해 설치되는 프로그램(일례로 상술한 어플리케이션)에 기반하여 메모리(211, 221)에 로딩될 수 있다.The electronic device 1 110 and the server 150 may include memories 211 and 221, processors 212 and 222, communication modules 213 and 223, and input/output interfaces 214 and 224. The memories 211 and 221 are computer-readable recording media, and may include a permanent mass storage device such as a random access memory (RAM), a read only memory (ROM), and a disk drive. Here, a non-destructive large-capacity recording device such as a ROM and a disk drive may be included in the electronic device 1110 or the server 150 as a separate permanent storage device separated from the memories 211 and 221. In addition, the memories 211 and 221 contain an operating system and at least one program code (for example, a browser installed and driven in the electronic device 1 110 or an application installed in the electronic device 1 110 to provide a specific service). Code) can be saved. These software components may be loaded from a computer-readable recording medium separate from the memories 211 and 221. Such a separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, a disk, a tape, a DVD/CD-ROM drive, and a memory card. In another embodiment, software components may be loaded into the memories 211 and 221 through communication modules 213 and 223 other than a computer-readable recording medium. For example, at least one program is a program installed by files provided by the file distribution system (for example, the server 150) for distributing the installation files of developers or applications (for example, the server 150). It may be loaded into the memories 211 and 221 based on the above-described application).

프로세서(212, 222)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(211, 221) 또는 통신 모듈(213, 223)에 의해 프로세서(212, 222)로 제공될 수 있다. 예를 들어 프로세서(212, 222)는 메모리(211, 221)와 같은 기록 장치에 저장된 프로그램 코드에 따라 수신되는 명령을 실행하도록 구성될 수 있다.The processors 212 and 222 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input/output operations. Instructions may be provided to the processors 212 and 222 by the memories 211 and 221 or the communication modules 213 and 223. For example, the processors 212 and 222 may be configured to execute a command received according to a program code stored in a recording device such as the memories 211 and 221.

통신 모듈(213, 223)은 네트워크(170)를 통해 전자 기기 1(110)과 서버(150)가 서로 통신하기 위한 기능을 제공할 수 있으며, 전자 기기 1(110) 및/또는 서버(150)가 다른 전자 기기(일례로 전자 기기 2(120)) 또는 다른 서버(일례로 서버(160))와 통신하기 위한 기능을 제공할 수 있다. 일례로, 전자 기기 1(110)의 프로세서(212)가 메모리(211)와 같은 기록 장치에 저장된 프로그램 코드에 따라 생성한 요청이 통신 모듈(213)의 제어에 따라 네트워크(170)를 통해 서버(150)로 전달될 수 있다. 역으로, 서버(150)의 프로세서(222)의 제어에 따라 제공되는 제어 신호나 명령, 컨텐츠, 파일 등이 통신 모듈(223)과 네트워크(170)를 거쳐 전자 기기 1(110)의 통신 모듈(213)을 통해 전자 기기 1(110)로 수신될 수 있다. 예를 들어 통신 모듈(213)을 통해 수신된 서버(150)의 제어 신호나 명령, 컨텐츠, 파일 등은 프로세서(212)나 메모리(211)로 전달될 수 있고, 컨텐츠나 파일 등은 전자 기기 1(110)가 더 포함할 수 있는 저장 매체(상술한 영구 저장 장치)로 저장될 수 있다.The communication modules 213 and 223 may provide a function for the electronic device 1 110 and the server 150 to communicate with each other through the network 170, and the electronic device 1 110 and/or the server 150 May provide a function for communicating with another electronic device (eg, electronic device 2 120) or another server (eg, server 160 ). As an example, a request generated by the processor 212 of the electronic device 1 110 according to a program code stored in a recording device such as a memory 211 is transmitted through the network 170 under the control of the communication module 213. 150). Conversely, control signals, commands, contents, files, etc. provided under the control of the processor 222 of the server 150 are transmitted via the communication module 223 and the network 170 to the communication module of the electronic device 1 110 ( 213) through the electronic device 1 (110). For example, a control signal, command, content, file, etc. of the server 150 received through the communication module 213 may be transmitted to the processor 212 or the memory 211, and the content or file is an electronic device 1 It may be stored in a storage medium (permanent storage device described above) that 110 may further include.

입출력 인터페이스(214)는 입출력 장치(215)와의 인터페이스를 위한 수단일 수 있다. 예를 들어, 입력 장치는 키보드 또는 마우스 등의 장치를, 그리고 출력 장치는 디스플레이와 같은 장치를 포함할 수 있다. 다른 예로 입출력 인터페이스(214)는 터치스크린과 같이 입력과 출력을 위한 기능이 하나로 통합된 장치와의 인터페이스를 위한 수단일 수도 있다. 입출력 장치(215)는 전자 기기 1(110)과 하나의 장치로 구성될 수도 있다. 또한, 서버(150)의 입출력 인터페이스(224)는 서버(150)와 연결되거나 서버(150)가 포함할 수 있는 입력 또는 출력을 위한 장치(미도시)와의 인터페이스를 위한 수단일 수 있다. 보다 구체적인 예로, 전자 기기 1(110)의 프로세서(212)는 메모리(211)에 로딩된 컴퓨터 프로그램의 명령을 처리함에 있어서 서버(150)나 전자 기기 2(120)가 제공하는 데이터를 이용하여 구성되는 서비스 화면이나 컨텐츠가 입출력 인터페이스(214)를 통해 디스플레이에 표시될 수 있다.The input/output interface 214 may be a means for an interface with the input/output device 215. For example, the input device may include a device such as a keyboard or a mouse, and the output device may include a device such as a display. As another example, the input/output interface 214 may be a means for interfacing with a device in which input and output functions are integrated into one, such as a touch screen. The input/output device 215 may be configured with the electronic device 1110 and one device. In addition, the input/output interface 224 of the server 150 may be a means for interface with a device (not shown) for input or output that is connected to the server 150 or that the server 150 may include. As a more specific example, the processor 212 of the electronic device 1 110 is configured by using data provided by the server 150 or the electronic device 2 120 in processing a command of a computer program loaded in the memory 211 The service screen or content to be displayed may be displayed on the display through the input/output interface 214.

또한, 다른 실시예들에서 전자 기기 1(110) 및 서버(150)는 도 2의 구성요소들보다 더 많은 구성요소들을 포함할 수도 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다. 예를 들어, 전자 기기 1(110)은 상술한 입출력 장치(215) 중 적어도 일부를 포함하도록 구현되거나 또는 트랜시버(transceiver), GPS(Global Positioning System) 모듈, 카메라, 각종 센서, 데이터베이스 등과 같은 다른 구성요소들을 더 포함할 수도 있다. 보다 구체적인 예로, 전자 기기 1(110)이 스마트폰인 경우, 일반적으로 스마트폰이 포함하고 있는 가속도 센서나 자이로 센서, 카메라 모듈, 각종 물리적인 버튼, 터치패널을 이용한 버튼, 입출력 포트, 진동을 위한 진동기 등의 다양한 구성요소들이 전자 기기 1(110)에 더 포함되도록 구현될 수 있다.In addition, in other embodiments, the electronic device 1 110 and the server 150 may include more components than those of FIG. 2. However, there is no need to clearly show most of the prior art components. For example, the electronic device 1 110 may be implemented to include at least some of the input/output devices 215 described above, or other components such as a transceiver, a global positioning system (GPS) module, a camera, various sensors, and a database. It may also contain more elements. As a more specific example, when the electronic device 1 110 is a smartphone, an acceleration sensor or a gyro sensor, a camera module, various physical buttons, buttons using a touch panel, input/output ports, and vibration Various components such as a vibrator may be implemented to be further included in the electronic device 1 110.

도 3은 본 발명의 일실시예에 있어서, 영상 처리 방법의 예를 도시한 도면이다. 본 실시예에 따른 영상 처리 방법은 앞서 설명한 전자 기기 1(110)나 서버(150)와 같은 컴퓨터 장치에 의해 수행될 수 있다. 본 실시예에서는 전자 기기 1(110)이 영상 처리 방법을 수행하는 과정을 설명한다. 전자 기기 1(110)의 프로세서(212)는 메모리(211)가 포함하는 운영체제의 코드나 적어도 하나의 컴퓨터 프로그램의 코드에 따른 제어 명령(instruction)을 실행하도록 구현될 수 있다. 여기서, 프로세서(212)는 전자 기기 1(110)에 저장된 코드가 제공하는 제어 명령에 따라 전자 기기 1(110)이 도 3의 실시예에 따른 영상 처리 방법이 포함하는 단계들(310 내지 350)을 수행하도록 전자 기기 1(110)을 제어할 수 있다.3 is a diagram illustrating an example of an image processing method according to an embodiment of the present invention. The image processing method according to the present exemplary embodiment may be performed by a computer device such as the electronic device 1 110 or the server 150 described above. In this embodiment, a process in which the electronic device 1 110 performs an image processing method will be described. The processor 212 of the electronic device 1 110 may be implemented to execute a control instruction according to a code of an operating system included in the memory 211 or a code of at least one computer program. Here, the processor 212 includes steps 310 to 350 in the image processing method according to the embodiment of FIG. 3 according to the control command provided by the code stored in the electronic device 1 110. The electronic device 1 110 may be controlled to perform the operation.

단계(310)에서 전자 기기 1(110)은 입력되는 영상이 포함하는 객체에 대해 랜드마크정보를 추출할 수 있다. 여기서, 객체는 영상에 포함된 사용자의 얼굴과 같이 가상 객체로 대체하기 위한 대상을 포함할 수 있으며, 랜드마크정보는 특징점 위치(일례로, 영상과 관련된 가상 좌표계에서의 특징점의 좌표)를 포함할 수 있다. 이미 특징점 위치에 기반하여 아바타를 제어하는 기술에 대해 소개한 바 있으며, 랜드마크정보를 추출하는 구체적인 기술은 이미 잘 알려진 종래기술들을 통해 당업자가 쉽게 이해할 수 있을 것이다.In step 310, the electronic device 1 110 may extract landmark information for an object included in the input image. Here, the object may include an object to be replaced with a virtual object such as a user's face included in the image, and the landmark information may include the position of the feature point (for example, the coordinates of the feature point in a virtual coordinate system related to the image) I can. A technique for controlling an avatar based on the location of a feature point has already been introduced, and a specific technique for extracting landmark information will be easily understood by those skilled in the art through known conventional techniques.

단계(320)에서 전자 기기 1(110)은 랜드마크정보에 기초하여 입력되는 영상이 포함하는 객체와 가상 객체를 매핑할 수 있다. 상술한 예에서와 같이 객체가 영상에 포함된 사용자의 얼굴이라면, 가상 객체는 사용자의 아바타나 특정 캐릭터의 얼굴과 같이 영상에 포함된 객체에 대응하는 가상의 객체를 의미할 수 있다.In step 320, the electronic device 1 110 may map an object included in an input image and a virtual object based on the landmark information. As in the above-described example, if the object is the user's face included in the image, the virtual object may mean a virtual object corresponding to the object included in the image, such as a user's avatar or a specific character's face.

예를 들어, 전자 기기 1(110)는 영상에 포함된 사용자의 얼굴을 특정 캐릭터의 얼굴로 대체하여 제공함에 있어서, 또는 특정 캐릭터의 얼굴을 제공함에 있어서, 영상에 포함된 사용자의 얼굴 표정 등을 특정 캐릭터의 얼굴에 적용하여 제공할 수 있다. 보다 구체적인 예로, 전자 기기 1(110)은 영상 통화를 위해 카메라를 통해 입력되는 영상에서 사용자의 얼굴을 특정 캐릭터의 얼굴로 대체하여 제공할 수 있다. 또 다른 구체적인 예로, 전자 기기 1(110)는 영상 통화를 위한 영상 대신 특정 캐릭터의 얼굴이 포함된 대체 영상을 제공하면서 카메라를 통해 입력되는 영상에서의 사용자의 얼굴 표정을 대체 영상의 캐릭터의 얼굴에 적용하여 제공할 수 있다.For example, in the electronic device 1 110 replacing the face of a user included in the image with the face of a specific character, or providing the face of a specific character, the electronic device 1 110 may provide a facial expression of the user included in the image. It can be provided by applying it to the face of a specific character. As a more specific example, the electronic device 1 110 may provide a face of a user by replacing a face of a specific character in an image input through a camera for a video call. As another specific example, the electronic device 1 110 provides an alternative image including the face of a specific character instead of an image for a video call, and provides a user's facial expression in the image input through the camera on the face of the character in the alternative image. It can be applied and provided.

또 다른 예로, 전자 기기 1(110)은 사용자의 얼굴 표정이나 이와 관련된 이팩트와 같은 이벤트가 적용된 캐릭터의 얼굴을 화면을 동영상으로 녹화하여 녹화된 동영상 파일이나, 움직이는 GIF 포맷의 파일을 생성 및 제공할 수도 있다. 이때, 생성 및 제공되는 파일들은 메시징 서비스나 소셜 네트워크 서비스 등을 통해 다른 사용자들과 공유될 수도 있다. 이 경우, 전자 기기 1(110)은 결과 영상에 추가적인 효과(일례로, 데코레이션 효과)를 추가할 수도 있다.As another example, the electronic device 1 110 may generate and provide a recorded video file or a moving GIF format file by recording a screen of a character's face to which an event such as a user's facial expression or related effects is applied as a video. May be. In this case, the files created and provided may be shared with other users through a messaging service or a social network service. In this case, the electronic device 1 110 may add an additional effect (for example, a decoration effect) to the resulting image.

이미 설명한 바와 같이, 영상 처리 방법은 서버(150)를 통해 수행될 수도 있다. 예를 들어, 전자 기기 1 (110)은 카메라를 통해 입력된 영상들을 순차적으로 서버(150)로 전송하거나 또는 기 저장된 영상 파일을 서버(150)로 전송할 수 있다. 이때, 서버(150)는 전송되어 입력되는 영상에 대해 본 발명의 실시예들에 따른 영상 처리 방법을 수행하고, 생성되는 결과물을 전자 기기 1(110)이나 다른 전자 기기들로 제공할 수 있다.As already described, the image processing method may be performed through the server 150. For example, the electronic device 1 110 may sequentially transmit images input through a camera to the server 150 or may transmit a pre-stored image file to the server 150. In this case, the server 150 may perform the image processing method according to embodiments of the present invention on the transmitted and input image, and may provide the generated result to the electronic device 1 110 or other electronic devices.

이후의 단계들에서는 추출된 랜드마크정보에 기초하여 특정한 이벤트가 가상 객체에 적용되는 과정을 설명한다. In the following steps, a process in which a specific event is applied to a virtual object based on the extracted landmark information will be described.

단계(330)에서 전자 기기 1(110)은 랜드마크정보에 기초하여 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정할 수 있다. 이러한 복수의 컴포넌트들은 객체의 종류에 따라 기 정의될 수 있다. 예를 들어, 객체가 영상에 포함된 사용자의 얼굴이라면, 복수의 컴포넌트들은 눈, 코, 입, 눈썹, 객체의 각도 등과 같은 항목들을 포함할 수 있다. 이때, 특정 컴포넌트의 값은 해당 컴포넌트와 관련된 모양이나 각도를 나타내는 값일 수 있다. 예를 들어, '왼쪽 눈'에 해당하는 컴포넌트는 '눈 감기', '눈 뜨기', '눈 절반 뜨기(혹은 눈 절반 감기)'와 같은 세 가지 기 설정되어 있는 값들 중 하나의 값을 가질 수 있다. 다시 말해, 입력되는 영상의 현재 프레임에 포함된 사용자의 얼굴에서 '왼쪽 눈'이 떠져 있는 경우, '왼쪽 눈' 컴포넌트의 값은 '눈 뜨기'로 결정될 수 있다. 이러한 컴포넌트와 컴포넌트의 값에 대해서는 이후 더욱 자세히 설명한다.In operation 330, the electronic device 1 110 may determine a value of each of a plurality of components predefined for the object based on the landmark information. Such a plurality of components may be predefined according to the type of object. For example, if the object is the user's face included in the image, the plurality of components may include items such as eyes, nose, mouth, eyebrows, and angle of the object. In this case, the value of a specific component may be a value indicating a shape or angle related to the component. For example, a component corresponding to'left eye' can have one of three preset values, such as'close eyes','open eyes', and'open half eyes (or close half eyes)'. have. In other words, when the'left eye' is open from the user's face included in the current frame of the input image, the value of the'left eye' component may be determined as'open eye'. These components and their values will be described in more detail later.

단계(340)에서 전자 기기 1(110)은 결정된 복수의 컴포넌트들의 값들의 조합에 대응하는 이벤트를 결정할 수 있다. 예를 들어, '왼쪽 눈' 컴포넌트의 값이 '눈 뜨기'이고, '오른쪽 눈' 컴포넌트의 값이 '눈 감기'라면, 전자 기기 1(110)은 '오른쪽 눈 윙크'와 같은 이벤트를 결정할 수 있다. 이때, 입 모양 등과 같이 '입' 컴포넌트의 값이 더 조합된다면, 보다 확실하게 이벤트가 결정될 수 있다. 또한, 복수의 컴포넌트의 값들의 조합이 모든 값들의 조합일 필요는 없다. 예를 들어, 일반적인 값들을 제외하고 특별한 하나의 컴포넌트의 값이나 또는 특별한 둘 이상의 컴포넌트들의 값들의 조합이 활용될 수도 있다.In operation 340, the electronic device 1 110 may determine an event corresponding to the determined combination of values of a plurality of components. For example, if the value of the'left eye' component is'open eyes' and the value of the'right eye' component is'close eyes', the electronic device 1 (110) can determine an event such as'right eye wink'. have. At this time, if the values of the'mouth' component are further combined, such as the shape of a mouth, the event can be more reliably determined. Also, the combination of values of a plurality of components need not be a combination of all values. For example, a value of one special component or a combination of values of two or more special components may be used except for general values.

단계(350)에서 전자 기기 1(110)은 결정된 이벤트를 객체에 매핑된 가상 객체에 적용할 수 있다. 여기서 이벤트는 특정한 객체에 매칭되는 가상 객체에 대해 기설정될 수 있다. 다시 말해, 가상 객체별로 해당 가상 객체에 알맞게 미리 설정된 이벤트들이 존재할 수 있으며, 객체를 통해 결정된 가상 객체의 이벤트가 가상 객체에 적용되는 것이기 때문에, 보다 자연스러운 변화가 가상 객체에 적용될 수 있게 된다. 예를 들어, 사용자의 얼굴 표정이 그대로 아바타에 적용되는 것이 아니라, 사용자의 얼굴 표정에 대응하는 아바타의 얼굴 표정(이벤트)이 아바타에 적용될 수 있다. 이때, 이벤트는 복수의 컴포넌트들의 값들의 조합마다 기 정의될 수 있기 때문에 복수의 컴포넌트들의 수와 하나의 컴포넌트에 대해 기 정의될 수 있는 값들의 수에 따라 매우 많은 수의 이벤트들이 정의될 수 있다. 예를 들어, '왼쪽 눈' 컴포넌트에 대해 세 개의 값이, '오른쪽 눈' 컴포넌트에 대해 세 개의 값이, 그리고 '입'에 대해 세 개의 값이 정의될 수 있다면, 그 조합에 따라 9(3*3*3)개의 이벤트들이 해당 가상 객체에 대해 기 정의될 수 있다.In operation 350, the electronic device 1 110 may apply the determined event to the virtual object mapped to the object. Here, the event may be preset for a virtual object matching a specific object. In other words, for each virtual object, there may be events set in advance suitable for the corresponding virtual object, and since the event of the virtual object determined through the object is applied to the virtual object, more natural changes can be applied to the virtual object. For example, the facial expression of the user is not applied to the avatar as it is, but the facial expression (event) of the avatar corresponding to the facial expression of the user may be applied to the avatar. In this case, since the event may be predefined for each combination of values of a plurality of components, a very large number of events may be defined according to the number of the plurality of components and the number of values that can be predefined for one component. For example, if three values could be defined for the'left eye' component, three values for the'right eye' component, and three values for the'mouth', then 9(3 *3*3) events can be predefined for the corresponding virtual object.

실시예에 따라 기 정의되어 있는 복수의 컴포넌트들은 객체가 포함하는 복수의 랜드마크 컴포넌트 및 객체의 회전을 나타내기 위한 복수의 각도 컴포넌트들을 포함할 수 있다. 예를 들어, 랜드마크 컴포넌트들은 눈, 코, 입, 눈썹 등과 같은 객체의 랜드마크에, 각도 컴포넌트들은 객체의 X-축, Y-축, Z-축과 같은 복수의 회전축들에 각각 대응할 수 있다.A plurality of components predefined according to an embodiment may include a plurality of landmark components included in the object and a plurality of angular components for indicating rotation of the object. For example, landmark components may correspond to a landmark of an object such as eyes, nose, mouth, and eyebrows, and angle components may correspond to a plurality of rotation axes such as an X-axis, Y-axis, and Z-axis of the object. .

도 3의 실시예에서 설명한 전자 기기 1(110)은 단계(310) 이전에 복수의 랜드마크 컴포넌트마다 둘 이상의 서로 다른 모양들을 나타내는 복수의 모양 값들을 설정하여 관리할 수 있다. 이미 설명한 바와 같이, '왼쪽 눈'에 해당하는 랜드마크 컴포넌트에 대응하여 '눈 감기', '눈 뜨기' 및 '눈 절반 뜨기(혹은 눈 절반 감기)'와 같은 세 가지 모양 값들이 기 설정되어 관리될 수 있다.The electronic device 1 110 described in the embodiment of FIG. 3 may set and manage a plurality of shape values representing two or more different shapes for each of a plurality of landmark components prior to operation 310. As already explained, three shape values such as'close eyes','open eyes' and'open half eyes (or close half eyes)' corresponding to the landmark component corresponding to the'left eye' are pre-set and managed. Can be.

도 4는 본 발명의 일실시예에 있어서, 얼굴 객체의 랜드마크 컴포넌트의 예를 도시한 도면이다. 도 4는 얼굴 객체(410)에 포함된 랜드마크 컴포넌트들로서 '왼쪽 눈썹(eye Brow Left, BL)', '오른쪽 눈썹(eye Brow Right BR)', '왼쪽 눈(Eye Left, EL)', '오른쪽 눈(Eye Right, ER)', '입(Mouth, MO)'을 각각 나타내고 있다. 또한, 아래 표 1은 이러한 랜드마크 컴포넌트들에 대한 식별자와 값들의 설명의 예시들을 나타내고 있다.4 is a diagram illustrating an example of a landmark component of a face object according to an embodiment of the present invention. 4 shows landmark components included in the face object 410 as'eye Brow Left (BL)','eye Brow Right BR','Eye Left (EL)', and ' It represents the right eye (Eye Right, ER)' and'mouth (Mouth, MO)', respectively. In addition, Table 1 below shows examples of descriptions of identifiers and values for these landmark components.

컴포넌트 IDComponent ID 약어설명Abbreviation Explanation 설명Explanation 값 : 1Value: 1 값 : 2Value: 2 값 : 3Value: 3 BLBL eyeBrowLefteyeBrowLeft 왼쪽 눈썹 모양Left eyebrow shape 우하단향Lower right 우상단향Top right -- BRBR eyeBrowRighteyeBrowRight 오른쪽 눈썹 모양Right eyebrow shape 우하단향Lower right 우상단향Top right -- ELEL EyeLeftEyeLeft 왼쪽 눈 모양Left eye shape 눈 감기Eyes closed 눈 뜨기Open your eyes 눈 절반 뜨기Half open eyes ERER EyeRightEyeRight 오른쪽 눈 모양Right eye shape 눈 감기Eyes closed 눈 뜨기Open your eyes 눈 절반 뜨기Half open eyes MOMO MouthMouth 입 모양Mouth shape Ah this Five

표 1에서는 컴포넌트의 값을 이해를 돕기 위해 텍스트의 형태로 표현하였으나 시스템 내부적으로는 해당 값의 모양에 대응하는 수치나 기타 다른 형태로 설정 및 저장될 수도 있다.In Table 1, the values of components are expressed in text format to help understanding, but internally the system may be set and stored in a numerical value corresponding to the shape of the corresponding value or in other forms.

이 경우, 전자 기기 1(110)은 도 3의 단계(330)에서 제1 랜드마크 컴포넌트에 대해 관리되는 복수의 모양 값들 중 랜드마크정보에 기초하여 결정되는 제1 랜드마크 컴포넌트의 모양에 대응하는 모양 값을, 제1 랜드마크 컴포넌트의 값으로서 결정할 수 있다. 상술한 표 1의 예에서 제1 랜드마크 컴포넌트가 '왼쪽 눈'이고, 랜드마크정보에 기초하여 결정되는 제1 랜드마크 컴포넌트의 모양이 '눈 뜨기'라면, 제1 랜드마크 컴포넌트의 값은 'EL1'과 같이 왼쪽 눈 뜨기를 나타내는 값으로 결정될 수 있다.In this case, the electronic device 1 110 corresponds to the shape of the first landmark component determined based on the landmark information among a plurality of shape values managed for the first landmark component in step 330 of FIG. 3. The shape value may be determined as the value of the first landmark component. In the example of Table 1 above, if the first landmark component is'left eye' and the shape of the first landmark component determined based on the landmark information is'open eyes', the value of the first landmark component is' It can be determined as a value indicating left eye opening, such as EL1'.

또한, 도 3의 실시예에서 설명한 전자 기기 1(110)은 단계(310) 이전에 복수의 회전축들마다 둘 이상의 서로 다른 각도들을 나타내는 복수의 각도 값들을 설정하여 관리할 수 있다.In addition, the electronic device 1 110 described in the embodiment of FIG. 3 may set and manage a plurality of angle values representing two or more different angles for each of a plurality of rotation axes before operation 310.

도 5는 본 발명의 일실시예에 있어서, 얼굴 객체의 각도 컴포넌트의 예를 도시한 도면이다. 도 5는 얼굴 객체(410)를 X-축을 중심으로 회전시킴에 따라 나올 수 있는 모습들(520 및 530), Y-축을 중심으로 회전시킴에 따라 나올 수 있는 모습들(540 및 550) 그리고 Z-축을 중심으로 회전시킴에 따라 나올 수 있는 모습들(560 및 570)의 예들을 각각 나타내고 있다. 또한, 아래 표 2는 이러한 각도 컴포넌트들에 대한 식별자와 값들의 설명의 예시들을 나타내고 있다.5 is a diagram illustrating an example of an angular component of a face object according to an embodiment of the present invention. FIG. 5 shows the appearances 520 and 530 that can emerge when the face object 410 is rotated around the X-axis, the appearances 540 and 550 that can appear when the face object 410 is rotated around the Y-axis, and Z -Examples of the shapes 560 and 570 that can come out by rotating around an axis are shown, respectively. In addition, Table 2 below shows examples of descriptions of identifiers and values for these angular components.

컴포넌트 IDComponent ID 약어설명Abbreviation Explanation 설명Explanation 값 : 1Value: 1 값 : 2Value: 2 PAPA PitchAnglePitchAngle X-축 중심 회전Rotate around the X-axis 앞으로 기움Tilt forward 뒤로 기움Tilt back YAYA YawAngleYawAngle Y-축 중심 회전Rotate around the Y-axis 오른쪽 기움Right tilt 왼쪽 기움Left tilt RARA RollAngleRollAngle Z-축 중심 회전Rotate around the Z-axis 우하단향Lower right 좌하단향Lower left

표 2에 나타난 컴포턴트의 값 역시 이해를 돕기 위해 텍스트의 형태로 표현하였으나 시스템 내부적으로는 값에 대응하는 수치나 기타 다른 형태로 설정 및 저장될 수도 있다.The values of the components shown in Table 2 are also expressed in text format to aid understanding, but internally the system may be set and stored in a numerical value corresponding to the value or in other forms.

이 경우, 전자 기기 1(110)은 도 3의 단계(330)에서 복수의 회전축들 중 제1 회전축에 대한 객체의 각도를 랜드마크정보에 기초하여 결정하고, 제1 회전축에 대해 관리되는 복수의 각도 값들 중 결정된 객체의 각도에 대응하는 각도 값을, 제1 회전축에 대응하는 각도 컴포넌트의 값으로 결정할 수 있다. 예를 들어, 제1 회전축이 Z-축이고, 랜드마크정보에 기초하여 결정되는 Z-축에 대한 객체의 각도가 '우하단향'인 경우, 각도 컴포넌트의 값은 'RA1'과 같이 Z-축 중심 회전의 우하단향을 나타내기 위한 값으로 설정될 수 있다.In this case, the electronic device 1 110 determines the angle of the object relative to the first rotation axis among the plurality of rotation axes in step 330 of FIG. 3 based on the landmark information, and Among the angle values, an angle value corresponding to the determined angle of the object may be determined as a value of an angle component corresponding to the first rotation axis. For example, if the first rotation axis is the Z-axis and the angle of the object with respect to the Z-axis determined based on the landmark information is'bottom-right', the value of the angle component is the Z-axis center, such as'RA1'. It can be set as a value to indicate the lower-right direction of rotation.

아래 표 3은 컴포넌트들의 값들의 조합에 대응하는 이벤트의 예시들을 나타내고 있다.Table 3 below shows examples of events corresponding to combinations of values of components.

조합Combination 의미meaning 이벤트 예시Event example EL1 + ER2EL1 + ER2 왼쪽 눈 윙크Left eye wink 왼쪽 눈 윙크Left eye wink ER1 + EL2ER1 + EL2 오른쪽 눈 윙크Right eye wink 오른쪽 눈 윙크Right eye wink EL1 + ER2 + MO1EL1 + ER2 + MO1 입벌리면서 왼쪽 눈 윙크Open your mouth and wink your left eye 왼쪽 눈 윙크 + 왼쪽 눈에서 하트 발사Left eye wink + Heart firing from left eye ER1 + EL2 + MO1ER1 + EL2 + MO1 입벌리면서 오른쪽 눈 윙크Open your mouth and wink your right eye 오른쪽 눈 윙크 + 오른쪽 눈에서 하트 발사Right eye wink + right eye firing heart BL1 + BR1BL1 + BR1 찡그림twist 화냄 이팩트Anger effect BL1 + BR1 + MO1BL1 + BR1 + MO1 입을 '아' 모양으로 하고 찡그림Make your mouth'ah' and frown 화냄 이팩트 2Anger Effect 2

예를 들어, 표 3의 'EL1 + EL2'는 표 1에서 '왼쪽 눈'에 대한 '눈 감기'와 '오른쪽 눈'에 대한 '눈 뜨기'의 조합을 나타낼 수 있고, 이는 왼쪽 눈 윙크를 의미할 수 있다. 이때, 가상 객체(일례로, 사용자의 얼굴에 대응하는 캐릭터의 얼굴)에는 '왼쪽 눈 윙크' 이벤트가 적용될 수 있다. 또한, 단순히 사용자의 표정뿐만 아니라, 사용자가 입을 벌리고 있는지 여부에 따라 하트 모양의 객체가 발사되는 애니메이션 등과 같이 다양한 이팩트들이 가상 객체에 적용될 수 있다.For example,'EL1 + EL2' in Table 3 may represent a combination of'closed eyes' for'left eye' and'opened eyes' for'right eye' in Table 1, which means left eye wink. can do. In this case, a'left eye wink' event may be applied to a virtual object (for example, a character's face corresponding to a user's face). In addition, not only the user's facial expression, but also various effects such as an animation in which a heart-shaped object is fired depending on whether the user is open or not can be applied to the virtual object.

예를 들어, 도 3의 실시예에서 설명한 전자 기기 1(110)은 단계(310) 이전에 복수의 컴포넌트들에 대해 설정 가능한 값들의 조합마다 이벤트를 설정하여 조합들에 대한 복수의 이벤트들을 관리할 수 있다. 이 경우, 전자 기기 1(110)은 단계(340)에서 관리되는 복수의 이벤트들 중 결정된 값의 조합에 대응하는 이벤트를 추출할 수 있고, 단계(350)에서 추출된 이벤트를 가상 객체에 적용할 수 있다.For example, the electronic device 1 110 described in the embodiment of FIG. 3 sets an event for each combination of values that can be set for a plurality of components before step 310 to manage a plurality of events for the combinations. I can. In this case, the electronic device 1 110 may extract an event corresponding to a combination of values determined from among a plurality of events managed in step 340, and apply the event extracted in step 350 to the virtual object. I can.

이처럼, 이벤트들은 컴포넌트들의 값들의 조합에 따라 결정되기 때문에 영상에서 객체의 변화(일례로, 사용자의 얼굴 표정이나 얼굴의 각도)를 반영할 수 있으며, 동시에 이벤트들이 가상 객체에 알맞게 제작될 수 있기 때문에 가상 객체에 자연스럽게 어울리는 이벤트들이 적용될 수 있게 된다.In this way, since events are determined according to the combination of the values of components, changes in the object (for example, the user's facial expression or the angle of the face) can be reflected in the image, and at the same time, events can be produced appropriately for the virtual object. Events that naturally match the virtual object can be applied.

도 6은 본 발명의 일실시예에 있어서, 가상 객체에 이벤트를 적용하는 방법의 예를 도시한 흐름도이다. 도 6의 단계들(610 내지 630)은 도 3을 통해 설명한 단계(350)에 포함되어 수행될 수 있다.6 is a flowchart illustrating an example of a method of applying an event to a virtual object according to an embodiment of the present invention. Steps 610 to 630 of FIG. 6 may be performed while being included in step 350 described with reference to FIG. 3.

단계(610)에서 전자 기기 1(110)은 결정된 이벤트에 대응하는 모션 파일을 로딩할 수 있다. 컴포넌트 값들의 조합들에 대해 이벤트가 기설정될 수 있듯이 이벤트에 대응하여 모션 파일들이 미리 생성 및 관리될 수 있다. 이러한 모션 파일들은 가상 객체를 위한 애니메이션을 적용하기 위해 적어도 하나의 모션 프레임들을 포함할 수 있다. 예를 들어, '하트 발사'에 대응하는 모션 파일은 하트가 발사되는 애니메이션을 가상 객체에 적용하기 위한 모션 프레임들을 포함할 수 있다.In operation 610, the electronic device 1 110 may load a motion file corresponding to the determined event. As an event may be preset for combinations of component values, motion files may be generated and managed in advance in response to the event. These motion files may include at least one motion frame to apply animation for the virtual object. For example, a motion file corresponding to'heart firing' may include motion frames for applying an animation in which a heart is fired to a virtual object.

단계(620)에서 전자 기기 1(110)은 프레임 단위로 로딩된 모션 파일을 실행할 수 있다. 예를 들어, 전자 기기 1(110)은 가상 객체를 표시하기 위한 현재 프레임에 모션 파일이 포함하는 첫 번째 모션 프레임을 적용할 수 있다.In operation 620, the electronic device 1 110 may execute a motion file loaded in units of frames. For example, the electronic device 1 110 may apply the first motion frame included in the motion file to the current frame for displaying the virtual object.

단계(630)에서 전자 기기 1(110)은 모션 파일의 종료를 확인할 수 있다. 이때, 모션 파일이 종료된 경우에는 이벤트의 적용이 종료될 수 있으며, 모션 파일이 종료되지 않은 경우에는 단계(620)이 다시 수행될 수 있다. 예를 들어, 모션 파일이 세 개의 모션 프레임들을 포함하고 있는 경우, 가상 객체를 표시하기 위한 프레임들에 순차적으로 세 개의 모션 프레임들이 적용될 수 있다. 이러한 모션 프레임들이 모두 적용되는 것이 모션 파일의 종료를 의미할 수 있다.In step 630, the electronic device 1 110 may check the end of the motion file. In this case, when the motion file is terminated, application of the event may be terminated, and if the motion file is not terminated, step 620 may be performed again. For example, when a motion file includes three motion frames, three motion frames may be sequentially applied to frames for displaying a virtual object. Applying all of these motion frames may mean the end of the motion file.

다시 말해, 전자 기기 1(110)은 단계(620) 및 단계(630)을 반복적으로 수행하면서, 로딩된 모션 파일이 포함하는 애니메이션의 모션 프레임들을 가상 객체를 표시하기 위한 프레임들에 프레임 단위로 순차적으로 적용할 수 있다.In other words, while repeatedly performing steps 620 and 630, the electronic device 1 110 sequentially converts the motion frames of the animation included in the loaded motion file into frames for displaying the virtual object in units of frames. Can be applied as.

또한, 도 3의 실시예에서 전자 기기 1(110)은 단계(310) 이후에, 추출된 랜드마크정보를 이용하여 상기 객체의 크기 및 각도를 정규화할 수 있다.In addition, in the embodiment of FIG. 3, after step 310, the electronic device 1 110 may normalize the size and angle of the object using the extracted landmark information.

도 7은 본 발명의 일실시예에 있어서, 모션 파일이 포함하는 복수의 모션 프레임들의 예를 도시한 도면이다. 사람이 실제로 눈을 깜박이는 속도는 너무 빨라서 도 7에 나타난 바와 같이 눈을 뜨고 있는 상태(710)와 눈을 감고 있는 상태(720)만을 그대로 아바타에 매핑하면 자연스럽지 않은 모션이 출력될 수 있다. 따라서, 전자 기기 1(110)은 도 7에 도시된 복수의 모션 프레임들(730 내지 770)을 이용하여 보다 자연스러운 가상 객체의 모션을 제공할 수 있다.7 is a diagram illustrating an example of a plurality of motion frames included in a motion file according to an embodiment of the present invention. Since the speed at which a person actually blinks is too fast, as shown in FIG. 7, if only the eyes open state 710 and the eyes closed state 720 are mapped to the avatar as they are, an unnatural motion may be output. Accordingly, the electronic device 1 110 may provide a more natural motion of the virtual object using the plurality of motion frames 730 to 770 illustrated in FIG. 7.

모션 파일의 형식은 일례로, (랜드마크 컴포넌트의 식별자 = ',' 로 구분되는 값의 변화)의 형태로 표현될 수 있다. 예를 들어, 도 7의 실시예에서 양쪽 눈을 모두 감는 모션 파일은 (EL = 1.0, 0.8, 0.6, 0.2, 0.0, ER = 1.0, 0.8, 0.6, 0.2, 0.0)와 같이 표현될 수 있다. 이러한 표현은, 왼쪽 눈과 오른쪽 눈이 각각 1.0의 값을 갖는 제1 모션 프레임, 왼쪽 눈과 오른쪽 눈이 각각 0.8의 값을 갖는 제2 모션 프레임, 왼쪽 눈과 오른쪽 눈이 각각 0.6의 값을 갖는 제3 모션 프레임, 왼쪽 눈과 오른쪽 눈이 각각 0.2의 값을 갖는 제4 모션 프레임 및 왼쪽 눈과 오른쪽 눈이 각각 0.0의 값을 갖는 제5 모션 프레임과 같이 다섯 개의 모션 프레임들이 포함된 모션 파일을 의미할 수 있다.The format of the motion file may be expressed in the form of (identifier of landmark component = change of value separated by','). For example, a motion file in which both eyes are closed in the embodiment of FIG. 7 may be expressed as (EL = 1.0, 0.8, 0.6, 0.2, 0.0, ER = 1.0, 0.8, 0.6, 0.2, 0.0). In this expression, a first motion frame in which the left and right eyes each have a value of 1.0, a second motion frame in which the left and right eyes have a value of 0.8, and the left and right eyes have a value of 0.6. A motion file containing five motion frames, such as a third motion frame, a fourth motion frame with a value of 0.2 for the left and right eyes, and a fifth motion frame with a value of 0.0 for the left and right eyes, respectively. It can mean.

도 8은 본 발명의 일실시예에 있어서, 랜드마크 좌표를 정규화하는 예를 도시한 도면이다. 전자 기기 1(110)은 입력된 영상 프레임(810)에 포함된 객체(811)를 랜드마크 좌표 정규화 알고리즘(820)을 이용하여 출력 프레임(830)의 객체(831)와 같이 정규화 할 수 있다.8 is a diagram illustrating an example of normalizing landmark coordinates according to an embodiment of the present invention. The electronic device 1 110 may normalize the object 811 included in the input image frame 810 like the object 831 of the output frame 830 using the landmark coordinate normalization algorithm 820.

예를 들어, 카메라를 이용하여 사진을 찍었을 때, 얼굴의 크기, 위치(영상 내에서의 상대적인 위치) 및/또는 각도가 영상 내에서 서로 다른 경우, 눈의 크기와 위치가 달라지게 된다. 이때, 전자 기기 1(110)은 랜드마크를 정규화하는 과정을 통해 동일한 사람의 경우 얼굴이 비슷한 크기, 위치 및/또는 각도를 갖도록 조절할 수 있다. 예를 들어, 랜드마크 좌표 정규화 알고리즘(820)은 얼굴에서 인식되는 눈동자의 상대적인 위치를 조절하여 랜드마크를 정규화할 수 있으나, 이에 한정되지 않으며, 이미 알려진 다양한 정규화 알고리즘들이 활용될 수 있음을 당업자가 쉽게 이해할 수 있을 것이다.For example, when a picture is taken using a camera, if the size, position (relative position in the image) and/or angle of the face are different in the image, the size and position of the eyes are different. In this case, the electronic device 1 110 may adjust the face of the same person to have a similar size, position, and/or angle through the process of normalizing the landmark. For example, the landmark coordinate normalization algorithm 820 can normalize the landmark by adjusting the relative position of the pupil recognized on the face, but it is not limited thereto, and those skilled in the art know that various known normalization algorithms can be used. It will be easy to understand.

이러한 랜드마크 좌표 정규화는 입력되는 영상에서 객체(얼굴)의 크기나 위치, 각도 등이 달라지더라도 정규화된 랜드마크 좌표에 기반하여 상대적인 값을 구할 수 있게 된다. 이를 위해, 전자 기기 1(110)은 스케일 팩터를 통해 인식된 얼굴의 크기를 표준 크기로 변환하는 과정과 피치(Pitch), 롤(Roll), 요(yaw)를 이용한 회전을 통해 객체의 랜드마크 좌표를 정규화할 수 있다. 정규화된 좌표값들은 이차원 좌표일 수 있다.This normalization of landmark coordinates enables a relative value to be obtained based on the normalized landmark coordinates even if the size, position, and angle of the object (face) in the input image are different. To this end, the electronic device 1 110 converts the size of the face recognized through the scale factor into a standard size, and rotates the object's landmark by using pitch, roll, and yaw. You can normalize the coordinates. Normalized coordinate values may be two-dimensional coordinates.

또한, 도 3의 실시예에서 전자 기기 1(110)은 단계(310) 이후에 또는 상술한 랜드마크 좌표의 정규화 이후에, 영상의 현재 프레임을 통해 추출된 랜드마크정보를 통해 인식되는 객체의 랜드마크 컴포넌트들의 좌표를 영상의 이전 프레임을 통해 추출된 랜드마크정보를 이용하여 보정할 수 있다. 예를 들어, 사용자의 모바일 폰 카메라 등을 통해 촬영되어 입력되는 영상은 손떨림 등에 의해 랜드마크 좌표가 고르지 않게 결정될 수 있다. 이에, 전자 기기 1(110)은 얼굴 인식시 이전 프레임의 얼굴의 각도(피치(Pitch), 롤(Roll), 요(Yaw))의 편차를 이용한 가중치 함수를 반영하여 결과좌표를 고르게 만들 수 있다.In addition, in the embodiment of FIG. 3, the electronic device 1 110 is the landmark of the object recognized through the landmark information extracted through the current frame of the image after step 310 or after the above-described normalization of the landmark coordinates. The coordinates of the mark components may be corrected using landmark information extracted through the previous frame of the image. For example, an image captured and input through a user's mobile phone camera may be determined unevenly with landmark coordinates due to hand shake or the like. Accordingly, the electronic device 1 110 can make the result coordinate evenly by reflecting the weight function using the deviation of the face angle (Pitch, Roll, Yaw) of the previous frame during face recognition. .

도 9는 본 발명의 일실시예에 있어서, 랜드마크 좌표를 보정하는 예를 도시한 도면이다. 전자 기기 1(110)은 객체(910)에 대한 랜드마크와 각도를 감지(920)할 수 있다. 이러한 랜드마크와 각도를 감지(920)는 도 3을 통해 설명한 단계(310)에서 랜드마크정보를 추출하는 것, 혹은 단계(310)에서와 같이 랜드마크정보를 추출한 후, 도 8을 통해 설명한 바와 같이 랜드마크 좌표를 정규화하는 것에 대응할 수 있다.9 is a diagram illustrating an example of correcting landmark coordinates according to an embodiment of the present invention. The electronic device 1 110 may detect 920 a landmark and an angle of the object 910. The detection of such a landmark and an angle 920 is to extract the landmark information in step 310 described with reference to FIG. 3, or after extracting the landmark information as in step 310, as described with reference to FIG. Likewise, it can correspond to normalizing the landmark coordinates.

또한, 전자 기기 1(110)은 랜드마크 좌표를 보정(930)할 수 있다. 예를 들어, 전자 기기 1(110)은 앞서 설명한 바와 같이, 얼굴 인식시 이전 프레임의 얼굴의 각도(피치(Pitch), 롤(Roll), 요(Yaw))의 편차를 이용한 가중치 함수를 반영하여 결과좌표를 고르게 만들 수 있다. 이때, 가중치 함수는 일례로 아래 수학식 1과 같이 정의될 수 있다.In addition, the electronic device 1 110 may correct 930 landmark coordinates. For example, as described above, the electronic device 1 110 reflects the weight function using the deviation of the face angle (Pitch, Roll, Yaw) of the previous frame during face recognition. The resulting coordinates can be made even. In this case, the weight function may be defined as Equation 1 below as an example.

Figure 112019033313917-pat00001
Figure 112019033313917-pat00001

여기서 y i i-번째 프레임의 출력에, x i i-번째 프레임의 입력에, α는 0과 1 사이의 값을 갖는 신뢰도를 각각 의미할 수 있다. 또한 α는 이전 프레임의 얼굴의 각도(피치(Pitch), 롤(Roll), 요(yaw))의 차이(difference)에 대한 비율로서 아래 수학식 2와 같이 계산될 수 있다.Here, y i may be an output of an i -th frame, x i may be an input of an i -th frame, and α may denote a reliability having a value between 0 and 1, respectively. In addition, α is a ratio to the difference between the face angle (Pitch, Roll, and yaw) of the previous frame, and may be calculated as in Equation 2 below.

Figure 112019033313917-pat00002
Figure 112019033313917-pat00002

여기서, yaw i i-번째 프레임에서의 얼굴 각도의 요(Yaw)에, roll i i-번째 프레임에서의 얼굴 각도의 롤(Roll)에, pitch i i-번째 프레임에서의 피치(Pitch)에 각각 대응할 수 있다. 또한, yaw max , roll max , pitch max 는 각각 피치(Pitch), 롤(Roll), 요(yaw)의 최대 변화량의 값을 의미할 수 있다.Here, yaw i is the yaw of the face angle in the i -th frame, roll i is the roll of the face angle in the i -th frame, and pitch i is the pitch in the i -th frame. ) Can each correspond. In addition, yaw max , roll max , and pitch max may mean values of the maximum amount of change in pitch, roll, and yaw, respectively.

또한, 전자 기기 1(110)은 좌표가 보정된 랜드마크정보를 이용하여 도 3의 실시예를 통해 설명한 바와 같이 사용자의 얼굴 표정이나 이벤트를 가상 객체(사용자의 얼굴에 대응하는 캐릭터의 얼굴)에 매핑(940)할 수 있다.In addition, the electronic device 1 110 uses the landmark information whose coordinates are corrected to transfer the user's facial expression or event to a virtual object (a character's face corresponding to the user's face) as described through the embodiment of FIG. 3. Mapping 940 can be done.

한편, 전자 기기 1(110)은 사용자의 얼굴에서 양쪽 눈 깜박임과 윙크를 구분하기 위한 별도의 방법을 이용할 수도 있다.Meanwhile, the electronic device 1 110 may use a separate method for discriminating between blinking eyes and a wink on the user's face.

도 10은 본 발명의 일실시예에 있어서, 양눈 깜박임과 윙크를 구분하기 위한 방법의 예를 도시한 흐름도이다.10 is a flowchart illustrating an example of a method for discriminating between blinking of both eyes and a wink according to an embodiment of the present invention.

전자 기기 1(110)은 어플리케이션이 시작(1010)되면, 눈 깜박임에 대한 정보를 버퍼링(1020)할 수 있다. 예를 들어, 전자 기기 1(110)은 사용자의 얼굴이 포함하는 두 눈의 떠진 정도를 나타내는 상대적인 값을 영상의 연속된 기설정된 수의 프레임들에 대해 각각 측정하여 버퍼에 저장할 수 있다. 여기서 상대적인 값의 예는 도 7을 통해 설명한 바 있다.When the application is started 1010, the electronic device 1 110 may buffer information about blinking of an eye (1020). For example, the electronic device 1 110 may measure a relative value representing the degree of opening of two eyes included in the user's face for a predetermined number of consecutive frames of an image and store them in a buffer. Here, an example of the relative value has been described with reference to FIG. 7.

이때, 전자 기기 1(110)은 과정(1030)에서 현재 양쪽 눈이 모두 떠져 있거나(Open) 혹은 감겨져 있는지(Close) 여부를 확인(1030)할 수 있다. 만약, 양쪽 눈이 모두 떠져 있거나 혹은 감겨져 있다면, 양쪽 눈 모션 동작(1040)이 확인될 수 있고, 이에 따라 아바타 모션 동작(1050)이 결정될 수 있다.In this case, the electronic device 1 110 may check (1030) whether both eyes are currently open (open) or closed (close) in the process (1030). If both eyes are open or closed, both eye motion motion 1040 may be confirmed, and avatar motion motion 1050 may be determined accordingly.

반면, 양쪽 눈이 모두 떠져 있지 않거나 혹은 감겨져 있지 않는 경우, 전자 기기 1(110)은 버퍼를 확인할 수 있다. 예를 들어, 전자 기기 1(110)은 버퍼에서 특정 시간 내에 양쪽 눈이 동일 이벤트(모두 떠져 있거나 혹은 모두 감겨져 있는 경우)인지 확인(1070)할 수 있다. 특정 시간은 예를 들어, 기설정된 수의 프레임들에 대응할 수 있다. 예를 들어, 전자 기기 1(110)은 버퍼에서 기설정된 수의 연속적인 프레임들의 상대적인 값들을 분석하여 해당 프레임들에서 양쪽 눈의 동일 이벤트가 존재한다면, 양쪽 눈 모션 동작(1040)을 확인할 수 있고, 해당 프레임들에서 양쪽 눈의 동일 이벤트가 존재하지 않는다면, 한쪽 눈 모션 동작(1080)을 확인할 수 있다. 이 경우, 전자 기기 1(110)은 한쪽 눈 모션 동작(1080)에 따라 아바타 모션 동작(1050)을 결정할 수 있다.On the other hand, when both eyes are not open or closed, the electronic device 1 110 may check the buffer. For example, the electronic device 1 110 may check 1070 whether both eyes are the same event (when both eyes are open or both eyes are closed) within a specific time in the buffer. The specific time may correspond to, for example, a preset number of frames. For example, the electronic device 1 110 analyzes the relative values of a preset number of consecutive frames in the buffer, and if the same event of both eyes exists in the corresponding frames, it can check the motion motion 1040 of both eyes. , If the same event of both eyes does not exist in the corresponding frames, one eye motion operation 1080 may be checked. In this case, the electronic device 1 110 may determine the avatar motion operation 1050 according to the one eye motion operation 1080.

도 11은 본 발명의 일실시예에 있어서, 서비스 전체 흐름의 예를 도시한 흐름도이다. 도 11은 아바타에 사용자의 얼굴 표정 등을 매핑하는 전체 과정의 일례를 나타내고 있다.11 is a flowchart illustrating an example of the overall service flow according to an embodiment of the present invention. 11 shows an example of an entire process of mapping a user's facial expressions to an avatar.

과정 1(1111)은 전자 기기 1(110)이 카메라를 기동하여 초기 랜드마크정보를 추출하는 과정일 수 있다. 사용자의 얼굴과 같은 객체가 포함된 영상에서 눈, 코, 입, 눈썹 등과 같은 랜드마크들의 정보를 추출하는 것은 이미 설명한 바와 같이 잘 알려진 기술들을 통해 당업자가 용이하게 이해할 수 있을 것이다.Process 1 (1111) may be a process in which the electronic device 1 (110) starts the camera to extract initial landmark information. Extracting information on landmarks such as eyes, nose, mouth, and eyebrows from an image including an object such as a user's face may be easily understood by those skilled in the art through well-known techniques as described above.

과정 2(1112)는 전자 기기 1(110)이 도 8을 통해 설명한 바와 같이, 랜드마크 좌표 정규화 알고리즘을 이용하여 랜드마크 좌표를 정규화하는 과정일 수 있다.Step 2 1112 may be a process in which the electronic device 1 110 normalizes the landmark coordinates using the landmark coordinate normalization algorithm, as described with reference to FIG. 8.

과정 3(1113)은 전자 기기 1(110)이 표정에 대한 값을 추출하는 과정일 수 있다. 예를 들어, 전자 기기 1(110)은 눈이 떠진 높이, 입이 벌려진 높이, 눈썹과 눈의 거리, 눈썹의 각도 등을 추출할 수 있다.Process 3 (1113) may be a process in which the electronic device 1 (110) extracts a value for an expression. For example, the electronic device 1 110 may extract a height of an open eye, a height of an open mouth, a distance between an eyebrow and an eye, an angle of an eyebrow, and the like.

과정 4(1114)는 전자 기기 1(110)이 추출된 값에 기반하여 표준 모델을 생성하는 과정일 수 있다.Process 4 (1114) may be a process in which the electronic device 1 (110) generates a standard model based on the extracted value.

과정 5(1115)는 전자 기기 1(110)이 카메라를 기동하여 기동중의 랜드마크정보를 추출하는 과정일 수 있다.Step 5 (1115) may be a process in which the electronic device 1 (110) activates the camera and extracts landmark information during activation.

과정 6(1116)은 전자 기기 1(110)이 추출된 랜드마크정보를 통해 얼굴을 표준 모델과 비교하는 과정일 수 있다. 표준 모델은 서비스를 시작할 때 최초로 추출한 얼굴의 상태를 의미할 수 있다. 예를 들어, 과정 1 내지 과정 4는 서비스를 이용하고자 하는 사용자의 얼굴에 대한 랜드마크들(일례로, 눈, 코, 입, 눈썹 등)의 초기 좌표에 따른 정보일 수 있다. 과정 6은 이러한 표준 모델과의 비교를 통해 얼굴의 표정이 변화할 때, 변화된 랜드마크들의 위치와 각도를 비교하여 컴포넌트의 변화된 상태를 확인하기 위한 과정일 수 있다. 사라마다 눈, 코, 입, 눈썹 등의 랜드마크의 모양이나 크기가 다르기 때문에 컴포넌트의 절대적인 크기로 상태값을 특징하기가 힘들다. 예를 들어, 왼쪽 눈을 크게 뜬 사람의 왼쪽 눈의 크기가 2cm인 사람 A와 1cm인 사람 B가 있다면, 사람들 각각의 표준 모델을 활용하여 비율적으로 왼쪽 눈의 변화를 계산함으로써 보다 정확한 측정이 가능해진다. 다시 말해, 왼쪽 눈을 크게 뜬 사람의 왼쪽 눈의 크기가 2cm인 사람 A에 대해 왼쪽 눈의 크기가 1cm로 변화되었다면, 사람 A가 왼쪽 눈을 반쯤 감은 것으로 판단할 수 있게 된다.Step 6 (1116) may be a process in which the electronic device 1 (110) compares a face with a standard model through the extracted landmark information. The standard model can mean the state of the face extracted first when the service is started. For example, steps 1 to 4 may be information according to initial coordinates of landmarks (for example, eyes, nose, mouth, eyebrows, etc.) for the face of a user who intends to use the service. Step 6 may be a process for checking the changed state of the component by comparing the position and angle of the changed landmarks when the facial expression changes through the comparison with the standard model. Since the shape and size of landmarks such as eyes, nose, mouth, and eyebrows are different for each Sarah, it is difficult to characterize the state value with the absolute size of the component. For example, if there is a person A with a left eye of 2 cm and a person B with a left eye of 1 cm with the left eye wide open, a more accurate measurement is possible by calculating the change in the left eye proportionally using the standard model of each person. It becomes possible. In other words, if the size of the left eye of the person A whose left eye is 2 cm wide is changed to 1 cm, it can be determined that the left eye of the person A is half-closed.

과정 7(1117)은 전자 기기 1(110)이 도 9를 통해 설명한 바와 같이 랜드마크 좌표를 이전 프레임에 기초하여 보정하는 과정일 수 있다.Process 7 (1117) may be a process in which the electronic device 1 110 corrects the landmark coordinates based on the previous frame as described with reference to FIG. 9.

과정 8(1118)은 전자 기기 1(110)이 AU(Action Unit)의 속성값을 추출하는 과정일 수 있다. 이러한 AU의 속성값은 앞서 설명한 표준 모델과의 비교를 통해 계산된 변화값을 의미할 수 있다. 다시 말해, 표준 모델은 최초의 값의 집합을 의미할 수 있고, AU의 속성값은 변화되는 값들의 집합을 의미할 수 있다. 예를 들어, 표준 모델의 왼쪽 눈의 높이가 2cm 였다면, 왼쪽 눈을 반만 감았을 때는 1cm일 것이고 이 때의 왼쪽 눈에 대한 AU의 속성값은 0.5가 될 수 있다.Step 8 (1118) may be a process in which the electronic device 1 110 extracts an attribute value of an action unit (AU). The attribute value of the AU may mean a change value calculated through comparison with the standard model described above. In other words, the standard model may refer to a set of initial values, and an attribute value of AU may refer to a set of changed values. For example, if the height of the left eye of the standard model is 2cm, it will be 1cm when the left eye is half closed, and the attribute value of AU for the left eye at this time may be 0.5.

과정 9(1119)는 전자 기기 1(110)이 도 10을 통해 설명한 바와 같이, 양눈 깜박임 동기화를 처리하는 과정일 수 있다. 다시 말해, 전자 기기 1(110)은 과정 9(1119)에서 눈 깜박임 버퍼링(1020) 등을 활용하여 양쪽 눈 모션 동작(1040) 및 사용자의 한쪽 눈 모션 동작(1080) 중 하나를 선택할 수 있다.Step 9 (1119) may be a process in which the electronic device 1 110 processes the blink synchronization of both eyes as described with reference to FIG. 10. In other words, the electronic device 1 110 may select one of the both eye motion operation 1040 and the user's one eye motion operation 1080 using the eye blink buffering 1020 or the like in step 9 (1119).

과정 10(1120)은 전자 기기 1(110)이 도 3의 단계(320)을 통해 설명한 바와 같이, 랜드마크정보에 기초하여 사용자의 얼굴과 아바타의 얼굴을 매핑하는 과정일 수 있다.Process 10 (1120) may be a process in which the electronic device 1 (110) maps the user's face and the avatar's face based on landmark information, as described through step 320 of FIG. 3.

과정 11(1121)은 전자 기기 1(110)이 도 3의 단계(330) 및 단계(340)을 통해 설명한 바와 같이, 이벤트를 결정하는 과정일 수 있다.Process 11 (1121) may be a process in which the electronic device 1 (110) determines an event, as described through steps 330 and 340 of FIG. 3.

과정 12(1122)는 전자 기기 1(110)이 도 6 및 도 7을 통해 설명한 모션 파일을 이용하여 표정 애니메이션을 결정하는 과정일 수 있다.Process 12 (1122) may be a process in which the electronic device 1 110 determines an expression animation using the motion files described with reference to FIGS. 6 and 7.

과정 10(1120), 과정 11(1121) 및 과정 12(1122)의 결과는 각각 병렬적으로 아바타에 적용될 수 있다.The results of step 10 (1120), step 11 (1121), and step 12 (1122) may be applied to the avatar in parallel, respectively.

과정 13(1123)은 전자 기기 1(110)이 후처리를 진행하는 과정일 수 있다. 후처리는 사용자의 얼굴 표정이나 각종 이팩트 등이 적용된 아바타의 화면에 대한 동영상 녹화, 녹화된 동영상의 편집, 편집된 동영상의 저장, 편집된 영상의 움직이는 GIF 파일로의 변환, 편집된 동영상이나 GIF 파일의 공유(일례로, 메시징 서비스나 소셜 네트워크 서비스 등을 통한 공유)와 같은 처리들을 포함할 수 있다.Process 13 (1123) may be a process in which the electronic device 1 (110) performs post-processing. Post-processing is to record a video of the avatar's screen to which the user's facial expressions or various effects are applied, edit the recorded video, save the edited video, convert the edited video to a moving GIF file, edited video or GIF file. May include processes such as sharing (for example, sharing through a messaging service or a social network service, etc.).

이처럼 본 발명의 실시예들에 따르면, 입력되는 영상에 포함되어 있는 객체(일례로, 사용자의 얼굴)에 대해 기 정의되어 있는 컴포넌트들(일례로, 눈, 코, 입, 눈썹, 얼굴의 각도 등)의 값들을 결정하고, 결정된 값들의 조합에 따라 가상 객체에 대해 기 설정되어 있는 이벤트들 중 하나를 선택하여 가상 객체에 적용함으로써, 객체의 변화(일례로, 얼굴의 표정 변화)를 가상 객체에 반영하면서도 동시에 가상 객체의 관점에서 보다 자연스러운 변화를 적용할 수 있다.As described above, according to embodiments of the present invention, components (for example, eyes, nose, mouth, eyebrows, face angles, etc.) that are predefined for an object (for example, a user's face) included in an input image ), and by selecting one of the events preset for the virtual object according to the combination of the determined values and applying it to the virtual object, changes in the object (for example, changes in facial expressions) are applied to the virtual object. While reflecting, more natural changes can be applied from the perspective of the virtual object.

이상에서 설명된 시스템 또는 장치는 하드웨어 구성요소, 소프트웨어 구성요소 또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 예를 들어, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The system or device described above may be implemented as a hardware component, a software component, or a combination of a hardware component and a software component. For example, the devices and components described in the embodiments are, for example, a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA). , A programmable logic unit (PLU), a microprocessor, or any other device capable of executing and responding to instructions, such as one or more general purpose computers or special purpose computers. The processing device may execute an operating system (OS) and one or more software applications executed on the operating system. Further, the processing device may access, store, manipulate, process, and generate data in response to the execution of software. For the convenience of understanding, although it is sometimes described that one processing device is used, one of ordinary skill in the art, the processing device is a plurality of processing elements and/or a plurality of types of processing elements. It can be seen that it may include. For example, the processing device may include a plurality of processors or one processor and one controller. In addition, other processing configurations are possible, such as a parallel processor.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instructions, or a combination of one or more of these, configuring the processing unit to behave as desired or processed independently or collectively. You can command the device. Software and/or data may be interpreted by a processing device or, to provide instructions or data to a processing device, of any type of machine, component, physical device, virtual equipment, computer storage medium or device. It can be permanently or temporarily embody. The software may be distributed over networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer-readable recording media.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiment, or may be known and usable to those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. -A hardware device specially configured to store and execute program instructions such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine language codes such as those produced by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.Although the embodiments have been described by the limited embodiments and drawings as described above, various modifications and variations can be made from the above description to those of ordinary skill in the art. For example, the described techniques are performed in a different order from the described method, and/or components such as systems, structures, devices, circuits, etc. described are combined or combined in a form different from the described method, or other components Alternatively, even if substituted or substituted by an equivalent, an appropriate result can be achieved.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and those equivalent to the claims also fall within the scope of the claims to be described later.

Claims (17)

컴퓨터와 결합되어 영상 처리 방법을 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램에 있어서,
상기 영상 처리 방법은,
입력되는 영상이 포함하는 객체에 대해 랜드마크정보를 추출하는 단계;
상기 랜드마크정보에 기초하여 상기 입력되는 영상이 포함하는 객체와 가상 객체를 매핑하는 단계;
상기 랜드마크정보에 기초하여 상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계;
상기 결정된 복수의 컴포넌트들의 값들의 조합에 대응하는 이벤트를 결정하는 단계; 및
상기 결정된 이벤트를 상기 객체에 매핑된 가상 객체에 적용하는 단계
를 포함하고,
가상 객체별로 미리 설정된 복수의 이벤트들과 상기 복수의 이벤트들에 대응하는 복수의 모션 파일들이 미리 생성되고,
상기 결정된 이벤트를 상기 객체에 매핑된 가상 객체에 적용하는 단계는,
상기 미리 생성된 복수의 모션 파일들 중 상기 결정된 이벤트에 대응하여 미리 생성된 모션 파일을 로딩하는 단계; 및
상기 로딩된 모션 파일이 포함하는 애니메이션의 모션 프레임들을 상기 가상 객체를 표시하기 위한 프레임들에 프레임 단위로 순차적으로 적용하는 단계
를 포함하는 것을 특징으로 하는 컴퓨터 프로그램.
In a computer program stored in a computer-readable recording medium to execute an image processing method in combination with a computer,
The image processing method,
Extracting landmark information for an object included in the input image;
Mapping an object included in the input image and a virtual object based on the landmark information;
Determining a value of each of a plurality of components predefined for the object based on the landmark information;
Determining an event corresponding to the determined combination of values of the plurality of components; And
Applying the determined event to a virtual object mapped to the object
Including,
A plurality of preset events for each virtual object and a plurality of motion files corresponding to the plurality of events are generated in advance,
Applying the determined event to the virtual object mapped to the object,
Loading a motion file generated in advance in response to the determined event from among the plurality of previously generated motion files; And
Sequentially applying motion frames of animation included in the loaded motion file to frames for displaying the virtual object in frame units
Computer program comprising a.
제1항에 있어서,
상기 기 정의되어 있는 복수의 컴포넌트들은 상기 객체가 포함하는 복수의 랜드마크 컴포넌트 및 상기 객체의 회전을 나타내기 위한 복수의 각도 컴포넌트들을 포함하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 1,
The plurality of predefined components includes a plurality of landmark components included in the object and a plurality of angular components for indicating rotation of the object.
제2항에 있어서,
상기 영상 처리 방법은,
상기 복수의 랜드마크 컴포넌트마다 둘 이상의 서로 다른 모양들을 나타내는 복수의 모양 값들을 설정하여 저장하는 단계
를 더 포함하고,
상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계는,
제1 랜드마크 컴포넌트에 대해 저장되는 복수의 모양 값들 중 상기 랜드마크정보에 기초하여 결정되는 상기 제1 랜드마크 컴포넌트의 모양에 대응하는 모양 값을, 상기 제1 랜드마크 컴포넌트의 값으로서 결정하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 2,
The image processing method,
Setting and storing a plurality of shape values representing two or more different shapes for each of the plurality of landmark components
Including more,
The step of determining a value of each of a plurality of components predefined for the object,
Determining a shape value corresponding to the shape of the first landmark component determined based on the landmark information among a plurality of shape values stored for the first landmark component as the value of the first landmark component A computer program characterized by.
제2항에 있어서,
상기 복수의 각도 컴포넌트들은 상기 객체에 대해 설정 가능한 복수의 회전축들에 대응하고,
상기 영상 처리 방법은,
상기 복수의 회전축들마다 둘 이상의 서로 다른 각도들을 나타내는 복수의 각도 값들을 설정하여 저장하는 단계
를 더 포함하고,
상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계는,
상기 복수의 회전축들 중 제1 회전축에 대한 상기 객체의 각도를 상기 랜드마크정보에 기초하여 결정하는 단계; 및
상기 제1 회전축에 대해 저장되는 복수의 각도 값들 중 상기 결정된 객체의 각도에 대응하는 각도 값을, 상기 제1 회전축에 대응하는 각도 컴포넌트의 값으로 결정하는 단계
를 포함하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 2,
The plurality of angular components correspond to a plurality of rotation axes settable for the object,
The image processing method,
Setting and storing a plurality of angle values representing two or more different angles for each of the plurality of rotation axes
Including more,
The step of determining a value of each of a plurality of components predefined for the object,
Determining an angle of the object with respect to a first rotation axis among the plurality of rotation axes based on the landmark information; And
Determining an angle value corresponding to the determined angle of the object among a plurality of angle values stored with respect to the first rotation axis as a value of an angle component corresponding to the first rotation axis
Computer program comprising a.
제1항에 있어서,
상기 영상 처리 방법은,
상기 복수의 컴포넌트들에 대해 설정 가능한 값들의 조합마다 이벤트를 설정하여 조합들에 대한 복수의 이벤트들을 저장하는 단계
를 더 포함하고,
상기 이벤트를 결정하는 단계는,
상기 저장된 복수의 이벤트들 중 상기 결정된 값의 조합에 대응하는 이벤트를 추출하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 1,
The image processing method,
Setting an event for each combination of values that can be set for the plurality of components and storing a plurality of events for the combinations
Including more,
The step of determining the event,
And extracting an event corresponding to a combination of the determined values from among the plurality of stored events.
제1항에 있어서,
상기 영상 처리 방법은,
상기 추출된 랜드마크정보를 이용하여 상기 객체의 크기, 위치 및 각도를 정규화하는 단계
를 더 포함하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 1,
The image processing method,
Normalizing the size, position, and angle of the object using the extracted landmark information
Computer program further comprising a.
제1항에 있어서,
상기 영상 처리 방법은,
상기 영상의 현재 프레임을 통해 추출된 랜드마크정보를 통해 인식되는 상기 객체의 랜드마크 컴포넌트들의 좌표를 상기 영상의 이전 프레임을 통해 추출된 랜드마크정보를 이용하여 보정하는 단계
를 더 포함하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 1,
The image processing method,
Correcting the coordinates of the landmark components of the object recognized through the landmark information extracted through the current frame of the image using the landmark information extracted through the previous frame of the image
Computer program further comprising a.
제7항에 있어서,
상기 보정하는 단계는,
상기 현재 프레임에서 인식되는 상기 객체의 회전축별 각도와 상기 이전 프레임에서 인식되는 상기 객체의 회전축별 각도의 변화량에 기초하여 계산되는 신뢰도값을 이용하여 상기 현재 프레임을 통해 상기 객체의 랜드마크 컴포넌트들의 좌표를 보정하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 7,
The step of correcting,
Coordinates of the landmark components of the object through the current frame using a reliability value calculated based on the angle of rotation of the object recognized in the current frame and the amount of change in the angle of rotation of the object recognized in the previous frame Computer program, characterized in that to calibrate.
제1항에 있어서,
상기 객체는 카메라를 통해 입력되는 상기 영상에 포함된 사용자의 얼굴을 포함하고,
상기 가상 객체는 상기 사용자의 얼굴에 실시간으로 매핑시키고자 하는 캐릭터의 얼굴을 포함하는 것을 특징으로 하는 컴퓨터 프로그램.
The method of claim 1,
The object includes a user's face included in the image input through a camera,
And the virtual object includes a face of a character to be mapped to the face of the user in real time.
입력되는 영상이 포함하는 객체에 대해 랜드마크정보를 추출하는 단계;
상기 랜드마크정보에 기초하여 상기 입력되는 영상이 포함하는 객체와 가상 객체를 매핑하는 단계;
상기 랜드마크정보에 기초하여 상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계;
상기 결정된 복수의 컴포넌트들의 값들의 조합에 대응하는 이벤트를 결정하는 단계; 및
상기 결정된 이벤트를 상기 객체에 매핑된 가상 객체에 적용하는 단계
를 포함하고,
가상 객체별로 미리 설정된 복수의 이벤트들과 상기 복수의 이벤트들에 대응하는 복수의 모션 파일들이 미리 생성되고,
상기 결정된 이벤트를 상기 객체에 매핑된 가상 객체에 적용하는 단계는,
상기 미리 생성된 복수의 모션 파일들 중 상기 결정된 이벤트에 대응하여 미리 생성된 모션 파일을 로딩하는 단계; 및
상기 로딩된 모션 파일이 포함하는 애니메이션의 모션 프레임들을 상기 가상 객체를 표시하기 위한 프레임들에 프레임 단위로 순차적으로 적용하는 단계
를 포함하는 것을 특징으로 하는 영상 처리 방법.
Extracting landmark information for an object included in the input image;
Mapping an object included in the input image and a virtual object based on the landmark information;
Determining a value of each of a plurality of components predefined for the object based on the landmark information;
Determining an event corresponding to the determined combination of values of the plurality of components; And
Applying the determined event to a virtual object mapped to the object
Including,
A plurality of preset events for each virtual object and a plurality of motion files corresponding to the plurality of events are generated in advance,
Applying the determined event to the virtual object mapped to the object,
Loading a pre-generated motion file corresponding to the determined event from among the plurality of pre-generated motion files; And
Sequentially applying motion frames of animation included in the loaded motion file to frames for displaying the virtual object in frame units
Image processing method comprising a.
제10항에 있어서,
상기 기 정의되어 있는 복수의 컴포넌트들은 상기 객체가 포함하는 복수의 랜드마크 컴포넌트 및 상기 객체의 회전을 나타내기 위한 복수의 각도 컴포넌트들을 포함하는 것을 특징으로 하는 영상 처리 방법.
The method of claim 10,
The plurality of predefined components include a plurality of landmark components included in the object and a plurality of angular components for indicating rotation of the object.
제11항에 있어서,
상기 복수의 랜드마크 컴포넌트마다 둘 이상의 서로 다른 모양들을 나타내는 복수의 모양 값들을 설정하여 저장하는 단계
를 더 포함하고,
상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계는,
제1 랜드마크 컴포넌트에 대해 저장되는 복수의 모양 값들 중 상기 랜드마크정보에 기초하여 결정되는 상기 제1 랜드마크 컴포넌트의 모양에 대응하는 모양 값을, 상기 제1 랜드마크 컴포넌트의 값으로서 결정하는 것을 특징으로 하는 영상 처리 방법.
The method of claim 11,
Setting and storing a plurality of shape values representing two or more different shapes for each of the plurality of landmark components
Including more,
The step of determining a value of each of a plurality of components predefined for the object,
Determining a shape value corresponding to the shape of the first landmark component determined based on the landmark information among a plurality of shape values stored for the first landmark component as the value of the first landmark component Image processing method characterized by.
제11항에 있어서,
상기 복수의 각도 컴포넌트들은 상기 객체에 대해 설정 가능한 복수의 회전축들에 대응하고,
상기 복수의 회전축들마다 둘 이상의 서로 다른 각도들을 나타내는 복수의 각도 값들을 설정하여 저장하는 단계
를 더 포함하고,
상기 객체에 대해 기 정의되어 있는 복수의 컴포넌트들 각각의 값을 결정하는 단계는,
상기 복수의 회전축들 중 제1 회전축에 대한 상기 객체의 각도를 상기 랜드마크정보에 기초하여 결정하는 단계; 및
상기 제1 회전축에 대해 저장되는 복수의 각도 값들 중 상기 결정된 객체의 각도에 대응하는 각도 값을, 상기 제1 회전축에 대응하는 각도 컴포넌트의 값으로 결정하는 단계
를 포함하는 것을 특징으로 하는 영상 처리 방법.
The method of claim 11,
The plurality of angular components correspond to a plurality of rotation axes settable for the object,
Setting and storing a plurality of angle values representing two or more different angles for each of the plurality of rotation axes
Including more,
The step of determining a value of each of a plurality of components predefined for the object,
Determining an angle of the object with respect to a first rotation axis among the plurality of rotation axes based on the landmark information; And
Determining an angle value corresponding to the determined angle of the object among a plurality of angle values stored with respect to the first rotation axis as a value of an angle component corresponding to the first rotation axis
Image processing method comprising a.
제10항에 있어서,
상기 복수의 컴포넌트들에 대해 설정 가능한 값들의 조합마다 이벤트를 설정하여 조합들에 대한 복수의 이벤트들을 저장하는 단계
를 더 포함하고,
상기 이벤트를 결정하는 단계는,
상기 저장되는 복수의 이벤트들 중 상기 결정된 값의 조합에 대응하는 이벤트를 추출하는 것을 특징으로 하는 영상 처리 방법.
The method of claim 10,
Setting an event for each combination of values that can be set for the plurality of components and storing a plurality of events for the combinations
Including more,
The step of determining the event,
And extracting an event corresponding to a combination of the determined values from among the plurality of stored events.
제10항에 있어서,
상기 영상의 현재 프레임을 통해 추출된 랜드마크정보를 통해 인식되는 상기 객체의 랜드마크 컴포넌트들의 좌표를 상기 영상의 이전 프레임을 통해 추출된 랜드마크정보를 이용하여 보정하는 단계
를 더 포함하는 것을 특징으로 하는 영상 처리 방법.
The method of claim 10,
Correcting the coordinates of the landmark components of the object recognized through the landmark information extracted through the current frame of the image using the landmark information extracted through the previous frame of the image
The image processing method further comprising a.
제15항에 있어서,
상기 보정하는 단계는,
상기 현재 프레임에서 인식되는 상기 객체의 회전축별 각도와 상기 이전 프레임에서 인식되는 상기 객체의 회전축별 각도의 변화량에 기초하여 계산되는 신뢰도값을 이용하여 상기 현재 프레임을 통해 상기 객체의 랜드마크 컴포넌트들의 좌표를 보정하는 것을 특징으로 하는 영상 처리 방법.
The method of claim 15,
The step of correcting,
Coordinates of the landmark components of the object through the current frame using a reliability value calculated based on the angle of rotation of the object recognized in the current frame and the amount of change in the angle of rotation of the object recognized in the previous frame The image processing method, characterized in that to correct the.
제10항 내지 제16항 중 어느 한 항의 방법을 컴퓨터에 실행시키기 위한 프로그램이 기록되어 있는 것을 특징으로 하는 컴퓨터에서 판독 가능한 기록매체.A computer-readable recording medium having a program recorded thereon for causing a computer to execute the method of any one of claims 10 to 16.
KR1020190037921A 2019-04-01 2019-04-01 Method and system for image processing KR102238036B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190037921A KR102238036B1 (en) 2019-04-01 2019-04-01 Method and system for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190037921A KR102238036B1 (en) 2019-04-01 2019-04-01 Method and system for image processing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020170082472A Division KR101966384B1 (en) 2017-06-29 2017-06-29 Method and system for image processing

Publications (2)

Publication Number Publication Date
KR20190039045A KR20190039045A (en) 2019-04-10
KR102238036B1 true KR102238036B1 (en) 2021-04-08

Family

ID=66163908

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190037921A KR102238036B1 (en) 2019-04-01 2019-04-01 Method and system for image processing

Country Status (1)

Country Link
KR (1) KR102238036B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023224250A1 (en) * 2022-05-16 2023-11-23 삼성전자주식회사 Electronic apparatus and method for controlling same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047662A1 (en) 2003-09-03 2005-03-03 Gorodnichy Dmitry O. Second order change detection in video
JP2009075880A (en) * 2007-09-20 2009-04-09 Nippon Hoso Kyokai <Nhk> Apparatus and program for deforming virtual face model
US20140085514A1 (en) 2012-09-21 2014-03-27 Htc Corporation Methods for image processing of face regions and electronic devices using the same
US20160042548A1 (en) 2014-03-19 2016-02-11 Intel Corporation Facial expression and/or interaction driven avatar apparatus and method
US20160300099A1 (en) 2014-09-25 2016-10-13 Intel Corporation Facilitating efficeint free in-plane rotation landmark tracking of images on computing devices

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050078757A (en) * 2004-02-02 2005-08-08 주식회사 비즈모델라인 System and method for alternating game characters, game server(or game devices) and recording medium
KR20060104980A (en) * 2006-09-26 2006-10-09 주식회사 비즈모델라인 System and method for interlocking process between emoticon and avatar
EP2327053A4 (en) * 2008-07-22 2012-01-18 Sony Online Entertainment Llc System and method for providing persistent character personalities in a simulation
KR20110021330A (en) * 2009-08-26 2011-03-04 삼성전자주식회사 Apparatus and method for creating third dimension abatar
KR101630304B1 (en) * 2010-02-04 2016-06-14 삼성전자주식회사 A digital photographing apparatus, a method for controlling the same, and a computer-readable medium
KR102314274B1 (en) * 2014-08-18 2021-10-20 삼성전자주식회사 Method for processing contents and electronics device thereof
KR102205498B1 (en) * 2014-09-18 2021-01-20 삼성전자주식회사 Feature extraction method and apparatus from input image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047662A1 (en) 2003-09-03 2005-03-03 Gorodnichy Dmitry O. Second order change detection in video
JP2009075880A (en) * 2007-09-20 2009-04-09 Nippon Hoso Kyokai <Nhk> Apparatus and program for deforming virtual face model
US20140085514A1 (en) 2012-09-21 2014-03-27 Htc Corporation Methods for image processing of face regions and electronic devices using the same
US20160042548A1 (en) 2014-03-19 2016-02-11 Intel Corporation Facial expression and/or interaction driven avatar apparatus and method
US20160300099A1 (en) 2014-09-25 2016-10-13 Intel Corporation Facilitating efficeint free in-plane rotation landmark tracking of images on computing devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023224250A1 (en) * 2022-05-16 2023-11-23 삼성전자주식회사 Electronic apparatus and method for controlling same

Also Published As

Publication number Publication date
KR20190039045A (en) 2019-04-10

Similar Documents

Publication Publication Date Title
KR101966384B1 (en) Method and system for image processing
US10600150B2 (en) Utilizing an inertial measurement device to adjust orientation of panorama digital images
US11169675B1 (en) Creator profile user interface
US11514132B2 (en) Automatic website data migration
US11810316B2 (en) 3D reconstruction using wide-angle imaging devices
US11430142B2 (en) Photometric-based 3D object modeling
US11347932B2 (en) Decoupling website service from presentation layer
WO2016201993A1 (en) Method and terminal for implementing virtual character turning
CN110322571B (en) Page processing method, device and medium
CN109905592A (en) According to the interactive controlling of user or the providing method and device of the content of synthesis
EP4173257A1 (en) Skeletal tracking for real-time virtual effects
KR102238036B1 (en) Method and system for image processing
US10572231B1 (en) Component grouping for application development
KR102256314B1 (en) Method and system for providing dynamic content of face recognition camera
US11562548B2 (en) True size eyewear in real time
KR102239355B1 (en) Image correction method and system through correction pattern analysis
KR102252191B1 (en) Method and system for expressing moving character by recognizing user face infomation
CN114419253A (en) Construction and live broadcast method of cartoon face and related device
WO2022213031A1 (en) Neural networks for changing characteristics of vocals

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
AMND Amendment
X701 Decision to grant (after re-examination)