* Document extractor service * Fixing vendor modules * Addressing PR Review comments * Some small simplifications * Fixing a linter complain * simplifying a bit the code using package variables Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
18 строки
387 B
Go
18 строки
387 B
Go
// +build !ocr
|
|
|
|
package docconv
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
// ConvertImage converts images to text.
|
|
// Requires gosseract (ocr build tag).
|
|
func ConvertImage(r io.Reader) (string, map[string]string, error) {
|
|
return "", nil, fmt.Errorf("docconv not built with `ocr` build tag")
|
|
}
|
|
|
|
// SetImageLanguages sets the languages parameter passed to gosseract.
|
|
func SetImageLanguages(...string) {}
|