Counting Coins from Image using Python | Tutorial | Computer Vision Project

preview_player
Показать описание
computer vision tutorials
This video will show how you can count objects in an image using Python and OpenCV.

Interested in Computer Vision ? Subscribe to my channel for Tutorials, Projects & Tips

💸🕯 Support the channel 🕯💸

⭐️ Links ⭐️

Code:

Image was taken from Intel's website

- - - -

P.S: If you want to get contours of each separate object, then you can use another image where objects are separated.

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

Don't forget to SUBSCRIBE !!

Image download link:

ComputerVisionPro
Автор

What a great Tutorial! Helped me a lot to finish a quick test that i needed, never used neither these technologies! Was just a bit confused at whick platform you've used, but i could figure it out! Ty!

wallynm
Автор

Good tutorial man! This is easy to follow and nice for beginners!

codintuna
Автор

wow thanks so much, I tried many tutorials for doing this and yours explained it the best.

ultraplayer
Автор

Thanks for the tutorial. It is helpful. But I lost my sense of balance at the 11x11 blur kernel 😂

rishisharma
Автор

Hi, Thank you! How to count the number of coins when its arranged like a stack(Vertically)?

suganthiganesh
Автор

shortly well explained. If you can put the combined code it will be more easier to copy and paste.lol

ijazahamed
Автор

Can it read a tray full of pencils (white color pencil but contour is visible (roughly as the color is white), 4000+ pencils)?

mdnaimulislamtanvir
Автор

Hello! Nice video, the code is very well written.

igordebastiani
Автор

how can you find the coordinate of the center for each coin, and print the results as (x, y) table????

Edit: (4hrs later), I found the solution:

for i in cnt:
M = cv2.moments(i)
if M['m00'] != 0:
cx = int(M['m10']/M['m00'])
cy = int(M['m01']/M['m00'])
print(f"x: {cx} y: {cy}")

Thank me later!

__Abu_Ali__
Автор

hi, can i use this method to count irregular shapes? such as drone image of forest trees?

akunbaruini
Автор

Sir,
I am getting "too many values to unpack error" in the line 18. that (cnt, heirarchy line )
please help me to resolve this

ashokkumarbhishma
Автор

Hi, thank you, great video. Could you please explain what the last 3 lines do?(apart from the print statement). I commented them out and the code still worked, counting 24 coins. Thanks again

rosslambert
Автор

Omg i thought it would be incorrect but its correct wow.... Plz send image

arnavmehta
Автор

when i want make boundary the result become black image, i dont know why ?

أقدمفيدوهاتشيقةورائعة
Автор

Thank you very much for explanation!
Only one advice.
Please have eaten your breakfast before preparing your class. Hardly one can hear your voice.

bbnn
welcome to shbcf.ru