if you have an OK background on C++ you can follow easily: ive seperated the camera capturing and the edge detection to separate classes. the main entry point remains the same. you can use the code to add a new class to process images using the atscameraCapture class. #include <iostream> #include <iomanip> #include <sstream> #include <string> #include <vector> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> //for atsEdges #include <opencv2/imgproc/imgproc.hpp> class atscameraCapture { public: cv::Mat ats_getImage() { //check if Camera is still open if (!cap.isOpened()) { std::cout< "Cant Capture"; exit(0); ...
Aresh T. Saharkhiz