diff options
author | Nick White <git@njw.name> | 2022-03-22 11:06:34 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-03-22 11:06:34 +0000 |
commit | 45fd6cc3d899ceb3aa1d7a91cd534a32f0a6feaa (patch) | |
tree | 38d012676ccda1b6302d634a6ca7381b1e66770d | |
parent | d236c0e529a9e94a257d85741d4d436ff8246c64 (diff) |
rescribe: update to rescribev9 as default training to usev1.0.0
-rw-r--r-- | cmd/rescribe/gui.go | 2 | ||||
-rw-r--r-- | cmd/rescribe/main.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index 9792133..e172902 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -37,7 +37,7 @@ var progressPoints = map[float64]string{ var trainingNames = map[string]string{ "eng": "English (modern print)", "lat": "Latin (modern print)", - "rescribev8_fast": "Latin/English/French (printed ca 1500-1800)", + "rescribev9_fast": "Latin/English/French (printed ca 1500-1800)", } // copyStdoutToChan creates a pipe to copy anything written diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index a743ef2..fd5b33b 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -43,7 +43,7 @@ OCR results are saved into the bookdir directory unless savedir is specified. ` -//go:embed tessdata.20220321.zip +//go:embed tessdata.20220322.zip var tessdatazip []byte const QueueTimeoutSecs = 2 * 60 @@ -147,11 +147,11 @@ func main() { verbose := flag.Bool("v", false, "verbose") usegui := flag.Bool("gui", false, "Use graphical user interface") systess := flag.Bool("systess", false, "Use the system installed Tesseract, rather than the copy embedded in rescribe.") - training := flag.String("t", "rescribev8_fast.traineddata", `Path to the tesseract training file to use. + training := flag.String("t", "rescribev9_fast.traineddata", `Path to the tesseract training file to use. These training files are included in rescribe, and are always available: - eng.traineddata (English, modern print) - lat.traineddata (Latin, modern print) -- rescribev8_fast.traineddata (Latin/English/French, printed ca 1500-1800) +- rescribev9_fast.traineddata (Latin/English/French, printed ca 1500-1800) `) tesscmd := flag.String("tesscmd", deftesscmd, "The Tesseract executable to run. You may need to set this to the full path of Tesseract.exe if you're on Windows.") wipe := flag.Bool("wipe", false, "Use wiper tool to remove noise like gutters from page before processing.") |