Skip to main content

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);
}
}