Comments (4)
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.
Of course, referring to the actual height and width of the target object is an average.
from vehicle-cv-adas.
Got it. Thanks for explanation.
from vehicle-cv-adas.
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.
'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)
- pycuda._driver issue HOT 1
- Errors while running!! HOT 7
- Documentation Requirement
- video demo
- 您好,小白请教一下,这个文件是需要自己建立的吗? HOT 1
- convertPytorchToONNX.py
- python demo.py HOT 1
- python demo.py
- 运行demo.py报错 HOT 7
- Whether there is a train and test code HOT 2
- qt.qpa.xcb: could not connect to display :.0 HOT 1
- errors in the bird's-eye view and the road detection model not working properly
- An error occurred when demo.py was running HOT 1
- 大佬,运行demo.py报错,你之前遇到过吗 HOT 6
- convertPytorchToONNX.py HOT 3
- Use GPU HOT 1
- Data testing HOT 3
- 请问图像输入分辨率有要求吗,yolov8m的图像输入是否需要跟车道先检测一致呢 HOT 1
- File "F:\Yolop\Vehicle-CV-ADAS\TrafficLaneDetector\ultrafastLaneDetector\ultrafastLaneDetectorV2.py", line 426, in process_output return np.array(list(lanes_points.values())), list(lanes_detected.values()) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vehicle-cv-adas.