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