Re: Permission Denied - PDF/TIFF Document Text Detection

20 views
Skip to first unread message

Duane Chen

unread,
Jul 19, 2018, 1:43:53 PM7/19/18
to baetens...@gmail.com, cloud-visi...@googlegroups.com
Hi Matthias,

That error means the Vision API has not been enabled on the project. You need to enable it through the provided link and also specify a billing account if that's not set up yet.

I have checked the project I am currently using, which has a different ID from the one above.

This sounds like an authentication mixup? If your current account is different from that ID then you need to switch.
 
Thanks,

Duane

On Thu, Jul 19, 2018 at 3:21 AM Matthias Baetens <baetens...@gmail.com> wrote:
Hi all,

Using the code found here, I was trying to use Vision API to do text detection on a PDF.

However, when running the code, I get the following error:
google.api_core.exceptions.PermissionDenied: 403 Cloud Vision API has not been used in project 618104708054 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/vision.googleapis.com/overview?project=618104708054 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

I am authenticated with my account, I have checked the project I am currently using, which has a different ID from the one above.
I was able to successfully do text detection on an image in the same project.

Any pointers on how to solve this or fix this, I am happy to hear!

Thanks.
Matthias

--
You received this message because you are subscribed to the Google Groups "cloud-vision-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-vision-dis...@googlegroups.com.
To post to this group, send email to cloud-visi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-vision-discuss/859e6589-4e20-4548-aca1-c09cb7585ff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthias Baetens

unread,
Jul 19, 2018, 6:39:17 PM7/19/18
to Duane Chen, cloud-visi...@googlegroups.com
Hi Duane,

Thanks for the reply. I checked my gcloud settings and the project I am currently using is the right one, but different from the ID in the error message. The API is enabled since I successfully classified images.

I got it solved by using a SA (and SA credentials). Is this the best practice for Vision API in general?

Thanks.
Matthias
--
 

Duane Chen

unread,
Jul 19, 2018, 6:49:26 PM7/19/18
to Matthias Baetens, cloud-visi...@googlegroups.com
Hi Matthias,

Glad to hear it worked out. Yes service accounts are recommended for the PDF API.

Thanks,

Duane

Matthias Baetens

unread,
Jul 20, 2018, 8:40:42 AM7/20/18
to Duane Chen, cloud-visi...@googlegroups.com
Great, thanks for confirming Duane :-)!
Best regards,
Matthias
--
 
Reply all
Reply to author
Forward
0 new messages