Prepare the environment. You can easily use the python virtual environment using command line. Recommended to use Python 3.8, for more info about virtual environment see here
python -m venv /path/to/new/virtual/environment
example:
c:> python -m venv c:\path\to\myenv
Install all required package using requirements.txt
file
python -m pip install -r requirements.txt
You can simply run src/main.py
with necessary arguments:
$ python main.py -h
positional arguments:
input Type of Input [online, offline]
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH path to input data (sources)
-s OUT, --save_to OUT path to output data
Type of Input :
- offline - the module can receives single up to multiple images
- online - the module can receives video file or simply using your real-time camera
- https://github.com/google/mediapipe Official Mediapipe Repository
- On-Device, Real-Time Hand Tracking with MediaPipe in Google AI Blog