hybo / face-recognition
face recognition
1.0.3
2019-04-15 08:28 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
- symfony/cache: ^3.4
- symfony/http-foundation: ^3.4
This package is auto-updated.
Last update: 2024-04-15 19:49:33 UTC
README
PHP >= 7.1
Installation
$ composer require "hybo/face-recognition"
Usage
<?php require 'vendor/autoload.php'; use FaceRecognition\Client; $config = [ 'baidu' => [ 'app_id' => '', 'api_key' => '', 'secret_key' => '', ], 'face++' => [ 'api_key' => '', 'api_secret' => '', ], 'tencent-youtu' => [ 'app_id' => '', 'secret_id' => '', 'secret_key' => '', 'user_id' => 'QQ号', ], ]; $image = '图片URL'; $client = new Client($config); $client->driver('baidu')->detect($image); $client->driver('face++')->detect($image); // ...