Best Shot
Give it a burst of photos and it picks the sharpest, best-exposed frame, right in the tab. The clearly worse frames recede, ready to delete.
Needs: Nothing beyond the photos (same-origin or CORS-enabled). Scoring runs on a canvas in the tab, no model.
Customize
burst
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| frames | { id: string; src: string; alt?: string }[] | required | Several photos of the same moment, in the order they were taken. Same-origin or CORS-enabled, since their pixels are read. |
| onKeep | (keep: string[], remove: string[]) => void | – | Called when the person keeps: the ids to keep and the ids they agreed to delete. Deleting is up to you. |
| detail | number | 1024 | Long side, in px, of the grey copy sharpness is measured on. Bigger sees finer blur and costs more. (The sample frames are 288 px, so above that nothing changes here.) |
| floor | number | 0.15 | Smallest gap in log sharpness that counts as a real difference. Raise it and more pairs become too close to call, and fewer frames are offered for deletion. |
| className | string | – | Class on the root element. |
| style | CSSProperties | – | Style on the root element. Theme it through the --mlui-* variables, e.g. --mlui-radius. |