Skip to content

Tabscanner-ReceiptOCR/2019-Tabscanner-ReceiptOCR

 
 

Repository files navigation

tabscanner Build Status Go Report Card Test Coverage Go Docs

This package is a Go client for TabScanner. Use the straight Client for low level access to the API, or a Processor for simplified access (it automatically parses errors and polls for results).

c := tabscanner.NewClient("my_api_key")
p := tabscanner.NewProcessor(c)

buf, err := ioutil.ReadFile("my_receipt.jpg")
require.NoError(t, err)

result, err := p.Process(context.Background(), &tabscanner.ProcessRequest{
  ReceiptImage:  buf,
  DecimalPlaces: tabscanner.IntPtr(2),
  Language:      tabscanner.LanguageEnglish,
  LineExtract:   tabscanner.BoolPtr(true),
  DocumentType:  tabscanner.DocumentTypeReceipt,
})
if err != nil {
  return err
}

fmt.Println(result)

About

2019 Tabscanner client for Go. Receipt OCR API (very different to the current Tabscanner of 2025)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%