/// <summary> /// 基础 /// </summary> /// <param name="tempImage"></param> /// <returns></returns> public static string DrivingLicense(Image tempImage) { var client = new Ocr.Ocr(Config.clientId, Config.clientSecret); var image = ImageHelper.ImageToBytes(tempImage, System.Drawing.Imaging.ImageFormat.Png); var result = client.DrivingLicense(image); return(result.ToString()); }
public static void DrivingLicense() { var client = new Ocr.Ocr(Config.clientId, Config.clientSecret); var image = File.ReadAllBytes("图片文件路径"); var result = client.DrivingLicense(image); }
public static void DrivingLicense() { var client = new Ocr.Ocr("Api Key", "Secret Key"); var image = File.ReadAllBytes("图片文件路径"); var result = client.DrivingLicense(image); }
public static void DrivingLicense(string path) { var client = new Ocr.Ocr(api, key); var image = File.ReadAllBytes(path); var result = client.DrivingLicense(image); }
public void DrivingLicense(string filePath) { var image = File.ReadAllBytes(filePath); var result = client.DrivingLicense(image); }