The Daemon that runs motion detection as a separate RTOS task cannot be stopped after calling .start(). It would be good to provide .stop() and .pause() methods that would allow the task to delete itself or to be paused.
In my application I want to use motion detection at low resolution and then switch to taking a few high resolution pics once triggered and reverting back to low-res motion detection later. I will adapt your Your Motion_Detection_Higher_Resolution example for now but ultimately it would be better to run the motion detection as a separate task using your Daemon feature and to be able to pause motion detection temporarily while taking a set of high-res pics to ensure the detected object is properly captured at least once.
The Daemon that runs motion detection as a separate RTOS task cannot be stopped after calling .start(). It would be good to provide .stop() and .pause() methods that would allow the task to delete itself or to be paused.
In my application I want to use motion detection at low resolution and then switch to taking a few high resolution pics once triggered and reverting back to low-res motion detection later. I will adapt your Your Motion_Detection_Higher_Resolution example for now but ultimately it would be better to run the motion detection as a separate task using your Daemon feature and to be able to pause motion detection temporarily while taking a set of high-res pics to ensure the detected object is properly captured at least once.