|
ESP32 Camera module |
x 1 |
![]() |
Screw thread maker |
|
![]() |
arduino IDEArduino
|
|
![]() |
Python |
Simple ESP32 CAM Object detection using Open CV
Object detection is a computer vision technique that involves identifying and locating objects within an image or video. It is a fundamental task in various applications, such as surveillance, autonomous driving, and image retrieval.
This time I will explain to you how to make a powerful object detection device that uses only an inexpensive ESP32 Camera module with a built-in FTDI USB to serial converter.
This means that there is no need for any soldering or connection of external components. We only need to connect the Module directly to the USB port of the PC. Basically the whole system consists of two parts
- Esp32 Camera module with arduino code installed
- and the second part is а pc software, actually Python code that uses Open CV, which is a powerful library for computer vision tasks, including identifying and localizing objects, as well as object detection. In our case are processed series of images received from the camera module.
This project is sponsored by PCBWay. They has all the services you need to create your project at the best price, whether is a scool project, or complex professional project. On PCBWay you can share your experiences, or get inspiration for your next project. They also provide completed Surface mount SMT PCB assemblY service at a best price, and ISO9001 quality control. Visit pcbway.com for more services
Now I will explain the installation method in order.
First we need to enable camera module support in the Arduino environment. For this purpose we go to Arduino IDE - File - Preferences - where we add the ESP32 URL to "Board Manager URLs" as follows:
(https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json)
Now click "Tool-->Board-->Board Manager", and search for "esp32". It is recommended to
install version 2.0.6 or newer ESP32 core. I installed the latest version.
Next, on Arduino IDE -> Tools -> ESP32 Arduino we choose: AI Thihker ESP32-Cam
With this, the procedure for entering support for the specific Camera Мodule in the Arduino IDE is completed.
Next we install the ESP32cam library from the attached .zip file.
We go to Sketch - Include Library - add ZIP library and select the given library
After this we upload the provided Arduino code. Just don't forget to enter the credentials of our Wi-Fi network beforehand in the code. Now in the Arduino Serial Monitor we check if the camera is initialized and working, and we also need to remember the IP address that was assigned to it in the local network because we will need it when starting the Python code
Next comes the installation of the Python environment section. For this purpose, we go to the Python page, download the latest version, and install it with default settings, noting that we need to mark the checkbox "add python .exe to path"
As I mentioned at the beginning, in order for Python code to work, several necessary libraries need to be installed, namely NumPy, OpenCV and cvlib libraries. For this purpose, we go to the command prompt and execute the following commands
-type: pip install numpy and press enter. After the installation is done.
-type: pip install opencv-python and press enter.
-type: pip install cvlib and press enter
Now we start the Python IDLE editor which is an integral part of the Python installation, or any other Python editor. We go to File - Open - and search for the provided Python code. Let me mention that together with the code, there are three more files that must be located in the same folder as the code. When we open the code, we need to enter the IP address from the camera that was previously given to the Arduino Serial Monitor.
We press RUN, and if we have completed the previous steps, a video from the camera appears on the screen for a few moments, on which various objects surrounded by a rectangular green frame are detected. The name of the detected object is written on the upper part of the frame.
And now let's see how it looks in real conditions. As can be seen from the examples, the system is capable of detecting objects with high precision.
In particular, this system uses a pre-trained object detection model. The file "coco.names" contains the names of the 90+ objects that the YOLOv3 model is trained to detect.
And finally a short conclusion. Object detection is having uses in almost all sorts of industries. It is used for tracking objects, people counting, automated CCTV surveillance, vehicle detection, etc. This is certainly the simplest and cheapest object detection system that can serve perfectly for the presentation of the possibilities of this technology, and for powerful object detection and identification even without using the Python Code we can use the AMB82-Mini IoT AI Camera, which will probably be the subject of analysis in one of my next videos.
Simple ESP32 CAM Object detection using Open CV

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(2)

-
Engineer Feb 19,2025
-
Matthew Beatty Sep 09,2024
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
DIY ESP32 Bioresonance Rife Machine with ZAPPER function Rife machine therapy is an alternative treatment developed by Dr. Royal Raymond Rife in the 1930s. H...
-
Arduino VFO Project with a Large LCD Display A Variable Frequency Oscillator (VFO) is an electronic oscillator whose output frequency can be adj...
-
Exploring the Tesla Coil Driver Board, Full Review & Test Results Some time ago I presented you a video in which I analyzed a super cheap Tesla Coil driver that cost...
-
Arduino Eatrthquake alarm and protection system with D7S seismic Sensor Earthquakes are extremely common events around the world. On average, there are fifty earthquakes a...
-
Review and Comparison of Three Inexpensive Metal Detector Kits A metal detector is a device used to detect the presence of metal objects in the ground or other ma...
-
How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
-
Arduino 3D Printed self Balancing Cube Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
OpenWebRX - Simplest Rasprberry Pi + RTLSDR Web SDR Radio Software-Defined Radio is a radio communication system where components that have traditionally bee...
-
Colorful Arduino Tetris Game - WS2812B LED Matrix Tutorial Tetris is a puzzle video game created in 1985 by Alexey Pajitnov. Players manipulate falling geomet...
-
Ultra cheap Ultrasonic levitation Device - functionality and testing Ultrasonic levitation is phenomenon where objects are suspended in mid-air using the power of sound ...
-
DIY -Spirit PI- ESP32 + Smartphone Sensitive Metal Detector Pulse Induction (PI) metal detector operates on a principle based on sending short pulses of electr...
-
ESP32 Analog style VU meter with GC9A01 Round Dispalys + Peak Meters A typical VU meter measures audio signals and displays them with a visual indicator. In the classic...
-
Arduino two weel self Balancing Robot Self Balancing Robot is device that can balance itself from falling to the ground. Its function is ...
-
ELECROW CrowPanel ESP32 4.2” E-paper Wi-Fi Info-Dispaly Project An e-paper display (also known as an electronic paper display or E Ink display) is a type of screen...
-
ESP32 Fluid simulation on 16x16 Led Matrix Fluid simulation is a way of replicating the movement and behavior of liquids and gases in differen...
-
Simple GU50 VTTC Tesla Coil with MOT (25+cm Spark) Vacuum Tube Tesla Coils are a common choice for homebuilders for several practical reasons. At Soli...
-
Hourglass ESP8266 Code A hourglass, also known as an sand clock, is a device used to measure the passage of time. It consi...
-
Tug of War Arduino Game on WS2812 Led strip A Tug of War is a classic team-based game where two opposing teams compete to pull a rope in opposi...
-
DIY ESP32 Bioresonance Rife Machine with ZAPPER function Rife machine therapy is an alternative treatment developed by Dr. Royal Raymond Rife in the 1930s. H...
-
Arduino VFO Project with a Large LCD Display A Variable Frequency Oscillator (VFO) is an electronic oscillator whose output frequency can be adj...
-
Exploring the Tesla Coil Driver Board, Full Review & Test Results Some time ago I presented you a video in which I analyzed a super cheap Tesla Coil driver that cost...
-
Arduino Eatrthquake alarm and protection system with D7S seismic Sensor Earthquakes are extremely common events around the world. On average, there are fifty earthquakes a...
-
Review and Comparison of Three Inexpensive Metal Detector Kits A metal detector is a device used to detect the presence of metal objects in the ground or other ma...
-
How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
-
Arduino 3D Printed self Balancing Cube Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
OpenWebRX - Simplest Rasprberry Pi + RTLSDR Web SDR Radio Software-Defined Radio is a radio communication system where components that have traditionally bee...
-
Colorful Arduino Tetris Game - WS2812B LED Matrix Tutorial Tetris is a puzzle video game created in 1985 by Alexey Pajitnov. Players manipulate falling geomet...
-
Ultra cheap Ultrasonic levitation Device - functionality and testing Ultrasonic levitation is phenomenon where objects are suspended in mid-air using the power of sound ...
-
DIY -Spirit PI- ESP32 + Smartphone Sensitive Metal Detector Pulse Induction (PI) metal detector operates on a principle based on sending short pulses of electr...
-
ESP32 Analog style VU meter with GC9A01 Round Dispalys + Peak Meters A typical VU meter measures audio signals and displays them with a visual indicator. In the classic...
-
Commodore 64 1541-II Floppy Disk Drive C64 Power Supply Unit USB-C 5V 12V DIN connector 5.25
71 0 2 -
Easy to print simple stacking organizer with drawers
33 0 0 -
-
-
-
Modifying a Hotplate to a Reflow Solder Station
1069 1 6 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
586 0 1 -
-
Nintendo 64DD Replacement Shell
471 0 2 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
1348 4 3