mirror of
https://github.com/sajari/docconv.git
synced 2026-10-16 21:21:59 +08:00
93312f47fc
- Some methods have been changed to return an error as their last argument - Log calls inside various functions have been removed - Use a v1 tag if you need the previous signature
18 lines
388 B
Go
18 lines
388 B
Go
//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) {}
|