Browse Source

support OpenCV4 for simplepose example (#1391)

tags/20200106
JackieWu nihui 6 years ago
parent
commit
dbadd15ee4
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      examples/simplepose.cpp

+ 5
- 0
examples/simplepose.cpp View File

@@ -19,6 +19,11 @@
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

#if CV_VERSION_MAJOR >= 4
#include <opencv2/opencv.hpp>
#define CV_LOAD_IMAGE_COLOR cv::IMREAD_COLOR
#endif // CV_VERSION_MAJOR >= 4

#include "net.h"
#include "gpu.h"



Loading…
Cancel
Save