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,

View File

@ -187,6 +187,17 @@ export default {
this.vehicleFrontPhoto = res.data;
},
async vehicleOcrHandler() { // 行驶证首页 ocr 识别
this.vehicleLicenseInfo.licensePlateNumber = '';
this.vehicleLicenseInfo.vehicleType = '';
this.vehicleLicenseInfo.owner = '';
this.vehicleLicenseInfo.address = '';
this.vehicleLicenseInfo.useNature = '';
this.vehicleLicenseInfo.model = '';
this.vehicleLicenseInfo.vinCode = '';
this.vehicleLicenseInfo.engineNumber = '';
this.vehicleLicenseInfo.registrationDate = '';
this.vehicleLicenseInfo.issueDate = '';
this.vehicleLicenseInfo.issueAuthority = '';
let res = await ocrHandler({
ocrType: 3,
imageUrl: this.vehicleLicenseFront,
@ -209,6 +220,13 @@ export default {
}
},
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
this.vehicleLicenseInfo.recordNumber = '';
this.vehicleLicenseInfo.passengerCapacity = '';
this.vehicleLicenseInfo.totalWeight = '';
this.vehicleLicenseInfo.curbWeight = '';
this.vehicleLicenseInfo.permittedWeight = '';
this.vehicleLicenseInfo.overallDimension = '';
this.vehicleLicenseInfo.tractionWeight = '';
let res = await ocrHandler({
ocrType: 3,
imageUrl: this.vehicleLicenseBack,