A French user (@philippe86220 ) posted this "Person detection via webcam" sample code
Project objective:
-> Person detection via webcam (Video Object Detection)
-> Turn on the LED for 10 seconds after each detection
-> Python ↔ STM32 interaction via Bridge.
Writing this in C++ on a simple arduino (without access to the python bricks and power of the linux side) would be quite a task compared to the few lines of codes required there (56 lines of python and 30 lines of "arduino" C++ - with spaces and comments).
I'm sure you can get a good translation from any AI or see the simplicity of the code in the GitHub repository.