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

preview_player
Показать описание
0$ PCB + 0$ Shipping fee

Register and get $100 from NextPCB:

PCB Assembly capabilities info:

𝗣𝗿𝗼𝗷𝗲𝗰𝘁 𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻:
In this tutorial, we will design an Industrial Product Counter using ESP32 CAM Module & OpenCV. The detection is done through the python code at the server, i.e. our computer, using the OpenCV library. The objects are detected using the basic principle of comparing the color of the background with respect to the object’s color. For e.g, 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 the ESP32-CAM module, which is a small camera module with the ESP32-S chip that costs approximately $10. Besides the OV2640 camera and several GPIOs to connect peripherals, it also features a microSD card slot that can be useful to store images taken with the camera.

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 Libraries required. Later we will go through the python code that we will be using for Industrial Product Counter with ESP32 CAM & OpenCV. This is an essential tutorial as you will be able to use any sort of Image processing or Machine Learning on the live video without having to write it on Arduino IDE.

....................................................................................................................................................................................................................................

Drop a like if you liked this video.
Don't forget to subscribe to our channel for more Electronics projects and tutorials.

Рекомендации по теме
Комментарии
Автор

Your channel is really cool! I'm learning a lot from your examples!

luizrocha
Автор

Please do a video how to detect objects using ESP 32 cam module in previous vedio cvlib library not working

sltechgalaxy
Автор

I wanted to make project for my collage where I will count the madicine strep and make with my master image file and pass or fail to capture image . When when I place the strep under camera it will automatically capture image and match with master image and pass or fail the strep.
Please help me to build this project.

🙏

automationhome
Автор

Is the SD Card obligatory? There is no image on the live transmission for me, can you help me please?

ainanirina
Автор

Informative, useful. Thank you.


Also you have a lovely voice. Can I suggest you make more emphasis on the "P" sound when using English.
i.e. "Pee-Cee-Bee", as opposed to "peh-Cee-Bee". I had to rewind a couple of times before I understood what you were referring to. Also, I'd just love to hear you say, "Pee". ;o)

thedad
Автор

Can this be used to sort numbers? say 131 goes there and 238 goes here?

rippingandflippingcards
Автор

Thanks for your wonderful video. I have question, how can i using webcam on my laptop to count object?

doanphuoctrieu
Автор

Thank you for your tutorial . It was really useful.👏

dtzqoiz
Автор

Thank you for as always interesting project, i learn so much from you .... i will try to make a similar project to have more practice
Thx xx

zorabixun
Автор

can use this to count the people occupancy

royal..rajput
Автор

Is it possible to count the circle holes in metal surface round 20-70

sovishnuchringthv
Автор

Hello, hope to get response. Is it possible to use an esp32 microcontroller insteda of ftdi programmer?

tourushi
Автор

is OV2640 CAMERA module and 8225nV2.0 camera module are same or different

haneeshbabu
Автор

Code doesnot work at multiple definitions of WIFI.h... need help!!!

meshmabagale
Автор

facing error: camera_sensor_info_t* info = was not declared in this scope

yash_strings
Автор

Hi sister, I liked ur projects. Can u please make a project on SPECIFIC TARGET FOLLOWING ROBOT WITH ESP32CAM USING FACE RECOGNITION

rameshr
Автор

Thank you for this video. I have 1 question can we program esp32 cam for gesture recognition and use without computer

laxmikantbhale
Автор

Is there any way to make recognition on the esp32 itself?

THEbonny
Автор

help please I have this problem and I can not solve http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

HTTPError: Not Found

oneydao.m.
Автор

Hello!
I replicated the camera and python project! I tried to count the coins or circles and I couldn't! There is some adjustment in:

while True:

imgnp=np.array(bytearray(img_resp.read()), dtype=np.uint8)
img=cv2.imdecode(imgnp, -1)

gray=cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
canny=cv2.Canny(cv2.GaussianBlur(gray, (11, 11), 0), 30, 150, 3)
dilated=cv2.dilate(canny, (1, 1), iterations=2)
(Cnt, _)=cv2.findContours(dilated.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
k=img
cv2.drawContours(k, cnt, -1, (0, 255, 0), 2)

cv2.imshow("mit contour", canny)



cv2.imshow("live transmission", img)
key=cv2.waitKey(5)

if key==ord('q'):
break

elif key==ord('a'):
cow=len(cnt)
print(cow)


This is the code I'm running...

luizrocha
join shbcf.ru