Ask HN: What's the best way to detect whether a road is jammed?

1 points by spark3k ↗ HN
I have a webcam looking at a particular narrow bottleneck of road near my house. It's usually either free flowing, or completely jammed for ages, most often due to two wide cars not being able to get past each other leading them to have to reverse and do some weird manoeuvres.

I want to build a system which will output whether it's jammed or not. What would be the best path to go down for this?

4 comments

[ 5.8 ms ] story [ 22.0 ms ] thread
You can use OpenCV to detect motion/objects and then calculate their speed/flow.
Thanks. I'm going to definitely try this route.
If the camera is stationary, as a naive approach you can sample the amount of black road area that is visible over a sample time
Thanks for the suggestion :) The is kind of semi dirt and blends with its surroundings though. I will keep this in mind as an augmentation maybe.