Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you berak. That did the trick. I actually did this and now I have the 2 lines as I wanted. Thanks a bunch.

double fontScale = 2; Scalar color = new Scalar(fontScale); Point pointXY1 = new Point(10, 10); Point pointXY2 = new Point(10, 25);

putText(frame, "Name :"+resultRetrieved[0], pointXY1 , FONT_HERSHEY_PLAIN, 0.8, color, 1, CV_AA, false); putText(frame, "ID :"+resultRetrieved[2], pointXY2 , FONT_HERSHEY_PLAIN, 0.8, color, 1, CV_AA, false);

Thank you berak. That did the trick. I actually did this and now I have the 2 lines as I wanted. Thanks a bunch.

double fontScale = 2; Scalar color = new Scalar(fontScale); Point pointXY1 = new Point(10, 10); Point pointXY2 = new Point(10, 25);30);

putText(frame, putText(imgMat, "Name :"+resultRetrieved[0], :"+resultRetrieved[4], pointXY1 , FONT_HERSHEY_PLAIN, 0.8, color, 1, CV_AA, false); putText(frame, putText(imgMat, "ID :"+resultRetrieved[2], :"+resultRetrieved[5], pointXY2 , FONT_HERSHEY_PLAIN, 0.8, color, 1, CV_AA, false);

click to hide/show revision 3
No.3 Revision

updated 2015-06-18 01:54:10 -0600

berak gravatar image

Thank you berak. That did the trick. I actually did this and now I have the 2 lines as I wanted. Thanks a bunch.

double fontScale = 2;
Scalar color = new Scalar(fontScale);
Point pointXY1 = new Point(10, 10);
Point pointXY2 = new Point(10, 30);

30);

putText(imgMat, "Name :"+resultRetrieved[4], pointXY1 , FONT_HERSHEY_PLAIN, 0.8, color, 1, CV_AA, false); putText(imgMat, "ID :"+resultRetrieved[5], pointXY2 , FONT_HERSHEY_PLAIN, 0.8, color, 1, CV_AA, false);

false);