Added a function for checking the size of each segment of the image. Iterate through the patchs and keep only these which have the same aspect ratio as the plate.