Image Analysis

Notice – All publicly available Indico APIs will be deprecated on Jan 1, 2020

Use our models to analyze text in a variety of contexts!

Input Image Format

Images can be sent to the indicoio image analysis functions as URLs, file paths, base64 encoded images, numpy array objects, or skimage image objects. Sample code for loading in an image using skimage or PIL is provided below. Although images are scaled on our servers, use square crops for optimal performance. Both single and batch image requests of over 15 MB will be rejected.


Specifying Image URL

require 'indico'

url = "https://IMAGE_URL"
Indico.fer(url)

Specifying Filepath

require 'indico'

filepath = "PATH_TO_YOUR_IMAGE"
Indico.fer(filepath)

Formatting images using the Base64 RubyGem

require 'indico'
require 'base64'

filepath = "PATH_TO_YOUR_IMAGE"
base64data = Base64.encode64(File.open(filepath, "rb").read)
Indico.fer(base64data)