ocr 初始识别
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user