Documentation ¶
Index ¶
- Variables
- func ArgSplit(str string) (result []string)
- func CompareId(number json.Number, _id interface{}) bool
- func DecodeGifWithCompleteFrame(r io.Reader) (g *gif.GIF, err error)
- func FilePathWalkDir(root string) ([]string, error)
- func FuncName() string
- func GetGifDimensions(gif *gif.GIF) (x, y int)
- func GroupLogFields(groupCode int64) logrus.Fields
- func ImageFormat(origImage []byte) (string, error)
- func ImageGet(url string, prefer proxy_pool.Prefer, opt ...requests.Option) ([]byte, error)
- func ImageGetAndNorm(url string, prefer proxy_pool.Prefer) ([]byte, error)
- func ImageNormSize(origImage []byte) ([]byte, error)
- func ImageReserve(imgBytes []byte) ([]byte, error)
- func ImageSuffix(name string) bool
- func MessageFilter(msg []message.IMessageElement, filter func(message.IMessageElement) bool) []message.IMessageElement
- func MessageTextf(format string, args ...interface{}) *message.TextElement
- func MsgToString(elements []message.IMessageElement) (res string)
- func NewAnimeCascadeClassifier() gocv.CascadeClassifier
- func NewFaceCascadeClassifier() gocv.CascadeClassifier
- func OpenCvAnimeFaceDetect(imgBytes []byte) ([]byte, error)
- func PrefixMatch(opts []string, target string) (string, bool)
- func Retry(count int, interval time.Duration, f func() bool) bool
- func Switch2Bool(_s string) bool
- func TimestampFormat(ts int64) string
- func ToDatas(data interface{}) (requests.Datas, error)
- func ToParams(get interface{}) (requests.Params, error)
- func UnquoteString(s string) (string, error)
- func UploadGroupImage(groupCode int64, img []byte, isNorm bool) (image *message.GroupImageElement, err error)
- func UploadGroupImageByUrl(groupCode int64, url string, isNorm bool, prefer proxy_pool.Prefer) (*message.GroupImageElement, error)
- type EmitE
- type EmitQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGoCvNotSetUp = errors.New("gocv not setup")
Functions ¶
func FilePathWalkDir ¶
func GetGifDimensions ¶
func GroupLogFields ¶ added in v0.0.10
func ImageFormat ¶
func ImageGetAndNorm ¶
func ImageGetAndNorm(url string, prefer proxy_pool.Prefer) ([]byte, error)
func ImageNormSize ¶
func ImageReserve ¶
func ImageSuffix ¶
func MessageFilter ¶
func MessageFilter(msg []message.IMessageElement, filter func(message.IMessageElement) bool) []message.IMessageElement
func MessageTextf ¶
func MessageTextf(format string, args ...interface{}) *message.TextElement
func MsgToString ¶ added in v0.0.10
func MsgToString(elements []message.IMessageElement) (res string)
func NewAnimeCascadeClassifier ¶
func NewAnimeCascadeClassifier() gocv.CascadeClassifier
func NewFaceCascadeClassifier ¶
func NewFaceCascadeClassifier() gocv.CascadeClassifier
func OpenCvAnimeFaceDetect ¶
func Switch2Bool ¶ added in v0.0.10
func TimestampFormat ¶
func UnquoteString ¶
func UploadGroupImage ¶
func UploadGroupImageByUrl ¶
func UploadGroupImageByUrl(groupCode int64, url string, isNorm bool, prefer proxy_pool.Prefer) (*message.GroupImageElement, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.