Hi again! I would like help in how to best learn how to do the following:
I want to train a esp32 cam (that I flashed with edge impulse fw) to recognise an object. When the object is recognized I want the esp32 to make a GPIO pin HIGH and send a signal to another board that plays audio (this board can be triggered with a pulse from a microcontroller). I think I know how to train the actual model (tried before with a raspberry pi, so im comfortable with the edge impulse studio). My question is:
How and where do I write the code so that I can make the board send a digital high on a gpio output pin when the model inferes that my trained object is in the image?
I am a coding beginner, so any tips on how I can learn to do this is appreciated a lot. It is for a design school project (I am a design student, but we mostly work with traditional materials and techniques so I can not ask school teachers for help on this). I only know a little bit of basic python and micropython, so I would very much be happy if someone could explain in beginners terms how to code this so it works with the edge impulse fw and ML model.
Ok, thank you Louis! I think I understand the concept. But how do I adapt this to work on object detection using the camera? (With FOMO?)
Also: If using the edge impulse firmware for esp32, can I still use .ino files? (programming the esp32 cam with the arduino ide) Or should I use stock esp32 cam fw and connect esp32 with arduino ide? (I believe you wrote a tutorial on this earlier, but I dont know if its still relevant since you added support and custom fw for esp32 boards).
Please keep in mind, I am a beginner to most of this. I have dabbled a bit with raspberry pi and python, but I am pretty much learning from scratch here.
I just want a gpio to turn high when a detection of an object is made. Say i train my model on dogs. Whenever i see a dog i want to turn the gpio to High. I have a feeling this should be not that hard (hoping at least!)
That is very helpful! Thanks! Now I just want to know if I should use the firmware (modified to fit esp32 cam) you supply for this, or use the stock fw? I have two esp32 here, one has the modified edge impulse fw, the other is stock atm.
I can use your modified esp32 fw to gather data from the actual camera, which is super helpful, so thanks for that!
When you will flash your ESP32-Cam with the Arduino sketch, it will erase the official EI firmware.
So if you have two boards, keep one to send the data and the other to test your end project.
Once you will be comfortable with building Arduino/ESP programs, you can also write a piece of code or a function to upload the pictures to your project using Edge Impulse API (or to a cloud bucket and then retrieve those data in your project using the data pipelines).