Browse Source

main lfr loop back to camera

pull/1/head
Tim Zeuner 2 years ago
parent
commit
e41f6b47d9
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      lfr.cpp

+ 3
- 4
lfr.cpp View File

namedWindow("Display window"); namedWindow("Display window");
while(iAmLooping) while(iAmLooping)
{ {
Mat image = input.readFile("C:\\Line-Following-Robot\\Test_data");
Mat processedImage = image;
processing.processImage(processedImage, this->thresholdBinary, this->gaussKernelSize);
std::vector<Vec4i> lines = processing.calculateLineSegments(processedImage);
Mat image = input.readWebcam();
processing.processImage(image, this->thresholdBinary, this->gaussKernelSize);
std::vector<Vec4i> lines = processing.calculateLineSegments(image);
for( size_t i = 0; i < lines.size(); i++ ) for( size_t i = 0; i < lines.size(); i++ )
{ {
line( image, Point(lines[i][0], lines[i][1]), line( image, Point(lines[i][0], lines[i][1]),

Loading…
Cancel
Save