Git Product home page Git Product logo

Comments (4)

jason-li-831202 avatar jason-li-831202 commented on June 4, 2024

Due to the absence of depth-sensing sensors, distance is roughly estimated through image analysis. Based on the known dimensions of the target object prior to actual driving, distance is calculated using pixel size.

image

Of course, referring to the actual height and width of the target object is an average.

from vehicle-cv-adas.

lucianzhong avatar lucianzhong commented on June 4, 2024

Got it. Thanks for explanation.

from vehicle-cv-adas.

nj888-art avatar nj888-art commented on June 4, 2024

Thanks for your explanation. However, The distance detection in my data set doesn't look very accurate. What is the unit of f (focal length)?
And I don't understand the decision condition "ymax <= 650" in the code.

if label in self.object_list and ymax <= 650:
point_x = (xmax + xmin) // 2
point_y = ymax

				try :
					distance = (self.RefSizeDict[label][0] * self.f)/ (ymax - ymin)
					distance = distance/12*0.3048 # 1ft = 0.3048 m
					self.distance_points.append([point_x, point_y, distance])

Looking forward to your reply!

from vehicle-cv-adas.

jason-li-831202 avatar jason-li-831202 commented on June 4, 2024

'ymax <= 650' is just because I use a frame size of (1280, 720), and sometimes it detects the vehicle's own body, leading to a false detection of a vehicle ahead. The focal length is filled in based on the camera's focal length.

from vehicle-cv-adas.

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.