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

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