The Advanced Scene Switcher plugin has some video analysis, but I'm pretty sure it doesn't do *that* yet. But maybe you can look up how machine vision works (search term) and add your own code to Adv. SS Video condition...
This plugin will allow you to automate various tasks using "Macros". Macros consist of a list of conditions under which a list of actions will be performed. Examples and guides can be found in the wiki. Feel free to contribute! If you run...
obsproject.com
Likewise for physically moving a PTZ camera or panning/zooming the picture in OBS. I don't think Adv. SS does that yet, but maybe you can add it.
Or, maybe you can create a video filter from scratch that does what you need. OBS *is* open source, you know. :-)