class_docstr: Post-processing methods for ABCNet.
  
  Args:
      num_classes (int): Number of classes.
      use_sigmoid_cls (bool): Whether to use sigmoid for classification.
      strides (tuple): Strides of each feature map.
      norm_by_strides (bool): Whether to normalize the regression targets by
          the strides.
      bbox_coder (dict): Config dict for bbox coder.
      text_repr_type (str): Text representation type, 'poly' or 'quad'.
      with_bezier (bool): Whether to use bezier curve for text detection.
      train_cfg (dict): Config dict for training.
      test_cfg (dict): Config dict for testing.
docstr: Process prediction results from one image.
  
  Args:
      pred_result (Union[Tensor, List[Tensor]]): Prediction results of an
          image.
      data_sample (TextDetDataSample): Datasample of an image.
docstr_tok: ["Process","prediction","results","from","one","image",".","Args",":","pred_result","(","Union","[","Tensor",",","List","[","Tensor","]","]",")",":","Prediction","results","of","an","image",".","data_sample","(","TextDetDataSample",")",":","Datasample","of","an","image","."]
code: def _process_single(self, data_sample):
      """Process prediction results from one image.
  
      Args:
          pred_result (Union[Tensor, List[Tensor]]): Prediction results of an
              image.
          data_sample (TextDetDataSample): Datasample of an image.
      """
      data_sample = self.get_text_instances(data_sample)
      if self.rescale_fields and len(self.rescale_fields) > 0:
          assert isinstance(self.rescale_fields, list)
          assert set(self.rescale_fields).issubset(
              set(data_sample.pred_instances.keys())
          )
          data_sample = self.rescale(
              data_sample, data_sample.scale_factor
          )
      return data_sample
  
file_path: mmocr/projects/ABCNet/abcnet/model/abcnet_postprocessor.py
imports: from mmocr.models.textdet.postprocessors.base import BaseTextDetPostProcessor
  from mmocr.registry import MODELS
  from ..utils import bezier2poly
label_desc: Use image node_id 4 for calling the ABCNetPostprocessor obj's underlying member method code with example usage: obj._process_single(data_sample) and returns: data_sample