Face SDK  1.8.2 Mozart release
Face Recognition Software Development Kit
alignment.h
1 
3 #ifndef FACE_SDK_ALIGNMENT_H
4 #define FACE_SDK_ALIGNMENT_H
5 
6 #include <face_sdk_base/export.h>
7 
8 #include <face_sdk_base/alignment_info.h>
9 #include <face_sdk_base/data_container.h>
10 #include <face_sdk_base/license.h>
11 
12 namespace face_sdk
13 {
31  class alignment
32  {
33  public:
34 
35  virtual ~alignment() = default;
36 
41  virtual face_sdk::alignment_info_set calc_alignment(const face_sdk::face_set &face_set) = 0;
42 
45  virtual uint32_t version() const noexcept = 0;
46 
49  virtual bool is_compatible(uint32_t detector_version) const noexcept = 0;
50  };
51 
62  std::shared_ptr<alignment> FACE_SDK_EXPORT make_alignment(
63  uint32_t version,
64  const std::shared_ptr<face_sdk::license> &license,
65  const std::shared_ptr<face_sdk::data_container> &container,
66  uint32_t batch_size,
67  int32_t compute_device);
68 
78  std::shared_ptr<alignment> FACE_SDK_EXPORT make_alignment(
79  uint32_t version,
80  const std::shared_ptr<face_sdk::data_container> &container,
81  uint32_t batch_size,
82  int32_t compute_device);
83 
93  std::shared_ptr<alignment> FACE_SDK_EXPORT make_alignment(
94  uint32_t version,
95  const std::shared_ptr<face_sdk::license> &license,
96  uint32_t batch_size,
97  int32_t compute_device);
98 
99 
108  std::shared_ptr<alignment> FACE_SDK_EXPORT make_alignment(
109  uint32_t version,
110  uint32_t batch_size,
111  int32_t compute_device);
112 
120  std::shared_ptr<alignment> FACE_SDK_EXPORT make_alignment(
121  uint32_t version,
122  const std::shared_ptr<face_sdk::license> &license);
123 
130  std::shared_ptr<alignment> FACE_SDK_EXPORT make_alignment(uint32_t version);
131 
133 }
134 
135 
136 #endif // FACE_SDK_ALIGNMENT_H
virtual bool is_compatible(uint32_t detector_version) const noexcept=0
Function helps you to determine Face Detector and Alignment algorithms versions compatibility. See versions_compatibility.
std::shared_ptr< alignment > make_alignment(uint32_t version)
Makes the face_sdk::alignment object with needed version. Other required parameters are loaded from k...
virtual uint32_t version() const noexcept=0
Algorithm&#39;s version. See Alignment versions.
virtual face_sdk::alignment_info_set calc_alignment(const face_sdk::face_set &face_set)=0
Performs alignment operation on specified face set.
Definition: alignment_info.h:8
The license object. A license object provides information about your limits in face_sdk. See Licensing.
Definition: license.h:26
Alignment operation prepares images for further FIR building and age and gender classification.
Definition: alignment.h:31