Atlas-Cronos  7.1.0
Public Member Functions | Properties | List of all members
Flir.Atlas.Live.Device.VideoOverlayCamera Class Reference

Stream video overlay from a camera. More...

Inheritance diagram for Flir.Atlas.Live.Device.VideoOverlayCamera:
Flir.Atlas.Live.Device.Camera Flir.Atlas.Live.Device.CameraBase

Public Member Functions

 VideoOverlayCamera ()
 Initializes a new instance of the VideoStream. More...
 
 VideoOverlayCamera (bool autoStartGrabbing)
 Initializes a new instance of the VideoStream. More...
 
override void Connect (CameraDeviceInfo camera, SecurityParameters securityParameters=null)
 Asynchronous connects to a camera device. More...
 
- Public Member Functions inherited from Flir.Atlas.Live.Device.Camera
ImageBase GetImage ()
 Gets the current received image. More...
 
override void Dispose ()
 Dispose the camera instance. More...
 
virtual bool StartGrabbing ()
 Starts grabbing of images from the connected camera device. More...
 
virtual void StopGrabbing ()
 Stops grabbing images from the camera. More...
 
List< string > EnumerateFrameRates ()
 Get supported frame rates More...
 
List< Size > EnumerateResolutions ()
 List of supported resolutions. More...
 
- Public Member Functions inherited from Flir.Atlas.Live.Device.CameraBase
 CameraBase ()
 Initializes a new instance of the Camera More...
 
virtual void Disconnect ()
 Disconnect the camera device. More...
 

Properties

VisualImage VisualImage [get]
 The contained Visual image. More...
 
- Properties inherited from Flir.Atlas.Live.Device.Camera
bool IsAutoStartGrabbingEnabled [get, set]
 Automatically start/stop grabbing if set to true. More...
 
ImageBase Image [get, set]
 The current received camera frame, ImageBase for more information on how to access contained data. More...
 
uint FrameCount [get, set]
 The received number of images. More...
 
uint LostImages [get, set]
 The number of lost images More...
 
double AveragePayload [get]
 Average data per second transmitted over the camera interface in MB. More...
 
bool IsImageDisabled [get, set]
 Disable/Enable loading of the received image to Atlas Image. Set to true if the stream should be kept running but no updates are wanted. More...
 
VisualImageFormat FormatVisualImage [get, set]
 The raw image format More...
 
GrabberState IsGrabberReady [get]
 Check if the camera grabber is ready before a stream can be started. More...
 
double Fps [get, set]
 Frames per second. More...
 
bool IsGrabbing [get]
 Checks if grabbing is started. More...
 
Recorder.Recorder Recorder [get, protected set]
 Camera recorder. Store sequence files (SEQ) or MP4 dependent on the connected streaming format. More...
 
int FrameRateIndex [get, set]
 Select frame rate. EnumerateFrameRates() for a list of available frame rates. More...
 
int SelectedResolutionIndex [get, set]
 Select resolution. EnumerateResolutions() for a list of available resolutions. More...
 
- Properties inherited from Flir.Atlas.Live.Device.CameraBase
Diagnostics Diagnostics [get, protected set]
 Diagnostic information can be useful when debugging an application. More...
 
int TimelapseReconnect [get, set]
 Timelapse in milli seconds to wait before retrying to connect. More...
 
RemoteControl RemoteControl [get, protected set]
 Remotely control a camera device. More...
 
bool AutoReconnect [get, set]
 Automatically retries to connect to the camera if the connection is lost. More...
 
CameraDeviceInfo CameraDeviceInfo [get, set]
 Connected camera device information. More...
 
SecurityParameters SecurityParameters [get, set]
 Security parameters to use when connecting to the camera. More...
 
bool IsConnected [get]
 Check if the camera is connected. More...
 
ConnectionStatus ConnectionStatus [get, protected set]
 The camera connection status. More...
 
static string Version [get]
 Gets the used Atlas version. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Flir.Atlas.Live.Device.Camera
 Camera (bool autoStartGrabbing)
 Initializes a new instance of the Camera More...
 
void CameraAdapter_ImageReady (object sender, Interfaces.ImageReadyEventArgs e)
 
virtual bool ImageReady (Interfaces.ImageReadyEventArgs e, bool fireImageReady=true)
 New image received, load to Atlas Image More...
 
override void DisposeCamera ()
 Stop grabbing and dispose the camera instance. More...
 
override void OnStatusChanged (ConnectionStatus status)
 Status changed. Check if grabbing shall be stopped or started. More...
 
virtual void OnStreamError (StreamErrorEventArgs args)
 Fires StreamError More...
 
- Protected Member Functions inherited from Flir.Atlas.Live.Device.CameraBase
virtual void ProcessData ()
 Override if you need to process some custom data every cycle. More...
 
virtual bool CheckDevice ()
 Check if device is still alive. More...
 
virtual bool ConnectToCamera ()
 Connect camera More...
 
virtual void OnDeviceError (DeviceErrorEventArgs args)
 Fires DeviceError. More...
 
- Protected Attributes inherited from Flir.Atlas.Live.Device.CameraBase
ICameraAdapter Device
 CLI Camera device. More...
 
Object LockDevice = new object()
 Sync. object for camera device. More...
 
Stopwatch CheckHeartbeat = new Stopwatch()
 Keep camera connection alive More...
 
const int TimeoutCheckForHeartbeat = 2000
 Interval when to check if camera is still present. More...
 
- Events inherited from Flir.Atlas.Live.Device.Camera
EventHandler< ImageReceivedEventArgsImageReceived
 Raw image received from camera. More...
 
EventHandler< EventArgs > ImageInitialized
 Image initialized with received data More...
 
EventHandler< StreamErrorEventArgsStreamError
 This event is fired when a streaming error is detected. More...
 
- Events inherited from Flir.Atlas.Live.Device.CameraBase
EventHandler< ConnectionStatusChangedEventArgsConnectionStatusChanged
 This event is fired when the connection status has changed. More...
 
EventHandler< DeviceErrorEventArgsDeviceError
 This event is fired when an error is detected. More...
 

Detailed Description

Stream video overlay from a camera.

Constructor & Destructor Documentation

◆ VideoOverlayCamera() [1/2]

Flir.Atlas.Live.Device.VideoOverlayCamera.VideoOverlayCamera ( )
inline

Initializes a new instance of the VideoStream.

◆ VideoOverlayCamera() [2/2]

Flir.Atlas.Live.Device.VideoOverlayCamera.VideoOverlayCamera ( bool  autoStartGrabbing)
inline

Initializes a new instance of the VideoStream.

Parameters
autoStartGrabbingGrabbing is automatically started after connect if is set to true.

Member Function Documentation

◆ Connect()

override void Flir.Atlas.Live.Device.VideoOverlayCamera.Connect ( CameraDeviceInfo  camera,
SecurityParameters  securityParameters = null 
)
inlinevirtual

Asynchronous connects to a camera device.

Parameters
camera
securityParametersSecurity settings to use whn connecting
Examples
<![CDATA[
// Scan for an A310 camera with static ip address 192.168.1.10.
var device = CameraDeviceInfo.Create("192.168.1.10", Interface.Network);
if (device != null)
{
// Select camera video overlay as streaming format.
device.SelectedStreamingFormat = ImageFormat.Argb;
var cam = new VideoOverlayCamera();
cam.Connect(device);
while (!cam.IsGrabbing)
{
Thread.Sleep(100);
}
// save the current image as a jpeg image.
cam.GetImage().SaveSnapshot(@"c:\temp\test.jpg");
cam.Disconnect();
}
]]>

Reimplemented from Flir.Atlas.Live.Device.CameraBase.

Property Documentation

◆ VisualImage

VisualImage Flir.Atlas.Live.Device.VideoOverlayCamera.VisualImage
get

The contained Visual image.

Returns