IoT::Devices

class Camera

File Information

Library: IoT/Devices
Package: Devices
Header: IoT/Devices/Camera.h

Description

The base class for image sensors, also known as cameras.

Inheritance

Direct Base Classes: Device

All Base Classes: Device

Member Summary

Member Functions: capture, image, ready

Inherited Functions: getFeature, getPropertyBool, getPropertyDouble, getPropertyInt, getPropertyInt16, getPropertyInt64, getPropertyString, getPropertyTimestamp, hasFeature, hasProperty, setFeature, setPropertyBool, setPropertyDouble, setPropertyInt, setPropertyInt16, setPropertyInt64, setPropertyString, setPropertyTimestamp

Constructors

Camera

Camera();

Creates the Camera.

Destructor

~Camera virtual

~Camera();

Destroys the Camera.

Member Functions

capture virtual

virtual void capture() = 0;

Capture an image.

image virtual

virtual Image::Ptr image() const = 0;

Returns the most recently taken image, or a null pointer if no image is available.

ready virtual

virtual bool ready() const = 0;

Returns true if the camera is ready.

Variables

imageCaptured

Poco::BasicEvent < const Image::Ptr > imageCaptured;

Fired when a new image has been captured.

Securely control IoT edge devices from anywhere   Connect a Device