/// <inheritdoc /> public override void Locate(PageShape page, Image image, Image originalImage, IList <Rectangle> areas, CancellationToken cancellationToken) { ISet <TextShape> texts = this.detector.FindText(image, page.EnumAllLines(), cancellationToken); // add found lines to the image page.AddShapes(texts); }
/// <inheritdoc /> public override void Locate(PageShape page, Image image, Image originalImage, IList <Rectangle> areas, CancellationToken cancellationToken) { ISet <PictureShape> pictures = this.detector.FindPictures(image, cancellationToken); // add found pictures to the image page.AddShapes(pictures); }