百度 文字识别
下载SDK

使用
require_once __DIR__ . '/../../../Tools/Baidu/AipOcr.php'; 引入
$image = $request->img; 获取base64 去掉头部的图片 $res = new \AipOcr('23607144', 'QG1frZuwlofnMgnmlLiwEm6G', 'PSaxOLZfSTfVHvxrfbEMI5KG9CPonuBU'); $data = $res->idcard(base64_decode($image), 'front');

浙公网安备 33010602011771号