Optical Character Recognition Tool > Introduction to Optical Character Recognition Tool recipe > Configure the Optical Character Recognition Tool
  

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.
  1. 1Open the Optical_Character_Recognition_Tool tool connection.
  2. 2On the Code tab, update the pytesseract path within the Python script:
  3. 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>'
  4. 3Save the connection.