How to Estimate Real Distance to Objects with a Single Camera and YOLO11

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 40

  • @NicolaiAI
    @NicolaiAI  3 месяца назад +3

    Join the AI Career Program
    www.nicolai-nielsen.com/aicareer
    Enroll in my Technical Courses
    www.nicos-school.com/courses/
    Camera Calibration Software and High Precision Calibration Boards
    camera-calibrator.com/

  • @FernandaZ-u7c
    @FernandaZ-u7c 3 месяца назад +3

    Everytime I see the video u uploaded, I am excited cuz all these progresses are impressive and promising.

    • @NicolaiAI
      @NicolaiAI  3 месяца назад +1

      So awesome to read! Glad u like them and u made my day 💪

  • @hviiid91
    @hviiid91 3 месяца назад +3

    This is very interesting.. again thanks for the video! Looking forward to some potential content on runtime performance with this

    • @NicolaiAI
      @NicolaiAI  3 месяца назад

      For sure very interesting and unlocks a bunch of new opportunities in the vision space

  • @sandeepwadhwa531
    @sandeepwadhwa531 29 дней назад

    The focal length is read from exif info of the image (in mm) and then converted in the code to pixel values (utils has a function for it). When I print out the value of f_px, it is always None for all images. How is the model getting focal information. Also all the pictures that I use, the depth information is often wrong.

  • @isura3147
    @isura3147 2 месяца назад +1

    Hey Nicolai ,
    I get an error "No module named 'depth_pro'
    Any idea of how to resolve this issue ?
    i checked the folder structure and everything seems to be exactly as you have in your video.
    thank you !

    • @AmnaBano-kd7ex
      @AmnaBano-kd7ex Месяц назад

      hey just place your main file in the ml-depth-pro-main\src\depth_pro folder
      that will do

    • @isura3147
      @isura3147 Месяц назад

      @@AmnaBano-kd7ex Thank you it worked! I appreciate it !

  • @aashirahmed-q2f
    @aashirahmed-q2f Месяц назад

    Hi Nicolai! I just want to ask that how can I estimate the depth of an object as well as its classification.

  • @interestingfacts1466
    @interestingfacts1466 Месяц назад

    How much time does the code take to run fully? Does it take much time?

  • @NazaninPadkan
    @NazaninPadkan 2 месяца назад +1

    Thank you for the nice video. Did you also check the 3d reconstruction using open3d?
    Whenever I use an estimated depth from a metric MDE algorithm to generate a point cloud, I can not get a right size of objects

    • @NicolaiAI
      @NicolaiAI  2 месяца назад

      Most likely because of the focal length and cam params being off. Have u tested out the new one here which also gives u the focal length? Then u can set the optical center to half of img height and half of width

    • @NazaninPadkan
      @NazaninPadkan 2 месяца назад

      @@NicolaiAI Thanks for your answer. I have calibrated my camera and I have my own parameters. I have just found your new video, but I already tested Metric3D v2 and Anything Depth. But unfortunately I got need measurements in 3D and the sizes are not correct

    • @NicolaiAI
      @NicolaiAI  2 месяца назад

      @NazaninPadkan the depth map is not based on your camera parameters but just an output from the ai model. So that might be one of the reasons

    • @NazaninPadkan
      @NazaninPadkan 2 месяца назад

      What is your suggestion here?

  • @twishakhurana7618
    @twishakhurana7618 Месяц назад

    is it necessary that the image must be of high resolution?

  • @insideyourbrain2333
    @insideyourbrain2333 3 месяца назад +1

    it is posiible to implement this code in a Intel realsense camera or doing this with other versions of yolo like yolov3?

    • @NicolaiAI
      @NicolaiAI  3 месяца назад

      Not sure why u would use a realsense camera with this but yeah u can use any other object detection models or any algorithm to index the depth map

  • @Rahi404
    @Rahi404 3 месяца назад +1

    What's the VRAM usage of this Apple Model?

    • @NicolaiAI
      @NicolaiAI  3 месяца назад +1

      Ran out out mem a couple of times on 16gb while recoding and bunch of stuff open. Prob around 10gb

    • @Rahi404
      @Rahi404 3 месяца назад +1

      @@NicolaiAI then I've to find a new way to measure the distance with depth map

  • @Skrewex
    @Skrewex 3 месяца назад +2

    The video is pretty quiet compared to other videos and ads on RUclips, maybe bump up the volume a bit?

    • @NicolaiAI
      @NicolaiAI  3 месяца назад +1

      Yeah missed that in this one! Thanks for letting me know

    • @Skrewex
      @Skrewex 3 месяца назад

      No problem, thanks for the great videos!

  • @kemmunvlogs7388
    @kemmunvlogs7388 3 месяца назад +1

    Can it be used with IDS camera, man?

    • @NicolaiAI
      @NicolaiAI  3 месяца назад +1

      Yes as long as u can extract the frames and throw them through the model

  • @abophotato
    @abophotato 2 месяца назад

    Good one, I hace seen your old video says c++ is faster than python but why this video is using python 🤔 btw may I ask what's your gpu are using now and it's c++ and python's fps?

  • @guilhermegouveialopes7170
    @guilhermegouveialopes7170 Месяц назад

    hi everyone, i tried using this for a project, did everything like the video. The thing is, it is way too slow. I noticed that the "model.infer(image_input, f_px=f_px)" takes about 60 seconds to run. Is there any workaround for this? Thank you for reading

    • @isura3147
      @isura3147 Месяц назад

      Yeah , i had the same issue, if you find a solution please do let me know as well . Thanks !

    • @sandeepwadhwa531
      @sandeepwadhwa531 29 дней назад

      Same issue for me. The command does take about 4-5 minutes on Mac Book Air, 8GB.

    • @guilhermegouveialopes7170
      @guilhermegouveialopes7170 29 дней назад

      @@isura3147maybe try other model. I heard that depthanything is much faster

    • @guilhermegouveialopes7170
      @guilhermegouveialopes7170 29 дней назад

      @@sandeepwadhwa531see my other comment

  • @koufdell
    @koufdell 3 месяца назад +1

    peace nicolai , i used the model with a mobile rtx 3050ti and it takes ages,any suggestions?

    • @NicolaiAI
      @NicolaiAI  3 месяца назад +1

      Hmm might be because of ram. But did take 20 seconds on my MacBook cpu. Will have to test it on colab or my own gpu

    • @koufdell
      @koufdell 3 месяца назад +1

      @@NicolaiAI well i used fp16 precision and ,while it took some time, it was faster
      TLDR:the create_model_and_transforms has an argument precision)
      thx for the reply,awesome content

    • @NicolaiAI
      @NicolaiAI  3 месяца назад

      @koufdell thanks a lot!