-
[Python] 1. 사진에서 GPS 데이터 추출 (Exif, GPS info)Hobby 2024. 1. 21. 17:18
from PIL import Image from PIL.ExifTags import TAGS import webbrowser image = Image.open("위치 정보가 기입된 사진.jpg") info = image._getexif(); image.close() taglabel = {} for tag,value in info.items(): decoded = TAGS.get(tag, tag) taglabel[decoded] = value print(taglabel['DateTimeOriginal']) print(taglabel['DateTimeDigitized']) print(taglabel['DateTime']) print(taglabel['GPSInfo']) 상기 Code를 실행하면 아래와 같은 ..