I am using Computer Vision API action Optical Character Recognition (OCR) to Text
I have a canvas app that takes a picture and triggers a flow.
When the flow runs it does not recognise the text.
I have built my Flow based on the examples online.
As per my understanding I need to convert the base64 text to binary for the OCR to read the image.
However I get an error when I try to convert it :
Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '8993': 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.
If I do not convert the image
Any ideas ?
Solved! Go to Solution.
I managed to get rid of the error. However, now the Flow runs with no error but I am getting blank text, so the API is not detecting my image.
PowerApps setup is:
PowerApps button to capture image:
PowerApps button to send to Flow:
I am under the impression that we need to convert using dataUriToBinary function so I have supplied the photo.url as input from PowerApps.
I have also created the file in OneDrive as per the examples on the internet.
The files I have scanned are below. Is the API not able to recognise these images?
I have tried using a business card and same result - all return blank
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.