Fix MotionDetect samples

Signed-off-by: Mikhail Grigorev <sleuthhound@gmail.com>