翔云PHP身份证识别接口集成示例-护照识别-港澳台通行证识别
证件识别接口简介:
证件识别接口一般是指针对各类证件进行识别,其中包含但不限于身份证识别、护照识别、港澳台通行证识别、户口页识别、驾驶证识别、行驶证识别、台湾健保卡等,其多应用于需要进行实名认证与证件信息登记的场景。
证件身份证识别接口返回结果示例如下:
证件识别接口PHP集成代码如下:
'https://netocr.com/api/recogliu.do', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => array('img' => '/9j','key' => 'M***********g','secret' => '3***********6','typeId' => '2','format' => 'json'), )); $response = curl_exec($curl); curl_close($curl); echo $response; } } $rtn = (new Sample())->run(); print_r($rtn);