DIY Automatic Object Counting System using ESP32 Camera Module & OpenCV | Industrial Product Counter

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone i am abriti from how to electronics in some random advertisement you might have seen the recent app which counts the object just using the phone camera the app looks interesting and attempts to count the detected object of the same kind in today's video we are going to do the same thing we will design an industrial product counter using esp32 cap module and opencv the detection is done through the python code at the server and this server here means our computer so for this we will use some opencv libraries the objects are directed using the basic principle of comparing the color of the background with respect to the object's color for example if the background is white and the object is also white then it won't be detecting any object but if the background is white and the object is of different color then surely it detects the object here we have used esp32 cam module which is a small camera module with esp32s chip that cost approximately 10 dollar in this tutorial we will go through its features pins description and the method to program this device using ftdi module apart from this we will also install python and its required libraries later we go through the python code for industrial product counter with esp32 cam this is an essential tutorial as you will be able to use any sort of image processing or machine learning on live video without having to write it on arduino ide so without getting any delayed let's get started the pcv board used in this project is a sponsored by next pacific next visibility offers totally free pcv prototypes which means you can get 10 pcvs of 1 to 4 years without any cost there is no pcb cost or shipping fee you can upload the gerber file directly and fill in the pcb details like quantity color and thickness then select your country for statement and place an order it's totally for free and there is an exciting offer for new registers as you can get hundred dollar coupon if you sign up using the link in the description welcome back again this is an esp32 best camera module developed by ai thinker the controller is based on 32-bit cpu and has a combined wi-fi plus bluetooth or ble chip this has the ov2640 camera module for photography and video streaming the both supports an sd card of up to 4gb and this sd card stores capture images and videos for image processing application let's move to the project part now this project uses a code from an esp32 camp library created by your sunny this library supports esp32 camp at ov2640 camera you can download the g file and add it to the arduino ide using library manager now open your arduino ide and from examples open a file called wi-fi cam in this example you just need to change the wi-fi ssid and password the code is the same as for the previous project and to upload this code select the esp32 ruler module from board list also select the com port then click on upload button to upload the code open the serial monitor once code uploading is done then remove the shortening jumper and press the reset button if everything is fine then you will see the camera okay messages on serial monitor and the local ip address of the camera will also be printed now go to your web browser and download the python led test version python is required here because the machine learning and image processing part is done by python libraries after the python gets downloaded complete the installation process now we need to install two python libraries on our operating system that is numpy and opencv libraries follow the website article of how to electronics to install the required python libraries copy the following code and paste it on any python editor copy the ip address from serial monitor of arduino ide and replace this ip address in the python editor code let me explain how this entire system works to detect the object the python code uses a step-by-step method of image or frame conversion at first it tries to convert the rcv image to grayscale such that the difference in magnitude of color is greatly visible and mathematical operations can be performed easily after that to plane in the color we blur the image now the kanyes detection takes place where it easily detects the aces to properly join the is detected we dilute the image and in the end we retrieve the number of closed figures now go to run and then click on run module option once you hit run for the first time it will install a few files if they are not existed once we have done that we can see two windows named live transmission and mit contour is visible in this video i have tried to count playing cards the counted object is displayed on python monitor and here i used six playing cards and placed them in front of esp32 camp you can see here the monitor displayed six cards in another test i have counted coins and here again i have counted paint leads so every time i am able to detect all the objects successfully with the correct counting this is how you can design your own industrial product counter using esp32 camp and opencv all the information related to this project including the source code can be found in the how to electronics article if there is anything that you would like to ask comment down in the comment section below thank you so much for watching see you in the next video
Info
Channel: How To Electronics
Views: 32,972
Rating: undefined out of 5
Keywords: diy object counter, arduino object counter, arduino object counter project, ESP32 CAM, esp32 cam python, ESP32 CAM Object, esp32 cam object detection, esp32 cam object recognition, esp32 cam object tracking, ESP32 CAM Product Counter, Automatic Object Counting System, DIY object Counting, Python Object Counter, Object Counting OpenCV
Id: 9fER61M3yFo
Channel Id: undefined
Length: 6min 10sec (370 seconds)
Published: Sun Nov 28 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.