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;