class_docstr: A wrapper for `Tesseract <https://github.com/tesseract-ocr/tesseract>`_ Text
  Detection APIs based on `PyTesseract <https://github.com/tesseract-ocr/tesseract>`_.
class_docstr_tok: ["A","wrapper","for","`","Tesseract","<","https",":","\/\/github.com\/tesseract-ocr\/tesseract",">","`","_","Text","Detection","APIs","based","on","`","PyTesseract","<","https",":","\/\/github.com\/tesseract-ocr\/tesseract",">","`","_","."]
docstr: Create a Tesseract OCR Agent.
  
  Args:
      languages (:obj:`list` or :obj:`str`, optional):
          You can specify the language code(s) of the documents to detect to improve
          accuracy. The supported language and their code can be found on
          `its github repo <https://github.com/tesseract-ocr/langdata>`_.
          It supports two formats: 1) you can pass in the languages code as a string
          of format like `"eng+fra"`, or 2) you can pack them as a list of strings
          `["eng", "fra"]`.
          Defaults to 'eng'.
docstr_tok: ["Create","a","Tesseract","OCR","Agent",".","Args",":","languages","(",":","obj",":","`","list","`","or",":","obj",":","`","str","`",",","optional",")",":","You","can","specify","the","language","code","(","s",")","of","the","documents","to","detect","to","improve","accuracy",".","The","supported","language","and","their","code","can","be","found","on","`","its","github","repo","<","https",":","\/\/github.com\/tesseract-ocr\/langdata",">","`","_",".","It","supports","two","formats",":","1",")","you","can","pass","in","the","languages","code","as","a","string","of","format","like","`","``","eng+fra","''","`",",","or","2",")","you","can","pack","them","as","a","list","of","strings","`","[","``","eng","''",",","``","fra","''","]","`",".","Defaults","to","'eng","'","."]
code: def __init__(self, languages="eng", **kwargs):
      """Create a Tesseract OCR Agent.
  
      Args:
          languages (:obj:`list` or :obj:`str`, optional):
              You can specify the language code(s) of the documents to detect to improve
              accuracy. The supported language and their code can be found on
              `its github repo <https://github.com/tesseract-ocr/langdata>`_.
              It supports two formats: 1) you can pass in the languages code as a string
              of format like `"eng+fra"`, or 2) you can pack them as a list of strings
              `["eng", "fra"]`.
              Defaults to 'eng'.
      """
      self.lang = (
          languages
          if isinstance(languages, str)
          else "+".join(languages)
      )
      self.configs = kwargs
  
file_path: layout-parser/src/layoutparser/ocr/tesseract_agent.py
imports: import io
  import csv
  import pickle
  import pandas
  from .base import BaseOCRAgent, BaseOCRElementType
  from ..io import load_dataframe
  from ..file_utils import is_pytesseract_available
label_desc: Use image node_id 1 to create a new TesseractAgent object from inherited base classes: BaseOCRAgent with example: obj = TesseractAgent(languages)