示例#1
0
 protected GoogleOcrResult(TimeSpan processTime, ImageContent imageContent, Exception error,
                           RawGoogleOcrResult rawGoogleOcrResult) : base(processTime, imageContent, error)
 {
     RawResult = rawGoogleOcrResult;
 }
示例#2
0
 public static GoogleOcrResult CreateSuccessResult(TimeSpan processTime, ImageContent imageContent, RawGoogleOcrResult rawGoogleOcrResult)
 {
     if (imageContent == null)
     {
         throw new ArgumentNullException(nameof(imageContent));
     }
     if (rawGoogleOcrResult == null)
     {
         throw new ArgumentNullException(nameof(rawGoogleOcrResult));
     }
     return(new GoogleOcrResult(processTime, imageContent, null, rawGoogleOcrResult));
 }