Skip to main content

Easy to use color tracking package for object tracking based on colors

Project description

Codacy Badge PyPI version License: MIT Python 3

Color Tracker - Multi Object Tracker

Easy to use multi object tracking package based on colors :art:

yellow-cruiser ball-tracking


pip install color-tracker

You will need the following packages:

  • OpenCV3 (pip install opencv-python)
  • Numpy (pip install numpy)

Object Tracker

  • Check out the examples folder, or go straight to the sample tracking app which is an extended version of the script below

    python examples/
  • Simple script:

    import cv2
    import color_tracker
    def tracker_callback(t: color_tracker.ColorTracker):
        cv2.imshow("debug", t.debug_frame)
    tracker = color_tracker.ColorTracker(max_nb_of_objects=1, max_nb_of_points=20, debug=True)
    with color_tracker.WebCamera() as cam:
        # Define your custom Lower and Upper HSV values
        tracker.track(cam, [155, 103, 82], [178, 255, 255], max_skipped_frames=24)

Color Range Detection

This is a tool which you can use to easily determine the necessary HSV color values and kernel sizes for you app

You can find the HSV Color Detector code here

python examples/

Donate :coffee:

If you feel like it is a useful package and it saved you time and effor, then you can donate a coffe for me, so I can keep on staying awake for days :smiley:

Buy Me a Coffee at


Gábor Vecsei

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for color-tracker, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size color_tracker-0.0.4-py3-none-any.whl (14.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size color_tracker-0.0.4.tar.gz (9.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page