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

12345678910111213141516171819202122
  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 = 720;
  9. const int videoWidth = 1280;
  10. const int gaussKernelSize = 11;
  11. LFR lfr(videoHeight, videoWidth, thresholdBinary, gaussKernelSize);
  12. lfr.saveOutputFlag = false;
  13. lfr.videoFlag = true;
  14. lfr.startLoop();
  15. //To end the video stream, write any char in the console.
  16. char a;
  17. std::cin >> a;
  18. lfr.endLoop();
  19. }