• This repository has been archived on 24/Dec/2022
  • Stars
    star
    422
  • Rank 102,753 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 2 years ago

Reviews

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

Repository Details

Video-based object counting software.

Ivy

Ivy is an open-source video-based object counting software for tallying pretty much anything (vehicles, people, animals — you name it).

Need help setting up Ivy and analyzing the logs? Visit https://trafficlogic.co or send an email to [email protected].

Requirements

  • Python 3 (tested with version 3.7)

Setup

  • Clone this repo [email protected]:nicholaskajoh/ivy.git.
  • Create and/or use a virtual environment (optional but recommended) mkvirtualenv -p python3.7 ivy.
  • 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.
  • Run using Docker docker build -t nicholaskajoh/ivy ..

Demo

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

Test

python -m pytest

Debug

By default, Ivy runs in "debug mode" which provides you a window to monitor the object 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? Let us know! Also follow us on Twitter @CountWithIvy to get notified about new features, fixes and initiatives.

More Repositories

1

React-Django

Simple setup for a React-Django web app.
Python
152
star
2

devsearch

A web search engine built with Python which uses TF-IDF and PageRank to sort search results.
Python
55
star
3

faceclone-html-template

A very very basic Facebook clone HTML template.
HTML
41
star
4

dockerized-django

Sample project on how to dockerize your Django project in development and production environments.
Python
40
star
5

faceclone

Full project for my blog series on building a Facebook clone with PHP from scratch.
PHP
31
star
6

jack

Run multiple apps on one server with Docker and Traefik.
HTML
30
star
7

TNEX

Self-driving car algorithms.
Python
11
star
8

fashion-ecommerce-platform-db-schema

DB schema for a fashion eCommerce platform.
9
star
9

microservices

Deploy microservices on Kubernetes (demo)
Python
8
star
10

ML_Chops

Python implementation of some popular Machine Learning algorithms.
Python
7
star
11

whatsapp-gdata

Analyze your WhatsApp group data to get some interesting facts.
Python
7
star
12

wp-energy-usage-calculator

A Wordpress plugin that provides an easy and flexible way for your users to calculate their electricity usage.
PHP
6
star
13

sails-form-validation

Form validation with Sails.js (demo).
JavaScript
6
star
14

tessy

A PHP Nano Framework for experimentation, demonstration and testing.
PHP
5
star
15

Medium2Markdown

Convert your Medium.com export to Markdown.
JavaScript
5
star
16

hits

Python
4
star
17

snapclone

Build a simple Snapchat-like camera with Python (source code).
Python
4
star
18

school-review-hub

Comparison-based School Review System (entry for SauceCode Hakathon).
JavaScript
4
star
19

janelle

Toy SQL database.
Java
4
star
20

Algorithms

Common CS algorithms written in JavaScript, Python and Java.
Java
3
star
21

faceclone-site

Deployed version of the FaceClone app.
PHP
3
star
22

Simple-CSS-Grid

Simple CSS grid system with Flexbox.
HTML
3
star
23

ghost2md

Convert your Ghost blog export to markdown files.
JavaScript
3
star
24

traffic-logic

Data pipeline for Ivy (object counting system).
Java
3
star
25

mail-bazooka

Simple Python script to send emails using Mailgun's API.
Python
3
star
26

Data-Structures

Common CS data structures written in Python, Java and C++.
Java
3
star
27

alphacoder.xyz

Programming blog.
Shell
3
star
28

trends-spam-remover

Remove tweets spamming hashtags for a cleaner Twitter experience.
JavaScript
2
star
29

krak.lol

Django web app.
CSS
2
star
30

nicholaskajoh.github.io

My personal website
CSS
2
star
31

dejavu

CSS
1
star
32

MapSizeComparator

Compare the relative sizes of two or more maps.
JavaScript
1
star
33

plant-leaf-classification

Python
1
star
34

terna.wtf

Configs & docs for my home lab.
1
star
35

old-website

Old personal website.
JavaScript
1
star
36

The14thSetMoments

Count-down timer and mini gallery for CU set of 2019, The 14th Set.
JavaScript
1
star
37

star-wars-api

May the Force be with you!
HTML
1
star
38

PyTorch-Experiments

ML programs with PyTorch.
Jupyter Notebook
1
star
39

wildcard-subdomains

How to configure wildcard subdomains (demo).
HTML
1
star
40

vybe

Music streaming platform for upcoming artistes to share and profit from their music.
JavaScript
1
star
41

innomines

HTML
1
star