4 ms·
Ask HN: What's the best way to detect whether a road is jammed?
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?
- runariot 7y agoYou can use OpenCV to detect motion/objects and then calculate their speed/flow.
- spark3k 7y agoThanks. I'm going to definitely try this route.
- threecoins 7y agoIf the camera is stationary, as a naive approach you can sample the amount of black road area that is visible over a sample time
- spark3k 7y agoThanks 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.