Skip to content

ciandt-d1/vision-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vision API Example

This simple code example demonstrates how to use the Google Vision API to tag images.

  1. Extract the file test-images.tar.gz to project root folder.

  2. Setup environment

    virtualenv -p python3 venv
    source venv/bin/activate
    pip3 install -r requirement.txt
  3. Running example:

    export PROJECT=your-gcp-project
    python3 snippet.py ${PROJECT} images/dataset.csv --export_json True
  4. Check results: This example saves image tags to Google Cloud Datastore and uploads the image to Google Cloud Storage. This can be useful to build an extension to allow searching images by tags.

    • Datastore: alt text

    • GCS: alt text

    • JSON files containing image tags will be exported to 'output' folder if the flag '--export_json' is True.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages