Support for raw chinese_whispers

This commit introduces chinese_whispers method without any "helpers" on
PHP side. Users needs to take care of everything (building edges from
128D face chip vector, for example), but this is exposed for people
that need low-level call and want to calculate distances and build edges
in PHP directly.
This commit is contained in:
Branko Kokanovic
2018-08-07 00:04:05 +02:00
parent b17cd7c945
commit 3f60326661
11 changed files with 254 additions and 0 deletions
+2
View File
@@ -28,6 +28,7 @@ extern "C" {
#include "ext/standard/info.h"
}
#include "php_pdlib.h"
#include "src/chinese_whispers.h"
#include "src/face_detection.h"
#include "src/cnn_face_detection.h"
#include "src/face_landmark_detection.h"
@@ -187,6 +188,7 @@ PHP_MINFO_FUNCTION(pdlib)
*/
const zend_function_entry pdlib_functions[] = {
PHP_FE(confirm_pdlib_compiled, NULL)
PHP_FE(dlib_chinese_whispers, dlib_chinese_whispers_arginfo)
PHP_FE(dlib_face_detection, dlib_face_detection_arginfo)
PHP_FE(dlib_face_landmark_detection, dlib_face_landmark_detection_arginfo)
PHP_FE_END /* Must be the last line in pdlib_functions[] */