public JObject CustomDemo(string img) { // 自定义模板识别 var image = File.ReadAllBytes(img); var ApiKey = "ApiKey"; var SecretKey = "SecretKey"; //var templateSign = "b3153a0a3890abcf78ed3338a3f1a4eb"; var templateSign = "86b6e4bbf2ad15045d4d2be6d2f263fe"; var client = new Baidu.Aip.Ocr.Ocr(ApiKey, SecretKey); var result = client.Custom(image, templateSign); return(result); }
public void Custom(byte[] image, string templateSign, Dictionary <string, object> options = null) { JObject res = _ocRclient.Custom(image, _TemplateSign_, options); }