0

I'm using Font-style detection in Google's DocumentAI using Python:

"premium_features": {
                "compute_style_info": True
                },

But it gives the following error: ValueError: Protocol message OcrConfig has no "premium_features" field.

https://cloud.google.com/document-ai/docs/enterprise-document-ocr#font-style_detection

p.s. I run the Python code in the Terminal after setting up the gcloud environment using gcloud auth login

1 Answer 1

0

It turns out the client library is outdated. So I did the following.

pip install --upgrade google-cloud-documentai

And it solved it.

https://cloud.google.com/document-ai/docs/libraries#install

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.