There are three files need to be placed to directory with executables to run examples:
oneocr.dllonnxruntime.dlloneocr.onemodel
You can find them in your Snipping Tool or Photos applications' directories of Windows 11.
simple - small example with no error checking and resource releasing.
advanced - more advanced example with error checking, etc...
Use cmake to build them.
Examples can be executed from command line like this:
oneocr_example_simple.exe image_filename
oneocr_example_advanced.exe image_filename
Output will be printed to stdout and stderr.
Code based on work of GitHub user b1tg:
https://b1tg.github.io/post/win11-oneocr
https://github.com/b1tg/win11-oneocr