Adjust detected rect to current coordinate system