Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you basically do the same, the main difference is the path:

 // locate your sdcard, my images are in an "ocv" subfolder:
 String folder = Environment.getExternalStorageDirectory().getPath() + "/ocv";  

 Highgui.imwrite(folder + "/" + "name.png", resImg);

you basically do the same, the main difference is the path:

 // locate your sdcard, my images are in an "ocv" subfolder:
 String folder = Environment.getExternalStorageDirectory().getPath() + "/ocv";  
  // imwrite() won't create folders though, you have to do that manually before !
 Highgui.imwrite(folder + "/" + "name.png", resImg);