Group CCamera¶
The functions in this section provide access to information, objects, and functionality of cameras. This includes nodemap retrieval, acquisition and init commands, event handler registration, and camera property retrieval.
Public Functions¶
Public Functions Documentation¶
function spinCameraBeginAcquisition¶
Has a camera start acquiring images
See also: spinError
Parameters:
hCameraThe camera to begin acquiring images
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraDeInit¶
Deinitializes a camera, greatly reducing functionality
See also: spinError
Parameters:
hCameraThe camera to deinitialize
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraDiscoverMaxPacketSize¶
Returns the largest packet size that can be safely used on the interface that device is connected to.
See also: spinError
Parameters:
hCameraThe camera to checkpMaxPacketSizeThe maximum packet size returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraEndAcquisition¶
Has a camera stop acquiring images
See also: spinError
Parameters:
hCameraThe camera to stop acquiring images
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraForceIP¶
Forces the camera to be on the same subnet as its corresponding interface.
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetAccessMode¶
Retrieves the access mode of a camera (as an enum, spinAccessMode)
See also: spinError
See also: spinAccessMode
Parameters:
hCameraThe camera of the access mode to retrievepAccessModeThe access mode enum pointer in which the access mode is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetDeviceID¶
Retrieves a unique identifier for a camera
See also: spinError
Parameters:
hCameraThe camera of the unique identifierpBufThe c-string character buffer in which the unique identifier is returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetDeviceSerialNumber¶
Retrieves a manufacturer specific serial number that identifies the camera
See also: spinError
Parameters:
hCameraThe camera handle identified by the serial numberpBufThe c-string character buffer in which the device serial number is returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetGuiXml¶
Retrieves the GUI XML from a camera
See also: spinError
Parameters:
hCameraThe camera of the GUI XML to retrievepBufThe c-string character buffer in which the GUI XML is returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetNextImage¶
Retrieves an image from a camera
See also: spinError
Parameters:
hCameraThe camera of the image to retrievephImageThe image handle pointer in which the image is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetNextImageEx¶
Retrieves an image from a camera; manually set the timeout in milliseconds
See also: spinError
Parameters:
hCameraThe camera of the image to retrievegrabTimeoutA 64bit value that represents a timeout in millisecondsphImageThe image handle pointer in which the image is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetNextImageSync¶
spinCameraGetNextImageSync (
spinCamera hCamera,
uint64_t grabTimeout,
spinImageList * phImageList
)
If a camera supports one or more streams, this function gets one image from each of the camera's streams, and returns the images in a list. This function will block for the specified timeout period until an image arrives on all the streams.
See also: spinCameraInit()
See also: spinCameraBeginAcquisition()
See also: spinCameraEndAcquisition()
Parameters:
hCameraThe camera of the image to retrievegrabTimeoutA 64bit value that represents a timeout in milliseconds
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetNodeMap¶
Retrieves the GenICam nodemap from a camera
See also: spinError
Parameters:
hCameraThe camera from which the nodemap is retrievedphNodeMapThe nodemap handle pointer in which the nodemap is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetTLDeviceNodeMap¶
Retrieves the transport layer device nodemap from a camera
See also: spinError
Parameters:
hCameraThe camera from which the transport layer device nodemap is retrievedphNodeMapThe nodemap handle pointer in which the nodemap is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetTLStreamNodeMap¶
Retrieves the transport layer stream nodemap from a camera
See also: spinError
Parameters:
hCameraThe camera from which the transport layer streaming nodemap is retrievedphNodeMapThe nodemap handle pointer in which the nodemap is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraGetUniqueID¶
Retrieves a unique identifier for a camera
See also: spinError
Deprecated
Use spinCameraGetDeviceID() instead.
Parameters:
hCameraThe camera of the unique identifierpBufThe c-string character buffer in which the unique identifier is returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraInit¶
Initializes a camera, allowing for much more interaction
See also: spinError
Parameters:
hCameraThe camera to initialize
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraIsInitialized¶
Checks whether a camera is currently initialized
See also: spinError
Parameters:
hCameraThe camera to checkpbInitThe boolean pointer to return whether or not the camera is initialized
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraIsStreaming¶
Checks whether a camera is currently acquiring images
See also: spinError
Parameters:
hCameraThe camera to checkpbIsStreamingThe boolean pointer to return whether or not the camera is currently streaming
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraIsValid¶
Checks whether a camera is still valid for use
See also: spinError
Parameters:
hCameraThe camera to checkpbValidThe boolean pointer to return whether or not the camera is valid
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraReadPort¶
function spinCameraRegisterDeviceEventHandler¶
spinCameraRegisterDeviceEventHandler (
spinCamera hCamera,
spinDeviceEventHandler hDeviceEventHandler
)
Registers a universal device event handler (every device event type) to a camera
See also: spinError
Deprecated
Use spinNodeRegisterCallback() and spinNodeDeregisterCallback() for handling device node callbacks instead.
Parameters:
hCameraThe camera on which to register the universal device event handlerhDeviceEventHandlerThe device event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraRegisterDeviceEventHandlerEx¶
spinCameraRegisterDeviceEventHandlerEx (
spinCamera hCamera,
spinDeviceEventHandler hDeviceEventHandler,
const char * pName
)
Registers a specific device event handler (only one device event type) to a camera
See also: spinError
Deprecated
Use spinNodeRegisterCallback() and spinNodeDeregisterCallback() for handling device node callbacks instead.
Parameters:
hCameraThe camera on which to register the specific device event handlerhDeviceEventHandlerThe device event handler to registerpNameThe name of the device event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraRegisterImageEventHandler¶
spinCameraRegisterImageEventHandler (
spinCamera hCamera,
spinImageEventHandler hImageEventHandler
)
Registers an image event handler to a camera
See also: spinError
Parameters:
hCameraThe camera on which to register the image event handlerhImageEventHandlerThe image event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraRegisterImageEventHandlerEx¶
spinCameraRegisterImageEventHandlerEx (
spinCamera hCamera,
spinImageEventHandler hImageEventHandler,
uint64_t streamIndex
)
Registers an image event handler to a camera Registers a specific stream handler for the camera given a stream index. The camera has to be initialized first with a call to spinCameraInit() before registering handlers for events.
See also: spinError
Parameters:
hCameraThe camera on which to register the image event handlerhImageEventHandlerThe image event handler to registerstreamIndexThe index of the stream of where this handler will be registered to
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraRegisterImageListEventHandler¶
spinCameraRegisterImageListEventHandler (
spinCamera hCamera,
spinImageListEventHandler hImageListEventHandler
)
Registers an image list event handler to a camera
See also: spinError
Parameters:
hCameraThe camera on which to register the image event handlerhImageListEventHandlerThe image list event handler to register
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraRelease¶
Releases a camera
See also: spinError
Parameters:
hCameraThe camera to release
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraUnregisterDeviceEventHandler¶
spinCameraUnregisterDeviceEventHandler (
spinCamera hCamera,
spinDeviceEventHandler hDeviceEventHandler
)
Unregisters a device event handler from a camera
See also: spinError
Deprecated
Use spinNodeRegisterCallback() and spinNodeDeregisterCallback() for handling device node callbacks instead.
Parameters:
hCameraThe camera from which to unregister the device event handlerhDeviceEventHandlerThe device event handler to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraUnregisterImageEventHandler¶
spinCameraUnregisterImageEventHandler (
spinCamera hCamera,
spinImageEventHandler hImageEventHandler
)
Unregisters an image event handler from a camera
See also: spinError
Parameters:
hCameraThe camera from which to unregister the image event handlerhImageEventHandlerThe image event handler to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinCameraUnregisterImageListEventHandler¶
spinCameraUnregisterImageListEventHandler (
spinCamera hCamera,
spinImageListEventHandler hImageListEventHandler
)
Unregisters an image list event handler from a camera
See also: spinError
Parameters:
hCameraThe camera from which to unregister the image event handlerhImageEventHandlerThe image event handler to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error