[Optical Flow] Vehicle Speed Estimation using OpenCV, Python
ฝัง
- เผยแพร่เมื่อ 26 ต.ค. 2020
- This is the result of measuring vehicle speed using optical flow.
GitHub: github.com/swhan0329/vehicle_...
(If you found this video and code helpful, please give me a star on GitHub.)
E-mail: sue3630@khu.ac.kr
If you have a question, feel free to send an e-mail. - วิทยาศาสตร์และเทคโนโลยี
awesome code, I have a similar project, I need to track and count cars to create a frequency chart of traffic
Woow I am amazed
Does this use a stereo camera or is it just a normal camera? Impressive work, Seowoohan.
This is just normal camera :)
Oh okay thank you very much, so it's relative to the camera and the back lanes should get a slower speed measure if you put the camera in the corner like that
@@giorgiolelmi8175 That's right. You're fully understand, you have to compensate for that in your camera or in your code.
Source code
github.com/swhan0329/vehicle_speed_estimation
You can refer this code.
How do you create that colored square in opencv like that?
Use cv2.polylines() 😊
Hello, my current task is the same as your video. How can I get your relevant code
github.com/swhan0329/vehicle_speed_estimation
you can visit here.
Did you get that
@@madansshetty4535 What does that mean?
What happens if a car is shifting lanes right at the detection zone?
Then it cannot calculate the speed.
@@swhan0329 I don’t know anything about opencv, but maybe you could modify the code with perpendicular lines to the lines you established, and include a conditional so in the event they switch lanes or cross these added lines, then the end line in the other lane gets used. Or you could have additional ending lines that span two lanes for this condition and those get used.
Just my thought on it! Cool project though.
@@ElPolloPolloPollo Thanks. And right. You need to modify and move the line where you want.
Hey is there any public code? Github? Thanks
github.com/swhan0329/vehicle_speed_estimation
Here you are
Switzerland?
SouthKorea 🙂