Could someone please assist me in troubleshooting an issue with my Power Automate Desktop flow?
I've utilized the "OCR" action to extract text from an image using Microsoft Cognitive Services with an Azure subscription key.ocr action
However, despite providing the correct image as input [screenshot 1], the OCR action is yielding inaccurate results [screenshot 2], as shown in the JSON response below:Image used to send to OCR and curl
screenshot 1[☝️]
OCR action output
screenshot 2[☝️]
{
"language": "en",
"textAngle": 0.0349065850398872,
"orientation": "Down",
"regions": [
{
"boundingBox": "50,108,118,176",
"lines": [
{
"boundingBox": "56,108,49,15",
"words": [
{
"boundingBox": "56,108,49,15",
"text": "(paved)"
}
]
},
{
"boundingBox": "55,128,113,16",
"words": [
{
"boundingBox": "55,128,49,15",
"text": "(paved)"
},
{
"boundingBox": "108,130,60,14",
"text": "Åuq51ua_J04"
}
]
},
{
"boundingBox": "54,148,113,16",
"words": [
{
"boundingBox": "54,148,49,15",
"text": "(paved)"
},
{
"boundingBox": "107,150,60,14",
"text": "ÅAq5.uuos"
}
]
},
{
"boundingBox": "54,168,112,16",
"words": [
{
"boundingBox": "54,168,49,15",
"text": "(paved)"
},
{
"boundingBox": "107,170,59,14",
"text": "Kug6'uuos"
}
]
},
{
"boundingBox": "53,188,49,15",
"words": [
{
"boundingBox": "53,188,49,15",
"text": "(paved)"
}
]
},
{
"boundingBox": "52,208,113,16",
"words": [
{
"boundingBox": "52,208,49,15",
"text": "(paved)"
},
{
"boundingBox": "105,210,60,14",
"text": ",4nq5.uu0d"
}
]
},
{
"boundingBox": "52,228,112,16",
"words": [
{
"boundingBox": "52,228,49,15",
"text": "(paved)"
},
{
"boundingBox": "104,230,60,14",
"text": ",qu61uuos"
}
]
},
{
"boundingBox": "51,248,112,16",
"words": [
{
"boundingBox": "51,248,49,15",
"text": "(paved)"
},
{
"boundingBox": "104,250,59,14",
"text": ",qaq51uuos"
}
]
},
{
"boundingBox": "50,268,113,16",
"words": [
{
"boundingBox": "50,268,49,15",
"text": "(paved)"
},
{
"boundingBox": "103,270,60,14",
"text": ",4gq51uuos"
}
]
}
]
}
]
}
The output string we needed is the "text" from the json[highlighted as blue]
Interestingly, when I used the curl method (REST API), the OCR operation worked perfectly and provided the expected output, as depicted in the attached screenshot.
Note: Here, I have added some filter commands to get the expected output from the json output of curl command.curl output
What could be causing this discrepancy with the "OCR" action in Power Automate Desktop?

Report
All responses (
Answers (