• Stars
    star
    323
  • Rank 130,051 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

YOLOv7 Pose estimation using OpenCV, PyTorch

yolov7-pose-estimation

New Features

  • Added Support for Comparision of (FPS & Time) Graph
  • How to run Code in Google Colab
  • Code can run on Both (CPU & GPU)
  • Video/WebCam/External Camera/IP Stream Supported

Coming Soon

  • Development of streamlit dashboard for Pose-Estimation

Steps to run Code

  • If you are using google colab then you will first need to mount the drive with mentioned command first, (Windows or Linux users) both can skip this step.
from google.colab import drive
drive.mount("/content/drive")
  • Clone the repository.
git clone https://github.com/RizwanMunawar/yolov7-pose-estimation.git
  • Goto the cloned folder.
cd yolov7-pose-estimation
  • Create a virtual envirnoment (Recommended, If you dont want to disturb python packages)
### 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 ..
  • Upgrade pip with mentioned command below.
pip install --upgrade pip
  • Install requirements with mentioned command below.
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
  • Output file will be created in the working directory with name ["your-file-name-without-extension"+"_keypoint.mp4"]

RESULTS

Football Match Pose-Estimation Cricket Match Pose-Estimation FPS and Time Comparision Live Stream Pose-Estimation

References

My Medium Articles

More Repositories

1

yolov7-object-tracking

YOLOv7 Object Tracking Using PyTorch, OpenCV and Sort Tracking
Python
532
star
2

yolov7-segmentation

YOLOv7 Instance Segmentation using OpenCV and PyTorch
Python
282
star
3

yolov8-object-tracking

YOLOv8 Object Tracking Using PyTorch, OpenCV and Ultralytics
Python
245
star
4

yolov5-object-tracking

YOLOv5 Object Tracking + Detection + Object Blurring + Streamlit Dashboard Using OpenCV, PyTorch and Streamlit
Python
86
star
5

yolov7-object-blurring

YOLOv7 Object Blurring Using PyTorch and OpenCV
Python
63
star
6

yolov7-object-cropping

YOLOv7 Object Cropping Using OpenCV
Python
16
star
7

Extraction-of-frames-from-single-video-computer-vision-

Extraction of frames from single video using OpenCV
Jupyter Notebook
14
star
8

YOLO-RX57-FPS-Comparision

FPS Comparision with same specification of YOLOX, YOLOR, YOLOv5 and YOLOv7
Python
13
star
9

Houses-price-prediction-web-app-machine-learning-

Houses price prediction web app
HTML
7
star
10

Face-recognition-using-opencv-computer-vision-

Face detection and recognition using OpenCV.
Python
5
star
11

RizwanMunawar

My Repositories stars, commits, pull requests, Information
4
star
12

Spark-foundation-internship-tasks-computer-vision-

Spark foundation Internship Tasks of domain (Computer Vision & IoT Field).
Jupyter Notebook
3
star
13

Extraction-of-frames-from-multiple-frames-computer-vision-

Frames extraction from multiple videos
Jupyter Notebook
3
star
14

Houses-price-prediction-machine-learning-

Houses Price Prediction using Linear Regression
Jupyter Notebook
3
star
15

skin-cancer-binary-classification-computer-vision-

Skin Cancer binary(Benign vs malignant) Classification using convolutional neural networks
Jupyter Notebook
2
star
16

Cats-vs-dogs-classification-computer-vision-

Cats vs dogs classification using deep learning. Data augmentation and convolutional neural networks.
Jupyter Notebook
1
star
17

Covid-19-chest-x_rays-images-multi-class-classification-computer-vision-

Covid-19 chest x_rays images multi-class classification while classes are (COVID, Pneumonia, normal)
Jupyter Notebook
1
star
18

Data-analysis-on-csv-datasets-machine-learning-

Data Analysis and model building on CSV datasets.
Jupyter Notebook
1
star