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.
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.2.2</version> </dependency>
Pre-built jars are also available for download. See Installing a module for help.
To enable image recognition through the Local Image Recognition module:
- Open the Configuration app.
- Go to the configuration of the
- Under the
currentImageRecognitionServicenode, set the value of the
In the module, you can adjust the
optional, default is
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.
For usage information, see the Image recognition feature page.