In [2]:
#This script detects text/OCR in within an image. Jack and Jill ...

import argparse
import io

from google.cloud import vision

client = vision.Client()
image = client.image(source_uri='http://www.siyalla.com/kids/nursery_rhymes/jack-and-jill.jpg')

texts = image.detect_text()
texts[0].locale
x=texts[0].description

print "The image text says :"
print x


The image text says :
Jack & Jill
Jack and Jill
Went up the hill
To fetch a pail of watei
Jack fell down
And bioke his ciown
And Jill came tumbling after.
Up Jack got
And home did tiot
As fast as he could caper
Went to bed
And plasteed his head
And plastered his head
With vinegai and biown pa
www.Siyalla com


In [ ]:


In [ ]: