Versions in this module Expand all Collapse all v0 v0.1.0 Nov 8, 2019 Changes in this version + func Crop(img image.Image, x, y, w, h int) (image.Image, error) + func CropImage(src, dst string, x, y, w, h int) error + func ImageExportBase64(path string, inc bool) (base64Str string, err error) + func ImageRead(path string) (image.Image, error) + func ImageWrite(img image.Image, path string) error + type ApiOcr struct + func NewClient(apiKey, secretKey, apiUrl string) ApiOcr + func (api *ApiOcr) GetToken() (string, error) + func (api ApiOcr) GetWords(base64Str string) (wordsList []string, err error) + func (api ApiOcr) GetWordsFromImage(path string) (wordsList []string, err error) + type Base64Exporter struct + func NewBase64Exporter(ext string, img image.Image, inc bool) Base64Exporter + func (o Base64Exporter) Export() (base64Str string, err error) + type Image struct + func (o Image) Read() (image.Image, error) + func (o Image) Write() error + type ImageReader interface + Read func() (image.Image, error) + func NewImageReader(path string) ImageReader + type ImageWriter interface + Write func() error + func NewImageWriter(img image.Image, path string) ImageWriter