!7 static int width = 8, y1 = 3, y2 = 4; p-exp { L images = markedFaces_scaledToWidth(width); Recognizer recognizer = new { public Rect get(RGBImage img) { print(f2s(img.file)); RGBImage img2 = rgbClipLineRange(img, y1, y2); float[] f = rgbImageColumnBrightnesses(img2); printStruct(f); int x = indexOfSmallestFloat(f); ret rectFromPoints(x-1, y1, x+1, y2); } }; for (RGBImageAndRect i : images) print(i.rect + " - " + recognizer.get(i.image)); } abstract sclass Recognizer extends F1 {}