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.2.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for depthai_gui-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce57a423894037d822ec442c17fe9516fbdf15666ecfb2330f92ababfe979b81 |
|
MD5 | 9ef17e8387a14c1030247580687af380 |
|
BLAKE2b-256 | 21d375ccbd88e9f2eea7ee0cf3db39a0263713ec837c18ab9624284aacf4c24f |