Banuba SDK
frame_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 generated by Djinni from types.djinni
7 
8 #pragma once
9 
10 #include <bnb/types/full_image.hpp>
11 #include <bnb/utils/defs.hpp>
12 #include <cstdint>
13 #include <memory>
14 #include <vector>
15 
16 namespace bnb { namespace interfaces {
17 
18 class frx_recognition_result;
19 enum class face_data_source;
20 struct acne_regions;
21 struct action_units_data;
22 struct brows_mask;
23 struct depth_map;
24 struct external_face_data;
25 struct eyes_mask;
26 struct eyes_state;
27 struct feature_parameter;
28 struct lips_shine_mask;
29 struct neuro_beauty_data;
30 struct transformed_mask_byte;
31 struct transformed_mask_gpu;
32 
33 /**
34  * getters throw exceptions when data are not available
35  * android NNs usually output gpu masks
36  */
37 class BNB_EXPORT frame_data {
38 public:
39  virtual ~frame_data() {}
40 
41  /** Creates empty `FrameData`. Use `add*` function to fill it. */
42  static std::shared_ptr<frame_data> create();
43 
44  virtual std::vector<float> get_full_img_transform() = 0;
45 
46  /** Get frx_recognition_result or null if not exists */
47  virtual std::shared_ptr<frx_recognition_result> get_frx_recognition_result() = 0;
48 
49  virtual action_units_data get_action_units() = 0;
50 
51  virtual acne_regions get_acne_regions() = 0;
52 
53  virtual neuro_beauty_data get_neuro_beauty_data() = 0;
54 
55  virtual bool get_is_smile() = 0;
56 
57  virtual bool get_is_mouth_open() = 0;
58 
59  virtual bool get_is_brows_raised() = 0;
60 
61  virtual bool get_is_brows_shifted() = 0;
62 
63  virtual bool get_is_wear_glasses() = 0;
64 
65  virtual float get_is_male() = 0;
66 
67  virtual float get_ruler() = 0;
68 
69  virtual eyes_state get_eyes_state() = 0;
70 
71  virtual transformed_mask_byte get_background() = 0;
72 
73  virtual transformed_mask_gpu get_background_gpu() = 0;
74 
75  virtual transformed_mask_byte get_hair() = 0;
76 
77  virtual transformed_mask_gpu get_hair_gpu() = 0;
78 
79  virtual transformed_mask_byte get_skin() = 0;
80 
81  virtual transformed_mask_gpu get_skin_gpu() = 0;
82 
83  virtual transformed_mask_byte get_lips() = 0;
84 
85  virtual transformed_mask_gpu get_lips_gpu() = 0;
86 
87  virtual transformed_mask_byte get_occlusion() = 0;
88 
89  virtual transformed_mask_byte get_body() = 0;
90 
91  virtual lips_shine_mask get_lips_shine() = 0;
92 
93  virtual brows_mask get_brows() = 0;
94 
95  virtual eyes_mask get_eyes() = 0;
96 
97  virtual transformed_mask_byte get_face() = 0;
98 
99  virtual transformed_mask_byte get_face_skin() = 0;
100 
101  virtual void add_full_img(::bnb::full_image_t img) = 0;
102 
103  virtual void replace_full_img(::bnb::full_image_t img) = 0;
104 
105  virtual void add_background(const transformed_mask_byte & mask) = 0;
106 
107  virtual void add_external_face_data(face_data_source source, const std::vector<external_face_data> & data) = 0;
108 
109  virtual void add_depth_map(const depth_map & depth_map) = 0;
110 
111  virtual void add_frame_number(int64_t frame_number) = 0;
112 
113  virtual void add_action_units_data(const action_units_data & action_units) = 0;
114 
115  /**
116  * Extra parameters during in-CPU feature calculations.
117  * Reference feature documentation.
118  */
119  virtual void add_feature_parameters(const std::vector<feature_parameter> & params) = 0;
120 };
121 
122 } } // namespace bnb::interfaces
123 /// @}
124 
bnb::interfaces::neuro_beauty_data
Definition: neuro_beauty_data.hpp:18
bnb::interfaces::action_units
for order of values in action units array see action_units_indices enum
Definition: action_units.hpp:16
bnb::interfaces::frame_data::create
static std::shared_ptr< frame_data > create()
Creates empty FrameData.
bnb::interfaces::acne_regions
Definition: acne_regions.hpp:16
bnb::interfaces::depth_map
Results from depth camera.
Definition: depth_map.hpp:17
bnb::interfaces::transformed_mask_byte
Definition: transformed_mask_byte.hpp:17
bnb::interfaces::eyes_state
Definition: eyes_state.hpp:14
bnb::interfaces::frame_data::add_feature_parameters
virtual void add_feature_parameters(const std::vector< feature_parameter > &params)=0
Extra parameters during in-CPU feature calculations.
bnb::interfaces::action_units_data
Definition: action_units_data.hpp:16
bnb::interfaces::frame_data::get_frx_recognition_result
virtual std::shared_ptr< frx_recognition_result > get_frx_recognition_result()=0
Get frx_recognition_result or null if not exists.
bnb::interfaces::eyes_mask
Definition: eyes_mask.hpp:17
bnb::interfaces::frame_data
getters throw exceptions when data are not available android NNs usually output gpu masks
Definition: frame_data.hpp:37
bnb::interfaces::brows_mask
Definition: brows_mask.hpp:15
bnb::interfaces::lips_shine_mask
Definition: lips_shine_mask.hpp:15
bnb::interfaces::transformed_mask_gpu
Definition: transformed_mask_gpu.hpp:16