In Bug 1759201 I added a macOS-only nsTextRecognition component. I think a first step here would be to naively copy/paste this and get it working with the Windows APIs. The Windows OCR APIs: https://docs.microsoft.com/en-us/uwp/api/windows.media.ocr?view=winrt-22000 Examples of using UWP APIs: [widget/windows/WindowsUIUtils.cpp](https://searchfox.org/mozilla-central/source/widget/windows/WindowsUIUtils.cpp) A follow-up from there would be create a base class for nsTextRecognition, with implementations for each supported OS, similar to the nsPrinterListBase. (this step might belong in a separate bug).
Bug 1759205 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
In Bug 1759201 I added a macOS-only mozilla::TextRecognition component. I think a first step here would be to naively copy/paste this and get it working with the Windows APIs. The Windows OCR APIs: https://docs.microsoft.com/en-us/uwp/api/windows.media.ocr?view=winrt-22000 Examples of using UWP APIs: [widget/windows/WindowsUIUtils.cpp](https://searchfox.org/mozilla-central/source/widget/windows/WindowsUIUtils.cpp) A follow-up from there would be create a base class for mozilla::TextRecognition, with implementations for each supported OS, similar to the nsPrinterListBase. (this step might belong in a separate bug).