提交 4081030f authored 作者: 羊富学's avatar 羊富学

贝因美识别

上级 622a64cb
...@@ -75,15 +75,15 @@ Page({ ...@@ -75,15 +75,15 @@ Page({
src: res.tempFilePath src: res.tempFilePath
}) })
wx.request({ wx.request({
url: 'https://www.7856.work:4433/clear_fuzzy_detect/', //目标检测+判断清晰模糊接口 测试地址 url: 'https://www.7856.work:4433/api/Bym_upload/',
// url: 'https://tj5.cc:4433/object/',
// url:'https://ai.china315net.com:35437/object/',
method: 'POST', method: 'POST',
data: { data: {
base base: base,
labelCodejson: 'BeiyinmeiAi'
}, },
success: async()=> { success: async (result) => {
console.log('识别二维码成功'); if (result.data.codeinfo) {
console.log('识别二维码成功',result.data.codeinfo,result);
// 原图(默认放大两倍) // 原图(默认放大两倍)
const photo1 = await that.handleTakePoto(wx.createCameraContext(), 1) const photo1 = await that.handleTakePoto(wx.createCameraContext(), 1)
// 放大图(四倍) // 放大图(四倍)
...@@ -121,6 +121,10 @@ Page({ ...@@ -121,6 +121,10 @@ Page({
showPage: pageType showPage: pageType
}) })
}) })
} else {
tag = true
}
}, },
fail(err) { fail(err) {
tag = true tag = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论