Skip to content

Python implementation of multi-object tracking using min-cost flow

License

Notifications You must be signed in to change notification settings

tttanikawa/py-mcftracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-object tracking using min-cost flow

This is a simple Python implementation of tracking algorithm based on global data association via network flows [1].

Targets are tracked by minimizing network costs built on initial detection results.

Dependencies

  • numpy
  • OpenCV (for image reading, processing)
  • ortools (for optimizing min-cost flow)

Usage

Please modify test.py and mcftracker.py to adapt your tracking targets. You can test this implementation as:

% python test.py

To include it in your project, you just need to:

tracker = MinCostFlowTracker(some_parameters)
tracker.build_network(images)
optimal_flow, optimal_cost = tracker.run()

You can use fibonacci search to reduce computation costs.

License

MIT

References

[1] L. Zhang et al., "Global data association for multi-object tracking using network flows", CVPR 2008

About

Python implementation of multi-object tracking using min-cost flow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages