A Sub-mW IoT-Endnode for Always-On Visual Monitoring and Smart Triggering