Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frankhereford/traffic-cameras

A NextJS / Flask web tool for georeferencing traffic camera images
https://github.com/frankhereford/traffic-cameras

flask gdal georeferenced-data gis haproxy nextjs object-detection python t3-stack tanstack-react-query traffic-analysis trpc typescript

Last synced: 3 months ago
JSON representation

A NextJS / Flask web tool for georeferencing traffic camera images

Awesome Lists containing this project

README

        

# City of Austin's Traffic Cameras

## Features

- Object detection using the `facebook/detr-resnet-101` model courtesy of [Hugging Face](https://huggingface.co/facebook/detr-resnet-101)
- [Thin Plate Spline](https://en.wikipedia.org/wiki/Thin_plate_spline) transformation to correct for camera perspective
- First class geospatial data via postGIS

## Database

### Computed fields for proper geometry

```sql
ALTER TABLE detections
ADD COLUMN location geography(Point, 4326) GENERATED ALWAYS AS (ST_SetSRID(ST_MakePoint(longitude, latitude), 4326)) STORED;

ALTER TABLE locations
ADD COLUMN location geography(Point, 4326) GENERATED ALWAYS AS (ST_SetSRID(ST_MakePoint(longitude, latitude), 4326)) STORED;
```