468 Face Landmarks tutorial
1. Install requirements
~$ pip install -r -U requirements.txt
Tested on python=3.10.8
(Update 2022.12.02)
There are some OpenCV dependency issues while installing Albumentations. So, please follow bellow instructions:
pip install numpy==1.21.5
pip install tensorflow==2.8.1
pip install mediapipe==0.8.11
pip install opencv-python==4.6.0
pip install omegaconf
pip install PyYAML
pip install -U albumentations --no-binary qudida,albumentations
For the iris example, download iris_landmark.tflite
~$ wget -P models https://github.com/google/mediapipe/raw/master/mediapipe/modules/iris_landmark/iris_landmark.tflite
2. Run the code
~$ python FaceMesh_with_rough_pupil.py # Mediapipe face mesh & OpenCV usage eye pupil
~$ python FaceMesh_with_iris.py # Mediapipe face mesh & iris
Reference
[1] 468 Face Landmars, CVZONE /
[2] Detect 468 Face Landmarks in Real-time | OpenCV Python, youtube /
[3] MediaPipe Face Mesh /
[4] ARFaceAnchor, apple developer /
[5] Malla Facial /
[6] Real-time Facial Performance Capture with iPhone X /
[7-1] FaceMesh: Detecting Key Points on Faces in Real Time / 얼굴 매쉬 이미지만 취득하려다가 여기까지 왔네...
[7-2] ailia-models, github / 위 포스트의 실습코드인데, 여기 레포지토리에 기타 실행해보면 좋을 모델이 많이 있다
[[8] Face Mesh| 468 facial landmark detection | mediapipe, youtube /
[9] Attention Mesh: High-fidelity Face Mesh Prediction in Real-time / 논문 설명
[10] Face Mesh, ailia-models, github /
Pupil detection
[11] Gaze Tracking, github / iris 위치 추출을 위한 예시 참고
[12] Real-time Pupil Tracking from monocular Video, github / Google Mediapipe의 iris detection 인데 이건 PyTorch로 구현 됨
[13] MediaPipe Iris: 실시간 홍채추적 및 깊이측정 /
[14] How use Mediapipe API for Python Iris Depth? / 파이썬 버전으로 된게 없어 이것저것 찾아봄. 대체로 그냥 옵션 추가후 수동 빌드를 통해 해결한는 것 같다?
[15] mediapipeDemos, github / 위의 링크에서 찾았다. 드디어! 이거 참고해서 새로 만들어야지
[16] MediaPipe Iris: Detecting Key Points in the Eye, medium /