Back to Aurora Vision Library website

You are here: Start » Function Reference » Camera Support » STC » STC_GrabImage

STC_GrabImage


Header: ThirdPartySdk.h
Namespace: avl
Module: ThirdParty

Captures a frame using an Omron device.

Syntax

bool avl::STC_GrabImage
(
	Omron_State& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	int inInputQueueSize,
	atl::Optional<avl::OmronPixelFormat::Type> inPixelFormat,
	atl::Optional<const avl::Box&> inRoi,
	atl::Optional<avl::OmronAcquisitionMode::Type> inAcquisitionMode,
	atl::Optional<int> inAcquisitionFrameCount,
	atl::Optional<double> inFrameRate,
	atl::Optional<bool> inExposureAuto,
	atl::Optional<double> inExposureTime,
	atl::Optional<bool> inGainAuto,
	atl::Optional<double> inGain,
	atl::Optional<double> inGamma,
	atl::Optional<double> inBlackLevel,
	atl::Optional<bool> inTriggerEnable,
	atl::Optional<avl::OmronTriggerSource::Type> inTriggerSource,
	atl::Optional<avl::OmronTriggerActivation::Type> inTriggerActivation,
	atl::Optional<double> inTriggerDelay,
	avl::Image& outImage,
	atl::int64& outFrameID,
	atl::int64& outTimestamp
)

Parameters

Name Type Range Default Description
Input will be modified ioState Omron_State& Object used to maintain state of the function.
Input value inDeviceID Optional<const String&> NIL Device identifying number
Input value inInputQueueSize int 1 - 200 4 Capacity of output frames queue
Input value inPixelFormat Optional<OmronPixelFormat::Type> NIL Format of the pixels provided by the device
Input value inRoi Optional<const Box&> NIL Region of interest
Input value inAcquisitionMode Optional<OmronAcquisitionMode::Type> NIL Acquisition mode of the device
Input value inAcquisitionFrameCount Optional<int> NIL Number of frames to acquire in MultiFrame Acquisition mode
Input value inFrameRate Optional<double> NIL Acquisition rate in Hertz at which the frames are captured
Input value inExposureAuto Optional<bool> NIL Enables or disables the automatic exposure time control
Input value inExposureTime Optional<double> NIL Exposure time in microseconds
Input value inGainAuto Optional<bool> NIL Enables or disables the automatic gain control
Input value inGain Optional<double> NIL Gain as an absolute physical value
Input value inGamma Optional<double> NIL Gamma correction of pixel intensity
Input value inBlackLevel Optional<double> NIL Black level as an absolute physical value
Input value inTriggerEnable Optional<bool> NIL Controls if the selected trigger is active
Input value inTriggerSource Optional<OmronTriggerSource::Type> NIL Source of the acquisition trigger
Input value inTriggerActivation Optional<OmronTriggerActivation::Type> NIL Activation mode of the trigger
Input value inTriggerDelay Optional<double> NIL Delay in microseconds to apply after the trigger reception before activating it
Output value outImage Image& Captured frame
Output value outFrameID int64& Captured frame ID
Output value outTimestamp int64& Captured frame timestamp

Remarks

Camera driver software

This filter is intended to cooperate with a camera using its vendor SDK. To be able to connect to a camera, it is required to install Sentech SDK Package software with camera dedicated drivers.

Sentech SDK Package can be downloaded from the following website: https://sentech.co.jp/en/data/software/ (registration may be required).

Add DLL path to system environment variable may be required.

Recommended Sentech SDK Package version for Aurora Vision Studio usage is 1.1.2 Update 3.

Camera identification

When there is only one camera connected to a computer, field inDeviceID can be set to Auto. In this case, first available camera will be found and connected.

inDeviceID field can be used to pick one of multiple cameras connected to computer. DeviceID can be set to:

  • Serial Number - should be printed on the device housing.
  • Device ID - unique device identifier that can be viewed in StViewer utility.
  • Device User ID - user-programmable device identifier that can be set in StViewer utility.
Camera parameters

All parameters exposed by camera filters are optional, setting them to 'Auto' leaves related parameter unchanged in camera (device default or user set configuration).

To change other, more advanced camera parameters, use specific filters.

See Also