kozebobinka/face-detector

There is no license information available for the latest version (0.2.2) of this package.

Detecting faces on images

0.2.2 2022-11-24 12:21 UTC

This package is not auto-updated.

Last update: 2025-07-18 04:25:27 UTC


README

Made from this repository: https://github.com/felixkoch/PHP-FaceDetector

This works with default or alternative Haas cascades, depends on constructor argument

Basic usage:

<?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"; 
}