Embedded Face Analysis for Smart Videosurveillance