-
Notifications
You must be signed in to change notification settings - Fork 194
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 #795 from luxonis/develop
Release v2.21.0.0
- Loading branch information
Showing
44 changed files
with
407 additions
and
120 deletions.
There are no files selected for viewing
Submodule depthai-core
updated
59 files
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import cv2 | ||
import depthai as dai | ||
from json import dump | ||
from os.path import exists | ||
|
||
# Connect to device and start pipeline | ||
with dai.Device() as device: | ||
|
||
if device.hasCrashDump(): | ||
crashDump = device.getCrashDump() | ||
commitHash = crashDump.depthaiCommitHash | ||
deviceId = crashDump.deviceId | ||
|
||
json = crashDump.serializeToJson() | ||
|
||
i = -1 | ||
while True: | ||
i += 1 | ||
destPath = "crashDump_" + str(i) + "_" + deviceId + "_" + commitHash + ".json" | ||
if exists(destPath): | ||
continue | ||
|
||
with open(destPath, 'w', encoding='utf-8') as f: | ||
dump(json, f, ensure_ascii=False, indent=4) | ||
|
||
print("Crash dump found on your device!") | ||
print(f"Saved to {destPath}") | ||
print("Please report to developers!") | ||
break | ||
else: | ||
print("There was no crash dump found on your device!") | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import depthai as dai | ||
|
||
device = dai.Device() | ||
|
||
imuType = device.getConnectedIMU() | ||
imuFirmwareVersion = device.getIMUFirmwareVersion() | ||
print(f"IMU type: {imuType}, firmware version: {imuFirmwareVersion}") |
Empty file.
Empty file.
Empty file.
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
Empty file.
Empty file.
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.