Between November 19th, 2020 and February 13th, 2021 we conducted a Citizen Traffic Study. To do this, we built the Safe 8th Street Traffic Camera using a Raspberry Pi, PiCam, and an open source project (details at bottom).

This data collection served its purpose; we proved there was egregious speeding along 8th Street that contributed to unsafe conditions. View the dashboard with charts and tables.

What we learned:

Between November 19th and February 13th, we logged 100,000 cars traveling along 8th near Chester St.

<aside> 📊 1,100 Average Daily Traffic (ADT) 32mph 85th Percentile Speed

</aside>

<aside> 📈 Over 25mph: 49% Over 35mph: 12% Over 40mph: 4%

</aside>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3dcdac0f-7e44-4a8c-873f-f4ce47aa4c1c/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1bbe7028-ad64-48bc-84aa-bab0195300ef/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f12a0b1f-e669-42be-bf43-a38c77e5911c/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c0941ff3-e368-4f7b-855a-8704088b666a/Untitled.png

A future study could prove the effectiveness of traffic calming.

If and when the city implements traffic calming along 8th Street, we will conduct another study. Ideally, we'll begin collecting data a week before traffic calming is added and continue collecting for several weeks to follow.

Anomalies

Incomplete Traffic Counts: We adjusted the sensor area during the second week of January. This caused counts to increase, as some eastbound cars weren't detected. Before this, it appeared there was more westbound traffic than eastbound. This was inaccurate; our sensor missed those eastbound vehicles.

Ultra-High Speeds: Starting the second week of January, the sensor logged vehicles going 116 mph, then later 106, 108, and even 130mph. Even for 8th Street standards, these speeds seem unbelievable! These deserve to be looked into. Is it possible these were logged in error? For example, could multiple passing cars have confused the software?

Methodology

The Safe 8th Street Traffic Camera is maintained by Tim Courtney and Jesse Pollak, based on an open source traffic camera project. See our code repository.

The software calculates speed by detecting objects moving across the frame, knowing the distance from the camera to the travel lane, and using trigonometry. For more detail, see the Program Overview section of the original Traffic Camera project page by Tim Hodges.

Inspiration

Others have created their own open source traffic cameras. Here are a few we've found:

How to Build a Cheap Homemade Speed Camera

pageauc/speed-camera