from google.colab import drive
drive.mount("/content/drive")
git clone https://github.com/RizwanMunawar/yolov7-pose-estimation.git
cd yolov7-pose-estimation
### For Linux Users python3 -m venv psestenv source psestenv/bin/activate ### For Window Users python3 -m venv psestenv cd psestenv cd Scripts activate cd .. cd ..
pip install --upgrade pip
pip install -r requirements.txt
Download yolov7 pose estimation weights from link and move them to the working directory {yolov7-pose-estimation}
Run the code with mentioned command below.
python pose-estimate.py #if you want to change source file python pose-estimate.py --source "your custom video.mp4" #For CPU python pose-estimate.py --source "your custom video.mp4" --device cpu #For GPU python pose-estimate.py --source "your custom video.mp4" --device 0 #For View-Image python pose-estimate.py --source "your custom video.mp4" --device 0 --view-img #For LiveStream (Ip Stream URL Format i.e "rtsp://username:pass@ipaddress:portno/video/video.amp") python pose-estimate.py --source "your IP Camera Stream URL" --device 0 --view-img #For WebCam python pose-estimate.py --source 0 --view-img #For External Camera python pose-estimate.py --source 1 --view-img
| Football Match Pose-Estimation | Cricket Match Pose-Estimation | FPS and Time Comparision | Live Stream Pose-Estimation |
![]() |
![]() |
![]() |
![]() |