Back to Aurora Vision Library Lite website

You are here: Start » Camera Support » Smart » Smart_GrabImage_SynView

Smart_GrabImage_SynView


Header: ThirdPartySdk.h
Namespace: avl

Captures an image from a smart camera using SynView interface. Allows for remote access to the runtime system.

Syntax

bool avl::Smart_GrabImage_SynView
(
	Smart_State& ioState,
	const avl::SmartIPAddress& inIpAddress,
	atl::Optional<const atl::String&> inDeviceID,
	avl::SynViewColorFormat::Type inPixelFormat,
	const avl::SynViewAcquisitionParams& inAcquisitionParams,
	const avl::SynViewImageFormatParams& inImageFormatParams,
	const avl::SynViewAnalogParams& inAnalogParams,
	avl::Image& outImage,
	bool& outIsRemote
)

Parameters

Name Type Default Description
Input will be modified ioState Smart_State& Object used to maintain state of the function.
Input value inIpAddress const SmartIPAddress& IP address of the runtime system (e.g. a smart camera)
Input value inDeviceID Optional<const String&> NIL Tries to find the camera in all available IDs (UserID, VendorName, ModelName...)
Input value inPixelFormat SynViewColorFormat::Type Image color format
Input value inAcquisitionParams const SynViewAcquisitionParams&
Input value inImageFormatParams const SynViewImageFormatParams&
Input value inAnalogParams const SynViewAnalogParams&
Output value outImage Image& Captured frame
Output value outIsRemote bool&

Hints

  • Check the IP address of your runtime system (e.g. using the "ipconfig" command) and set it to the inIpAddress input.
  • Set an appropriate inPixelFormat.
  • Run the program on you runtime system and the camera filter will acquire images directly on it.
  • Run the program on your development machine (e.g. your laptop) connected to the same Ethernet and the camera filter will receive images through a connection with the runtime system.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

Errors

List of possible exceptions:

Error type Description
RuntimeError Smart_GrabImage_SynView is not supported in the Lite edition.