It is preferable to use a virtual environment: refer - https://www.geeksforgeeks.org/creating-python-virtual-environment-windows-linux/
Step 1: Download all the contents of the repository
A zip file can be downloaded directly or
use git clone https://github.com/codex-exe/yolov7-mediapipe.git
Step 2: Install all the requirements
pip install -r requirements.txt
(version issues can occur, refer to the latest official vosk(offline), yolov7 and mediapipe for dependencies)
https://github.com/alphacep/vosk-api
https://github.com/google/mediapipe
https://github.com/WongKinYiu/yolov7
Step 3: Run detect.py for the main code