clickandmortar/akeneo-rekognition-bundle

Akeneo bundle to enrich products with objects and texts detected in images.
Akeneo Rekognition Bundle allows to retrieve objects and texts
detected with AWS Rekognition
(using rekognition-php)
from a product model image and to store them into this product model.

| Bundle version | Akeneo version |
|---|---|
| v0.3.* | v4.0.* |
| v0.2.* | v3.2.* |
An AWS account is also required as AWS Rekognition will be used.
$ composer require clickandmortar/akeneo-rekognition-bundle
Enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
<?php
return [
...
ClickAndMortar\AkeneoRekognitionBundle\ClickAndMortarAkeneoRekognitionBundle::class => ['all' => true]
...
];
Before using Akeneo Rekognition Bundle,
set credentials to make requests to Amazon Web Services.
In config/services/services.yml:
parameters:
...
aws_access_key_id: <your_access_key_id>
aws_secret_access_key: <your_secret_access_key>
aws_rekognition_minimum_confidence: 75
...
Import new attributes to store data from Rekognition:
php bin/console akeneo:batch:job -c "{\"filePath\":\"vendor/clickandmortar/akeneo-rekognition-bundle/Resources/fixtures/attributes.csv\"}" <your_attribute_import_job_code>
php bin/console akeneo:batch:create-job internal add_rekognition_data mass_edit add_rekognition_data '{}' 'Add Rekognition Data'
The following line will process all products and models and add data from Rekognition if attributes are editable from family.
php bin/console akeneo:batch:job add_rekognition_data
From products / models list:
Completed.Open products / models that were previously checked. They now have attributes filled with Rekognition data (only if attributes are editable)
composer post install to avoid to play some configuration commands
manuallyHow can I help you explore Laravel packages today?