Over a million developers have joined DZone.

Recognizing Text in Images With Watson’s Visual Recognition API

IBM Watson has a number of strings to it's powerful computing bow. This post offers a simple introduction to the image recognition REST API which is simple enough to use from the command line.

· IoT Zone

Access the survey results 'State of Industrial Internet Application Development' to learn about latest challenges, trends and opportunities with Industrial IoT, brought to you in partnership with GE Digital.

The Watson Visual Recognition service is now generally available and a lot of new functionality has been added. The service combines the old beta capabilities plus the Alchemy functionality and the previous Visual Insights service.

With the new service, you can receive classifications of images, faces can be detected and even text is recognized. All of this can be done by simply invoking APIs without requiring deep learning skills.

With the new service, you can now define and train multiple custom visual classifiers at once. Additionally, it’s not longer necessary (but still possible) to upload a set of negative images for the training.

The screenshot shows a sample for the new functionality (beta) to recognize text, in this case, the Bluemix slogan.


Try the API for your own images online.

There are REST APIs and language bindings for Node, Java, and Python. Here are the curl commands for testing the API:

curl -X POST -F "images_file=@jax-16-7.jpg" "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={api-key}&version=2016-05-20"
curl -X POST -F "images_file=@jax-16-7.jpg" "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={api-key}&version=2016-05-20"
curl -X POST -F "images_file=@jax-16-7.jpg" "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/detect_faces?api_key={api-key}&version=2016-05-20"

The IoT Zone is brought to you in partnership with GE Digital.  Discover how IoT developers are using Predix to disrupt traditional industrial development models.

apis ,watson ,rest ,visual ,recognition

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}