High quality photo only with face detected esp32cam

In my tests with ESP32CAM I would like to try to take good pictures only when face is detected.

But the code that detects faces uses a low FRAMESIZE, it seems that it only works with low FRAMESIZE.

I was wondering if I could change these three lines through an IF, but I don't know, they are config, I don't know if it's possible.

If it were possible it wouldn't be difficult to detect faces and create a delay or millis() and change the lines changing the camera quality and take the picture.

And then switch back to low quality to detect new face.

Does anyone know if this is possible? Do you have any sample code?

 config.frame_size = FRAMESIZE_SXGA; 
  config.jpeg_quality = 30;
  config.fb_count = 2;

It is possible to change some of the camera settings on the fly. I am able to do so from my web site for my esp32 cams.

Your issue is going to be available RAM to do facial recognition and hold the image in PSRAM.

I was thinking about this.

I'll look around to see if I can find some sample code. Without a code I'm lost. By the way, even with code...

thanks

I use a RaspberryPi as my image processor for my ESP32CAM's,

Husky Lenses does it for you:
Husky Lenses - vision AI module

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.