resizer

package
v0.0.0-...-3570e06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//TypeSmartcrop will use magic to find the center of attention
	TypeSmartcrop paint.ResizeType = "smartcrop"
)

Variables

View Source
var (
	//ErrNoFacesFound this error will be produced if no face could be found in the image
	ErrNoFacesFound = errors.New("No faces found")
)

Functions

func NewSmartcrop

func NewSmartcrop(haarcascade string, fallbackResizer paint.Resizer) paint.Resizer

NewSmartcrop returns a new resizer for the `TypeSmartcrop` it needs opencv internally so this resizer Warning: will not allow cross compilation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL