Skip to content

Commit 063aba4

Browse files
added instructions to prepare glasses 3d model in readme
1 parent 04e5e25 commit 063aba4

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ yarn serve
2828
```
2929

3030
Open `localhost:8080`
31+
32+
## Preparing glasses 3d model.
33+
34+
When using custom 3d glasses make sure the model is oriented in the right way. You can use [three js editor](https://threejs.org/editor/) or other tools like [gltfviewer](https://www.gltfviewer.com/) to check or correct orientation of glasses.
35+
36+
![Top View](images/topview.png)
37+
38+
![Front View](images/frontview.png)
39+
40+
## Limitations
41+
42+
Face Transform Module is not available in facemesh javascript. So it does not give proper depth / z coordinates. So 3d effect look weird when using perspective camera.
43+
44+
While writing code to places objects relative to facemesh model, [facemesh model UV visualization](https://github.com/google/mediapipe/blob/master/mediapipe/modules/face_geometry/data/canonical_face_model_uv_visualization.png) can be helpful.

images/frontview.png

23.2 KB
Loading

images/topview.png

22.3 KB
Loading

0 commit comments

Comments
 (0)