Image File Prediction
AutomatR.Nanonets.Activities.ImageFilePrediction
The "Image File Prediction" activity in AutomatR is part of the Nanonets Image Classification activities package, facilitating the prediction of categories for an image file using the Nanonets OCR model. This activity streamlines the process of categorizing images based on trained models, enhancing the efficiency of image classification workflows.
Properties
Name | Description |
---|---|
Input | |
Image Path | Specifies the full file path of the image to be used for prediction. It supports JPG, JPEG, and PNG file formats. String variables containing the image file path. |
Model ID | Specifies the ID of the Nanonets OCR model used for image classification. String variables containing the Model ID. |
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 "Image File Prediction" 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 | |
Result | Outputs the predicted results for the image file. The results include information about the categories assigned to the image. The data type is ImagePredictByFileProperties . Variables of type ImagePredictByFileProperties to store the prediction details. |
How to use:
- Drag and drop the "Image File Prediction" activity onto the workflow.
- Configure the properties by specifying the image file path and the Model ID for Nanonets image classification.
- Optionally, configure the delay.
- Execute the workflow to predict the categories for the specified image file using the Nanonets OCR model.
Example: Consider an example where the "Image File Prediction" activity is used to predict categories for an image file with the Model ID "789" and Image Path "C:/Images/sample.jpg":
Image File Prediction:
Display Name: "Image Prediction Activity"
Image Path: "C:/Images/sample.jpg"
Model ID: "789"
Delay: 3
Result: imagePredictionDetails
In this example, the activity predicts categories for the image located at "C:/Images/sample.jpg" using the Nanonets OCR model with a Model ID of "789" and a delay of 3 seconds. The predicted results are stored in the variable "imagePredictionDetails" of type ImagePredictByFileProperties
for further handling in the workflow.