Fx.AI:處理AI相關(guān)的API
1、圖片識(shí)別-detectPic
定義:Fx.AI.detectPic(<String modelId>,<String path>)
參數(shù) | 說(shuō)明 |
---|---|
modelId | 物體識(shí)別模型唯一ID |
path | 圖片路徑 |
data返回值類(lèi)型:Map(返回圖片識(shí)別的產(chǎn)品數(shù)據(jù)) 返回值例:
{"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")
注:企業(yè)有模型才可以使用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.