/************************************************************************* * * 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 &pose, std::vector &landmarks); int Detect(const cv::Mat &src, float face_x1, float face_y1, float face_x2, float face_y2, std::vector &pose, std::vector &landmarks); private: Landmark68(); ~Landmark68(); private: cv::dnn::Net m_net; std::mutex m_mt; static Landmark68* m_instance; }; #endif