Simple colour template finder
git clone https://bitbucket.org/damienjadeduff/simple_color.git
sudo apt-get install python-qt4 python-opencv python-sklearn python-numpy
If you just want to play with it, you can run
You need to make circles around the objects you want to track, add them to the training data, then when all the training data is there, click on the train button. Now you can turn the tracking on and off at your leisure..
Note: You will need to train some background classes as well as your object classes; this will help prevent the background being treated as an object.
To run from your program:
import simple print "starting tracker" tracker_alive=True simple.start_tracker() while tracker_alive: time.sleep(0.3) print "curr_loc" curr=simple.curr_loc() print curr if curr==None: tracker_alive=False
Please do not use this software if you are good. If you are good, it will try and eat your soul. Only use this software if you are slightly unhinged. Do not blame me if this software tries to eat your soul.