Documentation ¶
Index ¶
- Variables
- func ApplyModel(modelName string) error
- func ComputeImageMean(sourceFile, binaryFile string) error
- func ConvertImageset(args ...string) error
- func GetCurrentModel() (modelName string, err error)
- func IsOnSolving() bool
- func IsPredictAlive() bool
- func Kill() (err error)
- func ListModels() (modelNames []string, err error)
- func Plot(suffix string) (data []byte, err error)
- func RemoveModel(modelName string) error
- func Run(args ...string) error
- func Solve()
- func Solver()
- func StartPredict() error
- func StopPredict() error
- func StopSolve()
- type PredictResult
- type PredictTag
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var CAFFE = "caffe"
View Source
var COMPUTER_IMAGE_MEAN = "compute_image_mean"
View Source
var CONVERT_IMAGESET = "convert_imageset"
View Source
var Locker = new(sync.Mutex)
Functions ¶
func ApplyModel ¶
func ComputeImageMean ¶
func ConvertImageset ¶
func GetCurrentModel ¶
func IsOnSolving ¶
func IsOnSolving() bool
func IsPredictAlive ¶
func IsPredictAlive() bool
func ListModels ¶
func RemoveModel ¶
func StartPredict ¶
func StartPredict() error
func StopPredict ¶
func StopPredict() error
Types ¶
type PredictResult ¶
type PredictResult struct { BetResult []PredictTag `json:"bet_result,omitempty"` Time float64 `json:"time,omitempty"` Error string `json:"err,omitempty"` }
func PredictUrl ¶
func PredictUrl(imgUrl string) (result PredictResult, err error)
type PredictTag ¶
Click to show internal directories.
Click to hide internal directories.