Beispiel #1
0
 /// <summary>
 /// Processes the specific image.
 /// </summary>
 /// <remarks>
 /// You can only have one result iterator open at any one time.
 /// </remarks>
 /// <param name="image">The image to process.</param>
 /// <param name="inputName">Sets the input file's name, only needed for training or loading a uzn file.</param>
 /// <param name="pageSegMode">The page layout analyasis method to use.</param>
 public Page Process(Pix image, string inputName, PageSegMode?pageSegMode = null)
 {
     return(Process(image, inputName, new Rect(0, 0, image.Width, image.Height), pageSegMode));
 }
Beispiel #2
0
 public PageDisposalHandle(Page page, Pix pix)
 {
     this.page      = page;
     this.pix       = pix;
     page.Disposed += OnPageDisposed;
 }
Beispiel #3
0
 /// <summary>
 /// Processes a specified region in the image using the specified page layout analysis mode.
 /// </summary>
 /// <remarks>
 /// You can only have one result iterator open at any one time.
 /// </remarks>
 /// <param name="image">The image to process.</param>
 /// <param name="region">The image region to process.</param>
 /// <param name="pageSegMode">The page layout analyasis method to use.</param>
 /// <returns>A result iterator</returns>
 public Page Process(Pix image, Rect region, PageSegMode?pageSegMode = null)
 {
     return(Process(image, null, region, pageSegMode));
 }