Over a million developers have joined DZone.

Recognizing Text in Images With Watson’s Visual Recognition API

DZone's Guide to

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
Free Resource

Cisco IoT makes digital transformation a reality in factories, transportation, and utilities. Learn how to start integrating with Cisco DevNet.

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"

Cisco is a software company. Surprised? Don’t be. Join DevNet to explore APIs, tools, and techniques that developers are using to add collaboration, IoT, security, network priority, and more!

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.


Dev Resources & Solutions Straight to Your Inbox

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 }}