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.h 1020B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. #include <iostream>
  3. #include <future>
  4. #include <thread>
  5. #include <opencv2/opencv.hpp>
  6. #include <input.h>
  7. #include <processing.h>
  8. #include <control_module.h>
  9. #include <interpreter.h>
  10. #include <intersection_handler.h>
  11. using namespace cv;
  12. class LFR
  13. {
  14. Input input;
  15. Processing processing;
  16. ControlModule controlModule;
  17. Interpreter interpreter;
  18. IntersectionHandler intersectionHandler;
  19. volatile bool iAmLooping;
  20. void loop();
  21. thread loopThread;
  22. int thresholdBinary;
  23. int gaussKernelSize;
  24. int thresholdCanny1;
  25. int thresholdCanny2;
  26. int apertureSizeCanny;
  27. void provideOutput(Mat image,const FrameData& frameData, const Rect& roi);
  28. public:
  29. LFR() = delete;
  30. LFR(int videoHeight, int videoWidth, int thresholdBinary, int gaussKernelSize, int thresholdCanny1, int thresholdCanny2, int apertureSizeCanny);
  31. ~LFR();
  32. void startLoop();
  33. void endLoop();
  34. bool videoFlag;
  35. bool saveOutputFlag;
  36. std::string outputFileName;
  37. };