Skip to content

Commit 041aa05

Browse files
committed
Added "Script change pipeline flow" docs
1 parent 5fda1f7 commit 041aa05

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Script change pipeline flow
2+
===========================
3+
4+
This example shows how you can change the flow of data inside your pipeline in runtime using the :ref:`Script` node. In this example, we send a message from
5+
the host to choose whether we want Script node to forwards color frame to the :ref:`MobileNetDetectionNetwork`.
6+
7+
Demo
8+
####
9+
10+
.. image:: https://user-images.githubusercontent.com/18037362/187734814-df3b46c9-5e04-4a9d-bf6f-d738b40b4421.gif
11+
12+
Pipeline Graph
13+
##############
14+
15+
.. image:: https://user-images.githubusercontent.com/18037362/187736249-db7ff175-fcea-4d4e-b567-f99087bd82ee.png
16+
17+
Setup
18+
#####
19+
20+
.. include:: /includes/install_from_pypi.rst
21+
22+
Source code
23+
###########
24+
25+
.. tabs::
26+
27+
.. tab:: Python
28+
29+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/Script/script_change_pipeline_flow.py>`__
30+
31+
.. literalinclude:: ../../../../examples/Script/script_change_pipeline_flow.py
32+
:language: python
33+
:linenos:
34+
35+
.. tab:: C++
36+
37+
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/Script/script_change_pipeline_flow.cpp>`__
38+
39+
.. literalinclude:: ../../../../depthai-core/examples/Script/script_change_pipeline_flow.cpp
40+
:language: cpp
41+
:linenos:
42+
43+
.. include:: /includes/footer-short.rst

docs/source/tutorials/code_samples.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ are presented with code.
113113
.. rubric:: Script
114114

115115
- :ref:`Script camera control` - Controlling the camera with the Script node
116+
- :ref:`Script change pipeline flow` - Change the flow of data inside your pipeline in runtime with :ref:`Script`` node
116117
- :ref:`Script forward frames` - Forward incoming image stream to two different output streams (demuxing)
117118
- :ref:`Script get local IP` - Get local IP of the device (only OAK-POE devices)
118119
- :ref:`Script HTTP client` - Send HTTP request to a server (only OAK-POE devices)

0 commit comments

Comments
 (0)