Skip to main content

Commandline Image Uploader for KartaView

Reason this release was yanked:

buggy

Project description

Commandline tools to upload discrete images to KartaView.

Also supports Vantrue OnDash X4S videos.

Usage

  1. Install:

    pip3 install kartaview-tools
  2. Authorize: This step is needed only once. You need an OSM account.

    kv_auth.py

    Your KartaView credentials are now stored in the file ~/.config/kartaview/credentials.json. Keep this file secret. The KartaView credentials do not expire, but you can delete the credentials file, in which case you must authorize again.

  3. Sequence the images:

    kv_sequence.py ~/Pictures/kartaview/*.jpg

    This step sorts your images into sequences. It extracts the GPS data from your images and stores it in sidecar files, where you can easily review it.

  4. Upload the images:

    kv_upload.py ~/Pictures/kartaview/*.jpg

    The script remembers which images were successfully uploaded. In case of errors, if you run the upload script on the same images again, the ones already uploaded will not be uploaded again.

Run the scripts with ‘-h’ to see more options.

Videos

This software only supports videos produced by the Vantrue OnDas X4S dashcam.

To split a video file into discrete images use ffmpeg.

Proposed workflow:

mkdir -p /tmp/frames
# extract I-frames for better clarity
ffmpeg -skip_frame nointra -i ~/Videos/dash.mp4 -vsync 0 -frame_pts 1 /tmp/frames/%08d.jpg
# patch GPS data into image files
kv_vantrue_x4s.py -i ~/Videos/dash.mp4 /tmp/frames/%08d.jpg
# sequence image files
kv_sequence /tmp/frames/*.jpg
# upload files
kv_upload /tmp/frames/*.jpg

See:

GPX Files

You can extract the GPS data in your video into a GPX file and then use third-party tools (eg. exiftool) to further process it.

Proposed workflow:

kv_vantrue_x4s.py -i ~/Videos/dash.mp4 --gpx=track.gpx
exiftool -geotag=track.gpx /tmp/frames

See: https://exiftool.org/geotag.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kartaview-tools-0.0.1.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

kartaview_tools-0.0.1-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file kartaview-tools-0.0.1.tar.gz.

File metadata

  • Download URL: kartaview-tools-0.0.1.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for kartaview-tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 80029666f3e37c056a84ed72cbae040dca69dc90b2d1432b9883ad4a602db563
MD5 c8f987a9e86036a34a00521f9cffe588
BLAKE2b-256 11ea47b62c5a6ae9fca55a33077592cdc1d6fc57e51a4aa56e29538386cb50f2

See more details on using hashes here.

File details

Details for the file kartaview_tools-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kartaview_tools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64b3f00e11afe6e5cc72db2ece4a2ed4603dd16e5e8563a614c3e10d47504dc3
MD5 876103f742d8584ae5f05f4e00274421
BLAKE2b-256 7a16a0e9cf89ebfda4a15f76aff75a5707856991118765145a9e94c67fffb8bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page