Global and Local Coverage Maximization in Multi-camera Networks by Stochastic Optimization