Skip to content

antoinekeller/cars_tracking_bev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car tracking as oriented bounding boxes with a modified CenterNet

In this repo, I propose a multi-object detection network for cars/vehicles seen from a Bird Eye View (BEV). Instead of detecting a basic rectangular bounding box, we can also train the network to detect the angle and orientation of each vehicles.

Then, a basic tracking algorithm is applied with Kalman Filtering for each objects.

This runs at 20fps on my laptop with a Nvidia RTX A2000 GPU.

Tracking

Youtube video link

Training

The network is inspired from CenterNet. In addition to position, offsets and bounding boxes dimensions, we also predict sine/cosine heatmaps to have the yaw angle.

See training repo for more details.

Tracking

I managed to keep the code as simple as possible, so that it can easily be customized to your needs.

You will maybe need to change the process noise covariance matrix in the Kalman Filter.

python multi_object_tracking.py path/to/video.mp4 training/centernet-oriented-bbox.pth

You can also:

  • display objects ids
  • display objects speeds
  • change trajectory length to be displayed

Some nice samples

Enjoy !

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published