行驶证副页ocr识别,以档案编号区分识别成功换成以车牌号区分
This commit is contained in:
@ -227,6 +227,7 @@ export default {
|
||||
this.vehicleLicenseInfo.permittedWeight = '';
|
||||
this.vehicleLicenseInfo.overallDimension = '';
|
||||
this.vehicleLicenseInfo.tractionWeight = '';
|
||||
this.vehicleLicenseInfo.backPlateNo = ''; // 行驶证副页 车牌号,仅用来判断 ocr 识别是否成功
|
||||
let res = await ocrHandler({
|
||||
ocrType: 3,
|
||||
imageUrl: this.vehicleLicenseBack,
|
||||
@ -241,6 +242,7 @@ export default {
|
||||
this.vehicleLicenseInfo.permittedWeight = backInfo?.loadQuality;
|
||||
this.vehicleLicenseInfo.overallDimension = backInfo?.externalSize;
|
||||
this.vehicleLicenseInfo.tractionWeight = backInfo?.TotalQuasiMass;
|
||||
this.vehicleLicenseInfo.backPlateNo = backInfo?.plateNo;
|
||||
}
|
||||
console.log('this.vehicle', this.vehicleLicenseInfo)
|
||||
},
|
||||
@ -307,7 +309,7 @@ export default {
|
||||
this.$toast('行驶证主页识别失败')
|
||||
return
|
||||
}
|
||||
if( !this.vehicleLicenseInfo.recordNumber ) {
|
||||
if( !this.vehicleLicenseInfo.backPlateNo ) {
|
||||
this.$toast('行驶证副页识别失败')
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user