Home > Back-end >  CV: : the format () method when the string formatted output to return to the code in English
CV: : the format () method when the string formatted output to return to the code in English

Time:10-01

OpenCV3.4.7, I in the use of CV: : String: : the format () method when the String formatting output in English to return to the code

Knowledge of the English character constants output normal
 string imgname; 
String imgname1;
String imgPath;
String imgPath1;
ImgPath=format (G: \ \ "% s", "DSC02930. JPG");//character constants of English output normal
Cout & lt; Cout & lt; ImgPath1=format (G: \ \ "% s", imgname1);//the string formatting output in English to return to the code
Cout & lt; Cout & lt;

Output:



For the reason
  • Related