The Tracking service is evolving and in the process much of the scripting of the past does not work.  It has begun to incorporate more features too, for example it can switch in background filters.  At some point these will be used to identify new objects of interest - then a tracking point will be set.

At the moment that work is not  completed - but it should be fairly easy to start Tracking in its simple manual mode - (this is were you manually select points to track)

Here is a the startup script...

 

runtime.createAndStart("tracker", "Tracking")
 
tracker.setRestPosition(90, 5)
tracker.setSerialPort("COM12")
tracker.setXServoPin(13)
tracker.setYServoPin(12)
tracker.setCameraIndex(1)
 
tracker.initTracking()
tracker.initControl()
tracker.initInput()
 
tracker.trackLKPoint()
 
 
You can turn off the tracking without turning off the video camera by starting or stoping the video stream going from opencv to the tracking service with this command
 
tracker.startVideoStream()
 
tracker.stopVideoStream()
 
Additionally, you can see some of the new features by making the Tracking service idle.  When its idle it will be looking for a stabalized background - then once its stable - it will look for changes.
 
tracker.setIdle()
 
Let me know if parts NO-WORKY