Generalised Intersection of Union of any 2 ordered-convex polygons. Inspired from finding IoU of 2 polygons inside a unit circle.
🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗🚗
IOU is defined as the area of intersection over the area of the union of given polygons. The following image from wikimedia illustrates the IOU concept clearly.
I have created a python file that computes the IoU of any 2 given convex polygons, no other conditions! :-)