MotionDetector Create a Thread to run a Motion Detector. Motion is detected if two consecutive images show Contours within a defined limit. Motion Detector fires two events: Motion started Motion ended For each Event multiple functions can be registered.