mirror of
https://github.com/sajari/docconv.git
synced 2026-10-16 21:21:59 +08:00
3dad0cb02c
Documentation still needs a lot of work.
18 lines
384 B
Go
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) {}
|