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.
Installation
To install this tool, run the following command
$ python3 -m pip install depthai-gui
Usage
To run the visual pipeline editor, run the following command
$ depthai-gui
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
You can also provide optional arguments, like default context path (-p / --path) or the project file to open (-o / --open)
$ depthai-gui --help
usage: depthai-gui [-h] [-p PATH] [-o OPEN]
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH Path to save/load default directory
-o OPEN, --open OPEN Path to project file to open
Also, you can use the demo program that will run the generated pipeline (or default ExampleGraph.json) with the following command
$ depthai-gui-demo # to run a default ExampleGraph.json
$ depthai-gui-demo -p <path> # to run a custom pipeline
Local development
If you want to enhance or modify this script or would like to install it without PyPi, please install all the necessary requirements with
$ python3 install_requirements.py
Next, you can check the following files:
pipeline_editor.py- Runs the visual pipeline editor (eqivalent ofdepthai-gui)demo.py- Runs the demo script (equivalent ofdepthai-gui-demo)DAIPipelineGraph.pyis the graph parser.
Using exported pipeline
If you want to use the generated pipeline in your application, you can do so by importing DAIPipelineGraph module.
And example integration is shown below
from DAIPipelineGraph import DAIPipelineGraph
pipeline_graph = DAIPipelineGraph( path=pipeline_path )
with dai.Device( pipeline_graph.pipeline ) as device:
...
The most useful fields you can use from DAIPipelineGraph class are:
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
You can also check the demo script as a reference on how to make a working scripts with this class
Metadata
Release files for depthai-gui 2.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| depthai-gui-2.0.6.tar.gz | 94.9 kB | Without provenance | Details for depthai-gui-2.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| depthai_gui-2.0.6-py3-none-any.whl | Python 3 | none | any | Details for depthai_gui-2.0.6-py3-none-any.whl |
Total release size: 215.1 kB
Release files / depthai-gui-2.0.6.tar.gz
| Download URL | depthai-gui-2.0.6.tar.gz |
|---|---|
| Size | 94.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bebc1cb33d2c5fbadea6cc9cc9471f33ef973f9363bdc8709ba81db0966ab6c
|
|
BLAKE2b-256 checksum How to use checksums |
347893120300be61440814d00c4bc0e1e9e93617933369aa98f09cdecca6ee3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2
|
Release files / depthai_gui-2.0.6-py3-none-any.whl
| Download URL | depthai_gui-2.0.6-py3-none-any.whl |
|---|---|
| Size | 120.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99587fa8342f62a80f15b640dbd12f21117ed3a5886c90c72048aa2cc8b40473
|
|
BLAKE2b-256 checksum How to use checksums |
1d0bcad3f45f392bb91be112f2674977bb00f142432c701e5753f07497f2ba79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2
|
Security for depthai-gui 2.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.