脚本向导-帮助文档

脚本向导-帮助文档


百度_图像审核

<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>'C:\Users\Administrator\Desktop\银行2.jpg'</td> </tr> <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/9f68b2a53dd46e04aa93466ad323b059" alt="" /></p> <h1><strong>示例附件</strong></h1> <p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/50ca9cd729cf94ba8d8cabf1632f8a2c" title="[组件[百度图像审核]_20210203.db">组件[百度图像审核]_20210203.db</a></p>

页面列表

ITEM_HTML