Giter VIP home page Giter VIP logo

3d-vehicle-tracking's Introduction

3D Object Tracking

Overview

In this project the following keys concepts were developed:

  • Keypoint detectors and descriptors
  • Object detection using the pre-trained YOLO deep-learning framework
  • Methods to track objects by matching keypoints and bounding boxes across successive images
  • Associating regions in a camera image with lidar points in 3D space
  • Estimate TTC (aka Time-To-Collision) using LiDAR and camera key point matching

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level project directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./3D_object_tracking arg1 arg2 arg3 arg4 arg5.

For each argument, we select the following options:

  • arg1(KeyPoints Type): HARRIS, FAST, BRISK, ORB, AKAZE, and SIFT
  • arg2(Descriptors Type): BRIEF, ORB, FREAK, AKAZE, SIFT
  • arg3 (matcher Type) : MAT_BF, MAT_FLANN
  • arg4 (descriptor Type) : DES_BINARY, DES_HOG
  • arg5 (selector Type): SEL_NN, SEL_KNN

Implementation approach

Match 3D Objects

The algorithm performing match of bounding boxes is in matchBoundingBoxes. The implementation is divided into three seteps:

  1. Store in a pair of values box ids which are in previous and current frame bounding boxes
  2. Evaluate the number of pair points per bounding box match between current and previous frame
  3. Find the highest number of points per bounding box in prev and current frame above a certain threshold, choosing only the max counting bounding box per object detected

match

Compute Lidar-based TTC

The algorithm to compute lidar TTC is divided into three parts:

  1. Outliers removal.
  2. Compute closest point in previous and current lidar frame.
  3. Compute TTC between both frames.

The outliers removal is based on defined threshold euclidean distance around each point belonging to a cluster (in our case cars).

Associate Keypoint Correspondences with Bounding Boxes

The algorithm is implemented in clusterKptMatchesWithROI. The match between keypoints and each bounding box is divided into two steps:

  1. Compute absolute mean distance between current and previous frames, considering only the keypoints belonging to a bounding box.
  2. Store the keypoints within a certain distance threshold.

Reference

  • For further details on analytics about TTC estimates check this report

Disclamer

This project was cloned from Udacity 3D tracking project in the context of Sensor Fusion Engineer nanodegree.

3d-vehicle-tracking's People

Contributors

brunoeducsantos avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

roman-smirnov

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.