ocr 初始识别

This commit is contained in:
2024-04-29 16:01:50 +08:00
parent eb0c77e155
commit 2c66c4bb0a
2 changed files with 25 additions and 0 deletions

View File

@@ -244,6 +244,8 @@ export default {
this.icon = res.data;
},
async idCardOcrHandler() { // 身份证正面 ocr识别
this.driverName = '';
this.identityCardNumber = '';
let res = await ocrHandler({
ocrType: 1,
imageUrl: this.identityCardFront,
@@ -256,6 +258,11 @@ export default {
}
},
async drivingLicenceOcrHandler() { // 驾驶证正面 ocr识别
this.driverInfo.drivingLicenceValidityDate = '';
this.driverInfo.drivingBeginDate = '';
this.driverInfo.lssueDate = '';
this.drivingModel = '';
this.drivingLicenceName = '';
let res = await ocrHandler({
ocrType: 2,
imageUrl: this.drivingLicenceFront,