Skip to content

wcedmisten/piofo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piofo

A Python library for extracting GPS data / images from Viofo dashcam videos.

Requirements

  • a GPU
  • ffmpeg
  • pip

Install Dependencies

sudo apt-get install ffmpeg
pip install -r requirements.txt

Install the CUDA toolkit:

https://developer.nvidia.com/cuda-downloads

This may require you to change your nvidia driver versions. CUDA is needed for running the OCR model on the imagery.

Setting up PostGIS with OSM data

Clone the wcedmisten/osm2pgsql-docker repo, and follow the steps from the README.

Running the pipeline

The entire pipeline does the following:

  • extract the GPS track from a dashcam clip
  • extract corresponding images for each point
  • run OCR on each image
  • if a "speed limit" sign is found in the image, check OSM to see if the road has "maxspeed" set
  • if a missing speed limit is found, output a link to the image, and a link to the OSM feature
python src/pipeline.py /path/to/input.MP4

Testing

python3 -m unittest test/test.py

Original Sources:

https://sergei.nz/extracting-gps-data-from-viofo-a119-and-other-novatek-powered-cameras/

https://sergei.nz/files/nvtk_mp42gpx.py

About

Python library for extracting GPS data from Viofo dashcam videos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages