/************************************************************************* * * 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 __LOCALCAMERA_H #define __LOCALCAMERA_H #include #include #include #include //void(int cam_id, std::string cam_name, cv::Mat& frame) using CamFrameCallBack = std::function; class CamObj { public: CamObj(); ~CamObj(); int Open(CamFrameCallBack fuc); int Close(); public: int devID; std::string devPID; std::string devVID; std::string devName; private: cv::VideoCapture m_camera; bool m_bRun; void* m_event_exit; }; class LocalCamera { public: static int GetAllCam(std::vector& cameras); private: LocalCamera(); ~LocalCamera(); }; #endif