docstr: compute area of a polygon
  :param poly:
  :return:
docstr_tok: ["compute","area","of","a","polygon",":","param","poly",":",":","return",":"]
code: def polygon_area(self, poly):
      """
      compute area of a polygon
      :param poly:
      :return:
      """
      edge = [
          (poly[1][0] - poly[0][0]) * (poly[1][1] + poly[0][1]),
          (poly[2][0] - poly[1][0]) * (poly[2][1] + poly[1][1]),
          (poly[3][0] - poly[2][0]) * (poly[3][1] + poly[2][1]),
          (poly[0][0] - poly[3][0]) * (poly[0][1] + poly[3][1]),
      ]
      return np.sum(edge) / 2.0
  
file_path: PaddleOCR/ppocr/data/imaug/east_process.py
imports: import math
  import cv2
  import numpy
  import json
  import sys
  import os
label_desc: Use image node_id 4 for calling the EASTProcessTrain obj's underlying member method code with example usage: obj.polygon_area(poly) and returns: unknown