Menu

1 / 6

Finding the Focal Point: Faces, Then People, Then Saliency (Part 2 of 2)

DEV Community: computervision·Rustam Kolumbayev·3 days ago
#eFDTaLi0
Long article (3010 words) — no AI summary yet.
Reading 0:00
15s threshold

The server half of face-aware image framing, where a chain of open detectors finds the point worth keeping and the client keeps it in view with one CSS property.

This is part two of a two-part series. If you missed it, start with part one to see how the page keeps faces in the frame.

In 2018 Twitter let a saliency model decide which part of every photo stayed in the preview. Three years later its own researchers measured whose faces that crop kept, and recommended removing it. That’s why the chain in this article looks for faces first and only falls back to saliency when there’s nothing else to aim at.

In part one I stopped a hero banner cutting people’s heads off without cropping a single file. The client stores one focal point per image, converts it for the box it lands in, and sets object-position . That works with any point.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.