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

IOrientationEstimator.h
1 #pragma once
2
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Types.h>
6 #include <fsdk/Types/OrientationType.h>
7
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IOrientationEstimator);
12 #endif
13
18 struct IOrientationEstimator : IRefCounted {
28 virtual ResultValue<FSDKError, OrientationType>
29 estimate(
30 const Image& image) const noexcept = 0;
31
42 virtual Result<FSDKError>
43 estimate(
44 Span<const Image> images,
45 Span<OrientationType> out) const noexcept = 0;
46
57 virtual Result<FSDKError>
58 validate(
59 Span<const Image> images,
60 Span<Result<FSDKError>> errors) const noexcept = 0;
61 };
62
63 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
fsdk::IOrientationEstimator::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::IOrientationEstimator::estimate
virtual ResultValue< FSDKError, OrientationType > estimate(const Image &image) const noexcept=0
Estimate orientation of image (Normal, Right90deg, Left90deg or UpsideDown).
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IOrientationEstimator
Image orientation estimator interface.
Definition: IOrientationEstimator.h:18
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14