Versions in this module Expand all Collapse all v1 v1.0.1 Feb 9, 2021 Changes in this version + const H + const HANDLER_NAME_DOWNLOAD + const HANDLER_NAME_MODEL + const MAX_LNE + const MODEL_NAME_CLASSIFY + const MODEL_NAME_EMBEDDING + const MODEL_NAME_ESMM + const MODEL_NAME_IMAGE + const MODEL_NAME_MTCNN + const SECTION_REDIS + const SH + const SW + const W + var ErrImageFormat = &errno.Errno + var ErrImageNoExist = &errno.Errno + var ErrReqBody = &errno.Errno + var ErrReqUUID = &errno.Errno + var ErrService = &errno.Errno + var ErrServiceV1 = &errno.Errno + var ErrServiceV2 = &errno.Errno + func GetImageFromFile(filename string) (gocv.Mat, error) + func GetImageFromStream(data []byte) (gocv.Mat, error) + func GetUrlID(url string) (uid string) + func GetUrlParams(c *gin.Context, key string) string + func LoadLabel(file string) (map[string]int64, error) + func MakeImageTensorByCenter(src gocv.Mat) (*tf.Tensor, error) + func MakeImageTensorByGocv(img gocv.Mat) (*tf.Tensor, error) + func MakeImageTensorByPoint(src gocv.Mat, points [][]float32) (*tf.Tensor, error) + func NewSavedModel(modelFile string) (*tf.SavedModel, error) + func PicShow(src gocv.Mat, points, boxs [][]float32) + func ToTensor(values []float32) *tf.Tensor + type ImageItem struct + Content []byte + Done bool + Female bool + Url string + type RedisInfo struct + Conf string + Expire int + Name string + Pool *redis.Pool + Prefix []string + func GetRedisInfo(cfg *goconfig.ConfigFile, section string) (*RedisInfo, error) + type ReqImage struct + Cache cache.ICache + Image []string + ImageInfo map[string]*ImageItem + Uuid string + type SRT_Item struct + Biztype string + Content string + Title string + Uuid string + type SRT_Request struct + Image map[string]*ImageItem + Input map[string][]float32 + Items []*SRT_Item + func LoadMock(filename string) (*SRT_Request, error) + type SRT_Response struct + Message string + Result interface{} + ReturnCode int