Omnipage activity related

what are the argumnets to be passed in Omnipage activity. For example i wanted to get an account number from any device as a text. Please provide a detailed understanding as I’m yet in learning phase

@Samiksha_Moon

Welcome to the community

It is an ocr engine…it would read all the data not specific data as such…after reading you can extract what data you need using string manipulation or regex

Input would be the image file you want to read

Cheers

1 Like

Hi @Samiksha_Moon

The OCR doesn’t need really to fill any property except the image that is by default, so in this case we just need to choose the activity we want to use the the omnipage OCR and with this activity we will retrieve the output we want

Regards!

1 Like

Hi @Samiksha_Moon
Download UiPath.OmniPage.Activities from Manage Packages
Use the Read PDF with OCR activity and under OCR engine keep Omni Page OCR.

  1. Input Arguments:
  • ImagePath (String): The file path or image URL of the document or image you want to extract text from.
  • Language (String): The language used in the document or image for accurate OCR results. Specify the language code, such as “eng” for English or “fra” for French.
  • Scale (Double): The scaling factor applied to the image. Use 1 for the original size.
  • Rotation (Double): The rotation angle of the image in degrees.
  • Brightness (Int32): The brightness adjustment value.
  • Contrast (Int32): The contrast adjustment value.
  1. Output Arguments:
  • OutputText (String): The extracted text from the image or document.
1 Like

Hi @Samiksha_Moon

  1. Drag and drop the Omnipage activity onto the workflow canvas.
  2. Configure the properties of the Omnipage activity:
    • ImageSource: The path or variable containing the image or document file you want to process.
    • Scale: The scaling factor applied to the image. The default value is 1.
    • InputFileType: The type of input file you are using, such as Image or PDF. Select the appropriate option.
    • Language: The language of the document you are processing. Select the appropriate language for better OCR accuracy.
    • Result: A variable of type string that will store the extracted text.
  3. After configuring the Omnipage activity, you can use other activities to manipulate or process the extracted text as needed. In your case, you would want to extract the account number.
  • You can use string manipulation functions like Substring, Split, or regular expressions to extract the account number from the extracted text.
  • If the account number has a specific pattern or format, you can use regular expressions (Matches activity or Regex class in C#) to extract it.
  • If the account number is always in a fixed position or has a consistent surrounding context, you can use string manipulation functions to extract the desired portion of text.
  • Assign the extracted account number to a variable or use it in subsequent activities in your workflow.

Thanks!!

1 Like