Skip to content

Instantly share code, notes, and snippets.

@kiyoaki
Created February 22, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiyoaki/ff5fb3862b36ee6ce9d8 to your computer and use it in GitHub Desktop.
Save kiyoaki/ff5fb3862b36ee6ce9d8 to your computer and use it in GitHub Desktop.
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