SurveilEdge: Real-time Video Query based on Collaborative Cloud-Edge Deep Learning