Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }