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.

autonomous_mode_main.cpp 701B

1234567891011121314151617181920212223
  1. #include "lfr.h"
  2. #include <opencv2/core/utils/logger.hpp>
  3. int main(void)
  4. {
  5. //Disable opencv logging messages
  6. cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_WARNING);
  7. const int thresholdBinary = 140;
  8. const int videoHeight = 240;
  9. const int videoWidth = 320;
  10. const int gaussKernelSize = 21;
  11. const int thresholdCanny1 = 50;
  12. const int thresholdCanny2 = 100;
  13. const int apertureSizeCanny = 3;
  14. LFR lfr(videoHeight, videoWidth, thresholdBinary, gaussKernelSize, thresholdCanny1, thresholdCanny2, apertureSizeCanny);
  15. lfr.startLoop();
  16. //To end the video stream, write any char in the console.
  17. char a;
  18. std::cin >> a;
  19. lfr.endLoop();
  20. }