Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How to calculate text dimensions for anti-aliased linetype?

$
0
0
I know how to obtain the dimensions of the text using `cv::getTextSize()`, but this only works correctly for non-antialiased linetypes (default=8 and 4). When using `CV_AA` (linetype=16) the text is partially outside the size defined by `cv::getTextSize()`.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>