Esp32 CAM TRIGGER A OUTPUT/SAVE PICTURE by Face recognition

I have installed a esp32 cam using youtube tutorial and works ok, but I have not fond any information how to trig a digital pin after face recognition or save a picture after check te face.
someone knows how to use the camera but beyond a web server since that is what all cameras do, most of the tutotial on youtube are very similar they always repeat the same.
It is a huge tools if it is possible to trigger a digital output if someting is detected by the camera.
If some could help me I will apreciate a lot......best regards CARLOS

yes you can

follow this tutorial here

find the cpp file called 'app_httpd.cpp'

edit the part that says

if (matched_id >= 0) {
                Serial.printf("Match Face ID: %u\n", matched_id);
                rgb_printf(image_matrix, FACE_COLOR_GREEN, "Hello Subject %u", matched_id);
            } 

else {
                Serial.println("No Match Found");
                rgb_print(image_matrix, FACE_COLOR_RED, "Intruder Alert!");
                matched_id = -1;
}

you can plug in your digitalWrite() in those statement blocks

:slight_smile: Thanks a lot CARLOS