Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

input.h 508B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <iostream>
  3. #include <vector>
  4. #include <string>
  5. #include <algorithm>
  6. #include <random>
  7. #include <opencv2/opencv.hpp>
  8. #include <opencv2/core/utils/logger.hpp>
  9. using namespace std;
  10. using namespace cv;
  11. class Input
  12. {
  13. private:
  14. VideoCapture cap;
  15. mutable std::mutex mtx;
  16. public:
  17. int videoHeight;
  18. int videoWidth;
  19. Input(int videoHeight, int videoWidth);
  20. Input() = delete;
  21. ~Input();
  22. Mat readFile(String filePath);
  23. Mat readWebcam();
  24. void freeWebcam();
  25. };