Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

ballerina-attic/module-ballerinax-azure.cv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ballerina Azure CV Service Connector

This connector allows to use the Azure CV service through Ballerina. The following section provide you the details on the connector operations.

Compatibility

Ballerina Language Version
Swan Lake Preview5

The following sections provide you with information on how to use the Azure CV Service Connector.

Working with Azure CV Service Connector

First, import the ballerinax/azure.cv module into the Ballerina project.

import ballerinax/azure.cv;

In order for you to use the Azure CV service connector, first you need to create an Azure CV service connector configuration.

cv:Configuration config = {
    key: config:getAsString("KEY")
};

cv:Client cvClient = new(config);
Sample
import ballerina/config;
import ballerina/io;
import ballerinax/azure.cv;

cv:Configuration config = {
    key: config:getAsString("KEY"),
    region: "eastus"
};

cv:Client cvClient = new(config);

public function main(string... args) {
    var result = cvClient->ocr("https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png");
    io:println(result);
}

About

Azure Computer Vision Connector.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors