Esempio n. 1
0
        static string RecognizeReceiptFromContent(Configuration conf)
        {
            string name = "r11.jpg";

            using (FileStream fs = File.OpenRead(name))
            {
                OcrApi api     = new OcrApi(conf);
                var    request = new OCRReceiptRequestData()
                {
                    MakeSkewCorrect = false
                };
                OCRReceiptResponse response = api.OcrReceiptFromContent(request, fs);

                return(response.Text);
            }
        }