Documentation ¶
Index ¶
- Constants
- type ImageScorer
- type Service
- func (s *Service) Close()
- func (s *Service) ImgUpload(ctx context.Context, req *v1.ImgUploadRequest) (rep *v1.ImgUploadResponse, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) VideoCoverScore(c context.Context, name string, f multipart.File) (resp *httpV1.ScoreResponse, err error)
Constants ¶
View Source
const (
//BUCKET ...
BUCKET = "bbq"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageScorer ¶
type ImageScorer struct { Score float32 // contains filtered or unexported fields }
ImageScorer .
func NewImageScorer ¶
func NewImageScorer(img image.Image, step int) (is *ImageScorer, err error)
NewImageScorer .
func (*ImageScorer) CompareWithPure ¶
func (is *ImageScorer) CompareWithPure()
CompareWithPure 与纯色图片比较hash距离
Click to show internal directories.
Click to hide internal directories.