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