Two novel motion-based algorithms for surveillance video analysis on embedded platforms