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.
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
If you have an older version of Python, you can use pyenv
to install a more recent version.
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
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.1.3.tar.gz
(143.7 kB
view hashes)
Built Distribution
interactionviz-0.1.3-py3-none-any.whl
(143.9 kB
view hashes)
Close
Hashes for interactionviz-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48cadbfcaf782f85d86cbd76402356aa8cbae9f27f7290d9f2548658bbb305aa |
|
MD5 | c10325b28adc86f9c895ec666ed5c293 |
|
BLAKE2b-256 | b76df39a6c34eb8eaedb9bc2961181ddb9e0f12c11dd5862c7c4e3a9470f64bf |