Questions tagged [google-cloud-vision]

Google Cloud Vision API enables developers to understand the content of an image by encapsulating powerful machine learning models in an easy to use REST API.

Google Cloud Vision API enables developers to understand the content of an image by encapsulating powerful machine learning models in an easy to use REST API. It quickly classifies images into thousands of categories (e.g., "sailboat", "lion", "Eiffel Tower"), detects individual objects and faces within images, and finds and reads printed words contained within images.

You can build metadata on your image catalog, moderate offensive content, or enable new marketing scenarios through image sentiment analysis. Analyze images uploaded in the request, and in upcoming releases, integrate with your image storage on Google Cloud Storage. Documentation

889 questions
28
votes
2 answers

Is there a full list of potential labels that Google's Vision API will return?

I've been testing out Google's Vision API to attach labels to different images. For a given image, I'll get back something like this: "google_labels": { "responses": [{ "labelAnnotations": [{ "score":…
Hillary Sanders
  • 5,778
  • 10
  • 33
  • 50
22
votes
1 answer

Get Lines and Paragraphs, not symbols from Google Vision API OCR on PDF

I am attempting to use the now supported PDF/TIFF Document Text Detection from the Google Cloud Vision API. Using their example code I am able to submit a PDF and receive back a JSON object with the extracted text. My issue is that the JSON file…
metersk
  • 11,803
  • 21
  • 63
  • 100
19
votes
8 answers

Get correct image orientation by Google Cloud Vision api (TEXT_DETECTION)

I tried Google Cloud Vision api (TEXT_DETECTION) on 90 degrees rotated image. It still can return recognized text correctly. (see image below) That means the engine can recognize text even the image is 90, 180, 270 degrees rotated. However the…
Jack Fan
  • 2,143
  • 3
  • 18
  • 25
17
votes
1 answer

Google Vision API does not recognize single digits

I have a project that make use of Google Vision API DOCUMENT_TEXT_DETECTION in order to extract text from document images. Often the API has troubles in recognizing single digits, as you can see in this image: I suppose that the problem could be…
17
votes
2 answers

Google Cloud Vision - Numbers and Numerals OCR

I've been trying to implement an OCR program with Python that reads numbers with a specific format, XXX-XXX. I used Google's Cloud Vision API Text Recognition, but the results were unreliable. Out of 30 high-contrast 1280 x 1024 bmp images, only a…
16
votes
4 answers

API Key not valid error when trying to access Google cloud vision api

I am trying to test out the vision API and have uploaded some images to Google cloud storage and have created a browser app that requests the cloud api to process them. I have a client_id file that I downloaded from the Google developers console.…
Roaders
  • 4,373
  • 8
  • 50
  • 71
15
votes
10 answers

"We can not access the URL currently."

I call google api when the return of "We can not access the URL currently." But the resources must exist and can be accessed. https://vision.googleapis.com/v1/images:annotate request content: { "requests": [ { "image": { …
wei193
  • 151
  • 1
  • 3
15
votes
3 answers

How to install google.cloud with Python pip?

I am relatively new to Python and I am stuck on something which is probably relatively easy to resolve. I have installed the following packages: pip install --upgrade google-api-python-client pip install --upgrade google-cloud pip install --upgrade…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
15
votes
6 answers

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 ?
Ashish Jain
  • 329
  • 2
  • 5
  • 13
12
votes
6 answers

How to upload an image to Google Cloud Storage from an image url in Node?

Given an image url, how can I upload that image to Google Cloud Storage for image processing using Node.js?
12
votes
6 answers

Google Cloud Vision API Permission Denied

I was trying to run the sample app, found here Github Sample, I have created a certificate and created a API Key and applied as instructed. But when I upload the Image I am getting this Exception. I dont know where I have made a mistake. Have I…
Amalan Dhananjayan
  • 2,277
  • 1
  • 34
  • 47
11
votes
3 answers

ImportError: cannot import name 'types' from 'google.cloud.vision' though I have google cloud vision installed

I have installed google-cloud-vision library following the documentation. It is for some reason unable to import types from google.cloud.vision. It worked fine on my pc, now when I shared with my client, he had a problem with imports though he has…
Hissaan Ali
  • 2,229
  • 4
  • 25
  • 51
11
votes
3 answers

Can't import google.cloud.vision

I'm using Anaconda, and I'm trying to use google cloud vision, but I cannot import google cloud vision. I can import google cloud, but it throws an error below. from google.cloud import vision ImportError: cannot import name 'vision' What module…
joey22
  • 221
  • 1
  • 4
  • 11
10
votes
2 answers

Google Lens APIs/SDK

I was going through the Google Cloud Vision API to search for related products in the image. However, I found that I need to first create a product set (and upload the images) and then search on the set that I've created. Is there any API via which…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
10
votes
6 answers

Text extraction - line-by-line

I am using Google Vision API, primarily to extract texts. I works fine, but for specific cases where I would need the API to scan the enter line, spits out the text before moving to the next line. However, it appears that the API is using some kind…
1
2 3
59 60