RealSense_GrabDepthImage
Captures a Depth image using RealSense.
Syntax
C++
Python
def RealSense_GrabDepthImage( state: RealSense_State, outImage: Image, /, *, inConfigFile: str | None = None, inSerial: str | None = None, inConnectionTimeout: int | None = None, inInputQueueSize: int = 12, inPoints: list[Point2D] | None = None, inRGBSettings: RealSenseRGBConfiguration | None = None, inDepthSettings: RealSenseDepthConfiguration | None = None, inPostProcessingSettings: RealSensePostProcessingFilters | None = None ) -> ( outResult: bool, outDistances: list[float] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | RealSense_State | |||
![]() |
inConfigFile | str | None | None | Configuration file with the .json extension | |
![]() |
inSerial | str | None | None | Device serial number | |
![]() |
inConnectionTimeout | int | None | None | Maximum time to wait for frames in milliseconds | |
![]() |
inInputQueueSize | int | 1 - ![]() |
12 | Capacity of output frames queue |
![]() |
inPoints | list[Point2D] | None | None | Mark the points from which you want to calculate the distance to the camera | |
![]() |
inRGBSettings | RealSenseRGBConfiguration | None | None | Settings for RGB stream | |
![]() |
inDepthSettings | RealSenseDepthConfiguration | None | None | Settings for Depth and Infrared streams | |
![]() |
inPostProcessingSettings | RealSensePostProcessingFilters | None | None | Post-processing filters to choose | |
![]() |
outDistances | list[float] | Distance from every point in meters | ||
![]() |
outImage | Image | Output image |




