Configure the Optical Character Recognition Tool
To configure and run the Optical Character Recognition Tool script, perform the following steps to update the pytesseract path within the Python script.
- 1Open the Optical_Character_Recognition_Tool tool connection.
- 2On the Code tab, update the pytesseract path within the Python script:
The following snippet shows a sample configuration block:
pytesseract.pytesseract.tesseract_cmd = r'<path to the tesseract executable on the Secure Agent machine>' # Check your path with 'which tesseract'
# --- Configuration ---
# If Tesseract is not in your system's PATH, you must set this variable.
# Example for Linux (if not in PATH):
# pytesseract.pytesseract.tesseract_cmd = r'<path to the tesseract executable on the Secure Agent machine>'
- 3Save the connection.