All Projects → huanghe → Ai

huanghe / Ai

像查询数据库一样优雅调用人工智能API

Labels

Projects that are alternatives of or similar to Ai

Dotnet Sdk
百度AI开放平台 .Net SDK
Stars: ✭ 312 (+112.24%)
Mutual labels:  ai, baidu
Nodejs Sdk
百度AI开放平台 Node.js SDK
Stars: ✭ 222 (+51.02%)
Mutual labels:  ai, baidu
Xiaoai
a tiny&smart AI & Repo for work for AI Survey百度云资源持续更新中,欢迎点赞star Min's blog 欢迎访问我的博客主页!(Welcome to my blog website !)https://liweimin1996.github.io/
Stars: ✭ 111 (-24.49%)
Mutual labels:  ai, baidu
Python Sdk
百度AI开放平台 Python SDK
Stars: ✭ 285 (+93.88%)
Mutual labels:  ai, baidu
Java Sdk
百度AI开放平台 Java SDK
Stars: ✭ 495 (+236.73%)
Mutual labels:  ai, baidu
Php Sdk
百度AI开放平台 PHP SDK
Stars: ✭ 81 (-44.9%)
Mutual labels:  ai, baidu
Baidu Ai Go Sdk
百度AI服务go语言sdk
Stars: ✭ 124 (-15.65%)
Mutual labels:  ai, baidu
Nlpaug
Data augmentation for NLP
Stars: ✭ 2,761 (+1778.23%)
Mutual labels:  ai
Awesome Quantum Machine Learning
Here you can get all the Quantum Machine learning Basics, Algorithms ,Study Materials ,Projects and the descriptions of the projects around the web
Stars: ✭ 1,940 (+1219.73%)
Mutual labels:  ai
Irwin
irwin - the protector of lichess from all chess players villainous
Stars: ✭ 138 (-6.12%)
Mutual labels:  ai
Leelasabaki
Leela (Zero) integration with Sabaki.
Stars: ✭ 138 (-6.12%)
Mutual labels:  ai
All4nlp
All For NLP, especially Chinese.
Stars: ✭ 141 (-4.08%)
Mutual labels:  ai
Rivescript Python
A RiveScript interpreter for Python. RiveScript is a scripting language for chatterbots.
Stars: ✭ 142 (-3.4%)
Mutual labels:  ai
Rpa Python
Python package for doing RPA
Stars: ✭ 2,449 (+1565.99%)
Mutual labels:  ai
Fluid Hierarchical Task Network
A simple HTN planner based around the principles of the Builder pattern.
Stars: ✭ 142 (-3.4%)
Mutual labels:  ai
Image classifier
CNN image classifier implemented in Keras Notebook 🖼️.
Stars: ✭ 139 (-5.44%)
Mutual labels:  ai
Libmelee
Open Python 3 API for making your own Smash Bros: Melee AI that works with Slippi Online
Stars: ✭ 146 (-0.68%)
Mutual labels:  ai
Awesome Fairness In Ai
A curated list of awesome Fairness in AI resources
Stars: ✭ 144 (-2.04%)
Mutual labels:  ai
Tieba sign
📱 百度贴吧多线程扫码登陆 / 自动签到 / 自动打码
Stars: ✭ 142 (-3.4%)
Mutual labels:  baidu
Python Sc2
A StarCraft II bot api client library for Python 3
Stars: ✭ 141 (-4.08%)
Mutual labels:  ai

Recent Releases

  • v1.30支持腾讯云人脸识别(2018-12-7)
  • v1.20支持百度图片搜索(2018-8-13)
  • v1.10支持百度人体分析(2018-8-7)

Recent Test

  • 所有API在2018-01-11通过测试

Develop documents

开发文档

Feature

  • 统一AI平台SDK调用方法;
  • 像查询数据库一样优雅调用API;
  • 所传参数和原平台开发文档保持一致,节约开发者学习成本

Support platform(支持的平台)

1.百度AI开放平台

2.腾讯优图AI开放平台

3.FACE++AI开放平台

4.腾讯云人脸识别

SimpleTest

  1. 下载zip包 或者clone本项目

  2. 进入本项目根目录,执行composer install,(包管理工具composer

  3. 在项目目录tests->config下面添加配置文件ai.php(需要自己到各平台注册获取试用账号),内容如:

    return [
        'debug' => true,
        'log' => [
            'level' => 'debug',
            'file' => './tests/logs/ai.log',//日志相对路径
            'template' => "<<<<<<<<\n{response}\n--------\n{error}",//日志模版
        ],
        'baidu' => [
            'app_id' => '***',
            'app_key' => '***',
            'secret_key' => '***',
        ],
        'youtu' => [
             'app_id' => '***',
             'secret_id' => '***',
             'secret_key' => '***',
             'user_id' => '*'
        ],
        'face_plus' => [
             'api_key' => '***',
             'api_secret' => '***',
        ],
        'qcloud' => [//腾讯云
    	'app_id' => '***',
    	'secret_id' => '***',
    	'secret_key' => '***',
        ]
    ];
    
    
  4. 在命令行下进入根目录,执行命令,比如测试腾讯优图人脸识别: vendor/phpunit/phpunit/phpunit --testdox tests/Youtu/Face/FaceTest.php

Installation

composer require hahaxixi/ai

Usage

1.一般使用

$config = [
    'log' => [...],//如,laravel:'file' => storage_path('logs/ai.log'),
    'baidu' => [...],
    'youtu' => [...],
    'face_plus' => [...],
];

//百度
$result = Entry::Baidu($config)->face->select('detect')->where(['image' => file_get_contents(__DIR__ . '/file/face_detect.jpeg'), 'id_card_side' => 'front'])->get();
//腾讯优图
$result = Entry::Youtu($config)->face->select('detectface')->where(['url' => 'http://open.youtu.qq.com/app/img/experience/face_img/face_06.jpg', 'mode' => 1])->get();
//face++
$result = Entry::FacePlus($config)->face->select('detect')->where(['image_file' =>__DIR__ . '/../../file/face_01.jpg' , 'return_attributes' => 'skinstatus'])->get();
//腾讯云
$result = Entry::Qcloud($config)->face->select('identify')->where(['image' => __DIR__ . '/../../file/face_01.jpg', 'appid' => $config['qcloud']['app_id'], 'group_ids' => ["tencent"]])->get();

2.Laravel使用

  • 项目目录config下面添加配置文件ai.php,配置内容和上文SimpleTest一致
  • 一行代码调用人脸检测示例
$result = Entry::Baidu(config('ai'))->face->select('detect')->where(['image' => file_get_contents(__DIR__ . '/file/face_detect.jpeg'), 'id_card_side' => 'front'])->get();

3.Yii2使用

  • 在配置文件params-local.php添加
    'ai'=>[
        'log' => [...],
        'face_plus' => [...],
        'baidu' => [...],
        'youtu' => [...],
    ],
  • 一行代码调用人脸检测示例
$result = Entry::Baidu(Yii::$app->params['ai'])->face->select('detect')->where(['image' => file_get_contents(__DIR__ . '/file/face_detect.jpeg'), 'id_card_side' => 'front'])->get();

License

Apache License Version 2.0 see Apache License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].