Python implementation of an artificial neural network which detects the scale and angle of partially eaten leaflets