The question can be answered easily by doing your own research.
I use KNN to detect thermal images that distinguish between humans and animals, upon detection of a human, do somestuff.
I use TensorFlow to do image processing on a RPi.
ESP32's and Arduino BLE 32 bit thingy can do ML. An RPi does ML really well.
Please feel free to do your own research.