Skip to content

This project is for tracking and counting people in real-time using a video feed. It detects people and keeps a count, saving the total for future use

Notifications You must be signed in to change notification settings

ishworrsubedii/person_tracker_and_counter

Repository files navigation

Introduction

This project is designed to track and count people in real-time using a camera or video feed. It's useful for applications like monitoring crowds, keeping track of how many people enter or exit a room, or any scenario where you need to keep count of the number of people in a given space.

Installation

  1. Create a conda environment
    conda create -n <env_name> python=3.10
    
  2. Activate the conda environment
    conda activate <env_name>
    
  3. Install the required packages
    pip install -r requirements.txt
    

Setup

For setup please check the params.yaml file and change the values accordingly.

model_path: "resources/models/yolov8m.pt"
result_dir: "results/"
tracker_config: "resources/config/bytetrack.yaml"
conf: 0.85
device: "cuda:0"
iou: 0.85
img_size: [ 720, 1080 ]
video_source: 0
show: True

Adjust the values according to your requirements.

Video Source

  1. RTSP Server
    source: rtsp://ishwor:subedi@192.168.1.106:5555/h264_opus.sdp
  2. Video File
    source: path/to/your/file.mp4
  3. Webcam
    source=0
    

Inference

chmod +x start.sh
./start.sh

About

This project is for tracking and counting people in real-time using a video feed. It detects people and keeps a count, saving the total for future use

Topics

Resources

Stars

Watchers

Forks