Open Hamedhm opened 5 years ago
function HasFace($file)
{
$fd = new svay\FaceDetector();
$fd->faceDetect($file);
if (is_null($fd->getFace()))
{
return false;
}
else
{
return true;
}
}
Thanks
Hi,
Thanks for the great script.
is there any way to return FALSE if no face is detected in the image?