OCR to read text with the new UI

I’m making an app that includes using the OCR to read text with the new UI. Could anybody help with that?