To prevent the algorithm from picking up
random objects of red color, it is required that at least 1000
pixels are detected as red to be considered a valid sign. Then, a
rectangle covering only the sign would be generated cropping
the input image for recognition.