class_docstr: Decoding predictions of FCENet to instances.
  
  Args:
      fourier_degree (int): The maximum Fourier transform degree k.
      num_reconstr_points (int): The points number of the polygon
          reconstructed from predicted Fourier coefficients.
      rescale_fields (list[str]): The bbox/polygon field names to
          be rescaled. If None, no rescaling will be performed. Defaults to
          ['polygons'].
      scales (list[int]) : The down-sample scale of each layer. Defaults
          to [8, 16, 32].
      text_repr_type (str): Boundary encoding type 'poly' or 'quad'. Defaults
          to 'poly'.
       alpha (float): The parameter to calculate final scores
          :math:`Score_{final} = (Score_{text region} ^ alpha)
          * (Score_{text center_region}^ beta)`. Defaults to 1.0.
      beta (float): The parameter to calculate final score. Defaults to 2.0.
      score_thr (float): The threshold used to filter out the final
          candidates.Defaults to 0.3.
      nms_thr (float): The threshold of nms. Defaults to 0.1.
class_docstr_tok: ["Decoding","predictions","of","FCENet","to","instances",".","Args",":","fourier_degree","(","int",")",":","The","maximum","Fourier","transform","degree","k.","num_reconstr_points","(","int",")",":","The","points","number","of","the","polygon","reconstructed","from","predicted","Fourier","coefficients",".","rescale_fields","(","list","[","str","]",")",":","The","bbox\/polygon","field","names","to","be","rescaled",".","If","None",",","no","rescaling","will","be","performed",".","Defaults","to","[","'polygons","'","]",".","scales","(","list","[","int","]",")",":","The","down-sample","scale","of","each","layer",".","Defaults","to","[","8",",","16",",","32","]",".","text_repr_type","(","str",")",":","Boundary","encoding","type","'poly","'","or","'quad","'",".","Defaults","to","'poly","'",".","alpha","(","float",")",":","The","parameter","to","calculate","final","scores",":","math",":","`","Score_","{","final","}","=","(","Score_","{","text","region","}","^","alpha",")","*","(","Score_","{","text","center_region","}","^","beta",")","`",".","Defaults","to","1.0.","beta","(","float",")",":","The","parameter","to","calculate","final","score",".","Defaults","to","2.0.","score_thr","(","float",")",":","The","threshold","used","to","filter","out","the","final","candidates.Defaults","to","0.3.","nms_thr","(","float",")",":","The","threshold","of","nms",".","Defaults","to","0.1","."]
code: def __init__(
      self,
      fourier_degree: int,
      num_reconstr_points: int,
      rescale_fields: Sequence[str] = ["polygons"],
      scales: Sequence[int] = [8, 16, 32],
      text_repr_type: str = "poly",
      alpha: float = 1.0,
      beta: float = 2.0,
      score_thr: float = 0.3,
      nms_thr: float = 0.1,
      **kwargs,
  ) -> None:
      super().__init__(
          text_repr_type=text_repr_type,
          rescale_fields=rescale_fields,
          **kwargs,
      )
      self.fourier_degree = fourier_degree
      self.num_reconstr_points = num_reconstr_points
      self.scales = scales
      self.alpha = alpha
      self.beta = beta
      self.score_thr = score_thr
      self.nms_thr = nms_thr
  
file_path: mmocr/mmocr/models/textdet/postprocessors/fce_postprocessor.py
imports: from typing import Dict, List, Sequence
  import cv2
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from numpy.fft import ifft
  from mmocr.registry import MODELS
  from mmocr.structures import TextDetDataSample
  from mmocr.utils import fill_hole
  from .base import BaseTextDetPostProcessor
label_desc: Use image node_id 1 to create a new FCEPostprocessor object from inherited base classes: BaseTextDetPostProcessor with example: obj = FCEPostprocessor(fourier_degree, num_reconstr_points, rescale_fields, scales, text_repr_type, alpha, beta, score_thr, nms_thr)