Coder Social home page Coder Social logo

ggz001 / aliyun-safe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaoxuan6/aliyun-safe

0.0 1.0 0.0 43 KB

阿里内容检测服务封装,包括垃圾文本、关键词文本检测以及对图片涉黄、暴恐、敏感检测

License: MIT License

PHP 100.00%

aliyun-safe's Introduction

AliGreen

阿里内容检测服务

阿里内容检测服务封装,包括垃圾文本、关键词文本检测以及对图片涉黄、暴恐、敏感检测

安装:

1、引入包

composer require james.xue/ali-safe-api

2、发布config

php artisan vendor:publish --tag=aliyun

使用方法:

前提:配置config/aliyun.php

use James\AliGreen\AliGreen;

$ali = AliGreen::getInstance();

------------字符串---------------

$ali->checkText("约炮");

$ali->checkImg("http://nos.netease.com/yidun/2-0-0-4f903f968e6849d3930ef0f50af74fc2.jpg");

------------数组---------------

文本检测

$textArr = array("测试", "约炮");

$ali->checkText($textArr);

图片检测

$imgArr = array("http://nos.netease.com/yidun/2-0-0-4f903f968e6849d3930ef0f50af74fc2.jpg", "http://blog.jstm365.com/images/page_bg.jpg");

$result = $ali->checkImg($imgArr);

aliyun-safe's People

Contributors

xiaoxuan6 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.