code: def rect_area(crop):
      x1, y1, x2, y2 = crop
      return max(0, x2 - x1) * max(0, y2 - y1)
  
imports: import os
  import traceback
  import sys
  import cv2
  import numpy
  from PIL import Image
  from scipy.ndimage.filters import rank_filter
  import pytesseract
label_desc: Use image node_id 8 for calling a global function with example usage: rect_area(crop) and returns: unknown