Giter Site home page Giter Site logo

cctv-human-count-detection's Introduction

CCTV Human Counter

CCTV People Counter is a Python application that uses YOLO (You Only Look Once) object detection and tracking to count the number of people in a video and display the results in a user-friendly way.

Table of Contents

Features

  • Upload a video file for processing.
  • Utilizes YOLO object detection and tracking to count the number of people.
  • Converts the output video to H.264 format for compatibility.
  • Displays the processed video and average count in the web interface.
  • Includes a progress bar and spinner loader to provide visual feedback during processing.

Requirements

Ensure you have the following prerequisites installed:

  • Python 3.8+
  • Streamlit (can be installed via pip)
  • OpenCV (can be installed via pip)
  • FFmpeg for video conversion (installation may vary by platform)
  • The YOLO model (yolov8m.pt or any other compatible model)

You can create a virtual environment and install the required packages using the provided requirements.txt:

pip install -r requirements.txt

Installation

  1. Clone the repository:
git clone https://github.com/QuantuM410/cctv-human-count-detection.git
  1. Change to the project directory:
cd cctv-human-count-detection
  1. Install the required dependencies as mentioned in the Requirements section.

  2. Place the YOLO model file (e.g., yolov8m.pt) in the project directory.

Usage

Run the Streamlit app with:

streamlit run app.py
  1. Upload a video file for processing.
  2. The app will display the processed video and average count.
  3. You can monitor the progress of video processing via the progress bar or spinner loader.

Demo

screen-recorder-thu-nov-02-2023-10-41-46.webm

cctv-human-count-detection's People

Contributors

quantum410 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.