class_docstr: Merge text components and construct boundaries of text instances.
  
  Args:
      link_thr (float): The edge score threshold. Defaults to 0.8.
      edge_len_thr (int or float): The edge length threshold. Defaults to 50.
      rescale_fields (list[str]): The bbox/polygon field names to
          be rescaled. If None, no rescaling will be performed. Defaults to
          [polygons'].
docstr: Whether a point is in a contour.
docstr_tok: ["Whether","a","point","is","in","a","contour","."]
code: def _in_contour(self, contour: ndarray, point: ndarray) -> bool:
      """Whether a point is in a contour."""
      x, y = point
      return (
          cv2.pointPolygonTest(contour, (int(x), int(y)), False) > 0.5
      )
  
imports: import functools
  import operator
  from typing import Dict, List, Tuple, Union
  import cv2
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from numpy import ndarray
  from mmocr.registry import MODELS
  from mmocr.structures import TextDetDataSample
  from .base import BaseTextDetPostProcessor
label_desc: Use image node_id 11 for calling the DRRGPostprocessor obj's underlying member method code with example usage: obj._in_contour(contour, point) and returns: unknown