Detect corner points of rectangle

This looks like a pentagon. If it is a parallelogram, was it completely inside the belt? (assuming that the LED array covers the full belt width)