activities
latest
false
Document Understanding Activities
Last updated Oct 8, 2024

OCRScrapeFactory Class

Definition

  • Namespace: UiPath.OCR.Contracts.Scrape
  • Assembly: UiPath.OCR.Contracts

Description

A factory that creates instances of OCRScrapeBase based on the desired usage.

Members

Constructor
  • OCRScrapeFactory() -
Methods
  • CreateEngine(UiPath.OCR.Contracts.Scrape.ScrapeEngineUsages) - Creates an OCRScrapeBase object with the specified usage. The OCRScrapeBase class can be extended to specify the configuration for an OCR engine.

Code Sample

internal class SampleOCRScrapeFactory : OCRScrapeFactory
    {
        public override OCRScrapeBase CreateEngine(ScrapeEngineUsages usage)
        {
            return new SampleOCRScrape(new SampleOCRAsyncCodeActivity(), usage);
        }
    }internal class SampleOCRScrapeFactory : OCRScrapeFactory
    {
        public override OCRScrapeBase CreateEngine(ScrapeEngineUsages usage)
        {
            return new SampleOCRScrape(new SampleOCRAsyncCodeActivity(), usage);
        }
    }
  • Definition
  • Description
  • Members
  • Code Sample

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.