Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

report whether no face detected #36

Open
Hamedhm opened this issue Nov 17, 2019 · 2 comments
Open

report whether no face detected #36

Hamedhm opened this issue Nov 17, 2019 · 2 comments

Comments

@Hamedhm
Copy link

Hamedhm commented Nov 17, 2019

Hi,

Thanks for the great script.

is there any way to return FALSE if no face is detected in the image?

@SmuSmu
Copy link

SmuSmu commented Jan 15, 2020

function HasFace($file)
	{
	$fd = new svay\FaceDetector();
	$fd->faceDetect($file);
	if (is_null($fd->getFace()))
		{
		return false;
		}
	else
		{
		return true;
		}
	}

@Hamedhm
Copy link
Author

Hamedhm commented Jan 15, 2020

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants