Real-time adaptive regulation of a visual camera for automatic investigation of changing environments