Use windows 10 UWP OCR engine in C# desktop .
Compiled pass under VS2019, Win10 1809.
https://docs.microsoft.com/en-us/uwp/api/Windows.Media.Ocr
add reference dependency:
System.Runtime.WindowsRuntime C:\Windows\Microsoft.NET\Framework\v4.0.30319
System.Runtime.WindowsRuntime.UI.Xaml C:\Windows\Microsoft.NET\Framework\v4.0.30319
System.Runtime.InteropServices.WindowsRuntime C:\Windows\Microsoft.NET\Framework\v4.0.30319
windows.winmd C:\Program Files (x86)\Windows Kits\10\UnionMetadata\\Facade
Windows.Foundation.UniversalApiContract.winmd C:\Program Files (x86)\Windows Kits\10\References\\Windows.Foundation.UniversalApiContract<version>
Windows.Foundation.FoundationContract.winmd C:\Program Files (x86)\Windows Kits\10\References\\Windows.Foundation.FoundationContract<version>
https://docs.microsoft.com/zh-cn/windows/apps/desktop/modernize/desktop-to-uwp-enhance
see PythonLib/pythonwrapper.py
.