Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How would I format my string in opencv java to implement next line?

I have formated my string to be output via putText() as follows;

String predictedResult = "Name :"+resultRetrieved[4] + "\r\n"+ "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

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?

How would I format my string in opencv java to implement next line?line via putText?

I have formated my string to be output via putText() as follows;

String predictedResult = "Name :"+resultRetrieved[4] + "\r\n"+ "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

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?

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 = "Name :"+resultRetrieved[4] + "\r\n"+ "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

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?

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 = "Name "1. Name :"+resultRetrieved[4] + "\r\n"+ "ID "2. ID :"+resultRetrieved[5] + "\r\n";

in putText() I pass

predictedResult

and I expect to have these two lines

  1. Name: Joseph Mwema Mwema
  2. 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?