Skip to content

Commit 94eed8f

Browse files
committed
doubling the default DPI for ocring small docs.
1 parent a106a51 commit 94eed8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/docsplit/text_extractor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TextExtractor
1616

1717
NO_TEXT_DETECTED = /---------\n\Z/
1818

19-
OCR_FLAGS = '-density 200x200 -colorspace GRAY'
19+
OCR_FLAGS = '-density 400x400 -colorspace GRAY'
2020
MEMORY_ARGS = '-limit memory 256MiB -limit map 512MiB'
2121

2222
MIN_TEXT_PER_PAGE = 100 # in bytes

0 commit comments

Comments
 (0)