Back to Aurora Vision Library Lite website

You are here: Start » Camera Support » RealSense » RealSense_GrabColorImage

RealSense_GrabColorImage


Header: ThirdPartySdk.h
Namespace: avl

Captures a RGB image using RealSense.

Syntax

bool avl::RealSense_GrabColorImage
(
	RealSense_State& ioState,
	const atl::Optional<atl::File>& inConfigFile,
	const atl::Optional<atl::String>& inSerial,
	atl::Optional<int> inConnectionTimeout,
	int inInputQueueSize,
	const atl::Optional<avl::RealSenseRGBConfiguration>& inRGBSettings,
	const atl::Optional<avl::RealSenseDepthConfiguration>& inDepthSettings,
	const atl::Optional<avl::RealSensePostProcessingFilters>& inPostProcessingSettings,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
Input will be modified ioState RealSense_State& Object used to maintain state of the function.
Input value inConfigFile const Optional<File>& NIL Configuration file with the .json extension
Input value inSerial const Optional<String>& NIL Device serial number
Input value inConnectionTimeout Optional<int> NIL Maximum time to wait for frame in milliseconds
Input value inInputQueueSize int 1 - 12 Capacity of output frames queue
Input value inRGBSettings const Optional<RealSenseRGBConfiguration>& NIL Settings for RGB stream
Input value inDepthSettings const Optional<RealSenseDepthConfiguration>& NIL Settings for Depth and Infrared streams
Input value inPostProcessingSettings const Optional<RealSensePostProcessingFilters>& NIL Post-processing filters to choose
Output value outImage Image& Output image

Remarks

Camera Setup

First, make sure that the camera is connected to the USB3 port. It is advisable to use RealSense_StartAcquisition filter and setup inRGBSettings, inDepthSettings, inPostProcessingSettings with proper values. Some values might not be set to values the user expects and acquisition will fail or wait infinitely.

Camera identification

When there is only one RealSense camera connected, the field inSerial can be set to Auto. In this situation, the first available camera will be used.

inSerial can be used to pick one camera connected to the computer, you can check the camera's serial number, for example, in the manufacturer's Intel RealSense Viewer application.

Camera driver software

This filter is intended to cooperate with cameras using their vendor's SDK. In order to connect with the camera, it is required to install Intel RealSense SDK 2.0 (v2.55.1).

Intel RealSense SDK can be downloaded from the following website: https://github.com/IntelRealSense/librealsense/releases/tag/v2.55.1

Supported Intel RealSense SDK version for Aurora Vision Studio usage is 2.55.1.

Environment variable to the .dll file is not set automatically after SDK installation. Manual configuration of this variable may be a requirement. Failure to meet these requirements may result in unexpected termination of the application.

If the SDK was installed in the default location, the following folder should be indicated in the environment variable: "C:\Program Files (x86)\Intel RealSense SDK 2.0\bin\x64".

You may need to restart your computer after installing the SDK.

Support limitations

Filters were tested on the model: Intel RealSense D455. For other models in the series, the filters may not work properly or will not have additional functionalities.

See Also