Face Engine SDK
5.25.0
A face detection, recognition and tracking engine.
|
00001 #pragma once 00002 00003 #include <fsdk/Optional.h> 00004 #include <fsdk/Types/Detection.h> 00005 #include <fsdk/Types/Image.h> 00006 #include <fsdk/Types/Landmarks.h> 00007 00008 namespace fsdk { 00009 00010 struct Face { 00011 00012 typedef float ElementType; 00013 00014 fsdk::Image img; 00015 fsdk::Detection detection; 00016 Optional<fsdk::Landmarks5> landmarks5; 00017 Optional<fsdk::Landmarks68> landmarks68; 00018 00019 bool isValid() const { 00020 return img.isValid() && detection.isValid(); 00021 } 00022 00023 explicit Face() = default; 00024 explicit Face(const fsdk::Image& image) 00025 : img(image){}; 00026 explicit Face(const fsdk::Image& image, const fsdk::Detection& detection) 00027 : img(image) 00028 , detection(detection){}; 00029 }; 00030 00031 } // namespace fsdk