// Must execute tesseract-OCR directly by parameter map func Must(params Params) (out string) { return tesseract.Simple(params.Src, params.Whitelist, params.Languages) }
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") }