FastDeploy  latest
Fast & Easy to Deploy!
Public Member Functions | List of all members
fastdeploy::vision::faceid::InsightFaceRecognitionPreprocessor Class Reference

Preprocessor object for InsightFaceRecognition serials model. More...

#include <preprocessor.h>

Public Member Functions

 InsightFaceRecognitionPreprocessor ()
 Create a preprocessor instance for InsightFaceRecognition serials model.
 
bool Run (std::vector< FDMat > *images, std::vector< FDTensor > *outputs)
 Process the input image and prepare input tensors for runtime. More...
 
std::vector< int > GetSize ()
 Get Size.
 
void SetSize (std::vector< int > &size)
 Set size.
 
std::vector< float > GetAlpha ()
 Get alpha.
 
void SetAlpha (std::vector< float > &alpha)
 Set alpha.
 
std::vector< float > GetBeta ()
 Get beta.
 
void SetBeta (std::vector< float > &beta)
 Set beta.
 
void DisableNormalize ()
 This function will disable normalize and hwc2chw in preprocessing step.
 
void DisablePermute ()
 This function will disable hwc2chw in preprocessing step.
 

Detailed Description

Preprocessor object for InsightFaceRecognition serials model.

Member Function Documentation

◆ Run()

bool fastdeploy::vision::faceid::InsightFaceRecognitionPreprocessor::Run ( std::vector< FDMat > *  images,
std::vector< FDTensor > *  outputs 
)

Process the input image and prepare input tensors for runtime.

Parameters
[in]imagesThe input image data list, all the elements are returned by cv::imread()
[in]outputsThe output tensors which will feed in runtime
Returns
true if the preprocess successed, otherwise false

The documentation for this class was generated from the following files: