Skip to content

test(imageproc): make SkewFinder test offline/chroot-safe (#61) - #131

Merged
pablogventura merged 1 commit into
ScanTailor-Advanced:masterfrom
pablogventura:fix/issue-61-imageproc-offline-tests
Apr 20, 2026
Merged

test(imageproc): make SkewFinder test offline/chroot-safe (#61)#131
pablogventura merged 1 commit into
ScanTailor-Advanced:masterfrom
pablogventura:fix/issue-61-imageproc-offline-tests

Conversation

@pablogventura

Copy link
Copy Markdown

Fedora COPR/mock builds failed in TestSkewFinder::test_positive_detection with SIGABRT (see #61). The test drew synthetic page content with QPainter::drawText(), which depends on fonts and the text stack; minimal chroots often have none.

Replace text rendering with rotated parallel lines in the same 4.5° skewed coordinate system so SkewFinder still sees a strong directional signal without any font configuration.

Refs #61

RPM/mock chroots often ship without fontconfig/Qt text stack; drawing
rotated parallel lines keeps the same skew signal without fonts.

Refs ScanTailor-Advanced#61
@pablogventura
pablogventura merged commit cc5b626 into ScanTailor-Advanced:master Apr 20, 2026
3 checks passed
@pablogventura
pablogventura deleted the fix/issue-61-imageproc-offline-tests branch May 24, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant