How to design an optimised motion control system for intelligent edge-based surveillance camera