Giter Site home page Giter Site logo

Comments (4)

paul-pias avatar paul-pias commented on May 22, 2024

Any pull request is welcome. You may try changing the weight and cfg files to try on. But I would suggest you try new Object Detectors such as YOLOv4 or Yolact++.

from object-detection-and-distance-measurement.

Voltress avatar Voltress commented on May 22, 2024

Thanks for your suggestion @paul-pias , but i want to ask you something more. In the formula distance = (2 * 3.14 * 180) / (w.item()+ h.item() * 360) * 1000 + 3, "w.item()+ h.item()" what do you mean w.item () + h.item (), do w and h be the width and height of the bounding box when detecting an object? or w and h is the frame size of the video / image used?
dog
Thanks in advance

from object-detection-and-distance-measurement.

paul-pias avatar paul-pias commented on May 22, 2024

.item() is a Pytorch function to retrieve values out of a PyTorch Tensor. You can see the documentation for reference.

The width and height used in the formula are from each object's bounding box. The size of the frame had been declared globally with the variables self.height and self.width.

from object-detection-and-distance-measurement.

HassanBinHaroon avatar HassanBinHaroon commented on May 22, 2024

Check out the following relevant and easiest implementation.

https://github.com/HassanBinHaroon/object_detection-PLUS-distance_estimation-v1

from object-detection-and-distance-measurement.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.