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 481B

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. public:
  16. int videoHeight;
  17. int videoWidth;
  18. Input(int videoHeight, int videoWidth);
  19. Input() = delete;
  20. ~Input();
  21. Mat readFile(String filePath);
  22. Mat readWebcam();
  23. void freeWebcam();
  24. };