Created
February 22, 2016 15:21
-
-
Save kiyoaki/ff5fb3862b36ee6ce9d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using System.Web.Http; | |
using Microsoft.ProjectOxford.Vision; | |
using Microsoft.ProjectOxford.Vision.Contract; | |
namespace ComputerVisionAPI.Controllers | |
{ | |
public class ComputerVisionApiController : ApiController | |
{ | |
public async Task<AnalysisResult> Get(string url) | |
{ | |
var client = new VisionServiceClient("xxxxxxxxx"); | |
var result = await client.AnalyzeImageAsync(url); | |
return result; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment