| Face Engine SDK 5.33.0 A face detection, recognition and tracking engine.

Loading...
Searching...
No Matches
IFaceDetectionBatch.h
1#pragma once
2
3#include <fsdk/IRefCounted.h>
4#include <fsdk/Types/Detection.h>
5#include <fsdk/Types/Face.h>
6#include <fsdk/Types/Image.h>
7#include <fsdk/Types/Landmarks.h>
8#include <fsdk/Types/Ref.h>
9#include <fsdk/Types/Span.h>
10
11#include <cstddef>
12
13 namespace fsdk {
14
15#ifndef DOXYGEN_SHOULD_SKIP_THIS
16 DECLARE_SMARTPTR(IFaceDetectionBatch);
17#endif
18
22 struct IFaceDetectionBatch : public IRefCounted {
27 virtual size_t getSize() const noexcept = 0;
28
34 virtual size_t getSize(size_t imageIndex) const noexcept = 0;
35
47 virtual Face getFace(const Image& img, size_t imageIndex, size_t detectionIndex) const noexcept = 0;
48
59 virtual Span<const Detection> getDetections(size_t index = 0) const noexcept = 0;
60
71 virtual Span<const Landmarks5> getLandmarks5(size_t index = 0) const noexcept = 0;
72
83 virtual Span<const Landmarks68> getLandmarks68(size_t index = 0) const noexcept = 0;
84 };
85
86} // namespace fsdk
fsdk::Span
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition Span.h:14
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
fsdk
SDK namespace.
Definition IAGSEstimator.h:8
fsdk::Detection
Detection structure. @detail Stores a detected bounding box within a source image rect.
Definition Detection.h:10
fsdk::Face
Definition Face.h:10
fsdk::IFaceDetectionBatch
Face detection result batch interface.
Definition IFaceDetectionBatch.h:22
fsdk::IFaceDetectionBatch::getLandmarks5
virtual Span< const Landmarks5 > getLandmarks5(size_t index=0) const noexcept=0
Returns Landmarks5 Span.
fsdk::IFaceDetectionBatch::getSize
virtual size_t getSize() const noexcept=0
Returns size.
fsdk::IFaceDetectionBatch::getDetections
virtual Span< const Detection > getDetections(size_t index=0) const noexcept=0
Returns detection Span.
fsdk::IFaceDetectionBatch::getFace
virtual Face getFace(const Image &img, size_t imageIndex, size_t detectionIndex) const noexcept=0
Returns detected face.
fsdk::IFaceDetectionBatch::getLandmarks68
virtual Span< const Landmarks68 > getLandmarks68(size_t index=0) const noexcept=0
Returns Landmarks68 Span.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition IRefCounted.h:37
fsdk::Image
Image.
Definition Image.h:38
fsdk::Landmarks
Face landmarks template structure.
Definition Landmarks.h:23