Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to do horizontal projection in opencv using java?

I have a mat file that contains a binarized image and i would like to do a horizontal projection to that image to get the peaks of black pixel so I can get the locations of horizontal lines.

here is a sample image that I'm currently using: image description

I would like to get the positions of stafflines from this kind of image.