跳到正文
DEV Community· How Attractive Am I·· 30 分鐘前AI 評分42

人臉分析工具逐次只改一項因素,測試哪些變化會影響 25 張人臉照片的評分

We changed one thing at a time in 25 face photos to see what actually moves a face score

AI 導讀

人臉分析工具以 25 張 AI 生成臉孔逐次只改一項因素測試評分,發現露齒笑造成最大變化。露齒笑令評分中位數下降 0.8,最多下降 1.8;臉孔縮至畫面 35% 時,19 張被要求重拍。工具現會列出照片中的測量因素、標示異常項目,並提供重拍建議。

正文

People who use a face analysis tool rarely upload one photo. They upload four in a minute, get four different numbers, and conclude the tool is random. App store reviews for this whole category say the same thing: "different photo, different score" is the most common one-star complaint.

We run a browser-based face analysis tool with a photo guide built on MediaPipe Face Landmarker, so we wanted a real answer instead of a guess: which changes to a photo move the score, by how much, and which ones barely matter?

The setup

  • 25 AI-generated faces. No real people, so we could edit and re-score freely.
  • One change per test. Each face was scored as-is, then re-scored after exactly one edit:
    • brightness ×0.45, ×0.65, ×1.35, ×1.7
    • face shrunk to 70%, 50%, 35% of the frame (pasted on a grey background, like standing further away)
    • whole image rotated 8°, 15°, 25° (a sideways head tilt)
    • a closed-mouth smile and a smile showing teeth (the same face re-generated with a new expression)
  • A control. The same face re-generated with no change. This tells you how much the score drifts on its own, so you don't read noise as an effect.
  • Scores went through the same pipeline as the live site (10-point scale). Change = variant score − original score for that face.

The results

Change Scored Asked to retake Median change Range
Control (no change) 5 0 +0.2 0 to +0.3
Darker (×0.45) 20 0 0 −0.6 to +0.3
Brighter (×1.7) 20 0 +0.1 −0.7 to +0.7
Face at 70% size 20 0 0 −0.7 to +1.0
Face at 50% size 12 8 +0.2 −0.7 to +0.4
Face at 35% size 1 19 −0.2 —
Tilted 8° 20 0 +0.1 −0.4 to +0.4
Tilted 25° 20 0 +0.1 −1.1 to +1.0
Closed-mouth smile 5 0 −0.3 −0.7 to +0.7
Smile showing teeth 5 0 −0.8 −1.8 to +0.1

Three things stood out.

1. Lighting and tilt mostly don't matter, on average. The median change is about zero, smaller than the control drift. But the ranges are not zero: a single photo can still swing by 0.7–1.1. "Doesn't matter on average" and "can't matter for your photo" are different claims, and the range column is the honest one to show users.

2. A face that's too small gets refused, not mis-scored. At 50% size, 8 of 20 faces were sent back with a "retake" message; at 35%, 19 of 20. That's by design: when the face is too small for reliable landmarks, we try re-cropping from the original first, and if that still fails we refuse rather than guess. A wrong number would be worse than no number.

3. Expression is the biggest single factor. A smile showing teeth dropped the score by a median of 0.8, up to 1.8. That's not a judgment about smiling. Geometry-based measures assume a neutral face: a big smile widens the mouth, lifts the cheeks and narrows the eyes, so the same face measures differently.

What we didn't test here

Head turn (left/right) and chin up/down are 3D changes; you can't fake them by editing a flat image. For those we rely on an earlier test with real photos: when the head was turned 5° or less, the same person's scores differed by at most 0.4; every set that differed by a lot (up to 2.0) included a photo turned more than 6°. So head turn is likely the biggest factor of all, and it's the one users notice least.

What we changed in the product

Instead of only printing a number, the result now lists the photo factors it measured in that specific photo (face size in the frame, head turn, chin angle, tilt, lighting, expression, mouth, eyes), flags the ones that were off, explains what each one does to the measurements, and suggests how to retake the photo. If your four photos got four different numbers, you can see why.

Takeaways if you build anything that scores photos

  1. Run a no-change control first. Our "nothing changed" drift was +0.2. Without it, several of the small effects above (+0.1, +0.2) would look real.
  2. Report the range, not just the median. The median says "lighting is fine"; the range says "except sometimes".
  3. Refuse when the input is bad. A retake message costs you one upload. A confident wrong score costs you the user's trust.
  4. Tell users what the number depends on. "Your score changed because you smiled and turned your head" is more useful than a new number.

Limits

AI faces, not real people. Small sample (25 faces, 5 for the smile test). Lighting, framing and tilt were simulated by editing images, not by retaking photos. And this only measures our own score, not how people perceive a photo.


This article was generated by AI from our own test notes and code, and reviewed by a human before publishing.

來源:DEV Community · dev.to