身份证识别ocr、身份证实名认证接口文档

每一次验证背后,都是对用户数据安全的承诺,对平台信誉的坚守。翔云身份证实名认证API,通过身份证识别接口仅需一键上传身份证图片即可快速识别身份证信息,翔云实名认证接口实时联网查验证件信息的真伪。

​PHP身份证实名认证接口文档代码如下:


<?php
class Sample {

	public function run() {
		$curl = curl_init();
		curl_setopt_array($curl, array(

			CURLOPT_URL => 'https://netocr.com/verapi/veriden.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','trueName' => '陈**','idenNo' => '13***************3','typeId' => '3004','format' => 'json'),

		));
		$response = curl_exec($curl);
        curl_close($curl);
        echo $response;
	}
}
$rtn = (new Sample())->run();
print_r($rtn);

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-12 14:34:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-12 14:34:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-12 14:34:03       82 阅读
  4. Python语言-面向对象

    2024-04-12 14:34:03       91 阅读

热门阅读

  1. 2024.03.31 校招 实习 内推 面经

    2024-04-12 14:34:03       120 阅读
  2. python-re正则笔记0.2.0

    2024-04-12 14:34:03       132 阅读
  3. Bert 将长段分成句子放在一个batch输入

    2024-04-12 14:34:03       42 阅读
  4. 掌握 Awk:Linux 文本处理的终极工具

    2024-04-12 14:34:03       42 阅读
  5. 后端项目部署教程

    2024-04-12 14:34:03       37 阅读
  6. Vue 3 中,defineExpose 在<script setup> 中的使用

    2024-04-12 14:34:03       31 阅读
  7. 使用列表递推实现螺旋矩阵

    2024-04-12 14:34:03       34 阅读
  8. 如何通过子网掩码来计算IP的地址范围

    2024-04-12 14:34:03       30 阅读