Files
DeepCamFaceSDK2.0/Inc/Landmark68.h
2024-12-13 23:33:37 +08:00

43 lines
1.2 KiB
C++

/*************************************************************************
*
* DeepCam CONFIDENTIAL
* FILE: CenterFaceMnn.h
*
* [2019] - [2020] DeepCam, LLC and DeepCam
NOTICE:
* All information contained herein is, and remains the property of DeepCam LLC.
* The intellectual and technical concepts contained herein are proprietary to DeepCam
* and may be covered by U.S. and Foreign Patents,patents in process, and are protected by
* trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* DeepCam, LLC.
*
*
* Written: DongPo Wang
* Date: 11/23/2020
* Mail: dongpo.wang@deepcam.com
*/
#ifndef __LANDMARK68_H
#define __LANDMARK68_H
#include "Inc/CenterFaceMnn.h"
class Landmark68
{
public:
static Landmark68* GetInstance();
int Detect(const cv::Mat &src, FaceInfo& face, std::vector<float> &pose, std::vector<float> &landmarks);
int Detect(const cv::Mat &src, float face_x1, float face_y1, float face_x2, float face_y2, std::vector<float> &pose, std::vector<float> &landmarks);
private:
Landmark68();
~Landmark68();
private:
cv::dnn::Net m_net;
std::mutex m_mt;
static Landmark68* m_instance;
};
#endif