Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        /// <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));
        }
Esempio n. 3
0
        /// <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));
        }
Esempio n. 4
0
        /// <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));
        }