code: def in_quadrangle(point, entrance, im_h, im_w):
      mask = np.zeros((im_h, im_w, 1), np.uint8)
      cv2.fillPoly(mask, [entrance], 255)
      p = tuple(map(int, point))
      if mask[p[1], p[0], :] > 0:
          return True
      else:
          return False
  
file_path: PaddleDetection/deploy/pptracking/python/mot/visualize.py
imports: from __future__ import division
  import os
  import cv2
  import numpy
  import PIL
  from PIL import Image, ImageDraw, ImageFile
  from collections import deque
label_desc: Use image node_id 9 for calling a global function with example usage: in_quadrangle(point, entrance, im_h, im_w) and returns: True, False