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

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