Documentation ¶
Index ¶
- 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
- type Base64Exporter
- type Image
- type ImageReader
- type ImageWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageExportBase64 ¶
Export base64 format image data form the image path directly
Types ¶
type ApiOcr ¶
type ApiOcr struct {
// contains filtered or unexported fields
}
The high-precision version can be requested 500 times a day for free
type Base64Exporter ¶
type Base64Exporter struct {
// contains filtered or unexported fields
}
func NewBase64Exporter ¶
func NewBase64Exporter(ext string, img image.Image, inc bool) Base64Exporter
func (Base64Exporter) Export ¶
func (o Base64Exporter) Export() (base64Str string, err error)
type ImageReader ¶
func NewImageReader ¶
func NewImageReader(path string) ImageReader
type ImageWriter ¶
type ImageWriter interface {
Write() error
}
func NewImageWriter ¶
func NewImageWriter(img image.Image, path string) ImageWriter
Click to show internal directories.
Click to hide internal directories.