From 5fc8ce0041fa7d1a41a866215c4a8804f8d4bde7 Mon Sep 17 00:00:00 2001 From: symphorien Date: Tue, 8 Sep 2020 13:19:29 +0200 Subject: [PATCH] paperwork: use tesseract 4 (#97395) it gives empirically better results https://www.willus.com/k2pdfopt/help/ocr/eng_chi_tess4.png --- pkgs/top-level/python-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f5c3f6c5103..ddc1375f276 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5133,7 +5133,9 @@ in { else throw "pyobjc can only be built on Mac OS"; - pyocr = callPackage ../development/python-modules/pyocr { }; + pyocr = callPackage ../development/python-modules/pyocr { + tesseract = pkgs.tesseract_4; + }; pyodbc = callPackage ../development/python-modules/pyodbc { };