1 | initial version |
Did you try the Kalman filter from the sample? It should prevent jumping from a blob to another. Look at the sample cpp/kalman.cpp.
For the issue of color, look at the parameters of blobtracking here especially filterBy to track darker blob.