Class GoogleVisionService
Inheritance
System.Object
GoogleVisionService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class GoogleVisionService : IVisionService
Constructors
GoogleVisionService(String)
Constructs an
Declaration
public GoogleVisionService(string platformKey = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | platformKey | Defaults to platform key in Tokens if null. |
Methods
AnalyzeAsync(String)
Uses Google Cloud Vision to analyze an image.
Declaration
public Task<AnnotateImageResponse> AnalyzeAsync(string base64Image)
Parameters
Type | Name | Description |
---|---|---|
System.String | base64Image | An image encoded as a base 64 string. |
Returns
Type | Description |
---|---|
Task<AnnotateImageResponse> | Analysis results. |