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);
2 | No.2 Revision |
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);