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 the experimental web 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>

Rendering gifs

When using the interaction dataset for training models, it's useful to be able to write gifs, which may be logged to Tensorboard. See the built-in function write_gif, to render gifs directly.

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.3.0.tar.gz (152.9 kB view details)

Uploaded Source

Built Distribution

interactionviz-0.3.0-py3-none-any.whl (154.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for interactionviz-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ff0c4b4e7976f089c231fc796a9f4dfe3433fa57174135b10c73517997d8bc65
MD5 695d48b7975aaf9d889e5ad8a07a050c
BLAKE2b-256 fd0a3b26163b3b8c5e8b1a7abd5d610effaf838b6347a9473694ff654e8bf580

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for interactionviz-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7aed7ba87503b34c2e18ce1ae5cffae2ffcf683f75342e800779623172cf0b35
MD5 71a75872da8084d008c8dee407fb599a
BLAKE2b-256 aea70f27fedd4025bca335ed014954bd0739982d9a00fcdefb68a20964eb6b5d

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