1 | initial version |
i'd think, you're on the right path already.
tracking does not care, what it tracks (so it's interchangeable), but it needs an initial rectangle / detection (so there we're at the object detecton part. maybe look at the dnn detection example for the latter ?
then, unfortunately, the tracking module is not part of the main opencv android SDK, to use it, you'll have to rebuild from src (with the opencv_contrib modules), see here for that