LoginSignup
1
2

More than 5 years have passed since last update.

google vision API

Last updated at Posted at 2017-03-03

チュートリアルやってみた

チュートリアルのリポジトリを取得

取得.sh
TUTORIALDIR=~/src/プロジェクト名/python_vision_quickstart-2017-03-03-12-14
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git $TUTORIALDIR
cd $TUTORIALDIR/vision/api/label

API認証作成

認証.sh
gcloud iam service-accounts create vision-quickstart;
gcloud iam service-accounts keys create key.json --iam-account vision-quickstart@プロジェクト名.iam.gserviceaccount.com && export GOOGLE_APPLICATION_CREDENTIALS=key.json

ラベル付

ラベル.sh
python label.py resources/cat.jpg

ランドマーク検出やってみた

回答:Statue of Liberty (○)

画像のラベル付けやってみた

回答:
cat
mammal
vertebrate
whiskers

回答:
dog
mammal
vertebrate
dog breed

回答:
dog
mammal
dog breed
vertebrate

回答:
face
person
nose
head

回答:
person
public speaking
speech
official

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2