Skip to main content

Pure Python viewer / renderer / visualizer and loader for the INTERACTION dataset

Project description

Interaction Viz.

A no-nonsense, pure Python, renderer / visualizer and loader for the INTERACTION dataset.

Demo

Quickstart

If you have Python >= 3.7.5, just use

$ pip install interactionviz

(probably it's best to run this inside of an activated virtualenv of some kind)

To view a scene, you can use

$ interactionviz --root-dir </root/of/interaction/dataset> --dataset DR_USA_Intersection_EP0 --session 1

This will open a native 2D top-down viewer.

If you have an older version of Python, you can use pyenv to install a more recent version.

🧪 Experimental Feature: 3D Web viewer

An experimental feature is provided to support rendering the tracks in a webviewer using THREE.js. To try this out, run the following command and navigate to http://localhost:8000/viewer.

$ interactionviz --viewer-kind web --root-dir </root/of/interaction/dataset>

Using this as a library

The code is modular and easy to extend. Beware this is an early version and the API might change unexpectedly in future versions.

Here's an example of importing and using this viewer in your own code.

from interactionviz.maps import load_map_xml
from interactionviz.tracks import load_tracks_files
from interactionviz.viewers import ArcadeViewer
# Note: You can use the following to render in 3D in a web browser,
#   from interactionviz.viewers import WebViewer

interaction_map = load_map_xml("<path/to/map.osm_xy>")
tracks = load_tracks_files("<path/to/vehicle_tracks_000.csv>")
viewer = ArcadeViewer(interaction_map, tracks)

viewer.run()

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

interactionviz-0.2.1.tar.gz (150.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interactionviz-0.2.1-py3-none-any.whl (150.9 kB view details)

Uploaded Python 3

File details

Details for the file interactionviz-0.2.1.tar.gz.

File metadata

  • Download URL: interactionviz-0.2.1.tar.gz
  • Upload date:
  • Size: 150.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/2.7.16 Darwin/18.7.0

File hashes

Hashes for interactionviz-0.2.1.tar.gz
Algorithm Hash digest
SHA256 73032d83ee91ac8802d60c01e6f087e6c6320214198aa47a4314cb24be816c16
MD5 64bb5acaa8c65d4787660b46269e20ac
BLAKE2b-256 d30d87ae7cf8d1ff0430403e0b707b2e563296cb3e70e59d93a04569048f574c

See more details on using hashes here.

File details

Details for the file interactionviz-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: interactionviz-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 150.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/2.7.16 Darwin/18.7.0

File hashes

Hashes for interactionviz-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e06de65e9d6252cdb7f92da8fadde4c62de2c2e3795f95e481132e67e5b1fbba
MD5 1a7ff2628e33f2d50c2556adb024cc13
BLAKE2b-256 4349cd535bfa3306809ec7ea60b6eb75df80b6f23507bad8ed1f23412dba1fb4

See more details on using hashes here.

Supported by

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