// // Created by Scheaven on 2019/11/18. // #ifdef __cplusplus // extern "C" { #endif #include "h_interface.h" #include "std_target.h" #include "sdk.h" #ifdef __cplusplus // } #endif #include #include #include #include "time.h" #include #include //#ifdef OPENCV #include // C++ //#pragma comment(lib, "opencv_core249.lib") //#pragma comment(lib, "opencv_imgproc249.lib") //#pragma comment(lib, "opencv_highgui249.lib") //#endif // OPENCV using namespace std; using namespace cv; int main(int argc, char *argv[]) { // //视频流信息 VideoCapture cap; try { if(argc>1) { cap.open(argv[1]); }else cap.open("rtsp://admin:a1234567@192.168.5.37:554/h264/ch1/main/av_stream"); }catch(exception){ cout<<"输入视频"< cam_ids; //读取视频帧 std::clock_t t_strat0 = std::clock(); cap >> frame; // if(ii++%2){ // continue; // } std::clock_t t_strat2 = std::clock(); // cout << "t2----"<