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
Requires
- php: ^8.0
- ext-gd: *
- ext-simplexml: *
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";
}