summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-22 07:11:54 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-22 07:11:54 +0100
commit77e7b3548eda07722ba4a123603148ce4edf7091 (patch)
treec4c615bf1dfa9c79f45ab226c159d32622996649 /app
parent622eafe6ede882b8957e5450cd63a318ec955190 (diff)
fix: fix tesseract call
Diffstat (limited to 'app')
-rw-r--r--app/Main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs
index 8803f8b..05b066e 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -458,7 +458,8 @@ ocr input =
ocr1 :: FilePath -> FilePath -> IO T.Text
ocr1 tmp input =
T.decodeUtf8 . LB.toStrict
- <$> sh (printf "tesseract '%s' -" (tmp </> input))
+ -- XXX `--oem 1` seems to be unavailable
+ <$> sh (printf "tesseract '%s' - -l deu+eng --oem 3 --psm 1" (tmp </> input))
data Index = Index
{ originalText :: T.Text,