Create New OCR Model
AutomatR.Nanonets.Activities.CreateNewOCRModel
The "Create New OCR Model" activity in AutomatR is part of the Nanonets OCR Model activities package, allowing you to create a new OCR model with specified categories and obtain the associated model ID. This activity streamlines the process of setting up OCR models tailored to specific document categories for efficient text extraction.
Properties
Name | Description |
---|---|
Input | |
Categories | Specifies the categories for the OCR model, provided as a comma-separated string. These categories define the types of information the OCR model will recognize in documents (e.g., "Name, Age, Height"). String variables containing the categories. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Create New OCR Model" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
ModelID | Outputs the unique identifier (ID) associated with the created OCR model. This ID is used for subsequent OCR operations using the Nanonets OCR model. Variables of type string to store the model ID. |
Status | Outputs the status of the created OCR model, indicating whether the model creation was successful or any encountered errors. Variables of type string to store the model creation status. |
How to use:
- Drag and drop the "Create New OCR Model" activity onto the workflow.
- Configure the properties by specifying the desired OCR model categories.
- Optionally, configure the delay.
- Execute the workflow to create a new OCR model with the specified categories.
- Retrieve the model ID and status for further use in OCR operations.
Example: Consider an example where the "Create New OCR Model" activity is used to create an OCR model with categories for extracting information from documents:
Create New OCR Model:
Categories: "Name, Age, Address"
Delay: 5
ModelID: modelId
Status: modelStatus
In this example, the activity creates a new OCR model with categories for extracting "Name," "Age," and "Address" information from documents. The model ID and status are stored in the variables "modelId" and "modelStatus" for further handling in the workflow.