The Image Analytics service provides the means to get the tags and categories associated with an image on a web page. The Image Analytics is based on the Imagga Image Tagging API and is integrated with the text analytics services on S4, so that when a web page is processed, both the text content and the images on the page will be analysed and tags and categories will be recommended.
The image analytics functionality has been integrated with the following text analytics services:
The HTTP headers for invoking the the image analytics functionality are the same as for the Text Analytics services
There are no parameters to the POST request - all the configuration information is provided in a JSON structure in the request body.
The processing body is a JSON structure containing the input text document as a reference to remote URL (documentUrl). The documentType property should specify the format of the input data (html page, twitter message, etc.).
The following table provides the details on the attributes of the JSON request structure:
The response format for the S4 text analytics services (news, bio-medical, Twitter) is application/json. For each annotated document, it consists of a JSON object with two properties:
We will use the following web page for text and image analytics: "Radio reports say Germany spied on FBI, UN bodies and French foreign minister" from The Guardian.
To just process the text content of the page, execute the request:
Various entities will be found in text, for example:
To process the combined text & images on the web page execute the request:
The JSON result of this request will also include an "images" section with details on the images, their tags and categories, as explained in the "Response Format" section.
For the particular webpage from The Guardian, the following tags and categories will be proposed:
Skip to end of metadata Go to start of metadata