Files
docconv/image.go
T
David Howden 3dad0cb02c fix golint issues
Documentation still needs a lot of work.
2017-06-26 12:16:32 +10:00

18 lines
384 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) {}