[python] face landmarks, keypoints, roi

2022. 5. 26. 11:00· 개발/mediapipe
목차
  1. Face Mesh Landmark
  2. Face Mesh Return
  3. Face Mesh Keypoints
  4. ROI
  5. Face Detection Keypoints
  6. Face Detection Returns
  7. References

Face Mesh Landmark

FACEMESH_NUM_LANDMARKS = 468
FACEMESH_NUM_LANDMARKS_WITH_IRISES = 478

Face Mesh Return

multi_face_landmarks (namedTuple)

468개의 x, y, z

x, y 는 [0.0] ~ [1.0] 으로 normalized 된 값이고 z는 depth를 나타냄. 작은 값일 수록 카메라와 가까움을 나타냄.

 
https://google.github.io/mediapipe/solutions/face_mesh.html#multi_face_landmarks
 

Face Mesh

Cross-platform, customizable ML solutions for live and streaming media.

google.github.io

 

Face Mesh Keypoints

photo:

https://github.com/google/mediapipe/blob/a908d668c730da128dfa8d9f6bd25d519d006692/mediapipe/modules/face_geometry/data/canonical_face_model_uv_visualization.png

names:

https://github.com/tensorflow/tfjs-models/blob/838611c02f51159afdd77469ce67f0e26b7bbb23/face-landmarks-detection/src/mediapipe-facemesh/keypoints.ts

 

GitHub - tensorflow/tfjs-models: Pretrained models for TensorFlow.js

Pretrained models for TensorFlow.js. Contribute to tensorflow/tfjs-models development by creating an account on GitHub.

github.com

 

ROI

.cc

mediapipe::NormalizedRect roi

x_center, y_center, width, height, rotation

ref: mediapipe/calculators/tensor/image_to_tensor_calculator_test.cc

.pbtxt

input_stream: "NORM_RECT:roi"

 

Face Detection Keypoints

class FaceKeyPoint(enum.IntEnum):
  """The enum type of the six face detection key points."""
  RIGHT_EYE = 0
  LEFT_EYE = 1
  NOSE_TIP = 2
  MOUTH_CENTER = 3
  RIGHT_EAR_TRAGION = 4
  LEFT_EAR_TRAGION = 5

Face Detection Returns

Detections (namedTuple)

bounding box(xmin, ymin, width, height), 6개의 keypoints

 

 

References

https://github.com/google/mediapipe/issues/1615

 

Definitions for 468 landmark points of a face · Issue #1615 · google/mediapipe

I am looking into javascript versions of face_mesh and holistic solution APIs. As for face landmarks, the doc says: MediaPipe Face Mesh is a face geometry solution that estimates 468 3D face landma...

github.com

 

728x90
반응형

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

2022-05  (0) 2022.05.23
mac intel 에서 xcode로 opencv 설치 후 실행하기  (0) 2022.04.23
m1 에서 lldb 로 실행시키기  (0) 2022.04.23
Framework Concepts  (0) 2022.03.30
Framework Concepts - Real-time Streams  (0) 2022.03.22
  1. Face Mesh Landmark
  2. Face Mesh Return
  3. Face Mesh Keypoints
  4. ROI
  5. Face Detection Keypoints
  6. Face Detection Returns
  7. References
'개발/mediapipe' 카테고리의 다른 글
  • 2022-05
  • mac intel 에서 xcode로 opencv 설치 후 실행하기
  • m1 에서 lldb 로 실행시키기
  • Framework Concepts
내공얌냠
내공얌냠
내공냠냠
내공얌냠
내공냠냠
내공얌냠
전체
오늘
어제
  • 분류 전체보기 (257)
    • 개발 (91)
      • mediapipe (16)
      • insightface (5)
      • JongjuAR (3)
    • 자료구조 알고리즘 (79)
      • 코딩테스트 (64)
      • 이론 (15)
    • 공부 (54)
      • 단행본 (8)
      • 튜토리얼 (19)
      • 논문 (15)
      • 복기 (5)
    • 참여 (5)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • python telegrambot
  • flutter tutorial
  • flutter 행사
  • vscode 스프링 설치
  • flutter 행사 후기
  • claude cli 설치
  • 음성인식 튜토리얼
  • ios google places api
  • google mediapipe
  • 구글 미디어파이프
  • claude cli 사용방법
  • claude cli 사용기
  • speaker adaptation tts
  • postgresql 재설치
  • 컴퓨터 비전
  • 깃 튜토리얼
  • 컴퓨터 비전 책 추천
  • 머신러닝이란
  • flutter conference
  • flutter
  • 플러터 튜토리얼
  • mediapipe
  • 딥러닝 기반 음성인식 기초
  • 음성인식 기초
  • mediapipe translate
  • git tutorial
  • 미디어파이프
  • postgresql install in mac
  • 컴퓨터 비전 기초
  • 플러터

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.2
내공얌냠
[python] face landmarks, keypoints, roi
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.