Deletes the temp image once is used.

parent 77bd319a
......@@ -34,9 +34,10 @@ public class SIFTActivity extends Activity {
EarIdentifier identifier = new EarIdentifier(null);
Intent intent = SIFTActivity.this.getIntent();
Bundle extras = intent.getExtras();
File imagePath = (File)extras.get("image_path");
String features = identifier.computeFeatures(imagePath.getAbsolutePath());
System.out.println(features);
String imagePath = (String)extras.get("image_path");
String features = identifier.computeFeatures(imagePath);
// Once we have the features, we can delete the image.
new File(imagePath).delete();
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment