Magnolia 6.0 reached end of life on June 26, 2019. This branch is no longer supported, see End-of-life policy.
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.5</version>
</dependency>
To enable image recognition through the Local Image Recognition module:
image-recognition
module.currentImageRecognitionService
node, set the value of the class
property to info.magnolia.ai.image.local.LocalImageRecogniser
.In the module, you can adjust the minConfidence
under /modules/local-image-recognition/config
.
Property | Description |
---|---|
minConfidence | 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.