added base path filter

This commit is contained in:
ston1th 2019-05-03 10:44:17 +02:00
commit ec5a376733
15 changed files with 104 additions and 44 deletions

View file

@ -1,6 +0,0 @@
package scan
type PDF struct {
cmd string
args []string
}

View file

@ -17,6 +17,19 @@ import (
const pdfExt = ".pdf"
type PDF struct {
cmd string
args []string
}
var defaultLangs = []string{"eng", "deu"}
type Tesseract struct {
cmd string
args []string
env []string
}
var (
wsr = regexp.MustCompile(`[\t\f ]+`)
nlr = regexp.MustCompile(`[\n]{3,}`)

View file

@ -1,9 +0,0 @@
package scan
var defaultLangs = []string{"eng", "deu"}
type Tesseract struct {
cmd string
args []string
env []string
}