Notice – All publicly available Indico APIs will be deprecated on Jan 1, 2020
Use our models to analyze text in a variety of contexts!
Base64 Encoded Image: required: The API processes strings as a single piece of text and return a single result. You can also send a list of phrases to be processed all in one call(more efficient).
Map: optional: Some of the functions have optional parameters that are passed to the function with a map, the keys being the names of the options shown below.
String: required/optional: Your API key for authenticating your usage. If you haven’t set your API key in another way, this is required.
String: optional: If specified, calls will be made to the private cloud address provided. If you haven’t purchased private infrastructure from us then this input is irrelevant.
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.
import io.indico.Indico; import io.indico.api.IndicoResult; import javax.imageio.ImageIO; Indico indico = new Indico("YOUR_API_KEY"); String filePath = "path/to/image.png"; String imageURL = "https://IMAGE_URL"; // From a URL IndicoResult responseOne = indico.fer.predict(imageURL); // As a String IndicoResult responseTwo = indico.fer.predict(filePath); // As a File IndicoResult responseThree = indico.fer.predict(new File(filePath)); // As a BufferedImage BufferedImage image = ImageIO.read(new File(filePath)); IndicoResult responseFour = indico.fer.predict(image, "png");