Created
April 6, 2026 12:38
-
-
Save jacobsapps/5f15c0d72033648e042e8c15a87ed534 to your computer and use it in GitHub Desktop.
Quality Filter from Apple Photos, Face Tagging, and Embeddings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let qualityFaces = faces.filter { observation in | |
| let faceWidth = observation.boundingBox.width * CGFloat(cgImage.width) | |
| let faceHeight = observation.boundingBox.height * CGFloat(cgImage.height) | |
| return faceWidth >= 40 && faceHeight >= 40 && observation.confidence >= 0.5 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment