Extracts GPS tracks and speed from dashcam videos with embedded overlays, and exports them as a GPX file that can be loaded into mapping tools (Google Earth, Garmin, etc.).
- Supports dashcam videos with overlay text like
102KM/H N:53.8235 E:10.5033 - Extracts:
- Latitude / Longitude
- Speed (km/h)
- Exports to GPX 1.1 with speed included
<!-- ... -->
<trkpt lat="53.8235" lon="10.5033">
<extensions>
<speed>102</speed>
</extensions>
</trkpt>
<!-- ... -->-
Clone the repo.
-
Install the dependencies:
pip install -r requirements.txt
-
Install Tesseract OCR.
python extract.py video.mp4 -o data.gpx -s 10- Adjust sample_seconds (lower = more precise track, higher = faster processing) to your liking.
- Crop region may need adjustment depending on your dashcam overlay location. I am using a VIOFO A229 Pro, the region might be different for your dashcam!
- Preprocessing is applied for better OCR accuracy.
- Support for multiple dashcams
- Faster image recognition
- Parameters (units, sample count, region, output format, etc.)
- Allow multiple videos as input
- Track analysis