Example #1
0
func TestGosseract_Anyway(t *testing.T) {
	args := gosseract.AnywayArgs{
		SourcePath: ".samples/png/sample000.png",
	}
	assert(
		t,
		gosseract.Anyway(args),
		"01:37:58\n\n",
	)
}
Example #2
0
func TestAnyway(t *testing.T) {
	Describe(t, "Anyway", func() {
		It("should exeute OCR anyway with args.", func() {
			args := gosseract.AnywayArgs{
				SourcePath: "samples/png/sample000.png",
			}
			out := gosseract.Anyway(args)
			Expect(out).To(Equal, "01:37:58\n\n")
		})
	})
}