Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use find contours to detect the black bars In your sample image you need to convert image to Black and white , the B/W should be inverted before passed to findcontours

use the following sample as a guide Contours sample