Skip to content

code-lives/sensitive-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

百度智能云 敏感字检测

https://cloud.baidu.com/doc/ANTIPORN/s/Rk3h6xb3i

config

        $config = [
            'client_id' => '',
            'client_secret' => '',
        ];

获取Token


$token = \Baidu\Sensitive\Words::getInstance()->config($config)->getToken();

echo $token['access_token'];die;

检测文本敏感字

$data = \Baidu\Sensitive\Words::getInstance()->config($config)->ckContent($token, "文本内容");

检测图片

$data = \Baidu\Sensitive\Words::getInstance()->config($config)->ckImage($token, $image);

About

百度智能云敏感词和图片检测

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages