Giter Club home page Giter Club logo

dlib-object-tracking's Introduction

dlib-object-tracking

Object tracking using a pre-trained object detection model & the dlib correlation tracker.

The algorithm starts streaming from a video file or a live web-cam feed. Object detection through a pre-trained model is performed on the feed till a positive for the input label is found.

The correlation tracker used here uses discriminative correlation filters to localize the target, building upon a Minimum Output Sum of Squared Error (MOSSE) filter. This makes the tracker robust to variations in lighting, pose & scale.

More information about the tracking algorithm can be found below:

  1. Object Tracking in OpenCV
  2. Visual Object Tracking using Adaptive Correlation Filters
  3. Accurate Scale Estimation for Robust Visual Tracking

Single Object Tracking

The detection result is taken to be as the single object with the best detection confidence.

A tracker is subsequently placed on the video stream and is updated every frame to track the object.

Usage

python single_object_tracking.py --prototxt model\MobileNetSSD_deploy.prototxt --model model\MobileNetSSD_deploy.caffemodel --label person
python single_object_tracking.py --prototxt model\MobileNetSSD_deploy.prototxt --model model\MobileNetSSD_deploy.caffemodel --label person --out output.avi
python single_object_tracking.py --prototxt model\MobileNetSSD_deploy.prototxt --model model\MobileNetSSD_deploy.caffemodel --video test.mp4 --label person --out output.avi

Multiple Object Tracking

All the detection results for the input label are tracked to provide multiple detections.

The tracking processes are distributed via python's multiprocessing module.

Usage

python multi_object_tracking.py --prototxt model\MobileNetSSD_deploy.prototxt --model model\MobileNetSSD_deploy.caffemodel --label person
python multi_object_tracking.py --prototxt model\MobileNetSSD_deploy.prototxt --model model\MobileNetSSD_deploy.caffemodel --label person --out output.avi
python multi_object_tracking.py --prototxt model\MobileNetSSD_deploy.prototxt --model model\MobileNetSSD_deploy.caffemodel --video test.mp4 --label person --out output.avi

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.