Coder Social home page Coder Social logo

person-counter-open-cv's Introduction

Person Counter Using Open Cv and MobileNet-SSD (Object Detection and Object Tracking)

image

  1. Libraries used - OpenCv, Dlib, imutils, numpy

The following program uses two techniques to count people present walking in the video.

  1. Object Detection
  2. object Tracking

Firstly a more expensive model is run for every N frames to detect people in the current frame. The bounding box and centroid coordinates are stored for each of these detected persons. Simultaneously, a less expensive object tracking model is run for every other frame, it tries to associate the objects in that frame with the older objects by minimizing the distances between the centroids.

The associated objects get a unique ID which stays for a maximum of D frames as specified in the code, if the program is not able to track the object, we deregister the object.

Lastly we draw out a vertical line on the video frames. This is to ensure if the object's current position is ahead of the vertical line or behind it. This is with the relative direction of the object with refrence to its old centroid will determine if the object is moving towards left or right.

person-counter-open-cv's People

Contributors

priithaa avatar

Watchers

James Cloos avatar  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.