kozebobinka / face-detector
Detecting faces on images
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/kozebobinka/face-detector
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";
}