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
This example shows how one can use multiple ROIs with a single :ref:`SpatailLocationCalculator` node. A similar logic could be used as a simple depth line
5
+
scanning camera for mobile robots.
6
+
7
+
.. rubric:: Similar samples:
8
+
9
+
- :ref:`Spatial location calculator`
10
+
11
+
Demo
12
+
####
13
+
14
+
.. image::
15
+
16
+
Setup
17
+
#####
18
+
19
+
.. include:: /includes/install_from_pypi.rst
20
+
21
+
Source code
22
+
###########
23
+
24
+
.. tabs::
25
+
26
+
.. tab:: Python
27
+
28
+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/SpatialDetection/spatial_calculator_multi_roi.py>`__
This example shows how you can query device information.
5
+
6
+
The first part of the code queries all available devices without actually booting any device. For each found device, it prints the following information:
7
+
8
+
- **Device name**: Either IP, in case of OAK PoE cameras, or USB path in case of OAK USB cameras
9
+
- **MxId**: Unique Mx (chip) identification code
10
+
- **State**: State of the device. Note that OAK PoE cameras have bootloader flashed which initializes the network stack
11
+
12
+
Afterwards, the example boots into the first found device and prints available camera sensors, and reads calibration and eeprom data which stores product and
13
+
board names.
14
+
15
+
Demo
16
+
####
17
+
18
+
.. code-block::
19
+
20
+
Searching for all available devices...
21
+
22
+
Found device '1.3', MxId: '18443010D116631200', State: 'UNBOOTED'
23
+
Found device '192.168.33.201', MxId: '184430102163DB0F00', State: 'BOOTLOADER'
24
+
Found device '192.168.33.192', MxId: '1844301011F4C51200', State: 'BOOTLOADER'
25
+
26
+
Booting the first available camera (1.3)...
27
+
Available camera sensors: {<CameraBoardSocket.RIGHT: 2>: 'OV9282', <CameraBoardSocket.RGB: 0>: 'IMX378', <CameraBoardSocket.LEFT: 1>: 'OV9282'}
28
+
Product name: OAK-D Pro AF, board name DM9098
29
+
30
+
31
+
Setup
32
+
#####
33
+
34
+
.. include:: /includes/install_from_pypi.rst
35
+
36
+
Source code
37
+
###########
38
+
39
+
.. tabs::
40
+
41
+
.. tab:: Python
42
+
43
+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/host_side/device_information.py>`__
0 commit comments