Models Algorithms and Architectures for Video Analysis in Real-time