Appearance
设置模型参数
方法名
setConfiguration
用法
用法示例
js
module.setConfiguration({
objSizeRatioThreshold: 1.0,
overlapRatioThreshold: 1.0,
similarityThreshold: 0.45
}, res => {
console.log(res)
})参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 参数描述 |
|---|---|---|---|---|
| objSizeRatioThreshold | Float | 否 | 无 | 物体面积占比阈值,取值范围为(0,1.0),默认值为1.0。单个物体检测框在Roi裁剪后图片中占比大于该值时,不识别该物体。 |
| overlapRatioThreshold | Float | 否 | 无 | 物体重叠阈值,取值范围为(0,1.0),默认值为1.0。目的在于避免大框大面积覆盖小框的情况。小框被覆盖的比例大于该阈值时,不识别大框物体 |
| similarityThreshold | Float | 否 | 无 | 相似度阈值,取值范围为(0,1.0),默认值为0.45。会过滤小于该阈值的识别结果,越大越严格 |
回调
回调示例
json
{
"message": "",
"data": {},
"code": 0
}回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
