class_docstr: Generate the ground truth targets of FCENet: Fourier Contour Embedding
  for Arbitrary-Shaped Text Detection.
  
  [https://arxiv.org/abs/2104.10442]
  
  Args:
      fourier_degree (int): The maximum Fourier transform degree k.
      resample_step (float): The step size for resampling the text center
          line (TCL). It's better not to exceed half of the minimum width.
      center_region_shrink_ratio (float): The shrink ratio of text center
          region.
      level_size_divisors (tuple(int)): The downsample ratio on each level.
      level_proportion_range (tuple(tuple(int))): The range of text sizes
          assigned to each level.
docstr: Make sure the polygon reconstructed from Fourier coefficients c in
  the clockwise direction.
  
  Args:
      polygon (list[float]): The origin polygon.
  Returns:
      new_polygon (lost[float]): The polygon in clockwise point order.
docstr_tok: ["Make","sure","the","polygon","reconstructed","from","Fourier","coefficients","c","in","the","clockwise","direction",".","Args",":","polygon","(","list","[","float","]",")",":","The","origin","polygon",".","Returns",":","new_polygon","(","lost","[","float","]",")",":","The","polygon","in","clockwise","point","order","."]
code: def clockwise(self, c, fourier_degree):
      """Make sure the polygon reconstructed from Fourier coefficients c in
      the clockwise direction.
  
      Args:
          polygon (list[float]): The origin polygon.
      Returns:
          new_polygon (lost[float]): The polygon in clockwise point order.
      """
      if np.abs(c[fourier_degree + 1]) > np.abs(c[fourier_degree - 1]):
          return c
      elif np.abs(c[fourier_degree + 1]) < np.abs(
          c[fourier_degree - 1]
      ):
          return c[::-1]
      else:
          if np.abs(c[fourier_degree + 2]) > np.abs(
              c[fourier_degree - 2]
          ):
              return c
          else:
              return c[::-1]
  
imports: import cv2
  import numpy
  from numpy.fft import fft
  from numpy.linalg import norm
  import sys
label_desc: Use image node_id 11 for calling the FCENetTargets obj's underlying member method code with example usage: obj.clockwise(c, fourier_degree) and returns: c, c, c, c