Object Distance Tracking with Python and OpenCV

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ค. 2020
  • Who needs an expensive lidar to detect object distance from the camera? we got Webcams for that now. The demo shows how the object was detected and its distance was identified easily with a script.
    Github repo link : github.com/TareDevarsh/distan...
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    you helped my project bro thanks

  • @faisal3460
    @faisal3460 2 หลายเดือนก่อน

    i can use this without the object? i want it in the centre

  • @darshikagupta299
    @darshikagupta299 20 วันที่ผ่านมา

    will it find the distance of the object which is approx 20 metre far?

  • @adarshraj3208
    @adarshraj3208 15 วันที่ผ่านมา

    Can I calculate the live speed with it?

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

    I am currently doing a project for university and I am not able to understand how is it measuring the distance I watched some of the other videos but in many of them it requires the actual height of the object can you please help me!!!!!!

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

      Hey bro, if you see my repo for GitHub, even I have used the width of the object which is basically the same think. One thing I can suggest is use two cameras at a definite distance from each other and calculate the relative displacement of the object from both the angles, maybe you can try and triangulate the distance.Probably this can help you with something www.sciencedirect.com/science/article/pii/S2590005620300011

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

    I could not really understand the way you ve measured with just one camera. Did you give the specific sizes of the object to calculate the distance. Which means you can not calculate the distance of another object without inputing the sizes?

    • @demakes6115
      @demakes6115  11 หลายเดือนก่อน

      You can calculate without having to input sizes. You will need two cameras for that process. This was used to determine with a prespecified size. For eg with industrial applications you can identify what that object is then calculate its distance based on the pixels

  • @user-xo2iu8ne3j
    @user-xo2iu8ne3j 2 ปีที่แล้ว +1

    How do I change the designated color?

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

      also trying to figure this out, can't seem to figure out how the get_color.py function correlates to the main python file

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

    i have a beacon and i want to detect it and find the distance

  • @tuvelout
    @tuvelout 11 หลายเดือนก่อน

    Well if it is possible it means I can do it

  • @user-jv9hw7cq5k
    @user-jv9hw7cq5k 5 หลายเดือนก่อน

    Hello :-) Thank you for sharing this interesting video.
    I am having the following error though when running dist_measure
    _,cont,hei = cv2.findContours(d_img,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)
    ValueError: not enough values to unpack (expected 3, got 2)

    • @flaviusblanariu1861
      @flaviusblanariu1861 4 หลายเดือนก่อน

      It seems like you are using OpenCV version 4.x, where the cv2.findContours function returns only two values: contours and hierarchy. In OpenCV version 3.x, it used to return three values: image, contours, and hierarchy. Just delete the "_," before "cont,hei.." in code.

    • @user-jv9hw7cq5k
      @user-jv9hw7cq5k 4 หลายเดือนก่อน

      I'll try. Thank you very much @@flaviusblanariu1861

    • @abiralhossain
      @abiralhossain หลายเดือนก่อน

      I done this.But there is nothing detecting.

    • @abiralhossain
      @abiralhossain หลายเดือนก่อน

      Camara is opened but not detecting any thing

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

    code not running

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

      Bro can u plz share the code

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

      @@luvkushr6627 all done with diff code

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

      @@vslraw4202 Can You share the code pls

  • @roystonv6578
    @roystonv6578 13 วันที่ผ่านมา

    dude you look like mrwhoosetheboss

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

    Can you share the code???