![]() |
SmartFace Embedded Toolkit
4.2.1
|
#include "sfe_toolkit/sfe_core.h"#include "sfe_toolkit/sfe_face.h"#include <regex>#include <vector>#include "solvers.h"#include "utils.hpp"#include <unordered_map>Go to the source code of this file.
Functions | |
| void | getRecommendedImageSize (const std::string &solver_face_detect, SFEImage &image, const size_t face_size_min, const size_t face_size_max, size_t &recommended_width, size_t &recommended_height) |
| Get recommended image size for face detection. | |
| SFEFaceTemplate | extractTemplate (std::string image_path, SFESolver &detector_solver, SFESolver &landmarks_solver, SFESolver &template_solver) |
| void | printHelp () |
| int | main (int argc, char *argv[]) |
Variables | |
| std::string | gallery = "./assets/face/entities/" |
| std::string | image_probe = "assets/face/images/obiwan0.png" |
| std::string | solver_face_detect = SOLVER_FACE_DETECT |
| Solvers to use in example, the defaults are filled in by CMake. | |
| std::string | solver_face_landmarks = SOLVER_FACE_LANDMARKS |
| std::string | solver_face_template = SOLVER_FACE_EXTRACTION |
| const auto | SOLVER_PARAMETERS = std::vector<SFESolverParameter>{} |
| size_t | face_size_min = 28 |
| Required size of the face to be detected. | |
| size_t | face_size_max = 170 |
| float | detection_threshold = 0.1f |
| float | identification_threshold = 0.6f |
| SFEFaceTemplate extractTemplate | ( | std::string | image_path, |
| SFESolver & | detector_solver, | ||
| SFESolver & | landmarks_solver, | ||
| SFESolver & | template_solver | ||
| ) |
Definition at line 74 of file example_face_identify_entity.cpp.
| void getRecommendedImageSize | ( | const std::string & | solver_face_detect, |
| SFEImage & | image, | ||
| const size_t | face_size_min, | ||
| const size_t | face_size_max, | ||
| size_t & | recommended_width, | ||
| size_t & | recommended_height | ||
| ) |
Get recommended image size for face detection.
| solver_face_detect | name of the face detection solver |
| face_size_min | Desired minimal size of detected face |
| face_size_max | Desired maximal size of detected face |
| recommended_width | Recommended image width |
| recommended_height | Recommended image height |
Definition at line 39 of file example_face_identify_entity.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
[Face Entity Identify]
[Face Entity Identify]
Definition at line 161 of file example_face_identify_entity.cpp.
| void printHelp | ( | ) |
Definition at line 146 of file example_face_identify_entity.cpp.
| float detection_threshold = 0.1f |
Definition at line 30 of file example_face_identify_entity.cpp.
| size_t face_size_max = 170 |
Definition at line 28 of file example_face_identify_entity.cpp.
| size_t face_size_min = 28 |
Required size of the face to be detected.
Definition at line 27 of file example_face_identify_entity.cpp.
| std::string gallery = "./assets/face/entities/" |
Definition at line 15 of file example_face_identify_entity.cpp.
| float identification_threshold = 0.6f |
Definition at line 31 of file example_face_identify_entity.cpp.
| std::string image_probe = "assets/face/images/obiwan0.png" |
Definition at line 17 of file example_face_identify_entity.cpp.
| std::string solver_face_detect = SOLVER_FACE_DETECT |
Solvers to use in example, the defaults are filled in by CMake.
Definition at line 20 of file example_face_identify_entity.cpp.
| std::string solver_face_landmarks = SOLVER_FACE_LANDMARKS |
Definition at line 21 of file example_face_identify_entity.cpp.
| std::string solver_face_template = SOLVER_FACE_EXTRACTION |
Definition at line 22 of file example_face_identify_entity.cpp.
| const auto SOLVER_PARAMETERS = std::vector<SFESolverParameter>{} |
Definition at line 24 of file example_face_identify_entity.cpp.