import { OCR, OCRSourceType } from '@awesome-cordova-plugins/ocr/ngx';
constructor(private ocr: OCR) { }
...
this.ocr.recText(OCRSourceType.NORMFILEURL, "file://path/to/image.png")
  .then((res: OCRResult) => console.log(JSON.stringify(res)))
  .catch((error: any) => console.error(error));