Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
This tutorial describes how to integrate webMethods.io with Microsoft Cognitive Services. Here the cognitive service I am using is “Computer Vision” and the functionality I am using is Optical Character Recognition (OCR).
• Have access to webMethods.io cloud instance • Access to Microsoft Azure with valid subscription – https://azure.microsoft.com
Cognitive Services brings AI within reach of every developer—without requiring machine-learning expertise. All it takes is an API call to embed the ability to see, hear, speak, search, understand and accelerate decision-making into your apps. Enable developers of all skill levels to easily add AI capabilities to their apps. Read More
Microsoft Azure’s Computer Vision is a cognitive service which gives you access to advanced algorithms that process images and return information based on the visual features you’re interested in. For example, Computer Vision can determine whether an image contains adult content, find specific brands or objects, or find human faces. Read More
APIs supported by Computer Vision Cognitive Service
API swagger URL - https://westus.dev.cognitive.microsoft.com/docs/services/5d98695995feb7853f67d6a6/export?DocumentFormat=Swagger&ApiName=Computer%20Vision%20API%20(v3.0-preview)
POST URL - https://<yourserviceregion>.api.cognitive.microsoft.com/vision/v3.0/ocr
Content-Type : application/json
Ocp-Apim-Subscription-Key : <your cognitive service key>
In the body, pass a Json value {“url”:”<image URL>”}
The response of this post call would be the text in the image passed
In webMethods.io, you can use Http Connector to create a Http Request to the cognitive service and receive the response and process further as required.
Sample workflow is as below, where I read all the text output of the cognitive service and write to file within the loops and finally return the complete content to the user to be displayed on browser.