12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #pragma once
-
- #include <iostream>
- #include <future>
- #include <thread>
-
- #include <opencv2/opencv.hpp>
-
- #include <input.h>
- #include <processing.h>
- #include <control_module.h>
- #include <interpreter.h>
- #include <intersection_handler.h>
-
-
- using namespace cv;
-
- class LFR
- {
- Input input;
- Processing processing;
- ControlModule controlModule;
- Interpreter interpreter;
- IntersectionHandler intersectionHandler;
- volatile bool iAmLooping;
- void loop();
- thread loopThread;
- int thresholdBinary;
- int gaussKernelSize;
- int thresholdCanny1;
- int thresholdCanny2;
- int apertureSizeCanny;
- cv::Rect roi;
-
- void provideOutput(const Mat& image);
-
- public:
-
- LFR() = delete;
- LFR(int videoHeight, int videoWidth, int thresholdBinary, int gaussKernelSize, int thresholdCanny1, int thresholdCanny2, int apertureSizeCanny);
- ~LFR();
-
- void startLoop();
- void endLoop();
-
-
- bool videoFlag;
- bool saveOutputFlag;
-
- std::string outputFileName;
-
- };
|