Commit Graph
5 Commits
Author SHA1 Message Date
immortaly007andClaude Opus 5.5 8ea525a1e8 fix: apply the safety margin with a distance transform
An elliptical erode kernel costs radius² per pixel. While typing a length,
an intermediate value like "3" mm made the margin hundreds of pixels and
froze the page for minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:21:42 +02:00
immortaly007andClaude Opus 5.5 55a25ba978 feat: correct uneven lighting and pick polarity automatically
Fit the background brightness from the photo border and subtract it, so
side-lit photos threshold cleanly. The clicked pixel (or, without a click,
the border) decides whether the piece is darker or lighter, replacing the
invert checkbox. Adds the MDF-on-wood-floor photo as a regression fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:12:16 +02:00
immortaly007andClaude Opus 5.5 41baa25a01 fix: drop glare holes before the margin and never auto-pick specks
Filtering holes after the margin let -2 mm grow 1 mm specks past the
3 mm cutoff, and could drop real holes shrunk by a positive margin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:07:16 +02:00
immortaly007andClaude Opus 5.5 9e48c5d762 feat: detect piece outline with threshold, seed selection and margin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 14:44:15 +02:00
immortaly007andClaude Opus 5.5 5e4eebaaa2 feat: add OpenCV loader, Otsu threshold and margin-aware mask tracing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 14:43:41 +02:00