Skip to content

Commit 3c51927

Browse files
Merge pull request #942 from luxonis/develop
DepthAI SDK 1.9.5
2 parents 7cc38f3 + ebaeaf7 commit 3c51927

File tree

100 files changed

+3515
-1205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+3515
-1205
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ share/python-wheels/
3030
MANIFEST
3131
*.idea
3232
# DepthAI-Specific
33+
dataset/
3334
dataset*
3435
.fw_cache/
3536
depthai.calib

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[submodule "depthai_sdk/src/depthai_sdk/components/integrations/depthai_pipeline_graph"]
2-
path = depthai_sdk/src/depthai_sdk/components/integrations/depthai_pipeline_graph
1+
[submodule "depthai_sdk/src/depthai_sdk/integrations/depthai_pipeline_graph"]
2+
path = depthai_sdk/src/depthai_sdk/integrations/depthai_pipeline_graph
33
url = https://github.com/luxonis/depthai_pipeline_graph
44
[submodule "resources/depthai_boards"]
55
path = resources/depthai_boards

depthai_sdk/MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include src/depthai_sdk/classes/*.py
22
recursive-include src/depthai_sdk/components *.py
3+
recursive-include src/depthai_sdk/integrations *.py
34
include src/depthai_sdk/managers/*.py
45

56
recursive-include src/depthai_sdk/nn_models handler.py
@@ -10,5 +11,7 @@ include src/depthai_sdk/oak_outputs/*.py
1011
include src/depthai_sdk/oak_outputs/xout/*.py
1112
include src/depthai_sdk/readers/*.py
1213
recursive-include src/depthai_sdk/recorders *.py
14+
include src/depthai_sdk/tracking/*.py
1315
include src/depthai_sdk/visualize/*.py
14-
include requirements.txt
16+
include requirements.txt
17+
include src/depthai_sdk/logger.py

depthai_sdk/docs/source/features/ai_models.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ Both of the models above are supported by this SDK, so they will be downloaded a
9191
* - ``yolov6n_coco_640x640``
9292
- `DMZ <https://github.com/luxonis/depthai-model-zoo/tree/main/models/yolov6n_coco_640x640>`__
9393
- 26
94+
* - ``yolov6nr3_coco_640x352``
95+
- `DMZ <https://github.com/luxonis/depthai-model-zoo/tree/main/models/yolov6nr3_coco_640x352>`__
96+
- 32
97+
* - ``yolov7tiny_coco_640x352``
98+
- `DMZ <https://github.com/luxonis/depthai-model-zoo/tree/main/models/yolov7tiny_coco_640x352>`__
99+
- 23
100+
* - ``yolov7tiny_coco_416x416``
101+
- `DMZ <https://github.com/luxonis/depthai-model-zoo/tree/main/models/yolov7tiny_coco_416x416>`__
102+
- 29
103+
* - ``yolov8n_coco_640x352``
104+
- `DMZ <https://github.com/luxonis/depthai-model-zoo/tree/main/models/yolov8n_coco_640x352>`__
105+
- 22
94106

95107

96108
``*`` - FPS was measured using only color camera (1080P) and 1 NN using callbacks (without visualization)

depthai_sdk/examples/CameraComponent/cam_ffc.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
with OakCamera() as oak:
44
cama = oak.create_camera('cama,c', resolution='1200p')
5+
cama.config_color_camera(isp_scale=(2,3))
56
camb = oak.create_camera('camb,c', resolution='1200p')
7+
camb.config_color_camera(isp_scale=(2,3))
68
camc = oak.create_camera('camc,c', resolution='1200p')
7-
# stereo = oak.create_stereo(left=left, right=right)
9+
camc.config_color_camera(isp_scale=(2,3))
10+
11+
stereo = oak.create_stereo(left=camb, right=camc)
12+
stereo.config_undistortion(M2_offset=0)
13+
14+
oak.visualize([stereo, camc, cama, stereo.out.rectified_left], fps=True)
815

9-
oak.visualize([cama, camb,camc], fps=True, scale=2/3)
1016
oak.start(blocking=True)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from depthai_sdk import OakCamera
2+
3+
with OakCamera() as oak:
4+
cams = oak.create_all_cameras()
5+
oak.visualize(cams)
6+
oak.start(blocking=True)

depthai_sdk/examples/NNComponent/custom_decode.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99

1010
def decode(nn_data: NNData) -> Detections:
11+
"""
12+
Custom decode function for the NN component. Decode function has to accept NNData argument.
13+
The return type should preferably be a class that inherits from depthai_sdk.classes.GenericNNOutput,
14+
which support visualization. But this is not required, i.e. the function can return arbitrary type.
15+
16+
The decoded output can be accessed from the packet object in the callback function via packet.img_detections.
17+
"""
1118
layer = nn_data.getFirstLayerFp16()
1219
results = np.array(layer).reshape((1, 1, -1, 7))
1320
dets = Detections(nn_data)

depthai_sdk/examples/NNComponent/deeplabv3_person.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
color = oak.create_camera('color', resolution='1080p')
66

77
nn = oak.create_nn('deeplabv3_person', color)
8-
nn.config_nn(resize_mode='letterbox')
8+
nn.config_nn(resize_mode='letterbox') # Options: 'letterbox', 'crop', 'stretch'
99

1010
visualizer = oak.visualize([nn, nn.out.passthrough], fps=True)
1111
oak.start(blocking=True)

depthai_sdk/examples/NNComponent/human_pose.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
with OakCamera() as oak:
44
color = oak.create_camera('color')
5+
# List of models that are supported out-of-the-box by the SDK:
6+
# https://docs.luxonis.com/projects/sdk/en/latest/features/ai_models/#sdk-supported-models
57
human_pose_nn = oak.create_nn('human-pose-estimation-0001', color)
8+
69
oak.visualize(human_pose_nn)
710
oak.start(blocking=True)

depthai_sdk/examples/NNComponent/mobilenet.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)