!7 static int width = 8, y1 = 3, y2 = 4; p-exp { L images = markedFaces_scaledToWidth(width); images = map(images, func(RGBImageAndRect r) -> RGBImageAndRect { rgbImageAndRect_clipLineRange(y1, y2, r) }); showImage(mergeRGBImagesAndRects_scaledToWidth(images, 128)); Recognizer recognizer = new { public Rect get(RGBImage img) { 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 {}