Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ _builds/

#ci
wheelhouse/

# Example blobs/files
examples/models/
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ Now, pick a tutorial or code sample and start utilizing Gen2 capabilities
samples/16_device_queue_event.rst
samples/17_video_mobilenet.rst
samples/18_rgb_encoding_mobilenet.rst
samples/21_mobilenet_decoding_on_device.rst
samples/22_1_tiny_yolo_v3_decoding_on_device.rst
samples/22_2_tiny_yolo_v4_decoding_on_device.rst
samples/23_autoexposure_roi.rst
Expand Down
2 changes: 1 addition & 1 deletion docs/source/samples/04_rgb_encoding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ encoded video over XLINK to the host, saving it to disk as a video file.
Pressing Ctrl+C will stop the recording and then convert it using ffmpeg into an mp4 to make it
playable. Note that ffmpeg will need to be installed and runnable for the conversion to mp4 to succeed.

Be careful, this example saves encoded video to your host storage. So if you leave them running,
Be careful, this example saves encoded video to your host storage. So if you leave it running,
you could fill up your storage on your host.


Expand Down
2 changes: 1 addition & 1 deletion docs/source/samples/05_rgb_mono_encoding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ each, all at 30FPS. Each encoded video stream is transferred over XLINK and save
Pressing Ctrl+C will stop the recording and then convert it using ffmpeg into an mp4 to make it
playable. Note that ffmpeg will need to be installed and runnable for the conversion to mp4 to succeed.

Be careful, this example saves encoded video to your host storage. So if you leave them running,
Be careful, this example saves encoded video to your host storage. So if you leave it running,
you could fill up your storage on your host.

Demo
Expand Down
2 changes: 1 addition & 1 deletion docs/source/samples/06_rgb_full_resolution_saver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uncompressed frames, processed by ISP, and raw - BayerRG (R_Gr_Gb_B), as read fr
10-bit packed. See here for the pull request on this capability.

Be careful, this example saves full resolution .png pictures to your host storage. So if you leave
them running, you could fill up your storage on your host.
it running, you could fill up your storage on your host.

Demo
####
Expand Down
2 changes: 1 addition & 1 deletion docs/source/samples/09_mono_mobilenet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__


Expand Down
2 changes: 1 addition & 1 deletion docs/source/samples/10_mono_depth_mobilenetssd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
6 changes: 3 additions & 3 deletions docs/source/samples/11_rgb_encoding_mono_mobilenet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

This example shows how to configure the depthai video encoder in h.265 format to encode the RGB camera
input at Full-HD resolution at 30FPS, and transfers the encoded video over XLINK to the host,
saving it to disk as a video file. In the same time, a MobileNetv2SSD network is ran on the
saving it to disk as a video file. At the same time, a MobileNetv2SSD network is ran on the
frames from right grayscale camera

Pressing Ctrl+C will stop the recording and then convert it using ffmpeg into an mp4 to make it
playable. Note that ffmpeg will need to be installed and runnable for the conversion to mp4 to succeed.

Be careful, this example saves encoded video to your host storage. So if you leave them running,
Be careful, this example saves encoded video to your host storage. So if you leave it running,
you could fill up your storage on your host.

Demo
Expand All @@ -26,7 +26,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
8 changes: 4 additions & 4 deletions docs/source/samples/12_rgb_encoding_mono_mobilenet_depth.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
12 - RGB Encoding & Mono with MobilenetSSD & Depth
================================================
==================================================

This example shows how to configure the depthai video encoder in h.265 format to encode the RGB camera
input at Full-HD resolution at 30FPS, and transfers the encoded video over XLINK to the host,
saving it to disk as a video file. In the same time, a MobileNetv2SSD network is ran on the
saving it to disk as a video file. At the same time, a MobileNetv2SSD network is ran on the
frames from right grayscale camera, while the application also displays the depth map produced by both
of the grayscale cameras. Note that disparity is used in this case, as it colorizes in a more
intuitive way.

Pressing Ctrl+C will stop the recording and then convert it using ffmpeg into an mp4 to make it
playable. Note that ffmpeg will need to be installed and runnable for the conversion to mp4 to succeed.

Be careful, this example saves encoded video to your host storage. So if you leave them running,
Be careful, this example saves encoded video to your host storage. So if you leave it running,
you could fill up your storage on your host.

Demo
Expand All @@ -28,7 +28,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
4 changes: 2 additions & 2 deletions docs/source/samples/13_encoding_max_limit.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
13 - Encoding Max Limit
=====================
=======================

This example shows how to set up the encoder node to encode the RGB camera and both grayscale cameras
(of DepthAI/OAK-D) at the same time, having all encoder parameters set to maximum quality and FPS.
Expand All @@ -9,7 +9,7 @@ Each encoded video stream is transferred over XLINK and saved to a respective fi
Pressing Ctrl+C will stop the recording and then convert it using ffmpeg into an mp4 to make it
playable. Note that ffmpeg will need to be installed and runnable for the conversion to mp4 to succeed.

Be careful, this example saves encoded video to your host storage. So if you leave them running,
Be careful, this example saves encoded video to your host storage. So if you leave it running,
you could fill up your storage on your host.

Demo
Expand Down
6 changes: 3 additions & 3 deletions docs/source/samples/15_rgb_mobilenet_4k.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
15 - 4K RGB MobileNetSSD
========================

This example shows how to MobileNetv2SSD on the RGB input frame, and how to display both the RGB
This example shows how to run MobileNetv2SSD on the RGB input frame, and how to display both the RGB
preview and the metadata results from the MobileNetv2SSD on the preview.
The preview size is set to 4K resolution
The preview size is set to 4K resolution.

Demo
####
Expand All @@ -20,7 +20,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_5shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_5shave.blob>`__

Source code
Expand Down
4 changes: 2 additions & 2 deletions docs/source/samples/17_video_mobilenet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) and prerecorded video
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_8shave.blob` file) and prerecorded video
(:code:`construction_vest.mp4` file) to work - you can download them
here: `mobilenet.blob <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__
here: `mobilenet-ssd_openvino_2021.2_8shave.blob <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_8shave.blob>`__
and `construction_vest.mp4 <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/construction_vest.mp4>`__

Source code
Expand Down
4 changes: 2 additions & 2 deletions docs/source/samples/18_rgb_encoding_mobilenet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ frames from the same RGB camera that is used for encoding
Pressing Ctrl+C will stop the recording and then convert it using ffmpeg into an mp4 to make it
playable. Note that ffmpeg will need to be installed and runnable for the conversion to mp4 to succeed.

Be careful, this example saves encoded video to your host storage. So if you leave them running,
Be careful, this example saves encoded video to your host storage. So if you leave it running,
you could fill up your storage on your host.

Demo
Expand All @@ -26,7 +26,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
28 changes: 1 addition & 27 deletions docs/source/samples/21_mobilenet_decoding_on_device.rst
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
21 - RGB & MobilenetSSD decoding on device
==========================================

This example shows how to run MobileNetv2SSD on the RGB input frame, and how to display both the RGB
preview and the metadata results from the MobileNetv2SSD on the preview. It's similar to example '08_rgb_mobilenet' except
decoding is done on Myriad instead on the host.


setConfidenceThreshold - confidence threshold above which objects are detected

Demo
####


Setup
#####

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
###########

Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/21_mobilenet_device_side_decoding.py>`__

.. literalinclude:: ../../../examples/21_mobilenet_device_side_decoding.py
:language: python
:linenos:
This demo was migrated to :ref:`08 - RGB & MobilenetSSD`

.. include:: /includes/footer-short.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`tiny-yolo-v3_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/tiny-yolo-v3_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
4 changes: 2 additions & 2 deletions docs/source/samples/23_autoexposure_roi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet.blob>`__
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_5shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_5shave.blob>`__

Usage
#####
Expand Down
5 changes: 1 addition & 4 deletions docs/source/samples/24_opencv_support.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
24 - OpenCV support
=========================
===================

This example shows API which exposes both numpy and OpenCV compatible image types for eaiser usage.
It uses ColorCamera node to retrieve both BGR interleaved 'preview' and NV12 encoded 'video' frames.
Expand All @@ -10,9 +10,6 @@ Setup

.. include:: /includes/install_from_pypi.rst

This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet.blob>`__

Source code
###########

Expand Down
4 changes: 1 addition & 3 deletions docs/source/samples/25_system_information.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
25 - System information
=========================
=======================

This example shows how to get system information (memory usage, cpu usage and temperature) from the board.

Expand All @@ -9,8 +9,6 @@ Setup
.. include:: /includes/install_from_pypi.rst


For additional information, please follow :ref:`Python API installation guide <Installation - Python>`

Source code
###########

Expand Down
4 changes: 2 additions & 2 deletions docs/source/samples/26_1_spatial_mobilenet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
===========================================

This example shows how to run MobileNetv2SSD on the RGB input frame, and how to display both the RGB
preview, detections, depth map and spatial information (X,Y,Z). It's similar to example
preview, detections, depth map and spatial information (X,Y,Z). It's similar to example
'21_mobilenet_decoding_on_device' except it has spatial data.
X,Y,Z coordinates are relative to the center of depth map.

Expand All @@ -18,7 +18,7 @@ Setup
.. include:: /includes/install_from_pypi.rst


This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
6 changes: 3 additions & 3 deletions docs/source/samples/26_2_spatial_mobilenet_mono.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
26.2 - MONO & MobilenetSSD with spatial data
============================================

This example shows how to run MobileNetv2SSD on the rectified right input frame, and
how to display both the preview, detections, depth map and spatial information (X,Y,Z).
This example shows how to run MobileNetv2SSD on the rectified right input frame, and
how to display both the preview, detections, depth map and spatial information (X,Y,Z).
It's similar to example '21_mobilenet_decoding_on_device' except it has spatial data.
X,Y,Z coordinates are relative to the center of depth map.

Expand All @@ -18,7 +18,7 @@ Setup
.. include:: /includes/install_from_pypi.rst


This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
This example also requires MobilenetSDD blob (:code:`mobilenet-ssd_openvino_2021.2_6shave.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
Expand Down
4 changes: 2 additions & 2 deletions docs/source/samples/26_3_spatial_tiny_yolo.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
26.3 - RGB & TinyYolo with spatial data
===========================================
=======================================

This example shows how to run TinyYoloV3 and v4 on the RGB input frame, and how to display both the RGB
preview, detections, depth map and spatial information (X,Y,Z). It's similar to example
preview, detections, depth map and spatial information (X,Y,Z). It's similar to example
'26_1_spatial_mobilenet' except it is running TinyYolo network.
X,Y,Z coordinates are relative to the center of depth map.

Expand Down
6 changes: 1 addition & 5 deletions docs/source/samples/27_spatial_location_calculator.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
27 - Spatial location calculator
================================

This example shows how to retrieve spatial location data (X,Y,Z) on a runtime configurable ROI.
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.
X,Y,Z coordinates are relative to the center of depth map.


Expand All @@ -16,10 +16,6 @@ Setup

.. include:: /includes/install_from_pypi.rst


This example also requires MobilenetSDD blob (:code:`mobilenet.blob` file) to work - you can download it from
`here <https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet-ssd_openvino_2021.2_6shave.blob>`__

Source code
###########

Expand Down
2 changes: 1 addition & 1 deletion examples/01_rgb_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xoutRgb.setStreamName("rgb")
camRgb.preview.link(xoutRgb.input)

# Pipeline defined, now the device is connected to
# Pipeline is defined, now we can connect to the device
with dai.Device(pipeline) as device:
# Start pipeline
device.startPipeline()
Expand Down
4 changes: 2 additions & 2 deletions examples/02_mono_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
xoutRight.setStreamName('right')
camRight.out.link(xoutRight.input)

# Pipeline defined, now the device is connected to
# Pipeline is defined, now we can connect to the device
with dai.Device(pipeline) as device:
# Start pipeline
device.startPipeline()
Expand All @@ -37,7 +37,7 @@
frameRight = None

while True:
# instead of get (blocking) used tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
inLeft = qLeft.tryGet()
inRight = qRight.tryGet()

Expand Down
Loading