eloquentarduino / EloquentEsp32cam

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

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

Open jksemple opened 2 months ago

jksemple commented 2 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 2 weeks ago

Looks good, will add this.