Checking image labels which made by Google Vision as local web page.
Please prepare in advance on Google Cloud Platform.
- Project ID
- Service account key (JSON file)
$ git clone [email protected]:mochizukikotaro/google_vision_labels_sample.git
$ cd google_vision_labels_sample
$ npm install
$ export GCLOUD_PROJECT=<your-project-id>
$ export GOOGLE_APPLICATION_CREDENTIALS=<path_to_service_account_file>
$ sh batch.sh
$ php -S localhost:5555 # Any port number is OK
then, you can access localhost:5555
.
If you want to use your original images, please update images folder before sh batch.sh
.
https://cloud.google.com/vision/docs/label-tutorial https://cloud.google.com/vision/docs/common/auth#authenticating_with_application_default_credentials