- server.on("/picture", HTTP_GET, [](AsyncWebServerRequest * request) {
- camera_fb_t * frame = NULL;
- frame = esp_camera_fb_get();
- request->send_P(200, "image/jpeg", (const uint8_t *)frame->buf, frame->len);
- esp_camera_fb_return(frame);
- });
esp32 cam takes old image
esp32 cam takes old image
Hi, I try to make security system - "door opens, photo takes". But when i take photo - there is not realtime photo - seem like some old frame from internal buffer. I'm not understand how take realtime photo. Here code example which shoul give realtime photo:
Response gives me old photo from buffer.
Re: esp32 cam takes old image
Did you ever figure this out? I'm running into the same behavior.
Re: esp32 cam takes old image
I also face the same problem, but with Examples->ESP32->Camera->CameraWebServer
I suspect it has to do that I use Arduino IDE instead of PlatformIO, but hard to tell without switching.
I suspect it has to do that I use Arduino IDE instead of PlatformIO, but hard to tell without switching.
-
- Posts: 1
- Joined: Mon Nov 28, 2022 1:25 pm
Re: esp32 cam takes old image
Find your answer here: https://github.com/espressif/arduino-esp32/issues/6047
Add to your code: config.grab_mode = CAMERA_GRAB_LATEST;
Add to your code: config.grab_mode = CAMERA_GRAB_LATEST;
Who is online
Users browsing this forum: No registered users and 118 guests