在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:AI开源软件地址:https://gitee.com/hahaxixi/AI开源软件介绍:Recent Test
Develop documentsFeature
Support platform(支持的平台)1.百度AI开放平台 2.腾讯AI开放平台 SimpleTest
Installation
Usage1.一般使用 $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(); 2.Laravel使用
$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使用
'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(); LicenseApache License Version 2.0 see Apache License |
请发表评论