public void Accurate(string filePath) { var image = File.ReadAllBytes(filePath); // 高精度识别 var result = client.Accurate(image); }
public static void Accurate() { var client = new Ocr.Ocr(Config.clientId, Config.clientSecret); var image = File.ReadAllBytes("图片文件路径"); // 高精度识别 var result = client.Accurate(image); }
public static void Accurate() { var client = new Ocr.Ocr("Api Key", "Secret Key"); var image = File.ReadAllBytes("图片文件路径"); // 高精度识别 var result = client.Accurate(image); }
public static void Accurate(string path) { var client = new Ocr.Ocr(api, key); var image = File.ReadAllBytes(path); // 高精度识别 var result = client.Accurate(image); }
public static string Accurate(Image tempImage) { var client = new Ocr.Ocr(Config.clientId, Config.clientSecret); var image = ImageHelper.ImageToBytes(tempImage, System.Drawing.Imaging.ImageFormat.Png); // 高精度识别 var result = client.Accurate(image); return(result.ToJson()); }