How to Design an Optimized Motion Control System for Intelligent Edge Based Surveillance Camera