Decentralized modular architecture for live video analytics at the edge