Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Unanswered

ComputerVisionAPI Connector

(1) ShareShare
ReportReport
Posted on by
I am trying to use the ComputerVisionAPI.OCRTextV2 connector, but I can't find a way to put the proper parameters, I always get the same error, even if I add an image taken from the camera control, I have searched for connector information on the net, but I can't find any useful information, your help please
  • FERNANDOJORGE Profile Picture
    FERNANDOJORGE 2 on at
    ComputerVisionAPI Connector
     
    Before trying with an image from a web address, I already tried with an image obtained from a camera and then from the image upload control, however I still get the same message.
    "Invalid argument type (Image). Expecting a UntypedObject value instead.", the image is supposed to be in the correct format already.
  • Suggested answer
    SwatiSTW Profile Picture
    SwatiSTW 311 on at
    ComputerVisionAPI Connector
    The ComputerVisionAPI.OCRTextV2 function expects an image in a special format, but you're giving it text (a URL), which it doesn't understand.
    Can you try giving it the actual image (not just a link)? If you're using a camera or an uploaded file, pass the image object instead of a text URL.
    For example if you're using a camera
    Set(
        OCRResult,
        ComputerVisionAPI.OCRTextV2(
            {
                Image: CameraControl.Photo,  // Use the image captured by the camera
                Language: "en",              // Language for text
                DetectOrientation: true      // Automatically detect text orientation
            }
        )
    );
    If you have a file or image try to use a method to upload or directly reference the binary data of the image (check how you’re storing or uploading the image).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard