code: def convert_oriented_box(box):
      x_ctr, y_ctr, width, height, angle = box[:5]
      angle = -angle * math.pi / 180
  
      tl_x, tl_y, br_x, br_y = (
          -width / 2,
          -height / 2,
          width / 2,
          height / 2,
      )
      rect = np.array(
          [[tl_x, br_x, br_x, tl_x], [tl_y, tl_y, br_y, br_y]]
      )
      R = np.array(
          [
              [np.cos(angle), -np.sin(angle)],
              [np.sin(angle), np.cos(angle)],
          ]
      )
      poly = R.dot(rect)
      x0, x1, x2, x3 = poly[0, :4] + x_ctr
      y0, y1, y2, y3 = poly[1, :4] + y_ctr
      poly = np.array(
          [x0, y0, x1, y1, x2, y2, x3, y3], dtype=np.float32
      )
      poly = get_best_begin_point_single(poly)
  
      return poly.tolist()
  
file_path: mmocr/tools/dataset_converters/textdet/imgur_converter.py
imports: import argparse
  import math
  import os.path
  import mmcv
  import mmengine
  import numpy
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 3 for calling a global function with example usage: convert_oriented_box(box) and returns: poly