Create ace_recognition_result.md

This commit is contained in:
leiqing
2022-09-20 22:46:02 +08:00
committed by GitHub
parent 91a21ac78b
commit 238f8e6640

View File

@@ -0,0 +1,25 @@
# Face Recognition Results
The FaceRecognitionResult function is defined in `csrcs/fastdeploy/vision/common/result.h` , indicating the embedding of image features by the face recognition model.
## C++ Definition
`fastdeploy::vision::FaceRecognitionResult`
```c++
struct FaceRecognitionResult {
std::vector<float> embedding;
void Clear();
std::string Str();
};
```
- **embedding**: Member variable that indicates the final abstracted feature embedding by the face recognition model, which can be used to calculate the feature similarity between faces.
- **Clear()**: Member function that clears the results stored in a struct.
- **Str()**: Member function that outputs the information in the struct as a string (for Debug).
## Python Definition
`fastdeploy.vision.FaceRecognitionResult`
- **embedding**(list of float): Member variable that indicates the final abstracted feature embedding by the face recognition model, which can be used to calculate the feature similarity between faces.