diff options
author | Nick White <git@njw.name> | 2022-02-21 12:33:48 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-02-21 12:33:48 +0000 |
commit | 69ac99da02988ad2ed675570ccaa5ff7777f0279 (patch) | |
tree | aac4a7b560d0f0e3ee79f8061c0ec74b6d00fb5b /internal/pipeline/pipeline.go | |
parent | 066884ddf4a160baec7c8f3d0974d7aeca1eec6b (diff) |
Ensure that no new console windows are opened on Windows when executing Tesseract
Diffstat (limited to 'internal/pipeline/pipeline.go')
-rw-r--r-- | internal/pipeline/pipeline.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/pipeline/pipeline.go b/internal/pipeline/pipeline.go index b4a9d92..639bba1 100644 --- a/internal/pipeline/pipeline.go +++ b/internal/pipeline/pipeline.go @@ -310,6 +310,7 @@ func Ocr(training string, tesscmd string) func(context.Context, chan string, cha logger.Println("OCRing", path) name := strings.Replace(path, ".png", "", 1) cmd := exec.Command(tesscmd, "-l", training, path, name, "-c", "tessedit_create_hocr=1", "-c", "hocr_font_info=0") + HideCmd(cmd) var stdout, stderr bytes.Buffer cmd.Stdout = &stdout cmd.Stderr = &stderr |