nonnatee / pimcore-computer-vision

Basilicom's Pimcore Plugin for analyzing image assets via the Microsoft Computer Vision API.

Home Page:http://basilicom.de/en/pimcore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ComputerVision Plugin

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)

About

Basilicom's Pimcore Plugin for analyzing image assets via the Microsoft Computer Vision API.

http://basilicom.de/en/pimcore

License:GNU General Public License v3.0


Languages

Language:PHP 85.6%Language:JavaScript 13.8%Language:CSS 0.5%