FastDeploy
latest
Fast & Easy to Deploy!
|
Face detection result structure for all the face detection models. More...
#include <result.h>
Inherits fastdeploy::vision::BaseResult.
Public Member Functions | |
void | Clear () |
Clear FaceDetectionResult. | |
void | Free () |
Clear FaceDetectionResult and free the memory. | |
std::string | Str () |
Debug function, convert the result to string to print. | |
Public Attributes | |
std::vector< std::array< float, 4 > > | boxes |
All the detected object boxes for an input image, the size of boxes is the number of detected objects, and the element of boxes is a array of 4 float values, means [xmin, ymin, xmax, ymax]. | |
std::vector< std::array< float, 2 > > | landmarks |
If the model detect face with landmarks, every detected object box correspoing to a landmark, which is a array of 2 float values, means location [x,y]. | |
std::vector< float > | scores |
Indicates the confidence of all targets detected from a single image, and the number of elements is consistent with boxes.size() | |
int | landmarks_per_face |
landmarks_per_face indicates the number of face landmarks for each detected face if the model's output contains face landmarks (such as YOLOv5Face, SCRFD, ...) | |
Face detection result structure for all the face detection models.