basilicom-pimcore-plugin/computer-vision

A Pimcore plugin that analyzes images via Computer Vision API (Microsoft Cognitive Services)

dev-master 2016-11-28 10:47 UTC

This package is auto-updated.

Last update: 2024-12-09 22:27:43 UTC


README

Developer info: Pimcore at basilicom

Synopsis

This plugin adds a new button 'Computer Vision' in the asset detail view. By clicking this button the asset (in case it's a folder - all child assets) gets analyzed by Microsoft Computer Vision API (https://www.microsoft.com/cognitive-services/en-us/computer-vision-api) and the result is saved as Asset Metadata.

Please note, that unsaved changes get lost by clicking the Computer Vision button, because the asset tab reloads to display the Computer Vision metadata.

Installation

Add the "basilicom-de/pimcore-plugin-computervision" repository to the composer.json in the toplevel directory of your pimcore installation. Then enable and install the plugin in Pimcore Extension Manager (under Extras > Extensions)

Example:

{
    "require": {
        "basilicom-pimcore-plugin/computer-vision": ">=1.0.0"
    }
}

Installing the plugin a extension-computervision.xml is created in /website/var/config.

Create an Account for Microsoft Cognitive Services (https://www.microsoft.com/cognitive-services/), subscribe the Computer Vision API and copy your authentication key to the extension-computervision.xml.

Commands

This plugin registers a command to Pimcore console comand for batch analyzing. Run

php pimcore/cli/console.php computervision:analyze assetId delayInSeconds

License

GNU General Public License version 3 (GPLv3)