Ejemplo n.º 1
0
 public void Receipt(string filePath)
 {
     var image   = File.ReadAllBytes(filePath);
     var options = new Dictionary <string, object>
     {
         { "recognize_granularity", "small" } // 定位单字符位置
     };
     var result = client.Receipt(image, options);
 }
Ejemplo n.º 2
0
 public static void Receipt()
 {
     var client  = new Ocr.Ocr(Config.clientId, Config.clientSecret);
     var image   = File.ReadAllBytes("图片文件路径");
     var options = new Dictionary <string, object>
     {
         { "recognize_granularity", "small" } // 定位单字符位置
     };
     var result = client.Receipt(image, options);
 }
Ejemplo n.º 3
0
 public static void Receipt(string path)
 {
     var client  = new Ocr.Ocr(api, key);
     var image   = File.ReadAllBytes(path);
     var options = new Dictionary <string, object>
     {
         { "recognize_granularity", "small" } // 定位单字符位置
     };
     var result = client.Receipt(image, options);
 }