Package: mapilio-kit
Mapilio KitMapilio Kit is a library for processing and uploading images toMapilio.Kit ContentsIntroductionGetting StartedMagic UsageAdvanced UsageContributingLicenseContactIntroductionOur Image Uploader with GPS Metadata is a powerful tool designed to simplify the process of uploading and managing images, while also preserving and utilizing valuable location-based information embedded in photos. With the increasing popularity of geotagging in modern cameras and smartphones, GPS metadata in images can provide valuable context and enhance the user experience. Whether you're a photographer, a traveler, or simply someone who values the story behind each image, our uploader has you covered.Getting StartedThese instructions will help contributors get a copy of your project up and running on their local machine for development and testing purposes.Prerequisites:To upload images to Mapilio, an account is required and can be createdhere. When
    using the kits for the first time, user authentication is required. You will be prompted to enter your account
    credentials.Installation:To install Mapilio KitPip andPython(3.6 and above) is required.If you have them already, then simply run this command below:pip install mapilio_kitNote:In case you're using Windows, and if python's path wasn't already added to system environment variables you need to add it right after python installation, to be able to run the packages which are installed withPip. You may do that manually or you may run the command prompt as Administrator and then copy the command below, modify it (according to your python's version and path) and lastly run it. This will be set your python's path automatically after rebooting your computer.setx PATH %"PATH%;C:\Users\User\AppData\Local\Packages\Python\Python3XX\Scripts" /MNecessary tools:To process images or videos, you will also need to installffmpegandexiftool.You can downloadffmpegfromhere. Make sure it is executable and put the downloaded binaries in your$PATH. You can also installffmpegwith your favorite package manager. For example:On Windows:Open PowerShell as administrator: (Recommended)Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install ffmpeg
choco install exiftoolor you could follow theffmpegandexiftoolinstallation guides.On macOS, use Homebrew:brew install ffmpeg
brew install exiftoolOn Debian/Ubuntu:sudo apt install ffmpeg
sudo apt install exiftoolMagic UsageTo use magic usage simply run this command below:mapilio_kit runAdvanced UsageGetting StartedThese instructions will help contributors get a copy of your project up and running on their local machine for development and testing purposes.Prerequisites:To upload images to Mapilio, an account is required and can be createdhere. When
    using the kits for the first time, user authentication is required. You will be prompted to enter your account
    credentials.Installation:via Pip on Windows and Python (3.6 and above) and git are required:Note:In case you're usingPowerShellto run these commands below, you need to re-activate virtual env after installation is done, however, if you're usingCommand Promptyou don't need to re-activate it.# Installation commands
git clone https://github.com/mapilio/mapilio-kit-v2.git
cd mapilio-kit-v2
win_installer.cmdvia Pip on Ubuntu + 18.04 and Python (3.6 and above) and git are required:# Installation commands
git clone https://github.com/mapilio/mapilio-kit-v2.git
cd mapilio-kit-v2
chmod +x install.sh
source ./install.shvia Pip on macOS and Python (3.6 and above) and git are required. In addition,commands for ubuntu can also be used for macOS, however, in case using Mac Terminal instead of using iTerm for installation you need to re-activate the virtual env. Otherwise, you're not going to be able to run the kit.Necessary tools:To process images or videos, you will also need to installffmpegandexiftool.You can downloadffmpegfromhere. Make sure it is executable and put the downloaded binaries in your$PATH. You can also installffmpegwith your favorite package manager. For example:On Windows:Follow theffmpegandexiftoolinstallation guides.orOpen PowerShell:Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install ffmpeg
choco install exiftoolOn macOS, use Homebrew:brew install ffmpeg
brew install exiftoolOn Debian/Ubuntu:sudo apt install ffmpeg
sudo apt install exiftoolUser AuthenticationTo upload images to mapilio, an account is required and can be createdhere. When using the tools for the first time, user authentication is required. You will be prompted to enter your account credentials.Authenticate new user:mapilio_kit authenticateIf the user is already authenticated earlier, it will update the credentials in the config:mapilio_kit authenticate --user_name "mapilio_user_name" --user_email "mapilio_user_email" --user_password "mapilio_user_password"Images uploadUpload command also works for timelapse images.If you haven't processed your images, please use this command belowmapilio_kit upload "path/to/images"If you have processed your images already, use this one insteadmapilio_kit upload "path/to/images" --processedVideo Images uploadVideo Support Devices: GoPro Hero 9-8-7 Black and 360, and other devices that support GPS metadata.Sample GoPro videos in directory path/to/videos/ into import path (must be created before starting)path/to/sample_images/ at a sampling rate 1 seconds, i.e. two frames every second, reading geotag data from the GoPro videos in path/to/videos/mapilio_kit video_upload "path/to/videos/" "path/to/sample_images/" \
    --geotag_source "gopro_videos" \
    --interpolate_directions \
    --video_sample_interval 1Checking path/to/sample_images/ images and mapilio_image_description.json then run under commandmapilio_kit video_upload "path/to/sample_images/" --desc_path "mapilio_image_description.json" --processedGoPro Max .360 videosMust be installed with this method./max_extractor_install.shFirst, create equirectangular convert script such as belowpython script config--video-file {video file path}--output-folder {output frames path}--bin-dir {equirectanguler bin path}mapilio_kitgopro360max_process--video-file~/Desktop/GS017111.360--output-folder~/Desktop/OutputData/--bin-dirbinNow we can upload framesmapilio_kitupload~/Desktop/OutputData/frames--user_name="username@mapilio.com"\--geotag_source"gpx"\--geotag_source_path"~Desktop/gps_track.gpx"Decompose ImagesThe decompose command geotags images in the given directory. It extracts the required and optional metadata from image EXIF (or the other supported geotag sources), and writes all the metadata (or process errors) in an image description file, which will be read during upload.mapilio_kit decompose "path/to/images"360 panorama image uploadNote thatthe heading angle and the center of the image must be overlappedfor calculation purposes. You may see an example above.Check the CSV formatpanoramic image description schema.mapilio_kit image_and_csv_upload path/to/images --csv_path path/to/test.csvZip and uploadmapilio_kit zip  "path/to/images"  "path/to/zipfolder"
mapiio_kit upload "path/to/zipfolder" --proccessedDocker SupportFor docker support please visit;Docker.mdFor 360 Upload with docker take a look at here;GoPro360Max.mdLicenseThis project is licensed under the MIT LICENSE - see theLICENSE.mdfile for details.ContactFor Mapilio Kit bug reports and feature requests please visitGitHub Issues, and join ourDiscordcommunity for questions and discussions!