How to implement Google Cloud vision API OCR in ionic3 to extract text from image Ask Question

I’m trying to implement Google Cloud Vision OCR in Ionic 3 to identify text in an uploaded image?

I found a github repo to identify text from image and tried this project with ionic3.

It uploads images and text gets extracted from the image and tells whether the given keywords are present or not. The following code is not working while capturing the image and identifying the text from the image and show highlighted text from identified text.

https://github.com/kareemf/allergenify

cloned and tried by ionic serve gives a error access-config file not found which has Google could vision api in it.

I created an access-config file and put Google vision api as access-config.ts

export constant access-config{
    VISION_API_KEY:'api_key'
}

but failed capturing the image and get text from the image.

Blockquote