Ring scanner: portrait streams, keep tightest blob

This commit is contained in:
2026-11-16 20:00:08 +01:00
parent a9ef96a7a3
commit 20fe44257a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ export function locate(img, opts = {}) {
}
g = g2; w = w2; h = h2;
}
// same disc seen at two levels: keep the finer fit
// same disc seen at two levels or cuts: keep the tightest blob, the others may have swallowed a ring
raw.sort((p, q) => q.area - p.area);
const cands = [];
for (const c of raw) {