Unfortunately i don't know any ready built tool for that, it always comes down to development, e.g. using opencv in python (oh, i recognize there is currently no way for analyzing, so connecting to opencv might be even more interesting than just overlays, but on the other hand opencv can already be used as commandline)
By the way, your title is a little misleading, i guess "Advanced" would be a good word to express what you are after
Hmmm i could propbably easily develop an avisynth source plugin or ffmpeg filter that accepts html+javascript as source, that way you would build your overlay using html and javascript language, a technique they seem to use more and more these days. But help me, in former days they used flash (swf) for this kind of stuff, then there are propreitary systems that of course introduce their own propreitary language.
I'd like to find something those systems have in common so someone who is already experienced with this kind of stuff can easily use it.