From 8908fc011f83aee2a958d798648d08a0d04fa55b Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 9 Oct 2019 16:41:26 +0100 Subject: Match prebinarised presegmented output from ocropus in wipepattern (named like "010001.bin.png") --- cmd/bookpipeline/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index 62d3115..2179549 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -383,8 +383,8 @@ func main() { verboselog = log.New(n, "", 0) } - origPattern := regexp.MustCompile(`[0-9]{4}.jpg$`) // TODO: match alternative file naming - wipePattern := regexp.MustCompile(`[0-9]{4}.png$`) + origPattern := regexp.MustCompile(`[0-9]{4}.jpg$`) + wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.png$`) preprocessedPattern := regexp.MustCompile(`_bin[0-9].[0-9].png$`) ocredPattern := regexp.MustCompile(`.hocr$`) -- cgit v1.2.1-24-ge1ad