Show / Hide Table of Contents

Class OcrGoogleCloud

This OCR engine uses Google Cloud Vision API.

public class OcrGoogleCloud : IOcrEngine
Remarks

Sends image to Google Cloud and gets results. The OCR engine is accurate but much slower than the default engine or Tesseract. Depends on internet connection speed.

To use this engine, need to have a Google Cloud account, enable Vision API and get API key. The service isn't free, but 1000 or so requests/month are free.


Namespace: Au.More
Assembly: Au.dll
Inheritance
object
OcrGoogleCloud

Constructors

Name Description
OcrGoogleCloud(string)

Properties

Name Description
DpiScale

Let OCR functions scale images captured from a window or screen, 1-2 times depending on DPI, unless non-zero scale parameter is specified.

Features

Feature type, like "TEXT_DETECTION". Or JSON of features array content, like """{ "type": "TEXT_DETECTION", "model": "builtin/latest" }""". If null, uses "DOCUMENT_TEXT_DETECTION".

ImageContext

JSON of imageContext, like """{ "languageHints": [ "ja" ] }""". Optional.

Methods

Name Description
Recognize(Bitmap, bool, double)

Recognizes text in image.