Motion detection, object recognition, control system