How can I stream video through ESP32 CAM for Raspberry Pi Obejct Detection

WIth this Code Object Identification & Animal Recognition With Raspberry Pi + OpenCV - YouTube

Hey Harold,

Looks like this isn’t beyond an ESP32, have a read!

From there you’d likely have to adapt the cv2 code to ingest a network stream instead of the webcam. From the looks of things it’s only one line!
cap.open("rtp://xxx.xxx.xxx.xxx:1234/");

-James

Please teach me how to connect them through url

Hi Harold,

Diego made a super clean project that you can view here as well:

Connecting them up to the code that Tim wrote is a bit out of my area of expertise but James’s bit of code here should allow you to move the stream into the program. Definitely take a look through that thread that James linked, it looks like they touch one exactly what you are after!

Liam.

1 Like