Skip to content

Commit 271d9fd

Browse files
committed
Added script examples to Script node docs; Examples of functionality
1 parent ad8f642 commit 271d9fd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

docs/source/components/nodes/script.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ depthai messages and assign data to it, for example:
140140
Examples of functionality
141141
#########################
142142

143-
- :ref:`Script camera control`
143+
- :ref:`Script camera control` - Controlling the camera
144+
- :ref:`Script get local IP` - Get local IP
145+
- :ref:`Script HTTP client` - Send HTTP request
146+
- :ref:`Script HTTP server` - still image over HTTP
147+
- :ref:`Script HTTP stream` - MJPEG video stream over HTTP
148+
- :ref:`Script NNData Datatype` - Constructs :ref:`NNData`
144149
- `Triangulation experiment <https://github.com/luxonis/depthai-experiments/blob/master/gen2-triangulation/main.py>`__
145150
- `Movenet decoding (edge mode) <https://github.com/geaxgx/depthai_movenet/blob/main/template_processing_script.py>`__ - A bit more complex example by geaxgx
146151

docs/source/samples/Script/script_http_server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you open this IP in the browser (eg. chrome), you will see this:
2020
.. image:: /_static/images/components/http_server.png
2121

2222
if you click on the :code:`here` href, you will get a static image. For video stream,
23-
you should check out :ref:`Script HTTP stream`
23+
you should check out :ref:`Script HTTP stream`.
2424

2525
Setup
2626
#####

docs/source/samples/Script/script_http_stream.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you open this IP in the browser (eg. chrome), you will see this:
2020
.. image:: /_static/images/components/http_server.png
2121

2222
if you click on the :code:`here` href, you will get the MJPEG video stream. For static image, you can check
23-
out :ref:`Script HTTP server`
23+
out :ref:`Script HTTP server`.
2424

2525
Setup
2626
#####

docs/source/tutorials/code_samples.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ Code samples are used for automated testing. They are also a great starting poin
104104
- :ref:`Script camera control` - Controlling the camera with the Script node
105105
- :ref:`Script get local IP` - Get local IP of the device (only OAK-POE devices)
106106
- :ref:`Script HTTP client` - Send HTTP request to a server (only OAK-POE devices)
107-
- :ref:`Script HTTP client` - Send HTTP request to a server (only OAK-POE devices)
108107
- :ref:`Script HTTP server` - Serve still image over HTTP response (only OAK-POE devices)
109108
- :ref:`Script HTTP stream` - Serve MJPEG video stream over HTTP response (only OAK-POE devices)
110109
- :ref:`Script NNData Datatype` - Constructs :ref:`NNData` in Script node and sends it to the host

0 commit comments

Comments
 (0)