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",">","`","_","."]
code: def _detect(self, img_content):
      res = {}
      res["text"] = pytesseract.image_to_string(
          img_content, lang=self.lang, **self.configs
      )
      _data = pytesseract.image_to_data(
          img_content, lang=self.lang, **self.configs
      )
      res["data"] = pd.read_csv(
          io.StringIO(_data),
          quoting=csv.QUOTE_NONE,
          encoding="utf-8",
          sep="\t",
          converters={"text": str},
      )
      return res
  
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 3 for calling the TesseractAgent obj's underlying member method code with example usage: obj._detect(img_content) and returns: res