Documentation
¶
Index ¶
- Constants
- func ColsFilteredColor(img image.Image, c ...color.Color) []int
- func ColumnsFilter(img image.Image, tolerance float64, want ...color.Color) []uint
- func CropImage(img image.Image, retain image.Rectangle) (image.Image, error)
- func CropImageColor(img image.Image, tolerance float64, remove ...color.Color) (image.Image, error)
- func CropImageColorCaption(img image.Image, paddingPct, tolerance float64, remove ...color.Color) (image.Image, error)
- func DecodeWebpRGBA(r io.Reader) (image.Image, string, error)
- func IsImageExt(imagePath string) bool
- func ReadImageAny(location string) (image.Image, string, error)
- func ReadImageDimensions(imagePath string) (int, int, error)
- func ReadImageFile(filename string) (image.Image, string, error)
- func ReadImageHTTP(imageURL string) (image.Image, string, error)
- func ReadImages(locations []string) ([]image.Image, error)
- func ResizeFileJPEG(inputFile, outputFile string, outputWidth, outputHeight, quality int) error
- func RowMatch(img image.Image, rowIdx int, tolerance float64, want ...color.Color) bool
- func RowMatchCaption(paddingPct, tolerance float64, wantColorsUnique micolors.ColorsDistance, ...) bool
- func RowsFilter(img image.Image, tolerance float64, want ...color.Color) []uint
- func RowsFilterCaption(img image.Image, paddingPct, tolerance float64, want ...color.Color) []uint
- func RowsFilteredColor(img image.Image, c color.Color, cmore ...color.Color) []int
- func ToPalettedMedianCut(src image.Image) *image.Paletted
- func WriteFileJPEG(filename string, img image.Image, quality int) error
- func WriteFilePNG(filename string, img image.Image) error
- func WriteFileWEBP(filename string, img image.Image, lossless bool, perm os.FileMode) error
Constants ¶
const ( FileExtensionWebp = ".webp" FormatNameJPG = "jpeg" FormatNamePNG = "png" FormatNameWEBP = "webp" )
const ( JPEGQualityDefault int = 80 JPEGQualityMax int = 100 )
Variables ¶
This section is empty.
Functions ¶
func ColumnsFilter ¶
ColumnsFilter returns a list of column indexes that matches the wanted colors within the provided tolerane.
func CropImage ¶
CropImage takes an image and crops it to the specified rectangle. `CropImage` is from: https://stackoverflow.com/a/63256403.
func CropImageColor ¶
func CropImageColorCaption ¶
func IsImageExt ¶
func ResizeFileJPEG ¶
func RowMatchCaption ¶
func RowMatchCaption(paddingPct, tolerance float64, wantColorsUnique micolors.ColorsDistance, candidate []color.Color) bool
RowCaptionMatch matches a row with a caption. paddingPct is what is considered for matching. padding is left or right. Padding 0.5 or greater means matching the entire row. Padding <= 0 means no matching is necessary to succeed. Negative padding is not supported and converted to 0.
func RowsFilter ¶
RowsFilter returns a list of row indexes that matches the wanted colors within the provided tolerane.
func RowsFilterCaption ¶
RowsFilterCaption returns a list of column indexes that matches the wanted colors within the provided tolerane.
func RowsFilteredColor ¶
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
examples
|
|
facialrecog
|
|
pdf
|
|
qrutil provides wrapper functions for https://github.com/skip2/go-qrcode
|
qrutil provides wrapper functions for https://github.com/skip2/go-qrcode |