Versions in this module Expand all Collapse all v1 v1.1.2 Jun 15, 2021 Changes in this version + type AWSClient struct + CredentialsPath string + func (_ AWSClient) ResultToDetection(result *Result, width, height int) (*Detection, error) + func (c AWSClient) Run(image []byte) (*Result, error) + type AzureClient struct + CredentialsPath string + func (_ AzureClient) ResultToDetection(result *Result, _, _ int) (*Detection, error) + func (c AzureClient) Run(image []byte) (*Result, error) + type AzureReadClient struct + CredentialsPath string + func (_ AzureReadClient) ResultToDetection(result *Result, _, _ int) (*Detection, error) + func (c AzureReadClient) Run(image []byte) (*Result, error) + type Block struct + Bounds string + Lines []Line + type Bounds struct + H int + W int + X int + Y int + func DecodeBounds(bounds string) (Bounds, error) + type Client interface + ResultToDetection func(result *Result, width, height int) (*Detection, error) + Run func(image []byte) (*Result, error) + type Detection struct + AlgoID string + Blocks []Block + Date string + Millis uint32 + func Merge(blws []Detection) (*Detection, error) + func (d *Detection) Annotate(src []byte, c color.Color, ab, al, aw bool) ([]byte, error) + func (d *Detection) AnnotateLineBoundaries(src []byte, c color.Color) ([]byte, error) + func (d *Detection) CountBLW() (int, int, int) + func (d *Detection) Flatten() ([]bWord, error) + func (d *Detection) Plaintext() string + type GCPClient struct + CredentialsPath string + func (_ GCPClient) ResultToDetection(result *Result, _, _ int) (*Detection, error) + func (c GCPClient) Run(file []byte) (*Result, error) + type Line struct + Bounds string + Words []Word + type Result struct + Date string + Duration int64 + FullText string + Raw []byte + Service string + Version string + type Word struct + Bounds string + Text string v1.1.1 May 30, 2021 v1.1.0 May 27, 2021 v1.0.0 Apr 15, 2021