- Overview
- Document Processing Contracts
- Release notes
- About the Document Processing Contracts
- Box Class
- IPersistedActivity interface
- PrettyBoxConverter Class
- IClassifierActivity Interface
- IClassifierCapabilitiesProvider Interface
- ClassifierDocumentType Class
- ClassifierResult Class
- ClassifierCodeActivity Class
- ClassifierNativeActivity Class
- ClassifierAsyncCodeActivity Class
- ClassifierDocumentTypeCapability Class
- ContentValidationData Class
- EvaluatedBusinessRulesForFieldValue Class
- EvaluatedBusinessRuleDetails Class
- ExtractorAsyncCodeActivity Class
- ExtractorCodeActivity Class
- ExtractorDocumentType Class
- ExtractorDocumentTypeCapabilities Class
- ExtractorFieldCapability Class
- ExtractorNativeActivity Class
- ExtractorResult Class
- FieldValue Class
- FieldValueResult Class
- ICapabilitiesProvider Interface
- IExtractorActivity Interface
- ExtractorPayload Class
- DocumentActionPriority Enum
- DocumentActionData Class
- DocumentActionStatus Enum
- DocumentActionType Enum
- DocumentClassificationActionData Class
- DocumentValidationActionData Class
- UserData Class
- Document Class
- DocumentSplittingResult Class
- DomExtensions Class
- Page Class
- PageSection Class
- Polygon Class
- PolygonConverter Class
- Metadata Class
- WordGroup Class
- Word Class
- ProcessingSource Enum
- ResultsTableCell Class
- ResultsTableValue Class
- ResultsTableColumnInfo Class
- ResultsTable Class
- Rotation Enum
- Rule Class
- RuleResult Class
- RuleSet Class
- RuleSetResult Class
- SectionType Enum
- WordGroupType Enum
- IDocumentTextProjection Interface
- ClassificationResult Class
- ExtractionResult Class
- ResultsDocument Class
- ResultsDocumentBounds Class
- ResultsDataPoint Class
- ResultsValue Class
- ResultsContentReference Class
- ResultsValueTokens Class
- ResultsDerivedField Class
- ResultsDataSource Enum
- ResultConstants Class
- SimpleFieldValue Class
- TableFieldValue Class
- DocumentGroup Class
- DocumentTaxonomy Class
- DocumentType Class
- Field Class
- FieldType Enum
- FieldValueDetails Class
- LanguageInfo Class
- MetadataEntry Class
- TextType Enum
- TypeField Class
- ITrackingActivity Interface
- ITrainableActivity Interface
- ITrainableClassifierActivity Interface
- ITrainableExtractorActivity Interface
- TrainableClassifierAsyncCodeActivity Class
- TrainableClassifierCodeActivity Class
- TrainableClassifierNativeActivity Class
- TrainableExtractorAsyncCodeActivity Class
- TrainableExtractorCodeActivity Class
- TrainableExtractorNativeActivity Class
- BasicDataPoint Class - preview
- ExtractionResultHandler Class - preview
- Document Understanding ML
- Document Understanding OCR Local Server
- Document Understanding
- Release notes
- About the Document Understanding activity package
- Project compatibility
- Configuring external connection
- Set PDF Password
- Merge PDFs
- Get PDF Page Count
- Extract PDF Text
- Extract PDF Images
- Extract PDF Page Range
- Extract Document Data
- Create Validation Task and Wait
- Wait for Validation Task and Resume
- Create Validation Task
- Classify Document
- Create Classification Validation Task
- Create Classification Validation Task and Wait
- Wait for Classification Validation Task and Resume
- Intelligent OCR
- Release notes
- About the IntelligentOCR activity package
- Project compatibility
- Load Taxonomy
- Digitize Document
- Classify Document Scope
- Keyword Based Classifier
- Document Understanding Project Classifier
- Intelligent Keyword Classifier
- Create Document Classification Action
- Create Document Validation Artifacts
- Retrieve Document Validation Artifacts
- Wait For Document Classification Action And Resume
- Train Classifiers Scope
- Keyword Based Classifier Trainer
- Intelligent Keyword Classifier Trainer
- Data Extraction Scope
- Document Understanding Project Extractor
- Document Understanding Project Extractor Trainer
- RegEx Based Extractor
- Form Extractor
- Intelligent Form Extractor
- Redact Document
- Create Document Validation Action
- Wait For Document Validation Action And Resume
- Train Extractors Scope
- Export Extraction Results
- Machine Learning Extractor
- Machine Learning Extractor Trainer
- Machine Learning Classifier
- Machine Learning Classifier Trainer
- Generative Classifier
- Generative Extractor
- Configuring Authentication
- ML Services
- OCR
- OCR Contracts
- Release notes
- About the OCR Contracts
- Project compatibility
- IOCRActivity Interface
- OCRAsyncCodeActivity Class
- OCRCodeActivity Class
- OCRNativeActivity Class
- Character Class
- OCRResult Class
- Word Class
- FontStyles Enum
- OCRRotation Enum
- OCRCapabilities Class
- OCRScrapeBase Class
- OCRScrapeFactory Class
- ScrapeControlBase Class
- ScrapeEngineUsages Enum
- ScrapeEngineBase
- ScrapeEngineFactory Class
- ScrapeEngineProvider Class
- OmniPage
- PDF
- [Unlisted] Abbyy
- [Unlisted] Abbyy Embedded

Document Understanding activities
Manual validation for digitize documents
The example below explains how to manually extract data from an image and present the output in a separate file. It presents activities such as Digitize Document or Present Validation Station. You can find these activities in the UiPath.IntelligentOCR.Activities package.
This workflow is using an older version of the UiPath.IntelligentOCR.Activities package.
Steps:
-
Open Studio and create a new Process named by default Main.
Note:Make sure to add all the needed files (
.jsonfiles and all the images) inside the project folder. -
Add a Sequence container in the Workflow Designer and create the variables shown in the following table:
Table 1. Variables to be created
Variable Type Default Value TextString DOMUiPath.DocumentProcessing.Contracts.Dom.Document DataUiPath.DocumentProcessing.Contracts.Taxonomy.DocumentTaxonomy DocumentTaxonomyUiPath.DocumentProcessing.Contracts.Taxonomy.DocumentTaxonomy TaxonomyJSONString HumanValidatedUiPath.DocumentProcessing.Contracts.Results.ExtractionResult -
Add a Read Text File activity inside the sequence.
- In the Properties panel, add the name of the file, in this case
"taxonomy.json", in the FileName field. - Add the variable
TaxonomyJSONin the Content field.
- In the Properties panel, add the name of the file, in this case
-
Add an Assign activity after the Read Text File activity.
- Add the variable
Datain the To field and the expressionDocumentTaxonomy.Deserialize(TaxonomyJSON)in the Value field. This activity builds the taxonomy for extraction.
- Add the variable
-
Add a Digitize Document activity after the Assign activity.
- In the Properties panel, add the value
1in the DegreeOfParallelism field. - Add the expression
"Input\Invoice01.tif"in the DocumentPath field. - Add the variable
DOMin the DocumentObjectModel field. - Add the variable
Textin the DocumentText field.
- In the Properties panel, add the value
-
Add a Google OCR engine inside the Digitize Document activity.
- In the Properties panel, add the variable
Imagein the Image field. - Select the check box for the ExtractWords option. This option extracts the on-screen position of all detected words.
- Add the expression
"eng"in the Language field. - Select the option
Legacyfrom the Profile drop-down list. - Add the value
2in the Scale field.
- In the Properties panel, add the variable
-
Add a Present Validation Station activity after the Digitize Document activity.
- In the Properties panel, add the variable
DOMin the DocumentObjectModel field. - Add the expression
"Input\Invoice01.tif"in the DocumentPath field. - Add the variable
Textin the DocumentText field. - Add the variable
Datain the Taxonomy field. - Add the variable
HumanValidatedin the ValidatedExtractionResults field.
- In the Properties panel, add the variable
-
Add a For Each activity under the Present Validation Station activity.
- In the Properties panel, select the option
UiPath.DocumentProcessing.Contracts.Results.ResultsDataPointfrom the TypeArgument drop-down list. - Add the expression
HumanValidated.ResultsDocument.Fieldsin the Values field.
- In the Properties panel, select the option
-
Add a Log Message activity inside the Body of the For Each activity.
- Select the option
Infofrom the Level drop-down list. - Add the expression
item.FieldNamein the Message field.
- Select the option
-
Add a Log Message activity below the first Log Message activity.
- Select the option
Infofrom the Level dropdown list. - Add the expression
item.Values(0).Value.ToStringin the Message field.
- Select the option
-
Add a Write Line activity under the Log Message activities.
- Add the value
""in the Text field.
- Add the value
-
Run the process. The robot uses the IntelligentOCR activities to manually process the data and to present the results.
Visit the following link to download the example as a ZIP file: Example.