Energy-efficient foreground object detection on embedded smart cameras by hardware-level operations