The ImageCon V2 Models utilize advanced machine learning algorithms to analyze the contents of images and detect a diverse set of labels associated with them. Through extensive training, these models have learned to identify specific objects, scenes, actions, and concepts present in an image. By leveraging these models, users can gain valuable insights into the various elements and themes depicted in a photograph.

When an image is processed using the ImageCon V2 Models, they can detect a wide range of labels, numbering in the thousands. These labels encompass objects such as “Palm Tree,” scenes like “Beach,” actions such as “Running,” and concepts like “Outdoors.” By accurately detecting and associating these labels with the image, the models provide information about the prominent elements and overall context within the image.

Moreover, the ImageCon V2 Models offer additional capabilities to retrieve valuable information about different properties of an image. These properties include attributes like the color of the foreground and background, as well as the overall sharpness, brightness, and contrast of the image. This comprehensive feature enables users to gain a deeper understanding of the visual characteristics and qualities exhibited by the analyzed image.

The powerful label detection and property analysis provided by the ImageCon V2 Models enable users to extract meaningful information from images. This opens up a wide range of applications in various domains, including content categorization, image search, visual recommendation systems, and image enhancement. By leveraging the advanced capabilities of these models, users can unlock valuable insights and optimize their workflows related to image analysis and understanding.

Read more at https://docs.worqhat.com/ai-models/image-analysis/image-analysis-v2

Parameters

ParameterTypeDescription
imageFile or stringThe existing image to be analyzed. Can be a File object, a Buffer object, or a public URL string.
output_typestringThe format of the output data. Can be either ‘json’ or ‘text’. Default is ‘json’. If ‘text’ is chosen, additional parameters may apply.
questionstringThe specific question or query related to the image analysis.
training_datastringCustom training data to tailor the analysis model.
streambooleanWhether the output should be streamed. Default is false.

Initialize AI Modules

const worqhat = require('worqhat');

var config = new worqhat.Configuration({
    apiKey: "your-api-key",
    debug: true,
    max_retries: 3,
});

worqhat.initializeApp(config);

let ai = worqhat.ai();

Implementation

ai.analyseImages.analyse({
    image: "./image.jpeg",
    output_type: "text",
    question: "What is the main object in this image?",
    training_data: "custom-training-data",
    stream: false,
}).then((response) => {
    console.log(response);
}).catch((error) => {
    console.log(error);
});