百度_文本审核
<h1>功能</h1>
<p>调用百度身份证识别接口,对文件进行审核。</p>
<h1><strong>输入</strong></h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>文本类型</td>
<td>【字符串】文本内容。</td>
<td>'测试文本内容'</td>
</tr>
<tr>
<td>访问类型</td>
<td>【枚举】是从服务端还是本地访问百度接口。</td>
<td>Server:确保服务器能够访问外网,且把ssleay32.dll和libeay32.dll文件放到server目录下。Local:确保代理端能够访问外网,且把ssleay32.dll和libeay32.dll文件放到control或agent目录下。</td>
</tr>
</tbody>
</table>
<h1>选项</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>代理参数</td>
<td>【字符串】是否通过代理连接互联网,填写代理的地址和端口</td>
<td>192.168.0.1:80</td>
</tr>
</tbody>
</table>
<h1><strong>输出</strong></h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>结果</td>
<td>成功</td>
<td>【字符串】审核的文本信息;</td>
</tr>
<tr>
<td>失败</td>
<td>【字符串】具体的错误信息,例如图片文件不存在会返回系统找不到指定的文件。</td>
</tr>
</tbody>
</table>
<h1><strong>注意/说明</strong></h1>
<p>1、使用前请确保‘BaiduAi.ini’文件已放置到‘Server.exe’同目录下,具体配置请查看《AI函数使用前配置》章节。
2、使用函数,当访问类型为local,且是在控制台进行操作,则要确保ssleay32.dll和libeay32.dll文件放到control目录下;如若是在代理端调用该函数时,则要确保ssleay32.dll和libeay32.dll文件放到agent目录下。(如若不放置上述的两个dll文件,则会报“Cloud not load SSL library”)
3、需要代理端或者服务端可以连接公网或者百度文本审核接口。
4、图片文件和图片两个参数是二选一必填参数。
5、假如有http代理需要在代理参数中,需要填入http代理地址和端口号。</p>
<h1>相关函数</h1>
<p>无</p>
<h1><strong>示例/演示</strong></h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/01b665cc74dae5d23ace05bae5824260" alt="" /></p>
<h1><strong>示例附件</strong></h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/781a40963158827e1fbf543593f3c1b5" title="[组件[百度文本审核]_20210203.db">组件[百度文本审核]_20210203.db</a></p>