Banuba SDK
Loading...
Searching...
No Matches
face_data.hpp
Go to the documentation of this file.
1/// \file
2/// \addtogroup Types
3/// @{
4///
5// AUTOGENERATED FILE - DO NOT MODIFY!
6// This file was generated by Djinni from types.djinni
7
8#pragma once
9
10#include <bnb/utils/defs.hpp>
11#include <memory>
12#include <vector>
13
14namespace bnb { namespace interfaces {
15
16enum class eyewear_type;
17enum class gender;
18struct camera_position;
19struct eyes_state;
20struct pixel_rect;
21
22class BNB_EXPORT face_data {
23public:
24 virtual ~face_data() {}
25
26 static std::shared_ptr<face_data> create();
27
28 virtual std::vector<float> get_landmarks() const = 0;
29
30 virtual void set_landmarks(const std::vector<float> & lms) = 0;
31
32 virtual std::vector<float> get_latents() const = 0;
33
34 virtual void set_latents(const std::vector<float> & lats) = 0;
35
36 virtual std::vector<float> get_vertices() const = 0;
37
38 virtual void set_vertices(const std::vector<float> & verts) = 0;
39
40 virtual std::vector<float> get_ears_landmarks() const = 0;
41
42 virtual void set_ears_landmarks(const std::vector<float> & lms) = 0;
43
44 virtual std::vector<float> get_ears_latents() const = 0;
45
46 virtual void set_ears_latents(const std::vector<float> & lats) = 0;
47
48 virtual std::vector<float> get_brows_lms() const = 0;
49
50 virtual void set_brows_lms(const std::vector<float> & lms) = 0;
51
52 virtual camera_position get_camera_position() const = 0;
53
54 virtual void set_camera_position(const camera_position & cam) = 0;
55
56 /** filled when face_match feature is enabled */
57 virtual std::vector<float> get_embeddings() const = 0;
58
59 virtual bool has_lips_detected() const = 0;
60
61 virtual bool has_face() = 0;
62
63 virtual pixel_rect get_face_rect() = 0;
64
65 virtual void set_face_rect(const pixel_rect & rect) = 0;
66
67 virtual gender get_gender() const = 0;
68
69 virtual void set_gender(gender g) = 0;
70
71 virtual eyewear_type get_eyewear() const = 0;
72
73 virtual void set_eyewear(eyewear_type eyewear) = 0;
74
75 virtual bool get_is_smile() = 0;
76
77 virtual bool get_is_mouth_open() = 0;
78
79 virtual bool get_are_brows_raised() = 0;
80
81 virtual bool get_are_brows_shifted() = 0;
82
83 virtual eyes_state get_eyes_state() = 0;
84};
85
86} } // namespace bnb::interfaces
87/// @}
88
virtual std::vector< float > get_embeddings() const =0
filled when face_match feature is enabled