Coder Social home page Coder Social logo

pierrunoyt / photo-location-finder Goto Github PK

View Code? Open in Web Editor NEW
67.0 2.0 1.0 58 KB

This program allows the user to detect landmarks in an image using the Google Cloud Vision API. The program prompts the user for the image path, API key, and credentials to authenticate with the Google Cloud API.

License: MIT License

Python 100.00%

photo-location-finder's Introduction

photo-location-finder

This Python program detects landmarks, labels, and web entities in a set of images using the Google Cloud Vision API. The program takes a JSON configuration file that contains the API key and credentials file path for the Google Cloud Vision API, as well as other optional parameters, such as the directory for image files.

Prerequisites

Before running the program, ensure that you have:

  • A valid Google Cloud API key
  • Google Cloud credentials file
  • A directory with images for landmark detection
  • All required libraries and packages

Installation

  1. Clone the repository onto your local machine:

    git clone https://github.com/PierrunoYT/photo-location-finder
    

    Alternatively, download the zip file from GitHub.

  2. Ensure that you have Python 3.7 or later installed on your local machine.

  3. Navigate to the root directory of the project and install the required packages:

    pip install -r requirements.txt
    
  4. Obtain API keys for Google Cloud Vision API and Google Maps API by following the documentation provided by each respective API.

  5. Set up the authentication credentials for Google Cloud Vision API by creating a service account and storing the private key JSON file in a secure location. Follow the instructions provided in the Google Cloud Vision Official Documentation

  6. Open the config.json file and replace the placeholders with your actual Google Maps API key and the path to the private key JSON file. Update other parameters in the configuration file if necessary.

  7. Store the images you want to analyze in the directory mentioned in the image_dir parameter specified in the config.json file.

  8. To run the script, navigate to the root directory of the project and run the following command:

    python main.py
    

    The detection process will start, and you will see output in the terminal indicating the status of each image being processed. When the process is complete, you will find a result.json file in the current working directory containing the results of the object detection.

License

This program is licensed under the MIT License. See the LICENSE file for more information.

Contact

For any questions or suggestions, please contact the author via the Issues or Pull requests.

photo-location-finder's People

Contributors

pierrunoyt avatar

Stargazers

Antonio Gonzalez  avatar Amaury Van Espen avatar Lord Basil - Automate EVERYTHING avatar  avatar  avatar Rowe Ayce avatar Aleksey avatar  avatar  avatar beamfields avatar xranytel avatar Yousef Ebrahimi avatar  avatar Mitch Haddadi avatar farhan nadim pial avatar Minotaur avatar Kemal YETKİN avatar  avatar Shirshak Roy avatar summermorningdream avatar Pavel Klymenko avatar Subxpl0it avatar Bob of DevOps avatar Ken Nickerson avatar  avatar  avatar Bastien Perez avatar  avatar  avatar  avatar Yura Svetlanov avatar mpksldrv avatar  avatar  avatar lukas.zmoginas avatar Mr_ech001 avatar  avatar Dipak Kumar Das avatar Adrian Wyssmann avatar six2dez avatar Gabriele Orazi avatar Thomasrgx avatar  avatar  avatar Mike avatar Johannes Fromm avatar Isaac Reid-Guest avatar  avatar  avatar Jacob A Rose avatar  avatar Nivalis ❆ avatar  avatar Emmanuel Pays avatar Jaikishan Tulswani avatar BalikFR avatar Matteo avatar Jeff Carpenter avatar Soxoj avatar Giacomo Giallombardo avatar Hany Zaher avatar Amanda Alexandre avatar  avatar guzmud avatar GOΠZO avatar Jake Creps avatar Capitalmind avatar

Watchers

Amaury Van Espen avatar  avatar

Forkers

ikhaleelkhan

photo-location-finder's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.