Asked • 04/09/19

how to get shutter actuation count from image metadata android?

I am using metadata-extractor-2.5.0-RC3.jar to extract metadata from an image. It shows all the details except shutter count. It there any possibility to get all metadata from an image private void prosessImage(Uri uri) {   try {    // InputStream is = new URL(uri);    InputStream is = null;    is = getContentResolver().openInputStream(uri);    // Convert your stream to data here    // is.close();    BufferedInputStream bis = new BufferedInputStream(is);    Metadata metadata = ImageMetadataReader.readMetadata(bis, true);    JSONArray data = new JSONArray();    for (Directory directory : metadata.getDirectories()) {     for (Tag tag : directory.getTags()) {      System.out.println(tag);      data.put(tag);     }    }    System.out.println(data);    // JSONArray dictionary = new JSONArray();   } catch (ImageProcessingException e) {    e.printStackTrace();   } catch (IOException e) {    e.printStackTrace();   }  }

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.