From 218358a5d5e4cbfc033cf83bb7addd77a5867ad1 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 16 Oct 2014 22:00:19 +0400 Subject: [PATCH] corrected text detection once again to match the new MSER interface --- modules/text/samples/webcam_demo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/text/samples/webcam_demo.cpp b/modules/text/samples/webcam_demo.cpp index 5160e7e65..125ff0e56 100644 --- a/modules/text/samples/webcam_demo.cpp +++ b/modules/text/samples/webcam_demo.cpp @@ -191,8 +191,9 @@ int main(int argc, char* argv[]) { //Extract MSER vector > contours; + vector bboxes; Ptr 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)