Skip to content

[Issue] Astra 2 - Hardware D2C Alignment fails (640x480 Depth not supported) #187

@ozsoyu

Description

@ozsoyu

Hello Orbbec Team,

I am developing a multi-camera system using Orbbec Astra 2 and Gemini 335L cameras with pyorbbecsdk on Windows 10/11.

My goal is to enable Hardware D2C (Depth to Color) Alignment (OBAlignMode.HW_MODE) on the Astra 2 camera to fix parallax/offset issues on facial landmarks.

The Problem:
To use HW_MODE, I try to set the Depth resolution to 640x480 to match the RGB resolution. However, the SDK throws an error stating that this profile is not supported or does not support hardware D2C.

Code Snippet:

pipeline = Pipeline(device)
config = Config()

# 1. Color Stream
config.enable_stream(OBSensorType.COLOR_SENSOR, 640, 480, 30, OBFormat.RGB)

# 2. Depth Stream (Trying to force 640x480 for Align)
try:
    depth_profile = profiles.get_video_stream_profile(640, 480, OBFormat.Y16, 30)
    config.enable_stream(depth_profile)
except Exception as e:
    print(f"640x480 Depth Failed: {e}")
    # Fallback to Native 400x300
    config.enable_stream(OBSensorType.DEPTH_SENSOR, 400, 300, 30, OBFormat.Y16)

# 3. Hardware Alignment
try:
    config.set_align_mode(OBAlignMode.HW_MODE)
    pipeline.start(config)
except Exception as e:
    print(f"Start Failed: {e}")
Error Log:
code
Code
Cam 3: 640x480 Depth Failed! Invalid input, No matched video stream profile found!
Camera failed to start: Current stream profile is not support hardware d2c process
My Questions:
Does Astra 2 officially support Hardware D2C Alignment (HW_MODE)?
If yes, which Depth Resolution and Format pair must be used to enable it? (It seems 640x480 Depth is not available).
Is there a specific Firmware Version required to unlock 640x480 Depth or HW Alignment for Astra 2?
Environment:
OS: Windows 10/11
SDK: pyorbbecsdk (Latest)
Device: Orbbec Astra 2
Thank you for your support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions