コード例 #1
0
 public JObject GeneralBasic(Image image)
 {
     try
     {
         var client = new Ocr(ModelFactory.API_KEY, ModelFactory.SECRET_KEY);
         var result = client.GeneralBasic(FileOperate.ImageToBytes(image));
         Console.WriteLine(result);
         return(result);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         return(null);
     }
 }