Class ImageMetaDataHelper


  • public class ImageMetaDataHelper
    extends Object
    Helper class for reading meta-data from images.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • ImageMetaDataHelper

        public ImageMetaDataHelper()
    • Method Detail

      • fixDateTime

        protected static String fixDateTime​(String s)
        Fixes date/time strings. Replaces the ":" in the date with "-" to be ADAMS compatible.
        Parameters:
        s - the string to inspect
        Returns:
        the (potentially) fixed string
      • commons

        public static SpreadSheet commons​(File file)
                                   throws Exception
        Reads the meta-data from the file (Commons Imaging).
        Parameters:
        file - the file to read the meta-data from
        Returns:
        the meta-data
        Throws:
        Exception - if failed to read meta-data
      • metaDataExtractor

        public static SpreadSheet metaDataExtractor​(File file)
                                             throws Exception
        Reads the meta-data from the file (using meta-data extractor).
        Parameters:
        file - the file to read the meta-data from
        Returns:
        the meta-data
        Throws:
        Exception - if failed to read meta-data