1234567891011121314151617181920212223242526272829 |
- #pragma once
-
- #include <iostream>
- #include <vector>
- #include <string>
- #include <algorithm>
- #include <random>
-
- #include <opencv2/opencv.hpp>
- #include <opencv2/core/utils/logger.hpp>
-
- using namespace std;
- using namespace cv;
-
- class Input
- {
- private:
- VideoCapture cap;
- mutable std::mutex mtx;
- public:
- int videoHeight;
- int videoWidth;
- Input(int videoHeight, int videoWidth);
- Input() = delete;
- ~Input();
- Mat readFile(String filePath);
- Mat readWebcam();
- void freeWebcam();
- };
|