Face SDK  1.7 Mozart rc
Face Recognition Software Development Kit
face_selector.h
1 #pragma once
2 
3 #include <face_sdk_base/face.h>
5 
6 namespace face_sdk
7 {
21  {
22  widest_face,
25  };
26 
32  {
33  public:
34  virtual ~face_selector() = default;
35 
41  virtual std::shared_ptr<face_sdk::alignment_info> select_face(const face_sdk::alignment_info_set &alignment_infoes) const = 0;
42 
48  virtual std::shared_ptr<face_sdk::face> select_face(const face_sdk::face_set &faces) const = 0;
49  };
50 
58  std::shared_ptr<face_selector> FACE_SDK_EXPORT make_face_selector(face_selection_algs alg, int32_t for_face_detector);
59 
61 }
face_sdk::face_selector::select_face
virtual std::shared_ptr< face_sdk::alignment_info > select_face(const face_sdk::alignment_info_set &alignment_infoes) const =0
Select face on specified aligned images.
face.h
alignment.h
face_sdk::face_selector
Face selector algorithm. The Face selection selects the best face from input set, using specified alg...
Definition: face_selector.h:31
face_sdk::face_selection_algs::closest_to_img_center
@ closest_to_img_center
Face closest to the image center will be chosen.
face_sdk::face_selection_algs::widest_face
@ widest_face
The widest face will be chosen.
face_sdk::face_selection_algs::biggest_confidence
@ biggest_confidence
Face with the biggest confidence will be chosen.
face_sdk::face_selection_algs
face_selection_algs
Face selection algorithms variants. Use in face_sdk::make_face_selector() functions.
Definition: face_selector.h:20
face_sdk::make_face_selector
std::shared_ptr< face_selector > FACE_SDK_EXPORT make_face_selector(face_selection_algs alg, int32_t for_face_detector)
Makes the face_sdk::face_selector object with specified algorithm and face detector version.