https://github.com/toyama0919/embulk-filter-azure_computer_vision_api
Azure Computer Vision Api filter plugin for Embulk
https://github.com/toyama0919/embulk-filter-azure_computer_vision_api
azure embulk image-recognition
Last synced: 2 months ago
JSON representation
Azure Computer Vision Api filter plugin for Embulk
- Host: GitHub
- URL: https://github.com/toyama0919/embulk-filter-azure_computer_vision_api
- Owner: toyama0919
- License: mit
- Created: 2017-01-26T09:35:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T03:02:20.000Z (about 8 years ago)
- Last Synced: 2025-02-21T17:03:02.639Z (3 months ago)
- Topics: azure, embulk, image-recognition
- Language: Ruby
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Azure Computer Vision Api filter plugin for Embulk
[](http://badge.fury.io/rb/embulk-filter-azure_computer_vision_api)## 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)
```yaml
- 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)
```yaml
- 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
```yaml
- 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
```yaml
- 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](https://azure.microsoft.com/en-us/services/cognitive-services/computer-vision/)
[Microsoft Cognitive Services \- Documentation](https://www.microsoft.com/cognitive-services/en-us/computer-vision-api/documentation)
[Cognitive Services APIs Reference](https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fa)
## Build
```
$ rake
```