Watching NYC's traffic cameras for blocked bike lanes


Lane Lab NYC watches the city’s public traffic cameras for cars and trucks parked in bike lanes. This is a sneak peek; it only runs on my laptop for now lol.
It started in the Transportation Alternatives Slack, when Brandon Chamberlin asked if you could hack together something that checks DOT cameras and auto-files 311 complaints. Turns out Justin Sherwood had been archiving one of those cameras to GitHub since 2023. I got nerd-sniped.
My first plan was reading license plates. Not happening: the pictures are 352×240, so a plate is about four gray pixels. So I’m asking a different question instead: which bike lanes are blocked all the time?
- About 80 of the city’s ~1,000 cameras look right at a bike lane. It checks each one every 15 seconds to 5 minutes.
- An off-the-shelf YOLO model finds vehicles, and a lane outline I drew per camera decides who’s in the lane.
- It only flags a vehicle that’s still there in the next picture. Before that rule most “blockers” were delivery bikes riding through, which is kind of the opposite of the point.
Fun fact: the city re-aims these cameras! Two weeks in, 18 of mine moved at once (8 pointed somewhere else entirely, 10 nudged a bit). Now it checks every picture against the view I marked, and anything it can’t see counts as unknown, never clear.

The goal is a short list of the spots that get blocked over and over, with photos. Then we watch those closer and report them. Joe Frazier from Reported pointed out that every 311 report lands in the city’s open 311 data, which planners and reporters use to find problem streets, plate or no plate. His idea for the next step: it shows me likely blockages, I approve one, and it goes to Reported with everything filled in. (Needs dedupe first, so I’m not approving the same parked truck every 15 seconds.)
A flag isn’t proof anyone broke a law, btw. Plenty of them are just a bus blocking the view.
Next up is open-sourcing the code and putting a live version online. If you want to help, holler. And if you care about biking and walking in Brooklyn, come to a TA Brooklyn (TABK) meeting!
Thanks to Justin Sherwood for the camera archive that trained my first model, Brandon Chamberlin for the idea, Joe Frazier for the 311 smarts, and jmarkowi for doing a version of this years ago.