Skip to content

Commit eb5688d

Browse files
author
SzabolcsGergely
committed
Merge remote-tracking branch 'origin/main' into HEAD
2 parents bbaccc4 + 500f8e6 commit eb5688d

14 files changed

+295
-12
lines changed

docs/source/samples/depth_preview.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ This example shows how to set the SGBM (semi-global-matching) disparity-depth no
55
over XLink to transfer the results to the host real-time, and displays the depth map in OpenCV.
66
Note that disparity is used in this case, as it colorizes in a more intuitive way.
77
Below is also a preview of using different median filters side-by-side on a depth image.
8+
There are 3 depth modes which you can select inside the code:
9+
10+
#. `lr_check`: used for better occlusion handling. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#left-right-check-depth-mode>`__
11+
#. `extended_disparity`: suitable for short range objects. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#extended-disparity-depth-mode>`__
12+
#. `subpixel`: suitable for long range. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#subpixel-disparity-depth-mode>`__
813

914
.. rubric:: Similiar samples:
1015

1116
- :ref:`RGB Preview`
1217
- :ref:`Mono Preview`
18+
- :ref:`Stereo Depth Video`
1319

1420
Demo
1521
####

docs/source/samples/object_tracker_video.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ Source code
3333
:language: python
3434
:linenos:
3535

36+
.. tab:: C++
37+
38+
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/src/object_tracker_video.cpp>`__
39+
40+
.. literalinclude:: ../../../depthai-core/examples/src/object_tracker_video.cpp
41+
:language: cpp
42+
:linenos:
43+
3644
.. include:: /includes/footer-short.rst
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Queue add callback
2+
==================
3+
4+
This example shows how to use queue callbacks. It sends both mono frames and color frames from the device to the
5+
host via one :code:`XLinkOut` node. In the callback function :code:`newFrame()` we decode from which camera did
6+
the frame come from so we can later show the frame with correct title to the user.
7+
8+
Demo
9+
####
10+
11+
.. image:: https://user-images.githubusercontent.com/18037362/120119546-309d5200-c190-11eb-932a-8235be7a4aa1.gif
12+
13+
Setup
14+
#####
15+
16+
.. include:: /includes/install_from_pypi.rst
17+
18+
Source code
19+
###########
20+
21+
.. tabs::
22+
23+
.. tab:: Python
24+
25+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/queue_add_callback.py>`__
26+
27+
.. literalinclude:: ../../../examples/queue_add_callback.py
28+
:language: python
29+
:linenos:
30+
31+
.. tab:: C++
32+
33+
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/src/queue_add_callback.cpp>`__
34+
35+
.. literalinclude:: ../../../depthai-core/examples/src/queue_add_callback.cpp
36+
:language: cpp
37+
:linenos:
38+
39+
.. include:: /includes/footer-short.rst

docs/source/samples/stereo_depth_from_host.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
Stereo Depth from host
22
======================
33

4-
This example shows depth map from host using stereo images. There are 3 depth modes which you can select
5-
inside the code: left-right check, extended (for closer distance), subpixel (for longer distance).
4+
This example shows depth map from host using stereo images. There are 3 depth modes which you can select inside the code:
5+
6+
#. `lr_check`: used for better occlusion handling. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#left-right-check-depth-mode>`__
7+
#. `extended_disparity`: suitable for short range objects. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#extended-disparity-depth-mode>`__
8+
#. `subpixel`: suitable for long range. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#subpixel-disparity-depth-mode>`__
9+
610
Otherwise a median with kernel_7x7 is activated.
711

12+
.. rubric:: Similiar samples:
13+
14+
- :ref:`Stereo Depth Video`
15+
816
Setup
917
#####
1018

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Stereo Depth Video
2+
==================
3+
4+
This example is an upgraded :ref:`Depth Preview`. It has higher resolution (720p), each frame can be shown
5+
(mono left-right, rectified left-right, disparity and depth). There are 6 modes which you can select
6+
inside the code:
7+
8+
#. `withDepth`: if you turn it off it will became :ref:`Mono Preview`, so it will show only the 2 mono cameras
9+
#. `outputDepth`: if you turn it on it will show the depth
10+
#. `lrcheck`: used for better occlusion handling. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#left-right-check-depth-mode>`__
11+
#. `extended`: suitable for short range objects. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#extended-disparity-depth-mode>`__
12+
#. `subpixel`: suitable for long range. For more information `click here <https://docs.luxonis.com/en/latest/pages/faq/#subpixel-disparity-depth-mode>`__
13+
14+
.. rubric:: Similiar samples:
15+
16+
- :ref:`Depth Preview`
17+
- :ref:`Stereo Depth from host`
18+
19+
Setup
20+
#####
21+
22+
.. include:: /includes/install_from_pypi.rst
23+
24+
Source code
25+
###########
26+
27+
.. tabs::
28+
29+
.. tab:: Python
30+
31+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/stereo_depth_video.py>`__
32+
33+
.. literalinclude:: ../../../examples/stereo_depth_video.py
34+
:language: python
35+
:linenos:
36+
37+
.. tab:: C++
38+
39+
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/src/stereo_depth_video.cpp>`__
40+
41+
.. literalinclude:: ../../../depthai-core/examples/src/stereo_depth_video.cpp
42+
:language: cpp
43+
:linenos:
44+
45+
.. include:: /includes/footer-short.rst

docs/source/tutorials/code_samples.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Code samples are used for automated testing. They are also a great starting poin
1818
- :ref:`RGB video` - Displays high resolution frames of the RGB camera
1919
- :ref:`Mono Preview` - Displays right/left mono cameras
2020
- :ref:`Depth Preview` - Displays colorized stereo disparity
21-
- :ref:`Device Queue Event` - Demonstrates how to use device queue events
2221
- :ref:`RGB Encoding` - Encodes RGB (1080P, 30FPS) into :code:`.h265` and saves it on the host
2322
- :ref:`RGB & Mono Encoding`- Encodes RGB (1080P, 30FPS) and both mono streams (720P, 30FPS) into :code:`.h265`/:code:`.h264` and saves them on the host
2423
- :ref:`Encoding Max Limit` - Encodes RGB (4k 25FPS) and both mono streams (720P, 25FPS) into :code:`.h265`/:code:`.h264` and saves them on the host
@@ -37,6 +36,7 @@ Code samples are used for automated testing. They are also a great starting poin
3736
- :ref:`Mono Camera Control` - Demonstrates how to control the mono camera (crop, exposure, sensitivity) from the host
3837
- :ref:`Depth Crop Control` - Demonstrates how to control cropping of depth frames from the host
3938
- :ref:`Stereo Depth from host` - Generates stereo depth frame from a set of mono images from the host
39+
- :ref:`Stereo Depth Video` - An extended version of **Depth Preview**
4040
- :ref:`RGB Rotate Warp` - Demonstrates how to rotate, mirror, flip or perform perspective transform on a frame
4141
- :ref:`RGB Depth` - Displays RGB depth frames
4242
- :ref:`Auto Exposure on ROI` - Demonstrates how to use auto exposure based on the selected ROI
@@ -57,4 +57,6 @@ Code samples are used for automated testing. They are also a great starting poin
5757
.. rubric:: Mixed
5858

5959
- :ref:`System information` - Displays device system information (memory/cpu usage, temperature)
60-
- :ref:`OpenCV support` - Demonstrates how to retrieve an image frame as an OpenCV frame
60+
- :ref:`OpenCV support` - Demonstrates how to retrieve an image frame as an OpenCV frame
61+
- :ref:`Device Queue Event` - Demonstrates how to use device queue events
62+
- :ref:`Queue add callback` - Demonstrates how to use queue callbacks

docs/source/tutorials/complex_samples.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Complex
1010
../samples/mono_camera_control.rst
1111
../samples/depth_crop_control.rst
1212
../samples/stereo_depth_from_host.rst
13+
../samples/stereo_depth_video.rst
1314
../samples/rgb_rotate_warp.rst
1415
../samples/rgb_depth_aligned.rst
1516
../samples/autoexposure_roi.rst
@@ -34,6 +35,7 @@ If you want to see more interesting examples you should check out our `Experimen
3435
- :ref:`Mono Camera Control` - Demonstrates how to control the mono camera (crop, exposure, sensitivity) from the host
3536
- :ref:`Depth Crop Control` - Demonstrates how to control cropping of depth frames from the host
3637
- :ref:`Stereo Depth from host` - Generates stereo depth frame from a set of mono images from the host
38+
- :ref:`Stereo Depth Video` - An extended version of **Depth Preview**
3739
- :ref:`RGB Rotate Warp` - Demonstrates how to rotate, mirror, flip or perform perspective transform on a frame
3840
- :ref:`RGB Depth` - Displays RGB depth frames
3941
- :ref:`Auto Exposure on ROI` - Demonstrates how to use auto exposure based on the selected ROI

docs/source/tutorials/mixed_samples.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Mixed
88

99
../samples/system_information.rst
1010
../samples/opencv_support.rst
11+
../samples/device_queue_event.rst
12+
../samples/queue_add_callback.rst
1113

1214
- :ref:`System information` - Displays device system information (memory/cpu usage, temperature)
13-
- :ref:`OpenCV support` - Demonstrates how to retrieve an image frame as an OpenCV frame
15+
- :ref:`OpenCV support` - Demonstrates how to retrieve an image frame as an OpenCV frame
16+
- :ref:`Device Queue Event` - Demonstrates how to use device queue events
17+
- :ref:`Queue add callback` - Demonstrates how to use queue callbacks

docs/source/tutorials/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Overview
77
88
.. code-block::
99
10-
DepthAI device (eg. LUX-D) Host (eg. RaspberryPi)
10+
DepthAI device (eg. OAK-D) Host (eg. RaspberryPi)
1111
┌───────────────────────────────────────────────┐ ┌─────────────────────────┐
1212
│ │ │ │
1313
│ Node Node │ │ # Your python code that │

docs/source/tutorials/simple_samples.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Simple
1010
../samples/rgb_video.rst
1111
../samples/mono_preview.rst
1212
../samples/depth_preview.rst
13-
../samples/device_queue_event.rst
1413
../samples/rgb_encoding.rst
1514
../samples/rgb_mono_encoding.rst
1615
../samples/encoding_max_limit.rst
@@ -30,7 +29,6 @@ These samples are great starting point for the gen2 API.
3029
- :ref:`RGB video` - Displays high resolution frames of the RGB camera
3130
- :ref:`Mono Preview` - Displays right/left mono cameras
3231
- :ref:`Depth Preview` - Displays colorized stereo disparity
33-
- :ref:`Device Queue Event` - Demonstrates how to use device queue events
3432
- :ref:`RGB Encoding` - Encodes RGB (1080P, 30FPS) into :code:`.h265` and saves it on the host
3533
- :ref:`RGB & Mono Encoding`- Encodes RGB (1080P, 30FPS) and both mono streams (720P, 30FPS) into :code:`.h265`/:code:`.h264` and saves them on the host
3634
- :ref:`Encoding Max Limit` - Encodes RGB (4k 25FPS) and both mono streams (720P, 25FPS) into :code:`.h265`/:code:`.h264` and saves them on the host

0 commit comments

Comments
 (0)