oralDiseasePredictionRun(params: Object)

版本要求:
AIKit≥1.6.0@ray-js/ray≥1.7.43
支持平台:
iOSAndroid
import { ai } from '@ray-js/ray';

const { oralDiseasePredictionRun } = ai;

// Promise 调用
try {
  const res = await oralDiseasePredictionRun({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

描述

口腔疾病预测

参数

属性类型必填说明AIKit 最低版本
devIdstring是设备名称v2.0.1
inputImagePathstring是图片输入路径-
outImagePathstring是图片输出目录-
complete() => void否接口调用结束的回调函数(调用成功、失败都会执行)-
success(params: Object) => void否接口调用成功的回调函数-
fail(params: Object) => void否接口调用失败的回调函数-
success 回调参数
属性类型说明
nonOralboolean是否非口腔图片
diseaseTypestring[]预测结果 Normal 正常 Calculus 结石 Caries 龋齿 Gingivitis 牙龈炎 Ulcers 溃疡 Discoloration 牙齿变色 Hypodontia 牙齿发育不全
heatMapPathstring模型热力图
sunlightPathstring日光模式滤镜
chromaPathstring牙周模式滤镜图
grayscalePathstring龋齿模式滤镜图
fail 回调参数
属性类型说明
errorMsgstring错误信息
errorCodestring | number错误码
错误扩展

返回值

无

示例代码

import { ai } from '@ray-js/ray'

ai.oralDiseasePredictionRun({
  devId: "xx",
  inputImagePath: "xx",
  outImagePath: "xx",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});