You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/samples/depth_preview.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,17 @@ This example shows how to set the SGBM (semi-global-matching) disparity-depth no
5
5
over XLink to transfer the results to the host real-time, and displays the depth map in OpenCV.
6
6
Note that disparity is used in this case, as it colorizes in a more intuitive way.
7
7
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>`__
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>`__
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>`__
- :ref:`Device Queue Event` - Demonstrates how to use device queue events
22
21
- :ref:`RGB Encoding` - Encodes RGB (1080P, 30FPS) into :code:`.h265` and saves it on the host
23
22
- :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
24
23
- :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
37
36
- :ref:`Mono Camera Control` - Demonstrates how to control the mono camera (crop, exposure, sensitivity) from the host
38
37
- :ref:`Depth Crop Control` - Demonstrates how to control cropping of depth frames from the host
39
38
- :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**
40
40
- :ref:`RGB Rotate Warp` - Demonstrates how to rotate, mirror, flip or perform perspective transform on a frame
41
41
- :ref:`RGB Depth` - Displays RGB depth frames
42
42
- :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
57
57
.. rubric:: Mixed
58
58
59
59
- :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
- :ref:`Device Queue Event` - Demonstrates how to use device queue events
34
32
- :ref:`RGB Encoding` - Encodes RGB (1080P, 30FPS) into :code:`.h265` and saves it on the host
35
33
- :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
36
34
- :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