Skip to content

Commit c11262e

Browse files
committed
fix: retain faint caption strokes in framebuffer OCR
1 parent 1ca339d commit c11262e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/e2e/AppJourneyTest.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ class Journey final {
721721
for (int y = 0; y < image.height(); ++y) {
722722
auto *pixels = image.scanLine(y);
723723
for (int x = 0; x < image.width(); ++x)
724-
pixels[x] = pixels[x] > 96 ? 0 : 255;
724+
pixels[x] = pixels[x] > 64 ? 0 : 255;
725725
}
726726
}
727727
inputPath += highContrast ? QStringLiteral(".ocr-contrast.png")

0 commit comments

Comments
 (0)