Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can google vision API accept external image URL?

I am reading documentation on vision API request schema. In image source, I only see option of using url of GCS image paths. Is it possible to use external image url like http://example.com/images/image01.jpg ?

like image 856
Ashish Jain Avatar asked Mar 04 '16 19:03

Ashish Jain


People also ask

Does Google use the image I send to the cloud vision API?

Does Google use the image I send to the Vision API? Google does not use any of your content (such as images and labels) for any purpose except to provide you with the Vision API service.

Does Google vision use Tesseract?

Tesseract is the most prominent opensource OCR engine. Originally developed by Hewlett-Packard, it is now sponsored by Google. The active community continually works to improve it and there are regular new updates.

What is the maximum image size for the OCR API?

Image size should not exceed 75M pixels (length x width) for OCR analysis. If the image size exceeds 75M pixels (length x width) , the Vision API resizes the image; otherwise, the Vision API uses the original image. These recommended sizes differ based on the feature being detected.


2 Answers

Yes, this is working perfectly fine:

{
  "requests": [
    {
      "features": [
        {
          "type": "WEB_DETECTION"
        }
      ],
      "image": {
        "source": {
          "imageUri": "http://i3.kym-cdn.com/photos/images/facebook/000/242/592/1c8.jpg"
        }
      }
    }
  ]
}
like image 164
JacopKane Avatar answered Oct 11 '22 02:10

JacopKane


Yes it can, but ONLY using google cloud storage urls. Try this:

{
  "requests": [
    {
      "image": {
        "source": {
          gcsImageUri: 'gs://something.com/image',
        },
      },
      "features": ...
      "imageContext": ...
    },
  ]
}
like image 45
Belfordz Avatar answered Oct 11 '22 01:10

Belfordz