| | |
| | | #ifndef BOX_H |
| | | #define BOX_H |
| | | |
| | | #ifdef _DEBUG |
| | | #include <stdlib.h> |
| | | #include <crtdbg.h> |
| | | #endif |
| | | |
| | | #ifdef YOLODLL_EXPORTS |
| | | #if defined(_MSC_VER) |
| | | #define YOLODLL_API __declspec(dllexport) |
| | |
| | | #ifdef _DEBUG |
| | | #include <stdlib.h> |
| | | #include <crtdbg.h> |
| | | #endif |
| | | |
| | | #include <time.h> |
| | | #include <stdlib.h> |
| | | #include <stdio.h> |
| | |
| | | cap = (CvCapture*)new cv::VideoCapture(path); |
| | | } |
| | | catch (...) { |
| | | std::cout << " Error: Web-camera " << path << " can't be opened! \n"; |
| | | std::cout << " Error: video-stream " << path << " can't be opened! \n"; |
| | | } |
| | | return cap; |
| | | } |