Object tracking with Mean-shift - OpenCV 3.4 with python 3 Tutorial 29

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 เม.ย. 2018
  • source code: pysource.com/2018/04/05/object...
    ➤ Full Videocourses:
    Object Detection: pysource.com/object-detection...
    ➤ Follow me on:
    Instagram: / pysource7
    LinkedIn: / pysource
    ➤ For business inquiries:
    pysource.com/contact

ความคิดเห็น • 42

  • @OLebongiler
    @OLebongiler 4 ปีที่แล้ว +1

    One of the best tutorial for me. With this way, we can detect and recognize objects quickly and without internet connection on the raspberry pi. Thanks a lot!!!

  • @qzorn4440
    @qzorn4440 5 ปีที่แล้ว +2

    some of the best opencv videos I have watched. Thanks. :-l

  • @renatasechi8283
    @renatasechi8283 6 ปีที่แล้ว

    Thank you, you saved my project!

  • @umamaheswarpgdds6160
    @umamaheswarpgdds6160 6 ปีที่แล้ว +2

    excellent video and nice explanation

  • @salarghaffarian4914
    @salarghaffarian4914 4 ปีที่แล้ว +3

    One of the best Tutorials that I have ever seen. Thank you so much for recording and sharing this video!

  • @victorienspa
    @victorienspa 6 ปีที่แล้ว

    Nice video, thank you !

  • @prashantmehta2832
    @prashantmehta2832 4 ปีที่แล้ว

    Thank you so much sir.. great informative video...

  • @satyamchauhan9775
    @satyamchauhan9775 3 ปีที่แล้ว +1

    one of the best tutorials for open cv i have found on youtube thanks a lot for the videos

  • @deddyni7571
    @deddyni7571 2 ปีที่แล้ว

    Thank you for the great tutorial and great explanations of the object detection process. Btw the link to your source code is down, so I could not put it into practice. I would really like to give it a try on this cool tutorial.

  • @sebastianochoa7780
    @sebastianochoa7780 4 ปีที่แล้ว

    I want to track bubbles ascending in a tube and save the data automatically, can it do that for several bubbles? I want their position, velocity and acceleration. It'd be nice if it could measure changes in diameter.

  • @imy7589
    @imy7589 ปีที่แล้ว

    interesting👍

  • @huuthieuo6110
    @huuthieuo6110 5 ปีที่แล้ว

    Can algorithm detect when have no object in picture? It also draw any rectangle.

  • @markopopoland
    @markopopoland 5 ปีที่แล้ว

    Cześć pomożesz mi z zastosowaniem OpenCV do zmiany TCP robota przy pobieraniu detalu ?

  • @aakashnandrajog7035
    @aakashnandrajog7035 5 ปีที่แล้ว

    Subscribed (Y)

  • @satyamchauhan9775
    @satyamchauhan9775 3 ปีที่แล้ว

    can someone explain me please why we are getting hue value greater than 360

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc 2 ปีที่แล้ว

    Hi Sir, I want to count products moving on 1 conveyor by the camera. You can help me? and maybe the Guide to do this project?

    • @pysource-com
      @pysource-com  2 ปีที่แล้ว +1

      Hi, this is something I teach on my course Object Detection (with Opencv and Deep Learning) and I actually have a built in project as well that does that.
      you can find it on pysource.com

    • @Huynh-Tan-Quoc
      @Huynh-Tan-Quoc 2 ปีที่แล้ว

      @@pysource-com thanks so much

  • @filippovannella4957
    @filippovannella4957 5 ปีที่แล้ว

    is this algorithm color-based? If there are similar colors in the scene, does it fail?

    • @pysource-com
      @pysource-com  5 ปีที่แล้ว +1

      Yes, it might fail if there is a similar color to the objects color

    • @filippovannella4957
      @filippovannella4957 5 ปีที่แล้ว

      Thanks for the reply. Do you have any experience with KCF tracker? Is it a better option for scenes in which the object to track is similar to the background color?

    • @satyamchauhan9775
      @satyamchauhan9775 3 ปีที่แล้ว

      yes it can fail

  • @kisamesafe
    @kisamesafe 3 ปีที่แล้ว

    where is the moutwash video ?

  • @jiahuawang3235
    @jiahuawang3235 5 ปีที่แล้ว

    Incredile

  • @govindkatyura7485
    @govindkatyura7485 4 ปีที่แล้ว

    Can you please tell me why hsv only ?? And why not bgr

    • @satyamchauhan9775
      @satyamchauhan9775 3 ปีที่แล้ว

      because hist give us hsv values of the image

  • @Wanderlust1342
    @Wanderlust1342 6 ปีที่แล้ว

    how did you find the position of sticker 3:49

    • @pysource-com
      @pysource-com  6 ปีที่แล้ว +1

      Hi, I found that manually bty tryal and error, designing a square on the first frame until I got the sticker right.
      There are for sure better ways to do that, I just didn't want to take much time for that as I wanted the tutorial to be focused only on the meanshift.
      You could use mouse events to select the area you want to track.
      Take a look a this video th-cam.com/video/H_068uiMR9M/w-d-xo.html

    • @ChristianHaschek
      @ChristianHaschek 5 ปีที่แล้ว

      the easiest way to do it would be to hover your mouse over the video since cv2 shows you the location of your mouse cursor in the left bottom corner

    • @neilsumanth8013
      @neilsumanth8013 5 ปีที่แล้ว

      @@ChristianHaschek How to get the cursor location in cv?

    • @ChristianHaschek
      @ChristianHaschek 5 ปีที่แล้ว

      @@neilsumanth8013 If you already see the image in cv you can just hover the mouse and in the bottom left corner you see the corrdinates of the mouse

    • @neilsumanth8013
      @neilsumanth8013 5 ปีที่แล้ว

      @@ChristianHaschekThankx Haschek..But .. Iam using atom as my IDE and running code in cmd, at which left corner we get that axis ?

  • @ssaniljainn
    @ssaniljainn 3 ปีที่แล้ว

    I am facing a bit of a problem here. I tried the mask, but instead of focussing on the object to be white, it is instead putting it in black and rest in white due to which my tracker was not working correctly. Would be glad if u could help me! Also, great video man!

    • @pysource-com
      @pysource-com  3 ปีที่แล้ว

      You can use bitwise operators to make the inverse of the mask. Look for my video where I talk about bitwise operators and you'll get there the solution for your mask

    • @ssaniljainn
      @ssaniljainn 3 ปีที่แล้ว

      @@pysource-com got it, just gonna have to make an attempt! Thanks 🤘🤘

    • @ssaniljainn
      @ssaniljainn 3 ปีที่แล้ว

      hey, I just tried the bitwise_not function of open cv2, and apparently the conversion worked in a similar way as in your other video. But, it still did not work with respect to tracking. Any clue why?

    • @ssaniljainn
      @ssaniljainn 3 ปีที่แล้ว

      actually, on your video it's working fine, but on a custom object detection it is not.

  • @syedubaid4116
    @syedubaid4116 5 ปีที่แล้ว

    hello!
    i get this problem when running the tracking code "Process finished with exit code -1
    ",
    can anyone please explain?
    can it be an issue of graphics card or some hardware? i am using thinkpad T420 laptop with intel HD graphics 3000

  • @pupan555
    @pupan555 5 ปีที่แล้ว

    ---------------------------------------------------------------------------
    ValueError Traceback (most recent call last)
    in ()
    13 mask = cv2.inRange(hsv, lower_blue, upper_blue)
    14
    ---> 15 _, contours, _ = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
    16
    17 for contour in contours:
    ValueError: need more than 2 values to unpack