예제 #1
0
 protected TransymOcrResult(TimeSpan processTime, IImageContent imageContent, Exception error,
                            RawTransymOcrResult rawAzureOcrResult) : base(processTime, imageContent, error)
 {
     RawResult = rawAzureOcrResult;
 }
예제 #2
0
 public static TransymOcrResult CreateSuccesResult(TimeSpan processTime, IImageContent imageContent, RawTransymOcrResult rawAzureOcrResult)
 {
     if (imageContent == null)
     {
         throw new ArgumentNullException(nameof(imageContent));
     }
     if (rawAzureOcrResult == null)
     {
         throw new ArgumentNullException(nameof(rawAzureOcrResult));
     }
     return(new TransymOcrResult(processTime, imageContent, null, rawAzureOcrResult));
 }