Skip to main content

simple-mapillary-python-sdk PyPI

Simplified Python library for accessing the Mapillary API. For a more complete library, check out the official mapillary-python-sdk.

Installation

pip install simple-mapillary

Or clone the repository and install it manually (If you want to modify the code):

git clone https://github.com/ibaiGorordo/simple-mapillary-python-sdk
cd simple-mapillary-python-sdk
pip install .

Setup

First, you need to get an access token. To get one:

Then, pass the token as an argument to the set_access_token() function.

Example (Read image)

from simple_mapillary import Image, set_access_token
import cv2

token = ""
set_access_token(token)

image_id = "1200479493800436"
image = Image(image_id)

img = image.get_cvimage()

cv2.imshow('image', img)
cv2.waitKey(0)
cv2.destroyAllWindows()

Example (Read image with semantic map)

from simple_mapillary import Image, set_access_token
from simple_mapillary.image import draw_detections
import cv2

# TODO: Set the token here
token = ''
set_access_token(token)

image_id = "279996174671586"
image = Image(image_id)

img = image.get_cvimage()

detections = image.get_detections()
segmentation_img = draw_detections(img, detections)

comb_img = cv2.addWeighted(img, 0.6, segmentation_img, 0.4, 0)

cv2.imshow('image', comb_img)
cv2.waitKey(0)
cv2.destroyAllWindows()

Release files for simple-mapillary 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-mapillary 0.0.4
File Size Uploaded
simple_mapillary-0.0.4.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-mapillary 0.0.4
File Interpreter ABI Platform
simple_mapillary-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / simple_mapillary-0.0.4.tar.gz

Download URL simple_mapillary-0.0.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
45d2f2060a76e306eb2e84f68311c268fbc30183ddde922e86c7a6078a7f58d3
BLAKE2b-256 checksum
How to use checksums
769a98e724446cb38e137634fff448f3f630060a1da8b8142eeed89ec0bcce5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release files / simple_mapillary-0.0.4-py3-none-any.whl

Download URL simple_mapillary-0.0.4-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57c6fa3d9f243124b4b9e603df4586851ab3a6755fc558c399053d2e48f6e517
BLAKE2b-256 checksum
How to use checksums
2f7d8bde855af098886c709500a48a0caed39e28b0a1d1a1db7e59de6d7f9b6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page