Skip to content

Instantly share code, notes, and snippets.

@JustinBeckwith
Created March 18, 2016 21:12
Show Gist options
  • Save JustinBeckwith/60aea974d177265f9e99 to your computer and use it in GitHub Desktop.
Save JustinBeckwith/60aea974d177265f9e99 to your computer and use it in GitHub Desktop.
Google Cloud Vision API with Node.js example
var gcloud = require('gcloud')({
projectId: 'my-project',
keyFilename: 'keyfile.json'
});
var vision = gcloud.vision();
vision.detectText('./image.jpg', function(err, text) {
if (text.length > 0) {
console.log('We found text on this image...');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment