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