captcha

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPostionErr = errors.New("postion error")
)

Functions

func Check

func Check(paramInPoint *Point, cachedPoint *Point) error

Check 验证位置是否正确

func LoadBackgroudImages

func LoadBackgroudImages(path string) (err error)

func LoadBlockImages

func LoadBlockImages(path string) (err error)

Types

type CutoutRet

type CutoutRet struct {
	Point        *Point
	BackgroudImg string
	BlockImg     string
}

CutoutRet 抠图出来的结果

func Run

func Run() (*CutoutRet, error)

type ImageBuf

type ImageBuf struct {
	// contains filtered or unexported fields
}

type Point

type Point struct {
	X int
	Y int
}

Point 随机生成的抠图位置

Jump to

Keyboard shortcuts

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