Getting started#
Install MuFASA#
MuFASA is a Python package and easily installed from PyPI[1] with pip:
pip install mufasa-fusion[vis]
The Fusion Recipe#
Follow these simple steps to define and run any fusion architecture in MuFASA. It will also briefly introduce you to the core building blocks by an example.
Load Input#
To get started with sensor fusion, we need sensor data. MuFASA isn’t operating on raw sensor values though, rather it consumes already pre-processed detections. It ships with a variety of input nodes to load them from standardized formats into its own representation.
For example, use a GeoJsonInput node to load Location
data from a GeoJSON[2] Feature Collection in sensor_a.geojson.
from mufasa.io.inputs import GeoJsonInput
inp = GeoJsonInput("sensor_a.geojson")
Compose Nodes#
Pick some fusion nodes and compose them to define your desired fusion architecture.
In this example, we use a Probability Occupancy Map (POM) node
that we connect to the input defined above.
from mufasa.nodes.mapping import POM
pom = POM(decay_s=5)(inp)
Define Output#
Here, we send the POM to a Visualization.
from mufasa.io.outputs import Visualization
vis = Visualization(snapshot_interval_s=0)(pom)
Assemble Graph#
Finally, assemble the Fusion Graph. The Graph needs to know the IO boundary nodes.
The bounding box and map resolution define the scope for the POM and the coordinate reference system for calculations.
from mufasa import BoundingBox, Graph
bbox = BoundingBox(
min_x=16.426371764128696,
min_y=48.26746099712581,
max_x=16.42828135471482,
max_y=48.26995824720053,
)
graph = Graph(
inputs=[inp],
outputs=[vis],
crs="EPSG:32633",
bbox=bbox,
resolution=(2, 2),
)
graph.plot_graph()
Execute Fusion#
Now, everything is set up to run the sensor fusion:
graph.run()
Inspect Results#
Let’s have a look at the last snapshot that came from the POM:
vis.show("pom_0")
/usr/local/lib/python3.13/site-packages/contextily/tile.py:680: UserWarning: The inferred zoom level of 19 is not valid for the current tile provider (valid zooms: 0 - 16).
warnings.warn(msg)
Next Steps#
See also
User Guide for an introduction to the framework and its API
Node Catalog for a list of available nodes to build your own graphs
Showcases for realized fusion architectures and use-cases to draw inspiration from