Oi Juliana, tudo bem?

Você já viu aplicação do @Yuri Marx no OpenExchange?

https://openexchange.intersystems.com/package/OCR-Service

Na descrição da aplicação você tem a seguinte informação:

InterSystems IRIS Interoperability OCR Service
This is an InterSystems IRIS Interoperability OCR Service to extract text from images and pdfs from a file into a multipart request from form or http request.

What The the service does
This application receive a http multipart request with a file, extract text using OCR from Tesseract and returns the result

Também tem um video que ele fez demonstrando um pouco mais. 

https://www.youtube.com/watch?v=E8MHJ0kAdbk

Espero que possa ajudar.

Abraços

Fala @Arian Botine beleza?

Eu não encontrei um método "Get" para retornar o valor Selectivity como menciona na questão acima.

No pacote %SYSTEM.SQL, tem o ClassMethod GetMapSelectability

Mas ele vai te retornar apenas 0 ou 1, conforme descrito aqui na documentação:

https://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?&LIBRARY=%25SYS&CLASSNAME=%25SYSTEM.SQL#METHOD_GetMapSelectability 

Returns: The method returns 1 if the map is selectable. If the map is not selectable, 0 is returned. If the Selectability of the map cannot be determined, a message string will be returned.

Se você analisar um outro pacote %Dictionary, vai se deparar com a classe persistente %Dictionary.StoragePropertyDefinition 

https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?&LIBRARY=SAMPLES&CLASSNAME=%25Dictionary.StoragePropertyDefinition

Essa tabela tem uma coluna chamada Selectivity. 

Veja se com essas informações você consegue chegar na sua solução. 

Depois compartilha conosco.

Abraços