I'm using ABBYY OCR SDK and it's great at text recognition direct from camera from CMSampleBuffer in:
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!)
They've got another SDK for image recognition using which however will increase the app size for a couple of dozen Mb.
So wondering if there is any way to convert UIImage to CMSampleBuffer.