KR102480960B1 - Device and method for transforming human face into animal face - Google Patents

Device and method for transforming human face into animal face Download PDF

Info

Publication number
KR102480960B1
KR102480960B1 KR1020200177084A KR20200177084A KR102480960B1 KR 102480960 B1 KR102480960 B1 KR 102480960B1 KR 1020200177084 A KR1020200177084 A KR 1020200177084A KR 20200177084 A KR20200177084 A KR 20200177084A KR 102480960 B1 KR102480960 B1 KR 102480960B1
Authority
KR
South Korea
Prior art keywords
face
animal
human
data
area
Prior art date
Application number
KR1020200177084A
Other languages
Korean (ko)
Other versions
KR20220087613A (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 KR1020200177084A priority Critical patent/KR102480960B1/en
Publication of KR20220087613A publication Critical patent/KR20220087613A/en
Application granted granted Critical
Publication of KR102480960B1 publication Critical patent/KR102480960B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/02Affine transformations
    • G06T3/0006
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • 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
    • G06V40/168Feature extraction; Face representation
    • 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
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Geometry (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

본 발명은 얼굴 변환 기술에 관한 것으로, 보다 상세하게는 들로네 삼각분할과 보로노이 다이어그램을 이용한 사람 얼굴을 동물 얼굴로 변환하는 얼굴 변환 장치 및 방법에 관한 것이다. 본 발명의 일 실시 예에 따르면, 사람의 얼굴에서 변형하고자 하는 동물 얼굴로의 변형을 위한 변환 벡터를 제공하여 다양한 사람 및 동물 얼굴 간의 다양한 변형 작업의 자동화에 도움을 줄 수 있다.The present invention relates to a face conversion technology, and more particularly, to a face conversion apparatus and method for converting a human face into an animal face using Delaunay triangulation and Voronoi diagram. According to an embodiment of the present invention, it is possible to assist in automating various transformation tasks between various human and animal faces by providing a transformation vector for transformation from a human face to an animal face to be transformed.

Description

얼굴 변환 장치 및 방법 {DEVICE AND METHOD FOR TRANSFORMING HUMAN FACE INTO ANIMAL FACE}Face conversion device and method {DEVICE AND METHOD FOR TRANSFORMING HUMAN FACE INTO ANIMAL FACE}

본 발명은 얼굴 변환 기술에 관한 것으로, 보다 상세하게는 들로네 삼각분할과 보로노이 다이어그램을 이용한 사람 얼굴을 동물 얼굴로 변환하는 얼굴 변환 장치 및 방법에 관한 것이다.The present invention relates to a face conversion technology, and more particularly, to a face conversion apparatus and method for converting a human face into an animal face using Delaunay triangulation and Voronoi diagram.

AI를 비롯한 다양한 기술의 발전과 보편화는 미디어 콘텐츠의 생산을 급격하게 증가시키고 있다. 이러한 현상을 배경으로 다양한 미디어 콘텐츠가 개발되고 있는데 특히 많은 미디어 콘텐츠에서는 콘텐츠의 차별화를 위하여 독특한 캐릭터를 개발 하여 활용하고 있으며 활용되는 캐릭터의 중요도는 점점 높아지고 있다. 또한 기존의 미디어와는 다르게 상황에 따라 반응하는 스마트 미디어의 형태가 확산되고 있으며 이로 인하여 미디어 콘텐츠의 개발에 있어서 자동화를 비롯한 시스템의 지원이 중요해지고 있다. The development and generalization of various technologies, including AI, is rapidly increasing the production of media contents. Against this backdrop, various media contents are being developed. In particular, in many media contents, unique characters are developed and used to differentiate the contents, and the importance of the characters used is gradually increasing. In addition, unlike existing media, the form of smart media that reacts according to the situation is spreading, and for this reason, system support including automation is becoming important in the development of media contents.

캐릭터 산업은 많은 가능성을 가진 산업분야이며 캐릭터의 속성에 대한 다양한 분석 연구가 진행되고 있다. 특히 카카오 프렌즈의 라이언, EBS 자이언트 펭TV의 펭수 등 동물을 의인화하여 개발된 캐릭터가 캐릭터 산업의 높은 수익성과 가능성을 보여주고 있다. 표준 국어 대사전에 따르면 캐릭터란 소설이나 연극 따위에 등장하는 인물, 또는 작품 내용 속에서 드러나는 인물의 개성과 이미지, 소설, 만화, 극 따위에 등장하는 독특한 인물이나 동물의 모습을 디자인에 도입한 것이라고 정의하고 있는데, 개인이 가진 독특한 개성과 특징을 강조하고 있다. 이처럼 다양한 개인의 특징과 개성을 표현하기 위하여 캐릭터의 개발은 동물을 중심으로 한 다양한 개체를 의인화 하는 경우가 많다. 캐릭터의 의인화는 표현하고자 하는 사람의 개성과 특성을 분석하여 동물 또는 사람이 아닌 사물에 대한 보편화된 특성을 기반으로 그 이미지를 사람처럼 표현한 것이다. 따라서 특정사람을 위한 캐릭터의 개발에 적용하기 위한 동물의 종류를 선정하는데 있어서 규칙성을 찾을 수 있다면 캐릭터 개발에서 많은 부분을 자동화하거나 시스템의 도움을 받음으로써 더욱 효율적인 작업이 가능해질 것이다.The character industry is an industry with many potentials, and various analysis studies are being conducted on the attributes of characters. In particular, characters developed by personifying animals, such as Ryan from Kakao Friends and Pengsoo from EBS Giant Peng TV, show the high profitability and potential of the character industry. According to the standard Korean dictionary, a character is defined as a character appearing in a novel or a play, or a character's personality and image revealed in the contents of a work, or a unique character or animal appearance in a novel, cartoon, or play. It emphasizes the unique personality and characteristics of each individual. In order to express such diverse individual characteristics and personalities, the development of characters often involves anthropomorphizing various entities centering on animals. Personification of a character is to analyze the personality and characteristics of a person to be expressed and express the image like a person based on the generalized characteristics of animals or non-human objects. Therefore, if regularity can be found in selecting the type of animal to be applied to the development of a character for a specific person, more efficient work will be possible by automating many parts of character development or receiving help from the system.

본 발명의 배경기술은 대한민국 등록특허 제2131109호에 게시되어 있다.The background art of the present invention is published in Korean Registered Patent No. 2131109.

본 발명은 동물의 얼굴과 사람의 얼굴 사이에 대한 다양한 기준 정보를 기반으로 사람의 얼굴을 동물의 종별 특징에 맞게 각 특징 점의 좌표를 변환시켜줄 수 있는 변환 벡터를 자동으로 계산하여 제공하는 얼굴 변환 장치 및 방법을 제공한다. The present invention automatically calculates and provides a conversion vector capable of converting the coordinates of each feature point of a human face according to the characteristics of each animal species based on various reference information about the face of an animal and a human face. An apparatus and method are provided.

본 발명의 목적은 이상에서 언급한 것으로 제한되지 않으며, 확장 및 범용성이 존재하는 다른 목적들은 아래의 기재로부터 본 발명이 속하는 기술 분야에서 충분한 활용 가능성이 있을 것으로 판단된다.The object of the present invention is not limited to those mentioned above, and other objects having extension and versatility are determined to have sufficient utilization potential in the technical field to which the present invention belongs from the following description.

본 발명의 일 측면에 따르면, 얼굴 변환 장치를 제공한다. According to one aspect of the present invention, a face conversion device is provided.

본 발명의 일 실시예에 따른 얼굴 변환 장치는 동물 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 동물 데이터를 산출하고 저장하는 동물 데이터 관리부, 사람 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 사람 데이터를 산출하는 사람 데이터 처리부 및 상기 사람 데이터와 저장한 동물 데이터를 비교하여 매칭되는 동물 얼굴 데이터를 추출하고, 입력된 사람 얼굴 데이터를 매칭된 동물 얼굴 데이터로 변환하기 위한 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환하는 사람 동물 변환부를 포함할 수 있다.A face conversion device according to an embodiment of the present invention includes an animal data management unit that receives animal face data, calculates and stores animal data for face conversion, receives human face data, and calculates human data for face conversion. A human face is converted into an animal face by using a conversion vector for extracting matched animal face data by comparing the human data processing unit and the human data and stored animal data, and converting the input human face data into the matched animal face data. It may include a human-animal conversion unit that converts.

본 발명의 다른 일 측면에 따르면, 얼굴 변환 방법 및 이를 실행하는 컴퓨터 프로그램이 기록된 컴퓨터가 판독 가능한 기록매체를 제공한다.According to another aspect of the present invention, a face conversion method and a computer readable recording medium on which a computer program executing the same is recorded are provided.

본 발명의 일 실시 예에 따른 얼굴 변환 방법 및 이를 실행하는 컴퓨터 프로그램이 저장된 기록매체는 동물 얼굴 데이터를 입력 받고 동물 얼굴 특징점을 추출하는 단계, 들로네 삼각분할을 이용하여 동물 얼굴 패턴을 생성하는 단계 및 보로노이 다이어그램을 이용하여 동물 얼굴 영역별 면적을 계산하는 단계, 얼굴 중심점 기준으로 동물 얼굴 구성요소 간 거리를 계산하는 단계 및 계산한 동물 얼굴 데이터들을 저장하는 단계를 포함할 수 있다.According to an embodiment of the present invention, a face conversion method and a recording medium storing a computer program for executing the same include the steps of receiving animal face data and extracting animal face feature points, generating an animal face pattern using Delaunay triangulation, and The method may include calculating an area of each animal face region using a Voronoi diagram, calculating a distance between animal face components based on a face center point, and storing the calculated animal face data.

본 발명의 일 실시 예에 따르면, 사람의 얼굴에서 변형하고자 하는 동물 얼굴로의 변형을 위한 변환 벡터를 제공하여 다양한 사람 및 동물 얼굴 간의 다양한 변형 작업의 자동화에 도움을 줄 수 있다.According to an embodiment of the present invention, it is possible to assist in automating various transformation tasks between various human and animal faces by providing a transformation vector for transformation from a human face to an animal face to be transformed.

또한, 본 발명의 일 실시 예에 따르면, 변환 벡터의 제공은 많은 데이터 처리가 필요하지 않으므로 빠른 시간 내에 도출할 수 있으며, 관련 산업 또는 시스템의 자동화에 기여할 수 있다. In addition, according to an embodiment of the present invention, since the provision of a conversion vector does not require much data processing, it can be derived within a short time, and can contribute to the automation of related industries or systems.

도 1 내지 도 4는 본 발명의 일 실시 예에 따른 얼굴 변환 장치를 설명하기 위한 도면들.
도5 내지 도11은 본 발명의 일 실시 예에 따른 얼굴 변환 방법을 설명한 도면들.
1 to 4 are views for explaining a face conversion device according to an embodiment of the present invention.
5 to 11 are diagrams illustrating a face conversion method according to an embodiment of the present invention.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시 예를 가질 수 있는 바, 특정 실시 예들을 도면에 예시하고 이를 상세한 설명을 통해 상세히 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 본 발명을 설명함에 있어서, 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 본 명세서 및 청구항에서 사용되는 단수 표현은, 달리 언급하지 않는 한 일반적으로 "하나 이상"을 의미하는 것으로 해석되어야 한다.Since the present invention can make various changes and have various embodiments, specific embodiments are illustrated in the drawings and will be described in detail through detailed description. However, this is not intended to limit the present invention to specific embodiments, and should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. In describing the present invention, if it is determined that a detailed description of related known technologies may unnecessarily obscure the subject matter of the present invention, the detailed description will be omitted. Also, as used in this specification and claims, the terms "a" and "an" are generally to be construed to mean "one or more" unless stated otherwise.

이하, 본 발명의 바람직한 실시 예를 첨부도면을 참조하여 상세히 설명하기로 하며, 첨부 도면을 참조하여 설명함에 있어, 동일하거나 대응하는 구성 요소는 동일한 도면번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. do it with

도 1 내지 도 4는 본 발명의 일 실시 예에 따른 얼굴 변환 장치를 설명하기 위한 도면들이다.1 to 4 are diagrams for explaining a face conversion device according to an embodiment of the present invention.

도 1을 참조하면, 얼굴 변환 장치는 동물 데이터 관리부(100), 사람 데이터 입력부(200), 사람 데이터 처리부(300) 및 사람 동물 변환부(400)를 포함한다.Referring to FIG. 1 , the face conversion device includes an animal data management unit 100, a human data input unit 200, a human data processing unit 300, and a human-animal conversion unit 400.

동물 데이터 관리부(100)는 동물 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 얼굴 영역별 면적 정보 및 구성요소 간 거리 정보를 산출하고, 이들을 저장한다. 동물 데이터 관리부(100)는 이하 도 2에서 더욱 상세히 설명하기로 한다.The animal data management unit 100 receives animal face data, calculates area information for each face region for face conversion and distance information between components, and stores them. The animal data management unit 100 will be described in more detail with reference to FIG. 2 below.

도 2를 참조하면, 동물 데이터 관리부(100)는 동물 데이터 입력부(110), 동물 특징점 추출부(120), 동물 패턴 생성부(130), 동물 영역별 면적 계산부(140), 동물 구성요소간 거리 산출부(150) 및 동물 데이터 저장부(160)를 포함한다.Referring to FIG. 2 , the animal data management unit 100 includes an animal data input unit 110, an animal feature point extraction unit 120, an animal pattern generator 130, an area calculation unit 140 for each animal region, and animal components. A distance calculator 150 and an animal data storage unit 160 are included.

동물 데이터 입력부(110)는 동물 얼굴 데이터를 입력한다. 여기서, 동물 얼굴 데이터는 예를 들면, 동물 얼굴 이미지일 수 있다. 동물 데이터 입력부(110)는 예를 들면, 실험에 필요한 동물의 얼굴 이미지로 저작권 문제가 없는 픽사베이(pixabay.com)로부터 60종의 동물의 얼굴 이미지를 이용할 수 있으며, 비교 실험에 사용된 60종의 동물의 선택 기준은 1753년 린네의 생물학적 분류체계에 따라 목(Order), 과(Family), 종(Species)을 기준으로 할 수 있다. 동물 데이터 입력부(110)는 캐릭터가 아닌 실제 사진을 이용하여 딥러닝을 통하여 분류하였을 때, 명확히 구분되지 않는 종은 그 상위에 속하는 분류로 통합시키는 방법을 통하여 다시 20종의 동물을 선택하고, 선택된 20종의 동물에 대하여 실제 얼굴 사진을 확보하여 실험에 사용할 수 있다. The animal data input unit 110 inputs animal face data. Here, the animal face data may be, for example, an animal face image. The animal data input unit 110 can use, for example, 60 types of animal face images from Pixabay.com, which have no copyright problem, as face images of animals necessary for experiments, and 60 types of animal faces used in comparative experiments. The animal selection criteria in can be based on Order, Family, and Species according to Linnaeus' biological classification system in 1753. When the animal data input unit 110 classifies through deep learning using real photos rather than characters, species that are not clearly distinguished are integrated into a higher category, and 20 kinds of animals are selected again. Actual face photos of 20 kinds of animals can be obtained and used in experiments.

동물 특징점 추출부(120)는 입력된 동물 얼굴 데이터에서 특징점을 추출한다. 동물 특징점 추출부(120)는 예를 들면, 모든 동물의 이미지에서 공통된 특징점의 좌표를 추출할 수 있다. 여기서, 공통된 특징점으로는 얼굴의 중심점, 왼쪽 눈의 중심점, 오른쪽 눈의 중심점, 코의 중심점, 입의 중심점, 왼쪽 귀의 중심점, 오른쪽 귀의 중심점의 7개의 좌표를 추출할 수 있다. The animal feature point extraction unit 120 extracts feature points from input animal face data. The animal feature point extraction unit 120 may extract coordinates of feature points common to all animal images, for example. Here, as common feature points, seven coordinates of the center point of the face, the center point of the left eye, the center point of the right eye, the center point of the nose, the center point of the mouth, the center point of the left ear, and the center point of the right ear can be extracted.

동물 패턴 생성부(130)는 들로네 삼각분할을 이용하여 동물 얼굴 패턴을 생성한다. 동물 패턴 생성부(130)는 예를 들면, 얼굴의 중심점 좌표를 제외한 다른 특징점의 좌표를 중심점으로 들로네 삼각분할을 적용하여 동물 얼굴 패턴을 생성할 수 있다. 여기서, 얼굴의 중심점 좌표를 제외한 이유는 각 좌표와의 거리를 계산하기 위한 기준점임과 동시에 코, 입 등의 얼굴 중심 근처에 위치하는 좌표와 간섭을 일으켜 패턴의 변형을 초래할 수 있기 때문이다.The animal pattern generator 130 generates an animal face pattern using Delaunay triangulation. The animal pattern generation unit 130 may generate an animal face pattern by, for example, applying Delaunay triangulation to the coordinates of other feature points other than the coordinates of the center point of the face as the center point. Here, the reason for excluding the coordinates of the center point of the face is that it is a reference point for calculating the distance to each coordinate and at the same time may cause pattern deformation by causing interference with coordinates located near the center of the face, such as the nose and mouth.

동물 영역별 면적 계산부(140)는 보로노이 다이어그램을 이용하여 동물 얼굴 영역별 면적을 계산한다. 동물 영역별 면적 계산부(140)는 예를 들면, 파이썬의 Scipy 라이브러리의 1.5.4 버전을 이용하여 보로노이 다이어그램을 생성하고, 각 보로노이 다각형의 영역의 면적을 계산할 수 있다.The area calculation unit 140 for each animal region calculates the area for each animal face region using the Voronoi diagram. The area calculation unit 140 for each animal area may generate a Voronoi diagram using, for example, the 1.5.4 version of the Scipy library of Python, and calculate the area of each Voronoi polygon.

동물 구성요소간 거리 산출부(150)는 얼굴 중심점 기준으로 동물 얼굴 구성요소 간 거리를 계산한다. 동물 구성요소간 거리 산출부(150)는 얼굴 중심점 좌표를 기준으로 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 좌표 중 적어도 하나의 구성요소 간 거리를 계산할 수 있다.The distance calculating unit 150 between the animal components calculates the distance between the animal face components based on the center point of the face. The distance calculating unit 150 between animal components may calculate a distance between at least one of the coordinates of the left eye, right eye, nose, mouth, left ear, and right ear based on the coordinates of the center point of the face.

동물 데이터 저장부(160)는 계산한 동물 얼굴의 각 보로노이 다각형의 영역의 면적 정보 및 동물 얼굴 구성요소 간 거리 정보 중 적어도 하나를 저장할 수 있다.The animal data storage unit 160 may store at least one of calculated area information of each Voronoi polygon region of the animal face and distance information between animal face components.

다시 도 1을 참조하면, 사람 데이터 처리부(300)는 사람 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 얼굴 영역별 면적 정보 및 구성요소 간 거리 정보를 산출한다. 사람 데이터 처리부(300)는 이하 도 3에서 더욱 상세히 설명한다.Referring back to FIG. 1 , the human data processing unit 300 receives human face data and calculates area information for each face region and distance information between components for face conversion. The human data processing unit 300 will be described in more detail with reference to FIG. 3 below.

도 3을 참조하면, 사람 데이터 처리부(300)는 사람 특징점 추출부(320), 사람 패턴 생성부(330), 사람 영역별 면적 계산부(340) 및 사람 구성요소간 거리 산출부(350)를 포함한다.Referring to FIG. 3 , the human data processor 300 includes a human feature point extractor 320, a human pattern generator 330, an area calculator 340 for each human region, and a distance calculator 350 between human elements. include

사람 특징점 추출부(320)는 사람 얼굴 데이터를 입력 받고 사람 얼굴 특징점을 추출한다. 여기서, 사람 얼굴 특징점은 앞서 설명한 동물 얼굴 특징점과 같이 예를 들면, 얼굴, 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 중 적어도 하나를 포함할 수 있다.The human feature point extraction unit 320 receives human face data and extracts human face feature points. Here, the human facial feature points may include, for example, at least one of a face, a left eye, a right eye, a nose, a mouth, a left ear, and a right ear, like the aforementioned animal facial feature points.

사람 패턴 생성부(330)는 들로네 삼각분할을 이용하여 사람 얼굴 패턴을 생성한다. 얼굴 변환 장치(100)는 앞서 설명한 동물 얼굴 패턴 생성 방법과 같이 사람 얼굴에 대해 얼굴의 중심점 좌표를 제외한 모든 좌표를 중심점으로 들로네 삼각분할을 적용하여 사람 얼굴 패턴을 생성할 수 있다.The human pattern generation unit 330 generates a human face pattern using Delaunay triangulation. The face conversion apparatus 100 may generate a human face pattern by applying Delaunay triangulation to the human face with all coordinates except for the coordinates of the center point of the face as the center point, as in the method of generating the animal face pattern described above.

사람 영역별 면적 계산부(340)는 보로노이 다이어그램을 이용하여 사람 얼굴 영역별 면적을 계산한다. 얼굴 변환 장치(100)는 앞서 설명한 동물의 얼굴에 적용한 바와 같이 예를 들면, 파이썬의 Scipy 라이브러리의 1.5.4 버전을 이용하여 보로노이 다이어그램을 생성하고, 각 보로노이 다각형 영역의 면적을 계산할 수 있다.The area calculation unit 340 for each human region calculates an area for each human face region using a Voronoi diagram. As applied to the face of the animal described above, the face conversion device 100 may generate a Voronoi diagram using, for example, the 1.5.4 version of the Python Scipy library, and calculate the area of each Voronoi polygon region. .

사람 구성요소간 거리 산출부(350)는 얼굴 중심점 기준으로 사람 얼굴 구성요소 간 거리를 계산한다. 얼굴 변환 장치(100)는 얼굴 중심점 좌표를 기준으로 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 좌표 중 적어도 하나의 구성요소 간 거리를 계산할 수 있다.The distance calculation unit 350 between human face elements calculates the distance between human face elements based on the center point of the face. The face conversion device 100 may calculate a distance between at least one of the left eye, right eye, nose, mouth, left ear, and right ear coordinates based on the face center point coordinates.

다시 도 1을 참조하면, 사람 동물 변환부(400)는 산출한 사람 얼굴 데이터와 저장한 동물 얼굴 데이터를 비교하여 매칭되는 동물 얼굴 데이터를 추출하고, 산출한 사람 얼굴을 매칭된 동물 얼굴로 변환하기 위한 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환한다. Referring back to FIG. 1 , the human-animal conversion unit 400 compares the calculated human face data with the stored animal face data, extracts matched animal face data, and converts the calculated human face into a matched animal face. A human face is converted into an animal face using a conversion vector for

도 4를 참조하면, 사람 동물 변환부(400)는 사람 동물 비교부(410) 및 사람 동물 변환 벡터 계산부(420)를 포함한다.Referring to FIG. 4 , the human-animal conversion unit 400 includes a human-animal comparison unit 410 and a human-animal transformation vector calculation unit 420 .

사람 동물 비교부(410)는 사람 얼굴 데이터와 저장된 동물 얼굴 데이터를 비교하여 가장 유사한 동물 얼굴 데이터를 매칭한다. 사람 동물 비교부(410)는 사람의 얼굴과 동물의 얼굴에서 각각의 34개의 중심점에서 계산된 보로노이 다각형의 영역의 면적을 비교하여 사람의 얼굴에서의 각 영역과 동물의 얼굴에서의 각 영역의 면적의 차를 계산할 수 있다. 사람 동물 비교부(410)는 각 영역별 면적의 차를 계산하여 총합을 계산하였을 때 가장 작은 오차를 가진 동물을 변환 벡터 생성을 위한 기준 동물로 선택한다. 여기서, 각 영역별로 가장 가까운 면적을 가진 동물이 입력된 사람의 얼굴과 가장 가까운 형태를 가진다고 볼 수 있다.The human-animal comparator 410 compares human face data with stored animal face data and matches the most similar animal face data. The human-animal comparator 410 compares the areas of the regions of the Voronoi polygons calculated at each of the 34 center points of the human face and the animal face, and compares the areas of each region of the human face and each region of the animal face. The difference in area can be calculated. The human animal comparator 410 selects an animal with the smallest error when calculating the total by calculating the area difference for each region as a reference animal for generating a conversion vector. Here, it can be seen that the animal having the closest area for each region has the closest shape to the input person's face.

사람 동물 변환 벡터 계산부(420)는 사람 얼굴 데이터를 매칭한 동물 얼굴 데이터로 변환하기 위한 변환 벡터를 계산하고, 계산된 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환한다. 사람 동물 변환 벡터 계산부(420)는 얼굴의 각 영역의 형태와 동물의 원래 얼굴의 크기를 기준으로 정해지는 각 점 별 연장선의 교차점을 계산하고 해당 위치에서 원래의 점까지의 거리의 비율을 이용하여 각 영역에 대한 변환 벡터의 크기를 산출할 수 있다.The human-animal conversion vector calculation unit 420 calculates a conversion vector for converting human face data into matched animal face data, and converts the human face into an animal face using the calculated conversion vector. The human-animal conversion vector calculation unit 420 calculates the intersection point of the extension line for each point determined based on the shape of each region of the face and the size of the original face of the animal, and uses the ratio of the distance from the corresponding position to the original point. Thus, the size of the transform vector for each region can be calculated.

도5 내지 도11은 본 발명의 일 실시 예에 따른 얼굴 변환 방법을 설명한 도면들이다. 이하 설명하는 얼굴 변환 장치(100)를 구성하는 각 기능부가 수행하는 과정이나, 본 발명의 간결하고 명확한 설명을 위해 각 단계의 주체를 얼굴 변환 장치(100)로 통칭하도록 한다.5 to 11 are diagrams for explaining a face conversion method according to an embodiment of the present invention. The process performed by each functional unit constituting the face conversion device 100 described below or the subject of each step will be collectively referred to as the face conversion device 100 for a concise and clear description of the present invention.

도 5를 참조하면, 단계 S505에서 얼굴 변환 장치(100)는 동물 얼굴 데이터를 입력 받고 동물 얼굴 특징점을 추출한다. 여기서, 동물 얼굴 특징점은 다양한 특징점들을 추출할 수 있다. 동물 얼굴 특징점은 예를 들면, 얼굴, 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 중 적어도 하나를 포함할 수 있다. Referring to FIG. 5 , in step S505, the face conversion device 100 receives animal face data and extracts animal face feature points. Here, as the animal face feature points, various feature points may be extracted. The animal facial features may include, for example, at least one of a face, a left eye, a right eye, a nose, a mouth, a left ear, and a right ear.

도 6의 테이블은 딥러닝 기반 동물 얼굴 특징 점 추출에서 추출해 내고자 하는 좌표의 종류를 나타낸다. 좌표를 추출하기 위한 딥러닝 모델은 어떤 것을 사용하여도 무방하다. 얼굴의 중심점 좌표인 FACE1의 추출은 얼굴에 관한 것으로 얼굴의 왼쪽 끝 좌표인 FACE2~ 얼굴의 오른 쪽 끝 좌표인 FACE5를 추출한 후 그 중심점을 계산하여 도출할 수 있다. 또한, 왼쪽 눈의 중심점 좌표인 LEYE1의 추출은 왼쪽 눈의 왼쪽 끝 좌표인 LEYE2~ 왼쪽 눈의 오른 쪽 끝 좌표인 LEYE5를 추출한 후 그 중심점을 계산하여 도출한다. 오른쪽 눈의 중심점 좌표인 REYE1의 추출은 오른쪽 눈의 왼쪽 끝 좌표인 REYE2~ 오른쪽 눈의 오른쪽 끝 좌표인 REYE5를 추출한 후 그 중심점을 계산하여 도출한다. 코의 중심점 좌표인 NOSE1은 코의 왼쪽 끝 좌표인 NOSE2~ 코의 오른쪽 끝 좌표인 NOSE5를 추출한 후 그 중심점을 계산하여 도출한다. 입의 중심점 좌표인 MOUT1의 추출은 입의 왼쪽 끝 좌표인 MOUT2~ 입의 오른쪽 끝 좌표인 MOUT5를 추출한 후 그 중심점을 계산하여 도출한다. 왼쪽 귀의 중심점 좌표인 LEAR1의 추출은 왼쪽 귀의 왼쪽 끝 좌표인 LEAR2~ 왼쪽 귀의 오른쪽 좌표인 LEAR5를 추출한 후 그 중심점을 계산하여 도출한다. 오른쪽 귀의 중심점 좌표인 REAR1의 추출은 오른쪽 귀의 왼쪽 끝 좌표인 REAR2~ 오른쪽 귀의 오른쪽 끝 좌표인 REAR5를 추출한 후 그 중심점을 계산하여 도출한다.The table of FIG. 6 shows the types of coordinates to be extracted in deep learning-based animal facial feature point extraction. Any deep learning model for extracting coordinates may be used. The extraction of the coordinates of the center point of the face, FACE1, is related to the face, and can be derived by calculating the center point after extracting FACE2, the coordinates of the left end of the face to FACE5, the coordinates of the right end of the face. In addition, LEYE1, the coordinates of the center point of the left eye, is extracted by extracting LEYE2, the coordinates of the left end of the left eye and LEYE5, the coordinates of the right end of the left eye, and then calculating the center point. The extraction of REYE1, the coordinates of the center point of the right eye, is derived by calculating the center point after extracting REYE2, the coordinates of the left end of the right eye to REYE5, the coordinates of the right end of the right eye. NOSE1, the coordinates of the center point of the nose, is derived by calculating the center point after extracting NOSE2, the coordinates of the left end of the nose to NOSE5, the coordinates of the right end of the nose. The extraction of MOUT1, the coordinates of the center point of the mouth, is derived by calculating the center point after extracting MOUT2, the coordinates of the left end of the mouth and MOUT5, the coordinates of the right end of the mouth. Extraction of LEAR1, the coordinates of the center point of the left ear, is derived by calculating the center point after extracting LEAR2, the coordinates of the left end of the left ear and LEAR5, the coordinates of the right side of the left ear. The extraction of REAR1, the coordinates of the center point of the right ear, is derived by calculating the center point after extracting REAR2, the coordinates of the left end of the right ear and REAR5, the coordinates of the right end of the right ear.

단계 S510에서 얼굴 변환 장치(100)는 들로네 삼각분할을 이용하여 동물 얼굴 패턴을 생성한다. In step S510, the face conversion apparatus 100 generates an animal face pattern using Delaunay triangulation.

도 7을 참조하면, 얼굴 변환 장치(100)는 예를 들면, 얼굴의 중심점 좌표인 FACE1을 제외한 모든 좌표를 중심점으로 들로네 삼각분할을 적용하여 동물 얼굴 패턴을 생성할 수 있다. 여기서, 얼굴의 중심점 좌표인 FACE1을 제외한 이유는 각 좌표와의 거리를 계산하기 위한 기준점임과 동시에 코, 입 등의 얼굴 중심 근처에 위치하는 좌표와 간섭을 일으켜 패턴의 변형을 초래할 수 있기 때문이다. 얼굴 변환 장치(100)는 예를 들면, 총 7개의 구성요소 당 5개씩의 좌표로 구성된 35개의 특징점 중에서 얼굴의 중심점 좌표를 제외한 34개의 특징점을 사용할 수 있다. 얼굴의 구성요소인 눈, 코, 귀, 입 외에 얼굴 자체에 대한 좌표를 사용하는 이유는 동물별로 얼굴의 길이와 폭이 상이하므로 각 구성요소 사이의 위치, 배치비율, 차지하는 면적이 서로 다르기 때문이다. Referring to FIG. 7 , the face conversion apparatus 100 may generate an animal face pattern by applying Delaunay triangulation to all coordinates except FACE1, which is a coordinate of the center point of the face, as a center point. Here, the reason for excluding FACE1, which is the center point coordinate of the face, is that it is a reference point for calculating the distance to each coordinate, and at the same time, it can cause pattern deformation by causing interference with coordinates located near the center of the face, such as the nose and mouth. . The face conversion device 100 may use, for example, 34 feature points excluding the coordinates of the center point of the face among 35 feature points composed of 5 coordinates for each of 7 components. The reason why coordinates for the face itself are used in addition to the components of the face, such as the eyes, nose, ears, and mouth, is because the length and width of the face are different for each animal, so the location, arrangement ratio, and area occupied between each component are different. .

단계 S515에서 얼굴 변환 장치(100)는 보로노이 다이어그램을 이용하여 동물 얼굴 영역별 면적을 계산한다. In step S515, the face conversion device 100 calculates the area of each animal face region using the Voronoi diagram.

도8을 참조하면, 얼굴 변환 장치(100)는 도 6에서 구한 각 좌표를 중심점으로 하여 생성한 동물의 얼굴의 보로노이 다이어그램을 보여준다. 보로노이 다이어그램의 각 영역 다각형의 면적의 비율을 서로 비교함으로써 각 얼굴의 중심점들의 연장선을 이용하여 2D를 위한 얼굴의 중심점 좌표(FACE1과 동일하거나 약간 오차가 있는 지점이 계산됨)와 3D를 위한 얼굴의 중심점 좌표(FACE1과 다름)를 계산할 수 있다. 여기서, 동물의 얼굴 이미지는 각 동물 별로 모두 다른 얼굴을 하고 있으며 얼굴의 각도와 얼굴의 크기도 서로 다르다. 또한 각 동물 별로 실험에 사용한 이미지의 수도 서로 다르다. 따라서 본 발명에서는 동일한 종의 동물의 모든 이미지에 대하여 각 구성요소별로 평균 값을 계산하여 사용할 수 있다. 얼굴 변환 장치(100)는 파이썬의 Scipy 라이브러리의 1.5.4 버전을 이용하여 보로노이 다이어그램을 생성할 수 있다.Referring to FIG. 8 , the face conversion apparatus 100 shows a Voronoi diagram of an animal's face created by using each coordinate obtained in FIG. 6 as a central point. By comparing the area ratio of each area polygon of the Voronoi diagram with each other, using the extension line of the center points of each face, the coordinates of the center point of the face for 2D (a point that is the same as FACE1 or with a slight error is calculated) and the face for 3D The coordinates of the center point (different from FACE1) can be calculated. Here, the animal's face image has a different face for each animal, and the angle and size of the face are also different. Also, the number of images used in the experiment is different for each animal. Therefore, in the present invention, an average value can be calculated and used for each component for all images of the same species of animal. The face conversion device 100 may generate a Voronoi diagram using version 1.5.4 of the Python Scipy library.

얼굴 변환 장치(100)는 보로노이 다이어그램을 생성한 후, 각 보로노이 다각형의 영역의 면적을 계산한다. 얼굴 변환 장치(100)는 다각형의 면적을 계산하기 위하여 예를 들면, 신발끈 공식을 적용할 수 있다. 여기서, 신발끈 공식은 카르테시안 좌표계가 적용된 평면의 위에 존재하는 다수의 점으로 구성된 다각형의 영역, 즉 면적을 결정하는 알고리즘이다. 얼굴 변환 장치(100)는 면적을 구하고자 하는 보로노이 다각형의 각 정점을 연결하는 직선과 보로노이 다각형 내부의 중심점을 기준으로 각각의 삼각형으로 만들어 그 면적을 행렬을 이용하여 계산하며 행렬의 각 값의 계산을 양방향으로 교차하여 계산을 수행할 수 있고, 두 방향의 값에서 교차하는 영역을 차감하고 2로 나누면 원하는 다각형의 면적을 구할 수 있다. 신발끈 공식의 아래 수학식은 (1)과 같이 표현할 수 있다. 여기서, 수학식 (1)에서 A는 다각형의 영역을 나타내며 n은 다각형의 측면의 개수를 나타내고

Figure 112020137222733-pat00001
은 다각형의 정점을 나타낸다. After generating the Voronoi diagram, the face conversion apparatus 100 calculates the area of each Voronoi polygon. The face conversion device 100 may apply, for example, a shoestring formula to calculate the area of a polygon. Here, the shoelace formula is an algorithm for determining the area of a polygon composed of a plurality of points existing on a plane to which the Cartesian coordinate system is applied, that is, the area. The face conversion device 100 calculates the area using a matrix by making each triangle based on a straight line connecting each vertex of the Voronoi polygon whose area is to be obtained and the center point inside the Voronoi polygon, and calculates the area using a matrix. Calculation can be performed by intersecting in both directions, and the area of the desired polygon can be obtained by subtracting the intersecting area from the value in both directions and dividing by 2. The equation below of the shoelace formula can be expressed as (1). Here, in Equation (1), A represents the area of the polygon and n represents the number of sides of the polygon.
Figure 112020137222733-pat00001
represents the vertex of the polygon.

Figure 112020137222733-pat00002
수학식 (1)
Figure 112020137222733-pat00002
Equation (1)

도9는 도7에서 구한 동물 얼굴의 패턴도형과 도8에서 구한 보로노이 다이어그램의 연관성을 보여주는 통합 패턴을 나타낸다. 통합 패턴을 이용하여 각 해당 영역의 면적과 패턴의 위치사이의 관계를 확인할 수 있다.FIG. 9 shows an integrated pattern showing the correlation between the animal face pattern figure obtained in FIG. 7 and the Voronoi diagram obtained in FIG. Using the integrated pattern, it is possible to check the relationship between the area of each corresponding region and the position of the pattern.

단계 S520에서 얼굴 변환 장치(100)는 얼굴 중심점 기준으로 동물 얼굴 구성요소 간 거리를 계산한다. 얼굴 변환 장치(100)는 얼굴 중심점 좌표를 기준으로 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 좌표 중 적어도 하나의 구성요소 간 거리를 계산할 수 있다.In step S520, the face conversion device 100 calculates the distance between animal face components based on the center point of the face. The face conversion device 100 may calculate a distance between at least one of the left eye, right eye, nose, mouth, left ear, and right ear coordinates based on the face center point coordinates.

단계 S525에서 얼굴 변환 장치(100)는 계산한 동물 얼굴 데이터들을 동물 데이터 저장부(160)에 저장한다. 얼굴 변환 장치(100)는 계산한 동물 얼굴의 각 보로노이 다각형의 영역의 면적 정보 및 동물 얼굴 구성요소 간 거리 정보 중 적어도 하나를 동물 데이터 저장부(160)에 저장할 수 있다.In step S525, the face conversion device 100 stores the calculated animal face data in the animal data storage unit 160. The face conversion apparatus 100 may store in the animal data storage unit 160 at least one of area information of each Voronoi polygon region of the animal face and distance information between animal face components.

단계 S530에서 얼굴 변환 장치(100)는 사람 얼굴 데이터를 입력 받고 사람 얼굴 특징점을 추출한다. 여기서, 사람 얼굴 특징점은 앞서 설명한 동물 얼굴 특징점과 같이 예를 들면, 얼굴, 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 중 적어도 하나를 포함할 수 있다.In step S530, the face conversion device 100 receives human face data and extracts human face feature points. Here, the human facial feature points may include, for example, at least one of a face, a left eye, a right eye, a nose, a mouth, a left ear, and a right ear, like the aforementioned animal facial feature points.

단계 S535에서 얼굴 변환 장치(100)는 들로네 삼각분할을 이용하여 사람 얼굴 패턴을 생성한다. 얼굴 변환 장치(100)는 앞서 설명한 동물 얼굴 패턴 생성 방법과 같이 사람 얼굴에 대해 얼굴의 중심점 좌표를 제외한 모든 좌표를 중심점으로 들로네 삼각분할을 적용하여 사람 얼굴 패턴을 생성할 수 있다. In step S535, the face conversion apparatus 100 generates a human face pattern using Delaunay triangulation. The face conversion apparatus 100 may generate a human face pattern by applying Delaunay triangulation to the human face with all coordinates except for the coordinates of the center point of the face as the center point, as in the method of generating the animal face pattern described above.

단계 S540에서 얼굴 변환 장치(100)는 보로노이 다이어그램을 이용하여 사람 얼굴 영역별 면적을 계산한다. 얼굴 변환 장치(100)는 앞서 설명한 동물의 얼굴에 적용한 바와 같이 예를 들면, 파이썬의 Scipy 라이브러리의 1.5.4 버전을 이용하여 보로노이 다이어그램을 생성하고, 각 보로노이 다각형 영역의 면적을 계산할 수 있다.In step S540, the face conversion device 100 calculates the area of each human face region using the Voronoi diagram. As applied to the face of the animal described above, the face conversion device 100 may generate a Voronoi diagram using, for example, the 1.5.4 version of the Python Scipy library, and calculate the area of each Voronoi polygon region. .

단계 S545에서 얼굴 변환 장치(100)는 얼굴 중심점 기준으로 사람 얼굴 구성요소 간 거리를 계산한다. 얼굴 변환 장치(100)는 얼굴 중심점 좌표를 기준으로 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 좌표 중 적어도 하나의 구성요소 간 거리를 계산할 수 있다.In step S545, the face conversion device 100 calculates the distance between human face components based on the center point of the face. The face conversion device 100 may calculate a distance between at least one of the left eye, right eye, nose, mouth, left ear, and right ear coordinates based on the face center point coordinates.

단계 S550에서 얼굴 변환 장치(100)는 사람 얼굴 데이터와 동물 데이터 저장부(160)에 저장된 동물 얼굴 데이터를 비교하여 가장 유사한 동물 얼굴 데이터를 매칭한다. 얼굴 변환 장치(100)는 계산된 사람 얼굴 데이터에 포함된 사람 얼굴 영역별 면적 정보 및 구성요소 간 거리 정보와, 동물 데이터 저장부(160)에 저장된 동물 얼굴 영역별 면적 정보 및 구성요소 간 거리 정보를 비교한다. 얼굴 변환 장치(100)는 사람의 얼굴과 동물의 얼굴에서 각각의 34개의 중심점에서 계산된 보로노이 다각형의 영역의 면적을 비교하여 사람의 얼굴에서의 각 영역과 동물의 얼굴에서의 각 영역의 면적의 차를 계산할 수 있다. 얼굴 변환 장치(100)는 각 영역별 면적의 차를 계산하여 총합을 계산하였을 때 가장 작은 오차를 가진 동물을 변환 벡터 생성을 위한 기준 동물로 선택한다. 여기서, 각 영역별로 가장 가까운 면적을 가진 동물이 입력된 사람의 얼굴과 가장 가까운 형태를 가진다고 볼 수 있다. 들로네 삼각분할은 보로노이 다각형과 쌍대 관계에 놓여있으므로 같은 방식으로 면적의 차이를 구할 수 있다. 얼굴 변환 장치(100)는 보로노이 다각형의 면적 사이의 비율과 들로네 삼각분할의 면적사이의 비율을 서로 비교하여 정확도를 향상시킬 수 있다.In step S550, the face conversion device 100 compares the human face data with the animal face data stored in the animal data storage unit 160 and matches the most similar animal face data. The face conversion device 100 includes area information for each human face region and distance information between components included in the calculated human face data, and area information for each animal face region and distance information between components stored in the animal data storage unit 160. Compare The face conversion apparatus 100 compares the areas of the Voronoi polygon regions calculated at each of the 34 center points of the human face and the animal face, and compares the areas of each region of the human face and each region of the animal face. can calculate the difference of The face conversion device 100 selects an animal with the smallest error as a reference animal for generating a conversion vector when the sum is calculated by calculating the difference in area for each region. Here, it can be seen that the animal having the closest area for each region has the closest shape to the input person's face. Since the Delaunay triangulation lies in a dual relationship with the Voronoi polygon, the area difference can be obtained in the same way. The face conversion apparatus 100 may improve accuracy by comparing the ratio between the areas of the Voronoi polygon and the area ratio of the Delaunay triangulation.

단계 S555에서 얼굴 변환 장치(100)는 사람 얼굴 데이터를 매칭한 동물 얼굴 데이터로 변환하기 위한 변환 벡터를 계산하고, 계산된 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환한다. In step S555, the face conversion device 100 calculates a conversion vector for converting the human face data into matched animal face data, and converts the human face into an animal face using the calculated conversion vector.

얼굴 변환 장치(100)는 얼굴의 각 영역의 형태와 동물의 원래 얼굴의 크기를 기준으로 정해지는 각 점 별 연장선의 교차점을 계산하고 해당 위치에서 원래의 점까지의 거리의 비율을 이용하여 각 영역에 대한 변환 벡터의 크기를 산출한다. 얼굴 변환 장치(100)는 각 사이의 거리가 일정하지 않으므로 동물 얼굴과 사람 얼굴의 각 지점별 높낮이의 차이에 대한 거리 비율을 도출할 수 있다. 각 영역에 대한 서로 다른 다각형의 형태는 거의 모든 경우에서 각 꼭짓점을 이은 연장선이 하나의 점에서 교차하지 않는다. 얼굴 변환 장치(100)는 사람의 얼굴과 동물의 얼굴 각각의 영역별 다각형에서 각 꼭짓점을 이은 연장선의 교차점을 계산한 후, 각 교차점의 좌표들을 기준으로 중앙에 위치한 점을 거리 비율 계산의 기준점으로 지정하고 계산을 수행한다.The face conversion device 100 calculates the intersection of the extension line for each point determined based on the shape of each region of the face and the size of the original face of the animal, and uses the ratio of the distance from the corresponding position to the original point for each region. Calculate the size of the transformation vector for Since the distance between the angles is not constant, the face conversion device 100 may derive a distance ratio for a difference in height of each point between the animal face and the human face. In almost all cases of different polygonal shapes for each region, the extension line connecting each vertex does not intersect at a single point. The face conversion device 100 calculates the intersection of the extension line connecting each vertex in the polygon for each region of the human face and animal face, and then uses a point located in the center based on the coordinates of each intersection as a reference point for distance ratio calculation. Specify and perform calculations.

얼굴 변환 장치(100)는 도출한 변환 벡터를 이용하여 사람 얼굴을 매칭한 동물 얼굴로 변환한다. The face conversion device 100 converts a human face into a matching animal face using the derived conversion vector.

도10은 각 꼭짓점을 이은 연장선의 교차점을 이용하여 기준점을 찾는 개념을 보여준다. 계산된 기준점에서 원래의 꼭짓점까지의 거리의 비율을 이용하여 각 영역에 대한 변환 벡터의 크기를 산출할 수 있다. 각 영역에 대하여 기준점에서 꼭짓점까지의 거리는 일정하지 않으므로 동물 얼굴과 사람 얼굴의 각 영역별 높낮이의 차이에 대한 거리 비율을 도출할 수 있다. 얼굴 변환 장치(100)는 이렇게 도출된 비율 값을 기준으로 하여 각 꼭짓점을 주어진 비율만큼 증감시키면 입력된 사람의 얼굴과 유사한 동물의 얼굴에 가까운 형태로 영역별 면적이 변환되고, 이렇게 계산한 값을 변환벡터로 저장할 수 있다. 10 shows the concept of finding a reference point using the intersection of extension lines connecting each vertex. The size of the transformation vector for each region can be calculated using the ratio of the distance from the calculated reference point to the original vertex. Since the distance from the reference point to the vertex is not constant for each area, the distance ratio for the difference in height between the animal face and the human face for each area can be derived. When the face conversion device 100 increases or decreases each vertex by a given ratio based on the ratio value derived in this way, the area for each region is converted into a form close to the face of an animal similar to the input human face, and the calculated value It can be stored as a conversion vector.

도11은 본 발명의 일 실시 예에 따른 캐릭터 디자인에 많이 사용되는 20종의 동물의 종류에 대한 들로네 삼각분할에 의한 패턴 도형과 보로노이 다이어그램의 생성 결과를 보여준다. 각 동물의 분류에 따라 서로 다른 형태의 들로네 삼각분할 패턴 모형과 보로노이 다이어그램 다각형의 형태, 배치의 차이를 확인할 수 있다.11 shows the results of generating pattern figures and Voronoi diagrams by Delaunay triangulation for 20 types of animals frequently used in character design according to an embodiment of the present invention. Depending on the classification of each animal, the difference in the shape and arrangement of the Delaunay triangulation pattern model and the Voronoi diagram polygon can be confirmed.

상술한 얼굴 변환 방법은 컴퓨터가 읽을 수 있는 매체 상에 컴퓨터가 읽을 수 있는 코드로 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록 매체는, 예를 들어 이동형 기록 매체(CD, DVD, 블루레이 디스크, USB 저장 장치, 이동식 하드 디스크)이거나, 고정식 기록 매체(ROM, RAM, 컴퓨터 구비형 하드 디스크)일 수 있다. 상기 컴퓨터로 읽을 수 있는 기록 매체에 기록된 상기 컴퓨터 프로그램은 인터넷 등의 네트워크를 통하여 다른 컴퓨팅 장치에 전송되어 상기 다른 컴퓨팅 장치에 설치될 수 있고, 이로써 상기 다른 컴퓨팅 장치에서 사용될 수 있다.The above-described face conversion method may be implemented as computer readable code on a computer readable medium. The computer-readable recording medium may be, for example, a removable recording medium (CD, DVD, Blu-ray disc, USB storage device, removable hard disk) or a fixed recording medium (ROM, RAM, computer-equipped hard disk). can The computer program recorded on the computer-readable recording medium may be transmitted to another computing device through a network such as the Internet, installed in the other computing device, and thus used in the other computing device.

이상에서, 본 발명의 실시 예를 구성하는 모든 구성 요소들이 하나로 결합되거나 결합되어 동작하는 것으로 설명되었다고 해서, 본 발명이 반드시 이러한 실시 예에 한정되는 것은 아니다. 즉, 본 발명의 목적 범위안에서라면, 그 모든 구성요소들이 하나 이상으로 선택적으로 결합하여 동작할 수도 있다.In the above, even though all the components constituting the embodiment of the present invention have been described as being combined or operated as one, the present invention is not necessarily limited to these embodiments. That is, within the scope of the object of the present invention, all of the components may be selectively combined with one or more to operate.

도면에서 동작들이 특정한 순서로 도시되어 있지만, 반드시 동작들이 도시된 특정한 순서로 또는 순차적 순서로 실행되어야만 하거나 또는 모든 도시 된 동작들이 실행되어야만 원하는 결과를 얻을 수 있는 것으로 이해되어서는 안 된다. 특정 상황에서는, 멀티태스킹 및 병렬 처리가 유리할 수도 있다. 더욱이, 위에 설명한 실시 예 들에서 다양한 구성들의 분리는 그러한 분리가 반드시 필요한 것으로 이해되어서는 안 되고, 설명된 프로그램 컴포넌트들 및 시스템들은 일반적으로 단일 소프트웨어 제품으로 함께 통합되거나 다수의 소프트웨어 제품으로 패키지 될 수 있음을 이해하여야 한다.Although actions are shown in a particular order in the drawings, it should not be understood that the actions must be performed in the specific order shown or in a sequential order, or that all shown actions must be performed to obtain a desired result. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of the various components in the embodiments described above should not be understood as requiring such separation, and the described program components and systems may generally be integrated together into a single software product or packaged into multiple software products. It should be understood that there is

이제까지 본 발명에 대하여 그 실시 예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시 예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far, the present invention has been looked at mainly by its embodiments. Those skilled in the art to which the present invention pertains will be able to understand that the present invention can be implemented in a modified form without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments should be considered from a descriptive point of view rather than a limiting point of view. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the equivalent scope will be construed as being included in the present invention.

100: 동물 데이터 관리부
200: 사람 데이터 입력부
300: 사람 데이터 처리부
400: 사람 동물 변환부
100: animal data management department
200: human data input unit
300: human data processing unit
400: human animal conversion unit

Claims (10)

얼굴 변환 장치에 있어서,
동물 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 동물 데이터를 산출하고 저장하는 동물 데이터 관리부;
사람 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 사람 데이터를 산출하는 사람 데이터 처리부;
상기 사람 데이터와 저장한 동물 데이터를 비교하여 매칭되는 동물 얼굴 데이터를 추출하고, 입력된 사람 얼굴 데이터를 매칭된 동물 얼굴 데이터로 변환하기 위한 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환하는 사람 동물 변환부;
상기 사람 동물 변환부는
사람과 동물의 얼굴 각각의 34개의 중심점에서 계산된 보로노이 다각형의 영역의 면적을 비교하여 사람의 얼굴에서의 각 영역과 동물의 얼굴에서의 각 영역별 면적차를 계산하고 면적차의 총합을 계산하였을 때 가장 작은 오차를 가진 동물을 변환 벡터 생성을 위한 기준 동물로 선택하여 사람 얼굴 데이터와 가장 유사한 동물 얼굴 데이터를 매칭하는 사람 동물 비교부; 및
얼굴의 각 영역의 형태와 동물의 원래 얼굴의 크기를 기준으로 정해지는 각 점 별 연장선의 교차점을 계산하고 해당 위치에서 원래의 점까지의 거리의 비율을 이용하여 각 영역에 대한 변환 벡터를 계산하고 계산된 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환하는 사람 동물 변환 벡터 계산부를 포함하는 얼굴 변환 장치.


In the face conversion device,
an animal data management unit that receives animal face data, calculates and stores animal data for face conversion;
a human data processing unit that receives human face data and calculates human data for face transformation;
Human or animal that compares the human data with stored animal data to extract matching animal face data, and converts the human face into an animal face using a conversion vector for converting the input human face data into matched animal face data. conversion unit;
The human animal conversion unit
Comparing the areas of Voronoi polygons calculated from each of the 34 center points of the human and animal faces, calculating the area difference between each area on the human face and each area on the animal's face, and calculating the sum of the area differences a human-animal comparison unit that selects an animal with the smallest error as a reference animal for generating a conversion vector and matches human face data with animal face data most similar to human face data; and
Calculate the intersection of the extension line for each point based on the shape of each area of the face and the size of the original face of the animal, and calculate the conversion vector for each area using the ratio of the distance from the location to the original point A face conversion device including a human-animal conversion vector calculation unit that converts a human face into an animal face using the calculated conversion vector.


제1 항에 있어서,
상기 동물 데이터 관리부는
동물 얼굴 데이터를 입력하는 동물 데이터 입력부;
입력된 동물 얼굴 데이터에서 특징점을 추출하는 동물 특징점 추출부;
들로네 삼각분할을 이용하여 동물 얼굴 패턴을 생성하는 동물 패턴 생성부;
보로노이 다이어그램을 이용하여 동물 얼굴 영역별 면적을 계산하는 동물 영역별 면적 계산부;
얼굴 중심점 기준으로 동물 얼굴 구성요소 간 거리를 계산하는 동물 구성요소간 거리 산출부; 및
계산한 동물 얼굴의 각 보로노이 다각형의 영역의 면적 정보 및 동물 얼굴 구성요소 간 거리 정보 중 적어도 하나를 저장하는 동물 데이터 저장부를 포함하는 얼굴 변환 장치.
According to claim 1,
The Animal Data Management Department
an animal data input unit inputting animal face data;
an animal feature point extraction unit extracting feature points from input animal face data;
an animal pattern generation unit generating an animal face pattern using Delaunay triangulation;
an area calculation unit for each animal face region using a Voronoi diagram;
a distance calculation unit for calculating a distance between animal face components based on a face center point; and
A face conversion device comprising an animal data storage unit configured to store at least one of calculated area information of each Voronoi polygon area of the animal face and distance information between animal face components.
제1 항에 있어서,
상기 사람 데이터 처리부는
입력된 사람 얼굴 데이터에서 특징점을 추출하는 사람 특징점 추출부;
들로네 삼각분할을 이용하여 사람 얼굴 패턴을 생성하는 사람 패턴 생성부;
보로노이 다이어그램을 이용하여 사람 얼굴 영역별 면적을 계산하는 사람 영역별 면적 계산부; 및
얼굴 중심점 기준으로 사람 얼굴 구성요소 간 거리를 계산하는 사람 구성요소간 거리 산출부를 포함하는 얼굴 변환 장치.
According to claim 1,
The human data processor
a human feature point extraction unit extracting feature points from input human face data;
a human pattern generating unit generating a human face pattern using Delaunay triangulation;
an area calculation unit for each human face region using a Voronoi diagram; and
A face conversion device comprising a distance calculation unit for calculating a distance between human face components based on a face center point.
삭제delete 제2항 또는 제3항에 있어서,
상기 특징점은
얼굴, 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 중 적어도 하나를 포함하는 얼굴 변환 장치.
According to claim 2 or 3,
The feature point is
A face conversion device comprising at least one of a face, a left eye, a right eye, a nose, a mouth, a left ear, and a right ear.
얼굴 변환 방법에 있어서,
동물 얼굴 데이터를 입력 받고 얼굴 변환을 위한 동물 데이터를 산출하고 저장하는 단계;
사람 얼굴 데이터를 입력 받고, 얼굴 변환을 위한 사람 데이터를 산출하는 단계;
상기 사람 데이터와 저장한 동물 데이터를 비교하여 매칭되는 동물 얼굴 데이터를 추출하고, 입력된 사람 얼굴 데이터를 매칭된 동물 얼굴 데이터로 변환하기 위한 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환하는 사람 동물 변환단계;
상기 사람 동물 변환단계는
사람과 동물의 얼굴 각각의 34개의 중심점에서 계산된 보로노이 다각형의 영역의 면적을 비교하여 사람의 얼굴에서의 각 영역과 동물의 얼굴에서의 각 영역별 면적차를 계산하고 면적차의 총합을 계산하였을 때 가장 작은 오차를 가진 동물을 변환 벡터 생성을 위한 기준 동물로 선택하여 사람 얼굴 데이터와 가장 유사한 동물 얼굴 데이터를 매칭하는 사람 동물 비교 단계; 및
얼굴의 각 영역의 형태와 동물의 원래 얼굴의 크기를 기준으로 정해지는 각 점 별 연장선의 교차점을 계산하고 해당 위치에서 원래의 점까지의 거리의 비율을 이용하여 각 영역에 대한 변환 벡터를 계산하고, 계산된 변환 벡터를 이용하여 사람 얼굴을 동물 얼굴로 변환하는 단계를 더 포함하는 얼굴 변환 방법.


In the face conversion method,
receiving animal face data, calculating and storing animal data for face transformation;
receiving human face data and calculating human data for face transformation;
Human or animal that compares the human data with stored animal data to extract matching animal face data, and converts the human face into an animal face using a conversion vector for converting the input human face data into matched animal face data. conversion step;
The human-animal transformation step
Comparing the areas of Voronoi polygons calculated from each of the 34 center points of the human and animal faces, calculating the area difference between each area on the human face and each area on the animal's face, and calculating the sum of the area differences a human-animal comparison step of matching human face data with animal face data most similar to human face data by selecting an animal with the smallest error as a reference animal for generating a conversion vector when the result is the same; and
Calculate the intersection of the extension line for each point based on the shape of each area of the face and the size of the original face of the animal, and calculate the conversion vector for each area using the ratio of the distance from the location to the original point , converting a human face into an animal face using the calculated conversion vector.


제6항에 있어서,
동물 얼굴 데이터를 입력 받고 동물 얼굴 특징점을 추출하는 단계;
들로네 삼각분할을 이용하여 동물 얼굴 패턴을 생성하는 단계; 및
보로노이 다이어그램을 이용하여 동물 얼굴 영역별 면적을 계산하는 단계;
얼굴 중심점 기준으로 동물 얼굴 구성요소 간 거리를 계산하는 단계; 및
계산한 동물 얼굴 데이터들을 저장하는 단계를 포함하는 얼굴 변환 방법.


According to claim 6,
receiving animal face data and extracting animal face feature points;
generating an animal face pattern using Delaunay triangulation; and
calculating an area for each animal face region using a Voronoi diagram;
calculating a distance between animal face components based on a face center point; and
A face conversion method comprising the step of storing calculated animal face data.


제6항에 있어서,
사람 얼굴 데이터를 입력 받고 사람 얼굴 특징점을 추출하는 단계;
들로네 삼각분할을 이용하여 사람 얼굴 패턴을 생성하는 단계; 및
보로노이 다이어그램을 이용하여 사람 얼굴 영역별 면적을 계산하는 단계;
및 얼굴 중심점 기준으로 사람 얼굴 구성요소 간 거리를 계산하는 단계를 더 포함하는 얼굴 변환 방법
According to claim 6,
receiving human face data and extracting human facial feature points;
generating a human face pattern using Delaunay triangulation; and
calculating an area for each human face region using a Voronoi diagram;
and calculating a distance between human face components based on a face center point.
제7항 또는 제8항에 있어서,
상기 특징점은
얼굴, 왼쪽 눈, 오른쪽 눈, 코, 입, 왼쪽 귀 및 오른쪽 귀 중 적어도 하나를 포함하는 얼굴 변환 방법.
According to claim 7 or 8,
The feature point is
A face conversion method comprising at least one of a face, a left eye, a right eye, a nose, a mouth, a left ear, and a right ear.
제6항의 방법을 실행하는 컴퓨터가 판독 가능한 기록매체에 기록된 컴퓨터 프로그램.

A computer program recorded on a computer-readable recording medium that executes the method of claim 6.

KR1020200177084A 2020-12-17 2020-12-17 Device and method for transforming human face into animal face KR102480960B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200177084A KR102480960B1 (en) 2020-12-17 2020-12-17 Device and method for transforming human face into animal face

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200177084A KR102480960B1 (en) 2020-12-17 2020-12-17 Device and method for transforming human face into animal face

Publications (2)

Publication Number Publication Date
KR20220087613A KR20220087613A (en) 2022-06-27
KR102480960B1 true KR102480960B1 (en) 2022-12-26

Family

ID=82247291

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200177084A KR102480960B1 (en) 2020-12-17 2020-12-17 Device and method for transforming human face into animal face

Country Status (1)

Country Link
KR (1) KR102480960B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101261737B1 (en) * 2011-06-13 2013-05-09 한국과학기술원 Retargeting method for characteristic facial and recording medium for the same
KR101746430B1 (en) * 2016-05-19 2017-06-13 동국대학교 산학협력단 Morphing method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102109818B1 (en) * 2018-07-09 2020-05-13 에스케이텔레콤 주식회사 Method and apparatus for processing face image

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101261737B1 (en) * 2011-06-13 2013-05-09 한국과학기술원 Retargeting method for characteristic facial and recording medium for the same
KR101746430B1 (en) * 2016-05-19 2017-06-13 동국대학교 산학협력단 Morphing method and apparatus

Also Published As

Publication number Publication date
KR20220087613A (en) 2022-06-27

Similar Documents

Publication Publication Date Title
US10860838B1 (en) Universal facial expression translation and character rendering system
EP3188033B1 (en) Reconstructing a 3d modeled object
JP4950787B2 (en) Image processing apparatus and method
Murtaza et al. Analysis of face recognition under varying facial expression: a survey.
JP6069489B2 (en) Object recognition apparatus, object recognition method, and program
Danelakis et al. A survey on facial expression recognition in 3D video sequences
CN107463865B (en) Face detection model training method, face detection method and device
Guo et al. EI3D: Expression-invariant 3D face recognition based on feature and shape matching
Li et al. Expression-insensitive 3D face recognition by the fusion of multiple subject-specific curves
CN110909680A (en) Facial expression recognition method and device, electronic equipment and storage medium
Wang et al. A new facial expression recognition method based on geometric alignment and lbp features
CN112836680A (en) Visual sense-based facial expression recognition method
Song et al. Robust 3D face landmark localization based on local coordinate coding
Venkatesh et al. Resampling approach to facial expression recognition using 3D meshes
KR20210026521A (en) Method and apparatus for generating a 3d avatar through hair styles analysis
Testa et al. Synthesis of facial expressions in photographs: Characteristics, approaches, and challenges
KR102480960B1 (en) Device and method for transforming human face into animal face
Mohamed et al. A new method for face recognition using variance estimation and feature extraction
JP6282121B2 (en) Image recognition apparatus, image recognition method, and program
Srivastava et al. Utilizing 3D flow of points for facial expression recognition
KR101521358B1 (en) Method and apparatus for matching of multi model
Papadakis et al. Consistent pose normalization of non-rigid shapes using one-class support vector machines
Ouhyoung et al. Unconventional approaches for facial animation and tracking
Magnet et al. Dwks: A local descriptor of deformations between meshes and point clouds
Qammaz et al. A Unified Approach for Occlusion Tolerant 3D Facial Pose Capture and Gaze Estimation Using MocapNETs

Legal Events

Date Code Title Description
E90F Notification of reason for final refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant