Face Engine SDK
5.23.1
A face detection, recognition and tracking engine.
|
00001 #pragma once 00002 00003 #include <fsdk/IObject.h> 00004 #include <fsdk/FSDKError.h> 00005 #include <fsdk/Optional.h> 00006 #include <fsdk/Types.h> 00007 00008 namespace fsdk { 00009 00010 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00011 DECLARE_SMARTPTR(IGlassesEstimator); 00012 #endif 00013 00027 enum class GlassesEstimation : uint8_t { 00028 NoGlasses, 00029 EyeGlasses, 00030 SunGlasses, 00031 EstimationError 00032 }; 00033 00038 struct IGlassesEstimator : IRefCounted { 00046 virtual ResultValue<FSDKError, GlassesEstimation> estimate(const Image& warp) const noexcept = 0; 00047 00059 virtual Result<FSDKError> 00060 estimate(Span<const Image> warps, Span<GlassesEstimation> glassesEstimations) const noexcept = 0; 00061 00072 virtual Result<FSDKError> 00073 validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0; 00074 }; 00075 00077 } // namespace fsdk