/verification/ocr
上传身份证正反面Base64图片进行OCR识别,提取姓名和身份证号。参考:GB/T 35273-2020 (个人信息安全规范)。
Request Body
Schema: gitee_com_linmes_authms_micro-services_verification-service_internal_handler_dto.SubmitOCRRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
back_image |
string |
Yes | |||
front_image |
string |
Yes |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 识别成功,返回姓名、身份证号与认证状态 | dto.DataResponse-gitee_com_linmes_authms_micro-services_verification-service_internal_handler_dto_SubmitOCRResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 401 | 未认证或令牌无效 | dto.SimpleResponse |
| 500 | 服务内部错误 | dto.SimpleResponse |
Referenced Schemas
dto.DataResponse-gitee_com_linmes_authms_micro-services_verification-service_internal_handler_dto_SubmitOCRResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
gitee_com_linmes_authms_micro-services_verification-service_internal_handler_dto.SubmitOCRResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
gitee_com_linmes_authms_micro-services_verification-service_internal_handler_dto.SubmitOCRResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
ocr_confidence |
number |
No | |||
ocr_id_number |
string |
No | |||
ocr_name |
string |
No | |||
status |
string |
No | |||
verification_id |
string |
No |