hybo / face-recognition
face recognition
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/hybo/face-recognition
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
- symfony/cache: ^3.4
- symfony/http-foundation: ^3.4
This package is auto-updated.
Last update: 2025-10-15 23:12:22 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); // ...