!7 static int width = 8, y1 = 3, y2 = 4; p-exp { L images = markedFaces_scaledToWidth(width); Recognizer recognizer = new { public Rect get(RGBImage img) { RGBImage img2 = rgbClipLineRange(img, y1, y2); print(lineRangeClip(img.w(), y1, y2)); print(img2.getWidth() + "*" + img2.getHeight()); 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 {}