Fx.AI:处理AI相关的API
1、图片识别-detectPic
定义:Fx.AI.detectPic(<String modelId>,<String path>)
参数 | 说明 |
---|---|
modelId | 物体识别模型唯一ID |
path | 图片路径 |
data返回值类型:Map(返回图片识别的产品数据) 返回值例:
{"path":"N_202006_09_87e2be5f5c364bda9cb5ed61a21ddd25","objectList":[{"apiName":"ProductObj","dataId":"5d3bbf1e7cfed965a54daf70","position":{"x":532.0,"y":756.0,"w":78.0,"h":146.0},"score":"0.9921149611473083","color":"C91F25"},{"apiName":"ProductObj","dataId":"5d3bbf1e7cfed965a54daf72","position":{"x":220.0,"y":761.0,"w":86.0,"h":72.0},"score":"0.9953563809394836","color":"3DD4C4"},{"apiName":"ProductObj","dataId":"5d3bbf1e7cfed965a54daf72","position":{"x":327.0,"y":840.0,"w":82.0,"h":62.0},"score":"0.9940695762634277","color":"3DD4C4"},{"apiName":"ProductObj","dataId":"5d3bbe347cfed965a54dacb7","position":{"x":475.0,"y":942.0,"w":81.0,"h":77.0},"score":"0.9963515996932983","color":"3F3F98"}]}
使用例:
def ret = Fx.AI.detectPic("5dabce96e75d9594e1dc05f6", "N_202006_09_87e2be5f5c364bda9cb5ed61a21ddd25")
注:企业有模型才可以使用For example, Einstein Prediction Builder will show the service reps that a customer is likely to attrit because their last purchase was 3 months ago. Also, their store isn’t located in a region where your products are in high demand. With that insight, how does a service rep respond? Which insight is more important than the other? Einstein Discovery can answer that for you. What if it tells you that consumer demand in a certain retail location is more important? With that insight, your service teams can work with sales, marketing, and product teams to design products that meet the demand for that location, or boost marketing in those areas to increase awareness of the products.