Banuba SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
libs
types
bnb
types
interfaces
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
14
namespace
bnb {
namespace
interfaces {
15
16
enum class
eyewear_type;
17
enum class
gender;
18
struct
camera_position
;
19
struct
eyes_state
;
20
struct
pixel_rect
;
21
22
class
BNB_EXPORT
face_data
{
23
public
:
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
bnb::interfaces::face_data
Definition
face_data.hpp:22
bnb::interfaces::face_data::get_embeddings
virtual std::vector< float > get_embeddings() const =0
filled when face_match feature is enabled
bnb::interfaces::camera_position
Definition
camera_position.hpp:15
bnb::interfaces::eyes_state
Definition
eyes_state.hpp:14
bnb::interfaces::pixel_rect
Definition
pixel_rect.hpp:15
Generated by
1.17.0