HOG detector also must return the rectangles of the detections.

This commit is contained in:
Matias De lellis
2020-02-29 14:04:41 -03:00
parent 1e492f2e12
commit afc9164127
5 changed files with 41 additions and 14 deletions
+2 -3
View File
@@ -100,9 +100,8 @@ If you want to use HOG based approach:
<?php
// face detection
$faceCount = dlib_face_detection("~/a.jpg");
// how mary face in the picture.
var_dump($faceCount);
detected_faces = dlib_face_detection("image.jpg");
// $detected_faces is indexed array, where values are assoc arrays with "top", "bottom", "left" and "right" values
```
If you want to use CNN approach (and CNN model):