About
  1. | API Documentation
  2. | Plugins
  3. | basler
  4. | BaslerCamera

BaslerCamera

Defined in <basler/BaslerCamera.h>

API Interface implementation of a GuiCamera for Basler USB cameras. This follows the interface device by GuiCamera.h.

class BaslerCamera;

Member Fields

Field Type Notes
staticMetaObject const QMetaObject

Member Functions

(constructor)
CamIdx

Returns the index of the camera in the list of cameras. This is unique to each camera.

CheckForWaitingImage

This function checks to see if an image is waiting to be grabbed from the saving buffer. Returns false on timeout.

Close

This function closes the camera.

FirmwareLevel

Return a string with the firmware level of the firware currently running on the camera.

GrabThreadDone

Function called by GrabAndSaveImageTask when it has finished its work. It checks to see if all the threads are done processing, and if so, cleans up file writes and then signals that the camera is done capturing.

Height

Return the height of the images that the current configuration of the camera uses.

Hz

Return the current frame rate of the camera.

IncreaseCount

Increase the counter for the current image index value. Each image grabbed should have a unique number that represents where it should be placed in the sequence of images captured. If the user wants to capture 3000 images, then the images will have indexes from 0-2999 inclusive, and this function keeps track of that. When running in a multi-threaded environment this function needs the correct guards to ensure atomicity.

IncreaseDropCount

Increase the counter that keeps track of the number of images dropped.

IsConnected

Is the camera connected. This is checking if the camera has been associated with a device in the kernel.

IsHardwareTriggered

Is the camera currently set up to be triggered by a hardware trigger ( i.e. a TTL pulse )?

IsOpen

Is the camera connected and open? When a camera is open it is in a state that settings can be set and retrieved on it.

IsReadyForTrigger

Is the camera currently in a waiting state where it is only waiting for the trigger before it immediately starts capturing images?

MakeConnect

Have the camera connect to the software. Getting a camera to be usable usually requires a two step process of opening the camera device, and then connecting the device.

MaxBuffer

What is the maximum size of the image buffer used to hold images. If the image buffer is too small and the camera is taking images fast enough, there will be images that are dropped.

Name

Return the name of the camera. This is usually just the model name with the serial number or something else uniquely identifiable included.

NodeMap

No details given

Open

Open the camera device for use. This is usually the first step of two to allow software to use a camera. First the camera device is opened, and then the camera device is connected.

RetrieveWaitingImage

Retrieve an image that is currently in the image buffer. Or, if not currently there, will be there in less than the value for the Retrieval Timeout.

SetupHardwareTrigger

Configure the camera so that it can use a hardware trigger. Note, when this is configured an external source for a TTL pulse is required.

SetupSoftwareTrigger

Configures the camera to use a software trigger instead of a hardware trigger. A software trigger doesn’t require an external source for a TTL pulse, but has the downside that there is no guarantee that images from multiple cameras will be taken at the same time.

StartGrabbingPreview

Instruct the camera to start grabbing images, but these images can be lossy as we are going to use them for a preview and not a strict image collection. If your camera has the ability to grab from the top of the image buffer and discard the rest, this is where that functionality should be used as we don’t care about dropped images since the human eye only see ~30 frames a second anyways.

StartGrabbingRecord

Start grabbing images that will be used for a capture. This tries not to drop any images.

StopGrabbing

Ask the camera to stop capturing images into the image buffer. It can be the case that a few more images will be captured before the stop command will be processed.

UpdateConfig

Update the configuration of the camera using an already saved GenApi configuration file.

Width

Return the width of the images that the currently configured camera can capture.

metaObject

MISSING

operator=

No details given

qt_check_for_QOBJECT_macro

This a QT generated function. No need to manually create or even call.

qt_metacall

This a QT generated function. No need to manually create or even call.

qt_metacast

This a QT generated function. No need to manually create or even call.

tr

MISSING

trUtf8

MISSING

SnakeStrike — An program for high-speed multi-camera data collection and triangulation.

Page owner(s): gwjensen  Last updated: 2020-09-28 07:40:17 +0000