An open API service indexing awesome lists of open source software.

https://github.com/malantin/uwp-cloudvisionapiclient

A small client that enables you to use the Google Cloud Vision API from Universal Windows Platform (UWP) and .Net Core applications using an API key for authentication.
https://github.com/malantin/uwp-cloudvisionapiclient

cloud-vision-api

Last synced: 2 months ago
JSON representation

A small client that enables you to use the Google Cloud Vision API from Universal Windows Platform (UWP) and .Net Core applications using an API key for authentication.

Awesome Lists containing this project

README

        

# UWP / .Net Google Cloud Vision API Client
A small client that enables you to use the Google Cloud Vision API Beta from Universal Windows Platform (UWP) applications using an API key for authentication.

You can use the class library with your Universal Windows Applications (UWP) (Windows 10) apps. It should also work with .Net Core. Please refer to the [Google Cloud Vision API Website](https://cloud.google.com/vision/) and [API Documentation](https://cloud.google.com/vision/docs/) for more information on the Google Cloud Vision API.

You will need to sign up for the Google Cloud Services first, enable the Cloud Vision API and create an API Key.

Working with the API client is just a few lines of code. These are the relevant parts of the client:

```c#
public string APIKey

public CloudVisionAPIClient(string APIKey)

public CloudVisionAPIClient()

///
/// Annotage an image with the Cloud Vision API
///
/// The image file to annotate
/// The type of annotation requested
/// The maximum number of results
///
public async Task AnnotateImage(Stream file, FeatureType type, short maxResults)
```

You can use the client like this:

```c#
private CloudVisionAPIClient APIClient = new CloudVisionAPIClient();

APIClient.AnnotateImage(imageStream, requestedFeatureType, 5);
```

The solution contains two projects. The client as a portable class library and a demo app to test the client and API.

![Screenshot Landmark Detection](https://github.com/n01d/CloudVisionAPIClient/raw/master/Images/screen_1.png)

![Screenshot Landmark Detection](https://github.com/n01d/CloudVisionAPIClient/raw/master/Images/screen_2.png)

‼ Watch out. This an unstable project and should be used with caution 😉