mobilese_focal_face.h
789 字节
//
// Created by DefTruth on 2021/7/24.
//
#ifndef LITE_AI_ORT_CV_MOBILESE_FOCAL_FACE_H
#define LITE_AI_ORT_CV_MOBILESE_FOCAL_FACE_H
#include "lite/ort/core/ort_core.h"
namespace ortcv
{
class LITE_EXPORTS MobileSEFocalFace : public BasicOrtHandler
{
public:
explicit MobileSEFocalFace(const std::string &_onnx_path, unsigned int _num_threads = 1) :
BasicOrtHandler(_onnx_path, _num_threads)
{};
~MobileSEFocalFace() override = default;
private:
static constexpr const float mean_val = 0.f;
static constexpr const float scale_val = 1.f / 255.f;
private:
Ort::Value transform(const cv::Mat &mat) override;
public:
void detect(const cv::Mat &mat, types::FaceContent &face_content);
};
}
#endif //LITE_AI_ORT_CV_MOBILESE_FOCAL_FACE_H