Example #1
0
// Must execute tesseract-OCR directly by parameter map
func Must(params Params) (out string) {
	return tesseract.Simple(params.Src, params.Whitelist, params.Languages)
}
Example #2
0
func TestDo(t *testing.T) {
	Expect(t, tesseract.Simple("hoge.png", "")).ToBe("otiai10 / gosseract\n\n")
	Expect(t, tesseract.Simple("sample.png", "")).ToBe("2,464 total\n\n")
}