Meeeeen , i don’t know how many time say to thank you soo muuucchh. I am beginner for computer vision in Python. In this tutorial you teach me too much think. I am very very happy because i have some project idea in my mind.
Hi Sergio, thanks for sharing in depth knowledge. I have been following your videos since long time. Can you please let me know how can we blur this object in such way that its not clearly visible after detecting in video?
Hi , Thanks for such lucid explanation . I have a question , if we can find a center(centroid) using Moments in an image , how can we calculate the end points (width and height) in the direction of the centroid WITHOUT using minboundRect
hi i have a problem in cv2.drawContours(frame, contours, -1, (0, 255, 0), 3) problem: error: (-215:Assertion failed) npoints > 0 in function 'drawContours' Can someone help me
_ , cnts , _ = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE) ValueError: not enough values to unpack (expected 3, got 2) please help me to solve this error
it is more efficient to take the perimeter than the area. code: for contour in contours: perimeter = contour.shape[0] # We get the perimeter of each contour if perimeter > 100: cv2.drawContours(frame, contour, -1, (0,255,0), 3)
hello sir while i try to generate a controur i get this error "_, contours, _ = cv2.findContours(red_mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) ValueError: not enough values to unpack (expected 3, got 2)" can you help me please ?
you need to change the in the line where there is: _, contours, _ = ... with: contours, _ = ... as with newste version of Opencv 4.x it extracts only two values instead of three.
Does anyone how to apply a trained classifier to detected objects with active contour? Like a applying a classifier to detect the color of detected object.
Hi Diego, still it's not possible to determinate direction of the object from just this source code. Be aware that we're only working frame by frame, with images, there is no connection between them. what you asked it's a bit more advanced, please wait a bit and I'm going to do a video about that as well.
🔥Learn how to build your own AI vision solutions: pysource.com/community
Meeeeen , i don’t know how many time say to thank you soo muuucchh. I am beginner for computer vision in Python. In this tutorial you teach me too much think. I am very very happy because i have some project idea in my mind.
Excellent brother, this is so useful and fascinating. Greetings from Mexico.
Lots of love from India ..your channel made things much easier for me..please add some more advance projects on open CV
Thanks for this video.i just started learning open cv , and this is helping a lot to understand how it works .
Good video!!, I learned a lot of knowledge about Contour detect.
Thank you man! your so helpful! hope your channel continue to grow! subscribed and liked!
thank you.. ive tried it at opencv2 and python2.7 and it works too
Firstly I totally confused about contour but sir you really helped me so thanku sir
awesome one bro looking for the tutorial for box shaped detection which you talked at last :) (Nice Work)
You really helped me, I learned a lot,
thank you.
Sir,can you help me on how to get the centre coordinate of the contour
Hi Sergio, thanks for sharing in depth knowledge. I have been following your videos since long time. Can you please let me know how can we blur this object in such way that its not clearly visible after detecting in video?
Hi How to identify the lower and upper value for specific color... is there any logic
Hi , Thanks for such lucid explanation . I have a question , if we can find a center(centroid) using Moments in an image , how can we calculate the end points (width and height) in the direction of the centroid WITHOUT using minboundRect
Great video, I have a question, is there a way to count how many objects are a in the video ?
Thank you, This video helped me so much for my project.
hi i have a problem in cv2.drawContours(frame, contours, -1, (0, 255, 0), 3)
problem: error: (-215:Assertion failed) npoints > 0 in function 'drawContours'
Can someone help me
hey i think because somewhere along your code you convert contours into a single number when it should be in array of x and y points
_ , cnts , _ = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)
please help me to solve this error
Could you find that error's solution?
by doing this it should work
contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
@@bassambenidir1729 Thanks brother.
Thank you very much ! Simple and clear 😁
Is there an easy way to compare shapes with matchShapes() but scale variant? To distinguish between objects with the same shape but different size.
12:00 draw contour's if-statement if area is larger or smaller a certain value. (self-note)
Great explanation, great video, thanks a lot !
great video!😁😁😁
good video! thanks. I got a question, how did you calculate the upper and lower blue values, because you said it just worked for you? thank you again.
Hi Matheo, I have another video tutorial where I explain that.
Look on my channel for "HSV colorspaces"
@@pysource-com ok thank you!
Dear, I have one question. Please tell me about the way to set lower and Upper value.
it is more efficient to take the perimeter than the area.
code:
for contour in contours:
perimeter = contour.shape[0] # We get the perimeter of each contour
if perimeter > 100:
cv2.drawContours(frame, contour, -1, (0,255,0), 3)
Thank you so much for this practical video
why this error
TypeError: Expected Ptr for argument 'contours'
how i solve it ?
I want to find the following features -(area, centroid, orientation)of an object using open cv . Please help
Could you elaborate on what are lower and upper blue?
hello sir while i try to generate a controur i get this error "_, contours, _ = cv2.findContours(red_mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)" can you help me please ?
use contours, hierarchy instead of _,contours,_
Very helpful, Thank you very much!
Thanks, this was super helpful but why use HSV? I had trouble making my contours work using HSV but no trouble just using RGB
Great work!
I followed exactly this video, and I got an error:
not enough values to unpack (expected 3, got 2), can you help?
you need to change the in the line where there is:
_, contours, _ = ...
with:
contours, _ = ...
as with newste version of Opencv 4.x it extracts only two values instead of three.
Great video! How can I localize contours for only rectangular shaped objects (license plate)?
check one of my latest video is about shape detection, you'll find the answer you're looking for.
hi can you do a video about noise reduction and its technniches.
Does anyone how to apply a trained classifier to detected objects with active contour? Like a applying a classifier to detect the color of detected object.
great tutorial, thank you.
ı want a draw rectangle of detected object how can ı
your video is great, thank you so much ...
many thanks i'ts perfect for my project
Tks again for the class...
great work. Could u make a tutorial on how to find the tail length of vehicles in a video? really been struggling with this problem
*length from a starting point
I might do that in the future, but still I have a lot of other material to release before that :)
why cv2.findcontours is not working for me
man Im stressing now
it's cv2.findContours()
dude you're awesome
Hello! Good tutorial! How can I track X and Y in order to determinate the direction?
Hi Diego,
still it's not possible to determinate direction of the object from just this source code.
Be aware that we're only working frame by frame, with images, there is no connection between them.
what you asked it's a bit more advanced, please wait a bit and I'm going to do a video about that as well.
this video really helped
this is really great video thank you, make more videos
Thank you! Nice video.
i want to know the position of that object.......any video.....
je suis le 3700 abonnement.. You should have more :)
Thank you
awesome
How I can do this with images instead of video?
I need to get the countors of an image and then get all the points of the countors
BTW excellent video
the same way
Thank you.
you are awesome
hank you soooo much
2023 update:
you should change it to:
contours,hierachy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
Thanks
How can I do this on Android ?
unfortunately I can't help you as I'm not familiar with Opencv for android.
you can check docs here opencv.org/platforms/android/
tysm
So fucking cool brah
I love you
zero dislikes lol
thank you