使用行业场景 AI
使用行业场景 AI
行业场景七类图片检测(连锁零售、明厨亮灶等)。说明见 AI 服务,接口见 行业场景 API。增值服务,可先申请免费额度测试;字段以各 OpenAPI 页为准。
公共参数
管理员 accessToken。图片入参:type(0 URL / 1 Base64)+ content。检测区域:detectRegions(归一化坐标,最多 3 组;详见各页备注)。离岗/工装/热力等可选用 人形工装库 的 repositoryId(repositoryType: human)。
接口一览
| 场景 | 接口 | 要点 |
|---|---|---|
| 抽烟 | smokingDetect | detectResult true/false |
| 玩手机 | phoneUsingDetect | 同上 |
| 货架 | shelfStatusDetect | 返回 shelfItems、vacancyRatio;字段以接口页与样例为准 |
| 垃圾满溢 | trashOverflowDetect | detectResult |
| 离岗 | absenceDetect | 可选 repositoryId + threshold |
| 工装 | workwearDetect | 可选 repositoryId + threshold |
| 热力 | heatmapDetect | 可选 excludeRepositoryIds 过滤工装库;threshold 必填 |
各接口独立调用,无固定先后。请求地址为 https://openapi.lechange.cn/openapi/ 下对应路径。
各端实现
服务端 HTTP
在服务端调用上表 HTTP 接口。