Skip to content

Commit f56827f

Browse files
authored
Merge pull request #498 from luxonis/slc_demo
Added missing demos
2 parents 9623e6a + 7942720 commit f56827f

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

docs/source/components/nodes/spatial_location_calculator.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
SpatialLocationCalculator
22
=========================
33

4-
SpatialLocationCalculator will calculate the depth based on the :code:`depth` map from the :code:`inputDepth` and ROI (region-of-interest)
5-
provided from the :code:`inputConfig`. It will average the depth values in the ROI and remove the ones out of range.
4+
**SpatialLocationCalculator node** calculates the spatial coordinates of the ROI (region-of-interest) based on the
5+
:code:`depth` map from the :code:`inputDepth`. It will average the depth values in the ROI and remove the ones out of range.
6+
7+
You can also calculate spatial coordiantes on host side, `demo here <https://github.com/luxonis/depthai-experiments/tree/master/gen2-calc-spatials-on-host>`__.
8+
The demo also has the same logic that's performed on the device (:code:`calc.py` file).
9+
10+
.. image:: https://user-images.githubusercontent.com/18037362/146296930-9e7071f5-33b9-45f9-af21-cace7ffffc0f.gif
611

712
How to place it
813
###############

docs/source/samples/ImageManip/rgb_rotate_warp.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ Setup
1212
Demo
1313
####
1414

15-
.. raw:: html
15+
.. image:: https://user-images.githubusercontent.com/18037362/152208899-461fa163-42ec-4922-84b5-5cd09332ea32.png
16+
17+
.. code-block::
18+
19+
=== Controls:
20+
z -rotated rectangle crop, decrease rate
21+
x -rotated rectangle crop, increase rate
22+
c -warp 4-point transform, cycle through modes
23+
v -resize cropped region, or disable resize
24+
h -print controls (help)
1625
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/31K5dTLHQac" frameborder="0" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>
19-
</div>
2026
2127
Source code
2228
###########

docs/source/samples/SpatialDetection/spatial_location_calculator.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Spatial location calculator
44
This example shows how to retrieve spatial location data (X,Y,Z) on a runtime configurable ROI. You can move the ROI using WASD keys.
55
X,Y,Z coordinates are relative to the center of depth map.
66

7-
setConfidenceThreshold - confidence threshold above which objects are detected
7+
You can also calculate spatial coordiantes on host side, `demo here <https://github.com/luxonis/depthai-experiments/tree/master/gen2-calc-spatials-on-host>`__.
88

99
.. rubric:: Similar samples:
1010

@@ -16,11 +16,7 @@ setConfidenceThreshold - confidence threshold above which objects are detected
1616
Demo
1717
####
1818

19-
.. raw:: html
20-
21-
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
22-
<iframe src="https://www.youtube.com/embed/mbZViuS4WEQ" frameborder="0" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>
23-
</div>
19+
.. image:: https://user-images.githubusercontent.com/18037362/146296930-9e7071f5-33b9-45f9-af21-cace7ffffc0f.gif
2420

2521
Setup
2622
#####

0 commit comments

Comments
 (0)