mirror of
https://github.com/sajari/docconv.git
synced 2026-10-17 05:30:56 +08:00
c4a9e3d578
This also allows multiple gosseract languages to be provided. Co-authored-by: Jonathan Ingram <jonathan.b.ingram@gmail.com>
18 lines
387 B
Go
18 lines
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) {}
|