Google Cloud OCR returning cyrillic characters

Viewed 90

I need to replace M and K in an OCR result. Sometimes, however, google-vision recognizes it as cyrillic K or M.

To prevent this, I tried to limit language to english.

response = client.text_detection(image=open(img, 'rb'), image_context={"language_hints": ["en"]})

However, I'm not sure if I done it right... cyrillic alphabet keeps popping up and I'm afraid it would use another alphabet.

Is there a way to force only english alphabet?

['1.3M/1.2M', '663.8K/1.5M']
0 Answers
Related