10 #include <bnb/utils/defs.hpp>
14 namespace bnb {
namespace interfaces {
16 struct camera_position;
23 static std::shared_ptr<face_data> create();
25 virtual std::vector<float> get_landmarks()
const = 0;
27 virtual void set_landmarks(
const std::vector<float> & lms) = 0;
29 virtual std::vector<float> get_latents()
const = 0;
31 virtual void set_latents(
const std::vector<float> & lats) = 0;
33 virtual std::vector<float> get_vertices()
const = 0;
35 virtual void set_vertices(
const std::vector<float> & verts) = 0;
37 virtual std::vector<float> get_ears_landmarks()
const = 0;
39 virtual void set_ears_landmarks(
const std::vector<float> & lms) = 0;
41 virtual std::vector<float> get_ears_latents()
const = 0;
43 virtual void set_ears_latents(
const std::vector<float> & lats) = 0;
45 virtual std::vector<float> get_brows_lms()
const = 0;
47 virtual void set_brows_lms(
const std::vector<float> & lms) = 0;
54 virtual std::vector<float> get_embeddings()
const = 0;
56 virtual bool has_face() = 0;
60 virtual void set_face_rect(
const pixel_rect & rect) = 0;