EloquentEsp32cam icon indicating copy to clipboard operation
EloquentEsp32cam copied to clipboard

Error using Motion Detection

Open andiaa734 opened this issue 6 months ago • 5 comments
trafficstars

I want to implement Motion Detection.

For a time the program runs fine. But then it throws an error message:

esp_jpg_decode: JPG Decompression Failed! Data format error

After this, the program hangs in the while loop:

if (!detection.run().isOk()) { Serial.println("Detection error: "); Serial.println(detection.exception.toString()); return; }

No more exception is printed. ESP needs no be reset to work again for a time.

Any solution? Tried to implement ESP.restart in the while loop but this conflicts with detection.rate.atMostOnceEvery(5).seconds(); So the ESP is restarted immediately after start.

andiaa734 avatar Apr 26 '25 16:04 andiaa734