正在加载视频...

视频加载失败

here is the final version of my vehicle speed estimation demo read the thread below to learn how I built it. I will cover: - detection - tracking - perspective transformation - speed calculation - some bonus ideas ↓

399,909 次观看 • 2 年前 •via X (Twitter)

10 条评论

SkalskiP 的头像
SkalskiP2 年前

1. before diving into speed estimation, we need to solve the detection of moving vehicles. I used YOLO-NAS. it's capable of performing real-time detection on low-compute devices, including the Jetson Nano. link:

SkalskiP 的头像
SkalskiP2 年前

2. for object tracking, I used ByteTrack. this enables us to assign a unique ID to each vehicle. doing so, we can accurately track the distance traveled by each car, forming the basis for subsequent speed calculations. link:

SkalskiP 的头像
SkalskiP2 年前

3. calculating the distance traveled can be challenging due to the camera's perspective. car moving at a constant speed will appear to move a different number of pixels in the image, depending on its distance from the camera.

SkalskiP 的头像
SkalskiP2 年前

4. we can precisely determine the position of each vehicle within our zone. now, each vehicle is represented by x and y coordinates, expressed in meters. this allows us to compare a vehicle's current position with its position from a second ago, enabling the speed calculation.

SkalskiP 的头像
SkalskiP2 年前

5. knowing the exact position of each vehicle opens the door to more advanced applications. for instance, we can now accurately estimate the distance between vehicles. we can see that the driver of the white car came dangerously close to the vehicle in front of him.

SkalskiP 的头像
SkalskiP2 年前

6. we can also take this a step further and visualize the entire road in 3D, showcasing the vehicles as they move along it.

Anatoly Kim 的头像
Anatoly Kim2 年前

Somehow reminds me @comma_ai calibration challenge

SkalskiP 的头像
SkalskiP2 年前

@comma_ai Nah… what they did is a lot more complicated :/

nisten - e/acc 的头像
nisten - e/acc2 年前

this is wild

SkalskiP 的头像
SkalskiP2 年前

thanks a lot! noting compared to LMMs magic you guys build

相关视频