code: def judge(self, Ax1, Ay1, Ax2, Ay2, Bx1, By1, Bx2, By2):
      if (
          max(Ax1, Ax2) >= min(Bx1, Bx2)
          and min(Ax1, Ax2) <= max(Bx1, Bx2)
      ) and (
          max(Ay1, Ay2) >= min(By1, By2)
          and min(Ay1, Ay2) <= max(By1, By2)
      ):
          if ((Bx1 - Ax1) * (Ay2 - Ay1) - (By1 - Ay1) * (Ax2 - Ax1)) * (
              (Bx2 - Ax1) * (Ay2 - Ay1) - (By2 - Ay1) * (Ax2 - Ax1)
          ) <= 0 and (
              (Ax1 - Bx1) * (By2 - By1) - (Ay1 - By1) * (Bx2 - Bx1)
          ) * (
              (Ax2 - Bx1) * (By2 - By1) - (Ay2 - By1) * (Bx2 - Bx1)
          ) <= 0:
              return True
          else:
              return False
      else:
          return False
  
file_path: PaddleDetection/deploy/pipeline/ppvehicle/vehicle_pressing.py
imports: import os
  import numpy
  import math
label_desc: Use image node_id 2 for calling the VehiclePressingRecognizer obj's underlying member method code with example usage: obj.judge(Ax1, Ay1, Ax2, Ay2, Bx1, By1, Bx2, By2) and returns: False, True, False