Giter Site home page Giter Site logo

edc22osm / viofo2jpg Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 29.48 MB

Python scripts to generate geotaged images from Viofo A129 DUO (and simillar) dashcam videos. Images are ready to use at e.g Mapillary.com

License: GNU Affero General Public License v3.0

Python 100.00%
video ffmpeg exiftool dashcam mp4 mapillary osm novatek

viofo2jpg's Introduction

viofo2jpg

Python scripts to generate geotaged images from Viofo A129 DUO (and simillar) dashcam videos. Images are ready to use at e.g Mapillary.com

Files

dashcam2josm.py - Script generates geotaged jpg images from .MP4 video file recorded by Viofo dashcam nvtk_mp42gpx.py - Script extracts GPS data from Novatek generated MP4 files.

Use

cd <path_to_your_Viofo_dashcam_MP4_videos>
python <path_to_script>\dashcam2josm.py -i *.MP4

Options:

-i    input .MP4 video file(s), globs (eg: *) or directory(ies)
-c    Crop images generated from all video files. Format: width:height:x:y
-cf   Crop images generated from front video files. (For *F.MP4 files.) Format: width:height:x:y
-cr   Crop images generated from rear video files. (For *R.MP4 files.) Format: width:height:x:y
      This options are useful if you don't want to share your sensitive data saved in the video by dashcam, or if your view is partially obscured.
-a    Arrange output .jpg files from many input .mp4 files into one output folder per continuous camera sequence
-f    Do not skip frames not far enaugh (5m) from previous saved
      By default this script skips images with are too close (less than 5 meters) from previous saved image. 
-df   User provided directory with ffmpeg tool.
-de   User provided directory with exiftool tool.

See scripts for more information

Mapillary.com hints

Use mapillary_tools to upload images made from your dashcam movies. Upload images from front and rear dashcam as separate tracks !

cmd

cd <path_to_jpgs>
mapillary_tools process_and_upload --import_path . --user_name "mapillary_user_name"

Example of uploaded track: https://www.mapillary.com/app/?lat=50.324699&lng=18.927374&z=17.436678368356983&pKey=614167796256046&focus=photo

License

GPL3

viofo2jpg's People

Contributors

edc22osm avatar eliandoran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

viofo2jpg's Issues

Are the v2 files scripts needed?

Both dashcam2josm and nvtk_mp42gpx have a _v2 and _v3 script. Initially I thought they were for Python 2, respectively 3 but it appears they are actually two different versions of the same script, with v2 being quite a bit older.

Considering these versions are quite old, I think a slightly better approach would be to remove them from the repository. If they are still needed, maybe they can be moved to a v2 branch. This will remove any potential confusions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.