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