/************************************************************************* * * 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 UNTITLED_DEEPCAM_POSE_H #define UNTITLED_DEEPCAM_POSE_H #include #include #include class FaceQuality { public: static FaceQuality* GetInstance(); int DetectPose(const cv::Mat &img, cv::Rect &bbox, cv::Mat &pose); int DetectQuality(const cv::Mat &img, cv::Rect& face_rect); private: FaceQuality(); private: static FaceQuality* m_instance; cv::dnn::Net m_pose_net; cv::Size m_input_size; cv::Scalar m_mean_vals; std::mutex m_mt; }; #endif //UNTITLED_DEEPCAM_POSE_H