|
DFX Extraction library v4.14.5
enabling applications to perform DFX blood flow analysis
|
16 #ifndef LIBDFX_FRAME_H
17 #define LIBDFX_FRAME_H
20 #include "dfx/VideoFrame.h"
63 virtual bool addFace(std::shared_ptr<dfx::Face> face) = 0;
122 virtual bool addMarker(
const std::string &label) = 0;
129 virtual std::vector<std::string>
getMarkers()
const = 0;
204 virtual std::vector<std::string>
getRegionNames(
const std::string &faceID)
const = 0;
214 virtual std::vector<cv::Point>
getRegionPolygon(
const std::string &faceID,
const std::string ®ionName)
const = 0;
225 virtual int32_t
getRegionIntProperty(
const std::string& faceID,
const std::string& regionName,
const std::string& property)
const = 0;
235 virtual cv::Mat
getRegionHistogram(
const std::string &faceID,
const std::string ®ionName)
const = 0;
239 #endif // LIBDFX_FRAME_H
virtual std::vector< std::string > getFaceIdentifiers() const =0
obtain the known face identifiers within this frame.
virtual cv::Mat getRegionHistogram(const std::string &faceID, const std::string ®ionName) const =0
obtain the histogram for a region of interest.
virtual int getStarRating(std::string &feedback)=0
Provide the 5-star rating value for the current frame, available after a call to getQualityMetrics.
virtual int getOpticalQualityRating(std::string &feedback)=0
Provide the 5-star rating value for the current frame, available after a call to getOpticalQualityMet...
virtual bool addFace(std::shared_ptr< dfx::Face > face)=0
Add a face and associated data to the frame.
virtual int32_t getRegionIntProperty(const std::string &faceID, const std::string ®ionName, const std::string &property) const =0
Regions can have numeric properties attached to them.
Frame is a wrapper which links a VideoFrame with one or more Face objects and additional state needed...
Definition: Frame.h:37
virtual VideoFrame getVideoFrame() const =0
Convenience method to retrieve the VideoFrame associated with this Frame instance.
virtual void setDeviceAttribute(const std::string &key, double value)=0
add a device attribute
virtual std::vector< std::string > getMarkers() const =0
Returns the marker/labels in a video frame.
virtual std::vector< float > getOpticalQualityMetrics()=0
Calculates the optical quality metrics for the current frame.
Represents the internal structure for how image frames are passed to the DFX Engine since there is li...
Definition: VideoFrame.h:35
virtual ~Frame()
Frame destructor.
Definition: Frame.h:42
virtual std::vector< cv::Point > getRegionPolygon(const std::string &faceID, const std::string ®ionName) const =0
obtain the polygon for the region of interest.
virtual std::vector< std::string > getRegionNames(const std::string &faceID) const =0
obtains the names of regions which are defined for the face within this frame.
virtual bool addMarker(const std::string &label)=0
Adds a marker/label to a video frame.
virtual double getDeviceAttribute(const std::string &key) const =0
Returns the value of a device attribute if it exists or zero.
Definition: ChunkData.h:21
virtual std::vector< std::string > getDesiredDeviceAttributes() const =0
Returns a list of desired device attributes for this frame.
virtual std::vector< float > getQualityMetrics(float iso, float exposure)=0
Calculates the quality metrics for the current frame.
virtual std::vector< std::string > getDesiredFaceAttributes() const =0
Returns a list of desired face attributes for this frame.