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...

КОМЕНТАРІ • 44

  • @akshobshekhar736
    @akshobshekhar736 5 років тому +3

    Thanks brother, you tutorials are much better than udemy tutorial i bought

  • @hannahlambdaa
    @hannahlambdaa 4 роки тому +1

    Amazing, it works pretty well!! This was my first dip into Optical flow and I love it... so many applications seem possible. Thank you

  • @ekasuryadana3043
    @ekasuryadana3043 5 років тому +2

    Thanks sir, awesome tutorials

  • @aman11022
    @aman11022 4 роки тому

    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.

  • @noeltam75
    @noeltam75 4 роки тому

    Wow... That's very well explained. Thanks man.

  • @jiuyuanlu4731
    @jiuyuanlu4731 5 років тому

    Nice lecturing, I do like it. Thanks

  • @mamoudousano3354
    @mamoudousano3354 5 років тому +2

    Thanks for all great tutorials, how can i do if i want to chose many points.

  • @MrWaimanu
    @MrWaimanu 4 роки тому

    Thanks for this video, really helpful!

  • @olehmisko9760
    @olehmisko9760 5 років тому

    Thank you for this awesome tutorial!

  • @Joy_jester
    @Joy_jester 5 років тому

    amazing video ,learnt a lot .

  • @asteroidpark
    @asteroidpark 4 роки тому

    Thank you for the kind lecture.

  • @LEI8037
    @LEI8037 5 років тому

    Thanks for such a useful video.

  • @ShivaniAMehta
    @ShivaniAMehta 2 роки тому

    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?

  • @aaaa8766
    @aaaa8766 4 роки тому

    Great content man

  • @miguelchip9784
    @miguelchip9784 5 років тому

    Thanks, this help me a lot...! 👍😃

  • @dtom989
    @dtom989 6 років тому

    Hi, great video, keep it up

  • @kmashal2
    @kmashal2 3 роки тому

    How can I track multiple points that I place using mouse ?

  • @ass8ash
    @ass8ash 6 років тому

    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

    • @pysource-com
      @pysource-com  6 років тому +1

      yes definitely you can extended to ROIs! you should use the corner detection to identify the points and then Lucas kanade track the vectors.

  • @nyomankresna557
    @nyomankresna557 3 роки тому

    i have a problem with my old points, can you help me?

  • @aminbenarieb144
    @aminbenarieb144 4 роки тому

    Awesome

  • @hikmetcankoseoglu5439
    @hikmetcankoseoglu5439 5 років тому

    Do you know any methods for detecting flow of a liquid

  • @rocktelis111
    @rocktelis111 2 роки тому

    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

    • @Huhuhuhuhuui
      @Huhuhuhuhuui Рік тому

      Hey, you can replace cv2.circle... with cv2.circle(frame,(int(x),int(y)),5,(255,255,0),-1). With Int it works

  • @mariuspenteliuc
    @mariuspenteliuc 6 років тому

    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.

    • @pysource-com
      @pysource-com  6 років тому

      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.

  • @1miguelavilagaleana
    @1miguelavilagaleana 5 років тому

    Some advice for doing a program that detects risky situations?

    • @PhrAntoine
      @PhrAntoine 3 роки тому

      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.

  • @user-pc4tr5jv7w
    @user-pc4tr5jv7w 6 років тому

    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?

    • @pysource-com
      @pysource-com  6 років тому +2

      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

    • @user-pc4tr5jv7w
      @user-pc4tr5jv7w 6 років тому

      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

  • @ammarbinmadi7175
    @ammarbinmadi7175 Рік тому

    at 17:57 line 41 I had an error due to x,y being float

    • @Huhuhuhuhuui
      @Huhuhuhuhuui Рік тому

      Hey, you can replace cv2.circle... with cv2.circle(frame,(int(x),int(y)),5,(255,255,0),-1). With Int it works

  • @sujitpatil1230
    @sujitpatil1230 6 років тому

    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.!!

  • @bimalgupta3648
    @bimalgupta3648 3 роки тому

    Now Next Project: Use NLP to remove those annoying barks from this video

  • @adithyasurs9044
    @adithyasurs9044 4 роки тому

    How to automatically select the object based on movement

  • @Joy_jester
    @Joy_jester 5 років тому

    amazing video ,learnt a lot .