Optical Flow with Lucas-Kanade method - OpenCV 3.4 with python 3 Tutorial 31
Вставка
- Опубліковано 11 вер 2024
- source code: pysource.com/20...
Get my Object Detection Course: pysource.com/o...
➤ Full Videocourses:
Object Detection: pysource.com/o...
➤ Follow me on:
Instagram: / pysource7
LinkedIn: / pysource
➤ For business inquiries:
pysource.com/c...
Thanks brother, you tutorials are much better than udemy tutorial i bought
Amazing, it works pretty well!! This was my first dip into Optical flow and I love it... so many applications seem possible. Thank you
Thanks sir, awesome tutorials
The first time calcOpticalFlowPyrLK is calculating, the old_gray and gray_frame are not consecutive. This is why you see the green point not exactly where you clicked.
Wow... That's very well explained. Thanks man.
Nice lecturing, I do like it. Thanks
Thanks for all great tutorials, how can i do if i want to chose many points.
Thanks for this video, really helpful!
Thank you for this awesome tutorial!
amazing video ,learnt a lot .
Thank you for the kind lecture.
Thanks for such a useful video.
You explained so well. Thanks a lot for the video. Can you please tell how can I implement Lucas-Kanade for affine and projective transformation?
Great content man
Thanks, this help me a lot...! 👍😃
Hi, great video, keep it up
How can I track multiple points that I place using mouse ?
Awesome! I’m gonna try this out for sure. Is this algorithm restricted to tracking points or can it be extended to ROI’s? I wonder if passing in masks will help the performance
yes definitely you can extended to ROIs! you should use the corner detection to identify the points and then Lucas kanade track the vectors.
i have a problem with my old points, can you help me?
Awesome
Do you know any methods for detecting flow of a liquid
Any help please ?
Traceback (most recent call last):
File "C:\Users\ppant\Downloads\New folder (8)\lucas-kande.py", line 44, in
cv2.circle(frame, (x, y), 5, (0, 255, 0), -1)
cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'circle'
> Overload resolution failed:
> - Can't parse 'center'. Sequence item with index 0 has a wrong type
> - Can't parse 'center'. Sequence item with index 0 has a wrong type
Hey, you can replace cv2.circle... with cv2.circle(frame,(int(x),int(y)),5,(255,255,0),-1). With Int it works
Hi! Could it be the shutter speed why the detection of new points isn't so good? A webcam has a slow shutter speed, so motion blur might become a problem when analyzing fast moving objects.
HI Marius, thanks for this interesting explanation. It's really likely that it affects the detection, considering I'm using the original webcam of my laptop, and so it's not that good.
Some advice for doing a program that detects risky situations?
I would suggest using an AI network to identify and know what risky situations are. Then you could use Optical Flow to read the movements in the environment. From there the AI would process and identify if the situation is risky.
HI! I am a taiwanese student , my english is not so well, but i want to ask a question ,how could i track two points at the same time , I try it myself, but it didnt work ,can you tell me some tips?
You should make a few changes, probably it's easier to write it from scratch if you want make it work for 2 ore more points.
I suggest you to take a look at the original docs and experiment with them. opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_video/py_lucas_kanade/py_lucas_kanade.html#lucas-kanade
thank you very much! I will read that web page! By the way ,Can I add your facebook or instagram? I am using opencv to do a little project I think i will have some question that I can contact you easier, if you can accept
at 17:57 line 41 I had an error due to x,y being float
Hey, you can replace cv2.circle... with cv2.circle(frame,(int(x),int(y)),5,(255,255,0),-1). With Int it works
hey Pysource,I have working on face detection project in my company. can you help me by make video on how to trace human face please.!!
Now Next Project: Use NLP to remove those annoying barks from this video
How to automatically select the object based on movement
I can send you some code that might be able to help you
Yes it will can you send me the code?
Yes it will can you send me the code?
@@adithyasurs9044 what's your email
@@lamborghinicentenario2497 adithya.s.urs@gmail.com
amazing video ,learnt a lot .