text detection by finding maximal stable extreme regions of an image using matlab -


i doing text detection image have perspective view. vl_feat this.

but got error:

attempt execute script vl_mser function:
h:\maincode\vl_mser.m
error in ==> textdetection @ 47
[r,f] = vl_mser(gray_image,'mindiversity',0.7,'maxvariation',0.2,'delta',10);

any 1 can me avoid error , run code

thanks sir .i avoided multiple identically-named .m files , run program l got error , changed after run program.i got output while taking mser error occurred , given below automatic text detection: starting demo... automatic text detection: ready.

warning: name nonexistent or not directory: h:\mainproject\codes\ret_2014-master\files\vlfeat\toolbox\mex\mexw32.

in path @ 110 in addpath @ 87 in vl_setup @ 78 in run @ 57 in textdetectiondemo>pushbutton1_callback @ 128 in gui_mainfcn @ 96 in textdetectiondemo @ 42 in @(hobject,eventdata)textdetectiondemo('pushbutton1_callback',hobject,eventdata,guidata(hobject)) ??? attempt execute script vl_mser function: h:\mainproject\codes\ret_2014-master\files\vlfeat\toolbox\mser\vl_mser.m

error in ==> textdetectiondemo>pushbutton1_callback @ 134 [r,f] = vl_mser(gray_image,'mindiversity',mindiversity,'maxvariation',maxvariation,'delta',delta) ;

error in ==> gui_mainfcn @ 96 feval(varargin{:});

error in ==> textdetectiondemo @ 42 gui_mainfcn(gui_state, varargin{:});

error in ==> @(hobject,eventdata)textdetectiondemo('pushbutton1_callback',hobject,eventdata,guidata(hobject))

??? error while evaluating uicontrol callback

anyone can me clear pls..

it have either made changes vl_mser.m (e.g. added code above function definition), or have 2 files named vl_mser.m , matlab picking wrong 1 (sometimes called "shadowing").

the code expects function (something can call inputs , outputs), , it's finding script (something runs set of statements , takes no input). if don't understand difference, should read through mathworks help.

first, try this:

which vl_mser.m 

this should show matlab finding vl_mser.m, function it's trying run.

then this:

which vl_mser.m -all 

this show files called vl_mser.m on path.

the simplest way resolve make sure not have multiple identically-named .m files.


Comments