You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
552 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __DARKNET_WRAPER_HEADER__
  2. #define __DARKNET_WRAPER_HEADER__
  3. #include "../../components/base/basicFunctionality.h"
  4. #include <opencv2/opencv.hpp>
  5. #include <opencv2/core.hpp>
  6. #include <opencv2/imgcodecs.hpp>
  7. #include <opencv2/highgui.hpp>
  8. #include <opencv2/dnn/dnn.hpp>
  9. using namespace cv;
  10. class darknetWraper{
  11. private:
  12. void * m_pNET;
  13. public:
  14. darknetWraper();
  15. ~darknetWraper();
  16. bool l_n( CSTR conf, CSTR weights, uint8_t clear = 0, uint8_t batch = 1 );
  17. bool detect( cv::Mat &Picture );
  18. };
  19. #endif