First time here? Check out the FAQ!
answered 2016-06-01 04:03:01 -0600
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);