RICHERGIRL commited on
Commit
fb240fd
·
verified ·
1 Parent(s): d0ff2ca

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -0
utils.py CHANGED
@@ -8,6 +8,7 @@ def extract_features(image_path):
8
  """Extract face shape, skin tone, and size from an image."""
9
  image = cv2.imread(image_path)
10
  image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
 
11
 
12
  # Detect face (simplified example)
13
  with mp_face_detection.FaceDetection(min_detection_confidence=0.5) as face_detector:
 
8
  """Extract face shape, skin tone, and size from an image."""
9
  image = cv2.imread(image_path)
10
  image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
11
+ return "Oval", "Medium", "Medium" # Default fallback values
12
 
13
  # Detect face (simplified example)
14
  with mp_face_detection.FaceDetection(min_detection_confidence=0.5) as face_detector: