We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28326b7 commit af6c41cCopy full SHA for af6c41c
age_estimator.py
@@ -22,6 +22,7 @@ def estimate_age(self, pil_img: Image.Image) -> float | None:
22
Estimated age as float, or None if no face detected
23
"""
24
img = np.array(pil_img)
25
+ img = img[:, :, ::-1] # Convert RGB to BGR for InsightFace
26
faces = self.app.get(img)
27
if len(faces) == 0:
28
return None
0 commit comments