Giter VIP home page Giter VIP logo

ivy's Introduction

Ivy

Ivy is an open source video-based vehicle counting system which employs several computer vision techniques to detect, track and count vehicles in a traffic scene.

Requirements

  • Python 3

Setup

  • Clone this repo [email protected]:nicholaskajoh/ivy.git.
  • Create and/or use a virtual environment (optional but recommended).
  • Install the dependencies in requirements.txt pip install -r requirements.txt.
  • Choose a detector and install its dependencies where necessary (if you're not sure what to pick, we recommend you start with yolo).
Detector Description Dependencies
yolo Perform detection using models created with the YOLO (You Only Look Once) neural net. https://pjreddie.com/darknet/yolo/
tfoda Perform detection using models created with the Tensorflow Object Detection API. https://github.com/tensorflow/models/tree/master/research/object_detection CPU: pip install tensorflow-cpu
GPU: pip install tensorflow-gpu
detectron2 Perform detection using models created with FAIR's Detectron2 framework. https://github.com/facebookresearch/detectron2 python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' (https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md)
haarcascade Perform detection using Haar feature-based cascade classifiers. https://docs.opencv.org/3.4/db/d28/tutorial_cascade_classifier.html

Run

  • Create a .env file (based on .env.example) in the project's root directory and edit as appropriate.
  • Run python -m main.

Demo

Download ivy_demo_data.zip and unzip its contents in the data directory. It contains detection models and a sample video of a traffic scene.

Test

python -m pytest

Debug

By default, Ivy runs in "debug mode" which provides you a window to monitor the vehicle counting process. You can:

  • press the p key to pause/play the counting process
  • press the s key to capture a screenshot
  • press the q key to quit the program
  • click any point on the window to log the coordinates of the pixel in that position

Community

Got questions, contributions, suggestions, concerns? Join our community on Spectrum!

Donate

Love this project? You can buy me a coffee or two to support its continued development. ๐Ÿ˜Š

ivy's People

Contributors

amin-tgz avatar basedrhys avatar dependabot-preview[bot] avatar nicholaskajoh avatar yemikudaisi 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.