Primo.OCR.ContentAI
1.0.2
dotnet add package Primo.OCR.ContentAI --version 1.0.2
NuGet\Install-Package Primo.OCR.ContentAI -Version 1.0.2
<PackageReference Include="Primo.OCR.ContentAI" Version="1.0.2" />
paket add Primo.OCR.ContentAI --version 1.0.2
#r "nuget: Primo.OCR.ContentAI, 1.0.2"
// Install Primo.OCR.ContentAI as a Cake Addin #addin nuget:?package=Primo.OCR.ContentAI&version=1.0.2 // Install Primo.OCR.ContentAI as a Cake Tool #tool nuget:?package=Primo.OCR.ContentAI&version=1.0.2
About
Primo RPA robot uses elements of the package to automate interaction with ContentCapture intelligent character recognition server by Content AI company.
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.