We have the requirement to scan the image and read text from that image using powerapps. I have created "Computer Vision API" data connection and when i try to create it, unauthorized error is thrown. Please see attached screenshot.
Can anyone tell me, is it possible to add this connection in PowerApps. Thanks.
The error got resolved. Somehow there was a region problem with westus.
Please tell me what are the arguments to pass into the function with one example
ComputerVisionAPI.OCR ([internal][Optional]string language, [internal][Optional]boolean detectOrientation, string format, OCRParameterImage Image)
Optical Character Recognition (OCR) to JSON
Hi,
Please check the parameter description below:
Summary: Optical Character Recognition (OCR) to JSON
Description: Optical Character Recognition (OCR) detects text in an image and extracts the recognized characters into a machine-usable JSON stream.
Syntax:
ComputerVisionAPI.OCR ([internal][Optional]string language, [internal][Optional]boolean detectOrientation, string format, OCRParameterImage Image)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
language |
string (Language) |
The language code of the text to be detected in the image. |
False |
|
detectOrientation |
boolean (Detect Orientation) |
he BCP-47 language code of the text to be detected in the image. |
False |
|
format |
string (Image Source)Values: [Image Content, Image URL] |
Source of the image - either included or by reference url. |
True |
|
Image |
|
|
True |
Regards,
Michael
Thanks Michael.
I am using the below method with parameters.
ComputerVisionAPI.OCR(Format(string), Image(OCRParameterImage))
ComputerVisionAPI.OCR("https://www.netplates.co.uk/uploads/6c62efa141e2ad113fbfa15f43dfa4bf.jpg", First(MyPictures.Url))
Image parameter - First(MyPictures.Url) - is the first image from image gallery.
What should be specified in the Format parameter? If I specify image url from my image gallery, it's throwing invalid parameter error.
"https://www.netplates.co.uk/uploads/6c62efa141e2ad113fbfa15f43dfa4bf.jpg" is the example url string, still it throws "InvalidImageUrl
Image URL is badly formatted".
Please help me out here. Thanks.
Please help me for the parameter values in OCR function
ComputerVisionAPI.OCR(Format(string), Image(OCRParameterImage))
format | string (Image Source)Values: [Image Content, Image URL] | Source of the image - either included or by reference url. | True | |
Image |
|
| True |
What should be given for format and Image parameter with some example values, as I am getting "InvalidImageUrl
Image URL is badly formatted" error. Thanks.
@Supriya191 Were you able to resolve the formatting issue? I am also interested and am wondering what parameters should be passed.
I also struggle with getting OCR to work in PowerApps. The most puzzling to me is that autocomplete doesn't even ask for an Image as Parameter:
It only wants a format but no content or url.
Any ideas? Getting this to run without flow would be extremely preferable.
Does anyone know if this has been resolved? I'm having the same problem - not sure how to make ocrtextv2 to work. The auto fill parameters do not make a lot sense to me.
Thanks
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
180 | |
45 | |
45 | |
34 | |
34 |
User | Count |
---|---|
255 | |
82 | |
78 | |
67 | |
65 |