class_docstr: SynthText dataset from `"Synthetic Data for Text Localisation in Natural Images"
  <https://arxiv.org/abs/1604.06646>`_ | `"repository" <https://github.com/ankush-me/SynthText>`_ |
  `"website" <https://www.robots.ox.ac.uk/~vgg/data/scenetext/>`_.
  
  .. image:: https://doctr-static.mindee.com/models?id=v0.5.0/svt-grid.png&src=0
      :align: center
  
  >>> from doctr.datasets import SynthText
  >>> train_set = SynthText(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/synthtext.py
imports: import glob
  import os
  from typing import Any, Dict, List, Tuple, Union
  import numpy
  from PIL import Image
  from scipy import io
  from tqdm import tqdm
  from .datasets import VisionDataset
  from .utils import convert_target_to_relative, crop_bboxes_from_image
label_desc: Use image node_id 2 for calling the SynthText obj's underlying member method code with example usage: obj.extra_repr() and returns: str, self