Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

use cv::format

Point p(5,5);
putText(image, format("(%d,%d)", p.x, p.y), maxLoc,FONT_HERSHEY_COMPLEX_SMALL, 0.8, cvScalar(255, 255, 204), 1, CV_AA);