/// <summary> /// Detects the faces in the specified image (by path) by using the Face REST API. /// </summary> /// <param name="path">The path.</param> /// <returns></returns> private static async Task <JToken> DetectFaces(string path) { byte[] byteData = ImageManager.GetImageBytesFromPath(path); return(await DetectFaces(byteData)); }
/// <summary> /// Gets the handwritten text from the specified image file (by path) by using /// the Computer Vision REST API. /// </summary> /// <param name="byteData">The byte data.</param> /// <returns></returns> private static async Task <JToken> ReadHandwrittenText(string path) { byte[] byteData = ImageManager.GetImageBytesFromPath(path); return(await ReadHandwrittenText(byteData)); }
/// <summary> /// Gets the text visible in the specified image file (by path) by using /// the Computer Vision REST API. /// </summary> /// <param name="imageFilePath">The image file with printed text.</param> private static async Task <JToken> MakeOCRRequest(string path) { byte[] byteData = ImageManager.GetImageBytesFromPath(path); return(await MakeOCRRequest(byteData)); }
/// <summary> /// Gets the analysis of the specified image (by path) by using /// the Computer Vision REST API. /// </summary> /// <param name="path">The path.</param> /// <returns></returns> private static async Task <JToken> AnalyzeImage(string path) { byte[] byteData = ImageManager.GetImageBytesFromPath(path); return(await AnalyzeImage(byteData)); }