![]() |
SmartFace Embedded Toolkit
4.2.1
|
#include "sfe_toolkit/sfe_core.h"#include "sfe_toolkit/sfe_face.h"#include <iomanip>#include <regex>#include <sstream>#include <vector>#include "annotate.hpp"#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. | |
| void | printFaceDetectionInfo (SFEDetection &detected_face) |
| void | prinFaceAreaInfo (SFEFaceArea &face_area) |
| void | printFaceHeadPose (SFEFaceHeadPose &head_pose) |
| void | printFaceSize (size_t face_size) |
| void | printMaskConfidence (float mask_confidence) |
| void | printFaceQualityAttributes (SFEFaceQualityAttributes &quality_attributes) |
| void | printHelp () |
| int | main (int argc, char *argv[]) |
| Main fuction is used to parse command line arguments. | |
Variables | |
| 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_liveness = SOLVER_FACE_LIVENESS |
| 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 |
| 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 |
[Face Detect Input Size]
[Face Detect Input Size]
Definition at line 38 of file example_face_liveness.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main fuction is used to parse command line arguments.
[Image Load]
[Image Load]
[Image Resize]
[Image Resize]
[Face Detect]
[Face Detect]
[Face Landmarks]
[Face Landmarks]
[Face Liveness]
[Face Liveness]
[Face Size]
[Face Size]
[Face Mask Confidence]
[Face Mask Confidence]
[Face Area]
[Face Area]
[Face Head Pose]
[Face Head Pose]
[Face Quality]
[Face Quality]
Definition at line 143 of file example_face_liveness.cpp.
|
inline |
Definition at line 89 of file example_face_liveness.cpp.
|
inline |
Definition at line 76 of file example_face_liveness.cpp.
|
inline |
Definition at line 98 of file example_face_liveness.cpp.
|
inline |
Definition at line 118 of file example_face_liveness.cpp.
|
inline |
Definition at line 107 of file example_face_liveness.cpp.
| void printHelp | ( | ) |
Definition at line 129 of file example_face_liveness.cpp.
|
inline |
Definition at line 112 of file example_face_liveness.cpp.
| float detection_threshold = 0.1f |
Definition at line 30 of file example_face_liveness.cpp.
| size_t face_size_max = 170 |
Definition at line 28 of file example_face_liveness.cpp.
| size_t face_size_min = 28 |
Required size of the face to be detected.
Definition at line 27 of file example_face_liveness.cpp.
| std::string image_probe = "assets/face/images/obiwan0.png" |
Definition at line 17 of file example_face_liveness.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_liveness.cpp.
| std::string solver_face_landmarks = SOLVER_FACE_LANDMARKS |
Definition at line 21 of file example_face_liveness.cpp.
| std::string solver_face_liveness = SOLVER_FACE_LIVENESS |
Definition at line 22 of file example_face_liveness.cpp.
| const auto SOLVER_PARAMETERS = std::vector<SFESolverParameter>{} |
Definition at line 24 of file example_face_liveness.cpp.