public virtual OCRResult OCR(string imageUrl, string language = "", bool enhanced = false)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "ContentModeratorService.OCR",
                ApiKeys.ContentModeratorRetryInSeconds,
                () =>
     {
         var result = ContentModeratorRepository.OCR(imageUrl, language, enhanced);
         return result;
     },
                null));
 }
        public virtual OCRResult OCR(string imageUrl, string language = "", bool enhanced = false)
        {
            try
            {
                var result = ContentModeratorRepository.OCR(imageUrl, language, enhanced);

                return(result);
            }
            catch (Exception ex)
            {
                Logger.Error("ContentModeratorService.OCR failed", this, ex);
            }

            return(null);
        }