| has_valid_face | R Documentation |
Quick check to determine if an image contains a detectable face that can be used for embedding extraction.
has_valid_face(img_path, detector = "retinaface", min_confidence = 0.5)
img_path |
Path to the image file. |
detector |
Detector to use. |
min_confidence |
Minimum detection confidence (0-1). |
Logical. TRUE if a valid face is detected.
## Not run:
if (has_valid_face("image.jpg")) {
emb <- get_embedding("image.jpg")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.