agile-fc/facex-api
Composer 安装命令:
composer require agile-fc/facex-api
包简介
Facex api package
README 文档
README
About
Facex api is a package that help you to use Facex, an api for the face recognition.
Installation
composer require agile-fc/facex-api
Usage
Calculate the confidence
<?php
require __DIR__ . '/vendor/autoload.php';
use AgileFC\FacexApi\FacexApi;
$faceX = new FacexApi("YOUR_APP_ID", "YOUR_APP_KEY");
echo $faceX->compare(__DIR__.'/your_first_image.png', __DIR__.'/your_second_image.png');
// return 0.75664
Check if the faces are the same.
<?php
require __DIR__ . '/vendor/autoload.php';
use AgileFC\FacexApi\FacexApi;
$faceX = new FacexApi("YOUR_APP_ID", "YOUR_APP_KEY");
echo $faceX->check(__DIR__.'/your_first_image.png', __DIR__.'/your_second_image.png', 0.700);
// return true or false
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-10