Skip to content

Error using Motion Detection #56

@andiaa734

Description

@andiaa734

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions