Akeneo Rekognition Bundle

Akeneo PIM compatibilty
Versions:
2.3
Price: Free
Version:
0.1.3

Description

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.

Demo video: https://vimeo.com/320527149

 

Akeneo Rekognition steps

 

Installation

Download the Bundle

composer require clickandmortar/akeneo-rekognition-bundle

Enable the Bundle

Enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new ClickAndMortar\AkeneoRekognitionBundle\ClickAndMortarAkeneoRekognitionBundle(),
        ];

        // ...
    }

    // ...
}

Documentation

Configuration

Configure credentials

Before using Akeneo Rekognition Bundle, set credentials to make requests to Amazon Web Services

Import attributes

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\"}" csv_attributes_import
 

Add new attributes to family

Add new attributes to family

Edit a family variant

Edit a family variant

Create job


php bin/console akeneo:batch:create-job internal add_rekognition_data mass_edit add_rekognition_data '{}' 'Add Rekognition Data'
 

Usage

Run job

The following line will process all "1st variant Color" (See What about products variants) with image and add data from Rekognition to the variant.


php bin/console akeneo:batch:job add_rekognition_data
 

Mass edit

From product models list:

  • Check the ones that need to be processed.
  • Click "Mass edit".
  • Click "Add Rekognition Data".
  • Click "Next", "Next", then "Confirm".
  • Check on dashboard that operation has status `Completed`.

Open product models that were previously checked.
They now have attributes filled with Rekognition data.

List your extension on Akeneo Marketplace

Learn about the best practices to enrich Akeneo ecosystem.

Share your contributions with Akeneo Community any way you want.

Need help? Please read our
submission requirements and manual.