Merge branch 'goodspb-master' into face_recognition

This commit is contained in:
Branko Kokanovic 2018-08-29 00:50:44 +02:00
commit e6bf0dbf10

View File

@ -115,7 +115,7 @@ PHP_METHOD(FaceLandmarkDetection, detect)
// Parse path to image and bounding box. Bounding box is associative array of 4 elements - "top", "bottom", "left" and "right".
//
if (zend_parse_parameters(ZEND_NUM_ARGS(), "sa", &img_path, &img_path_len, &bounding_box) == FAILURE){
zend_throw_exception_ex(zend_ce_exception, 0 TSRMLS_CC, "Unable to parse detect arguments.");
zend_throw_exception_ex(zend_ce_exception, 0 TSRMLS_CC, "Unable to parse detect arguments");
return;
}
@ -172,4 +172,4 @@ PHP_METHOD(FaceLandmarkDetection, detect)
zend_throw_exception_ex(zend_ce_exception, 0 TSRMLS_CC, e.what());
return;
}
}
}