Deletes the temp image once is used.

parent 77bd319a
...@@ -34,9 +34,10 @@ public class SIFTActivity extends Activity { ...@@ -34,9 +34,10 @@ public class SIFTActivity extends Activity {
EarIdentifier identifier = new EarIdentifier(null); EarIdentifier identifier = new EarIdentifier(null);
Intent intent = SIFTActivity.this.getIntent(); Intent intent = SIFTActivity.this.getIntent();
Bundle extras = intent.getExtras(); Bundle extras = intent.getExtras();
File imagePath = (File)extras.get("image_path"); String imagePath = (String)extras.get("image_path");
String features = identifier.computeFeatures(imagePath.getAbsolutePath()); String features = identifier.computeFeatures(imagePath);
System.out.println(features); // Once we have the features, we can delete the image.
new File(imagePath).delete();
} }
return null; 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