Borrar filtros
Borrar filtros

Count number of horizontal and vertical lines in an image

1 visualización (últimos 30 días)
Neha Tapkir
Neha Tapkir el 22 de Mzo. de 2016
Respondida: Charles Dunn el 22 de Mzo. de 2016
I am working on a project based on OCR. For the feature extraction part of our project, we need to count the number of horizontal, vertical and slanting lines in the letter. We have tried using houghlines and imfilter, but did not get satisfactory results.

Respuestas (1)

Charles Dunn
Charles Dunn el 22 de Mzo. de 2016
It is often useful to do edge detection before using the hough transform. You might consider binarizing by using the Canny edge detection (imcanny) before applying the hough transform. Not sure if you are already doing this.
BW = edge(I,'canny');

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by