Repository navigation
5.4.0
5.4.0
https://www.stereolabs.com/developers/release/5.4
5.4.0
ZED SDK 5.4 makes the built-in NEURAL depth models noticeably faster: an optimized inference path delivers up to 20% quicker depth inference and ~15% lower GPU load on Jetson Thor — with gains carrying over to Orin and desktop GPUs, and the largest wins on heavier pipelines (more cameras, NEURAL PLUS, or concurrent recording) — all with outputs unchanged. The release also opens the depth pipeline to custom algorithms through the experimental DEPTH_MODE::CUSTOM: an externally computed disparity or depth map — for example from a custom stereo network — can be fed to the SDK each frame, and the full pipeline (point cloud, spatial mapping, object detection, plane detection) then runs on the ingested data. A companion stereo retrieveTensor overload pre-processes both rectified views in a single fused GPU pass, producing inference-ready tensors that bind directly to frameworks such as TensorRT.
Recording and streaming gain a leaner path. SVO recording and outbound streaming now run entirely from Camera::read(), and stereo rectification is performed on demand, so pure recording or streaming pipelines no longer pay its CPU/GPU cost. A new polling API retrieves encoded H264/H265 packets directly — from incoming, outgoing, or recorded streams — without a second encoding session, and new rectified LEFT_NV12 / RIGHT_NV12 views feed hardware encoders without an extra color conversion.
This release also extends the platform reach with experimental support for ARM desktop systems (SBSA: NVIDIA DGX Spark, GH200, and ARM CUDA servers). A new monotonic MONOTONIC_RAW_CLOCK timestamp option yields timestamps immune to both NTP/PTP step and frequency adjustments, the per-camera lens distortion model is now exposed through LENS_DISTORTION_MODEL, and SLAM GEN_3 reports per-pose confidence. Numerous stability and accuracy fixes round out the release across depth, streaming, calibration, and USB camera handling.
SDK
General
Features / Improvements
- Optimized the NEURAL depth models' inference path, improving both runtime and load. Depth inference is up to 20% faster and GPU load is reduced by ~15% on Jetson Thor; gains carry over to Orin and desktop GPUs as well, though the magnitude varies by platform. The improvement scales with pipeline load — heavier workloads (more cameras, more demanding models such as NEURAL PLUS, or recording running on top) tend to see the largest gains. For example, 4 cameras running NEURAL depth on Jetson Thor now reach 60 FPS (up from 53). Outputs are unchanged.
- (Experimental) Added
sl::DEPTH_MODE::CUSTOM: feed your own externally computed disparity or depth map (e.g. from a custom stereo network) to the SDK each frame via the newsl::Camera::ingestCustomDepth(), called betweenCamera::read()andCamera::grab(). The full pipeline then runs on the ingested data (point cloud, spatial mapping, object detection, plane detection, etc.). Disparity or metric depth is accepted at any resolution, in CPU or GPU memory, with an optional confidence map for gradedconfidence_thresholdfiltering. Available in the C++, C, Python and C# APIs. As an experimental feature, downstream modules may not be fully robust to arbitrary custom depth/confidence input and can produce unexpected behavior or reduced accuracy. - Added a stereo overload of
sl::Camera::retrieveTensor(Tensor& left, Tensor& right, const TensorParameters&): both rectified views are pre-processed for inference (resize, color conversion, layout, normalization) in a single fused GPU pass, producing densely packed tensors that can be bound directly as network inputs (e.g. TensorRT). Designed for stereo networks and the newDEPTH_MODE::CUSTOM, usable betweenread()andgrab(). C++ only. - Added a new
sl::TIMESTAMP_CLOCK::MONOTONIC_RAW_CLOCKvalue to the process-wide timestamp clock selector, backed by LinuxCLOCK_MONOTONIC_RAW. LikeMONOTONIC_CLOCK, it is immune to NTP/PTP step adjustments, but it is also not subject to NTP/PTP frequency slewing (adjtimex). Useful when correlating SDK timestamps with free-running hardware counters or with devices that are not time-disciplined by the host. Available in C++, C, Python and C# wrappers. Switch to it before opening any camera withsl::Camera::setTimestampClock(sl::TIMESTAMP_CLOCK::MONOTONIC_RAW_CLOCK). - Added a new polling API to retrieve encoded H264/H265 video packets directly from the SDK, without re-encoding. Exposed via
sl::Camera::retrieveEncodedStreamPacket(EncodedStreamPacket&, ENCODED_STREAM_SOURCE)and the introspection methodsl::Camera::getEncodedStreamsInfo()(also available onsl::CameraOne). Three sources are addressable on a single camera:RECEIVING(incoming network stream when opened withINPUT_TYPE::STREAM),SENDING(outgoingenableStreaming()bitstream, captured before RTP fragmentation), andRECORDING(the SVO encoder output). Each packet is delivered as Annex-B NAL units (SPS/PPS — and VPS for HEVC — inlined in front of every IDR), so writing successive packets to a.h264/.hevcfile produces a self-contained stream playable by any standard player. The tap drops every packet until the first natural IDR arrives, so the first packet returned is always a keyframe; onRECEIVINGstreams this can mean a wait of up to one GOP (~2 s with the SDK default) before the first packet is available. Common use case: muxing the SDK's outgoing or recorded stream into a custom container (mp4, mkv, etc.) without paying a second encoding session. Works withH264,H265,H264_LOSSLESS, andH265_LOSSLESSrecording modes. - SVO recording and outbound streaming now run entirely from
sl::Camera::read(), no longer requiring a subsequentsl::Camera::grab()to push a frame. - Stereo image rectification is now performed on demand instead of on every frame, eliminating its CPU/GPU cost in pure recording or streaming pipelines where rectified images are never consumed.
- The raw (unrectified) calibration values are now refined by the self-calibration algorithm. As a result, the values reported at runtime may differ slightly from those in your calibration file. These refined values guarantee a better epipolar constraint.
- Added rectified NV12 output to
sl::Camera::retrieveImagevia the newsl::VIEW::LEFT_NV12andsl::VIEW::RIGHT_NV12(also available onsl::CameraOne). These return the rectified image directly as NV12 (YUV 4:2:0 semi-planar), so you no longer have to retrieve BGRA and re-convert before feeding a hardware H264/H265 encoder. Unlike the existingLEFT_NV12_UNRECTIFIED(native-resolution, GPU-only zero-copy), the rectified variant supports resizing (even dimensions) and both CPU and GPU memory. Available in the C++, C, Python and C# wrappers. - Exposed the lens distortion model used by each camera through a new
sl::LENS_DISTORTION_MODELenum (RAD_TAN,FISHEYE,PINHOLE) and a newCameraParameters::lens_distortion_modelfield. Raw/unrectified parameters reportRAD_TANorFISHEYE, rectified parameters reportPINHOLE, so applications can now tell how the reported intrinsics and distortion coefficients should be interpreted instead of having to guess from the coefficient values. Available for stereo and ZED One cameras across the C++, C, Python and C# APIs.
Bug Fixes
- Fixed local streaming: a receiver restarted after an unclean disconnect (ctrl-c, crash, container stop) could silently stop receiving frames shortly after. Also fixed a thread-safety issue that could destabilize the sender when receivers join or leave.
- Fixed H26x streaming on Jetson Nano.
- Fixed H26x (H264/H265) SVO2 recording and playback on devices without a hardware video encoder, which previously failed.
- Fixed SVO recording of a ZED One opened from a local stream, which previously failed with an
SVO_UNSUPPORTED_COMPRESSIONerror and could crash. Local streams use an uncompressed transport with no encoded bitstream to copy, so recording now transcodes automatically (as it already did for stereo cameras). - Fixed camera exposure and gain being saved as zero in SVO files recorded from a stream (all cameras), and in live ZED One SVO2 recordings.
- Improved depth confidence accuracy: fixed two sampling bugs in the depth confidence computation. Depth values are unchanged; confidence is now more reliable, and slightly more pixels pass a given confidence threshold.
- Improved fisheye self-calibration accuracy: fixed an incorrect distortion model that biased the calibration on fisheye cameras.
- Fixed corruption on the right edge of the depth image in FILL mode at some non-standard resolutions.
- Fixed
retrieveMeasure(MEASURE::NORMALS)occasionally mis-flagging valid normals. - Fixed several out-of-bounds GPU memory accesses and a thread-synchronization issue in the depth pipeline, improving stability. Outputs are unchanged.
- Fixed IMU thermal compensation using an out-of-range or invalid temperature reading, which could corrupt the IMU fusion in VIO.
- Improved USB camera detection and reopen reliability on Windows. Cameras no longer intermittently fail to be re-detected after a close/reopen cycle, and
Camera::getDeviceList()now reads the serial number through a lightweight probe instead of fully opening and streaming each camera — repeated enumeration no longer leaves devices in a bad state. - USB cameras already in use are no longer missing from
Camera::getDeviceList(): they are now listed asNOT_AVAILABLEwith their path and model populated instead of being silently dropped. On Linux, opening a busy camera now correctly reports it as in-use instead of failing with a generic error. - Fixed a freeze followed by an automatic camera recovery (reboot) that could occur when rapidly changing manual exposure or gain on USB cameras (e.g. dragging a slider). Unchanged sensor register writes are now skipped, so partial updates can no longer lock up the image sensor.
- Camera video settings get/set now degrade gracefully when a USB camera becomes unavailable, instead of crashing (Windows) or accepting values against a bogus fallback range (Linux).
- Fixed leaks of the V4L2 device descriptor on failed
Camera::open()attempts on Linux, which could keep the camera busy across retries. - Updated udev rules (
99-slabs.rules): sensor (HID) access now works when the camera enumerates on a USB controller other than bus 1 (e.g. Jetson AGX Orin), and the i2c rules for ZED-GMSL now cover every i2c adapter regardless of numbering.
Platform
- Added experimental support for ARM desktop platforms (SBSA): NVIDIA DGX Spark, GH200, and ARM CUDA servers. A dedicated installer (
ZED_SDK_Ubuntu24_sbsa_cuda13.0_tensorrt10.16_*, TensorRT libraries bundled) provides the desktop feature set on aarch64. Known limitation: Live USB camera support on these platforms is still experimental and may not work reliably — on the NVIDIA DGX Spark systems we've tested, ZED USB cameras are currently not functional. Behavior may differ on other GB10-based systems or with future system updates; we're investigating with the platform vendor. ZED X (GMSL) cameras are not supported. SVO playback and network‑streamed inputs are unaffected.
SLAM
Features / Improvements
- Pose confidence is now available when using the GEN_3 algorithm — access it via
sl::Pose::pose_confidenceto filter or weight tracking results by reliability.
Bug Fixes
- Fixed
POSITIONAL_TRACKING_MODE::GEN_3failing to start whenPositionalTrackingParameters::enable_imu_fusionwas set totrue.
ROS2
Features / Improvements
- Reworked disparity map publishing.
- Improved point cloud publishing by eliminating one full-cloud copy per published frame (~44 MB at HD2K, proportional at lower resolutions) and removing a second full-cloud CPU allocation.
- Documented Isaac ROS 3.2.x as a prerequisite in the ZED ROS 2 documentation.
Bug Fixes
- Fixed the node blocking when the SVO frame service is called while positional tracking is enabled.
- Fixed disparity map data published with the wrong pixel value sign.
Wrappers
Isaac Sim
- Added support for the ZED X Nano camera.
- Changed the default camera resolution to SVGA for better out-of-the-box performance.
Tools
Bug Fixes
- ZED Studio: fixed periodic FPS drops while viewing GMSL (ZED X) cameras.
- ZED Depth Viewer: fixed a freeze when rapidly dragging the exposure slider, and made camera reopen more reliable (resources are now always released on close, even if the capture thread never started).
Samples
- Added
depth sensing/custom depth(C++) — twoDEPTH_MODE::CUSTOMsamples showing the read / external compute / ingest / grab flow, each with a 3D point cloud viewer, an interactive confidence threshold and a graded confidence input:opencv_sgbm(CPUcv::StereoSGBMat half resolution, texture-based confidence, ideal to validate the plumbing without a network) andtensorrt_stereo_onnx(fully GPU-resident: stereoretrieveTensortensors bound directly to TensorRT, zero host synchronization across the frame, disparity-derived edge/occlusion confidence; the bundledget_model.pydownloads a ready-to-run CREStereo by default or a prebuilt Fast-FoundationStereo ONNX). - Added
camera streaming/sender_record_h264(C++) — easy onramp showing how to capture the SDK's outgoing streaming bitstream to a standard.h264or.hevcfile while streaming over UDP as usual. - Added
camera streaming/encoded_passthrough(C++) — multi-source reference exercising every combination ofRECEIVING,SENDING, andRECORDINGconcurrently, including mixed codecs (e.g. H265 in, H264 out) and re-streaming through the SDK.
Documentation
- Added an AI-agent-oriented documentation entry point at the root of the documentation website, giving LLM-based coding assistants a structured overview of the SDK to answer ZED SDK questions more reliably.