faceplusplus/facepp-php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 82
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-12-24