2023-01-04 21:50:02 +01:00

29 lines
508 B
C++

#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();
};