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 | |
|---|---|---|---|---|
![]() |
ioState | Smart_State | ||
![]() |
inIpAddress | str | IP address of the runtime system | |
![]() |
inDeviceID | int | None | None | Tries to find the camera in all available IDs (UserID, VendorName, ModelName...) |
![]() |
outImage | Image | Captured frame | |
![]() |
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.



