Documentation ¶
Index ¶
- func GetAi(uuid string) *typex.AI
- func GetRuleX() typex.RuleX
- func ListAi() []*typex.AI
- func LoadAi(Ai *typex.AI) error
- func NewBodyPoseRecognition(re typex.RuleX) typex.XAi
- func RemoveAi(uuid string) error
- func StartAi(uuid string) error
- func Stop()
- func StopAi(uuid string) error
- func UpdateAi(Ai *typex.AI) error
- type AIRuntime
- type Algorithm
- type AlgorithmResource
- type BodyPoseRecognition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algorithm ¶
type Algorithm struct { UUID string // UUID Type string // 模型类型: ANN_APP1 RNN_APP2 CNN_APP3 .... Name string // 名称 State int // 0开启;1关闭 Document string // 文档连接 Description string // 概述 }
* * 算法模型 *
type AlgorithmResource ¶
type AlgorithmResource interface { Init(map[string]interface{}) error // 初始化环境 // Type , Sample, ExpectOut Train(string, [][]float64, [][]float64) error // 训练模型 Load() error // 加载模型 OnCall(string, [][]float64) map[string]interface{} // 用数据去执行 Unload() error // 卸载模型 AiDetail() Algorithm // 获取信息 }
* * AI 接口 *
type BodyPoseRecognition ¶
type BodyPoseRecognition struct { }
func (*BodyPoseRecognition) Infer ¶
func (ba *BodyPoseRecognition) Infer(input [][]float64) [][]float64
func (*BodyPoseRecognition) Start ¶
func (ba *BodyPoseRecognition) Start(map[string]interface{}) error
func (*BodyPoseRecognition) Stop ¶
func (ba *BodyPoseRecognition) Stop()
Click to show internal directories.
Click to hide internal directories.