CVZone Model Documentation
Documentation for the CVZone-related code.
Link to the library can be found here.
detect_face_cvzone(img, detector, detect_multiple_faces=True)
Function that detects faces in an image using the CVZone library.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
img |
ndarray
|
The image in which to detect face. Retrieved by OpenCVs imread function. |
required |
detector |
FaceMeshDetector
|
An instance of the Face Mesh detector, pretrained from the CVZone library |
required |
detect_multiple_faces |
bool
|
Will return multiple faces if true, else only one. Default is set to true. |
True
|
Returns:
Type | Description |
---|---|
list | tuple | None
|
If |
Each tuple contains the coordinates of the top left corner and the dimensions of the bounding box.
Source code in src/models/code/cvzone.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|