Pipeline Graph

There’s DepthAI Pipeline Graph tool which helps in dynamic visualization of pipeline from script along with input/output FPS of nodes.

Installation

pip install git+https://github.com/luxonis/depthai_pipeline_graph.git

# pip install PySide2   # Error while launching Qt Window
pip install PyQt5

It is developed using Qt framework. Upon using PySide2 as mentioned in official documentation, I had error so I switched to PyQt5 module.

Live Pipeline View

pipeline_graph run "python3 script.py"
../../_images/pipeline_depth_preview.png

Errors Faced

  1. When trying to use variable names in graph, it did not work.

pipeline_graph run "python3 script.py" -var
  1. When trying to view pipeline from a json schema, it did not open. See this forum to check if issue is resolved: json_load_error_forum.

Saving pipeline schema to json:

# After declaring nodes, defining properties and linking nodes

pipeline.serializeToJson()

Viewing pipeline schema:

pipeline_graph load test.json

See the code of depth preview example Simple Example: Depth Preview