Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

36 Commits

Repository files navigation

Object Tracker

Object tracker based on kalman fiters to track objects in a binary thresholded image

Usage

To run the object tracker on a video file, run

python object_tracker.py -i <path to video file> [OPTIONS]

or

python object_tracker.py --input=<path to video file> [OPTIONS]

Optional options include:

Short optionsLong optionsDescription
-d--debugEnable debug mode
-v--verboseEnable verbose output
-h--helpShow usage help
-s--show-infoShow object tracker info when visualizing output

To generate test videos to test the tracker on, use:

python video_generator.py -o <output file> [OPTIONS]

or

python video_generator.py --outfile=<output file> [OPTIONS]

Optional options include:

Short optionsLong optionsDescription
-h--helpShow usage help
-x--hresHorizontal resolution
-y--vresVertical resolution
-r--radiusRadius of objects generated
-b--num-objectsNumber of objects generated
-l--loopsNumber of times the set of n objects are generated. (A new set of objects are generated once all the objects in the current set leave the frame)
-n--noise-factorVariance of the uniform distribution from which noise is sampled

Note: Long options that require areguments are used with an '=' sign. eg: --noise-factor=5

ROS wrapper usage

To run the ObjectTracker as a ROS node, build the package inside your catkin workspace and run

rosrun objecttracker tracker_node.py

tracker_node.py subscribes to CompressedImage messages on the tracking_frames topic and publishes DetectedObjectArray messages to the tracked_objects topic

To test tracker_node with dummy data, run:

rosrun onjecttracker video_generator_node.py

video_generator_node publishes dummy binary thresholded data onto the tracking_frames topic

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages