fasdfsa commited on
Commit
6aabcf5
·
1 Parent(s): 25bccf9

ali ocr 常规 api

Browse files
Files changed (1) hide show
  1. src/WpfEditor/AliOcr.cs +2 -5
src/WpfEditor/AliOcr.cs CHANGED
@@ -15,6 +15,7 @@ using System.Windows;
15
  using System.Windows.Controls;
16
  using Tea;
17
  using Tea.Utils;
 
18
  using Formatting = Newtonsoft.Json.Formatting;
19
 
20
  namespace WpfEditor
@@ -124,11 +125,7 @@ namespace WpfEditor
124
 
125
  if (result != null)
126
  {
127
- Console.WriteLine("识别成功");
128
- }
129
- else
130
- {
131
-
132
  }
133
 
134
  return "";
 
15
  using System.Windows.Controls;
16
  using Tea;
17
  using Tea.Utils;
18
+ using static System.Runtime.InteropServices.JavaScript.JSType;
19
  using Formatting = Newtonsoft.Json.Formatting;
20
 
21
  namespace WpfEditor
 
125
 
126
  if (result != null)
127
  {
128
+ return result.ToString(Formatting.Indented);
 
 
 
 
129
  }
130
 
131
  return "";