Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

Download Red Hat’s blueprint for building an open IoT platform—open source from cloud to gateways to devices.

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.

watsontextimage

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"

Build an open IoT platform with Red Hat—keep it flexible with open source software.

Topics:
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.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}