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

1234567891011121314151617181920
  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 = 110;
  8. const int videoHeight = 240;
  9. const int videoWidth = 320;
  10. const int gaussKernelSize = 5;
  11. LFR lfr(videoHeight, videoWidth, thresholdBinary, gaussKernelSize);
  12. lfr.startLoop();
  13. //To end the video stream, write any char in the console.
  14. char a;
  15. std::cin >> a;
  16. lfr.endLoop();
  17. }