kozebobinka/face-detector

此包的最新版本(0.2.2)没有可用的许可证信息。

在图像上检测人脸

0.2.2 2022-11-24 12:21 UTC

This package is not auto-updated.

Last update: 2024-09-27 00:38:33 UTC


README

此项目由以下仓库创建: https://github.com/felixkoch/PHP-FaceDetector

此工具与默认或替代的Haas级联一起工作,取决于构造函数参数

基本用法

<?php
use Rentberry\FaceDetector\FaceDetector

$detector = new FaceDetector();
$detector->scan("test.jpg");
$faces = $detector->getFaces();
foreach($faces as $face)
{
  echo "Face found at x: {$face['x']}, y: {$face['y']}, width: {$face['width']}, height: {$face['height']}<br />\n"; 
}