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); }
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); }
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); }