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 pixel_rect;
20
21class BNB_EXPORT face_data {
22public:
23 virtual ~face_data() {}
24
25 static std::shared_ptr<face_data> create();
26
27 virtual std::vector<float> get_landmarks() const = 0;
28
29 virtual void set_landmarks(const std::vector<float> & lms) = 0;
30
31 virtual std::vector<float> get_latents() const = 0;
32
33 virtual void set_latents(const std::vector<float> & lats) = 0;
34
35 virtual std::vector<float> get_vertices() const = 0;
36
37 virtual void set_vertices(const std::vector<float> & verts) = 0;
38
39 virtual std::vector<float> get_ears_landmarks() const = 0;
40
41 virtual void set_ears_landmarks(const std::vector<float> & lms) = 0;
42
43 virtual std::vector<float> get_ears_latents() const = 0;
44
45 virtual void set_ears_latents(const std::vector<float> & lats) = 0;
46
47 virtual std::vector<float> get_brows_lms() const = 0;
48
49 virtual void set_brows_lms(const std::vector<float> & lms) = 0;
50
51 virtual camera_position get_camera_position() const = 0;
52
53 virtual void set_camera_position(const camera_position & cam) = 0;
54
55 /** filled when face_match feature is enabled */
56 virtual std::vector<float> get_embeddings() const = 0;
57
58 virtual bool has_lips_detected() const = 0;
59
60 virtual bool has_face() = 0;
61
62 virtual pixel_rect get_face_rect() = 0;
63
64 virtual void set_face_rect(const pixel_rect & rect) = 0;
65
66 virtual gender get_gender() const = 0;
67
68 virtual void set_gender(gender g) = 0;
69
70 virtual eyewear_type get_eyewear() const = 0;
71
72 virtual void set_eyewear(eyewear_type eyewear) = 0;
73};
74
75} } // namespace bnb::interfaces
76/// @}
77
virtual std::vector< float > get_embeddings() const =0
filled when face_match feature is enabled