class_docstr: The post process for EAST.
class_docstr_tok: ["The","post","process","for","EAST","."]
docstr: Restore rectangle from quadrangle.
docstr_tok: ["Restore","rectangle","from","quadrangle","."]
code: def restore_rectangle_quad(self, origin, geometry):
      """
      Restore rectangle from quadrangle.
      """
      # quad
      origin_concat = np.concatenate(
          (origin, origin, origin, origin), axis=1
      )  # (n, 8)
      pred_quads = origin_concat - geometry
      pred_quads = pred_quads.reshape((-1, 4, 2))  # (n, 4, 2)
      return pred_quads
  
file_path: PaddleOCR/ppocr/postprocess/east_postprocess.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from .locality_aware_nms import nms_locality
  import cv2
  import paddle
  import os
  from ppocr.utils.utility import check_install
  import sys
label_desc: Use image node_id 2 for calling the EASTPostProcess obj's underlying member method code with example usage: obj.restore_rectangle_quad(origin, geometry) and returns: pred_quads