Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Put that letter in white color on a black image ( Grayscale or binary) using putText() function, then find the contour, find the boundingrect which gives you its width.

1 - Put that letter in white color on a black image ( Grayscale or binary) using putText() function,

2 - then find the contour,

3 - find the boundingrect which gives you its width.