Skip to content

toyama0919/embulk-filter-azure_computer_vision_api

Repository files navigation

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

About

Azure Computer Vision Api filter plugin for Embulk

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages