Primo.OCR.ContentAI
1.0.3
dotnet add package Primo.OCR.ContentAI --version 1.0.3
NuGet\Install-Package Primo.OCR.ContentAI -Version 1.0.3
<PackageReference Include="Primo.OCR.ContentAI" Version="1.0.3" />
<PackageVersion Include="Primo.OCR.ContentAI" Version="1.0.3" />
<PackageReference Include="Primo.OCR.ContentAI" />
paket add Primo.OCR.ContentAI --version 1.0.3
#r "nuget: Primo.OCR.ContentAI, 1.0.3"
#:package Primo.OCR.ContentAI@1.0.3
#addin nuget:?package=Primo.OCR.ContentAI&version=1.0.3
#tool nuget:?package=Primo.OCR.ContentAI&version=1.0.3
About
Primo.OCR.ContentAI is a set of ready-to-use activities for Primo RPA Studio designed to automate interaction with the ContentCapture intelligent character recognition server. It addresses the need to process documents and retrieve recognition results within automated processes. Key activities include: sending documents for processing in synchronous and asynchronous modes and retrieving processing results. The package can be added to any Primo RPA Studio project via the built-in dependency manager.
How to Use
In Primo RPA studio, create a project that will be executed by Primo RPA robot. Install this package via the ".Dependencies → Manage Dependencies" menu; the "OCR → Content AI" node with package elements will appear in Elements tree . The "ContentCapture server" element is a container for all other package elements. This element is used to connect to the server and to authenticate.
In pure code projects use the element as follows:
//app - [Primo.OCR.ContentAI.ContentAIApp] ContentCapture application
//server - Server: [String] Server URL
//login - Login: [String] User login
//password - Password: [String] User password
//delegation - Delegation: Use delegation
//role - Role: User role
//station - Station: ContentCapture workstation type
Primo.OCR.ContentAI.ContentAIApp app = Primo.OCR.ContentAI.ContentAIApp.Init(wf, server);
Primo.OCR.ContentAI.ContentAIApp app = Primo.OCR.ContentAI.ContentAIApp.Init(wf, server, login, password, [delegation], [role], [station]);
The "Process documents" element sends a task with data to the server. This element can work in synchronous and asynchronous modes. In synchronous mode, it waits for the end of document processing on the server and receives the results.
In pure code projects:
//app - [Primo.OCR.ContentAI.ContentAIApp] ContentCapture application
//project - Project: [String] Project name
//batch - Batch: [String] Batch name
//files - Documents array: [List<string>] Array of paths to document files
//delBatch - Delete batch: Delete batch on finish
//props - Properties: [List<Dictionary<string, string>>] Document properties
//to - Time-out: [Int32] Maximum waiting time for process completion (ms)
Primo.OCR.ContentAI.Model.RecognitionResults txt = app.ProcessDocs(project, batch, files, [delBatch], [to], [props]);
Primo.OCR.ContentAI.Model.BatchInfo txt = app.ProcessDocsAsync(project, batch, files, [to], [props]);
The "Get processing result" element receives the processing result from the server when the "Process documents" element has been executed in asynchronous mode before.
In pure code:
//app - [Primo.OCR.ContentAI.ContentAIApp] ContentCapture application
//batch - Batch: [Primo.OCR.ContentAI.Model.BatchInfo] Batch info
//delBatch - Delete batch: Delete batch on finish
//to - Time-out: [Int32] Maximum waiting time for process completion (ms)
Primo.OCR.ContentAI.Model.RecognitionResults txt = app.GetProcessResult(batch, [delBatch], [to]);
Key Features
- Supports async interaction
- High performance
- Supports .NET Framework 4.6.1+
Main Types
- Primo.OCR.ContentAI.Elements.WFAttachContentAIServer
- Primo.OCR.ContentAI.Elements.WFProcessDocumentSrv
- Primo.OCR.ContentAI.Elements.WFGetProcessResult
- Primo.OCR.ContentAI.ContentAIApp
- Primo.OCR.ContentAI.Model.BatchInfo
- Primo.OCR.ContentAI.Model.RecognitionResults
Feedback
Bug reports and contributions are welcome at Primo RPA chat
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.