티스토리 뷰

iOS/iOS 개발

ARKit - BlendShapes

포도 동 2021. 5. 25. 16:48

blendShapes 란?

  • ARFaceAnchor에서 얼굴 표정, 움직임에 관련된 정보를 제공하는 딕셔너리.

선언

var blendShapes: [ARFaceAnchor.BlendShapeLocation : NSNumber] { get }

 

ARFaceAnchor.BlendShapeLocation

  • 눈, 코, 입 등 다양한 얼굴 요소에 대한 식별자로, 해당 요소의 움직임을 설명하는 수치값으로 사용함.

선언

struct BlendShapeLocation

ARFaceAnchor에서 제공하는 blendShapes 딕셔너리는 특정 얼굴 요소의 움직임과 관련하여 감지된 얼굴의 표정을 나타냅니다.

딕셔너리의 각 키에 해당하는 값은 0.0(중립)에서 1.0(최대 이동) 사이의 중립을 기준으로 한 요소의 현재 위치를 나타내는 부동 소수점 숫자입니다. ARKit는 다양한 blendShape 값을 제공하여 얼굴 표현에 대한 상세한 모델이 생성됩니다.

 

Left Eye

static let eyeBlinkLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing closure of the eyelids over the left eye.

static let eyeLookDownLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing movement of the left eyelids consistent with a downward gaze.

static let eyeLookInLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing movement of the left eyelids consistent with a rightward gaze.

static let eyeLookOutLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing movement of the left eyelids consistent with a leftward gaze.

static let eyeLookUpLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing movement of the left eyelids consistent with an upward gaze.

static let eyeSquintLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing contraction of the face around the left eye.

static let eyeWideLeft: ARFaceAnchor.BlendShapeLocation
//The coefficient describing a widening of the eyelids around the left eye.

그 외 Right Eye, Mouth and Jaw, Eyebrows, Cheeks, and Nose, Tongue ... 등 다양한 요소에 대한 계수 제공

 

예시로 eyeBlinkLeft 를 살펴보면,

static let eyeBlinkLeft: ARFaceAnchor.BlendShapeLocation

eyeBlinkLeft는 왼쪽 눈꺼풀의 닫힘을 표현하는 계수이기 때문에 0.0은 왼쪽 눈이 완전히 열린상태, 1.0은 왼쪽 눈이 완전히 닫힌 상태를 표현합니다.

 

 

 

참고자료 : https://developer.apple.com/documentation/arkit/arfaceanchor/2928251-blendshapes

'iOS > iOS 개발' 카테고리의 다른 글

iOS - CoreML  (0) 2021.05.28
iOS - BlendShapes 활용하기  (0) 2021.05.27
iOS - Dispatch Queue  (0) 2021.05.21
iOS ActionSheet 만들기  (0) 2021.01.14
iOS앱 Lottie 애니메이션 구현하기  (0) 2020.11.29
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함