Vision-based analytics for improved AI-driven IoT applications