Google Vision API Error Code
<p>I am trying the example code in 
<a href="https://googlecloudplatform.github.io/google-cloud-python/stable/vision-usage.html" rel="nofollow">https://googlecloudplatform.github.io/google-cloud-python/stable/vision-usage.html</a></p>

<pre><code>from google.cloud import vision
   client = vision.Client()
   image = client.image('./image.jpg')
   safe_search = image.detect_safe_search()
</code></pre>

<p>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</p>

<pre><code>{u'error': {u'message': u'image-annotator::error(12): Image processing error!', u'code': 13}}
</code></pre>

<p>I could not find any references for the error code in the documentation of api. What am I missing?</p>

<p><a href="https://code.google.com/p/google-cloud-platform/issues/detail?id=123" rel="nofollow">Here's an issue</a> which also mentions the error. That issue has been forwarded to the Google engineering team.</p>

<p>Could you perhaps try re-encoding your image? Save it as a png or resave to jpg to see if maybe it's corrupted or anything?</p>

python google-cloud-vision google-cloud-python