Skip to content

Commit 5004cc7

Browse files
committed
Merge 'origin/main' into develop
# Conflicts: # examples/SpatialDetection/spatial_mobilenet.py # examples/mixed/rotated_spatial_detections.py
2 parents 3390717 + 27104a0 commit 5004cc7

26 files changed

+461
-84
lines changed

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ sphinx-autopackagesummary==1.3
88
autodocsumm==0.2.2
99
pathlib==1.0.1
1010
jinja2==3.0.3
11+
urllib3==1.26.15 # New urllib version breaks sphinx
1112
-r ./requirements_mkdoc.txt

docs/requirements_mkdoc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
git+https://github.com/luxonis/pybind11_mkdoc.git@47a353ae22a3ca2fe1ca47f47b38613dcfb1043b
1+
git+https://github.com/luxonis/pybind11_mkdoc.git@59746f8d1645c9f00ebfb534186334d0154b5bd6
35.4 KB
Loading
Binary file not shown.
254 KB
Loading

docs/source/components/nodes/stereo_depth.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
StereoDepth
22
###########
33

4-
StereoDepth node calculates the disparity/depth from the stereo camera pair (2x :ref:`MonoCamera <MonoCamera>`/:ref:`ColorCamera`).
4+
StereoDepth node calculates the disparity and/or depth from the stereo camera pair (2x :ref:`MonoCamera <MonoCamera>`/:ref:`ColorCamera`).
5+
We suggest following :ref:`Configuring Stereo Depth` tutorial to achieve the best depth results.
56

67
How to place it
78
===============

docs/source/includes/footer-short.rst

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
.. raw:: html
22

3-
<h2>Got questions?</h2>
3+
<h2>Got questions?</h2>
44

5-
We're always happy to help with code or other questions you might have.
6-
7-
.. raw:: html
8-
9-
<div class="cta-row cta-row-short">
10-
<div class="cta-box">
11-
<a href="https://discord.gg/luxonis">
12-
<img src="https://docs.luxonis.com/en/latest/_images/discord.png" alt="Discord"/>
13-
<h5 class="cta-title">Community Discord</h5>
14-
</a>
15-
</div>
16-
<div class="cta-box">
17-
<a href="https://discuss.luxonis.com/">
18-
<img src="https://docs.luxonis.com/en/latest/_images/forum.png" alt="forum"/>
19-
<h5 class="cta-title">Discussion Forum</h5>
20-
</a>
21-
</div>
22-
<div class="cta-box">
23-
<a href="mailto:[email protected]">
24-
<img src="https://docs.luxonis.com/en/latest/_images/email.png" alt="forum"/>
25-
<h5 class="cta-title">Email Support</h5>
26-
</a>
27-
</div>
28-
</div>
5+
Head over to <a href="https://discuss.luxonis.com/"><strong>Discussion Forum</strong></a> for technical support or any other questions you might have.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Script UART communication
2+
=========================
3+
4+
This example uses :ref:`Script` node for `UART communication <https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter>`__. Note that OAK
5+
cameras don't have UART pins easily disposed, and we soldered wires on `OAK-FFC-4P <https://docs.luxonis.com/projects/hardware/en/latest/pages/DD2090.html>`__
6+
to expose UART pins.
7+
8+
.. note::
9+
10+
This should only be run on OAK-FFC-4P, as other OAK cameras might have different GPIO configuration.
11+
12+
Demo
13+
####
14+
15+
.. raw:: html
16+
17+
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
18+
<iframe src="https://www.youtube.com/embed/nbS1BczO5sE" frameborder="0" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>
19+
</div>
20+
21+
22+
.. figure:: https://user-images.githubusercontent.com/18037362/232458809-a36dc418-6bb5-411f-9172-5130a926191d.jpg
23+
24+
Oscilloscope connected to the OAK-FFC-4P UART pins
25+
26+
Setup
27+
#####
28+
29+
.. include:: /includes/install_from_pypi.rst
30+
31+
Source code
32+
###########
33+
34+
.. tabs::
35+
36+
.. tab:: Python
37+
38+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/Script/script_uart.py>`__
39+
40+
.. literalinclude:: ../../../../examples/Script/script_uart.py
41+
:language: python
42+
:linenos:
43+
44+
.. tab:: C++
45+
46+
Not yet available
47+
48+
49+
.. include:: /includes/footer-short.rst

docs/source/samples/SpatialDetection/spatial_calculator_multi_roi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ scanning camera for mobile robots.
1111
Demo
1212
####
1313

14-
.. image:: https://user-images.githubusercontent.com/18037362/190861621-b57fd1e3-5a3d-4d79-b1a7-d17a0b78c63e.gif
14+
.. image:: https://user-images.githubusercontent.com/18037362/231822498-6e3699a0-039e-424b-acb2-b246575e91ee.png
1515

1616
Setup
1717
#####
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Stereo Depth custom Mesh
2+
========================
3+
4+
This example shows how you can load custom mesh to the device and use it for depth calculation.
5+
In this example, mesh files are generated from camera calibration data, but you can also use
6+
your own mesh files.
7+
8+
By default, :ref:`StereoDepth` will use the same logic as inside the ``def getMesh()`` to calculate
9+
mesh files whenever horizontal FOV is larger than 90°. You could also force calculate the mesh using:
10+
11+
.. code-block:: python
12+
13+
stereo = pipeline.create(dai.node.StereoDepth)
14+
# Enable mesh calculation to correct distortion:
15+
stereo.enableDistortionCorrection(True)
16+
17+
18+
StereoDepth node also allows you to load mesh files directly from a file path:
19+
20+
.. code-block:: python
21+
22+
stereo = pipeline.create(dai.node.StereoDepth)
23+
stereo.loadMeshFiles('path/to/left_mesh', 'path/to/right_mesh')
24+
25+
Demo
26+
####
27+
28+
.. image:: https://github.com/luxonis/depthai-python/assets/18037362/f2031bd4-0748-4a06-abb1-b52e9a17134e
29+
30+
On the image above you can see that the rectified frame isn't as wide FOV as the original one,
31+
that's because the distortion correction is applied (in this case via custom mesh files), so the
32+
disparity matching can be performed correctly.
33+
34+
Setup
35+
#####
36+
37+
.. include:: /includes/install_from_pypi.rst
38+
39+
Source code
40+
###########
41+
42+
.. tabs::
43+
44+
.. tab:: Python
45+
46+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/StereoDepth/stereo_depth_custom_mesh.py>`__
47+
48+
.. literalinclude:: ../../../../examples/StereoDepth/stereo_depth_custom_mesh.py
49+
:language: python
50+
:linenos:
51+
52+
.. include:: /includes/footer-short.rst

0 commit comments

Comments
 (0)