Skip to content

cacheflowe/people-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

People Counter

A simple people counter using YOLOv8 and Supervision library. Use a webcam as input to track and count people in real-time.

Install :

Intall a compatible version of PyTorch with CUDA support before installing other dependencies. For example, for CUDA 11.8:

Then install other dependencies:

python -m venv .venv
.venv\\Scripts\\activate.ps1  # (Windows/Powershell)
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu118 
pip install supervision[desktop] ultralytics

Usage:

.venv\\Scripts\\activate.ps1
python run.py --webcam-resolution 1280 720 --camera 1 --confidence 0.6

Notes :

Download yolo model:

ultralytics download yolov8n

About

A webcam people-counter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages