Smart_GrabImage_WebCamera


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

Syntax

C++
Python
 
def Smart_GrabImage_WebCamera(
	state: Smart_State,
	inIpAddress: str,
	outImage: Image,
	/,
	*,
	inDeviceID: int | None = None
)
-> (
	outResult: bool,
	outIsRemote: bool
)

Parameters

Name Type Default Description
Input will be modified ioState Smart_State
Input value inIpAddress str IP address of the runtime system
Input value inDeviceID int | None None Tries to find the camera in all available IDs (UserID, VendorName, ModelName...)
Output value outImage Image Captured frame
Output value outIsRemote bool Specifies whether the program is currently executed on the runtime (True) or development (False) system

Multithreaded environment

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