Skip to content

Commit eab15be

Browse files
committed
Merge branch 'main' into develop
2 parents 87cd424 + 44ac5e4 commit eab15be

File tree

8 files changed

+81
-19
lines changed

8 files changed

+81
-19
lines changed

docs/source/components/nodes/stereo_depth.rst

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,29 @@ Stereo depth FPS
177177
:header-rows: 1
178178

179179
* - Stereo depth mode
180-
- FPS for 720P
180+
- FPS for 1280x720
181+
- FPS for 640x400
181182
* - Standard mode
182-
- 150
183-
* - Left-Right Check
184183
- 60
184+
- 110
185+
* - Left-Right Check
186+
- 55
187+
- 105
185188
* - Subpixel Disparity
186-
- 30
189+
- 45
190+
- 105
187191
* - Extended Disparity
188-
- 60
192+
- 54
193+
- 105
189194
* - Subpixel + LR check
190-
- 15
195+
- 34
196+
- 96
191197
* - Extended + LR check
192-
- 30
198+
- 26
199+
- 62
193200

201+
All stereo modes were measured for :code:`depth` output with **5x5 median filter** enabled. For 720P, mono cameras were set
202+
to **60 FPS** and for 400P mono cameras were set to **110 FPS**.
194203

195204
Usage
196205
#####

docs/source/includes/footer-short.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We're always happy to help with code or other questions you might have.
88

99
<div class="cta-row cta-row-short">
1010
<div class="cta-box">
11-
<a href="https://discord.gg/4hGT3AFPMZ">
11+
<a href="https://discord.gg/luxonis">
1212
<img src="https://docs.luxonis.com/en/latest/_images/discord.png" alt="Discord"/>
1313
<h5 class="cta-title">Community Discord</h5>
1414
</a>

docs/source/install.rst

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ macOS
4646
4747
Close and re-open the terminal window after this command.
4848

49-
The script also works on M1 Macs, Homebrew being installed under Rosetta 2, as some Python packages are still missing native M1 support. In case you already have Homebrew installed natively and things don't work, see `here <https://github.com/luxonis/depthai/issues/299#issuecomment-757110966>`__ for some additional troubleshooting steps.
49+
The script also works on M1 Macs, Homebrew being installed under Rosetta 2, as some Python packages are still missing native M1
50+
support. In case you already have Homebrew installed natively and things don't work, see `here <https://github.com/luxonis/depthai/issues/299#issuecomment-757110966>`__
51+
for some additional troubleshooting steps.
5052

5153
Note that if the video streaming window does not appear consider running the
5254
following:
@@ -57,6 +59,52 @@ following:
5759
5860
See the `Video preview window fails to appear on macOS <https://discuss.luxonis.com/d/95-video-preview-window-fails-to-appear-on-macos>`_ thread on our forum for more information.
5961

62+
M1 Mac build wheels natively
63+
----------------------------
64+
65+
In order to run DepthAI natively on M1 Mac, you currently need to build the wheels locally. We will add pre-building M1 wheels
66+
in Q2 of 2022, so this won't be needed anymore.
67+
68+
This tutorial was provided by whab and tested on a MacBookPro M1 Pro running macOS Monterey 12.1 with a OAK-D-Lite.
69+
70+
.. code-block:: bash
71+
72+
# Install native M1 version of brew
73+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
74+
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
75+
eval "$(/opt/homebrew/bin/brew shellenv)"
76+
77+
# Install conda to create virtual environments for Python
78+
brew install --cask miniconda
79+
conda init zsh
80+
81+
# Close and re-open a Terminal window
82+
83+
# Install DepthAI by building a M1 wheel (inside ~/DepthAI/)
84+
conda create --name DepthAIEnv39 python=3.9
85+
conda activate DepthAIEnv39
86+
python3 -m pip install -U pip
87+
brew update
88+
brew install cmake libusb
89+
cd ~; mkdir DepthAI; cd DepthAI
90+
git clone --recursive https://github.com/luxonis/depthai-python.git
91+
cd depthai-python
92+
mkdir build && cd build
93+
# Build depthai-python
94+
cmake ..
95+
cmake --build . --parallel
96+
cd ..
97+
python3 -m pip wheel . -w wheelhouse
98+
pip install wheelhouse/depthai-*
99+
100+
# Test DepthAI with a OAK plugged to your new M1 Mac
101+
cd examples
102+
nano install_requirements.py
103+
# Remove code of block (3 lines) starting with: if thisPlatform == "arm64" and platform.system() == "Darwin":
104+
# Remove code of block (48 lines) starting with: if not args.skip_depthai:
105+
python3 install_requirements.py
106+
python3 ColorCamera/rgb_preview.py
107+
60108
Ubuntu
61109
******
62110

docs/source/samples/NeuralNetwork/concat_multi_input.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ Source code
2222

2323
.. tab:: Python
2424

25-
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/NeuralNetwork/concat_multiple_input.py>`__
25+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/NeuralNetwork/concat_multi_input.py>`__
2626

2727
.. literalinclude:: ../../../../examples/NeuralNetwork/concat_multi_input.py
2828
:language: python
2929
:linenos:
3030

3131
.. tab:: C++
3232

33-
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/src/concat_multiple_input.cpp>`__
33+
Also `available on GitHub <https://github.com/luxonis/depthai-core/tree/main/examples/NeuralNetwork/concat_multiple_input.cpp>`__
3434

3535
.. literalinclude:: ../../../../depthai-core/examples/NeuralNetwork/concat_multi_input.cpp
3636
:language: cpp

docs/source/samples/NeuralNetwork/normalization_multi_input.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Source code
2929

3030
.. tab:: Python
3131

32-
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/NeuralNetwork/normalization_multiple_input.py>`__
32+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/NeuralNetwork/normalization_multi_input.py>`__
3333

3434
.. literalinclude:: ../../../../examples/NeuralNetwork/normalization_multi_input.py
3535
:language: python
3636
:linenos:
3737

3838
.. tab:: C++
3939

40-
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/src/normalization_multiple_input.cpp>`__
40+
Also `available on GitHub <https://github.com/luxonis/depthai-core/tree/main/examples/NeuralNetwork/normalization_multiple_input.cpp>`__
4141

4242
.. literalinclude:: ../../../../depthai-core/examples/NeuralNetwork/normalization_multi_input.cpp
4343
:language: cpp

docs/source/samples/bootloader/poe_set_ip.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Example script output:
1919
-------------------------------------
2020
Enter IPv4: 192.168.1.200
2121
Enter IPv4 Mask: 255.255.255.0
22-
Enter IPv4 Gateway: 255.255.255.255
23-
Flashing static IPv4 192.168.1.200, mask 255.255.255.0, gateway 255.255.255.255 to the POE device. Enter 'y' to confirm. y
22+
Enter IPv4 Gateway: 192.168.1.1
23+
Flashing static IPv4 192.168.1.200, mask 255.255.255.0, gateway 192.168.1.1 to the POE device. Enter 'y' to confirm. y
2424
Flashing successful.
2525
2626
If you run the same example again after 10 seconds, you will see that IP changed to **192.168.1.200**:
@@ -33,6 +33,9 @@ If you run the same example again after 10 seconds, you will see that IP changed
3333
"2" to set a dynamic IPv4 address
3434
"3" to clear the config
3535
36+
You can now also use the `Manually specify device IP <https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/getting-started-with-poe.html#manually-specify-device-ip>`__
37+
script and change the IP to :code:`192.168.1.200`.
38+
3639
Setup
3740
#####
3841

docs/source/tutorials/maximize_fov.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ Change aspect ratio
1616

1717
Use :code:`camRgb.setPreviewKeepAspectRatio(False)`. This means the aspect ratio will not be preserved and the image
1818
will be "stretched". This might be problematic for some off-the-shelf NN models, so model fine-tuning it might be required.
19-
`Usage example here <https://github.com/luxonis/depthai-python/blob/main/examples/rgb_mobilenet_4k.py#L42>`__.
19+
`Usage example here <https://github.com/luxonis/depthai-experiments/blob/master/gen2-lossless-zooming/main.py#L19>`__.
20+
21+
.. image:: https://user-images.githubusercontent.com/18037362/144095838-d082040a-9716-4f8e-90e5-15bcb23115f9.gif
22+
:target: https://youtu.be/8X0IcnkeIf8
2023

2124
Letterboxing
2225
************
@@ -26,7 +29,7 @@ the size of the image and apply "black bars" above and below the image, so the a
2629
achieve this by using :ref:`ImageManip` with :code:`manip.setResizeThumbnail(x,y)` (for Mobilenet :code:`x=300,y=300`).
2730
The downside of using this method is that your actual image will be smaller, so some features might not be preserved,
2831
which can mean the NN accuracy could decrease.
29-
`Usage example here <https://github.com/luxonis/depthai-python/blob/main/examples/object_tracker_video.py#L44>`__.
32+
`Usage example here <https://github.com/luxonis/depthai-experiments/blob/master/gen2-full-fov-nn/main.py#L28>`__.
3033

3134
.. image:: /_static/images/tutorials/fov.jpeg
3235

docs/source/tutorials/multiple.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ on different DepthAI/uAI models.
6969
Specifying POE device to be used
7070
********************************
7171

72-
You can specify the POE device to be used by the IP address as well. Here's the `code snippet <https://docs.luxonis.com/en/latest/pages/tutorials/getting-started-with-poe/#manually-specify-device-ip>`__.
73-
72+
You can specify the POE device to be used by the IP address as well. Here's the `code snippet <https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/getting-started-with-poe.html#manually-specify-device-ip>`__.
7473

7574
Now use as many DepthAI devices as you need!
7675

0 commit comments

Comments
 (0)