ocr 初始识别
This commit is contained in:
@ -244,6 +244,8 @@ export default {
|
|||||||
this.icon = res.data;
|
this.icon = res.data;
|
||||||
},
|
},
|
||||||
async idCardOcrHandler() { // 身份证正面 ocr识别
|
async idCardOcrHandler() { // 身份证正面 ocr识别
|
||||||
|
this.driverName = '';
|
||||||
|
this.identityCardNumber = '';
|
||||||
let res = await ocrHandler({
|
let res = await ocrHandler({
|
||||||
ocrType: 1,
|
ocrType: 1,
|
||||||
imageUrl: this.identityCardFront,
|
imageUrl: this.identityCardFront,
|
||||||
@ -256,6 +258,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async drivingLicenceOcrHandler() { // 驾驶证正面 ocr识别
|
async drivingLicenceOcrHandler() { // 驾驶证正面 ocr识别
|
||||||
|
this.driverInfo.drivingLicenceValidityDate = '';
|
||||||
|
this.driverInfo.drivingBeginDate = '';
|
||||||
|
this.driverInfo.lssueDate = '';
|
||||||
|
this.drivingModel = '';
|
||||||
|
this.drivingLicenceName = '';
|
||||||
let res = await ocrHandler({
|
let res = await ocrHandler({
|
||||||
ocrType: 2,
|
ocrType: 2,
|
||||||
imageUrl: this.drivingLicenceFront,
|
imageUrl: this.drivingLicenceFront,
|
||||||
|
@ -187,6 +187,17 @@ export default {
|
|||||||
this.vehicleFrontPhoto = res.data;
|
this.vehicleFrontPhoto = res.data;
|
||||||
},
|
},
|
||||||
async vehicleOcrHandler() { // 行驶证首页 ocr 识别
|
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({
|
let res = await ocrHandler({
|
||||||
ocrType: 3,
|
ocrType: 3,
|
||||||
imageUrl: this.vehicleLicenseFront,
|
imageUrl: this.vehicleLicenseFront,
|
||||||
@ -209,6 +220,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
|
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({
|
let res = await ocrHandler({
|
||||||
ocrType: 3,
|
ocrType: 3,
|
||||||
imageUrl: this.vehicleLicenseBack,
|
imageUrl: this.vehicleLicenseBack,
|
||||||
|
Reference in New Issue
Block a user