Skip to content
Uploader tools for OpenStreetCam
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
images
.gitignore
LICENSE
Makefile
README.md
__init__.py
constants.py
exif_processing.py
login_controller.py
metadata_manager.py
metadata_models.py
metadata_parser.py
metadata_parser_legacy.py
osc_api_config.py
osc_api_gateway.py
osc_api_models.py
osc_discoverer.py
osc_models.py
osc_tools.py
osc_uploader.py
osc_utils.py
osm_access.py
requirements.txt
validators.py
visual_data_discover.py

README.md

OSC

OSC Tools

Description

Tools developed by OpenStreetCam to help contributors.

Requirements
  • Python 3
  • Dependencies from requirements.txt file. The dependencies can be installed by running:
pip3 install virtualenv

virtualenv -p python3 .

source bin/activate

pip3 install -r requirements.txt

1. Upload photos to OpenStreetCam

Description

This script is used to upload sequences from a local directory. The available formats are:

  • Sequences taken with the OSC mobile apps
  • Exif images
Usage
cd /path_to_scripts/osc_tools

# help
python osc_tools.py -h

# help for upload
python osc_tools.py upload -h

# upload all sequences from ~/OSC_sequences folder
python osc_tools.py upload -p ~/OSC_seqences

2. Generate Exif info from OSC metadata file

Description

This script generates GPS Exif info for each image from an OSC metadata format file.

Usage
cd /path_to_scripts

# help
python osc_tools.py -h

# help for Exif generation
python osc_tools.py generate_exif -h

# Exif generation for sequence in ~/OSC_sequences/Sequence1 folder
python osc_tools.py generate_exif -p ~/OSC_seqences/Sequence1

Docker

To run the scripts inside a Docker container:

make docker
docker run -Pit osc-up osc_tools.py
docker run -Pit --mount type=bind,source="$(pwd)",target=/opt/osc osc-up /opt/osc/osc_tools.py

The images directory in the repo will be available in the container at /opt/osc/images

You can’t perform that action at this time.