Documentation
¶
Index ¶
- type AWSClient
- type AzureClient
- type AzureReadClient
- type Block
- type Bounds
- type Client
- type Detection
- 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
- type Line
- type Result
- type Word
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) ResultToDetection ¶
type AzureClient ¶
type AzureClient struct {
CredentialsPath string
}
func (AzureClient) ResultToDetection ¶
func (_ AzureClient) ResultToDetection(result *Result, _, _ int) (*Detection, error)
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 AzureReadClient ¶
type AzureReadClient struct {
CredentialsPath string
}
func (AzureReadClient) ResultToDetection ¶
func (_ AzureReadClient) ResultToDetection(result *Result, _, _ int) (*Detection, error)
type Bounds ¶
func DecodeBounds ¶
type Detection ¶
type Detection struct { AlgoID string `json:"algo"` Date string `json:"date"` Millis uint32 `json:"millis"` Blocks []Block `json:"blocks"` }
func (*Detection) AnnotateLineBoundaries ¶
Attempts to find line boundaries and draw them
type GCPClient ¶
type GCPClient struct {
CredentialsPath string
}
func (GCPClient) ResultToDetection ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.