Azure Computer Vision Api filter plugin for Embulk
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/embulk/filter
.gitignore
.ruby-version
Gemfile
LICENSE.txt
README.md
Rakefile
embulk-filter-azure_computer_vision_api.gemspec

README.md

Azure Computer Vision Api filter plugin for Embulk

Gem Version

Overview

  • Plugin type: filter

Configuration

  • api_type: api_type(string, required)
  • out_key_name: out_key_name(string, required)
  • image_path_key_name: image_path_key_name(string, required)
  • params: params(hash, default: {})
  • delay: delay(integer, default: 0)
  • retry_wait: retry_wait(integer, default: 10)
  • subscription_key: subscription_key(string, required)

Example

OCR(text recognition)

  - type: azure_computer_vision_api
    api_type: ocr
    image_path_key_name: {{ image_path_key_name }}
    out_key_name: azure_text
    params:
      language: "ja"
      detectOrientation: true
    subscription_key: {{ env.AZURE_COMPUTER_VISION_SUBSCRIPTION_KEY }}

analyze(Categories,Tags,Description,Faces,ImageType,Color,Adult)

  - type: azure_computer_vision_api
    api_type: analyze
    image_path_key_name: {{ image_path_key_name }}
    out_key_name: azure_analyze
    params:
      visualFeatures: "Categories,Tags,Description,Faces,ImageType,Color,Adult"
      language: en
    subscription_key: {{ env.AZURE_COMPUTER_VISION_SUBSCRIPTION_KEY }}

tag

  - type: azure_computer_vision_api
    api_type: tag
    image_path_key_name: {{ image_path_key_name }}
    out_key_name: azure_tag
    subscription_key: {{ env.AZURE_COMPUTER_VISION_SUBSCRIPTION_KEY }}

describe

  - type: azure_computer_vision_api
    api_type: describe
    image_path_key_name: {{ image_path_key_name }}
    out_key_name: azure_describe
    subscription_key: {{ env.AZURE_COMPUTER_VISION_SUBSCRIPTION_KEY }}

Reference

Computer Vision—Image Processing and Analytics | Microsoft Azure

Microsoft Cognitive Services - Documentation

Cognitive Services APIs Reference

Build

$ rake