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.
- Host: GitHub
- URL: https://github.com/malantin/uwp-cloudvisionapiclient
- Owner: malantin
- License: mit
- Created: 2016-02-22T07:46:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T14:55:14.000Z (almost 8 years ago)
- Last Synced: 2025-01-21T06:29:17.312Z (4 months ago)
- Topics: cloud-vision-api
- Language: C#
- Homepage:
- Size: 188 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 APIKeypublic 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.


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