Smart vision-based presence detection at mW power