original_docstring: Load the extracted exif data from the csv stored in file_folder.
      timezone_diff_h: Timezone correction to get a UTC timestamp (Only one timezone can be set)
      Autofix: Set to True to correct bad stored exif time. Set to False to only get the ERROR and manually fix.
      
docstring: Load the extracted exif data from the csv stored in file_folder.
  timezone_diff_h: Timezone correction to get a UTC timestamp (Only one timezone can be set)
  Autofix: Set to True to correct bad stored exif time. Set to False to only get the ERROR and manually fix.
docstring_tokens: Load the extracted exif data from the csv stored in file_folder . timezone_diff_h : Timezone correction to get a UTC timestamp ( Only one timezone can be set ) Autofix : Set to True to correct bad stored exif time . Set to False to only get the ERROR and manually fix .
code: def load_exif_data(file_folder, timezone_diff_h, autofix):
      """Load the extracted exif data from the csv stored in file_folder.
      timezone_diff_h: Timezone correction to get a UTC timestamp (Only one timezone can be set)
      Autofix: Set to True to correct bad stored exif time. Set to False to only get the ERROR and manually fix.
      """
      with open(file_folder + "exif.csv") as csvfile:
          reader = csv.reader(csvfile)
          data = list(reader)
      dict_exif = {'timestampMs_localtime': [], 'timezoneH': timezone_diff_h, 'timestampMs': [],
                   'pic_idx': [], 'filename': [], 'has_gps': [], 'latitude': [], 'longitude': [], }
      for i in range(len(data)):
          local_datetime = datetime.strptime(data[i][0], "%Y-%m-%d %H:%M:%S")
          dict_exif['timestampMs_localtime'].append(local_datetime)
          dict_exif['has_gps'].append(bool(int(data[i][1])))
          dict_exif['latitude'].append(float(data[i][2]))
          dict_exif['longitude'].append(float(data[i][3]))
          dict_exif['pic_idx'].append(int(data[i][4]))
          dict_exif['filename'].append(data[i][5])
          dict_exif['timestampMs'].append(local_datetime - timedelta(hours=timezone_diff_h))
  
      check_time_order(dict_exif, autofix)
      return dict_exif
code_tokens: def load_exif_data ( file_folder , timezone_diff_h , autofix ) : with open ( file_folder + "exif.csv" ) as csvfile : reader = csv . reader ( csvfile ) data = list ( reader ) dict_exif = { 'timestampMs_localtime' : [ ] , 'timezoneH' : timezone_diff_h , 'timestampMs' : [ ] , 'pic_idx' : [ ] , 'filename' : [ ] , 'has_gps' : [ ] , 'latitude' : [ ] , 'longitude' : [ ] , } for i in range ( len ( data ) ) : local_datetime = datetime . strptime ( data [ i ] [ 0 ] , "%Y-%m-%d %H:%M:%S" ) dict_exif [ 'timestampMs_localtime' ] . append ( local_datetime ) dict_exif [ 'has_gps' ] . append ( bool ( int ( data [ i ] [ 1 ] ) ) ) dict_exif [ 'latitude' ] . append ( float ( data [ i ] [ 2 ] ) ) dict_exif [ 'longitude' ] . append ( float ( data [ i ] [ 3 ] ) ) dict_exif [ 'pic_idx' ] . append ( int ( data [ i ] [ 4 ] ) ) dict_exif [ 'filename' ] . append ( data [ i ] [ 5 ] ) dict_exif [ 'timestampMs' ] . append ( local_datetime - timedelta ( hours = timezone_diff_h ) ) check_time_order ( dict_exif , autofix ) return dict_exif
short_docstring: Load the extracted exif data from the csv stored in file_folder.
short_docstring_tokens: Load the extracted exif data from the csv stored in file_folder .
comment: """Load the extracted exif data from the csv stored in file_folder.
      timezone_diff_h: Timezone correction to get a UTC timestamp (Only one timezone can be set)
      Autofix: Set to True to correct bad stored exif time. Set to False to only get the ERROR and manually fix.
      """