Energy-Based Video Surveillance: A Case Study on ATM