class_docstr: IIIT-5K character-level localization dataset from
  `"BMVC 2012 Scene Text Recognition using Higher Order Language Priors"
  <https://cdn.iiit.ac.in/cdn/cvit.iiit.ac.in/images/Projects/SceneTextUnderstanding/home/mishraBMVC12.pdf>`_.
  
  .. image:: https://doctr-static.mindee.com/models?id=v0.5.0/iiit5k-grid.png&src=0
      :align: center
  
  >>> # NOTE: this dataset is for character-level localization
  >>> from doctr.datasets import IIIT5K
  >>> train_set = IIIT5K(train=True, download=True)
  >>> img, target = train_set[0]
  
  Args:
  ----
      train: whether the subset should be the training one
      use_polygons: whether polygons should be considered as rotated bounding box (instead of straight ones)
      recognition_task: whether the dataset should be used for recognition task
      **kwargs: keyword arguments from `VisionDataset`.
class_docstr_tok: ["IIIT-5K","character-level","localization","dataset","from","`","``","BMVC","2012","Scene","Text","Recognition","using","Higher","Order","Language","Priors","''","<","https",":","\/\/cdn.iiit.ac.in\/cdn\/cvit.iiit.ac.in\/images\/Projects\/SceneTextUnderstanding\/home\/mishraBMVC12.pdf",">","`","_",".","..","image",":",":","https",":","\/\/doctr-static.mindee.com\/models","?","id=v0.5.0\/iiit5k-grid.png","&","src=0",":","align",":","center",">",">",">","#","NOTE",":","this","dataset","is","for","character-level","localization",">",">",">","from","doctr.datasets","import","IIIT5K",">",">",">","train_set","=","IIIT5K","(","train=True",",","download=True",")",">",">",">","img",",","target","=","train_set","[","0","]","Args",":","--","--","train",":","whether","the","subset","should","be","the","training","one","use_polygons",":","whether","polygons","should","be","considered","as","rotated","bounding","box","(","instead","of","straight","ones",")","recognition_task",":","whether","the","dataset","should","be","used","for","recognition","task","*","*","kwargs",":","keyword","arguments","from","`","VisionDataset","`","."]
code: def extra_repr(self) -> str:
      return f"train={self.train}"
  
file_path: doctr/doctr/datasets/iiit5k.py
imports: import os
  from typing import Any, Dict, List, Tuple, Union
  import numpy
  import scipy.io
  from tqdm import tqdm
  from .datasets import VisionDataset
  from .utils import convert_target_to_relative
label_desc: Use image node_id 2 for calling the IIIT5K obj's underlying member method code with example usage: obj.extra_repr() and returns: str, self