Detects all faces in an image and returns their bounding boxes and facial landmarks.
Value
A list where each element represents a detected face with:
facial_area - List with x, y, w, h coordinates
landmarks - List with eye, nose, mouth positions (if available)
confidence - Detection confidence score
Returns an empty list if no faces are detected.
Examples
if (FALSE) { # \dontrun{
# Detect faces in an image
faces <- detect_faces("group_photo.jpg")
# Number of faces found
length(faces)
# Get bounding box of first face
faces[[1]]$facial_area
} # }