ali ocr 常规 api
Browse files- 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 |
-
|
| 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 "";
|