Isolate small region of interest(ROI) to perform findContours on the small rectangle to find Z