Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/spec/spec-001-mediapipe-landmark-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Mediapipe versi terbaru cukup berbeda dengan versi yang sebelumnya. Perbedaan ut
Model (task by mediapipe)
- [Hand Landmarker](https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/latest/hand_landmarker.task)
- [Face Landmarker](https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task)
- [Pose Landmarker]()
- [Pose Landmarker](https://storage.googleapis.com/mediapipe-models/pose_landmarker/pose_landmarker_heavy/float16/latest/pose_landmarker_heavy.task)

Contoh kode [Google Colab](https://colab.research.google.com/github/googlesamples/mediapipe/blob/main/examples/gesture_recognizer/python/gesture_recognizer.ipynb#scrollTo=Iy4r2_ePylIa)
[Dokumentasi Holistic](https://github.com/google/mediapipe/blob/master/docs/solutions/holistic.md)
Expand Down
3 changes: 3 additions & 0 deletions src/lm-extraction/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
opencv-python
mediapipe
numpy
9 changes: 6 additions & 3 deletions src/lm-extraction/run_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def build_parser() -> argparse.ArgumentParser:
# ---- single ----
p_single = sub.add_parser("single", help="Process one video")
p_single.add_argument("input", help="Input video path")
p_single.add_argument("--out-video", default=None, help="Annotated video output path")
p_single.add_argument("--out-video", default=None,
help="Annotated video output path")
p_single.add_argument("--out-npy", default=None, help=".npz output path")
_add_model_args(p_single)
_add_confidence_args(p_single)
Expand All @@ -137,8 +138,10 @@ def build_parser() -> argparse.ArgumentParser:
# ---- batch ----
p_batch = sub.add_parser("batch", help="Process all videos in a folder")
p_batch.add_argument("folder", help="Input folder path")
p_batch.add_argument("--out-video-dir", default=None, help="Dir for annotated videos")
p_batch.add_argument("--out-npy-dir", default=None, help="Dir for .npz files")
p_batch.add_argument("--out-video-dir", default=None,
help="Dir for annotated videos")
p_batch.add_argument("--out-npy-dir", default=None,
help="Dir for .npz files")
p_batch.add_argument(
"--recursive", action="store_true", help="Scan sub-directories too"
)
Expand Down
Binary file added src/lm-extraction/tasks/face_landmarker.task
Binary file not shown.
Binary file added src/lm-extraction/tasks/hand_landmarker.task
Binary file not shown.
Binary file not shown.
Loading