Error while running Image stitching tutorial [closed]
When I compile the tutorial code on link it gives the following error
: error: ‘samples’ has not been declared
Mat img = imread(samples::findFile(argv[i]));
It can be corrected by replacing the above line with
Mat image=imread(argv[i],IMREAD_COLOR);
which compiles without any error
Also when I used the following
using namespace samples;
in the code it gives the following error
error: expected namespace-name before ‘;’ token
using namespace samples;
It looks like the latest version of opencv does not support namespace "samples"
Should I edit the code on github
System Ubuntu 18.04
Compiled using "g++ stitch.cpp -o app pkg-config --cflags --libs opencv
"