class_docstr: Convert transforms's data format from MMDet to MMOCR.
  
  Required Keys:
  
  - gt_masks (PolygonMasks | BitmapMasks) (optional)
  - gt_ignore_flags (np.bool) (optional)
  
  Added Keys:
  
  - gt_polygons (list[np.ndarray])
  - gt_ignored (np.ndarray)
class_docstr_tok: ["Convert","transforms","'s","data","format","from","MMDet","to","MMOCR",".","Required","Keys",":","-","gt_masks","(","PolygonMasks","|","BitmapMasks",")","(","optional",")","-","gt_ignore_flags","(","np.bool",")","(","optional",")","Added","Keys",":","-","gt_polygons","(","list","[","np.ndarray","]",")","-","gt_ignored","(","np.ndarray",")"]
code: def __repr__(self) -> str:
      repr_str = self.__class__.__name__
      return repr_str
  
file_path: mmocr/mmocr/datasets/transforms/adapters.py
imports: from typing import Dict
  from mmcv.transforms.base import BaseTransform
  from mmdet.structures.mask import PolygonMasks, bitmap_to_polygon
  from mmocr.registry import TRANSFORMS
label_desc: Use image node_id 2 for calling the MMDet2MMOCR obj's underlying member method code with example usage: obj.__repr__() and returns: repr_str