HOG Descriptor Model Documentation
Documentation for Histogram of Oriented Gradients (HOG) models. Read the documentation for the model here.
detect_face_hog(img, detector, detect_multiple_faces=False)
Detects faces in an image using dlib's HOG-based face detector.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
img |
ndarray
|
The image in which faces are to be detected, typically obtained from |
required |
detector |
An instance of dlib's HOG-based face detector, typically initialized using |
required | |
detect_multiple_faces |
bool
|
Specifies whether the function should return detections for all faces found (True) or just the most prominent face (False). Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
rectangle | rectangles | None
|
If |
Source code in src/models/code/hog.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|