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.
2 | No.2 Revision |
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.