dimanche 8 février 2015

How to insert multiple lines of text into frame/image


Vote count:

0




I have created a frame using C++ with OpenCV and want to insert few lines of text into it.


The following code is used:


putText(frame, "My text here", cvPoint(30,30), FONT_HERSHEY_COMPLEX_SMALL, 0.8, cvScalar(200,200,250), 1, CV_AA);


But here, i want to write, assuming 2 separate lines, "hello" and "welcome". The problem here is \n and endl are not working. Also if possible to align the text to be middle of the frame.


Thank you very much.



asked 39 secs ago







How to insert multiple lines of text into frame/image

Aucun commentaire:

Enregistrer un commentaire