How to get shutter count from image metadata

I am using metadata-extractor-2.5.0-RC3.jar to extract metadata from an image. It displays all the details except the shutter amount. There is any opportunity to get all the metadata from the 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();
    }
}

      

+3


source to share


1 answer


Hello everyone, I find a tag for the shutter counter



"[Nikon Makernote] Impact sequence number - 7733",

+1


source







All Articles