ocr

package
v0.0.0-...-07b6649 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClient

type AWSClient struct {
	CredentialsPath string
}

func (AWSClient) Run

func (c AWSClient) Run(image []byte) (*Result, error)

Method required by ocr.Client Returns AWS document text detection Result Reference: https://docs.aws.amazon.com/textract/

type AzureClient

type AzureClient struct {
	CredentialsPath string
}

func (AzureClient) Run

func (c AzureClient) Run(image []byte) (*Result, error)

Method required by ocr.Client Returns Azure document text detection Result Example: https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/quickstarts/go-print-text

type Client

type Client interface {
	Run(image []byte) (*Result, error)
}

type GCPClient

type GCPClient struct {
	CredentialsPath string
}

func (GCPClient) Run

func (c GCPClient) Run(file []byte) (*Result, error)

Method required by ocr.Client Returns GCP document text detection Result Reference: https://cloud.google.com/vision/docs/apis

type Result

type Result struct {
	Service  string `json:"service"`
	Version  string `json:"version"`
	FullText string `json:"text"`
	Duration int64  `json:"milliseconds"`
	Date     string `json:"date"`
	Raw      []byte `json:"raw"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL