I am trying the example code in https://googlecloudplatform.github.io/google-cloud-python/stable/vision-usage.html
from google.cloud import vision
client = vision.Client()
image = client.image('./image.jpg')
safe_search = image.detect_safe_search()
image.detect_safe_search throws a key error for the result returned from api. On printing the result dict, I found the it didn't have the expected key because it gave error response. The response returned from google api is
{u'error': {u'message': u'image-annotator::error(12): Image processing error!', u'code': 13}}
I could not find any references for the error code in the documentation of api. What am I missing?