Skip to content

Image Geolocation using Pillow library in Python. Searching for exact coordinates embedded in exif data of an image, and extracting it.

Notifications You must be signed in to change notification settings

yashpotdar-py/image_gps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image Geolocation

This code is designed to extract GPS coordinates from an image and then open the location on Google Maps in a web browser.

Dependencies

The code requires the following libraries to be installed:

  • 'requests'
  • 'tqdm'
  • 'Pillow'

Usage

To use this code, you need to provide the path of the image file that you want to extract GPS coordinates from. You can do this by running the 'exif_data.py' module and following the prompts:

python exif_data.py

If the image file contains GPS information, the latitude and longitude coordinates will be extracted and printed to the console. Otherwise, an error message will be displayed.

Next, you can use the extracted coordinates to open Google Maps in a web browser by running the 'main.py' module:

python main.py

This will check for an internet connection and then open Google Maps in a new tab with the location of the image displayed. If an internet connection cannot be established or the image file does not contain GPS information, an error message will be displayed.

Conclusion

Overall, this code provides a simple way to quickly view the location of an image on Google Maps if the image contains GPS information.

About

Image Geolocation using Pillow library in Python. Searching for exact coordinates embedded in exif data of an image, and extracting it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages