Commit 218358a5 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

corrected text detection once again to match the new MSER interface

parent 763954f8
......@@ -191,8 +191,9 @@ int main(int argc, char* argv[])
{
//Extract MSER
vector<vector<Point> > contours;
vector<Rect> bboxes;
Ptr<MSER> mser = MSER::create(21,(int)(0.00002*grey.cols*grey.rows),(int)(0.05*grey.cols*grey.rows),1,0.7);
mser->detectAndStore(grey, contours);
mser->detectRegions(grey, contours, bboxes);
//Convert the output of MSER to suitable input for the grouping/recognition algorithms
if (contours.size() > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment