This documentation is still in progress. We are working hard to update all our screenshots to the new Magnolia 6 style. Please bear with us.

Page tree
Skip to end of metadata
Go to start of metadata

The Local Image Recognition module complements the Image Recognition module by providing a functionality to recognize images locally. The module is provided as an alternative for users who do not want to use the Amazon Rekognition service. The module uses a pre-trained neural network based on the VGG16 recognition model and the ImageNet database.

Installing

To install the module, add the following dependency to your pom files. All the other necessary dependencies will be brought in automatically:

<dependency>
  <groupId>info.magnolia.ai.image</groupId>
  <artifactId>magnolia-local-image-recognition</artifactId>
  <version>1.0</version>
</dependency>

Pre-built jars are also available for download. See Installing a module for help.

Enabling

To enable image recognition through the Local Image Recognition module:

  • Open the Configuration app.
  • Go to the configuration of the image-recognition module.
  • Under the currentImageRecognitionService node, set the value of the class property to info.magnolia.ai.image.local.LocalImageRecogniser.

Configuration

In the module, you can adjust the minConfidence under /modules/local-image-recognition/config.

PropertyDescription
minConfidence

optional, default is 30

The confidence score of recognition.

An integer value between 0-100. The filter drops the tags with confidence lower than the value of this property. Setting the value higher usually results in fewer image results but a higher confidence that the image is recognized accurately.

Usage

For usage information, see the Image recognition feature page.