Skip to content

Read and write exif geotags from JPEG images

Notifications You must be signed in to change notification settings

wchang22/GeoTag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoTag

Read and write exif/xmp geotags from/to JPEG images

Dependencies

Functions

# Convert decimal lat/lon to degrees, minutes, seconds (dms)
coord_dec_to_dms(coord)

# Convert dms lat to decimal form
# lat_ref specifies N or S
lat_dms_to_dec(lat, lat_ref)

# Convert dms lon to decimal form
# lon_ref specifies E or W
lon_dms_to_dec(lon, lon_ref)

# write geotags (lat, lon, absolute alt, heading, roll, pitch, yaw) to image
write_geo_tag(img_path, lat, lon, alt_abs, hdg=None, roll=None, pitch=None, yaw=None)

# read geotags from an image in the form (lat, lon, abs alt, hdg, roll, pitch, yaw)
read_geo_tag(img_path)

About

Read and write exif geotags from JPEG images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages