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.