eloquentarduino / EloquentEsp32cam

Use your Esp32-cam like an expert
GNU General Public License v3.0
111 stars 20 forks source link

Nice to have feature: Option to stop or pause the motion detection daemon #30

Open jksemple opened 6 months ago

jksemple commented 6 months ago

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.

eloquentarduino commented 5 months ago

Looks good, will add this.