DepthAI Pipeline Visualizer GUI
Project description
Gen2 Visual Pipeline Editor
This experiment has two components:
- A visual graph editor that lets you compose a DepthAI pipeline visually and save it as a JSON file.
- A parser for those JSON files that will turn it into a usable DepthAI pipeline
Editor
The graph editor is a modified version of NodeGraphQt by Johnny Chan.
Install Dependencies:
python3 install_requirements.py
Usage
python3 pipeline_editor.py
- Runs the visual pipeline editor
Navigation
- Press Tab to create new nodes
- Right Click To save/load pipeline graphs
- You can find a full list of controls in the NodeGraphQt Documentation
Parser
DAIPipelineGraph
is the graph parser.
Demo
python3 demo.py
- Runs the included ExampleGraph.json pipeline
Usage
from DAIPipelineGraph import DAIPipelineGraph
pipeline_graph = DAIPipelineGraph( path=pipeline_path )
with dai.Device( pipeline_graph.pipeline ) as device:
...
Accessing Pipeline Data
DAIPipelineGraph.pipeline
: A reference to the DepthAI pipelineDAIPipelineGraph.nodes
: A table of all the nodes. You can access them via the name you put into the "Node Name" field in the editor. Ex:pipeline_graph.nodes["rgb_cam"].setPreviewSize(300,300)
DAIPipelineGraph.xout_streams
: A list of all the names of the XLinkOut streams
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
depthai-gui-2.0.1.tar.gz
(15.7 kB
view hashes)