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.

lfr.cpp 656B

1234567891011121314151617181920212223242526272829
  1. #include <iostream>
  2. #include <opencv2/opencv.hpp>
  3. #include <input.h>
  4. #include <processing.h>
  5. #include <control_module.h>
  6. #include <interpreter.h>
  7. #include <intersection_handler.h>
  8. using namespace cv;
  9. const int threshold_binary = 110;
  10. int main(void)
  11. {
  12. //Set up
  13. Input input;
  14. Processing processing;
  15. ControlModule controleModule;
  16. Interpreter interpreter;
  17. IntersectionHandler intersectionHandler;
  18. //Mat image1 = input.readFile("C:\\Line-Following-Robot\\Test_data\\*.jpeg");
  19. Mat image1 = input.readWebcam();
  20. processing.calculate_binaray(image1, threshold_binary);
  21. imshow("Display window", image1);
  22. waitKey(0);
  23. }