Skip to content

AI-Powered Image-to-Product Data Generator

License

Notifications You must be signed in to change notification settings

spryker-community/ai-image-to-product

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackathon Project

Created by team Nagarro Oryx.

🏆 With this project, team Nagarro Oryx WON the 1st prize in the August 2024 Hackathon! 🏆

Short Project Description

Imagine a world where product creation is as effortless as uploading a photo. Introducing AI-Powered Image-to-Product Data Generator that revolutionizes product onboarding, saving time, reducing errors, and boosting efficiency.

📹 Team Demo

Team Nagarro Oryx presented this demo at the conclusion of the Nagarro Hackathon on Augsut 2nd, 2024:

Nagarro Hackathon: Demo Team #1: Nagarro Oryx

View other team demo's on our YouTube Playlist

Pre-requisite:

  1. To generate Gemini Api key click here

  2. Setup env variable:

    • GEMINI_API_KEY with key or add key in config/shared/config_default.php
    $config[ImageToTextConstants::GEMINI_API_KEY]  = 'api_key';
    • GEMINI_HOST_ENDPOINT with API endpoint or add key in config/shared/config_default.php
    $config[ImageToTextConstants::GEMINI_HOST_ENDPOINT]  = 'host_url';

Modules and path:

config/Shared/config_default.php has two configuration:

$config[ImageToTextConstants::GEMINI_HOST_ENDPOINT] = getenv('GEMINI_HOST_ENDPOINT') ? : 'host_url';
$config[ImageToTextConstants::GEMINI_API_KEY] = getenv('GEMINI_API_KEY') ? : 'api_key';
  • src/Pyz/Zed/AIImageToProductDataImport
  • src/Pyz/Zed/AIImageToProductGui
  • src/Pyz/Client/ImageToText
  • src/Pyz/Zed/DataImport/DataImportDependencyProvider.php
  • src/Pyz/Shared/ImageToText/ImageToTextConstants.php
  • src/Pyz/Zed/ProductManagement/Presentation/Index/index.twig Data-import path
  • data/import/common/EU/ai_image_to_product.csv
  • data/import/common/ai_image_to_product_EU.yml

Setup:

  1. clone the repository in your local
    git clone git@github.com:spryker-community/ai-image-to-product.git
  2. clone docker sdk
     git clone https://github.com/spryker/docker-sdk.git --single-branch docker
  3. bootstrap the project
    docker/sdk bootstrap deploy.dev.yml
  4. start the project
       docker/sdk up

if you come across any installation error, please run following command:

        docker/sdk reset

caution: if you run this command, all the data stored in your spryker docker volumes will be destroyed.

Capabilities:

  • Generate Product using Image only
  • Custom Data Importer to Import product using image

How to use:

  1. Login to backoffice and go to catalog > Product
  2. On products section, on top right corner Gen Ai Product button is there. click on it. backoffice-1

3.Fill the required information: genai-2

  1. click on save which will create a new product and redirect you on product edit page. If sku already exist, it will throw an error message that Sku already exist. genai-4

  2. Backoffice product edit: gen5 gen6

  3. Custom data importer command: gen7 gen8

Releases

No releases published

Packages

No packages published

Languages

  • PHP 63.1%
  • Twig 25.5%
  • SCSS 8.1%
  • TypeScript 2.3%
  • JavaScript 0.8%
  • HTML 0.2%