Borrar filtros
Borrar filtros

I am unable to bound the text lines in a rectangle

1 visualización (últimos 30 días)
suvendra sahoo
suvendra sahoo el 9 de En. de 2014
Comentada: md mizan chowdhury el 16 de Oct. de 2017
Hi Imageanalyst,
I want to bind my text lines in a rectangle and want to store that rectangle for use. This is my code , can you rectify my code.
a=imread('sample.jpg'); figure,imshow(a) b=rgb2gray(a); Ibw= b<128; Ibw = imclose(Ibw, true(7)); [Ilabel num] = bwlabel(Ibw); Iprops = regionprops(Ilabel); Ibox = [Iprops.BoundingBox]; imshow(Ibw) rectangle('position',Ibox,'edgecolor','r');
Thanks

Respuestas (1)

md mizan chowdhury
md mizan chowdhury el 16 de Oct. de 2017
bound box text image ...not non text...

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by