# Generated by ShowAPI OpenAPI generator
# source: market/1306
# generated-at: 2026-06-26T01:51:53.795Z
openapi: 3.0.3
info:
  title: 通用卡证图像OCR识别
  description: 基于行业前沿的深度学习技术，为用户提供通用的印刷文字识别和文档结构化等能力。方便用户在智能图片识别、认证、鉴权、资质审核等业务时使用。可灵活应用于银行卡识别、驾照识别、户口页识别及名片识别等业务场景。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /1306-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 45
    x-connect-timeout: 15
    post:
      summary: 证件识别
      description: |-
        提供常见的证件识别,识别的速度快、准确率高。
        若识别身份证，请使用【个人证照识别】接口（此接口暂不支持）。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          result:
                            type: array
                            items:
                              type: object
                              properties:
                                paraVal:
                                  type: string
                                  description: 字段值
                                paraName:
                                  type: string
                                  description: 字段含义
                                paraSimpleName:
                                  type: string
                                  description: 字段名称
                            description: 识别结果列表
                          ret_code:
                            type: number
                            description: 0表示识别成功
                          flag:
                            type: boolean
                          msg:
                            type: string
                        description: 业务返回体
      operationId: 1306_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                imgData:
                  type: string
                  minLength: 1
                  maxLength: 1500000
                  description: 证件图片对应的base64信息
                type:
                  type: string
                  description: 证件类型,具体类型请参考帮助手册"证件类别参考表"
              required:
                - imgData
                - type
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/1306?tab=book
x-apiCode: "1306"
x-is-own: false
x-is-op: true
