IceCubesApp
IceCubesApp copied to clipboard
Feature request: Smarter cropping with face detection
Web:
IceCubes:
A relatively cheap way of improving this might be:
- extract downloaded image from the
LazyResizableImage
- detect faces in the image using Vision.framework
- take the average vertical position of the detected faces
- set the
frame(alignment:)
of the image indefaultLinkPreview
to whichever is closest to the average vertical position of faces (so.top
in the example above)
Unfortunately I can't figure out step 1 and dropping to the lower-level code of Nuke seems like a disproportionate amount of work for the benefit. There's ImageRenderer
but that's gross.
Filing here anyway in case anybody has other ideas.
When scrolling at 60/120 FPS not sure it's really worth it. Would sure be nice but not sure at all it's worth it indeed.
Yeah, probably better with server support, rather than doing client-side detection.