How would I format my string in opencv java to implement next line via putText?
I have formated my string to be output via putText() as follows;
String predictedResult = "1. Name :"+resultRetrieved[4] + "\r\n"+ "2. ID :"+resultRetrieved[5] + "\r\n";
in putText() I pass
predictedResult
and I expect to have these two lines
- Name: Joseph Mwema
- ID: IDTEST001
but I end up having this one liner
Name: Joseph Mwema?? ID: IDTEST001??
How can I get this fixed? I am developing my application using java. Someone kindly show me how to do this correctly?
putText() does no linefeed, for 3 lines of text, you need 3 putText calls(at digfferent x,y locations).
also, it can handle only a small ascii subset, for any unrecognized char you get a '?',
Oh! let me try with 3 putText() functions.