OCR

The OCR action An instruction within a botflow. in a botflow Automated steps that you can design for each bot that will run. takes a picture of a target and extracts the text from the image using Optical Character Recognition (OCR) technology.

Note: Use OCR when the Get Value action can't extract text from a target.

Using the OCR action, you can:

  • Get text from a PDF.
  • Copy text from a text editor.
  • Copy values from online forms.

Some examples of target applications for the OCR action using the Target Selector are:

  • PDFs.
  • Nintex Forms.
  • Browser windows.

You can add an OCR action to a botflow using the:

Add an OCR action to a botflow using the Project Pane

This example provides the steps necessary to add an OCR action to a botflow using the Project Pane.

To add an OCR action to a botflow.

  1. On the Actions list, click Images and then click OCR from the Images list.
  2. The OCR Action Builder window displays.

  3. Set the OCR settings.
    • Preview: Provides a preview of the target.
    • Color/B&W (Slide bar): The Color/B&W toggle switches the Preview between color and black-and-white. Use the slide bar to adjust black-and-white contrast.
    • Left, Top, Width, Height: Enter a numeric value to adjust the OCR capture box area.
    • Preview: Click Refresh to refresh the Preview and populate the Preview Field.
    • Save to: Type the Save to destination.
  1. If needed, adjust the Rule settings.
    • Image Editor: Select to use the OCR action with the Image Editor.
    • Image File: Select to use the OCR action with an image file of your choosing.
  2. If needed, adjust the Run Error Task settings and Timing settings to fine tune how the action runs.
  3. View the action Detailssettings.
  4. If needed, adjust the Run Switch setting to create the action without running it.
  5. Optionally, add an action note.
  6. Click OK to add the OCR action to the botflow.

Add an OCR action to a botflow using the Target Selector

This example provides the steps necessary to add an OCR action to a botflow using the Target Selector.

To add an OCR action to a botflow.

  1. Drag the Target Selector from the Build Pane Area to add new actions and edit existing actions. The Build Pane displays after you select a targeted element in a Windows application. The center of the Build Pane is referred to as the Task Editor Pane. and drop it onto an application to display the Target Preview.
  2. Select OCR from the Images actions list.
  3. The OCR Action Builder window displays.

  4. Set the OCR settings.
    • Preview: Provides a preview of the target.
    • Color/B&W (Slide bar): The Color/B&W toggle switches the Preview between color and black-and-white. Use the slide bar to adjust black-and-white contrast.
    • Left, Top, Width, Height: Enter a numeric value to adjust the OCR capture box area.
    • Preview: Click Refresh to refresh the Preview and populate the Preview Field.
    • Save to: Type the Save to destination.
  1. If needed, adjust the Rule settings to modify how Nintex Bot finds the application target.
  2. If needed, adjust the Run Error Task settings and Timing settings to fine tune how the action runs.
  3. View the action Details settings.
  4. If needed, adjust the Run Switch setting to create the action without running it.
  5. Optionally, add an action note.
  6. Click OK to add the OCR action to the botflow.

OCR action field and button descriptions