Skip to content
Snippets Groups Projects
Commit 89ded34f authored by DESKTOP-D6EHK2V\chay's avatar DESKTOP-D6EHK2V\chay
Browse files

fix:修改AI识别

parent 81d33598
Branches
No related tags found
No related merge requests found
......@@ -71,18 +71,15 @@ function MiniAiIdentify() {
.postPhotoAcquisitionCategory({ img: imgBase64 })
.then((res) => {
console.log(777, res);
if (res.code === 200) {
//接口成功
let aidataRes = res.data;
console.log(78, aidataRes);
let aidataRes = res.data;//AI数据
if (aidataRes.code === 200) {
//识别成功
setAiData(aidataRes[0].detectedInfo[0]);
drawCanvas(aidataRes[0].detectedInfo[0]);
setAiData(aidataRes.data[0]?.detectedInfo[0]);
drawCanvas(aidataRes.data[0]?.detectedInfo[0]);
} else {
//未识别
console.log("卫视吧");
setVisible(true);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment