A .net desktop ocr console application which uses windows runtime's Windows.Media.Ocr api.
About calling Windows Runtime (WinRT) API from .net desktop console application:
There are many posts about this, which is confusing.
- Create a Universal Windows Platform console app. This creates a UWP app which needs installation.
- Call Windows Runtime APIs in desktop apps. I installed Microsoft.Windows.SDK.Contracts, but it didn't work.
- C#/WinRT. Didn't work.
- How to use Windows.Devices.Geolocation API in a C# WinForm Win32 Desktop application in Windows 10?. This actually works. See the last post in 2019.