Article ALGORITHM FOR THRESHOLDS COMPUTING INCREASING THE AUTOMATION OF GRAPHIC IMAGES RECOGNITION SYSTEMS