Derive insight from images with our powerful Cloud Vision API. Image analysis with pretrained models. Homepage
Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
How it works? You’ll get $300 credit to use for up to 60 days. You won’t be charged until you upgrade your account, and you can cancel at any time.
Use Google APIs. Enable APIS, create credentials and track your usage.
API Manager
Dashboard. Enable API
Search: Translate
Google Cloud Vision API. Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
Enable
Google Application Default Credentials
The Application Default Credentials provide a simple way to get authorization credentials for use in calling Google APIs. Homepage
Credentials
Create Credentials
Service Account Key. Enable Server-to-Server, app-level authentication using robot accounts. For use with Google Cloud APIs.
Select an existing service account or create a new one: App Engine Default Service Account
root@edison:~/vision/cloud-vision/python/face_detection# wget https://upload.wikimedia.org/wikipedia/commons/5/5d/Barack_Obama_family_portrait_2011.jpg
--2016-03-20 00:24:03-- https://upload.wikimedia.org/wikipedia/commons/5/5d/Barack_Obama_family_portrait_2011.jpg
Resolving upload.wikimedia.org... 208.80.153.240, 2620:0:860:ed1a::2:b
Connecting to upload.wikimedia.org|208.80.153.240|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1972894 (1.9M) [image/jpeg]
Saving to: 'Barack_Obama_family_portrait_2011.jpg'
100%[======================================>] 1,972,894 264KB/s in 16s
2016-03-20 00:24:20 (122 KB/s) - 'Barack_Obama_family_portrait_2011.jpg' saved [1972894/1972894]
root@edison:~/vision/cloud-vision/python/face_detection# mv Barack_Obama_family_portrait_2011.jpg face-input.jpeg
root@edison:~/vision/cloud-vision/python/face_detection# time python faces.py face-input.jpeg
Found 4 faces
Writing to file out.jpg
real 0m56.898s
user 0m11.820s
sys 0m0.490s
root@edison:~/vision/cloud-vision/python/face_detection#
Errors
root@edison:~/vision/cloud-vision/python/face_detection# python faces.py face-input.jpeg
Found 1 face
Writing to file out.jpg
root@edison:~/vision/cloud-vision/python/face_detection#
root@edison:~/vision/cloud-vision/python/face_detection# pip install six