-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1110 from luxonis/develop
DepthAI SDK v1.13.0
- Loading branch information
Showing
111 changed files
with
3,494 additions
and
3,347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"platform": "pc", | ||
"frame_shape": [720, 1280], | ||
"config": { | ||
"output": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
{ | ||
"platform": { | ||
"type": "string", | ||
"enum": [ | ||
"pc", | ||
"robothub" | ||
] | ||
}, | ||
"frame_shape": { | ||
"type": "array", | ||
"items": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from depthai_sdk import OakCamera | ||
|
||
with OakCamera() as oak: | ||
color = oak.create_camera('color', encode='h265') | ||
|
||
oak.visualize(color.out.encoded, fps=True, scale=2/3) | ||
# By default, it will stream non-encoded frames | ||
oak.visualize(color, fps=True, scale=2/3) | ||
oak.start(blocking=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from depthai_sdk import OakCamera | ||
|
||
with OakCamera() as oak: | ||
cams = oak.create_all_cameras() | ||
oak.visualize(cams) | ||
cams = oak.create_all_cameras(resolution='max') | ||
oak.visualize(cams, fps=True) | ||
oak.start(blocking=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
from depthai_sdk import OakCamera | ||
|
||
with OakCamera(rotation=90) as oak: | ||
color = oak.create_camera('color', resolution='1080p') | ||
left = oak.create_camera('left', resolution='400p') | ||
right = oak.create_camera('right', resolution='400p') | ||
oak.visualize([color, left, right], fps=True) | ||
all_cams = oak.create_all_cameras() | ||
oak.visualize(all_cams, fps=True) | ||
oak.start(blocking=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
import cv2 | ||
from depthai_sdk import OakCamera | ||
from depthai_sdk.classes.packets import PointcloudPacket, FramePacket | ||
import rerun as rr | ||
import subprocess | ||
import time | ||
|
||
subprocess.Popen(["rerun", "--memory-limit", "200MB"]) | ||
time.sleep(1) # Wait til rerun spins up | ||
rr.init("Rerun ", spawn=False) | ||
rr.connect() | ||
|
||
def callback(packet: PointcloudPacket): | ||
colors = packet.color_frame.getCvFrame()[..., ::-1] # BGR to RGB | ||
rr.log_image('Color Image', colors) | ||
points = packet.points.reshape(-1, 3) | ||
rr.log_points("Pointcloud", points, colors=colors.reshape(-1, 3)) | ||
|
||
|
||
with OakCamera() as oak: | ||
pcl = oak.create_pointcloud() | ||
oak.callback(pcl, callback=callback) | ||
color = oak.camera('color') | ||
stereo = oak.create_stereo() | ||
stereo.config_stereo(align=color) | ||
pcl = oak.create_pointcloud(stereo=stereo, colorize=color) | ||
oak.visualize(pcl, visualizer='depthai-viewer') | ||
oak.start(blocking=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.