pyaesthetics.facedetection.detect_faces_cv2

pyaesthetics.facedetection.detect_faces_cv2(img, plot=False)

This function uses CV2 to detect faces in a picture.

Parameters:
  • img (numpy.ndarray) – image to analyze in RGB

  • plot (bool) – whether to plot or not the results

Returns:

list of detected faces as rectangles

Return type:

list