Add motion detection algorithm from SG-3c camera.