|
|
|
@ -1,7 +1,11 @@
|
|
|
|
|
--TEST--
|
|
|
|
|
Full test for face recognition - download models, detect faces, landmark detection and face recognition.
|
|
|
|
|
--SKIPIF--
|
|
|
|
|
<?php if (!extension_loaded("pdlib") || (function_exists("bzopen"))) print "skip"; ?>
|
|
|
|
|
<?php
|
|
|
|
|
if (!extension_loaded("pdlib")) die('skip pdlib extension missing');
|
|
|
|
|
if (!function_exists("bzopen")) die('skip bz2 extension missing');
|
|
|
|
|
if (getenv("SKIP_ONLINE_TESTS")) die('skip online test');
|
|
|
|
|
?>
|
|
|
|
|
--FILE--
|
|
|
|
|
<?php
|
|
|
|
|
$models = array(
|
|
|
|
@ -57,4 +61,4 @@ Detection
|
|
|
|
|
Faces found = 1
|
|
|
|
|
Face[0] in bounding box (left=187, top=186, right=357, bottom=355)
|
|
|
|
|
Since we used model with 5 shape predictions, we found 5 landmark parts
|
|
|
|
|
Descriptor is vector of 128 dimensions
|
|
|
|
|
Descriptor is vector of 128 dimensions
|
|
|
|
|