diff --git a/src/components/ImageRecognition.vue b/src/components/ImageRecognition.vue new file mode 100644 index 0000000..1d2c012 --- /dev/null +++ b/src/components/ImageRecognition.vue @@ -0,0 +1,439 @@ + + + + 快递取件码识别 + + + + + + + + 点击上传图片 + 支持快递短信截图、取件码截图等 + + + + + + + + + {{ previewImage ? '重新选择' : '选择图片' }} + + + {{ isRecognizing ? 'AI识别中...' : '开始识别' }} + + + + + + {{ recognitionStatus }} + + + + 识别结果 + + {{ recognitionResult.formatted_text }} + + + + 驿站:{{ station.name }} + + 取件码:{{ code }} + 复制 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 20aa335..7398540 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,6 +6,7 @@ import Dashboard from '../components/Dashboard.vue' import HowToUse from '../components/HowToUse.vue' import CommunityRequest from '../components/CommunityRequest.vue' import PartnerRequest from '../components/PartnerRequest.vue' +import ImageRecognition from '../components/ImageRecognition.vue' const routes = [ { @@ -60,6 +61,14 @@ const routes = [ meta: { title: '申请成为服务商/运营商' } + }, + { + path: '/image-recognition', + name: 'ImageRecognition', + component: ImageRecognition, + meta: { + title: '快递取件码识别' + } } ]
{{ recognitionResult.formatted_text }}