/4d-plugin-microsoft-ocr

Use native OCR on Windows.

Primary LanguageCMIT LicenseMIT

platform version license downloads

4d-plugin-microsoft-ocr

Use native OCR on Windows.

Thanks to C++/WinRT, it is no longer necessary to use all sorts of tricks to call Universal Windows Platform API from C++.

This plugin is using the Windows.Media.Ocr API.

Visual Studio 2017

To enable co_await

  • add the compiler flag /await to project
  • set the c++ language standard to ISO C++ Latest Draft Standard (/std:c++latest)
  • add windowsapp.lib to additional libraries

The project requires 10.0.17763 SDK, released in conjunction with Windows 10 version 1809.

To use on v17, move manifest.json to contents.

Example

$file:=Folder:C1567(fk resources folder:K87:11).file("4d-website-jpr.jpg")
$data:=$file.getContent()
$status:=ocr get text ($data)

screenshot

image

References