faceplusplus/facepp-php-sdk
最新稳定版本:1.0.1
Composer 安装命令:
composer require faceplusplus/facepp-php-sdk
包简介
Open FPP API SDK for php developers
README 文档
README
Requirements
- PHP 5.5.9+.
- cURL extension.
- GD extension.
Structure
├── FppClient.php // the api client
└── lib
├── Adapter.php // the http request adapter, all request be sended by it
├── ContentTypes.php // request body content type
├── Image.php // the image process unit
├── MimeTypes.php // the request body mime type
├── MultiPartForm.php // multipart/for-data request class
├── Request.php // the request class
├── RequestException.php // exception
└── Response.php // the response class
Example
include_once 'FppClient.php'; use Fpp\FppClient; $host = 'https://api-cn.faceplusplus.com'; $apiKey = '<Your Key>'; $apiSecret = '<Your Secret>'; $client = new FppClient($apiKey, $apiSecret, $host); $data = array( 'image_url' => "https://www.faceplusplus.com.cn/scripts/demoScript/images/demo-pic10.jpg", 'return_landmark' => '2', 'return_attributes' => 'age,headpose' ); $resp = $client->detectFace($data); var_dump($resp);
License
licensed under the MIT
统计信息
- 总下载量: 11.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-12-24