如何让网站快速收录,北京网站建设工作,网站资料素材怎么做,织梦框架做网站简单文章目录 一、效果#xff1a;二、实现#xff1a; 一、效果#xff1a; 二、实现#xff1a;
【阿里官方】高精版OCR文字识别【最新版】-云市场-阿里云
templateview classcontainer!-- 选择图片 --button clickimageO… 文章目录 一、效果二、实现 一、效果 二、实现
【阿里官方】高精版OCR文字识别【最新版】-云市场-阿里云
templateview classcontainer!-- 选择图片 --button clickimageOcrRecognition选择图片/buttonview v-htmlcontent/view/view
/templatescriptimport { pathToBase64, base64ToPath } from image-tools//npm i image-tools --saveexport default {data() {return {content: ,}},methods: {imageOcrRecognition() {const that this;uni.chooseImage({count: 1,sizeType: [original, compressed],sourceType: [album, camera],success: (res) {pathToBase64(res.tempFilePaths[0]).then(base64 {uni.request({url: https://gjbsb.market.alicloudapi.com/ocrserve/advanced,dataType: json,header: {Authorization: APPCODE 你的AppCode},data: { img: base64.substring(base64.indexOf(,) 1) },method: POST,success(res) {console.log(res);that.content res.data.content;}})})}})},},}
/script