-
Notifications
You must be signed in to change notification settings - Fork 204
Release v2.25.0.0 #993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release v2.25.0.0 #993
Changes from 19 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
017beae
Initial pointcloud implementation
9c6a5ce
Merge remote-tracking branch 'origin/develop' into HEAD
70b821a
Update core
be16a68
Merge remote-tracking branch 'origin/develop' into HEAD
855e020
Merge pull request #939 from luxonis/main
moratom a6963c9
Merge branch 'develop' of github.com:luxonis/depthai-python into poin…
asahtik 1da4317
Fixed large buffer processing in MessageGroups
asahtik fbb9e3d
Added PointCloudDataBindings
asahtik 4516699
Bump core
asahtik ac9ea49
Merge pull request #945 from luxonis/msg_grp_bugfix
asahtik 369c01a
clangformat
asahtik 0517a4d
Run HIL tests after all wheels are available
jakgra 4ff848c
Make notify hil workflow depend only on builds it needs
jakgra 845880b
Bugfixes, added python pointcloud visualization example with open3d
asahtik 50a6485
Update core
8545d25
Update core
8c1a729
Merge pull request #956 from luxonis/bootloader_watchdog_bugfix
moratom 4802dfa
Merge pull request #950 from luxonis/run_hil_workflow_after_build
jakgra 54e8575
Added rgb pointcloud capability
asahtik c21f783
Revert "Added rgb pointcloud capability"
asahtik fba5559
Bump core
asahtik e357a76
Revert shared
asahtik d1d3754
Bump core
asahtik dbb1d9a
Sparse pointcloud bindings
asahtik c6c2032
Bump core
asahtik 72b0b72
[RVC2] Added getStereoPairs and getAvailableStereoPairs API (#959)
zrezke 30630ef
Added c++ tests for pointcloud
asahtik bea383e
Add intensity output
whoactuallycares adbd8c7
Bump core
asahtik 36abd80
Merge pull request #967 from luxonis/tof_intensity
whoactuallycares cbe0c76
Added ability to set the lens position via a float, to enable a more …
zrezke 2a4bff2
Update depthai-core
whoactuallycares ba29e0a
Merge pull request #977 from luxonis/tof_intensity
moratom 99fca06
FW: fix CAM_C failing to stream in certain cases,
alex-luxonis c682f16
Added the initial version of the depthai binary. (#979)
zrezke c014e27
OAK-T Support (#957)
zrezke 53601fb
Merge branch 'develop' of github.com:luxonis/depthai-python into poin…
asahtik 393aa6d
Example fixes & improvements, bump fw
asahtik 57c36aa
Clangformat
asahtik 9f67ed8
Bugfix
asahtik 8b8a4da
Default cam test (#845)
zrezke ebca0f2
Reduce amount of pointcloud copying
asahtik ee001db
Make cam_test.py available through the depthai binary. (#983)
zrezke b592eeb
Fix tests
asahtik 4af09fd
Add colorized example for pointcloud
8bfa675
Implemented transformation matrix for pointcloud
asahtik daa90fb
Merge branch 'pointcloud' of github.com:luxonis/depthai-python into p…
asahtik 1d8d790
Merge pull request #961 from luxonis/pointcloud
asahtik 5248efe
Fixed windows build
asahtik 3dcae95
Optimized getPoints
asahtik 42c3a2d
Minor fixes
asahtik 6a26eee
Enhance camera features (#987)
zrezke 00f0d32
FW: -fix `setAutoExposureLimit` flicker during AF lens move,
alex-luxonis 9cb7719
Merge pull request #989 from luxonis/pcl_fix_build
moratom e37db4f
Improve the pointcloud example to work with 30FPS
b505473
Change the example to camel case for consistency
50e3683
Minor fixes
ae4fa01
Merge pull request #991 from luxonis/improve_pointcloud_example
moratom 7b33b42
Merge pull request #990 from luxonis/main
moratom 37f6553
Print a nice error of Open3D is not installed
11b925f
Update the handling for uninstalled open3d
a2e419e
Merge pull request #992 from luxonis/improve_pointcloud_example
moratom e13e231
Bump version to 2.25.0.0
d3917a7
Add manylinux wheels for 32 bit arm
a03c585
Add only the wheel for bookworm
8402008
Don't install global packages
5a8a85d
Add missing PCL API & change th RH system
a579364
Update FW to develop
2b24633
Merge remote-tracking branch 'origin/main' into release_v2.25.0.0
0465260
Update core to main
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Submodule depthai-core
updated
20 files
Empty file.
This file contains hidden or 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,20 @@ | ||
| def cli(): | ||
| import argparse | ||
| import sys | ||
| import depthai as dai | ||
|
|
||
| parser = argparse.ArgumentParser(description="DepthAI CLI") | ||
| parser.add_argument("-v", "--version", action="store_true", help="Print version and exit.") | ||
| parser.add_argument("-l", "--list-devices", action="store_true", help="List connected devices.") | ||
|
|
||
| args = parser.parse_args() | ||
| if args.version: | ||
| print(dai.__version__) | ||
| elif args.list_devices: | ||
| print(dai.Device.getAllConnectedDevices()) | ||
| elif len(sys.argv) == 1: | ||
| parser.print_help() | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| cli() |
This file contains hidden or 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,107 @@ | ||
| import depthai as dai | ||
| import cv2 | ||
| import numpy as np | ||
|
|
||
| mouseX, mouseY = 0, 0 | ||
|
|
||
|
|
||
| def onMouse(event, x, y, *args): | ||
| global mouseX, mouseY | ||
| mouseX = x | ||
| mouseY = y | ||
|
|
||
|
|
||
| device = dai.Device() | ||
| pipeline = dai.Pipeline() | ||
|
|
||
| # Thermal camera | ||
| thermalCam = pipeline.create(dai.node.Camera) | ||
| width, height = -1, -1 | ||
| thermalFound = False | ||
| for features in device.getConnectedCameraFeatures(): | ||
| if dai.CameraSensorType.THERMAL in features.supportedTypes: | ||
| thermalFound = True | ||
| thermalCam.setBoardSocket(features.socket) | ||
| width, height = features.width, features.height | ||
| break | ||
| if not thermalFound: | ||
| raise RuntimeError("No thermal camera found!") | ||
| thermalCam.setPreviewSize(width, height) | ||
|
|
||
| # Output raw: FP16 temperature data (degrees Celsius) | ||
| xoutRaw = pipeline.create(dai.node.XLinkOut) | ||
| xoutRaw.setStreamName("thermal_raw") | ||
| thermalCam.raw.link(xoutRaw.input) | ||
|
|
||
| # Output preview,video, isp: RGB or NV12 or YUV420 thermal image. | ||
| xoutImage = pipeline.create(dai.node.XLinkOut) | ||
| xoutImage.setStreamName("image") | ||
| thermalCam.preview.link(xoutImage.input) | ||
| device.startPipeline(pipeline) | ||
|
|
||
| qRaw = device.getOutputQueue("thermal_raw", 2, False) | ||
| qImage = device.getOutputQueue("image", 2, False) | ||
|
|
||
|
|
||
| RAW_WINDOW_NAME = "temperature" | ||
| IMAGE_WINDOW_NAME = "image" | ||
| # Scale 4x and position one next to another | ||
| cv2.namedWindow(RAW_WINDOW_NAME, cv2.WINDOW_NORMAL) | ||
| cv2.namedWindow(IMAGE_WINDOW_NAME, cv2.WINDOW_NORMAL) | ||
| cv2.moveWindow(RAW_WINDOW_NAME, 0, 0) | ||
| cv2.resizeWindow(RAW_WINDOW_NAME, width * 4, height * 4) | ||
| cv2.moveWindow(IMAGE_WINDOW_NAME, width * 4, 0) | ||
| cv2.resizeWindow(IMAGE_WINDOW_NAME, width * 4, height * 4) | ||
| cv2.setMouseCallback(RAW_WINDOW_NAME, onMouse) | ||
| cv2.setMouseCallback(IMAGE_WINDOW_NAME, onMouse) | ||
|
|
||
| while True: | ||
| inRaw = qRaw.get() | ||
| inImg = qImage.get() | ||
|
|
||
| # Retrieve one point of fp16 data | ||
| frame = inRaw.getCvFrame().astype(np.float32) | ||
| colormappedFrame = cv2.normalize(frame, None, 0, 255, cv2.NORM_MINMAX, cv2.CV_8U) | ||
| colormappedFrame = cv2.applyColorMap(colormappedFrame, cv2.COLORMAP_MAGMA) | ||
| if ( | ||
| mouseX < 0 | ||
| or mouseY < 0 | ||
| or mouseX >= frame.shape[1] | ||
| or mouseY >= frame.shape[0] | ||
| ): | ||
| mouseX = max(0, min(mouseX, frame.shape[1] - 1)) | ||
| mouseY = max(0, min(mouseY, frame.shape[0] - 1)) | ||
| textColor = (255, 255, 255) | ||
| # Draw crosshair | ||
| cv2.line( | ||
| colormappedFrame, | ||
| (mouseX - 10, mouseY), | ||
| (mouseX + 10, mouseY), | ||
| textColor, | ||
| 1, | ||
| ) | ||
| cv2.line( | ||
| colormappedFrame, | ||
| (mouseX, mouseY - 10), | ||
| (mouseX, mouseY + 10), | ||
| textColor, | ||
| 1, | ||
| ) | ||
| # Draw deg C | ||
| text = f"{frame[mouseY, mouseX]:.2f} deg C" | ||
| putTextLeft = mouseX > colormappedFrame.shape[1] / 2 | ||
| cv2.putText( | ||
| colormappedFrame, | ||
| text, | ||
| (mouseX - 100 if putTextLeft else mouseX + 10, mouseY - 10), | ||
| cv2.FONT_HERSHEY_SIMPLEX, | ||
| 0.5, | ||
| textColor, | ||
| 1, | ||
| ) | ||
| cv2.imshow(RAW_WINDOW_NAME, colormappedFrame) | ||
|
|
||
| cv2.imshow(IMAGE_WINDOW_NAME, inImg.getCvFrame()) | ||
|
|
||
| if cv2.waitKey(1) == ord("q"): | ||
| break |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.