这里只有实现代码,其他实体类等请上腾讯云官网下载SDK :文字识别 驾驶证识别 - 服务端 API 文档 - 文档中心 - 腾讯云
上代码:
import com.ruoyi.app.controller.service.TencentService;
import com.ruoyi.app.controller.tencent.OcrClient;
import com.ruoyi.app.controller.tencent.common.Credential;
import com.ruoyi.app.controller.tencent.common.exception.TencentCloudSDKException;
import com.ruoyi.app.controller.tencent.common.profile.ClientProfile;
import com.ruoyi.app.controller.tencent.common.profile.HttpProfile;
import com.ruoyi.app.controller.tencent.domain.*;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.DriverwalletBankCard;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sun.misc.BASE64Encoder;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.BufferedReader;
import java.