Face Engine SDK  5.17.0
A face detection, recognition and tracking engine.
include/fsdk/Types/Face.h
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) : img(image) {};
00025         explicit Face(
00026             const fsdk::Image& image,
00027             const fsdk::Detection& detection) :
00028                 img(image),
00029                 detection(detection) {};
00030     };
00031     
00032 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines